From 5a38585b7157bfb28920970c4cbbe753fe641967 Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Sun, 20 Dec 2020 18:36:04 -0500 Subject: [PATCH] Release 0.10.0 (#571) Channel backup download file bug fix #536 Added macaroon authentication for Loop (#543) Adding Label for Loop In & Loop Out #538 Fee Report & Routing Enhancements (#555) Payments report #559 Transactions Report #357 Material table sorting bug fix #556 CL & ECL ng Routing #551 & Hocon Read Fix #560 (#561) CLT & ECL Reports (#562) UI Bug fixes for tables group sort, pagination, dialog and spinner close Increased request body size #544 (#564) App lock after 5 attempts #542 & DatePicker default adapter #532 (#566) Upgade Angular 11 (#568) Loop amount validation #569 Loop https document updates --- .browserslistrc | 17 + .editorconfig | 5 +- README.md | 3 +- angular.json | 66 +- angular/1.60ddf8569c2860edb59c.js | 1 - angular/1.d3191dc862bb96ad8a12.js | 1 + angular/3rdpartylicenses.txt | 1740 ++++- angular/5.3593974ed7a18cef9807.js | 1 + angular/6.a0ce69bc4fc32a59e836.js | 1 + angular/6.d5f36502e36ce33775a8.js | 1 - angular/7.2a4fb50bff6654155ed9.js | 1 + angular/7.a355238233f02a06308f.js | 1 - angular/8.29ee25c8adea70ea041a.js | 1 - angular/index.html | 4 +- angular/main.6b2c66a7af14112dcd7f.js | 1 - angular/main.a9c3fed74cd736cbe7ae.js | 1 + angular/polyfills-es5.2ac0d98b22574ae745b1.js | 1 - angular/polyfills.5ae721a6ae5ab597a53d.js | 1 - angular/polyfills.ea991b800cfaf577eb9d.js | 1 + angular/runtime.4560fb3bcc56015af5b6.js | 1 + angular/runtime.907d5114b7f55f73c01d.js | 1 - angular/styles.bbe7b5fc38151212c389.css | 5 - angular/styles.ee9d4139f693ecb219aa.css | 3 + app.js | 5 +- common.js | 47 +- connect.js | 4 +- controllers/RTLConf.js | 52 +- controllers/authenticate.js | 51 +- controllers/eclair/fees.js | 5 +- controllers/lnd/balance.js | 5 +- controllers/lnd/fees.js | 5 +- controllers/lnd/loop.js | 7 +- docker/docker-compose.yml | 1 + docs/Application_configurations | 3 +- docs/Multi-Node-setup.md | 8 +- docs/RTL_setups.md | 3 +- e2e/protractor.conf.js | 17 +- e2e/src/app.e2e-spec.ts | 15 +- e2e/src/app.po.ts | 8 +- e2e/{tsconfig.e2e.json => tsconfig.json} | 8 +- src/karma.conf.js => karma.conf.js | 27 +- package-lock.json | 6382 +++++++++-------- package.json | 95 +- prebuild.js | 2 +- sample-RTL-Config.json | 9 +- src/app/app.component.html | 10 +- src/app/app.component.ts | 18 +- src/app/app.module.ts | 132 +- src/app/app.routing.ts | 14 +- src/app/clightning/cl.module.ts | 28 +- src/app/clightning/cl.routing.ts | 79 +- .../channel-capacity-info.component.html | 2 +- .../channel-capacity-info.component.ts | 2 +- .../channel-liquidity-info.component.html | 4 +- .../channel-liquidity-info.component.ts | 16 +- src/app/clightning/home/home.component.html | 64 +- src/app/clightning/home/home.component.scss | 17 - src/app/clightning/home/home.component.ts | 25 +- .../home/node-info/node-info.component.ts | 2 +- .../clightning/lookups/lookups.component.html | 2 +- .../clightning/lookups/lookups.component.ts | 4 +- .../node-lookup/node-lookup.component.html | 2 +- .../node-lookup/node-lookup.component.ts | 4 +- .../network-info/network-info.component.html | 4 +- .../on-chain-receive.component.html | 2 +- ...tml => on-chain-send-modal.component.html} | 6 +- ...css => on-chain-send-modal.component.scss} | 0 .../on-chain-send-modal.component.spec.ts | 25 + ...nt.ts => on-chain-send-modal.component.ts} | 16 +- .../on-chain-send.component.html | 5 + .../on-chain-send.component.scss | 0 .../on-chain-send.component.spec.ts | 0 .../on-chain-send/on-chain-send.component.ts | 41 + ...n-chain-transaction-history.component.html | 4 +- .../on-chain-transaction-history.component.ts | 30 +- .../on-chain/on-chain.component.html | 33 +- .../clightning/on-chain/on-chain.component.ts | 18 +- .../channel-open-table.component.html | 2 +- .../channel-open-table.component.ts | 28 +- .../channel-pending-table.component.html | 2 +- .../channel-pending-table.component.ts | 26 +- .../channels-tables.component.html | 36 +- .../channels-tables.component.ts | 52 +- .../open-channel.component.html | 103 +- .../open-channel.component.ts | 4 +- .../connect-peer/connect-peer.component.html | 4 +- .../connect-peer/connect-peer.component.ts | 6 +- .../connections.component.html} | 16 +- ...ponent.scss => connections.component.scss} | 0 .../connections.component.spec.ts} | 12 +- ....component.ts => connections.component.ts} | 48 +- .../peers-channels/peers/peers.component.html | 16 +- .../peers-channels/peers/peers.component.scss | 8 +- .../peers-channels/peers/peers.component.ts | 52 +- .../reports/fee/fee-report.component.html | 35 + .../reports/fee/fee-report.component.scss} | 0 .../reports/fee/fee-report.component.spec.ts | 31 + .../reports/fee/fee-report.component.ts | 164 + .../clightning/reports/reports.component.html | 15 + .../reports/reports.component.scss} | 0 .../reports.component.spec.ts} | 12 +- .../clightning/reports/reports.component.ts | 37 + .../transactions-report.component.html | 40 + .../transactions-report.component.scss} | 0 .../transactions-report.component.spec.ts | 25 + .../transactions-report.component.ts | 177 + .../failed-transactions.component.html | 11 +- .../failed-transactions.component.ts | 54 +- .../forwarding-history.component.html | 11 +- .../forwarding-history.component.ts | 71 +- .../clightning/routing/routing.component.html | 22 +- .../clightning/routing/routing.component.ts | 78 +- .../sign-verify-message.component.html | 12 +- .../sign-verify-message.component.ts | 29 +- .../sign/sign.component.ts | 2 +- .../verify/verify.component.ts | 2 +- .../create-invoice.component.html | 4 +- .../lightning-invoices.component.html | 20 +- .../invoices/lightning-invoices.component.ts | 19 +- .../lightning-payments.component.html | 26 +- .../payments/lightning-payments.component.ts | 45 +- .../query-routes/query-routes.component.html | 4 +- .../query-routes/query-routes.component.ts | 12 +- .../send-payment.component.ts | 2 +- .../transactions/transactions.component.html | 15 +- .../transactions/transactions.component.ts | 16 +- src/app/eclair/ecl.module.ts | 31 +- src/app/eclair/ecl.routing.ts | 64 +- .../channel-capacity-info.component.html | 2 +- .../channel-capacity-info.component.ts | 2 +- .../channel-liquidity-info.component.html | 4 +- .../channel-liquidity-info.component.ts | 16 +- src/app/eclair/home/home.component.html | 71 +- src/app/eclair/home/home.component.scss | 17 - src/app/eclair/home/home.component.ts | 28 +- .../home/node-info/node-info.component.ts | 2 +- src/app/eclair/lookups/lookups.component.html | 4 +- src/app/eclair/lookups/lookups.component.ts | 15 +- .../node-lookup/node-lookup.component.html | 2 +- .../node-lookup/node-lookup.component.ts | 4 +- .../on-chain-receive.component.html | 8 +- ...tml => on-chain-send-modal.component.html} | 6 +- .../on-chain-send-modal.component.scss | 0 .../on-chain-send-modal.component.spec.ts | 25 + ...nt.ts => on-chain-send-modal.component.ts} | 14 +- .../on-chain-send.component.html | 5 + .../on-chain-send.component.scss | 0 .../on-chain-send.component.spec.ts | 0 .../on-chain-send/on-chain-send.component.ts | 41 + ...n-chain-transaction-history.component.html | 4 +- .../on-chain-transaction-history.component.ts | 14 +- .../eclair/on-chain/on-chain.component.html | 26 +- src/app/eclair/on-chain/on-chain.component.ts | 18 +- .../channel-inactive-table.component.html | 2 +- .../channel-inactive-table.component.ts | 28 +- .../channel-open-table.component.html | 2 +- .../channel-open-table.component.ts | 20 +- .../channel-pending-table.component.html | 2 +- .../channel-pending-table.component.ts | 26 +- .../channels-tables.component.html | 47 +- .../channels-tables.component.ts | 47 +- .../open-channel.component.html | 65 +- .../open-channel.component.ts | 4 +- .../connect-peer/connect-peer.component.html | 4 +- .../connect-peer/connect-peer.component.ts | 6 +- .../connections.component.html} | 16 +- .../peers-channels/connections.component.scss | 0 ....spec.ts => connections.component.spec.ts} | 12 +- ....component.ts => connections.component.ts} | 44 +- .../peers-channels/peers/peers.component.html | 6 +- .../peers-channels/peers/peers.component.ts | 30 +- .../reports/fee/fee-report.component.html | 35 + .../reports/fee/fee-report.component.scss | 0 .../reports/fee/fee-report.component.spec.ts | 31 + .../reports/fee/fee-report.component.ts | 157 + src/app/eclair/reports/reports.component.html | 15 + src/app/eclair/reports/reports.component.scss | 0 .../eclair/reports/reports.component.spec.ts | 25 + src/app/eclair/reports/reports.component.ts | 37 + .../transactions-report.component.html | 40 + .../transactions-report.component.scss | 0 .../transactions-report.component.spec.ts | 25 + .../transactions-report.component.ts | 177 + .../forwarding-history.component.html | 13 +- .../forwarding-history.component.ts | 75 +- .../routing-peers.component.html | 13 +- .../routing-peers/routing-peers.component.ts | 48 +- src/app/eclair/routing/routing.component.html | 22 +- src/app/eclair/routing/routing.component.ts | 29 +- .../create-invoice.component.html | 4 +- .../create-invoice.component.ts | 6 +- .../lightning-invoices.component.html | 20 +- .../invoices/lightning-invoices.component.ts | 47 +- .../payment-information.component.html | 2 +- .../payment-information.component.ts | 2 +- .../lightning-payments.component.html | 26 +- .../payments/lightning-payments.component.ts | 87 +- .../query-routes/query-routes.component.html | 4 +- .../query-routes/query-routes.component.ts | 14 +- .../send-payment.component.ts | 4 +- .../transactions/transactions.component.html | 15 +- .../transactions/transactions.component.ts | 16 +- src/app/lnd/backup/backup.component.html | 12 +- src/app/lnd/backup/backup.component.ts | 29 +- .../channel-backup-table.component.html | 6 +- .../channel-backup-table.component.ts | 59 +- .../channel-restore-table.component.html | 4 +- .../channel-restore-table.component.ts | 35 +- .../channel-capacity-info.component.html | 2 +- .../channel-capacity-info.component.ts | 2 +- .../channel-liquidity-info.component.html | 22 +- .../channel-liquidity-info.component.ts | 10 +- src/app/lnd/home/home.component.html | 76 +- src/app/lnd/home/home.component.scss | 17 - src/app/lnd/home/home.component.ts | 124 +- .../lnd/home/node-info/node-info.component.ts | 2 +- src/app/lnd/lnd.module.ts | 34 +- src/app/lnd/lnd.routing.ts | 76 +- src/app/lnd/lookups/lookups.component.html | 2 +- src/app/lnd/lookups/lookups.component.ts | 4 +- .../node-lookup/node-lookup.component.html | 2 +- .../loop/loop-modal/loop-modal.component.html | 13 +- .../loop/loop-modal/loop-modal.component.ts | 18 +- .../loop/loop-quote/loop-quote.component.html | 3 - src/app/lnd/loop/loop.component.html | 2 +- src/app/lnd/loop/swaps/swaps.component.html | 4 +- src/app/lnd/loop/swaps/swaps.component.ts | 26 +- .../network-info/network-info.component.html | 8 +- .../on-chain-receive.component.html | 2 +- .../on-chain-receive.component.ts | 6 +- ...tml => on-chain-send-modal.component.html} | 10 +- .../on-chain-send-modal.component.scss | 0 .../on-chain-send-modal.component.spec.ts | 25 + ...nt.ts => on-chain-send-modal.component.ts} | 16 +- .../on-chain-send.component.html | 5 + .../on-chain-send.component.scss | 0 .../on-chain-send.component.spec.ts | 0 .../on-chain-send/on-chain-send.component.ts | 41 + src/app/lnd/on-chain/on-chain.component.html | 31 +- src/app/lnd/on-chain/on-chain.component.ts | 27 +- ...n-chain-transaction-history.component.html | 9 +- .../on-chain-transaction-history.component.ts | 12 +- .../utxo-tables/utxo-tables.component.html | 2 +- .../utxo-tables/utxo-tables.component.ts | 8 +- .../utxo-tables/utxos/utxos.component.html | 15 +- .../utxo-tables/utxos/utxos.component.ts | 20 +- .../bump-fee-modal/bump-fee.component.html | 8 +- .../bump-fee-modal/bump-fee.component.ts | 2 +- .../channel-rebalance.component.html | 4 +- .../channel-rebalance.component.ts | 4 +- .../channel-active-htlcs-table.component.html | 20 +- .../channel-active-htlcs-table.component.scss | 3 +- .../channel-active-htlcs-table.component.ts | 62 +- .../channel-closed-table.component.html | 4 +- .../channel-closed-table.component.ts | 35 +- .../channel-open-table.component.html | 4 +- .../channel-open-table.component.scss | 6 +- .../channel-open-table.component.ts | 28 +- .../channel-pending-table.component.html | 10 +- .../channel-pending-table.component.ts | 37 +- .../channels-tables.component.html | 58 +- .../channels-tables.component.ts | 50 +- .../close-channel.component.html | 6 +- .../close-channel.component.ts | 2 +- .../open-channel.component.html | 85 +- .../open-channel.component.ts | 7 +- .../connect-peer/connect-peer.component.html | 4 +- .../connect-peer/connect-peer.component.ts | 6 +- .../connections.component.html} | 16 +- .../peers-channels/connections.component.scss | 0 .../connections.component.spec.ts | 25 + ....component.ts => connections.component.ts} | 48 +- .../peers-channels/peers/peers.component.html | 16 +- .../peers-channels/peers/peers.component.ts | 39 +- .../lnd/reports/fee/fee-report.component.html | 35 + .../lnd/reports/fee/fee-report.component.scss | 0 .../reports/fee/fee-report.component.spec.ts | 31 + .../lnd/reports/fee/fee-report.component.ts | 154 + src/app/lnd/reports/reports.component.html | 15 + src/app/lnd/reports/reports.component.scss | 0 src/app/lnd/reports/reports.component.spec.ts | 25 + src/app/lnd/reports/reports.component.ts | 37 + .../transactions-report.component.html | 40 + .../transactions-report.component.scss | 0 .../transactions-report.component.spec.ts | 25 + .../transactions-report.component.ts | 177 + .../forwarding-history.component.html | 9 +- .../forwarding-history.component.ts | 67 +- .../routing-peers.component.html | 15 +- .../routing-peers/routing-peers.component.ts | 53 +- src/app/lnd/routing/routing.component.html | 28 +- src/app/lnd/routing/routing.component.ts | 56 +- .../sign-verify-message.component.html | 12 +- .../sign-verify-message.component.ts | 29 +- .../sign/sign.component.ts | 2 +- .../verify/verify.component.ts | 2 +- .../create-invoice.component.html | 4 +- .../invoice-information.component.html | 4 +- .../invoice-information.component.ts | 4 + .../lightning-invoices.component.html | 18 +- .../invoices/lightning-invoices.component.ts | 31 +- .../lightning-payments.component.html | 257 +- .../payments/lightning-payments.component.ts | 48 +- .../query-routes/query-routes.component.html | 8 +- .../query-routes/query-routes.component.ts | 8 +- .../send-payment.component.html | 2 +- .../send-payment.component.ts | 4 +- .../transactions/transactions.component.html | 15 +- .../transactions/transactions.component.ts | 18 +- .../wallet/initialize/initialize.component.ts | 4 +- src/app/lnd/wallet/unlock/unlock.component.ts | 2 +- src/app/lnd/wallet/wallet.component.html | 2 +- src/app/shared/animation/opacity-animation.ts | 15 +- .../alert-message.component.html | 6 +- .../confirmation-message.component.html | 6 +- .../confirmation-message.component.ts | 2 +- .../login-2fa-token.component.ts | 2 +- .../two-factor-auth.component.html | 14 +- .../two-factor-auth.component.ts | 36 +- .../components/error/error.component.html | 2 +- .../components/help/help.component.html | 2 +- .../horizontal-scroller.component.html | 38 + .../horizontal-scroller.component.scss | 0 .../horizontal-scroller.component.spec.ts | 43 + .../horizontal-scroller.component.ts | 107 + .../components/login/login.component.html | 2 +- .../components/login/login.component.ts | 2 +- .../side-navigation.component.html | 2 +- .../side-navigation.component.ts | 6 +- .../top-menu/top-menu.component.html | 2 +- .../navigation/top-menu/top-menu.component.ts | 2 - .../not-found/not-found.component.html | 2 +- .../app-settings/app-settings.component.html | 12 +- .../app-settings/app-settings.component.ts | 2 +- .../auth-settings.component.html | 2 +- .../auth-settings/auth-settings.component.ts | 13 +- .../server-config.component.html | 2 +- .../server-config/server-config.component.ts | 26 +- .../settings/settings.component.html | 25 +- .../components/settings/settings.component.ts | 34 +- .../transactions-report-table.component.html | 58 + .../transactions-report-table.component.scss | 3 + .../transactions-report-table.component.ts | 101 + .../directive/date-formats.directive.ts | 57 + src/app/shared/models/clModels.ts | 1 + src/app/shared/models/lndModels.ts | 1 + src/app/shared/models/navMenu.ts | 31 +- src/app/shared/services/common.service.ts | 25 + .../shared/services/consts-enums-functions.ts | 22 +- src/app/shared/services/data.service.ts | 75 +- src/app/shared/shared.module.ts | 93 +- src/app/shared/theme/skins/blue.scss | 1 - src/app/shared/theme/skins/green.scss | 1 - src/app/shared/theme/skins/indigo.scss | 2 - src/app/shared/theme/skins/pink.scss | 1 - src/app/shared/theme/skins/purple.scss | 1 - src/app/shared/theme/skins/teal.scss | 1 - src/app/shared/theme/skins/yellow.scss | 1 - src/app/shared/theme/styles/constants.scss | 21 +- src/app/shared/theme/styles/mixins.scss | 2 +- src/app/shared/theme/styles/root.scss | 519 +- src/app/shared/theme/styles/styles.scss | 2 +- src/app/shared/theme/styles/theme-color.scss | 32 +- src/app/shared/theme/styles/theme-font.scss | 5 - .../shared/theme/styles/theme-mode-dark.scss | 307 +- .../shared/theme/styles/theme-mode-light.scss | 281 +- src/app/shared/theme/styles/theme.scss | 2 +- src/app/store/rtl.effects.ts | 16 +- src/browserslist | 11 - src/environments/version.ts | 2 +- src/polyfills.ts | 63 +- src/tsconfig.app.json | 11 - src/tsconfig.spec.json | 18 - src/tslint.json | 17 - tsconfig.app.json | 20 + tsconfig.json | 23 +- tsconfig.spec.json | 18 + tslint.json | 175 +- 378 files changed, 11718 insertions(+), 5765 deletions(-) create mode 100644 .browserslistrc delete mode 100644 angular/1.60ddf8569c2860edb59c.js create mode 100644 angular/1.d3191dc862bb96ad8a12.js create mode 100644 angular/5.3593974ed7a18cef9807.js create mode 100644 angular/6.a0ce69bc4fc32a59e836.js delete mode 100644 angular/6.d5f36502e36ce33775a8.js create mode 100644 angular/7.2a4fb50bff6654155ed9.js delete mode 100644 angular/7.a355238233f02a06308f.js delete mode 100644 angular/8.29ee25c8adea70ea041a.js delete mode 100644 angular/main.6b2c66a7af14112dcd7f.js create mode 100644 angular/main.a9c3fed74cd736cbe7ae.js delete mode 100644 angular/polyfills-es5.2ac0d98b22574ae745b1.js delete mode 100644 angular/polyfills.5ae721a6ae5ab597a53d.js create mode 100644 angular/polyfills.ea991b800cfaf577eb9d.js create mode 100644 angular/runtime.4560fb3bcc56015af5b6.js delete mode 100644 angular/runtime.907d5114b7f55f73c01d.js delete mode 100644 angular/styles.bbe7b5fc38151212c389.css create mode 100644 angular/styles.ee9d4139f693ecb219aa.css rename e2e/{tsconfig.e2e.json => tsconfig.json} (50%) rename src/karma.conf.js => karma.conf.js (51%) rename src/app/clightning/on-chain/on-chain-send-modal/{on-chain-send.component.html => on-chain-send-modal.component.html} (97%) rename src/app/clightning/on-chain/on-chain-send-modal/{on-chain-send.component.scss => on-chain-send-modal.component.scss} (100%) create mode 100644 src/app/clightning/on-chain/on-chain-send-modal/on-chain-send-modal.component.spec.ts rename src/app/clightning/on-chain/on-chain-send-modal/{on-chain-send.component.ts => on-chain-send-modal.component.ts} (94%) create mode 100644 src/app/clightning/on-chain/on-chain-send/on-chain-send.component.html rename src/app/{eclair/on-chain/on-chain-send-modal => clightning/on-chain/on-chain-send}/on-chain-send.component.scss (100%) rename src/app/clightning/on-chain/{on-chain-send-modal => on-chain-send}/on-chain-send.component.spec.ts (100%) create mode 100644 src/app/clightning/on-chain/on-chain-send/on-chain-send.component.ts rename src/app/{lnd/peers-channels/peers-channels.component.html => clightning/peers-channels/connections.component.html} (62%) rename src/app/clightning/peers-channels/{peers-channels.component.scss => connections.component.scss} (100%) rename src/app/{lnd/peers-channels/peers-channels.component.spec.ts => clightning/peers-channels/connections.component.spec.ts} (52%) rename src/app/clightning/peers-channels/{peers-channels.component.ts => connections.component.ts} (54%) create mode 100644 src/app/clightning/reports/fee/fee-report.component.html rename src/app/{eclair/peers-channels/peers-channels.component.scss => clightning/reports/fee/fee-report.component.scss} (100%) create mode 100644 src/app/clightning/reports/fee/fee-report.component.spec.ts create mode 100644 src/app/clightning/reports/fee/fee-report.component.ts create mode 100644 src/app/clightning/reports/reports.component.html rename src/app/{lnd/on-chain/on-chain-send-modal/on-chain-send.component.scss => clightning/reports/reports.component.scss} (100%) rename src/app/clightning/{peers-channels/peers-channels.component.spec.ts => reports/reports.component.spec.ts} (51%) create mode 100644 src/app/clightning/reports/reports.component.ts create mode 100644 src/app/clightning/reports/transactions/transactions-report.component.html rename src/app/{lnd/peers-channels/peers-channels.component.scss => clightning/reports/transactions/transactions-report.component.scss} (100%) create mode 100644 src/app/clightning/reports/transactions/transactions-report.component.spec.ts create mode 100644 src/app/clightning/reports/transactions/transactions-report.component.ts rename src/app/eclair/on-chain/on-chain-send-modal/{on-chain-send.component.html => on-chain-send-modal.component.html} (90%) create mode 100644 src/app/eclair/on-chain/on-chain-send-modal/on-chain-send-modal.component.scss create mode 100644 src/app/eclair/on-chain/on-chain-send-modal/on-chain-send-modal.component.spec.ts rename src/app/eclair/on-chain/on-chain-send-modal/{on-chain-send.component.ts => on-chain-send-modal.component.ts} (89%) create mode 100644 src/app/eclair/on-chain/on-chain-send/on-chain-send.component.html create mode 100644 src/app/eclair/on-chain/on-chain-send/on-chain-send.component.scss rename src/app/eclair/on-chain/{on-chain-send-modal => on-chain-send}/on-chain-send.component.spec.ts (100%) create mode 100644 src/app/eclair/on-chain/on-chain-send/on-chain-send.component.ts rename src/app/{clightning/peers-channels/peers-channels.component.html => eclair/peers-channels/connections.component.html} (62%) create mode 100644 src/app/eclair/peers-channels/connections.component.scss rename src/app/eclair/peers-channels/{peers-channels.component.spec.ts => connections.component.spec.ts} (51%) rename src/app/eclair/peers-channels/{peers-channels.component.ts => connections.component.ts} (58%) create mode 100644 src/app/eclair/reports/fee/fee-report.component.html create mode 100644 src/app/eclair/reports/fee/fee-report.component.scss create mode 100644 src/app/eclair/reports/fee/fee-report.component.spec.ts create mode 100644 src/app/eclair/reports/fee/fee-report.component.ts create mode 100644 src/app/eclair/reports/reports.component.html create mode 100644 src/app/eclair/reports/reports.component.scss create mode 100644 src/app/eclair/reports/reports.component.spec.ts create mode 100644 src/app/eclair/reports/reports.component.ts create mode 100644 src/app/eclair/reports/transactions/transactions-report.component.html create mode 100644 src/app/eclair/reports/transactions/transactions-report.component.scss create mode 100644 src/app/eclair/reports/transactions/transactions-report.component.spec.ts create mode 100644 src/app/eclair/reports/transactions/transactions-report.component.ts rename src/app/lnd/on-chain/on-chain-send-modal/{on-chain-send.component.html => on-chain-send-modal.component.html} (94%) create mode 100644 src/app/lnd/on-chain/on-chain-send-modal/on-chain-send-modal.component.scss create mode 100644 src/app/lnd/on-chain/on-chain-send-modal/on-chain-send-modal.component.spec.ts rename src/app/lnd/on-chain/on-chain-send-modal/{on-chain-send.component.ts => on-chain-send-modal.component.ts} (93%) create mode 100644 src/app/lnd/on-chain/on-chain-send/on-chain-send.component.html create mode 100644 src/app/lnd/on-chain/on-chain-send/on-chain-send.component.scss rename src/app/lnd/on-chain/{on-chain-send-modal => on-chain-send}/on-chain-send.component.spec.ts (100%) create mode 100644 src/app/lnd/on-chain/on-chain-send/on-chain-send.component.ts rename src/app/{eclair/peers-channels/peers-channels.component.html => lnd/peers-channels/connections.component.html} (62%) create mode 100644 src/app/lnd/peers-channels/connections.component.scss create mode 100644 src/app/lnd/peers-channels/connections.component.spec.ts rename src/app/lnd/peers-channels/{peers-channels.component.ts => connections.component.ts} (56%) create mode 100644 src/app/lnd/reports/fee/fee-report.component.html create mode 100644 src/app/lnd/reports/fee/fee-report.component.scss create mode 100644 src/app/lnd/reports/fee/fee-report.component.spec.ts create mode 100644 src/app/lnd/reports/fee/fee-report.component.ts create mode 100644 src/app/lnd/reports/reports.component.html create mode 100644 src/app/lnd/reports/reports.component.scss create mode 100644 src/app/lnd/reports/reports.component.spec.ts create mode 100644 src/app/lnd/reports/reports.component.ts create mode 100644 src/app/lnd/reports/transactions/transactions-report.component.html create mode 100644 src/app/lnd/reports/transactions/transactions-report.component.scss create mode 100644 src/app/lnd/reports/transactions/transactions-report.component.spec.ts create mode 100644 src/app/lnd/reports/transactions/transactions-report.component.ts create mode 100644 src/app/shared/components/horizontal-scroller/horizontal-scroller.component.html create mode 100644 src/app/shared/components/horizontal-scroller/horizontal-scroller.component.scss create mode 100644 src/app/shared/components/horizontal-scroller/horizontal-scroller.component.spec.ts create mode 100644 src/app/shared/components/horizontal-scroller/horizontal-scroller.component.ts create mode 100644 src/app/shared/components/transactions-report-table/transactions-report-table.component.html create mode 100644 src/app/shared/components/transactions-report-table/transactions-report-table.component.scss create mode 100644 src/app/shared/components/transactions-report-table/transactions-report-table.component.ts create mode 100644 src/app/shared/directive/date-formats.directive.ts delete mode 100644 src/browserslist delete mode 100644 src/tsconfig.app.json delete mode 100644 src/tsconfig.spec.json delete mode 100644 src/tslint.json create mode 100644 tsconfig.app.json create mode 100644 tsconfig.spec.json diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 00000000..427441dc --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,17 @@ +# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. +# For additional information regarding the format and rule options, please see: +# https://github.com/browserslist/browserslist#queries + +# For the full list of supported browsers by the Angular framework, please see: +# https://angular.io/guide/browser-support + +# You can see what browsers were selected by your queries by running: +# npx browserslist + +last 1 Chrome version +last 1 Firefox version +last 2 Edge major versions +last 2 Safari major versions +last 2 iOS major versions +Firefox ESR +not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line. diff --git a/.editorconfig b/.editorconfig index 6e87a003..59d9a3a3 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,4 @@ -# Editor configuration, see http://editorconfig.org +# Editor configuration, see https://editorconfig.org root = true [*] @@ -8,6 +8,9 @@ indent_size = 2 insert_final_newline = true trim_trailing_whitespace = true +[*.ts] +quote_type = single + [*.md] max_line_length = off trim_trailing_whitespace = false diff --git a/README.md b/README.md index d3c20040..98a9feba 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,7 @@ Example RTL-Config.json: "lnImplementation": "LND", "Authentication": { "macaroonPath": "", + "swapMacaroonPath": "", "configPath": "", "lnApiPassword": "" }, @@ -106,7 +107,7 @@ Example RTL-Config.json: "enableLogging": true, "fiatConversion": false, "lnServerUrl": "", - "swapServerUrl": "" + "swapServerUrl": "" } } ] diff --git a/angular.json b/angular.json index 2c1a14d4..bc9e6bd5 100644 --- a/angular.json +++ b/angular.json @@ -4,24 +4,35 @@ "newProjectRoot": "projects", "projects": { "RTLApp": { - "root": "", - "sourceRoot": "src", "projectType": "application", - "prefix": "rtl", "schematics": { "@schematics/angular:component": { "style": "scss" + }, + "@schematics/angular:application": { + "strict": true } }, + "root": "", + "sourceRoot": "src", + "prefix": "rtl", "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { + "baseHref": "/rtl/", "outputPath": "angular", "index": "src/index.html", "main": "src/main.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/tsconfig.app.json", + "tsConfig": "tsconfig.app.json", + "aot": true, + "allowedCommonJsDependencies": [ + "hammerjs", + "sha256", + "qrcode", + "otplib" + ], "assets": [ "src/assets" ], @@ -41,19 +52,22 @@ "optimization": true, "outputHashing": "all", "sourceMap": false, - "extractCss": true, "namedChunks": false, - "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, "budgets": [ { "type": "initial", - "maximumWarning": "4mb", + "maximumWarning": "5mb", + "maximumError": "5mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "1mb", "maximumError": "5mb" } - ] + ] } } }, @@ -79,35 +93,30 @@ "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", - "tsConfig": "src/tsconfig.spec.json", - "karmaConfig": "src/karma.conf.js", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", + "assets": [ + "src/assets" + ], "styles": [ "src/app/shared/theme/styles/styles.scss" ], - "scripts": [], - "assets": [ - "src/assets" - ] + "scripts": [] } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ - "src/tsconfig.app.json", - "src/tsconfig.spec.json" + "tsconfig.app.json", + "tsconfig.spec.json", + "e2e/tsconfig.json" ], "exclude": [ "**/node_modules/**" ] } - } - } - }, - "RTLApp-e2e": { - "root": "e2e/", - "projectType": "application", - "architect": { + }, "e2e": { "builder": "@angular-devkit/build-angular:protractor", "options": { @@ -119,18 +128,9 @@ "devServerTarget": "RTLApp:serve:production" } } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": "e2e/tsconfig.e2e.json", - "exclude": [ - "**/node_modules/**" - ] - } } } } }, "defaultProject": "RTLApp" -} \ No newline at end of file +} diff --git a/angular/1.60ddf8569c2860edb59c.js b/angular/1.60ddf8569c2860edb59c.js deleted file mode 100644 index 00e9b9c3..00000000 --- a/angular/1.60ddf8569c2860edb59c.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{Ysfc:function(t,e,n){"use strict";n.d(e,"a",(function(){return V}));var c=n("4lrr"),i=n("wHSu"),r=n("7o2P"),a=n("cpEJ"),o=n("7nzP"),s=n("CcnG"),u=n("KELG"),d=n("21Lb"),b=n("Ip0R"),l=n("hUWP"),f=n("bwdU"),p=n("qLAh"),m=n("Nv++"),y=n("M4kG"),g=n("FZ+F"),v=n("O4ig"),h=n("dEYt");function x(t,e){if(1&t&&(s.Wb(0,"div",13),s.Wb(1,"div",14),s.Wb(2,"h4",15),s.Hc(3,"Address Type"),s.Vb(),s.Wb(4,"span",20),s.Hc(5),s.Vb(),s.Vb(),s.Vb()),2&t){var n=s.ic();s.Db(5),s.Ic(n.addressType)}}function S(t,e){1&t&&s.Rb(0,"mat-divider",17)}var C=function(t){return{"display-none":t}},V=function(){function t(t,e,n,c,r){this.dialogRef=t,this.data=e,this.logger=n,this.commonService=c,this.snackBar=r,this.faReceipt=i.C,this.address="",this.addressType="",this.qrWidth=230,this.screenSize="",this.screenSizeEnum=o.o}return t.prototype.ngOnInit=function(){this.address=this.data.address,this.addressType=this.data.addressType,this.screenSize=this.commonService.getScreenSize()},t.prototype.onClose=function(){this.dialogRef.close(!1)},t.prototype.onCopyAddress=function(t){this.snackBar.open("Generated address copied."),this.logger.info("Copied Text: "+t)},t.\u0275fac=function(e){return new(e||t)(s.Qb(c.f),s.Qb(c.a),s.Qb(a.b),s.Qb(r.a),s.Qb(u.b))},t.\u0275cmp=s.Kb({type:t,selectors:[["rtl-on-chain-generated-address"]],decls:27,vars:22,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","65",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-2"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","2","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["autoFocus","","mat-flat-button","","color","primary","tabindex","1","type","submit","rtlClipboard","",3,"payload","copied"],[1,"foreground-secondary-text"]],template:function(t,e){1&t&&(s.Wb(0,"div",0),s.Wb(1,"div",1),s.Rb(2,"qrcode",2),s.Vb(),s.Wb(3,"div",3),s.Wb(4,"mat-card-header",4),s.Wb(5,"div",5),s.Rb(6,"fa-icon",6),s.Wb(7,"span",7),s.Hc(8),s.Vb(),s.Vb(),s.Wb(9,"button",8),s.ec("click",(function(){return e.onClose()})),s.Hc(10,"X"),s.Vb(),s.Vb(),s.Wb(11,"mat-card-content"),s.Wb(12,"div",9),s.Wb(13,"div",10),s.Rb(14,"qrcode",2),s.Vb(),s.Fc(15,x,6,1,"div",11),s.Fc(16,S,1,0,"mat-divider",12),s.Wb(17,"div",13),s.Wb(18,"div",14),s.Wb(19,"h4",15),s.Hc(20,"Address"),s.Vb(),s.Wb(21,"span",16),s.Hc(22),s.Vb(),s.Vb(),s.Vb(),s.Rb(23,"mat-divider",17),s.Wb(24,"div",18),s.Wb(25,"button",19),s.ec("copied",(function(t){return e.onCopyAddress(t)})),s.Hc(26,"Copy Address"),s.Vb(),s.Vb(),s.Vb(),s.Vb(),s.Vb(),s.Vb()),2&t&&(s.Db(1),s.pc("ngClass",s.tc(18,C,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),s.Db(1),s.pc("qrdata",e.address)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),s.Db(4),s.pc("icon",e.faReceipt),s.Db(2),s.Ic(e.screenSize===e.screenSizeEnum.XS?"Address":"Generated Address"),s.Db(5),s.pc("ngClass",s.tc(20,C,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),s.Db(1),s.pc("qrdata",e.address)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),s.Db(1),s.pc("ngIf",""!==e.addressType),s.Db(1),s.pc("ngIf",""!==e.addressType),s.Db(6),s.Ic(e.address),s.Db(3),s.pc("payload",e.address))},directives:[d.c,d.b,d.a,b.l,l.a,f.a,p.c,m.a,y.a,p.b,b.n,g.a,v.a,h.a],styles:[""]}),t}()},hNFU:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var c=n("gIcY"),i=n("CcnG"),r=function(){function t(){}return t.prototype.validate=function(t){return this.max?c.s.max(+this.max)(t):null},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Lb({type:t,selectors:[["input","max",""]],inputs:{max:"max"},features:[i.Cb([{provide:c.i,useExisting:t,multi:!0}])]}),t}()},mNcL:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var c=n("ihYY"),i=[Object(c.n)("newlyAddedRowAnimation",[Object(c.k)("notAdded, void",Object(c.l)({transform:"translateX(0%)"})),Object(c.k)("added",Object(c.l)({transform:"translateX(100%)"})),Object(c.m)("added <=> notAdded",Object(c.e)("1000ms ease-out")),Object(c.m)("added <=> void",Object(c.e)("0ms ease-out"))])]},qmev:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var c=n("K9Ia"),i=n("P6uZ"),r=n("ny24"),a=n("7nzP"),o=n("7o2P"),s=n("CcnG"),u=n("yGQT"),d=n("VkXI"),b=n("Ip0R"),l=n("21Lb"),f=n("v/zR");function p(t,e){if(1&t&&(s.Wb(0,"span",7),s.Hc(1),s.jc(2,"number"),s.Vb()),2&t){var n=s.ic().$implicit;s.Db(1),s.Ic(s.kc(2,1,n.dataValue))}}function m(t,e){if(1&t&&(s.Wb(0,"span",7),s.Hc(1),s.jc(2,"number"),s.Vb()),2&t){var n=s.ic().$implicit,c=s.ic(2);s.Db(1),s.Ic(s.lc(2,1,n[c.currencyUnitEnum.BTC],c.currencyUnitFormats.BTC))}}function y(t,e){if(1&t&&(s.Wb(0,"span",7),s.Hc(1),s.jc(2,"number"),s.Vb()),2&t){var n=s.ic().$implicit,c=s.ic(2);s.Db(1),s.Ic(s.lc(2,1,n[c.currencyUnitEnum.OTHER],c.currencyUnitFormats.OTHER))}}function g(t,e){if(1&t&&(s.Wb(0,"div",4),s.Wb(1,"div",5),s.Hc(2),s.Vb(),s.Fc(3,p,3,3,"span",6),s.Fc(4,m,3,4,"span",6),s.Fc(5,y,3,4,"span",6),s.Vb()),2&t){var n=e.$implicit,c=s.ic().$implicit,i=s.ic();s.pc("matTooltip",n.tooltip)("matTooltipPosition","below"),s.Db(2),s.Ic(n.title),s.Db(1),s.pc("ngIf",c===i.currencyUnitEnum.SATS),s.Db(1),s.pc("ngIf",c===i.currencyUnitEnum.BTC),s.Db(1),s.pc("ngIf",i.fiatConversion&&c!==i.currencyUnitEnum.SATS&&c!==i.currencyUnitEnum.BTC)}}function v(t,e){if(1&t&&(s.Wb(0,"mat-tab",1),s.Wb(1,"div",2),s.Fc(2,g,6,6,"div",3),s.Vb(),s.Vb()),2&t){var n=e.$implicit,c=s.ic();s.qc("label",n),s.Db(2),s.pc("ngForOf",c.values)}}var h=function(){function t(t,e){this.commonService=t,this.store=e,this.values=[],this.currencyUnitEnum=a.g,this.currencyUnitFormats=a.f,this.currencyUnits=[],this.fiatConversion=!1,this.unSubs=[new c.a,new c.a]}return t.prototype.ngOnInit=function(){var t=this;this.store.select("root").pipe(Object(i.a)()).subscribe((function(e){t.fiatConversion=e.selNode.settings.fiatConversion,t.currencyUnits=e.selNode.settings.currencyUnits,t.fiatConversion||t.currencyUnits.splice(2,1),t.currencyUnits.length>1&&t.values[0].dataValue>=0&&t.getCurrencyValues(t.values)}))},t.prototype.ngOnChanges=function(){this.currencyUnits.length>1&&this.values[0].dataValue>=0&&this.getCurrencyValues(this.values)},t.prototype.getCurrencyValues=function(t){var e=this;t.forEach((function(t){t.dataValue>0?e.commonService.convertCurrency(t.dataValue,a.g.SATS,e.currencyUnits[2],e.fiatConversion).pipe(Object(r.a)(e.unSubs[1])).subscribe((function(e){t[a.g.BTC]=e.BTC,t[a.g.OTHER]=e.OTHER})):(t[a.g.BTC]=t.dataValue,t[a.g.OTHER]=t.dataValue)}))},t.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(t){t.next(),t.complete()}))},t.\u0275fac=function(e){return new(e||t)(s.Qb(o.a),s.Qb(u.h))},t.\u0275cmp=s.Kb({type:t,selectors:[["rtl-currency-unit-converter"]],inputs:{values:"values"},features:[s.Bb],decls:2,vars:1,consts:[[3,"label",4,"ngFor","ngForOf"],[3,"label"],["fxLayout","row","fxFlex","100"],["fxLayout","column","class","cc-data-block",3,"matTooltip","matTooltipPosition",4,"ngFor","ngForOf"],["fxLayout","column",1,"cc-data-block",3,"matTooltip","matTooltipPosition"],[1,"cc-data-title"],["class","cc-data-value",4,"ngIf"],[1,"cc-data-value"]],template:function(t,e){1&t&&(s.Wb(0,"mat-tab-group"),s.Fc(1,v,3,2,"mat-tab",0),s.Vb()),2&t&&(s.Db(1),s.pc("ngForOf",e.currencyUnits))},directives:[d.c,b.m,d.a,l.c,l.a,f.a,b.n],pipes:[b.e],styles:[""]}),t}()},"twK/":function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return i}));var c={prefix:"far",iconName:"frown",icon:[496,512,[],"f119","M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160-64c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-80 128c-40.2 0-78 17.7-103.8 48.6-8.5 10.2-7.1 25.3 3.1 33.8 10.2 8.4 25.3 7.1 33.8-3.1 16.6-19.9 41-31.4 66.9-31.4s50.3 11.4 66.9 31.4c8.1 9.7 23.1 11.9 33.8 3.1 10.2-8.5 11.5-23.6 3.1-33.8C326 321.7 288.2 304 248 304z"]},i={prefix:"far",iconName:"smile",icon:[496,512,[],"f118","M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z"]}}}]); \ No newline at end of file diff --git a/angular/1.d3191dc862bb96ad8a12.js b/angular/1.d3191dc862bb96ad8a12.js new file mode 100644 index 00000000..16e25d8f --- /dev/null +++ b/angular/1.d3191dc862bb96ad8a12.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"2yzq":function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return c});var a=n("GS7A");const i=[Object(a.m)("opacityAnimation",[Object(a.l)(":enter",[Object(a.k)({opacity:0}),Object(a.e)("1000ms ease-in",Object(a.k)({opacity:1}))]),Object(a.l)(":leave",[Object(a.e)("0ms",Object(a.k)({opacity:0}))])])],c=[Object(a.m)("fadeIn",[Object(a.l)("void => *",[]),Object(a.l)("* => void",[]),Object(a.l)("* => *",[Object(a.e)(800,Object(a.g)([Object(a.k)({opacity:0,transform:"translateY(100%)"}),Object(a.k)({opacity:1,transform:"translateY(0%)"})]))])])]},"9wfV":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var a=n("GS7A");const i=[Object(a.m)("sliderAnimation",[Object(a.j)("*",Object(a.k)({transform:"translateX(0)"})),Object(a.l)("void => backward",[Object(a.k)({transform:"translateX(-100%"}),Object(a.e)("800ms")]),Object(a.l)("backward => void",[Object(a.e)("0ms",Object(a.k)({transform:"translateX(100%)"}))]),Object(a.l)("void => forward",[Object(a.k)({transform:"translateX(100%"}),Object(a.e)("800ms")]),Object(a.l)("forward => void",[Object(a.e)("0ms",Object(a.k)({transform:"translateX(-100%)"}))])])]},LQLF:function(t,e,n){"use strict";n.d(e,"a",function(){return z});var a=n("8Y7J"),i=n("9wfV"),c=n("7nzP"),o=n("cpEJ"),s=n("VDRc"),r=n("Dxy4"),l=n("Tj54"),u=n("SVse"),d=n("ZTz/"),b=n("s7LF"),m=n("UhP/"),f=n("Q2Ze");let h=(()=>{class t extends m.t{format(t,e){return"MMM YYYY"===e?c.l[t.getMonth()].name+", "+t.getFullYear():"YYYY"===e?t.getFullYear().toString():t.getDate()+"/"+c.l[t.getMonth()].name+"/"+t.getFullYear()}}return t.\u0275fac=function(e){return g(e||t)},t.\u0275prov=a.Lb({token:t,factory:t.\u0275fac}),t})();const g=a.Xb(h),p={parse:{dateInput:"LL"},display:{dateInput:"MMM YYYY",monthYearLabel:"YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"YYYY"}},y={parse:{dateInput:"LL"},display:{dateInput:"YYYY",monthYearLabel:"YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"YYYY"}};let x=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Kb({type:t,selectors:[["","monthlyDate",""]],features:[a.Cb([{provide:m.c,useClass:h},{provide:m.e,useValue:p}])]}),t})(),S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Kb({type:t,selectors:[["","yearlyDate",""]],features:[a.Cb([{provide:m.c,useClass:h},{provide:m.e,useValue:y}])]}),t})();var V=n("e6WT"),D=n("TN/R"),v=n("B0X+"),w=n("hNFU");const C=["monthlyDatepicker"],U=["yearlyDatepicker"],L=function(){return{animationDirection:"forward"}};function k(t,e){if(1&t&&a.Rb(0,9),2&t){a.hc();const t=a.wc(19);a.oc("ngTemplateOutlet",t)("ngTemplateOutletContext",a.rc(2,L))}}const O=function(){return{animationDirection:"backward"}};function F(t,e){if(1&t&&a.Rb(0,9),2&t){a.hc();const t=a.wc(19);a.oc("ngTemplateOutlet",t)("ngTemplateOutletContext",a.rc(2,O))}}const R=function(){return{animationDirection:""}};function T(t,e){if(1&t&&a.Rb(0,9),2&t){a.hc();const t=a.wc(19);a.oc("ngTemplateOutlet",t)("ngTemplateOutletContext",a.rc(2,R))}}function I(t,e){if(1&t&&(a.Vb(0,"mat-option",17),a.Kc(1),a.ic(2,"titlecase"),a.Ub()),2&t){const t=e.$implicit;a.oc("value",t),a.Db(1),a.Mc(" ",a.jc(2,2,t)," ")}}function A(t,e){if(1&t){const t=a.Wb();a.Vb(0,"mat-form-field",18),a.Vb(1,"input",19,20),a.dc("ngModelChange",function(e){return a.zc(t),a.hc(2).selectedValue=e}),a.Ub(),a.Qb(3,"mat-datepicker-toggle",21),a.Vb(4,"mat-datepicker",22,23),a.dc("monthSelected",function(e){return a.zc(t),a.hc(2).onMonthSelected(e)})("dateSelected",function(e){return a.zc(t),a.hc(2).onMonthSelected(e)}),a.Ub(),a.Ub()}if(2&t){const t=a.wc(5),e=a.hc(2);a.Db(1),a.oc("matDatepicker",t)("min",e.first)("max",e.last)("ngModel",e.selectedValue),a.Db(2),a.oc("for",t),a.Db(1),a.oc("startAt",e.selectedValue)}}function M(t,e){if(1&t){const t=a.Wb();a.Vb(0,"mat-form-field",24),a.Vb(1,"input",25,26),a.dc("ngModelChange",function(e){return a.zc(t),a.hc(2).selectedValue=e}),a.Ub(),a.Qb(3,"mat-datepicker-toggle",21),a.Vb(4,"mat-datepicker",27,28),a.dc("yearSelected",function(e){return a.zc(t),a.hc(2).onYearSelected(e)})("monthSelected",function(e){return a.zc(t),a.hc(2).onYearSelected(e)})("dateSelected",function(e){return a.zc(t),a.hc(2).onYearSelected(e)}),a.Ub(),a.Ub()}if(2&t){const t=a.wc(5),e=a.hc(2);a.Db(1),a.oc("matDatepicker",t)("min",e.first)("max",e.last)("ngModel",e.selectedValue),a.Db(2),a.oc("for",t),a.Db(1),a.oc("startAt",e.selectedValue)}}function Y(t,e){if(1&t){const t=a.Wb();a.Vb(0,"div",10),a.Vb(1,"div",11),a.Vb(2,"mat-select",12),a.dc("ngModelChange",function(e){return a.zc(t),a.hc().selScrollRange=e})("selectionChange",function(e){return a.zc(t),a.hc().onRangeChanged(e)}),a.Ic(3,I,3,4,"mat-option",13),a.Ub(),a.Ub(),a.Vb(4,"div",14),a.Ic(5,A,6,6,"mat-form-field",15),a.Ic(6,M,6,6,"mat-form-field",16),a.Ub(),a.Ub()}if(2&t){const t=a.hc();a.oc("@sliderAnimation",t.animationDirection),a.Db(2),a.oc("ngModel",t.selScrollRange),a.Db(1),a.oc("ngForOf",t.scrollRanges),a.Db(2),a.oc("ngIf",t.selScrollRange===t.scrollRanges[0]),a.Db(1),a.oc("ngIf",t.selScrollRange===t.scrollRanges[1])}}let z=(()=>{class t{constructor(t){this.logger=t,this.scrollRanges=c.p,this.selScrollRange=this.scrollRanges[0],this.today=new Date(Date.now()),this.first=new Date(2018,0,1,0,0,0),this.last=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate(),0,0,0),this.disablePrev=!1,this.disableNext=!0,this.animationDirection="",this.selectedValue=this.last,this.stepChanged=new a.o}ngOnInit(){}onRangeChanged(t){this.selScrollRange=t.value,this.onStepChange("LAST")}onMonthSelected(t){this.selectedValue=t,this.onStepChange("SELECTED"),this.monthlyDatepicker.close()}onYearSelected(t){this.selectedValue=t,this.onStepChange("SELECTED"),this.yearlyDatepicker.close()}onStepChange(t){switch(this.logger.info(t),t){case"FIRST":this.animationDirection="backward",this.selectedValue!==this.first&&(this.selectedValue=this.first,this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange}));break;case"PREVIOUS":this.selectedValue=this.selScrollRange===c.p[1]?new Date(this.selectedValue.getFullYear()-1,0,1,0,0,0):new Date(this.selectedValue.getFullYear(),this.selectedValue.getMonth()-1,1,0,0,0),this.animationDirection="backward",this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange});break;case"NEXT":this.selectedValue=this.selScrollRange===c.p[1]?new Date(this.selectedValue.getFullYear()+1,0,1,0,0,0):new Date(this.selectedValue.getFullYear(),this.selectedValue.getMonth()+1,1,0,0,0),this.animationDirection="forward",this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange});break;case"LAST":this.animationDirection="forward",this.selectedValue=this.last,this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange});break;default:this.animationDirection="",this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange})}this.disablePrev=this.selScrollRange===c.p[1]?this.selectedValue.getFullYear()<=this.first.getFullYear():this.selectedValue.getFullYear()<=this.first.getFullYear()&&this.selectedValue.getMonth()<=this.first.getMonth(),this.disableNext=this.selScrollRange===c.p[1]?this.selectedValue.getFullYear()>=this.last.getFullYear():this.selectedValue.getFullYear()>=this.last.getFullYear()&&this.selectedValue.getMonth()>=this.last.getMonth(),this.logger.info(this.disablePrev),this.logger.info(this.disableNext),setTimeout(()=>{this.animationDirection=""},800)}onChartMouseUp(t){"monthlyDate"===t.srcElement.name?this.monthlyDatepicker.open():"yearlyDate"===t.srcElement.name&&this.yearlyDatepicker.open()}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(o.b))},t.\u0275cmp=a.Jb({type:t,selectors:[["rtl-horizontal-scroller"]],viewQuery:function(t,e){if(1&t&&(a.Pc(C,!0),a.Pc(U,!0)),2&t){let t;a.vc(t=a.ec())&&(e.monthlyDatepicker=t.first),a.vc(t=a.ec())&&(e.yearlyDatepicker=t.first)}},hostBindings:function(t,e){1&t&&a.dc("click",function(t){return e.onChartMouseUp(t)})},outputs:{stepChanged:"stepChanged"},decls:20,vars:5,consts:[["fxLayout","row","fxLayoutAlign","space-between stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","22"],["mat-icon-button","","color","primary","type","button","tabindex","1",1,"pr-4",3,"click"],["mat-icon-button","","color","primary","type","button","tabindex","2",3,"disabled","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","22"],["mat-icon-button","","color","primary","type","button","tabindex","5",1,"pr-4",3,"disabled","click"],["mat-icon-button","","color","primary","type","button","tabindex","6",3,"click"],["controlsPanel",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","56"],["fxFlex","50","fxLayoutAlign","center center","fxLayoutAlign.gt-xs","end center",1,"font-bold-700"],["fxFlex","80","fxFlex.gt-md","30","name","selScrlRange","placeholder","Range","tabindex","3",1,"font-bold-700",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","50","fxLayout","row","fxLayoutAlign","center center","fxLayoutAlign.gt-xs","start center"],["monthlyDate","","fxFlex","80","fxFlex.gt-md","30","fxLayoutAlign","center center",4,"ngIf"],["yearlyDate","","fxFlex","80","fxFlex.gt-md","30","fxLayoutAlign","center center",4,"ngIf"],[3,"value"],["monthlyDate","","fxFlex","80","fxFlex.gt-md","30","fxLayoutAlign","center center"],["matInput","","name","monthlyDate","tabindex","4","readonly","",3,"matDatepicker","min","max","ngModel","ngModelChange"],["monthlyDt","ngModel"],["matSuffix","",3,"for"],["startView","year",3,"startAt","monthSelected","dateSelected"],["monthlyDatepicker",""],["yearlyDate","","fxFlex","80","fxFlex.gt-md","30","fxLayoutAlign","center center"],["matInput","","name","yearlyDate","tabindex","4","readonly","",3,"matDatepicker","min","max","ngModel","ngModelChange"],["yearlyDt","ngModel"],["startView","multi-year",3,"startAt","yearSelected","monthSelected","dateSelected"],["yearlyDatepicker",""]],template:function(t,e){1&t&&(a.Vb(0,"div",0),a.Vb(1,"div",1),a.Vb(2,"button",2),a.dc("click",function(){return e.onStepChange("FIRST")}),a.Vb(3,"mat-icon"),a.Kc(4,"skip_previous"),a.Ub(),a.Ub(),a.Vb(5,"button",3),a.dc("click",function(){return e.onStepChange("PREVIOUS")}),a.Vb(6,"mat-icon"),a.Kc(7,"navigate_before"),a.Ub(),a.Ub(),a.Ub(),a.Ic(8,k,1,3,"ng-container",4),a.Ic(9,F,1,3,"ng-container",4),a.Ic(10,T,1,3,"ng-container",4),a.Vb(11,"div",5),a.Vb(12,"button",6),a.dc("click",function(){return e.onStepChange("NEXT")}),a.Vb(13,"mat-icon"),a.Kc(14,"navigate_next"),a.Ub(),a.Ub(),a.Vb(15,"button",7),a.dc("click",function(){return e.onStepChange("LAST")}),a.Vb(16,"mat-icon"),a.Kc(17,"skip_next"),a.Ub(),a.Ub(),a.Ub(),a.Ub(),a.Ic(18,Y,7,5,"ng-template",null,8,a.Jc)),2&t&&(a.Db(5),a.oc("disabled",e.disablePrev),a.Db(3),a.oc("ngIf","forward"===e.animationDirection),a.Db(1),a.oc("ngIf","backward"===e.animationDirection),a.Db(1),a.oc("ngIf",""===e.animationDirection),a.Db(2),a.oc("disabled",e.disableNext))},directives:[s.c,s.b,s.a,r.a,l.a,u.o,u.t,d.a,b.m,b.p,u.n,m.m,f.c,x,V.b,D.b,v.a,w.a,b.c,D.d,f.g,D.a,S],pipes:[u.x],styles:[""],data:{animation:[i.a]}}),t})()},Ysfc:function(t,e,n){"use strict";n.d(e,"a",function(){return v});var a=n("iELJ"),i=n("wHSu"),c=n("7nzP"),o=n("8Y7J"),s=n("cpEJ"),r=n("7o2P"),l=n("zHaW"),u=n("VDRc"),d=n("SVse"),b=n("ura0"),m=n("bwdU"),f=n("PDjf"),h=n("Nv++"),g=n("Dxy4"),p=n("BSbQ"),y=n("O4ig"),x=n("dEYt");function S(t,e){if(1&t&&(o.Vb(0,"div",13),o.Vb(1,"div",14),o.Vb(2,"h4",15),o.Kc(3,"Address Type"),o.Ub(),o.Vb(4,"span",20),o.Kc(5),o.Ub(),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(5),o.Lc(t.addressType)}}function V(t,e){1&t&&o.Qb(0,"mat-divider",17)}const D=function(t){return{"display-none":t}};let v=(()=>{class t{constructor(t,e,n,a,o){this.dialogRef=t,this.data=e,this.logger=n,this.commonService=a,this.snackBar=o,this.faReceipt=i.D,this.address="",this.addressType="",this.qrWidth=230,this.screenSize="",this.screenSizeEnum=c.q}ngOnInit(){this.address=this.data.address,this.addressType=this.data.addressType,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyAddress(t){this.snackBar.open("Generated address copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(a.f),o.Pb(a.a),o.Pb(s.b),o.Pb(r.a),o.Pb(l.b))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-on-chain-generated-address"]],decls:27,vars:22,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","65",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-2"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","2","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["autoFocus","","mat-flat-button","","color","primary","tabindex","1","type","submit","rtlClipboard","",3,"payload","copied"],[1,"foreground-secondary-text"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Qb(2,"qrcode",2),o.Ub(),o.Vb(3,"div",3),o.Vb(4,"mat-card-header",4),o.Vb(5,"div",5),o.Qb(6,"fa-icon",6),o.Vb(7,"span",7),o.Kc(8),o.Ub(),o.Ub(),o.Vb(9,"button",8),o.dc("click",function(){return e.onClose()}),o.Kc(10,"X"),o.Ub(),o.Ub(),o.Vb(11,"mat-card-content"),o.Vb(12,"div",9),o.Vb(13,"div",10),o.Qb(14,"qrcode",2),o.Ub(),o.Ic(15,S,6,1,"div",11),o.Ic(16,V,1,0,"mat-divider",12),o.Vb(17,"div",13),o.Vb(18,"div",14),o.Vb(19,"h4",15),o.Kc(20,"Address"),o.Ub(),o.Vb(21,"span",16),o.Kc(22),o.Ub(),o.Ub(),o.Ub(),o.Qb(23,"mat-divider",17),o.Vb(24,"div",18),o.Vb(25,"button",19),o.dc("copied",function(t){return e.onCopyAddress(t)}),o.Kc(26,"Copy Address"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(1),o.oc("ngClass",o.sc(18,D,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),o.Db(1),o.oc("qrdata",e.address)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),o.Db(4),o.oc("icon",e.faReceipt),o.Db(2),o.Lc(e.screenSize===e.screenSizeEnum.XS?"Address":"Generated Address"),o.Db(5),o.oc("ngClass",o.sc(20,D,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),o.Db(1),o.oc("qrdata",e.address)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),o.Db(1),o.oc("ngIf",""!==e.addressType),o.Db(1),o.oc("ngIf",""!==e.addressType),o.Db(6),o.Lc(e.address),o.Db(3),o.oc("payload",e.address))},directives:[u.c,u.b,u.a,d.m,b.a,m.a,f.c,h.a,g.a,f.b,d.o,p.a,y.a,x.a],styles:[""]}),t})()},d4ms:function(t,e,n){"use strict";n.d(e,"a",function(){return P});var a=n("5QHs"),i=n("LUZP"),c=n("OaSA"),o=n("7nzP"),s=n("/uX3"),r=n("8Y7J"),l=n("7o2P"),u=n("tqRt"),d=n("SVse"),b=n("VDRc"),m=n("Q2Ze"),f=n("e6WT"),h=n("s7LF"),g=n("aLe/"),p=n("ZTz/"),y=n("UhP/"),x=n("Dxy4"),S=n("ura0");function V(t,e){1&t&&(r.Vb(0,"th",27),r.Kc(1,"Date"),r.Ub())}function D(t,e){if(1&t&&(r.Vb(0,"td",28),r.Kc(1),r.ic(2,"uppercase"),r.ic(3,"date"),r.Ub()),2&t){const t=e.$implicit,n=r.hc();r.Db(1),r.Lc(r.jc(2,1,r.kc(3,3,null==t?null:t.date,n.dataRange===n.scrollRanges[1]?"MMM/yyyy":"dd/MMM/yyyy")))}}function v(t,e){1&t&&(r.Vb(0,"th",29),r.Kc(1,"Amount Paid (Sats)"),r.Ub())}function w(t,e){if(1&t&&(r.Vb(0,"td",28),r.Vb(1,"span",30),r.Kc(2),r.ic(3,"number"),r.Ub(),r.Ub()),2&t){const t=e.$implicit;r.Db(2),r.Lc(r.kc(3,1,null==t?null:t.amount_paid,"1.0-0"))}}function C(t,e){1&t&&(r.Vb(0,"th",29),r.Kc(1,"# Payments"),r.Ub())}function U(t,e){if(1&t&&(r.Vb(0,"td",28),r.Vb(1,"span",30),r.Kc(2),r.ic(3,"number"),r.Ub(),r.Ub()),2&t){const t=e.$implicit;r.Db(2),r.Lc(r.jc(3,1,null==t?null:t.num_payments))}}function L(t,e){1&t&&(r.Vb(0,"th",29),r.Kc(1,"Amount Received (Sats)"),r.Ub())}function k(t,e){if(1&t&&(r.Vb(0,"td",28),r.Vb(1,"span",30),r.Kc(2),r.ic(3,"number"),r.Ub(),r.Ub()),2&t){const t=e.$implicit;r.Db(2),r.Lc(r.kc(3,1,null==t?null:t.amount_received,"1.0-0"))}}function O(t,e){1&t&&(r.Vb(0,"th",29),r.Kc(1,"# Invoices"),r.Ub())}function F(t,e){if(1&t&&(r.Vb(0,"td",28),r.Vb(1,"span",30),r.Kc(2),r.ic(3,"number"),r.Ub(),r.Ub()),2&t){const t=e.$implicit;r.Db(2),r.Lc(r.jc(3,1,null==t?null:t.num_invoices))}}function R(t,e){if(1&t){const t=r.Wb();r.Vb(0,"th",31),r.Vb(1,"div",32),r.Vb(2,"mat-select",33),r.Qb(3,"mat-select-trigger"),r.Vb(4,"mat-option",34),r.dc("click",function(){return r.zc(t),r.hc().onDownloadCSV()}),r.Kc(5,"Download CSV"),r.Ub(),r.Ub(),r.Ub(),r.Ub()}}function T(t,e){if(1&t){const t=r.Wb();r.Vb(0,"td",35),r.Vb(1,"button",36),r.dc("click",function(){r.zc(t);const n=e.$implicit;return r.hc().onTransactionClick(n)}),r.Kc(2,"View Info"),r.Ub(),r.Ub()}}function I(t,e){1&t&&(r.Vb(0,"p"),r.Kc(1,"No transactions available."),r.Ub())}function A(t,e){if(1&t&&(r.Vb(0,"td",37),r.Ic(1,I,2,0,"p",38),r.Ub()),2&t){const t=r.hc();r.Db(1),r.oc("ngIf",!(null!=t.transactions&&t.transactions.data)||(null==t.transactions||null==t.transactions.data?null:t.transactions.data.length)<1)}}const M=function(t){return{"display-none":t}};function Y(t,e){if(1&t&&r.Qb(0,"tr",39),2&t){const t=r.hc();r.oc("ngClass",r.sc(1,M,(null==t.transactions?null:t.transactions.data)&&(null==t.transactions||null==t.transactions.data?null:t.transactions.data.length)>0))}}function z(t,e){1&t&&r.Qb(0,"tr",40)}function j(t,e){1&t&&r.Qb(0,"tr",41)}const E=function(){return["no_transaction"]};let P=(()=>{class t{constructor(t,e,n){this.commonService=t,this.store=e,this.datePipe=n,this.dataRange=o.p[0],this.dataList=[],this.filterValue="",this.scrollRanges=o.p,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=o.n,this.pageSizeOptions=o.o,this.screenSize="",this.screenSizeEnum=o.q,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.q.XS||this.screenSize===o.q.SM?(this.flgSticky=!1,this.displayedColumns=["date","amount_paid","amount_received","actions"]):this.screenSize===o.q.MD?(this.flgSticky=!1,this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_invoices","actions"]):(this.flgSticky=!0,this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_invoices","actions"])}ngAfterViewInit(){this.dataList&&this.dataList.length>0&&this.loadTransactionsTable(this.dataList)}ngOnChanges(t){t.dataList&&this.loadTransactionsTable(this.dataList),t.filterValue&&this.applyFilter()}onTransactionClick(t){const e=[[{key:"date",value:this.datePipe.transform(t.date,this.dataRange===o.p[1]?"MMM/yyyy":"dd/MMM/yyyy"),title:"Date",width:100,type:o.h.DATE}],[{key:"amount_paid",value:Math.round(t.amount_paid),title:"Amount Paid (Sats)",width:50,type:o.h.NUMBER},{key:"num_payments",value:t.num_payments,title:"# Payments",width:50,type:o.h.NUMBER}],[{key:"amount_received",value:Math.round(t.amount_received),title:"Amount Received (Sats)",width:50,type:o.h.NUMBER},{key:"num_invoices",value:t.num_invoices,title:"# Invoices",width:50,type:o.h.NUMBER}]];this.store.dispatch(new s.C({data:{type:o.b.INFORMATION,alertTitle:"Transaction Summary",message:e}}))}applyFilter(){this.transactions&&(this.transactions.filter=this.filterValue)}loadTransactionsTable(t){this.transactions=new c.o(t?[]:[...t]),this.transactions.data=t,this.transactions.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.transactions.sort=this.sort,this.transactions.paginator=this.paginator}onDownloadCSV(){this.transactions.data&&this.transactions.data.length>0&&this.commonService.downloadFile(this.dataList,"Transactions-report-"+this.dataRange.toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(l.a),r.Pb(u.h),r.Pb(d.e))},t.\u0275cmp=r.Jb({type:t,selectors:[["rtl-transactions-report-table"]],viewQuery:function(t,e){if(1&t&&(r.Pc(i.a,!0),r.Pc(a.a,!0)),2&t){let t;r.vc(t=r.ec())&&(e.sort=t.first),r.vc(t=r.ec())&&(e.paginator=t.first)}},inputs:{dataRange:"dataRange",dataList:"dataList",filterValue:"filterValue"},features:[r.Cb([{provide:a.b,useValue:Object(o.y)("Transactions")}]),r.Bb],decls:34,vars:10,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount_paid"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","num_payments"],["matColumnDef","amount_received"],["matColumnDef","num_invoices"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(r.Vb(0,"div",0),r.Vb(1,"div",1),r.Vb(2,"div",2),r.Qb(3,"div",3),r.Vb(4,"mat-form-field",4),r.Vb(5,"input",5),r.dc("ngModelChange",function(t){return e.filterValue=t})("input",function(){return e.applyFilter()})("keyup",function(){return e.applyFilter()}),r.Ub(),r.Ub(),r.Ub(),r.Vb(6,"div",6),r.Vb(7,"div",7),r.Vb(8,"table",8,9),r.Tb(10,10),r.Ic(11,V,2,0,"th",11),r.Ic(12,D,4,6,"td",12),r.Sb(),r.Tb(13,13),r.Ic(14,v,2,0,"th",14),r.Ic(15,w,4,4,"td",12),r.Sb(),r.Tb(16,15),r.Ic(17,C,2,0,"th",14),r.Ic(18,U,4,3,"td",12),r.Sb(),r.Tb(19,16),r.Ic(20,L,2,0,"th",14),r.Ic(21,k,4,4,"td",12),r.Sb(),r.Tb(22,17),r.Ic(23,O,2,0,"th",14),r.Ic(24,F,4,3,"td",12),r.Sb(),r.Tb(25,18),r.Ic(26,R,6,0,"th",19),r.Ic(27,T,3,0,"td",20),r.Sb(),r.Tb(28,21),r.Ic(29,A,2,1,"td",22),r.Sb(),r.Ic(30,Y,1,3,"tr",23),r.Ic(31,z,1,0,"tr",24),r.Ic(32,j,1,0,"tr",25),r.Ub(),r.Qb(33,"mat-paginator",26),r.Ub(),r.Ub(),r.Ub(),r.Ub()),2&t&&(r.Db(5),r.oc("ngModel",e.filterValue),r.Db(3),r.oc("dataSource",e.transactions),r.Db(22),r.oc("matFooterRowDef",r.rc(9,E)),r.Db(1),r.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),r.Db(1),r.oc("matRowDefColumns",e.displayedColumns),r.Db(1),r.oc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[b.c,b.a,b.b,m.c,f.b,h.c,h.m,h.p,g.b,c.n,i.a,c.c,c.i,c.b,c.e,c.g,c.k,c.m,a.a,c.h,i.b,c.a,p.a,p.c,y.m,x.a,c.d,d.o,c.f,d.m,S.a,c.j,c.l],pipes:[d.y,d.e,d.f],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})()},hNFU:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var a=n("s7LF"),i=n("8Y7J");let c=(()=>{class t{validate(t){return this.max?a.t.max(+this.max)(t):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["input","max",""]],inputs:{max:"max"},features:[i.Cb([{provide:a.j,useExisting:t,multi:!0}])]}),t})()},mNcL:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var a=n("GS7A");const i=[Object(a.m)("newlyAddedRowAnimation",[Object(a.j)("notAdded, void",Object(a.k)({transform:"translateX(0%)"})),Object(a.j)("added",Object(a.k)({transform:"translateX(100%)"})),Object(a.l)("added <=> notAdded",Object(a.e)("1000ms ease-out")),Object(a.l)("added <=> void",Object(a.e)("0ms ease-out"))])]},qmev:function(t,e,n){"use strict";n.d(e,"a",function(){return x});var a=n("XNiG"),i=n("SxV6"),c=n("1G5W"),o=n("7nzP"),s=n("8Y7J"),r=n("7o2P"),l=n("tqRt"),u=n("M9ds"),d=n("SVse"),b=n("VDRc"),m=n("ZFy/");function f(t,e){if(1&t&&(s.Vb(0,"span",7),s.Kc(1),s.ic(2,"number"),s.Ub()),2&t){const t=s.hc().$implicit;s.Db(1),s.Lc(s.jc(2,1,t.dataValue))}}function h(t,e){if(1&t&&(s.Vb(0,"span",7),s.Kc(1),s.ic(2,"number"),s.Ub()),2&t){const t=s.hc().$implicit,e=s.hc(2);s.Db(1),s.Lc(s.kc(2,1,t[e.currencyUnitEnum.BTC],e.currencyUnitFormats.BTC))}}function g(t,e){if(1&t&&(s.Vb(0,"span",7),s.Kc(1),s.ic(2,"number"),s.Ub()),2&t){const t=s.hc().$implicit,e=s.hc(2);s.Db(1),s.Lc(s.kc(2,1,t[e.currencyUnitEnum.OTHER],e.currencyUnitFormats.OTHER))}}function p(t,e){if(1&t&&(s.Vb(0,"div",4),s.Vb(1,"div",5),s.Kc(2),s.Ub(),s.Ic(3,f,3,3,"span",6),s.Ic(4,h,3,4,"span",6),s.Ic(5,g,3,4,"span",6),s.Ub()),2&t){const t=e.$implicit,n=s.hc().$implicit,a=s.hc();s.oc("matTooltip",t.tooltip)("matTooltipPosition","below"),s.Db(2),s.Lc(t.title),s.Db(1),s.oc("ngIf",n===a.currencyUnitEnum.SATS),s.Db(1),s.oc("ngIf",n===a.currencyUnitEnum.BTC),s.Db(1),s.oc("ngIf",a.fiatConversion&&n!==a.currencyUnitEnum.SATS&&n!==a.currencyUnitEnum.BTC)}}function y(t,e){if(1&t&&(s.Vb(0,"mat-tab",1),s.Vb(1,"div",2),s.Ic(2,p,6,6,"div",3),s.Ub(),s.Ub()),2&t){const t=e.$implicit,n=s.hc();s.pc("label",t),s.Db(2),s.oc("ngForOf",n.values)}}let x=(()=>{class t{constructor(t,e){this.commonService=t,this.store=e,this.values=[],this.currencyUnitEnum=o.g,this.currencyUnitFormats=o.f,this.currencyUnits=[],this.fiatConversion=!1,this.unSubs=[new a.a,new a.a]}ngOnInit(){this.store.select("root").pipe(Object(i.a)()).subscribe(t=>{this.fiatConversion=t.selNode.settings.fiatConversion,this.currencyUnits=t.selNode.settings.currencyUnits,this.fiatConversion||this.currencyUnits.splice(2,1),this.currencyUnits.length>1&&this.values[0].dataValue>=0&&this.getCurrencyValues(this.values)})}ngOnChanges(){this.currencyUnits.length>1&&this.values[0].dataValue>=0&&this.getCurrencyValues(this.values)}getCurrencyValues(t){t.forEach(t=>{t.dataValue>0?this.commonService.convertCurrency(t.dataValue,o.g.SATS,this.currencyUnits[2],this.fiatConversion).pipe(Object(c.a)(this.unSubs[1])).subscribe(e=>{t[o.g.BTC]=e.BTC,t[o.g.OTHER]=e.OTHER}):(t[o.g.BTC]=t.dataValue,t[o.g.OTHER]=t.dataValue)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(r.a),s.Pb(l.h))},t.\u0275cmp=s.Jb({type:t,selectors:[["rtl-currency-unit-converter"]],inputs:{values:"values"},features:[s.Bb],decls:2,vars:1,consts:[[3,"label",4,"ngFor","ngForOf"],[3,"label"],["fxLayout","row","fxFlex","100"],["fxLayout","column","class","cc-data-block",3,"matTooltip","matTooltipPosition",4,"ngFor","ngForOf"],["fxLayout","column",1,"cc-data-block",3,"matTooltip","matTooltipPosition"],[1,"cc-data-title"],["class","cc-data-value",4,"ngIf"],[1,"cc-data-value"]],template:function(t,e){1&t&&(s.Vb(0,"mat-tab-group"),s.Ic(1,y,3,2,"mat-tab",0),s.Ub()),2&t&&(s.Db(1),s.oc("ngForOf",e.currencyUnits))},directives:[u.b,d.n,u.a,b.c,b.a,m.a,d.o],pipes:[d.f],styles:[""]}),t})()},"twK/":function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return i});var a={prefix:"far",iconName:"frown",icon:[496,512,[],"f119","M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160-64c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-80 128c-40.2 0-78 17.7-103.8 48.6-8.5 10.2-7.1 25.3 3.1 33.8 10.2 8.4 25.3 7.1 33.8-3.1 16.6-19.9 41-31.4 66.9-31.4s50.3 11.4 66.9 31.4c8.1 9.7 23.1 11.9 33.8 3.1 10.2-8.5 11.5-23.6 3.1-33.8C326 321.7 288.2 304 248 304z"]},i={prefix:"far",iconName:"smile",icon:[496,512,[],"f118","M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z"]}}}]); \ No newline at end of file diff --git a/angular/3rdpartylicenses.txt b/angular/3rdpartylicenses.txt index 17d1adc6..8d7f2d56 100644 --- a/angular/3rdpartylicenses.txt +++ b/angular/3rdpartylicenses.txt @@ -1,28 +1,3 @@ -@angular-devkit/build-angular -MIT -The MIT License - -Copyright (c) 2017 Google, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - @angular/animations MIT @@ -264,19 +239,167 @@ MIT @ngrx/store-devtools MIT +@otplib/core +MIT +The MIT License (MIT) + +Copyright (c) 2014 Gerald Yeo + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@otplib/plugin-crypto +MIT +The MIT License (MIT) + +Copyright (c) 2014 Gerald Yeo + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@otplib/plugin-thirty-two +MIT +The MIT License (MIT) + +Copyright (c) 2014 Gerald Yeo + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@otplib/preset-default +MIT +The MIT License (MIT) + +Copyright (c) 2014 Gerald Yeo + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@swimlane/ngx-charts +MIT +MIT License + +Copyright (c) 2017 Swimlane + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + angular-user-idle MIT angularx-qrcode MIT -convert-hex - -convert-string - -core-js +asn1.js MIT -Copyright (c) 2014-2020 Denis Pushkarev +MIT License + +Copyright (c) 2017 Fedor Indutny + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +base64-js +MIT +The MIT License (MIT) + +Copyright (c) 2014 Jameson Little Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -297,6 +420,333 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +bn.js +MIT + +brorand +MIT + +browserify-aes +MIT +The MIT License (MIT) + +Copyright (c) 2014-2017 browserify-aes contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +browserify-cipher +MIT +The MIT License (MIT) + +Copyright (c) 2014-2017 Calvin Metcalf & contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +browserify-des +MIT +The MIT License (MIT) + +Copyright (c) 2014-2017 Calvin Metcalf, Fedor Indutny & contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +browserify-rsa +MIT +The MIT License (MIT) + +Copyright (c) 2014-2016 Calvin Metcalf & contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +browserify-sign +ISC +Copyright (c) 2014-2015 Calvin Metcalf and browserify-sign contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +buffer +MIT +The MIT License (MIT) + +Copyright (c) Feross Aboukhadijeh, and other contributors. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +buffer-xor +MIT +The MIT License (MIT) + +Copyright (c) 2015 Daniel Cousens + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +cipher-base +MIT +The MIT License (MIT) + +Copyright (c) 2017 crypto-browserify contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +convert-hex + +convert-string + +core-util-is +MIT +Copyright Node.js contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. + + +create-ecdh +MIT +The MIT License (MIT) + +Copyright (c) 2014-2017 createECDH contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +create-hash +MIT +The MIT License (MIT) + +Copyright (c) 2017 crypto-browserify contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +create-hmac +MIT +The MIT License (MIT) + +Copyright (c) 2017 crypto-browserify contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +crypto-browserify +MIT +The MIT License + +Copyright (c) 2013 Dominic Tarr + +Permission is hereby granted, free of charge, +to any person obtaining a copy of this software and +associated documentation files (the "Software"), to +deal in the Software without restriction, including +without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom +the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + css-loader MIT Copyright JS Foundation and other contributors @@ -321,6 +771,590 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +d3-array +BSD-3-Clause +Copyright 2010-2020 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-brush +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-color +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-dispatch +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-drag +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-ease +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +Copyright 2001 Robert Penner +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-format +BSD-3-Clause +Copyright 2010-2015 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-hierarchy +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-interpolate +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-path +BSD-3-Clause +Copyright 2015-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-scale +BSD-3-Clause +Copyright 2010-2015 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-selection +BSD-3-Clause +Copyright (c) 2010-2018, Michael Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* The name Michael Bostock may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-shape +BSD-3-Clause +Copyright 2010-2015 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-time +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-time-format +BSD-3-Clause +Copyright 2010-2017 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-timer +BSD-3-Clause +Copyright 2010-2016 Mike Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +d3-transition +BSD-3-Clause +Copyright (c) 2010-2015, Michael Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* The name Michael Bostock may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +TERMS OF USE - EASING EQUATIONS + +Open source under the BSD License. + +Copyright 2001 Robert Penner +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +- Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +- Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +- Neither the name of the author nor the names of contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +des.js +MIT + +diffie-hellman +MIT +Copyright (c) 2017 Calvin Metcalf + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + dijkstrajs MIT ``` @@ -344,6 +1378,60 @@ THE SOFTWARE. ``` +elliptic +MIT + +events +MIT +MIT + +Copyright Joyent, Inc. and other Node contributors. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. + + +evp_bytestokey +MIT +The MIT License (MIT) + +Copyright (c) 2017 crypto-browserify contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + hammerjs MIT The MIT License (MIT) @@ -369,11 +1457,130 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +hash-base +MIT +The MIT License (MIT) + +Copyright (c) 2016 Kirill Fomichev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +hash.js +MIT + +hmac-drbg +MIT + +ieee754 +BSD-3-Clause +Copyright 2008 Fair Oaks Labs, Inc. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +inherits +ISC +The ISC License + +Copyright (c) Isaac Z. Schlueter + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + + isarray MIT -MIT License -Copyright (c) 2013 Julian Gruber +md5.js +MIT +The MIT License (MIT) + +Copyright (c) 2016 Kirill Fomichev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +miller-rabin +MIT + +minimalistic-assert +ISC +Copyright 2015 Calvin Metcalf + +Permission to use, copy, modify, and/or distribute this software for any purpose +with or without fee is hereby granted, provided that the above copyright notice +and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +minimalistic-crypto-utils +MIT + +ngx-perfect-scrollbar +MIT + +otplib +MIT +The MIT License (MIT) + +Copyright (c) 2014 Gerald Yeo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -394,14 +1601,28 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -ngx-perfect-scrollbar -MIT +parse-asn1 +ISC +Copyright (c) 2017, crypto-browserify contributors -otplib +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +pbkdf2 MIT The MIT License (MIT) -Copyright (c) 2014 Gerald Yeo +Copyright (c) 2014 Daniel Cousens Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -445,25 +1666,58 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -qrcode +process MIT -The MIT License (MIT) +(The MIT License) -Copyright (c) 2012 Ryan Day +Copyright (c) 2013 Roman Shtylman -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -regenerator-runtime +process-nextick-args MIT -MIT License +# Copyright (c) 2015 Calvin Metcalf -Copyright (c) 2014-present, Facebook, Inc. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +**THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.** + + +public-encrypt +MIT +Copyright (c) 2017 Calvin Metcalf Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -484,6 +1738,121 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +qrcode +MIT +The MIT License (MIT) + +Copyright (c) 2012 Ryan Day + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +randombytes +MIT +MIT License + +Copyright (c) 2017 crypto-browserify + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +randomfill +MIT +MIT License + +Copyright (c) 2017 crypto-browserify + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +readable-stream +MIT +Node.js is licensed for use as follows: + +""" +Copyright Node.js contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + +This license applies to parts of Node.js originating from the +https://github.com/joyent/node repository: + +""" +Copyright Joyent, Inc. and other Node contributors. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + + resize-observer-polyfill MIT The MIT License (MIT) @@ -509,6 +1878,31 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +ripemd160 +MIT +The MIT License (MIT) + +Copyright (c) 2016 crypto-browserify + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + rxjs Apache-2.0 Apache License @@ -715,8 +2109,208 @@ Apache-2.0 +safe-buffer +MIT +The MIT License (MIT) + +Copyright (c) Feross Aboukhadijeh + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +safer-buffer +MIT +MIT License + +Copyright (c) 2018 Nikita Skovoroda + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +sha.js +(MIT AND BSD-3-Clause) +Copyright (c) 2013-2018 sha.js contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +Copyright (c) 1998 - 2009, Paul Johnston & Contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright notice, this +list of conditions and the following disclaimer in the documentation and/or +other materials provided with the distribution. + +Neither the name of the author nor the names of its contributors may be used to +endorse or promote products derived from this software without specific prior +written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + + sha256 +stream-browserify +MIT +This software is released under the MIT license: + +Copyright (c) James Halliday + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +string_decoder +MIT +Node.js is licensed for use as follows: + +""" +Copyright Node.js contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + +This license applies to parts of Node.js originating from the +https://github.com/joyent/node repository: + +""" +Copyright Joyent, Inc. and other Node contributors. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + + + +thirty-two +Copyright (c) 2011, Chris Umbel + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + tslib 0BSD Copyright (c) Microsoft Corporation. @@ -732,6 +2326,58 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +util-deprecate +MIT +(The MIT License) + +Copyright (c) 2014 Nathan Rajlich + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +webpack +MIT +Copyright JS Foundation and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + zone.js MIT The MIT License diff --git a/angular/5.3593974ed7a18cef9807.js b/angular/5.3593974ed7a18cef9807.js new file mode 100644 index 00000000..00f84da4 --- /dev/null +++ b/angular/5.3593974ed7a18cef9807.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{Ssnv:function(t,e,n){"use strict";n.r(e),n.d(e,"CLModule",function(){return Qr});var i=n("SVse"),a=n("iInd"),o=n("8Y7J"),s=n("BTe0");function c(t,e){1&t&&o.Qb(0,"mat-progress-bar",2)}function l(t,e){1&t&&o.Qb(0,"router-outlet")}let r=(()=>{class t{constructor(t){this.router=t,this.loading=!1,this.router.events.subscribe(t=>{switch(!0){case t instanceof a.e:this.loading=!0;break;case t instanceof a.c:case t instanceof a.b:case t instanceof a.d:this.loading=!1}})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(a.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-root"]],decls:2,vars:2,consts:[["color","primary","mode","indeterminate",4,"ngIf"],[4,"ngIf"],["color","primary","mode","indeterminate"]],template:function(t,e){1&t&&(o.Ic(0,c,1,0,"mat-progress-bar",0),o.Ic(1,l,1,0,"router-outlet",1)),2&t&&(o.oc("ngIf",e.loading),o.Db(1),o.oc("ngIf",!e.loading))},directives:[i.o,s.a,a.l],styles:[""]}),t})();var b=n("XNiG"),d=n("1G5W"),u=n("pLZG"),h=n("twK/"),m=n("wHSu"),f=n("7nzP"),p=n("LvnZ"),g=n("cpEJ"),y=n("tqRt"),v=n("7bNT"),x=n("7o2P"),w=n("VDRc"),V=n("Nv++"),U=n("40+f"),D=n("PDjf"),C=n("rJgo"),S=n("Dxy4"),L=n("Tj54"),I=n("ura0");const F=function(t){return{backgroundColor:t}};function k(t,e){if(1&t&&o.Qb(0,"span",6),2&t){const t=o.hc();o.oc("ngStyle",o.sc(1,F,"#"+t.information.color))}}function A(t,e){if(1&t&&(o.Vb(0,"div"),o.Vb(1,"h4",1),o.Kc(2,"Color"),o.Ub(),o.Vb(3,"div",2),o.Qb(4,"span",7),o.Kc(5),o.ic(6,"uppercase"),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(4),o.oc("ngStyle",o.sc(4,F,"#"+t.information.color)),o.Db(1),o.Mc(" ",o.jc(6,2,t.information.color)," ")}}function _(t,e){if(1&t&&(o.Vb(0,"span",2),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(t)}}let P=(()=>{class t{constructor(t){this.commonService=t,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(t=>{this.chains.push(this.commonService.titleCase(t.chain)+" "+this.commonService.titleCase(t.network))}))}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(x.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[o.Bb],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div"),o.Vb(2,"h4",1),o.Kc(3,"Alias"),o.Ub(),o.Vb(4,"div",2),o.Kc(5),o.Ic(6,k,1,3,"span",3),o.Ub(),o.Ub(),o.Ic(7,A,7,6,"div",4),o.Vb(8,"div"),o.Vb(9,"h4",1),o.Kc(10,"Implementation"),o.Ub(),o.Vb(11,"div",2),o.Kc(12),o.Ub(),o.Ub(),o.Vb(13,"div"),o.Vb(14,"h4",1),o.Kc(15,"Chain"),o.Ub(),o.Ic(16,_,2,1,"span",5),o.Ub(),o.Ub()),2&t&&(o.Db(5),o.Mc(" ",e.information.alias," "),o.Db(1),o.oc("ngIf",!e.showColorFieldSeparately),o.Db(1),o.oc("ngIf",e.showColorFieldSeparately),o.Db(5),o.Lc(e.information.lnImplementation||e.information.version?e.information.lnImplementation+" "+e.information.version:""),o.Db(4),o.oc("ngForOf",e.chains))},directives:[w.c,w.a,w.b,i.o,i.n,i.p,I.b],pipes:[i.y],styles:[""]}),t})(),T=(()=>{class t{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-balances-info"]],inputs:{balances:"balances"},decls:21,vars:11,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div"),o.Vb(2,"h4",1),o.Kc(3,"Lightning"),o.Ub(),o.Vb(4,"div",2),o.Kc(5),o.ic(6,"number"),o.Ub(),o.Qb(7,"mat-progress-bar",3),o.Ub(),o.Vb(8,"div"),o.Vb(9,"h4",1),o.Kc(10,"On-chain"),o.Ub(),o.Vb(11,"div",2),o.Kc(12),o.ic(13,"number"),o.Ub(),o.Qb(14,"mat-progress-bar",3),o.Ub(),o.Vb(15,"div"),o.Vb(16,"h4",1),o.Kc(17,"Total"),o.Ub(),o.Vb(18,"div",2),o.Kc(19),o.ic(20,"number"),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(5),o.Mc("",o.jc(6,5,e.balances.lightning)," Sats"),o.Db(2),o.pc("value",e.balances.lightning/e.balances.total*100),o.Db(5),o.Mc("",o.jc(13,7,e.balances.onchain)," Sats"),o.Db(2),o.pc("value",e.balances.onchain/e.balances.total*100),o.Db(5),o.Mc("",o.jc(20,9,e.balances.total)," Sats"))},directives:[w.c,w.a,w.b,s.a],pipes:[i.f],styles:[""]}),t})();var K=n("Q2Ze"),R=n("ZFy/"),M=n("BSbQ"),O=n("aLe/");function E(t,e){if(1&t&&(o.Vb(0,"div",17),o.Vb(1,"span",18),o.Kc(2),o.ic(3,"slice"),o.Ub(),o.Vb(4,"div",3),o.Vb(5,"mat-hint",19),o.Vb(6,"strong",5),o.Kc(7,"Local:"),o.Ub(),o.Kc(8),o.ic(9,"number"),o.Ub(),o.Vb(10,"mat-hint",20),o.Qb(11,"fa-icon",21),o.Kc(12),o.ic(13,"number"),o.Ub(),o.Vb(14,"mat-hint",22),o.Vb(15,"strong",5),o.Kc(16,"Remote:"),o.Ub(),o.Kc(17),o.ic(18,"number"),o.Ub(),o.Ub(),o.Qb(19,"mat-progress-bar",23),o.Ub()),2&t){const t=e.$implicit,n=o.hc(2);o.Db(1),o.pc("matTooltip",t.alias||t.id),o.pc("matTooltipDisabled",(t.alias||t.id).length<26),o.Db(1),o.Nc("",o.lc(3,9,t.alias||t.id,0,24),"",(t.alias||t.id).length>25?"...":"",""),o.Db(6),o.Mc("",o.kc(9,13,t.msatoshi_to_us/1e3||0,"1.0-0")," Sats"),o.Db(3),o.oc("icon",n.faBalanceScale),o.Db(1),o.Mc(" (",o.jc(13,16,t.balancedness||0),") "),o.Db(5),o.Mc("",o.kc(18,18,t.msatoshi_to_them/1e3||0,"1.0-0")," Sats"),o.Db(2),o.pc("value",t.msatoshi_to_us&&t.msatoshi_to_us>0?+t.msatoshi_to_us/(+t.msatoshi_to_us+ +t.msatoshi_to_them)*100:0)}}function z(t,e){if(1&t&&(o.Vb(0,"div",15),o.Ic(1,E,20,21,"div",16),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("ngForOf",t.allChannels)}}function B(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",24),o.Kc(1," No channels available. "),o.Vb(2,"button",25),o.dc("click",function(){return o.zc(t),o.hc().goToChannels()}),o.Kc(3,"Open Channel"),o.Ub(),o.Ub()}}let N=(()=>{class t{constructor(t){this.router=t,this.faBalanceScale=m.d,this.faDumbbell=m.l,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/cl/connections")}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(a.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy"},decls:26,vars:15,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"span",2),o.Kc(3,"Total Capacity"),o.Ub(),o.Vb(4,"div",3),o.Vb(5,"mat-hint",4),o.Vb(6,"strong",5),o.Kc(7,"Local:"),o.Ub(),o.Kc(8),o.ic(9,"number"),o.Ub(),o.Vb(10,"mat-hint",6),o.Qb(11,"fa-icon",7),o.Kc(12),o.ic(13,"number"),o.Ub(),o.Vb(14,"mat-hint",8),o.Vb(15,"strong",5),o.Kc(16,"Remote:"),o.Ub(),o.Kc(17),o.ic(18,"number"),o.Ub(),o.Ub(),o.Qb(19,"mat-progress-bar",9),o.Ub(),o.Vb(20,"div",10),o.Qb(21,"mat-divider",11),o.Ub(),o.Vb(22,"div",12),o.Ic(23,z,2,1,"div",13),o.Ub(),o.Ub(),o.Ic(24,B,4,0,"ng-template",null,14,o.Jc)),2&t){const t=o.wc(25);o.Db(8),o.Mc("",o.kc(9,7,e.channelBalances.localBalance||0,"1.0-0")," Sats"),o.Db(3),o.oc("icon",e.faBalanceScale),o.Db(1),o.Mc(" (",o.jc(13,10,(null==e.channelBalances?null:e.channelBalances.balancedness)||0),") "),o.Db(5),o.Mc("",o.kc(18,12,e.channelBalances.remoteBalance||0,"1.0-0")," Sats"),o.Db(2),o.pc("value",e.channelBalances.localBalance&&e.channelBalances.localBalance>0?+e.channelBalances.localBalance/(+e.channelBalances.localBalance+ +e.channelBalances.remoteBalance)*100:0),o.Db(4),o.oc("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",t)}},directives:[w.c,w.b,w.a,K.f,V.a,R.a,s.a,M.a,O.b,i.o,i.n,S.a],pipes:[i.f,i.w],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),t})(),q=(()=>{class t{constructor(){this.totalFees=[{name:"Total",value:0}]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-fee-info"]],inputs:{fees:"fees"},decls:14,vars:6,consts:[["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div"),o.Vb(2,"h4",1),o.Kc(3,"Total"),o.Ub(),o.Vb(4,"div",2),o.Kc(5),o.ic(6,"number"),o.Ub(),o.Ub(),o.Ub(),o.Vb(7,"div",0),o.Vb(8,"div"),o.Vb(9,"h4",1),o.Kc(10,"Transactions"),o.Ub(),o.Vb(11,"div",2),o.Kc(12),o.ic(13,"number"),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(5),o.Mc("",o.jc(6,2,(null==e.fees?null:e.fees.feeCollected)/1e3)," Sats"),o.Db(7),o.Lc(o.jc(13,4,null==e.fees?null:e.fees.totalTxCount)))},directives:[w.c,w.a,w.b],pipes:[i.f],styles:[""]}),t})(),Q=(()=>{class t{constructor(){this.channelsStatus={}}ngOnChanges(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus"},features:[o.Bb],decls:41,vars:18,consts:[["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div"),o.Vb(2,"h4",1),o.Kc(3,"Active"),o.Ub(),o.Vb(4,"div",2),o.Qb(5,"span",3),o.Kc(6),o.ic(7,"number"),o.Ub(),o.Ub(),o.Vb(8,"div"),o.Vb(9,"h4",1),o.Kc(10,"Pending"),o.Ub(),o.Vb(11,"div",2),o.Qb(12,"span",4),o.Kc(13),o.ic(14,"number"),o.Ub(),o.Ub(),o.Vb(15,"div"),o.Vb(16,"h4",1),o.Kc(17,"Inactive"),o.Ub(),o.Vb(18,"div",2),o.Qb(19,"span",5),o.Kc(20),o.ic(21,"number"),o.Ub(),o.Ub(),o.Ub(),o.Vb(22,"div",0),o.Vb(23,"div"),o.Vb(24,"h4",1),o.Kc(25,"Capacity"),o.Ub(),o.Vb(26,"div",2),o.Kc(27),o.ic(28,"number"),o.Ub(),o.Ub(),o.Vb(29,"div"),o.Vb(30,"h4",1),o.Kc(31,"Capacity"),o.Ub(),o.Vb(32,"div",2),o.Kc(33),o.ic(34,"number"),o.Ub(),o.Ub(),o.Vb(35,"div"),o.Vb(36,"h4",1),o.Kc(37,"Capacity"),o.Ub(),o.Vb(38,"div",2),o.Kc(39),o.ic(40,"number"),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(6),o.Lc(o.jc(7,6,e.channelsStatus.active.channels||0)),o.Db(7),o.Lc(o.jc(14,8,e.channelsStatus.pending.channels||0)),o.Db(7),o.Lc(o.jc(21,10,e.channelsStatus.inactive.channels||0)),o.Db(7),o.Mc("",o.jc(28,12,e.channelsStatus.active.capacity||0)," Sats"),o.Db(6),o.Mc("",o.jc(34,14,e.channelsStatus.pending.capacity||0)," Sats"),o.Db(6),o.Mc("",o.jc(40,16,e.channelsStatus.inactive.capacity||0)," Sats"))},directives:[w.c,w.a,w.b],pipes:[i.f],styles:[""]}),t})();function H(t,e){if(1&t&&(o.Vb(0,"mat-hint",17),o.Vb(1,"strong",18),o.Kc(2,"Capacity: "),o.Ub(),o.Kc(3),o.ic(4,"number"),o.Ub()),2&t){const t=o.hc().$implicit;o.Db(3),o.Mc("",o.kc(4,1,t.msatoshi_to_them/1e3||0,"1.0-0")," Sats")}}function j(t,e){if(1&t&&(o.Vb(0,"mat-hint",17),o.Vb(1,"strong",18),o.Kc(2,"Capacity: "),o.Ub(),o.Kc(3),o.ic(4,"number"),o.Ub()),2&t){const t=o.hc().$implicit;o.Db(3),o.Mc("",o.kc(4,1,t.msatoshi_to_us/1e3||0,"1.0-0")," Sats")}}function $(t,e){if(1&t&&o.Qb(0,"mat-progress-bar",19),2&t){const t=o.hc().$implicit,e=o.hc(2);o.pc("value",e.totalLiquidity>0?(+t.msatoshi_to_them/1e3||0)/e.totalLiquidity*100:0)}}function G(t,e){if(1&t&&o.Qb(0,"mat-progress-bar",19),2&t){const t=o.hc().$implicit,e=o.hc(2);o.pc("value",e.totalLiquidity>0?(+t.msatoshi_to_us/1e3||0)/e.totalLiquidity*100:0)}}function X(t,e){if(1&t&&(o.Vb(0,"div",12),o.Vb(1,"span",13),o.Kc(2),o.ic(3,"slice"),o.Ub(),o.Vb(4,"div",14),o.Ic(5,H,5,4,"mat-hint",15),o.Ic(6,j,5,4,"mat-hint",15),o.Ub(),o.Ic(7,$,1,1,"mat-progress-bar",16),o.Ic(8,G,1,1,"mat-progress-bar",16),o.Ub()),2&t){const t=e.$implicit,n=o.hc(2);o.Db(1),o.pc("matTooltip",t.alias||t.id),o.pc("matTooltipDisabled",(t.alias||t.id).length<26),o.Db(1),o.Nc("",o.lc(3,8,t.alias||t.id,0,24),"",(t.alias||t.id).length>25?"...":"",""),o.Db(3),o.oc("ngIf","In"===n.direction),o.Db(1),o.oc("ngIf","Out"===n.direction),o.Db(1),o.oc("ngIf","In"===n.direction),o.Db(1),o.oc("ngIf","Out"===n.direction)}}function W(t,e){if(1&t&&(o.Vb(0,"div",10),o.Ic(1,X,9,12,"div",11),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("ngForOf",t.allChannels)}}function J(t,e){if(1&t){const t=o.Wb();o.Vb(0,"button",22),o.dc("click",function(){return o.zc(t),o.hc(2).goToChannels()}),o.Kc(1,"Open Channel"),o.Ub()}}function Y(t,e){if(1&t&&(o.Vb(0,"div",20),o.Kc(1," No channels available. "),o.Ic(2,J,2,0,"button",21),o.Ub()),2&t){const t=o.hc();o.Db(2),o.oc("ngIf","Out"===t.direction)}}const Z=function(t,e,n){return{"mb-4":t,"mb-2":e,"mb-1":n}};let tt=(()=>{class t{constructor(t,e){this.router=t,this.commonService=e,this.screenSize="",this.screenSizeEnum=f.q}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/cl/connections")}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(a.g),o.Pb(x.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels"},decls:14,vars:11,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["fxLayout","column","fxFlex.gt-sm","88","fxFlex","84","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","class","w-100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["fxLayout","column","fxFlex","100",1,"w-100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","100","fxLayoutAlign","start center","class","font-size-90 color-primary",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"span",2),o.Kc(3,"Total Capacity"),o.Ub(),o.Vb(4,"mat-hint",3),o.Kc(5),o.ic(6,"number"),o.Ub(),o.Qb(7,"mat-progress-bar",4),o.Ub(),o.Vb(8,"div",5),o.Qb(9,"mat-divider",6),o.Ub(),o.Vb(10,"div",7),o.Ic(11,W,2,1,"div",8),o.Ub(),o.Ub(),o.Ic(12,Y,3,1,"ng-template",null,9,o.Jc)),2&t){const t=o.wc(13);o.oc("ngClass",o.uc(7,Z,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM,e.screenSize===e.screenSizeEnum.MD,e.screenSize===e.screenSizeEnum.LG||e.screenSize===e.screenSizeEnum.XL)),o.Db(5),o.Mc("",o.kc(6,4,e.totalLiquidity,"1.0-0")," Sats"),o.Db(6),o.oc("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",t)}},directives:[w.c,w.b,w.a,i.m,I.a,K.f,s.a,M.a,O.b,i.o,i.n,R.a,S.a],pipes:[i.f,i.w],styles:[""]}),t})();var et=n("M9ds"),nt=n("5QHs"),it=n("LUZP"),at=n("OaSA"),ot=n("iELJ"),st=n("/uX3"),ct=n("s7LF"),lt=n("e6WT"),rt=n("O4ig"),bt=n("B0X+"),dt=n("ZTz/"),ut=n("jMqV"),ht=n("UhP/");function mt(t,e){if(1&t&&(o.Vb(0,"mat-option",26),o.Kc(1),o.ic(2,"titlecase"),o.Ub()),2&t){const t=e.$implicit;o.oc("value",t),o.Db(1),o.Lc(o.jc(2,2,t))}}function ft(t,e){if(1&t&&(o.Vb(0,"span"),o.Kc(1),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Lc(t.invoiceError)}}function pt(t,e){if(1&t&&(o.Vb(0,"div",27),o.Qb(1,"fa-icon",28),o.Ic(2,ft,2,1,"span",29),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("icon",t.faExclamationTriangle),o.Db(1),o.oc("ngIf",""!==t.invoiceError)}}let gt=(()=>{class t{constructor(t,e,n,i,a,o){this.dialogRef=t,this.data=e,this.store=n,this.decimalPipe=i,this.commonService=a,this.actions$=o,this.faExclamationTriangle=m.o,this.selNode={},this.description="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=f.n,this.timeUnitEnum=f.v,this.timeUnits=f.t,this.selTimeUnit=f.v.SECS,this.invoiceError="",this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select("cl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{this.selNode=t.nodeSettings,this.information=t.information}),this.actions$.pipe(Object(d.a)(this.unSubs[1]),Object(u.a)(t=>t.type===p.o||t.type===p.v)).subscribe(t=>{t.type===p.v&&this.dialogRef.close(),t.type===p.o&&"SaveNewInvoice"===t.payload.action&&(this.invoiceError=t.payload.message)})}onAddInvoice(t){this.invoiceError="",this.invoiceValue||(this.invoiceValue=0);let e=this.expiry?this.expiry:3600;this.selTimeUnit!==f.v.SECS&&(e=this.commonService.convertTime(this.expiry,this.selTimeUnit,f.v.SECS)),this.store.dispatch(new st.F("Adding Invoice...")),this.store.dispatch(new p.xb({label:"ulbl"+Math.random().toString(36).slice(2)+Date.now(),amount:1e3*this.invoiceValue,description:this.description,expiry:e,private:this.private}))}resetData(){this.description="",this.invoiceValue=void 0,this.private=!1,this.expiry=void 0,this.invoiceValueHint="",this.selTimeUnit=f.v.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,f.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(d.a)(this.unSubs[2])).subscribe(t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,f.f.OTHER)+" "+t.unit}))}onTimeUnitChange(t){this.expiry&&this.selTimeUnit!==t.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,t.value)),this.selTimeUnit=t.value}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(ot.f),o.Pb(ot.a),o.Pb(y.h),o.Pb(i.f),o.Pb(x.a),o.Pb(v.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-create-invoices"]],decls:37,vars:18,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"mt-5px"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","2","name","description",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","tabindex","3","name","invoiceValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","30"],["matInput","","name","expiry","placeholder","Expiry","type","number","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fxFlex","26"],["tabindex","5","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","50","fxLayoutAlign","start center",1,"mt-2"],["tabindex","6","color","primary","matTooltip","Include routing hints for private channels","name","private",3,"ngModel","matTooltipPosition","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"mat-card-header",2),o.Vb(3,"div",3),o.Vb(4,"span",4),o.Kc(5,"Create Invoice"),o.Ub(),o.Ub(),o.Vb(6,"button",5),o.Kc(7,"X"),o.Ub(),o.Ub(),o.Vb(8,"mat-card-content",6),o.Vb(9,"form",7,8),o.Vb(11,"mat-form-field",9),o.Vb(12,"input",10),o.dc("ngModelChange",function(t){return e.description=t}),o.Ub(),o.Ub(),o.Vb(13,"div",11),o.Vb(14,"mat-form-field",12),o.Vb(15,"input",13),o.dc("ngModelChange",function(t){return e.invoiceValue=t})("keyup",function(){return e.onInvoiceValueChange()}),o.Ub(),o.Vb(16,"span",14),o.Kc(17),o.Ub(),o.Vb(18,"mat-hint"),o.Kc(19),o.Ub(),o.Ub(),o.Vb(20,"mat-form-field",15),o.Vb(21,"input",16),o.dc("ngModelChange",function(t){return e.expiry=t}),o.Ub(),o.Vb(22,"span",14),o.Kc(23),o.ic(24,"titlecase"),o.Ub(),o.Ub(),o.Vb(25,"mat-form-field",17),o.Vb(26,"mat-select",18),o.dc("selectionChange",function(t){return e.onTimeUnitChange(t)}),o.Ic(27,mt,3,4,"mat-option",19),o.Ub(),o.Ub(),o.Ub(),o.Vb(28,"div",20),o.Vb(29,"mat-slide-toggle",21),o.dc("ngModelChange",function(t){return e.private=t}),o.Kc(30,"Private Routing Hints"),o.Ub(),o.Ub(),o.Ic(31,pt,3,2,"div",22),o.Vb(32,"div",23),o.Vb(33,"button",24),o.dc("click",function(){return e.resetData()}),o.Kc(34,"Clear Field"),o.Ub(),o.Vb(35,"button",25),o.dc("click",function(){o.zc(t);const n=o.wc(10);return e.onAddInvoice(n)}),o.Kc(36,"Create Invoice"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()}2&t&&(o.Db(6),o.oc("mat-dialog-close",!1),o.Db(6),o.oc("ngModel",e.description),o.Db(3),o.oc("ngModel",e.invoiceValue)("step",100)("min",1),o.Db(2),o.Mc(" ",null==e.information?null:e.information.smaller_currency_unit," "),o.Db(2),o.Lc(e.invoiceValueHint),o.Db(2),o.oc("ngModel",e.expiry)("step",e.selTimeUnit===e.timeUnitEnum.SECS?300:e.selTimeUnit===e.timeUnitEnum.MINS?10:e.selTimeUnit===e.timeUnitEnum.HOURS?2:1)("min",1),o.Db(2),o.Mc(" ",o.jc(24,16,e.selTimeUnit)," "),o.Db(3),o.oc("value",e.selTimeUnit),o.Db(1),o.oc("ngForOf",e.timeUnits),o.Db(2),o.oc("ngModel",e.private)("matTooltipPosition","above"),o.Db(2),o.oc("ngIf",""!==e.invoiceError))},directives:[w.c,w.a,D.c,w.b,S.a,ot.d,D.b,ct.u,ct.n,ct.o,K.c,lt.b,ct.c,rt.a,ct.m,ct.p,ct.q,bt.a,K.g,K.f,dt.a,i.n,ut.a,R.a,i.o,ht.m,V.a],pipes:[i.x],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})();var yt=n("4r19"),vt=n("mNcL"),xt=n("X9mX");function wt(t,e){if(1&t){const t=o.Wb();o.Vb(0,"form",4,5),o.Vb(2,"mat-form-field",6),o.Vb(3,"input",7),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().description=e}),o.Ub(),o.Ub(),o.Vb(4,"mat-form-field",8),o.Vb(5,"input",9),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().invoiceValue=e})("keyup",function(){return o.zc(t),o.hc().onInvoiceValueChange()}),o.Ub(),o.Vb(6,"span",10),o.Kc(7),o.Ub(),o.Vb(8,"mat-hint"),o.Kc(9),o.Ub(),o.Ub(),o.Vb(10,"div",11),o.Vb(11,"button",12),o.dc("click",function(){return o.zc(t),o.hc().resetData()}),o.Kc(12,"Clear Field"),o.Ub(),o.Vb(13,"button",13),o.dc("click",function(){o.zc(t);const e=o.wc(1);return o.hc().onAddInvoice(e)}),o.Kc(14,"Create Invoice"),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=o.hc();o.Db(3),o.oc("ngModel",t.description),o.Db(2),o.oc("ngModel",t.invoiceValue)("step",100)("min",1),o.Db(2),o.Mc(" ",null==t.information?null:t.information.smaller_currency_unit," "),o.Db(2),o.Lc(t.invoiceValueHint)}}function Vt(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",14),o.Vb(1,"button",15),o.dc("click",function(){return o.zc(t),o.hc().onDeleteExpiredInvoices()}),o.Kc(2,"Delete Expired"),o.Ub(),o.Vb(3,"button",16),o.dc("click",function(){return o.zc(t),o.hc().openCreateInvoiceModal()}),o.Kc(4,"Create Invoice"),o.Ub(),o.Ub()}}function Ut(t,e){1&t&&o.Qb(0,"mat-progress-bar",45)}function Dt(t,e){1&t&&(o.Vb(0,"th",46),o.Kc(1," Expiry Date "),o.Ub())}const Ct=function(t){return{"mr-0":t}};function St(t,e){if(1&t&&o.Qb(0,"span",50),2&t){const t=o.hc(3);o.oc("ngClass",o.sc(1,Ct,t.screenSize===t.screenSizeEnum.XS))}}function Lt(t,e){if(1&t&&o.Qb(0,"span",51),2&t){const t=o.hc(3);o.oc("ngClass",o.sc(1,Ct,t.screenSize===t.screenSizeEnum.XS))}}function It(t,e){if(1&t&&(o.Vb(0,"td",47),o.Ic(1,St,1,3,"span",48),o.Ic(2,Lt,1,3,"span",49),o.Kc(3),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.oc("ngIf","paid"===t.status),o.Db(1),o.oc("ngIf","paid"!==t.status),o.Db(1),o.Mc(" ",t.expires_at_str," ")}}function Ft(t,e){1&t&&(o.Vb(0,"th",46),o.Kc(1," Date Settled "),o.Ub())}function kt(t,e){if(1&t&&(o.Vb(0,"td",47),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(t.paid_at_str||"-")}}function At(t,e){1&t&&(o.Vb(0,"th",46),o.Kc(1," Description "),o.Ub())}const _t=function(t){return{"max-width":t}};function Pt(t,e){if(1&t&&(o.Vb(0,"td",47),o.Vb(1,"div",52),o.Vb(2,"span",53),o.Kc(3),o.Ub(),o.Ub(),o.Ub()),2&t){const t=e.$implicit,n=o.hc(2);o.Db(1),o.oc("ngStyle",o.sc(2,_t,n.screenSize===n.screenSizeEnum.XS?"10rem":"32rem")),o.Db(2),o.Lc(t.description)}}function Tt(t,e){1&t&&(o.Vb(0,"th",54),o.Kc(1," Amount (Sats) "),o.Ub())}function Kt(t,e){if(1&t&&(o.Vb(0,"td",47),o.Vb(1,"span",55),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.kc(3,1,t.msatoshi/1e3,t.msatoshi<1e3?"1.0-4":"1.0-0"),"")}}function Rt(t,e){1&t&&(o.Vb(0,"th",54),o.Kc(1," Amount Settled (Sats) "),o.Ub())}function Mt(t,e){if(1&t&&(o.Vb(0,"td",47),o.Vb(1,"span",55),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.kc(3,1,t.msatoshi_received/1e3,t.msatoshi_received<1e3?"1.0-4":"1.0-0"),"")}}function Ot(t,e){if(1&t){const t=o.Wb();o.Vb(0,"th",56),o.Vb(1,"div",57),o.Vb(2,"mat-select",58),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",59),o.dc("click",function(){return o.zc(t),o.hc(2).onDownloadCSV()}),o.Kc(5,"Download CSV"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}const Et=function(t){return{"px-3":t}};function zt(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",60),o.Vb(1,"button",61),o.dc("click",function(n){o.zc(t);const i=e.$implicit;return o.hc(2).onInvoiceClick(i,n)}),o.Kc(2,"View Info"),o.Ub(),o.Ub()}if(2&t){const t=o.hc(2);o.oc("ngClass",o.sc(1,Et,t.screenSize!==t.screenSizeEnum.XS))}}function Bt(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No invoices available."),o.Ub())}function Nt(t,e){if(1&t&&(o.Vb(0,"td",62),o.Ic(1,Bt,2,0,"p",63),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.oc("ngIf",!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)}}const qt=function(t){return{"display-none":t}};function Qt(t,e){if(1&t&&o.Qb(0,"tr",64),2&t){const t=o.hc(2);o.oc("ngClass",o.sc(1,qt,(null==t.invoices?null:t.invoices.data)&&(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)>0))}}function Ht(t,e){1&t&&o.Qb(0,"tr",65)}function jt(t,e){if(1&t&&o.Qb(0,"tr",66),2&t){const t=e.$implicit,n=o.hc(2);o.oc("@newlyAddedRowAnimation",t.label==n.newlyAddedInvoiceMemo&&t.value==n.newlyAddedInvoiceValue&&n.flgAnimate?"added":"notAdded")}}const $t=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},Gt=function(){return["no_invoice"]};function Xt(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",17),o.Vb(1,"div",18),o.Vb(2,"div",19),o.Qb(3,"fa-icon",20),o.Vb(4,"span",21),o.Kc(5,"Invoices History"),o.Ub(),o.Ub(),o.Vb(6,"mat-form-field",22),o.Vb(7,"input",23),o.dc("keyup",function(e){return o.zc(t),o.hc().applyFilter(e.target)}),o.Ub(),o.Ub(),o.Ub(),o.Vb(8,"div",24),o.Ic(9,Ut,1,0,"mat-progress-bar",25),o.Vb(10,"table",26,27),o.Tb(12,28),o.Ic(13,Dt,2,0,"th",29),o.Ic(14,It,4,3,"td",30),o.Sb(),o.Tb(15,31),o.Ic(16,Ft,2,0,"th",29),o.Ic(17,kt,2,1,"td",30),o.Sb(),o.Tb(18,32),o.Ic(19,At,2,0,"th",29),o.Ic(20,Pt,4,4,"td",30),o.Sb(),o.Tb(21,33),o.Ic(22,Tt,2,0,"th",34),o.Ic(23,Kt,4,4,"td",30),o.Sb(),o.Tb(24,35),o.Ic(25,Rt,2,0,"th",34),o.Ic(26,Mt,4,4,"td",30),o.Sb(),o.Tb(27,36),o.Ic(28,Ot,6,0,"th",37),o.Ic(29,zt,3,3,"td",38),o.Sb(),o.Tb(30,39),o.Ic(31,Nt,2,1,"td",40),o.Sb(),o.Ic(32,Qt,1,3,"tr",41),o.Ic(33,Ht,1,0,"tr",42),o.Ic(34,jt,1,1,"tr",43),o.Ub(),o.Ub(),o.Qb(35,"mat-paginator",44),o.Ub()}if(2&t){const t=o.hc();o.Db(3),o.oc("icon",t.faHistory),o.Db(6),o.oc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.oc("dataSource",t.invoices)("ngClass",o.sc(11,$t,"error"===t.flgLoading[0])),o.Db(22),o.oc("matFooterRowDef",o.rc(13,Gt)),o.Db(1),o.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.oc("matRowDefColumns",t.displayedColumns),o.Db(1),o.oc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Wt=(()=>{class t{constructor(t,e,n,i,a){this.logger=t,this.store=e,this.decimalPipe=n,this.commonService=i,this.rtlEffects=a,this.calledFrom="transactions",this.faHistory=m.r,this.selNode={},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.flgAnimate=!0,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoiceJSONArr=[],this.information={},this.flgLoading=[!0],this.flgSticky=!1,this.private=!1,this.expiryStep=100,this.totalInvoices=100,this.pageSize=f.n,this.pageSizeOptions=f.o,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["expires_at","msatoshi","actions"]):this.screenSize===f.q.SM?(this.flgSticky=!1,this.displayedColumns=["expires_at","description","msatoshi","actions"]):this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["expires_at","description","msatoshi","msatoshi_received","actions"]):(this.flgSticky=!0,this.displayedColumns=["expires_at","paid_at","description","msatoshi","msatoshi_received","actions"])}ngOnInit(){this.store.dispatch(new p.F({num_max_invoices:100,index_offset:0,reversed:!1})),this.store.select("cl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{t.effectErrors.forEach(t=>{"FetchInvoices"===t.action&&(this.flgLoading[0]="error")}),this.selNode=t.nodeSettings,this.information=t.information,this.totalInvoices=t.totalInvoices,this.logger.info(t),this.invoiceJSONArr=t.invoices.invoices&&t.invoices.invoices.length>0?t.invoices.invoices:[],this.invoices=new at.o(t.invoices.invoices?[]:[...this.invoiceJSONArr]),this.invoices.data=this.invoiceJSONArr,this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.invoices.paginator=this.paginator,setTimeout(()=>{this.flgAnimate=!1},5e3),this.logger.info(this.invoices),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!t.invoices)})}openCreateInvoiceModal(){this.store.dispatch(new st.C({data:{pageSize:this.pageSize,component:gt}}))}onAddInvoice(t){this.invoiceValue||(this.invoiceValue=0);let e=this.expiry?this.expiry:3600;this.flgAnimate=!0,this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch(new st.F("Adding Invoice...")),this.store.dispatch(new p.xb({label:this.newlyAddedInvoiceMemo,amount:1e3*this.invoiceValue,description:this.description,expiry:e,private:this.private})),this.resetData()}onDeleteExpiredInvoices(){this.store.dispatch(new st.D({data:{type:"CONFIRM",titleMessage:"Delete Expired Invoices",noBtnText:"Cancel",yesBtnText:"Delete Invoices"}})),this.rtlEffects.closeConfirm.pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{t&&(this.store.dispatch(new st.F("Deleting Invoices...")),this.store.dispatch(new p.m))})}onInvoiceClick(t,e){this.store.dispatch(new st.C({data:{invoice:{msatoshi:t.msatoshi,label:t.label,expires_at_str:t.expires_at_str,paid_at_str:t.paid_at_str,bolt11:t.bolt11,payment_hash:t.payment_hash,description:t.description,status:t.status,msatoshi_received:t.msatoshi_received},newlyAdded:!1,component:yt.a}}))}resetData(){this.description="",this.invoiceValue=void 0,this.private=!1,this.expiry=void 0,this.invoiceValueHint=""}applyFilter(t){this.invoices.filter=t.value}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,f.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,f.f.OTHER)+" "+t.unit}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(y.h),o.Pb(i.f),o.Pb(x.a),o.Pb(xt.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-lightning-invoices"]],viewQuery:function(t,e){if(1&t&&(o.Pc(it.a,!0),o.Pc(nt.a,!0)),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.paginator=t.first)}},inputs:{calledFrom:"calledFrom"},features:[o.Cb([{provide:nt.b,useValue:Object(f.y)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["matInput","","placeholder","Description","tabindex","2","name","description",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","name","invoiceValue","type","number","tabindex","3",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","9","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["fxLayout","row"],["mat-stroked-button","","color","warn","tabindex","7","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","expires_at"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","paid_at"],["matColumnDef","description"],["matColumnDef","msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_received"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unsettled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unsettled","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Ic(1,wt,15,6,"form",1),o.Ic(2,Vt,5,0,"div",2),o.Ic(3,Xt,36,14,"div",3),o.Ub()),2&t&&(o.Db(1),o.oc("ngIf","home"===e.calledFrom),o.Db(1),o.oc("ngIf","transactions"===e.calledFrom),o.Db(1),o.oc("ngIf","transactions"===e.calledFrom))},directives:[w.c,w.a,w.b,i.o,ct.u,ct.n,ct.o,K.c,lt.b,ct.c,ct.m,ct.p,ct.q,bt.a,K.g,K.f,S.a,V.a,O.b,at.n,it.a,i.m,I.a,at.c,at.i,at.b,at.e,at.g,at.k,at.m,nt.a,s.a,at.h,it.b,at.a,R.a,i.p,I.b,dt.a,dt.c,ht.m,at.d,at.f,at.j,at.l],pipes:[i.f],styles:[".mat-column-description[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"],data:{animation:[vt.a]}}),t})();var Jt=n("IzEk"),Yt=n("W7oF"),Zt=n("zQhy");const te=["paymentReq"];function ee(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-radio-group",17),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().paymentType=e})("change",function(){return o.zc(t),o.hc().onPaymentTypeChange()}),o.Vb(1,"mat-radio-button",18),o.Kc(2,"Invoice Payment"),o.Ub(),o.Vb(3,"mat-radio-button",19),o.Kc(4,"Keysend Payment"),o.Ub(),o.Ub()}if(2&t){const t=o.hc();o.oc("ngModel",t.paymentType)}}function ne(t,e){1&t&&o.Rb(0)}function ie(t,e){if(1&t&&(o.Vb(0,"span"),o.Kc(1),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Lc(t.paymentError)}}function ae(t,e){if(1&t&&(o.Vb(0,"div",20),o.Qb(1,"fa-icon",21),o.Ic(2,ie,2,1,"span",22),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("icon",t.faExclamationTriangle),o.Db(1),o.oc("ngIf",""!==t.paymentError)}}function oe(t,e){if(1&t&&(o.Vb(0,"mat-hint"),o.Kc(1),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Lc(t.paymentDecodedHint)}}function se(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Payment request is required."),o.Ub())}function ce(t,e){if(1&t&&(o.Vb(0,"mat-error"),o.Kc(1),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Lc(t.paymentDecodedHint)}}function le(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Payment amount is required."),o.Ub())}function re(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-form-field",23),o.Vb(1,"input",27,28),o.dc("ngModelChange",function(e){return o.zc(t),o.hc(2).paymentAmount=e})("change",function(e){return o.zc(t),o.hc(2).onAmountChange(e)}),o.Ub(),o.Vb(3,"mat-hint"),o.Kc(4,"It is a zero amount invoice, enter amount to be paid."),o.Ub(),o.Ic(5,le,2,0,"mat-error",22),o.Ub()}if(2&t){const t=o.hc(2);o.Db(1),o.oc("ngModel",t.paymentAmount),o.Db(4),o.oc("ngIf",!t.paymentAmount)}}function be(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-form-field",23),o.Vb(1,"textarea",24,25),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().onPaymentRequestEntry(e)})("matTextareaAutosize",function(){return!0}),o.Ub(),o.Ic(3,oe,2,1,"mat-hint",22),o.Ic(4,se,2,0,"mat-error",22),o.Ic(5,ce,2,1,"mat-error",22),o.Ub(),o.Ic(6,re,6,2,"mat-form-field",26)}if(2&t){const t=o.wc(2),e=o.hc();o.Db(1),o.oc("ngModel",e.paymentRequest),o.Db(2),o.oc("ngIf",e.paymentRequest&&""!==e.paymentDecodedHint),o.Db(1),o.oc("ngIf",!e.paymentRequest),o.Db(1),o.oc("ngIf",null==t.errors?null:t.errors.decodeError),o.Db(1),o.oc("ngIf",e.zeroAmtInvoice)}}function de(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Pubkey is required."),o.Ub())}function ue(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Keysend amount is required."),o.Ub())}function he(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-form-field",23),o.Vb(1,"input",29),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().pubkey=e}),o.Ub(),o.Ic(2,de,2,0,"mat-error",22),o.Ub(),o.Vb(3,"mat-form-field",23),o.Vb(4,"input",30,31),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().keysendAmount=e}),o.Ub(),o.Ic(6,ue,2,0,"mat-error",22),o.Ub()}if(2&t){const t=o.hc();o.Db(1),o.oc("ngModel",t.pubkey),o.Db(1),o.oc("ngIf",!t.pubkey),o.Db(2),o.oc("ngModel",t.keysendAmount),o.Db(2),o.oc("ngIf",!t.keysendAmount)}}let me=(()=>{class t{constructor(t,e,n,i,a,o,s,c){this.dialogRef=t,this.store=e,this.clEffects=n,this.logger=i,this.commonService=a,this.decimalPipe=o,this.actions$=s,this.rtlEffects=c,this.faExclamationTriangle=m.o,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentType="invoice",this.pubkey="",this.keysendAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=f.i[0],this.feeLimitTypes=f.i,this.paymentError="",this.isCompatibleVersion=!1,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}set payReq(t){t&&(this.paymentReq=t)}ngOnInit(){this.store.select("cl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{this.selNode=t.nodeSettings,this.activeChannels=t.allChannels.filter(t=>"CHANNELD_NORMAL"===t.state&&t.connected),this.isCompatibleVersion=this.commonService.isVersionCompatible(t.information.version,"0.9.0")&&this.commonService.isVersionCompatible(t.information.api_version,"0.4.0"),this.logger.info(t)}),this.actions$.pipe(Object(d.a)(this.unSubs[1]),Object(u.a)(t=>t.type===p.o||t.type===p.cb)).subscribe(t=>{t.type===p.cb&&this.dialogRef.close(),t.type===p.o&&("SendPayment"===t.payload.action&&(delete this.paymentDecoded.msatoshi,this.paymentError=t.payload.message),"DecodePayment"===t.payload.action&&(this.paymentDecodedHint="ERROR: "+t.payload.message,this.paymentReq.control.setErrors({decodeError:!0})))})}onSendPayment(){if("invoice"===this.paymentType&&!this.paymentRequest||"keysend"===this.paymentType&&(!this.pubkey||""===this.pubkey.trim()||!this.keysendAmount||this.keysendAmount<=0))return!0;"keysend"===this.paymentType?this.keysendPayment():this.paymentDecoded.created_at_str?this.sendPayment():(this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.paymentReq.control.setErrors(null),this.store.dispatch(new st.F("Decoding Payment...")),this.store.dispatch(new p.l({routeParam:this.paymentRequest,fromDialog:!0})),this.clEffects.setDecodedPaymentCL.pipe(Object(Jt.a)(1)).subscribe(t=>{this.paymentDecoded=t,this.paymentDecoded.created_at_str&&!this.paymentDecoded.msatoshi?(this.paymentDecoded.msatoshi=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,f.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(d.a)(this.unSubs[2])).subscribe(t=>{this.paymentDecodedHint=this.selNode.fiatConversion?"Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats ("+t.symbol+this.decimalPipe.transform(t.OTHER?t.OTHER:0,f.f.OTHER)+") | Memo: "+this.paymentDecoded.description:"Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description}))}))}keysendPayment(){this.store.dispatch(new st.F("Sending Keysend Payment...")),this.store.dispatch(new p.zb({pubkey:this.pubkey,amount:1e3*this.keysendAmount,fromDialog:!0}))}sendPayment(){this.store.dispatch(new st.F("Sending Payment...")),this.store.dispatch(new p.zb(this.zeroAmtInvoice?{invoice:this.paymentRequest,amount:1e3*this.paymentAmount,fromDialog:!0}:{invoice:this.paymentRequest,fromDialog:!0}))}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.store.dispatch(new st.F("Decoding Payment...")),this.store.dispatch(new p.l({routeParam:this.paymentRequest,fromDialog:!0})),this.clEffects.setDecodedPaymentCL.subscribe(t=>{this.paymentDecoded=t,this.paymentDecoded.created_at_str&&!this.paymentDecoded.msatoshi?(this.paymentDecoded.msatoshi=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,f.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(d.a)(this.unSubs[3])).subscribe(t=>{this.paymentDecodedHint=this.selNode.fiatConversion?"Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats ("+t.symbol+this.decimalPipe.transform(t.OTHER?t.OTHER:0,f.f.OTHER)+") | Memo: "+this.paymentDecoded.description:"Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description}))}))}onAmountChange(t){delete this.paymentDecoded.msatoshi,this.paymentDecoded.msatoshi=t}onPaymentTypeChange(){this.paymentError=""}resetData(){"keysend"===this.paymentType?(this.pubkey="",this.keysendAmount=null):(this.paymentDecoded={},this.paymentRequest="",this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=f.i[0],this.paymentReq.control.setErrors(null),this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentAmount=null),this.paymentError=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(ot.f),o.Pb(y.h),o.Pb(Yt.a),o.Pb(g.b),o.Pb(x.a),o.Pb(i.f),o.Pb(v.a),o.Pb(xt.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-lightning-send-payments"]],viewQuery:function(t,e){if(1&t&&o.Pc(te,!0),2&t){let t;o.vc(t=o.ec())&&(e.payReq=t.first)}},decls:23,vars:4,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","12","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","start stretch",1,"mt-5px"],["class","my-1","color","primary","name","paymentType","fxFlex","100","fxLayoutAlign","start stretch",3,"ngModel","ngModelChange","change",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["sendPaymentForm","ngForm"],[4,"ngTemplateOutlet"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","8","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","7",3,"click"],["invoiceBlock",""],["keysendBlock",""],["color","primary","name","paymentType","fxFlex","100","fxLayoutAlign","start stretch",1,"my-1",3,"ngModel","ngModelChange","change"],["fxFlex","25","tabindex","1","value","invoice",1,"mr-2"],["fxFlex","25","tabindex","2","value","keysend"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"],["fxFlex","100"],["autoFocus","","matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","3","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],["fxFlex","100",4,"ngIf"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","4","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],["autoFocus","","matInput","","placeholder","Pubkey","name","pubkey","tabindex","5","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Amount (Sats)","name","keysendAmount","tabindex","6","required","",3,"ngModel","ngModelChange"],["keysendAmt","ngModel"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"mat-card-header",2),o.Vb(3,"div",3),o.Vb(4,"span",4),o.Kc(5,"Send Payment"),o.Ub(),o.Ub(),o.Vb(6,"button",5),o.Kc(7,"X"),o.Ub(),o.Ub(),o.Vb(8,"mat-card-content",6),o.Ic(9,ee,5,1,"mat-radio-group",7),o.Vb(10,"form",8,9),o.Ic(12,ne,1,0,"ng-container",10),o.Ic(13,ae,3,2,"div",11),o.Vb(14,"div",12),o.Vb(15,"button",13),o.dc("click",function(){return e.resetData()}),o.Kc(16,"Clear Fields"),o.Ub(),o.Vb(17,"button",14),o.dc("click",function(){return e.onSendPayment()}),o.Kc(18,"Send Payment"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ic(19,be,7,5,"ng-template",null,15,o.Jc),o.Ic(21,he,7,4,"ng-template",null,16,o.Jc)),2&t){const t=o.wc(20),n=o.wc(22);o.Db(6),o.oc("mat-dialog-close",!1),o.Db(3),o.oc("ngIf",e.isCompatibleVersion),o.Db(3),o.oc("ngTemplateOutlet","keysend"===e.paymentType?n:t),o.Db(1),o.oc("ngIf",""!==e.paymentError)}},directives:[w.c,w.a,D.c,w.b,S.a,ot.d,D.b,i.o,ct.u,ct.n,ct.o,i.t,Zt.b,ct.m,ct.p,Zt.a,V.a,K.c,lt.b,ct.c,lt.d,rt.a,ct.s,K.f,K.b],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),t})();const fe=["sendPaymentForm"];function pe(t,e){if(1&t&&(o.Vb(0,"mat-hint"),o.Kc(1),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Lc(t.paymentDecodedHint)}}function ge(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Payment request is required."),o.Ub())}function ye(t,e){if(1&t){const t=o.Wb();o.Vb(0,"form",4,5),o.Vb(2,"mat-form-field",6),o.Vb(3,"textarea",7,8),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().onPaymentRequestEntry(e)})("matTextareaAutosize",function(){return!0}),o.Ub(),o.Ic(5,pe,2,1,"mat-hint",9),o.Ic(6,ge,2,0,"mat-error",9),o.Ub(),o.Vb(7,"div",10),o.Vb(8,"button",11),o.dc("click",function(){return o.zc(t),o.hc().resetData()}),o.Kc(9,"Clear Field"),o.Ub(),o.Vb(10,"button",12),o.dc("click",function(){return o.zc(t),o.hc().onSendPayment()}),o.Kc(11,"Send Payment"),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=o.hc();o.Db(3),o.oc("ngModel",t.paymentRequest),o.Db(2),o.oc("ngIf",t.paymentRequest&&""!==t.paymentDecodedHint),o.Db(1),o.oc("ngIf",!t.paymentRequest)}}function ve(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",13),o.Vb(1,"button",12),o.dc("click",function(){return o.zc(t),o.hc().openSendPaymentModal()}),o.Kc(2,"Send Payment"),o.Ub(),o.Ub()}}function xe(t,e){1&t&&o.Qb(0,"mat-progress-bar",47)}function we(t,e){1&t&&(o.Vb(0,"th",48),o.Kc(1,"Created At"),o.Ub())}const Ve=function(t){return{"mr-0":t}};function Ue(t,e){if(1&t&&o.Qb(0,"span",52),2&t){const t=o.hc(3);o.oc("ngClass",o.sc(1,Ve,t.screenSize===t.screenSizeEnum.XS))}}function De(t,e){if(1&t&&o.Qb(0,"span",53),2&t){const t=o.hc(3);o.oc("ngClass",o.sc(1,Ve,t.screenSize===t.screenSizeEnum.XS))}}function Ce(t,e){if(1&t&&(o.Vb(0,"td",49),o.Ic(1,Ue,1,3,"span",50),o.Ic(2,De,1,3,"span",51),o.Kc(3),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.oc("ngIf","complete"===t.status),o.Db(1),o.oc("ngIf","complete"!==t.status),o.Db(1),o.Mc(" ",null==t?null:t.created_at_str," ")}}function Se(t,e){1&t&&(o.Vb(0,"th",48),o.Kc(1,"Payment Hash"),o.Ub())}function Le(t,e){if(1&t&&(o.Vb(0,"td",49),o.Vb(1,"div"),o.Kc(2),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(null==t?null:t.payment_hash)}}function Ie(t,e){1&t&&(o.Vb(0,"th",54),o.Kc(1,"Sats Sent"),o.Ub())}function Fe(t,e){if(1&t&&(o.Vb(0,"td",49),o.Vb(1,"span",55),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.kc(3,1,(null==t?null:t.msatoshi_sent)/1e3,(null==t?null:t.msatoshi_sent)<1e3?"1.0-4":"1.0-0"))}}function ke(t,e){1&t&&(o.Vb(0,"th",54),o.Kc(1,"Sats Received"),o.Ub())}function Ae(t,e){if(1&t&&(o.Vb(0,"td",49),o.Vb(1,"span",55),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.kc(3,1,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0"))}}function _e(t,e){if(1&t){const t=o.Wb();o.Vb(0,"th",56),o.Vb(1,"div",57),o.Vb(2,"mat-select",58),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",59),o.dc("click",function(){return o.zc(t),o.hc(2).onDownloadCSV()}),o.Kc(5,"Download CSV"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function Pe(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",60),o.Vb(1,"button",61),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc(2).onPaymentClick(n)}),o.Kc(2,"View Info"),o.Ub(),o.Ub()}}function Te(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No payments available."),o.Ub())}function Ke(t,e){if(1&t&&(o.Vb(0,"td",62),o.Ic(1,Te,2,0,"p",9),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.oc("ngIf",!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)}}function Re(t,e){if(1&t&&o.Qb(0,"span",66),2&t){const t=o.hc(3);o.oc("ngClass",o.sc(1,Ve,t.screenSize===t.screenSizeEnum.XS))}}function Me(t,e){if(1&t&&o.Qb(0,"span",67),2&t){const t=o.hc(3);o.oc("ngClass",o.sc(1,Ve,t.screenSize===t.screenSizeEnum.XS))}}function Oe(t,e){if(1&t&&o.Qb(0,"span",66),2&t){const t=o.hc(5);o.oc("ngClass",o.sc(1,Ve,t.screenSize===t.screenSizeEnum.XS))}}function Ee(t,e){if(1&t&&o.Qb(0,"span",67),2&t){const t=o.hc(5);o.oc("ngClass",o.sc(1,Ve,t.screenSize===t.screenSizeEnum.XS))}}function ze(t,e){if(1&t&&(o.Vb(0,"span",69),o.Ic(1,Oe,1,3,"span",64),o.Ic(2,Ee,1,3,"span",65),o.Kc(3),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.oc("ngIf","complete"===t.status),o.Db(1),o.oc("ngIf","complete"!==t.status),o.Db(1),o.Mc(" ",t.created_at_str," ")}}function Be(t,e){if(1&t&&(o.Tb(0),o.Ic(1,ze,4,3,"span",68),o.Sb()),2&t){const t=o.hc().$implicit;o.Db(1),o.oc("ngForOf",null==t?null:t.mpps)}}function Ne(t,e){if(1&t&&(o.Vb(0,"td",49),o.Vb(1,"span",63),o.Ic(2,Re,1,3,"span",64),o.Ic(3,Me,1,3,"span",65),o.Kc(4),o.Ub(),o.Ic(5,Be,2,1,"ng-container",9),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.oc("ngIf","complete"===t.status),o.Db(1),o.oc("ngIf","complete"!==t.status),o.Db(1),o.Mc(" Total Attempts: ",null==t?null:t.total_parts," "),o.Db(1),o.oc("ngIf",t.is_expanded)}}function qe(t,e){if(1&t&&(o.Vb(0,"span",63),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" Part ID ",t.partid?t.partid:0," ")}}function Qe(t,e){if(1&t&&(o.Vb(0,"span"),o.Ic(1,qe,2,1,"span",70),o.Ub()),2&t){const t=o.hc().$implicit;o.Db(1),o.oc("ngForOf",null==t?null:t.mpps)}}function He(t,e){if(1&t&&(o.Vb(0,"td",49),o.Vb(1,"span",63),o.Kc(2),o.Ub(),o.Ic(3,Qe,2,1,"span",9),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(null==t?null:t.payment_hash),o.Db(1),o.oc("ngIf",t.is_expanded)}}function je(t,e){if(1&t&&(o.Vb(0,"span",71),o.Kc(1),o.ic(2,"number"),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",o.kc(2,1,t.msatoshi_sent/1e3,t.msatoshi_sent<1e3?"1.0-4":"1.0-0")," ")}}function $e(t,e){if(1&t&&(o.Vb(0,"span"),o.Ic(1,je,3,4,"span",72),o.Ub()),2&t){const t=o.hc().$implicit;o.Db(1),o.oc("ngForOf",null==t?null:t.mpps)}}function Ge(t,e){if(1&t&&(o.Vb(0,"td",49),o.Vb(1,"span",71),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ic(4,$e,2,1,"span",9),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.kc(3,2,(null==t?null:t.msatoshi_sent)/1e3,(null==t?null:t.msatoshi_sent)<1e3?"1.0-4":"1.0-0")),o.Db(2),o.oc("ngIf",t.is_expanded)}}function Xe(t,e){if(1&t&&(o.Vb(0,"span",71),o.Kc(1),o.ic(2,"number"),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",o.kc(2,1,t.msatoshi/1e3,t.msatoshi<1e3?"1.0-4":"1.0-0")," ")}}function We(t,e){if(1&t&&(o.Vb(0,"span"),o.Ic(1,Xe,3,4,"span",72),o.Ub()),2&t){const t=o.hc().$implicit;o.Db(1),o.oc("ngForOf",null==t?null:t.mpps)}}function Je(t,e){if(1&t&&(o.Vb(0,"td",49),o.Vb(1,"span",71),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ic(4,We,2,1,"span",9),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.kc(3,2,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0")),o.Db(2),o.oc("ngIf",t.is_expanded)}}function Ye(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",55),o.Vb(1,"button",76),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc(4).onPaymentClick(n)}),o.Kc(2),o.Ub(),o.Ub()}if(2&t){const t=e.$implicit;o.Db(2),o.Mc("View ",t.partid?t.partid:0,"")}}function Ze(t,e){if(1&t&&(o.Vb(0,"div"),o.Ic(1,Ye,3,1,"div",75),o.Ub()),2&t){const t=o.hc().$implicit;o.Db(1),o.oc("ngForOf",null==t?null:t.mpps)}}function tn(t,e){if(1&t&&(o.Vb(0,"td",73),o.Vb(1,"span",55),o.Vb(2,"button",74),o.dc("click",function(){const t=e.$implicit;return t.is_expanded=!t.is_expanded}),o.Kc(3),o.Ub(),o.Ub(),o.Ic(4,Ze,2,1,"div",9),o.Ub()),2&t){const t=e.$implicit;o.Db(3),o.Lc(t.is_expanded?"Hide":"Show"),o.Db(1),o.oc("ngIf",t.is_expanded)}}function en(t,e){if(1&t&&o.Qb(0,"tr",77),2&t){const t=e.$implicit,n=o.hc(2);o.oc("@newlyAddedRowAnimation",t.payment_hash===n.newlyAddedPayment&&n.flgAnimate?"added":"notAdded")}}const nn=function(t){return{"display-none":t}};function an(t,e){if(1&t&&o.Qb(0,"tr",78),2&t){const t=o.hc(2);o.oc("ngClass",o.sc(1,nn,(null==t.payments?null:t.payments.data)&&(null==t.payments||null==t.payments.data?null:t.payments.data.length)>0))}}function on(t,e){1&t&&o.Qb(0,"tr",79)}function sn(t,e){if(1&t&&o.Qb(0,"tr",77),2&t){const t=e.$implicit,n=o.hc(2);o.oc("@newlyAddedRowAnimation",t.payment_hash===n.newlyAddedPayment&&n.flgAnimate?"added":"notAdded")}}const cn=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},ln=function(){return["no_payment"]};function rn(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",14),o.Vb(1,"div",15),o.Vb(2,"div",16),o.Qb(3,"fa-icon",17),o.Vb(4,"span",18),o.Kc(5,"Payments History"),o.Ub(),o.Ub(),o.Vb(6,"mat-form-field",19),o.Vb(7,"input",20),o.dc("keyup",function(e){return o.zc(t),o.hc().applyFilter(e.target)}),o.Ub(),o.Ub(),o.Ub(),o.Vb(8,"div",21),o.Ic(9,xe,1,0,"mat-progress-bar",22),o.Vb(10,"table",23,24),o.Tb(12,25),o.Ic(13,we,2,0,"th",26),o.Ic(14,Ce,4,3,"td",27),o.Sb(),o.Tb(15,28),o.Ic(16,Se,2,0,"th",26),o.Ic(17,Le,3,1,"td",27),o.Sb(),o.Tb(18,29),o.Ic(19,Ie,2,0,"th",30),o.Ic(20,Fe,4,4,"td",27),o.Sb(),o.Tb(21,31),o.Ic(22,ke,2,0,"th",30),o.Ic(23,Ae,4,4,"td",27),o.Sb(),o.Tb(24,32),o.Ic(25,_e,6,0,"th",33),o.Ic(26,Pe,3,0,"td",34),o.Sb(),o.Tb(27,35),o.Ic(28,Ke,2,1,"td",36),o.Sb(),o.Tb(29,37),o.Ic(30,Ne,6,4,"td",27),o.Sb(),o.Tb(31,38),o.Ic(32,He,4,2,"td",27),o.Sb(),o.Tb(33,39),o.Ic(34,Ge,5,5,"td",27),o.Sb(),o.Tb(35,40),o.Ic(36,Je,5,5,"td",27),o.Sb(),o.Tb(37,41),o.Ic(38,tn,5,2,"td",42),o.Sb(),o.Ic(39,en,1,1,"tr",43),o.Ic(40,an,1,3,"tr",44),o.Ic(41,on,1,0,"tr",45),o.Ic(42,sn,1,1,"tr",43),o.Ub(),o.Ub(),o.Qb(43,"mat-paginator",46),o.Ub()}if(2&t){const t=o.hc();o.Db(3),o.oc("icon",t.faHistory),o.Db(6),o.oc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.oc("dataSource",t.payments)("ngClass",o.sc(14,cn,"error"===t.flgLoading[0])),o.Db(29),o.oc("matRowDefColumns",t.mppColumns)("matRowDefWhen",t.is_group),o.Db(1),o.oc("matFooterRowDef",o.rc(16,ln)),o.Db(1),o.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.oc("matRowDefColumns",t.displayedColumns)("matRowDefWhen",!t.is_group),o.Db(1),o.oc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let bn=(()=>{class t{constructor(t,e,n,i,a,o,s){this.logger=t,this.commonService=e,this.store=n,this.rtlEffects=i,this.clEffects=a,this.decimalPipe=o,this.titleCasePipe=s,this.calledFrom="transactions",this.faHistory=m.r,this.newlyAddedPayment="",this.flgAnimate=!0,this.selNode={},this.flgLoading=[!0],this.information={},this.paymentJSONArr=[],this.displayedColumns=[],this.mppColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.pageSize=f.n,this.pageSizeOptions=f.o,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["created_at","actions"],this.mppColumns=["groupTotal","groupAction"]):this.screenSize===f.q.SM?(this.flgSticky=!1,this.displayedColumns=["created_at","msatoshi","actions"],this.mppColumns=["groupTotal","groupAmtRecv","groupAction"]):this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["created_at","msatoshi_sent","msatoshi","actions"],this.mppColumns=["groupTotal","groupAmtSent","groupAmtRecv","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["created_at","payment_hash","msatoshi_sent","msatoshi","actions"],this.mppColumns=["groupTotal","groupHash","groupAmtSent","groupAmtRecv","groupAction"])}ngOnInit(){this.store.select("cl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{t.effectErrors.forEach(t=>{"FetchPayments"===t.action&&(this.flgLoading[0]="error")}),this.information=t.information,this.selNode=t.nodeSettings,this.paymentJSONArr=t.payments&&t.payments.length>0?t.payments:[],this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr),setTimeout(()=>{this.flgAnimate=!1},3e3),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!this.paymentJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}is_group(t,e){return e.is_group}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.created_at_str?this.sendPayment():(this.store.dispatch(new st.F("Decoding Payment...")),this.store.dispatch(new p.l({routeParam:this.paymentRequest,fromDialog:!1})),this.clEffects.setDecodedPaymentCL.pipe(Object(Jt.a)(1)).subscribe(t=>{this.paymentDecoded=t,this.paymentDecoded.created_at_str?(this.paymentDecoded.msatoshi||(this.paymentDecoded.msatoshi=0),this.sendPayment()):this.resetData()}))}sendPayment(){this.flgAnimate=!0,this.newlyAddedPayment=this.paymentDecoded.payment_hash,this.paymentDecoded.msatoshi&&0!==this.paymentDecoded.msatoshi?(this.store.dispatch(new st.D({data:{type:f.b.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"payee",value:this.paymentDecoded.payee,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"created_at_str",value:this.paymentDecoded.created_at_str,title:"Creation Date",width:50},{key:"num_satoshis",value:this.paymentDecoded.msatoshi/1e3,title:"Amount (Sats)",width:50,type:f.h.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:f.h.NUMBER},{key:"min_finaltv_expiry",value:this.paymentDecoded.min_final_cltv_expiry,title:"CLTV Expiry",width:50}]]}})),this.rtlEffects.closeConfirm.pipe(Object(Jt.a)(1)).subscribe(t=>{t&&(this.store.dispatch(new st.F("Sending Payment...")),this.store.dispatch(new p.zb({invoice:this.paymentRequest,fromDialog:!1})),this.resetData())})):(this.store.dispatch(new st.D({data:{type:f.b.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"payee",value:this.paymentDecoded.payee,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"created_at_str",value:this.paymentDecoded.created_at_str,title:"Creation Date",width:40},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:f.h.NUMBER},{key:"min_finaltv_expiry",value:this.paymentDecoded.min_final_cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",getInputs:[{placeholder:"Amount (Sats)",inputType:f.h.NUMBER.toLowerCase(),inputValue:"",width:30}]}})),this.rtlEffects.closeConfirm.pipe(Object(Jt.a)(1)).subscribe(t=>{t&&(this.paymentDecoded.msatoshi=t[0].inputValue,this.store.dispatch(new st.F("Sending Payment...")),this.store.dispatch(new p.zb({invoice:this.paymentRequest,amount:1e3*t[0].inputValue,fromDialog:!1})),this.resetData())}))}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&(this.store.dispatch(new st.F("Decoding Payment...")),this.store.dispatch(new p.l({routeParam:this.paymentRequest,fromDialog:!1})),this.clEffects.setDecodedPaymentCL.subscribe(t=>{this.paymentDecoded=t,this.paymentDecoded.msatoshi?this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,f.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.paymentDecodedHint=this.selNode.fiatConversion?"Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats ("+t.symbol+this.decimalPipe.transform(t.OTHER?t.OTHER:0,f.f.OTHER)+") | Memo: "+this.paymentDecoded.description:"Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description}):this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description}))}openSendPaymentModal(){this.store.dispatch(new st.C({data:{component:me}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}onPaymentClick(t){const e=[[{key:"bolt11",value:t.bolt11,title:"Bolt 11",width:100,type:f.h.STRING}],[{key:"payment_preimage",value:t.payment_preimage,title:"Payment Preimage",width:100,type:f.h.STRING}],[{key:"id",value:t.id,title:"ID",width:20,type:f.h.STRING},{key:"destination",value:t.destination,title:"Destination",width:80,type:f.h.STRING}],[{key:"created_at_str",value:t.created_at_str,title:"Creation Date",width:50,type:f.h.DATE_TIME},{key:"status",value:this.titleCasePipe.transform(t.status),title:"Status",width:50,type:f.h.STRING}],[{key:"msatoshi",value:t.msatoshi,title:"Amount (mSats)",width:50,type:f.h.NUMBER},{key:"msatoshi_sent",value:t.msatoshi_sent,title:"Amount Sent (mSats)",width:50,type:f.h.NUMBER}]];t.memo&&""!==t.memo&&e.splice(2,0,[{key:"memo",value:t.memo,title:"Memo",width:100,type:f.h.STRING}]),t.hasOwnProperty("partid")?e.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:80,type:f.h.STRING},{key:"partid",value:t.partid,title:"Part ID",width:20,type:f.h.STRING}]):e.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:f.h.STRING}]),this.store.dispatch(new st.C({data:{type:f.b.INFORMATION,alertTitle:"Payment Information",message:e}}))}applyFilter(t){this.payments.filter=t.value}loadPaymentsTable(t){this.payments=new at.o(t?[...t]:[]),this.payments.data=this.paymentJSONArr,this.payments.sort=this.sort,this.payments.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.payments.paginator=this.paginator}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){let t=JSON.parse(JSON.stringify(this.payments.data)).reduce((t,e)=>e.mpps?t.concat(e.mpps):(delete e.is_group,delete e.is_expanded,delete e.total_parts,t.concat(e)),[]);this.commonService.downloadFile(t,"Payments")}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(x.a),o.Pb(y.h),o.Pb(xt.a),o.Pb(Yt.a),o.Pb(i.f),o.Pb(i.x))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-lightning-payments"]],viewQuery:function(t,e){if(1&t&&(o.Pc(fe,!0),o.Pc(it.a,!0),o.Pc(nt.a,!0)),2&t){let t;o.vc(t=o.ec())&&(e.form=t.first),o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.paginator=t.first)}},inputs:{calledFrom:"calledFrom"},features:[o.Cb([{provide:nt.b,useValue:Object(f.y)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","created_at"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","payment_hash"],["matColumnDef","msatoshi_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupHash"],["matColumnDef","groupAmtSent"],["matColumnDef","groupAmtRecv"],["matColumnDef","groupAction"],["mat-cell","","class","px-3",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Completed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Completed","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"mpp-row-span"],["class","dot green mt-0","matTooltip","Completed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow mt-0","matTooltip","Incomplete/Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Completed","matTooltipPosition","right",1,"dot","green","mt-0",3,"ngClass"],["matTooltip","Incomplete/Failed","matTooltipPosition","right",1,"dot","yellow","mt-0",3,"ngClass"],["fxLayoutAlign","start center","class","mpp-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"mpp-row-span","pl-3"],["fxLayoutAlign","start center","class","mpp-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"mpp-row-span"],["fxLayoutAlign","end center","class","mpp-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-3"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-mpp-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-mpp-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Ic(1,ye,12,3,"form",1),o.Ic(2,ve,3,0,"div",2),o.Ic(3,rn,44,17,"div",3),o.Ub()),2&t&&(o.Db(1),o.oc("ngIf","home"===e.calledFrom),o.Db(1),o.oc("ngIf","transactions"===e.calledFrom),o.Db(1),o.oc("ngIf","transactions"===e.calledFrom))},directives:[w.c,w.a,w.b,i.o,ct.u,ct.n,ct.o,K.c,lt.b,ct.c,lt.d,ct.s,O.b,ct.m,ct.p,S.a,K.f,K.b,V.a,at.n,it.a,i.m,I.a,at.c,at.i,at.b,at.e,at.m,at.g,at.k,nt.a,s.a,at.h,it.b,at.a,R.a,dt.a,dt.c,ht.m,at.d,i.n,at.l,at.f,at.j],pipes:[i.f],styles:[".mat-column-bolt11[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%], .mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-mpp-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-mpp-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.mpp-row-span[_ngcontent-%COMP%]{min-height:4.2rem}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"],data:{animation:[vt.a]}}),t})();function dn(t,e){if(1&t&&(o.Vb(0,"button",25),o.Vb(1,"mat-icon"),o.Kc(2,"more_vert"),o.Ub(),o.Ub()),2&t){o.hc();const t=o.wc(11);o.oc("matMenuTriggerFor",t)}}function un(t,e){if(1&t){const t=o.Wb();o.Vb(0,"button",15),o.dc("click",function(){return o.zc(t),o.hc(3).onNavigateTo("/cl/reports")}),o.Kc(1,"Fees Summary"),o.Ub()}}function hn(t,e){if(1&t){const t=o.Wb();o.Vb(0,"button",15),o.dc("click",function(){return o.zc(t),o.hc(3).onsortChannelsBy()}),o.Kc(1),o.Ub()}if(2&t){const t=o.hc(3);o.Db(1),o.Mc("Sort By ","Balance Score"===t.sortField?"Capacity":"Balance Score","")}}const mn=function(t){return{"error-border":t}};function fn(t,e){if(1&t&&o.Qb(0,"rtl-cl-node-info",26),2&t){const t=o.hc(3);o.oc("information",t.information)("showColorFieldSeparately",!1)("ngClass",o.sc(3,mn,"error"===t.flgLoading[0]))}}function pn(t,e){if(1&t&&o.Qb(0,"rtl-cl-balances-info",27),2&t){const t=o.hc(3);o.oc("balances",t.balances)("ngClass",o.sc(2,mn,"error"===t.flgLoading[2]))}}function gn(t,e){if(1&t&&o.Qb(0,"rtl-cl-channel-capacity-info",28),2&t){const t=o.hc(3);o.oc("sortBy",t.sortField)("channelBalances",t.channelBalances)("allChannels",t.allChannelsCapacity)("ngClass",o.sc(4,mn,"error"===t.flgLoading[5]))}}function yn(t,e){if(1&t&&o.Qb(0,"rtl-cl-fee-info",29),2&t){const t=o.hc(3);o.oc("fees",t.fees)("ngClass",o.sc(2,mn,"error"===t.flgLoading[1]))}}function vn(t,e){if(1&t&&o.Qb(0,"rtl-cl-channel-status-info",30),2&t){const t=o.hc(3);o.oc("channelsStatus",t.channelsStatus)("ngClass",o.sc(2,mn,"error"===t.flgLoading[0]))}}function xn(t,e){1&t&&(o.Vb(0,"h3"),o.Kc(1,"Error! Unable to find information!"),o.Ub())}function wn(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-grid-tile",8),o.Vb(1,"mat-card",9),o.Vb(2,"mat-card-header"),o.Vb(3,"mat-card-title",10),o.Vb(4,"div"),o.Qb(5,"fa-icon",11),o.Vb(6,"span"),o.Kc(7),o.Ub(),o.Ub(),o.Vb(8,"div"),o.Ic(9,dn,3,1,"button",12),o.Vb(10,"mat-menu",13,14),o.Vb(12,"button",15),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc(2).onNavigateTo(n.link)}),o.Kc(13),o.Ub(),o.Ic(14,un,2,0,"button",16),o.Ic(15,hn,2,1,"button",16),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(16,"mat-card-content",17),o.Vb(17,"div",18),o.Ic(18,fn,1,5,"rtl-cl-node-info",19),o.Ic(19,pn,1,4,"rtl-cl-balances-info",20),o.Ic(20,gn,1,6,"rtl-cl-channel-capacity-info",21),o.Ic(21,yn,1,4,"rtl-cl-fee-info",22),o.Ic(22,vn,1,4,"rtl-cl-channel-status-info",23),o.Ic(23,xn,2,0,"h3",24),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=e.$implicit;o.oc("colspan",t.cols)("rowspan",t.rows),o.Db(5),o.oc("icon",t.icon),o.Db(2),o.Lc(t.title),o.Db(2),o.oc("ngIf",t.link),o.Db(4),o.Mc("Go To ",t.goTo,""),o.Db(1),o.oc("ngIf","fee"===t.id),o.Db(1),o.oc("ngIf","capacity"===t.id),o.Db(1),o.pc("fxFlex","capacity"===t.id?90:70),o.Db(1),o.oc("ngSwitch",t.id),o.Db(1),o.oc("ngSwitchCase","node"),o.Db(1),o.oc("ngSwitchCase","balance"),o.Db(1),o.oc("ngSwitchCase","capacity"),o.Db(1),o.oc("ngSwitchCase","fee"),o.Db(1),o.oc("ngSwitchCase","status")}}function Vn(t,e){if(1&t&&(o.Vb(0,"div",2),o.Vb(1,"div",3),o.Qb(2,"fa-icon",4),o.Vb(3,"span",5),o.Kc(4),o.Ub(),o.Ub(),o.Vb(5,"mat-grid-list",6),o.Ic(6,wn,24,15,"mat-grid-tile",7),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(2),o.oc("icon",t.flgLoading[0]?t.faFrown:t.faSmile),o.Db(2),o.Lc(t.flgLoading[0]?"Error! Please check the server connection.":"Welcome "+t.information.alias+"! Your node is up and running."),o.Db(1),o.oc("rowHeight",t.operatorCardHeight),o.Db(1),o.oc("ngForOf",t.operatorCards)}}function Un(t,e){if(1&t&&(o.Vb(0,"button",25),o.Vb(1,"mat-icon"),o.Kc(2,"more_vert"),o.Ub(),o.Ub()),2&t){o.hc();const t=o.wc(9);o.oc("matMenuTriggerFor",t)}}function Dn(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-card-header"),o.Vb(1,"mat-card-title",10),o.Vb(2,"div"),o.Qb(3,"fa-icon",11),o.Vb(4,"span"),o.Kc(5),o.Ub(),o.Ub(),o.Vb(6,"div"),o.Ic(7,Un,3,1,"button",12),o.Vb(8,"mat-menu",13,39),o.Vb(10,"button",15),o.dc("click",function(){o.zc(t);const e=o.hc().$implicit;return o.hc(2).onNavigateTo(e.link)}),o.Kc(11),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=o.hc().$implicit;o.Db(3),o.oc("icon",t.icon),o.Db(2),o.Lc(t.title),o.Db(2),o.oc("ngIf",t.link),o.Db(4),o.Mc("Go To ",t.goTo,"")}}function Cn(t,e){if(1&t&&o.Qb(0,"rtl-cl-node-info",40),2&t){const t=o.hc(3);o.oc("information",t.information)("ngClass",o.sc(2,mn,"error"===t.flgLoading[0]))}}function Sn(t,e){if(1&t&&o.Qb(0,"rtl-cl-balances-info",27),2&t){const t=o.hc(3);o.oc("balances",t.balances)("ngClass",o.sc(2,mn,"error"===t.flgLoading[2]))}}function Ln(t,e){if(1&t&&o.Qb(0,"rtl-cl-channel-liquidity-info",41),2&t){const t=o.hc(3);o.oc("direction","In")("totalLiquidity",t.totalInboundLiquidity)("allChannels",t.allInboundChannels)("ngClass",o.sc(4,mn,"error"===t.flgLoading[5]))}}function In(t,e){if(1&t&&o.Qb(0,"rtl-cl-channel-liquidity-info",41),2&t){const t=o.hc(3);o.oc("direction","Out")("totalLiquidity",t.totalOutboundLiquidity)("allChannels",t.allOutboundChannels)("ngClass",o.sc(4,mn,"error"===t.flgLoading[5]))}}function Fn(t,e){if(1&t){const t=o.Wb();o.Vb(0,"button",50),o.Vb(1,"mat-icon"),o.Kc(2,"more_vert"),o.Ub(),o.Ub(),o.Vb(3,"mat-menu",13,51),o.Vb(5,"button",15),o.dc("click",function(){o.zc(t);const e=o.hc(2).$implicit;return o.hc(2).onNavigateTo(e.link)}),o.Kc(6),o.Ub(),o.Vb(7,"button",15),o.dc("click",function(){return o.zc(t),o.hc(4).onNavigateTo("/cl/reports/transactions")}),o.Kc(8,"Transactions Summary"),o.Ub(),o.Ub()}if(2&t){const t=o.wc(4),e=o.hc(2).$implicit;o.oc("matMenuTriggerFor",t),o.Db(6),o.Mc("Go To ",e.goTo,"")}}function kn(t,e){1&t&&(o.Vb(0,"span",42),o.Vb(1,"mat-tab-group",43),o.Vb(2,"mat-tab",44),o.Qb(3,"rtl-cl-lightning-invoices",45),o.Ub(),o.Vb(4,"mat-tab",46),o.Qb(5,"rtl-cl-lightning-payments",47),o.Ub(),o.Vb(6,"mat-tab",48),o.Ic(7,Fn,9,2,"ng-template",49),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(3),o.oc("calledFrom","home"),o.Db(2),o.oc("calledFrom","home"),o.Db(1),o.oc("disabled",!0))}function An(t,e){1&t&&(o.Vb(0,"h3"),o.Kc(1,"Error! Unable to find information!"),o.Ub())}const _n=function(t){return{"p-0":t}};function Pn(t,e){if(1&t&&(o.Vb(0,"mat-grid-tile",8),o.Vb(1,"mat-card",33),o.Ic(2,Dn,12,4,"mat-card-header",34),o.Vb(3,"mat-card-content",35),o.Vb(4,"div",18),o.Ic(5,Cn,1,4,"rtl-cl-node-info",36),o.Ic(6,Sn,1,4,"rtl-cl-balances-info",20),o.Ic(7,Ln,1,6,"rtl-cl-channel-liquidity-info",37),o.Ic(8,In,1,6,"rtl-cl-channel-liquidity-info",37),o.Ic(9,kn,8,3,"span",38),o.Ic(10,An,2,0,"h3",24),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.oc("colspan",t.cols)("rowspan",t.rows),o.Db(1),o.oc("ngClass",o.sc(11,_n,"transactions"===t.id)),o.Db(1),o.oc("ngIf","transactions"!==t.id),o.Db(1),o.pc("fxFlex","transactions"===t.id?100:"balance"===t.id?70:90),o.Db(1),o.oc("ngSwitch",t.id),o.Db(1),o.oc("ngSwitchCase","node"),o.Db(1),o.oc("ngSwitchCase","balance"),o.Db(1),o.oc("ngSwitchCase","inboundLiq"),o.Db(1),o.oc("ngSwitchCase","outboundLiq"),o.Db(1),o.oc("ngSwitchCase","transactions")}}function Tn(t,e){if(1&t&&(o.Vb(0,"div",31),o.Qb(1,"fa-icon",4),o.Vb(2,"span",5),o.Kc(3),o.Ub(),o.Ub(),o.Vb(4,"mat-grid-list",32),o.Ic(5,Pn,11,13,"mat-grid-tile",7),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("icon",t.faSmile),o.Db(2),o.Mc("Welcome ",t.information.alias,"! Your node is up and running."),o.Db(1),o.oc("rowHeight",t.merchantCardHeight),o.Db(1),o.oc("ngForOf",t.merchantCards)}}let Kn=(()=>{class t{constructor(t,e,n,i,a){this.logger=t,this.store=e,this.actions$=n,this.commonService=i,this.router=a,this.faSmile=h.b,this.faFrown=h.a,this.faAngleDoubleDown=m.a,this.faAngleDoubleUp=m.b,this.faChartPie=m.g,this.faBolt=m.e,this.faServer=m.G,this.faNetworkWired=m.y,this.flgChildInfoUpdated=!1,this.userPersonaEnum=f.w,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.totalBalance={},this.balances={onchain:-1,lightning:-1,total:0},this.allChannels=[],this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.feeRatesPerKB={},this.feeRatesPerKW={},this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="330px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.flgLoading=[!0,!0,!0,!0,!0,!0,!0,!0],this.unSubs=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goTo:"Routing",link:"/cl/routing",icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goTo:"Channels",link:"/cl/connections",icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goTo:"Channels",link:"/cl/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goTo:"Transactions",link:"/cl/transactions",title:"",cols:6,rows:4},{id:"inboundLiq",goTo:"Channels",link:"/cl/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/cl/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===f.q.SM||this.screenSize===f.q.MD?(this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goTo:"Routing",link:"/cl/routing",icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goTo:"Channels",link:"/cl/connections",icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goTo:"Channels",link:"/cl/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goTo:"Transactions",link:"/cl/transactions",title:"",cols:3,rows:4},{id:"inboundLiq",goTo:"Channels",link:"/cl/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/cl/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCardHeight=.77*window.screen.height/2+"px",this.merchantCardHeight=.76*window.screen.height/10+"px",this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goTo:"Channels",link:"/cl/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goTo:"Routing",link:"/cl/routing",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goTo:"Channels",link:"/cl/connections",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goTo:"Channels",link:"/cl/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goTo:"Channels",link:"/cl/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goTo:"Transactions",link:"/cl/transactions",title:"",cols:2,rows:5}])}ngOnInit(){this.store.select("cl").pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.flgLoading=[!0,!0,!0,!0,!0,!0,!0,!0],t.effectErrors.forEach(t=>{"FetchInfo"===t.action&&(this.flgLoading[0]="error"),"FetchFees"===t.action&&(this.flgLoading[1]="error"),"FetchBalance"===t.action&&(this.flgLoading[2]="error"),"FetchLocalRemoteBalance"===t.action&&(this.flgLoading[3]="error"),"FetchFeeRates"===t.action&&(this.flgLoading[4]="error"),"FetchChannels"===t.action&&(this.flgLoading[5]="error")}),this.selNode=t.nodeSettings,this.information=t.information,"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!this.information.id),this.fees=t.fees,"error"!==this.flgLoading[1]&&(this.flgLoading[1]=!this.fees.feeCollected),this.totalBalance=t.balance,this.balances.onchain=t.balance.totalBalance,this.balances.lightning=t.localRemoteBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances),"error"!==this.flgLoading[2]&&(this.flgLoading[2]=""===this.totalBalance);let e=t.localRemoteBalance.localBalance?+t.localRemoteBalance.localBalance:0,n=t.localRemoteBalance.remoteBalance?+t.localRemoteBalance.remoteBalance:0;this.channelBalances={localBalance:e,remoteBalance:n,balancedness:+(1-Math.abs((e-n)/(e+n))).toFixed(3)},"error"!==this.flgLoading[3]&&(this.flgLoading[3]=!t.localRemoteBalance.localBalance),this.feeRatesPerKB=t.feeRatesPerKB,this.feeRatesPerKW=t.feeRatesPerKW,"error"!==this.flgLoading[4]&&(this.flgLoading[4]=!this.feeRatesPerKB||!this.feeRatesPerKW),this.channelsStatus={active:{channels:t.information.num_active_channels,capacity:t.localRemoteBalance.localBalance},pending:{channels:t.information.num_pending_channels,capacity:0|t.localRemoteBalance.pendingBalance},inactive:{channels:t.information.num_inactive_channels,capacity:0|t.localRemoteBalance.inactiveBalance}},this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannels=t.allChannels.filter(t=>"CHANNELD_NORMAL"===t.state&&t.connected),this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels.filter(t=>t.msatoshi_to_them>0),"msatoshi_to_them"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels.filter(t=>t.msatoshi_to_us>0),"msatoshi_to_us"))),this.allChannels.forEach(t=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil(t.msatoshi_to_them/1e3),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor(t.msatoshi_to_us/1e3)}),"error"!==this.flgLoading[5]&&(this.flgLoading[5]=!this.allChannels||!this.allChannels.length),this.flgChildInfoUpdated=this.balances.lightning>=0&&this.balances.onchain>=0&&this.fees.feeCollected>=0,this.logger.info(t)}),this.actions$.pipe(Object(d.a)(this.unSubs[2]),Object(u.a)(t=>t.type===p.s||t.type===p.jb)).subscribe(t=>{t.type===p.s&&(this.flgChildInfoUpdated=!1),t.type===p.jb&&(this.flgChildInfoUpdated=!0)})}onNavigateTo(t){this.router.navigateByUrl(t)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort(function(t,e){const n=+t.msatoshi_to_us+ +t.msatoshi_to_them,i=+e.msatoshi_to_them+ +e.msatoshi_to_them;return n>i?-1:n{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(y.h),o.Pb(v.a),o.Pb(x.a),o.Pb(a.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-0"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10",3,"rowHeight"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["menuOperator","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",1,"dashboard-card-content",3,"fxFlex"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"balances","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"fees","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","ngClass",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["fxFlex","100",3,"information","showColorFieldSeparately","ngClass"],["fxFlex","100",3,"balances","ngClass"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","ngClass"],["fxFlex","100",3,"fees","ngClass"],["fxFlex","100",3,"channelsStatus","ngClass"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-0"],["cols","6",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"dashboard-card-content",3,"fxFlex"],["fxFlex","100",3,"information","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","ngClass",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information","ngClass"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","ngClass"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column",1,"w-100","dashboard-tabs-group"],["label","Receive"],[1,"h-100",3,"calledFrom"],["label","Pay"],[3,"calledFrom"],[3,"disabled"],["mat-tab-label",""],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",2,"max-width","20px",3,"matMenuTriggerFor"],["menuTransactions","matMenu"]],template:function(t,e){if(1&t&&(o.Ic(0,Vn,7,4,"div",0),o.Ic(1,Tn,6,4,"ng-template",null,1,o.Jc)),2&t){const t=o.wc(2);o.oc("ngIf",e.selNode.userPersona===e.userPersonaEnum.OPERATOR)("ngIfElse",t)}},directives:[i.o,w.c,w.b,V.a,U.a,i.n,U.c,D.a,w.a,D.c,D.f,C.a,C.b,D.b,i.q,i.r,i.s,S.a,C.d,L.a,P,i.m,I.a,T,N,q,Q,tt,et.b,et.a,Wt,bn,et.c],styles:[""]}),t})();var Rn=n("itXk"),Mn=n("Cyaj"),On=n("zHaW"),En=n("pMoy"),zn=n("o4Yh"),Bn=n("hzfI");const Nn=["form"],qn=["formSweepAll"],Qn=["stepper"];function Hn(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Bitcoin address is required."),o.Ub())}function jn(t,e){1&t&&(o.Vb(0,"mat-hint"),o.Kc(1,"Amount replaced by UTXO balance"),o.Ub())}function $n(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Amount is required."),o.Ub())}function Gn(t,e){if(1&t&&(o.Vb(0,"mat-option",36),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.oc("value",t),o.Db(1),o.Lc(t)}}function Xn(t,e){if(1&t&&(o.Vb(0,"mat-option",36),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.oc("value",t.feeRateId),o.Db(1),o.Mc(" ",t.feeRateType," ")}}function Wn(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Min Confirmation Blocks is required."),o.Ub())}function Jn(t,e){if(1&t&&(o.Vb(0,"mat-option",36),o.Kc(1),o.ic(2,"number"),o.Ub()),2&t){const t=e.$implicit;o.oc("value",t),o.Db(1),o.Mc("",o.jc(2,2,t.value)," Sats")}}function Yn(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",37),o.Vb(1,"mat-expansion-panel",38),o.dc("closed",function(){return o.zc(t),o.hc(2).onAdvancedPanelToggle(!0)})("opened",function(){return o.zc(t),o.hc(2).onAdvancedPanelToggle(!1)}),o.Vb(2,"mat-expansion-panel-header"),o.Vb(3,"mat-panel-title"),o.Vb(4,"span"),o.Kc(5),o.Ub(),o.Ub(),o.Ub(),o.Vb(6,"div",31),o.Vb(7,"div",39),o.Vb(8,"mat-form-field",40),o.Vb(9,"mat-select",41),o.dc("selectionChange",function(e){return o.zc(t),o.hc(2).onUTXOSelectionChange(e)})("valueChange",function(e){return o.zc(t),o.hc(2).selUTXOs=e}),o.Vb(10,"mat-select-trigger"),o.Kc(11),o.ic(12,"number"),o.Ub(),o.Ic(13,Jn,3,4,"mat-option",21),o.Ub(),o.Ub(),o.Vb(14,"mat-slide-toggle",42),o.dc("ngModelChange",function(e){return o.zc(t),o.hc(2).flgUseAllBalance=e})("change",function(){return o.zc(t),o.hc(2).onUTXOAllBalanceChange()}),o.Kc(15," Use selected UTXOs balance "),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=o.hc(2);o.Db(5),o.Lc(t.advancedTitle),o.Db(4),o.oc("value",t.selUTXOs),o.Db(2),o.Nc("",o.jc(12,7,t.totalSelectedUTXOAmount)," Sats (",t.selUTXOs.length>1?t.selUTXOs.length+" UTXOs":"1 UTXO",")"),o.Db(2),o.oc("ngForOf",t.transactions),o.Db(1),o.oc("ngModel",t.flgUseAllBalance)("disabled",t.selUTXOs.length<1)}}function Zn(t,e){if(1&t&&(o.Vb(0,"span"),o.Kc(1),o.Ub()),2&t){const t=o.hc(3);o.Db(1),o.Lc(t.sendFundError)}}function ti(t,e){if(1&t&&(o.Vb(0,"div",43),o.Qb(1,"fa-icon",44),o.Ic(2,Zn,2,1,"span",14),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.oc("icon",t.faExclamationTriangle),o.Db(1),o.oc("ngIf",""!==t.sendFundError)}}function ei(t,e){if(1&t){const t=o.Wb();o.Vb(0,"form",9,10),o.dc("submit",function(){return o.zc(t),o.hc().onSendFunds()})("reset",function(){return o.zc(t),o.hc().resetData()}),o.Vb(2,"mat-form-field",11),o.Vb(3,"input",12,13),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().transaction.address=e}),o.Ub(),o.Ic(5,Hn,2,0,"mat-error",14),o.Ub(),o.Vb(6,"mat-form-field",15),o.Vb(7,"input",16,17),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().transaction.satoshis=e}),o.Ub(),o.Ic(9,jn,2,0,"mat-hint",14),o.Vb(10,"span",18),o.Kc(11),o.Ub(),o.Ic(12,$n,2,0,"mat-error",14),o.Ub(),o.Vb(13,"mat-form-field",19),o.Vb(14,"mat-select",20),o.dc("selectionChange",function(e){return o.zc(t),o.hc().onAmountUnitChange(e)}),o.Ic(15,Gn,2,2,"mat-option",21),o.Ub(),o.Ub(),o.Vb(16,"div",22),o.Vb(17,"mat-form-field",23),o.Vb(18,"mat-select",24),o.dc("valueChange",function(e){return o.zc(t),o.hc().transaction.feeRate=e}),o.Ic(19,Xn,2,2,"mat-option",21),o.Ub(),o.Ub(),o.Vb(20,"div",25),o.Vb(21,"mat-checkbox",26),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().flgMinConf=e})("change",function(){o.zc(t);const e=o.hc();return e.flgMinConf?e.transaction.feeRate=null:e.transaction.minconf=null}),o.Ub(),o.Vb(22,"mat-form-field",27),o.Vb(23,"input",28,29),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().transaction.minconf=e}),o.Ub(),o.Ic(25,Wn,2,0,"mat-error",14),o.Ub(),o.Ub(),o.Ub(),o.Ic(26,Yn,16,9,"div",30),o.Qb(27,"div",31),o.Ic(28,ti,3,2,"div",32),o.Vb(29,"div",33),o.Vb(30,"button",34),o.Kc(31,"Clear Fields"),o.Ub(),o.Vb(32,"button",35),o.Kc(33,"Send Funds"),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=o.hc();o.Db(3),o.oc("ngModel",t.transaction.address),o.Db(2),o.oc("ngIf",!t.transaction.address),o.Db(2),o.oc("ngModel",t.transaction.satoshis)("type",t.flgUseAllBalance?"text":"number")("step",100)("min",0)("disabled",t.flgUseAllBalance),o.Db(2),o.oc("ngIf",t.flgUseAllBalance),o.Db(2),o.Mc(" ",t.selAmountUnit," "),o.Db(1),o.oc("ngIf",!t.transaction.satoshis),o.Db(2),o.oc("value",t.selAmountUnit)("disabled",t.flgUseAllBalance),o.Db(1),o.oc("ngForOf",t.amountUnits),o.Db(3),o.oc("value",t.transaction.feeRate)("disabled",t.flgMinConf),o.Db(1),o.oc("ngForOf",t.feeRateTypes),o.Db(2),o.oc("ngModel",t.flgMinConf),o.Db(2),o.oc("ngModel",t.transaction.minconf)("step",1)("min",0)("required",t.flgMinConf)("disabled",!t.flgMinConf),o.Db(2),o.oc("ngIf",t.flgMinConf&&!t.transaction.minconf),o.Db(1),o.oc("ngIf",t.isCompatibleVersion),o.Db(2),o.oc("ngIf",""!==t.sendFundError)}}function ni(t,e){if(1&t&&o.Kc(0),2&t){const t=o.hc(3);o.Lc(t.passwordFormLabel)}}function ii(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Password is required."),o.Ub())}function ai(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-step",49),o.Vb(1,"form",70),o.Ic(2,ni,1,1,"ng-template",64),o.Vb(3,"div",0),o.Vb(4,"mat-form-field",52),o.Qb(5,"input",71),o.Ic(6,ii,2,0,"mat-error",14),o.Ub(),o.Ub(),o.Vb(7,"div",72),o.Vb(8,"button",73),o.dc("click",function(){return o.zc(t),o.hc(2).onAuthenticate()}),o.Kc(9,"Confirm"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=o.hc(2);o.oc("stepControl",t.passwordFormGroup)("editable",t.flgEditable),o.Db(1),o.oc("formGroup",t.passwordFormGroup),o.Db(5),o.oc("ngIf",null==t.passwordFormGroup.controls.password.errors?null:t.passwordFormGroup.controls.password.errors.required)}}function oi(t,e){if(1&t&&o.Kc(0),2&t){const t=o.hc(2);o.Lc(t.sendFundFormLabel)}}function si(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Bitcoin address is required."),o.Ub())}function ci(t,e){if(1&t&&(o.Vb(0,"mat-option",36),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.oc("value",t.feeRateId),o.Db(1),o.Mc(" ",t.feeRateType," ")}}function li(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Fees Rate is required."),o.Ub())}function ri(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Min confirmation blocks is required."),o.Ub())}function bi(t,e){if(1&t&&o.Kc(0),2&t){const t=o.hc(2);o.Lc(t.confirmFormLabel)}}function di(t,e){if(1&t&&(o.Vb(0,"span"),o.Kc(1),o.Ub()),2&t){const t=o.hc(3);o.Db(1),o.Lc(t.sendFundError)}}function ui(t,e){if(1&t&&(o.Vb(0,"div",43),o.Qb(1,"fa-icon",44),o.Ic(2,di,2,1,"span",14),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.oc("icon",t.faExclamationTriangle),o.Db(1),o.oc("ngIf",""!==t.sendFundError)}}function hi(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",45),o.Vb(1,"mat-vertical-stepper",46,47),o.dc("selectionChange",function(e){return o.zc(t),o.hc().stepSelectionChanged(e)}),o.Ic(3,ai,10,4,"mat-step",48),o.Vb(4,"mat-step",49),o.Vb(5,"form",50),o.Ic(6,oi,1,1,"ng-template",51),o.Vb(7,"div",31),o.Vb(8,"mat-form-field",52),o.Qb(9,"input",53),o.Ic(10,si,2,0,"mat-error",14),o.Ub(),o.Vb(11,"div",54),o.Vb(12,"mat-form-field",55),o.Vb(13,"mat-select",56),o.Ic(14,ci,2,2,"mat-option",21),o.Ub(),o.Ic(15,li,2,0,"mat-error",14),o.Ub(),o.Vb(16,"div",57),o.Qb(17,"mat-checkbox",58),o.Vb(18,"mat-form-field",27),o.Qb(19,"input",59),o.Ic(20,ri,2,0,"mat-error",14),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(21,"div",60),o.Vb(22,"button",61),o.Kc(23,"Next"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(24,"mat-step",62),o.Vb(25,"form",63),o.Ic(26,bi,1,1,"ng-template",64),o.Vb(27,"div",45),o.Vb(28,"div",65),o.Qb(29,"fa-icon",66),o.Vb(30,"span"),o.Kc(31,"You are about to sweep all funds from RTL. Are you sure?"),o.Ub(),o.Ub(),o.Ic(32,ui,3,2,"div",32),o.Vb(33,"div",60),o.Vb(34,"button",67),o.dc("click",function(){return o.zc(t),o.hc().onSendFunds()}),o.Kc(35,"Sweep All Funds"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(36,"div",68),o.Vb(37,"button",69),o.Kc(38),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=o.hc();o.Db(1),o.oc("linear",!0),o.Db(2),o.oc("ngIf",!t.appConfig.sso.rtlSSO),o.Db(1),o.oc("stepControl",t.sendFundFormGroup)("editable",t.flgEditable),o.Db(1),o.oc("formGroup",t.sendFundFormGroup),o.Db(5),o.oc("ngIf",null==t.sendFundFormGroup.controls.transactionAddress.errors?null:t.sendFundFormGroup.controls.transactionAddress.errors.required),o.Db(4),o.oc("ngForOf",t.feeRateTypes),o.Db(1),o.oc("ngIf",null==t.sendFundFormGroup.controls.transactionFeeRate.errors?null:t.sendFundFormGroup.controls.transactionFeeRate.errors.required),o.Db(4),o.oc("step",1)("min",0),o.Db(1),o.oc("ngIf",null==t.sendFundFormGroup.controls.transactionBlocks.errors?null:t.sendFundFormGroup.controls.transactionBlocks.errors.required),o.Db(4),o.oc("stepControl",t.confirmFormGroup),o.Db(1),o.oc("formGroup",t.confirmFormGroup),o.Db(4),o.oc("icon",t.faExclamationTriangle),o.Db(3),o.oc("ngIf",""!==t.sendFundError),o.Db(5),o.oc("mat-dialog-close",!1),o.Db(1),o.Lc(t.flgValidated?"Close":"Cancel")}}let mi=(()=>{class t{constructor(t,e,n,i,a,o,s,c,l,r){this.dialogRef=t,this.data=e,this.logger=n,this.store=i,this.commonService=a,this.decimalPipe=o,this.actions$=s,this.formBuilder=c,this.rtlEffects=l,this.snackBar=r,this.faExclamationTriangle=m.o,this.sweepAll=!1,this.selNode={},this.addressTypes=[],this.transactions=[],this.selUTXOs=[],this.flgUseAllBalance=!1,this.totalSelectedUTXOAmount=null,this.flgLoadingWallet=!0,this.selectedAddress=f.a[1],this.blockchainBalance={},this.information={},this.isCompatibleVersion=!1,this.newAddress="",this.transaction={},this.feeRateTypes=f.j,this.flgMinConf=!1,this.sendFundError="",this.fiatConversion=!1,this.amountUnits=f.e,this.selAmountUnit=f.e[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=f.f,this.advancedTitle="Advanced Options",this.flgValidated=!1,this.flgEditable=!0,this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a,new b.a]}ngOnInit(){this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[ct.t.required]],password:["",[ct.t.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",ct.t.required],transactionFeeRate:[null],flgMinConf:[!1],transactionBlocks:[{value:null,disabled:!0}]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.flgMinConf.valueChanges.pipe(Object(d.a)(this.unSubs[4])).subscribe(t=>{t?(this.sendFundFormGroup.controls.transactionBlocks.enable(),this.sendFundFormGroup.controls.transactionBlocks.setValidators([ct.t.required]),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFeeRate.disable(),this.sendFundFormGroup.controls.transactionFeeRate.setValue(null)):(this.sendFundFormGroup.controls.transactionBlocks.disable(),this.sendFundFormGroup.controls.transactionBlocks.setValidators(null),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionBlocks.setErrors(null),this.sendFundFormGroup.controls.transactionFeeRate.enable(),this.sendFundFormGroup.controls.transactionFeeRate.setValue(null))}),Object(Rn.b)(this.store.select("root"),this.store.select("cl")).pipe(Object(d.a)(this.unSubs[0])).subscribe(([t,e])=>{this.fiatConversion=t.selNode.settings.fiatConversion,this.amountUnits=t.selNode.settings.currencyUnits,this.appConfig=t.appConfig,this.nodeData=t.nodeData,this.information=e.information,this.isCompatibleVersion=this.commonService.isVersionCompatible(this.information.version,"0.9.0")&&this.commonService.isVersionCompatible(this.information.api_version,"0.4.0"),this.transactions=this.commonService.sortAscByKey(e.transactions.filter(t=>"confirmed"===t.status),"value"),this.logger.info(t),this.logger.info(e)}),this.actions$.pipe(Object(d.a)(this.unSubs[1]),Object(u.a)(t=>t.type===p.o||t.type===p.gb)).subscribe(t=>{t.type===p.gb&&(this.store.dispatch(new st.E("Fund Sent Successfully!")),this.dialogRef.close()),t.type===p.o&&"SetChannelTransaction"===t.payload.action&&(this.sendFundError=t.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch(new st.t(Mn(this.passwordFormGroup.controls.password.value))),this.rtlEffects.isAuthorizedRes.pipe(Object(Jt.a)(1)).subscribe(t=>{"ERROR"!==t?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="",this.flgUseAllBalance&&(this.transaction.satoshis="all"),this.selUTXOs.length&&this.selUTXOs.length>0&&(this.transaction.utxos=[],this.selUTXOs.forEach(t=>this.transaction.utxos.push(t.txid+":"+t.output))),this.store.dispatch(new st.F("Sending Funds...")),this.sweepAll?(this.transaction.satoshis="all",this.transaction.address=this.sendFundFormGroup.controls.transactionAddress.value,this.sendFundFormGroup.controls.flgMinConf.value?(delete this.transaction.feeRate,this.transaction.minconf=this.sendFundFormGroup.controls.transactionBlocks.value):(delete this.transaction.minconf,this.sendFundFormGroup.controls.transactionFeeRate.value?this.transaction.feeRate=this.sendFundFormGroup.controls.transactionFeeRate.value:delete this.transaction.feeRate),delete this.transaction.utxos,this.store.dispatch(new p.Ab(this.transaction))):this.transaction.satoshis&&"all"!==this.transaction.satoshis&&this.selAmountUnit!==f.g.SATS?this.commonService.convertCurrency(+this.transaction.satoshis,this.selAmountUnit===this.amountUnits[2]?f.g.OTHER:this.selAmountUnit,this.amountUnits[2],this.fiatConversion).pipe(Object(d.a)(this.unSubs[2])).subscribe(t=>{this.transaction.satoshis=t[f.g.SATS],this.selAmountUnit=f.g.SATS,this.store.dispatch(new p.Ab(this.transaction))}):this.store.dispatch(new p.Ab(this.transaction))}get invalidValues(){return this.sweepAll?!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||this.sendFundFormGroup.controls.flgMinConf.value&&(!this.sendFundFormGroup.controls.transactionBlocks.value||this.sendFundFormGroup.controls.transactionBlocks.value<=0):!this.transaction.address||""===this.transaction.address||!this.transaction.satoshis||+this.transaction.satoshis<=0||this.flgMinConf&&(!this.transaction.minconf||this.transaction.minconf<=0)}resetData(){this.sendFundError="",this.transaction={},this.flgMinConf=!1,this.totalSelectedUTXOAmount=null,this.selUTXOs=[],this.flgUseAllBalance=!1,this.selAmountUnit=f.e[0]}stepSelectionChanged(t){switch(this.sendFundError="",t.selectedIndex){case 0:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds";break;case 1:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds";break;case 2:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds | Address: "+this.sendFundFormGroup.controls.transactionAddress.value+(this.sendFundFormGroup.controls.flgMinConf.value?" | Min Confirmation Blocks: "+this.sendFundFormGroup.controls.transactionBlocks.value:this.sendFundFormGroup.controls.transactionFeeRate.value?" | Fee Rate: "+this.feeRateTypes.find(t=>t.feeRateId===this.sendFundFormGroup.controls.transactionFeeRate.value).feeRateType:"");break;default:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds"}t.selectedIndex0?(this.totalSelectedUTXOAmount=this.selUTXOs.reduce((t,n)=>(e.value=t.value+n.value,e)).value,this.flgUseAllBalance&&this.onUTXOAllBalanceChange()):(this.totalSelectedUTXOAmount=null,this.transaction.satoshis=null,this.flgUseAllBalance=!1)}onUTXOAllBalanceChange(){this.flgUseAllBalance?(this.transaction.satoshis=this.totalSelectedUTXOAmount,this.selAmountUnit=f.e[0]):this.transaction.satoshis=null}onAmountUnitChange(t){let e=this,n=t.value===this.amountUnits[2]?f.g.OTHER:t.value;this.transaction.satoshis&&this.selAmountUnit!==t.value&&this.commonService.convertCurrency(+this.transaction.satoshis,this.selAmountUnit===this.amountUnits[2]?f.g.OTHER:this.selAmountUnit,this.amountUnits[2],this.fiatConversion).pipe(Object(d.a)(this.unSubs[3])).subscribe(t=>{e.transaction.satoshis=e.decimalPipe.transform(t[n],e.currencyUnitFormats[n]).replace(/,/g,"")}),this.selAmountUnit=t.value}onAdvancedPanelToggle(t){this.advancedTitle=t&&this.selUTXOs.length&&this.selUTXOs.length>0?"Advanced Options | Selected UTXOs: "+this.selUTXOs.length+" | Selected UTXO Amount: "+this.decimalPipe.transform(this.totalSelectedUTXOAmount)+" Sats":"Advanced Options"}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(ot.f),o.Pb(ot.a),o.Pb(g.b),o.Pb(y.h),o.Pb(x.a),o.Pb(i.f),o.Pb(v.a),o.Pb(ct.d),o.Pb(xt.a),o.Pb(On.b))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-on-chain-send-modal"]],viewQuery:function(t,e){if(1&t&&(o.Ec(Nn,!0),o.Pc(qn,!0),o.Pc(Qn,!0)),2&t){let t;o.vc(t=o.ec())&&(e.form=t.first),o.vc(t=o.ec())&&(e.formSweepAll=t.first),o.vc(t=o.ec())&&(e.stepper=t.first)}},decls:12,vars:4,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"mt-5px"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","padding-gap overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["sweepAllBlock",""],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"padding-gap","overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex","55"],["matInput","","autoFocus","","placeholder","Bitcoin Address","tabindex","1","name","address","required","",3,"ngModel","ngModelChange"],["address","ngModel"],[4,"ngIf"],["fxFlex","30"],["matInput","","placeholder","Amount","name","amount","tabindex","2","required","",3,"ngModel","type","step","min","disabled","ngModelChange"],["amount","ngModel"],["matSuffix",""],["fxFlex","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","disabled","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","60","fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["fxFlex","48","fxLayoutAlign","start end"],["tabindex","6","placeholder","Fee Rate",3,"value","disabled","valueChange"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","7","color","primary","name","flgMinConf","fxLayoutAlign","stretch start",1,"mr-2",3,"ngModel","ngModelChange","change"],["fxFlex","98"],["matInput","","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"ngModel","step","min","required","disabled","ngModelChange"],["blocks","ngModel"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-flat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","35","fxLayoutAlign","start end"],["tabindex","8","placeholder","Coin Selection","multiple","",3,"value","selectionChange","valueChange"],["fxFlex","60","tabindex","9","color","primary","name","flgUseAllBalance","matTooltip","Use selected UTXOs balance as the amount to be sent. Final amount sent will be less the mining fee.","matTooltipPosition","above",3,"ngModel","disabled","ngModelChange","change"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxFlex","100"],["matInput","","formControlName","transactionAddress","placeholder","Bitcoin Address","tabindex","4","name","address","required",""],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex.gt-sm","48","fxLayoutAlign","start end"],["tabindex","5","placeholder","Fee Rate","formControlName","transactionFeeRate"],["fxFlex.gt-sm","48","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","6","color","primary","formControlName","flgMinConf","name","flgMinCon",1,"mr-2"],["matInput","","formControlName","transactionBlocks","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","7","required","",3,"step","min"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","8","type","default","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-stroked-button","","color","primary","tabindex","9","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","default",3,"click"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"mat-card-header",2),o.Vb(3,"div",3),o.Vb(4,"span",4),o.Kc(5),o.Ub(),o.Ub(),o.Vb(6,"button",5),o.Kc(7,"X"),o.Ub(),o.Ub(),o.Vb(8,"mat-card-content",6),o.Ic(9,ei,34,25,"form",7),o.Ub(),o.Ub(),o.Ub(),o.Ic(10,hi,39,17,"ng-template",null,8,o.Jc)),2&t){const t=o.wc(11);o.Db(5),o.Lc(e.sweepAll?"Sweep All Funds":"Send Funds"),o.Db(1),o.oc("mat-dialog-close",!1),o.Db(3),o.oc("ngIf",!e.sweepAll)("ngIfElse",t)}},directives:[w.c,w.a,D.c,w.b,S.a,ot.d,D.b,i.o,ct.u,ct.n,ct.o,K.c,lt.b,ct.c,rt.a,ct.s,ct.m,ct.p,bt.a,K.g,dt.a,i.n,En.a,ct.q,K.b,K.f,ht.m,zn.c,zn.e,zn.f,dt.c,ut.a,R.a,V.a,Bn.h,Bn.a,ct.h,Bn.b,ct.g,Bn.f],pipes:[i.f],styles:[""]}),t})();var fi=n("qmev");function pi(t,e){1&t&&o.Qb(0,"mat-progress-bar",28)}function gi(t,e){1&t&&(o.Vb(0,"th",29),o.Kc(1," Transaction ID "),o.Ub())}function yi(t,e){1&t&&o.Qb(0,"span",35)}function vi(t,e){if(1&t&&(o.Qb(0,"span",36),o.ic(1,"titlecase")),2&t){const t=o.hc().$implicit;o.pc("matTooltip",o.jc(1,1,t.status))}}const xi=function(t){return{"max-width":t}};function wi(t,e){if(1&t&&(o.Vb(0,"td",30),o.Vb(1,"div",31),o.Ic(2,yi,1,0,"span",32),o.Ic(3,vi,2,3,"span",33),o.Vb(4,"span",34),o.Kc(5),o.Ub(),o.Ub(),o.Ub()),2&t){const t=e.$implicit,n=o.hc();o.Db(1),o.oc("ngStyle",o.sc(4,xi,n.screenSize===n.screenSizeEnum.XS?"10rem":"50rem")),o.Db(1),o.oc("ngIf","confirmed"===t.status),o.Db(1),o.oc("ngIf","confirmed"!==t.status),o.Db(2),o.Lc(t.txid)}}function Vi(t,e){1&t&&(o.Vb(0,"th",37),o.Kc(1," Output "),o.Ub())}function Ui(t,e){if(1&t&&(o.Vb(0,"td",30),o.Vb(1,"span",38),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.jc(3,1,null==t?null:t.output)," ")}}function Di(t,e){1&t&&(o.Vb(0,"th",37),o.Kc(1," Value (Sats) "),o.Ub())}function Ci(t,e){if(1&t&&(o.Vb(0,"span",38),o.Kc(1),o.ic(2,"number"),o.Ub()),2&t){const t=o.hc().$implicit;o.Db(1),o.Lc(o.jc(2,1,t.value))}}function Si(t,e){if(1&t&&(o.Vb(0,"span",41),o.Kc(1),o.ic(2,"number"),o.Ub()),2&t){const t=o.hc().$implicit;o.Db(1),o.Mc("(",o.jc(2,1,-1*t.value),")")}}function Li(t,e){if(1&t&&(o.Vb(0,"td",30),o.Ic(1,Ci,3,3,"span",39),o.Ic(2,Si,3,3,"span",40),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.oc("ngIf",t.value>0||0===t.value),o.Db(1),o.oc("ngIf",t.value<0)}}function Ii(t,e){1&t&&(o.Vb(0,"th",37),o.Kc(1," Blockheight "),o.Ub())}function Fi(t,e){if(1&t&&(o.Vb(0,"td",30),o.Vb(1,"span",38),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.jc(3,1,null==t?null:t.blockheight)," ")}}function ki(t,e){if(1&t){const t=o.Wb();o.Vb(0,"th",42),o.Vb(1,"div",43),o.Vb(2,"mat-select",44),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",45),o.dc("click",function(){return o.zc(t),o.hc().onDownloadCSV()}),o.Kc(5,"Download CSV"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function Ai(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",46),o.Vb(1,"button",47),o.dc("click",function(n){o.zc(t);const i=e.$implicit;return o.hc().onTransactionClick(i,n)}),o.Kc(2,"View Info"),o.Ub(),o.Ub()}}function _i(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No transactions available."),o.Ub())}function Pi(t,e){if(1&t&&(o.Vb(0,"td",48),o.Ic(1,_i,2,0,"p",49),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("ngIf",!(null!=t.listTransactions&&t.listTransactions.data)||(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)<1)}}const Ti=function(t){return{"display-none":t}};function Ki(t,e){if(1&t&&o.Qb(0,"tr",50),2&t){const t=o.hc();o.oc("ngClass",o.sc(1,Ti,(null==t.listTransactions?null:t.listTransactions.data)&&(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)>0))}}function Ri(t,e){1&t&&o.Qb(0,"tr",51)}function Mi(t,e){1&t&&o.Qb(0,"tr",52)}const Oi=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},Ei=function(){return["no_transaction"]};let zi=(()=>{class t{constructor(t,e,n,i){this.logger=t,this.commonService=e,this.store=n,this.actions$=i,this.faMoneyBillWave=m.x,this.displayedColumns=[],this.transactionsData=[],this.flgLoading=[!0],this.flgSticky=!1,this.pageSize=f.n,this.pageSizeOptions=f.o,this.screenSize="",this.screenSizeEnum=f.q,this.unsub=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["txid","value","actions"]):this.screenSize===f.q.SM||this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["txid","output","value","blockheight","actions"]):(this.flgSticky=!0,this.displayedColumns=["txid","output","value","blockheight","actions"])}ngOnInit(){this.store.select("cl").pipe(Object(d.a)(this.unsub[0])).subscribe(t=>{t.effectErrors.forEach(t=>{"FetchTransactions"===t.action&&(this.flgLoading[0]="error")}),this.transactionsData=t.transactions,this.transactionsData.length>0&&this.loadTransactionsTable(this.transactionsData),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!t.transactions),this.logger.info(t)})}ngAfterViewInit(){this.transactionsData.length>0&&this.loadTransactionsTable(this.transactionsData)}applyFilter(t){this.listTransactions.filter=t.value}onTransactionClick(t,e){const n=[[{key:"txid",value:t.txid,title:"Transaction ID",width:100}],[{key:"output",value:t.output,title:"Output",width:50,type:f.h.NUMBER},{key:"value",value:t.value,title:"Value (Sats)",width:50,type:f.h.NUMBER}],[{key:"status",value:this.commonService.titleCase(t.status),title:"Status",width:50,type:f.h.STRING},{key:"blockheight",value:t.blockheight,title:"Blockheight",width:50,type:f.h.NUMBER}],[{key:"address",value:t.address,title:"Address",width:100}]];this.store.dispatch(new st.C({data:{type:f.b.INFORMATION,alertTitle:"Transaction Information",message:n}}))}loadTransactionsTable(t){this.listTransactions=new at.o([...t]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.listTransactions.paginator=this.paginator,this.logger.info(this.listTransactions)}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}ngOnDestroy(){this.unsub.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(x.a),o.Pb(y.h),o.Pb(v.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-on-chain-transaction-history"]],viewQuery:function(t,e){if(1&t&&(o.Pc(it.a,!0),o.Pc(nt.a,!0)),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.paginator=t.first)}},features:[o.Cb([{provide:nt.b,useValue:Object(f.y)("Transactions")}])],decls:34,vars:14,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","txid"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","blockheight"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","dot green","matTooltip","Confirmed","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Confirmed","matTooltipPosition","right",1,"dot","green"],["matTooltipPosition","right",1,"dot","yellow",3,"matTooltip"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"div",2),o.Qb(3,"fa-icon",3),o.Vb(4,"span",4),o.Kc(5,"UTXOs"),o.Ub(),o.Ub(),o.Vb(6,"mat-form-field",5),o.Vb(7,"input",6),o.dc("keyup",function(t){return e.applyFilter(t.target)}),o.Ub(),o.Ub(),o.Ub(),o.Vb(8,"div",7),o.Vb(9,"div",8),o.Ic(10,pi,1,0,"mat-progress-bar",9),o.Vb(11,"table",10,11),o.Tb(13,12),o.Ic(14,gi,2,0,"th",13),o.Ic(15,wi,6,6,"td",14),o.Sb(),o.Tb(16,15),o.Ic(17,Vi,2,0,"th",16),o.Ic(18,Ui,4,3,"td",14),o.Sb(),o.Tb(19,17),o.Ic(20,Di,2,0,"th",16),o.Ic(21,Li,3,2,"td",14),o.Sb(),o.Tb(22,18),o.Ic(23,Ii,2,0,"th",16),o.Ic(24,Fi,4,3,"td",14),o.Sb(),o.Tb(25,19),o.Ic(26,ki,6,0,"th",20),o.Ic(27,Ai,3,0,"td",21),o.Sb(),o.Tb(28,22),o.Ic(29,Pi,2,1,"td",23),o.Sb(),o.Ic(30,Ki,1,3,"tr",24),o.Ic(31,Ri,1,0,"tr",25),o.Ic(32,Mi,1,0,"tr",26),o.Ub(),o.Qb(33,"mat-paginator",27),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(3),o.oc("icon",e.faMoneyBillWave),o.Db(7),o.oc("ngIf",!0===e.flgLoading[0]),o.Db(1),o.oc("dataSource",e.listTransactions)("ngClass",o.sc(11,Oi,"error"===e.flgLoading[0])),o.Db(19),o.oc("matFooterRowDef",o.rc(13,Ei)),o.Db(1),o.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.Db(1),o.oc("matRowDefColumns",e.displayedColumns),o.Db(1),o.oc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[w.c,w.b,w.a,V.a,K.c,lt.b,O.b,i.o,at.n,it.a,i.m,I.a,at.c,at.i,at.b,at.e,at.g,at.k,at.m,nt.a,s.a,at.h,it.b,at.a,i.p,I.b,R.a,dt.a,dt.c,ht.m,S.a,at.d,at.f,at.j,at.l],pipes:[i.x,i.f],styles:[".mat-column-txid[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-txid[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})();function Bi(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",12),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().activeLink=n.link}),o.Kc(1),o.Ub()}if(2&t){const t=e.$implicit,n=o.hc();o.pc("routerLink",t.link),o.oc("active",n.activeLink===t.link),o.Db(1),o.Lc(t.name)}}let Ni=(()=>{class t{constructor(t,e){this.store=t,this.router=e,this.selNode={},this.faExchangeAlt=m.n,this.faChartPie=m.g,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"},{link:"sweep",name:"Sweep All"}],this.activeLink=this.links[0].link,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){let t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t instanceof a.f)).subscribe(t=>{let e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link}),this.store.select("cl").pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.selNode=t.nodeSettings,this.balances=[{title:"Total Balance",dataValue:t.balance.totalBalance||0},{title:"Confirmed",dataValue:t.balance.confBalance},{title:"Unconfirmed",dataValue:t.balance.unconfBalance}]})}openSendFundsModal(t){this.store.dispatch(new st.C({data:{sweepAll:t,component:mi}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(y.h),o.Pb(a.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-on-chain"]],decls:21,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large","mt-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Qb(1,"fa-icon",1),o.Vb(2,"span",2),o.Kc(3,"On-chain Balance"),o.Ub(),o.Ub(),o.Vb(4,"div",3),o.Vb(5,"mat-card"),o.Vb(6,"mat-card-content",4),o.Qb(7,"rtl-currency-unit-converter",5),o.Ub(),o.Ub(),o.Ub(),o.Vb(8,"div",0),o.Qb(9,"fa-icon",1),o.Vb(10,"span",2),o.Kc(11,"On-chain Transactions"),o.Ub(),o.Ub(),o.Vb(12,"div",6),o.Vb(13,"mat-card"),o.Vb(14,"mat-card-content",4),o.Vb(15,"nav",7),o.Ic(16,Bi,2,3,"div",8),o.Ub(),o.Vb(17,"div",9),o.Qb(18,"router-outlet"),o.Ub(),o.Vb(19,"div",10),o.Qb(20,"rtl-cl-on-chain-transaction-history",11),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(1),o.oc("icon",e.faChartPie),o.Db(6),o.oc("values",e.balances),o.Db(2),o.oc("icon",e.faExchangeAlt),o.Db(7),o.oc("ngForOf",e.links))},directives:[w.c,w.b,V.a,D.a,D.b,fi.a,et.e,i.n,w.a,a.l,zi,et.d,a.h],styles:[""]}),t})();var qi=n("8Qe2");function Qi(t,e){if(1&t&&(o.Vb(0,"span",10),o.Kc(1,"Channels"),o.Ub()),2&t){const t=o.hc();o.pc("matBadge",t.activeChannels)}}function Hi(t,e){if(1&t&&(o.Vb(0,"span",10),o.Kc(1,"Peers"),o.Ub()),2&t){const t=o.hc();o.pc("matBadge",t.activePeers)}}let ji=(()=>{class t{constructor(t,e,n,i){this.store=t,this.logger=e,this.commonService=n,this.router=i,this.activePeers=0,this.activeChannels=0,this.faUsers=m.O,this.faChartPie=m.g,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t instanceof a.f)).subscribe(t=>{this.activeLink=this.links.findIndex(e=>e.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}),this.store.select("cl").pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.activePeers=t.peers&&t.peers.length?t.peers.length:0,this.activeChannels=t.information.num_active_channels,this.balances=[{title:"Total Balance",dataValue:t.balance.totalBalance||0},{title:"Confirmed",dataValue:t.balance.confBalance},{title:"Unconfirmed",dataValue:t.balance.unconfBalance}],this.logger.info(t)})}onSelectedTabChange(t){this.router.navigateByUrl("/cl/connections/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(y.h),o.Pb(g.b),o.Pb(x.a),o.Pb(a.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-connections"]],decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Qb(1,"fa-icon",1),o.Vb(2,"span",2),o.Kc(3,"On-chain Balance"),o.Ub(),o.Ub(),o.Vb(4,"div",3),o.Vb(5,"mat-card"),o.Vb(6,"mat-card-content",4),o.Qb(7,"rtl-currency-unit-converter",5),o.Ub(),o.Ub(),o.Ub(),o.Vb(8,"div",0),o.Qb(9,"fa-icon",1),o.Vb(10,"span",2),o.Kc(11,"Connections"),o.Ub(),o.Ub(),o.Vb(12,"div",6),o.Vb(13,"mat-card"),o.Vb(14,"mat-card-content",4),o.Vb(15,"mat-tab-group",7),o.dc("selectedIndexChange",function(t){return e.activeLink=t})("selectedTabChange",function(t){return e.onSelectedTabChange(t)}),o.Vb(16,"mat-tab"),o.Ic(17,Qi,2,1,"ng-template",8),o.Ub(),o.Vb(18,"mat-tab"),o.Ic(19,Hi,2,1,"ng-template",8),o.Ub(),o.Ub(),o.Vb(20,"div",9),o.Qb(21,"router-outlet"),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(1),o.oc("icon",e.faChartPie),o.Db(6),o.oc("values",e.balances),o.Db(2),o.oc("icon",e.faUsers),o.Db(6),o.oc("selectedIndex",e.activeLink))},directives:[w.c,w.b,V.a,D.a,D.b,fi.a,et.b,et.a,et.c,w.a,a.l,qi.a],styles:[""]}),t})();function $i(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",11),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().activeLink=n.link}),o.Kc(1),o.Ub()}if(2&t){const t=e.$implicit,n=o.hc();o.pc("routerLink",t.link),o.oc("active",n.activeLink===t.link),o.Db(1),o.Lc(t.name)}}let Gi=(()=>{class t{constructor(t,e,n){this.logger=t,this.store=e,this.router=n,this.faExchangeAlt=m.n,this.faChartPie=m.g,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){let t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t instanceof a.f)).subscribe(t=>{let e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link}),this.store.select("cl").pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.currencyUnits=t.nodeSettings.currencyUnits,this.balances=t.nodeSettings.userPersona===f.w.OPERATOR?[{title:"Local Capacity",dataValue:t.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:t.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:t.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:t.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(t)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(y.h),o.Pb(a.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-transactions"]],decls:19,vars:4,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Qb(1,"fa-icon",1),o.Vb(2,"span",2),o.Kc(3,"Lightning Balance"),o.Ub(),o.Ub(),o.Vb(4,"div",3),o.Vb(5,"mat-card"),o.Vb(6,"mat-card-content",4),o.Qb(7,"rtl-currency-unit-converter",5),o.Ub(),o.Ub(),o.Ub(),o.Vb(8,"div",6),o.Qb(9,"fa-icon",1),o.Vb(10,"span",2),o.Kc(11,"Lightning Transactions"),o.Ub(),o.Ub(),o.Vb(12,"div",7),o.Vb(13,"mat-card"),o.Vb(14,"mat-card-content",4),o.Vb(15,"nav",8),o.Ic(16,$i,2,3,"div",9),o.Ub(),o.Vb(17,"div",10),o.Qb(18,"router-outlet"),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(1),o.oc("icon",e.faChartPie),o.Db(6),o.oc("values",e.balances),o.Db(2),o.oc("icon",e.faExchangeAlt),o.Db(7),o.oc("ngForOf",e.links))},directives:[w.c,w.b,V.a,D.a,D.b,fi.a,et.e,i.n,w.a,a.l,et.d,a.h],styles:[""]}),t})();function Xi(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",11),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().activeLink=n.link}),o.Kc(1),o.Ub()}if(2&t){const t=e.$implicit,n=o.hc();o.pc("routerLink",t.link),o.oc("active",n.activeLink===t.link),o.Db(1),o.Lc(t.name)}}let Wi=(()=>{class t{constructor(t,e){this.store=t,this.router=e,this.faMapSigns=m.w,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"failedtransactions",name:"Failed Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new b.a,new b.a,new b.a]}ngOnInit(){let t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t instanceof a.f)).subscribe(t=>{let e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link})}ngOnDestroy(){this.store.dispatch(new p.Db({})),this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(y.h),o.Pb(a.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-routing"]],decls:13,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Qb(2,"fa-icon",2),o.Vb(3,"span",3),o.Kc(4,"Routing"),o.Ub(),o.Ub(),o.Vb(5,"div",4),o.Vb(6,"mat-card",5),o.Vb(7,"mat-card-content",6),o.Vb(8,"div",7),o.Vb(9,"nav",8),o.Ic(10,Xi,2,3,"div",9),o.Ub(),o.Ub(),o.Vb(11,"div",10),o.Qb(12,"router-outlet"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(2),o.oc("icon",e.faMapSigns),o.Db(8),o.oc("ngForOf",e.links))},directives:[w.c,w.b,V.a,w.a,D.a,D.b,et.e,i.n,a.l,et.d,a.h],styles:[""]}),t})();var Ji=n("dEYt");function Yi(t,e){1&t&&(o.Vb(0,"th",26),o.Kc(1,"Type"),o.Ub())}function Zi(t,e){if(1&t&&(o.Vb(0,"td",27),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null==t?null:t.type," ")}}function ta(t,e){1&t&&(o.Vb(0,"th",26),o.Kc(1,"Address"),o.Ub())}function ea(t,e){if(1&t&&(o.Vb(0,"td",27),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null==t?null:t.address," ")}}function na(t,e){1&t&&(o.Vb(0,"th",26),o.Kc(1,"Port"),o.Ub())}function ia(t,e){if(1&t&&(o.Vb(0,"td",27),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null==t?null:t.port," ")}}function aa(t,e){1&t&&(o.Vb(0,"th",28),o.Vb(1,"span",29),o.Kc(2,"Actions"),o.Ub(),o.Ub())}function oa(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",30),o.Vb(1,"span",29),o.Vb(2,"button",31),o.dc("copied",function(e){return o.zc(t),o.hc(2).onCopyNodeURI(e)}),o.Kc(3,"Copy Node URI"),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=e.$implicit,n=o.hc(2);o.Db(2),o.oc("payload",n.lookupResult.nodeid+"@"+t.address+":"+t.port)}}function sa(t,e){1&t&&o.Qb(0,"tr",32)}function ca(t,e){1&t&&o.Qb(0,"tr",33)}const la=function(t){return{"background-color":t}};function ra(t,e){if(1&t&&(o.Vb(0,"div",1),o.Qb(1,"mat-divider",2),o.Vb(2,"div",3),o.Vb(3,"h4",4),o.Kc(4,"Pub Key"),o.Ub(),o.Vb(5,"span",5),o.Kc(6),o.Ub(),o.Ub(),o.Qb(7,"mat-divider",6),o.Vb(8,"div",7),o.Vb(9,"div",3),o.Vb(10,"h4",4),o.Kc(11,"Alias"),o.Ub(),o.Vb(12,"span",8),o.Kc(13),o.Vb(14,"span",9),o.Kc(15),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Qb(16,"mat-divider",6),o.Vb(17,"div",7),o.Vb(18,"div",10),o.Vb(19,"h4",4),o.Kc(20,"Last Update"),o.Ub(),o.Vb(21,"span",8),o.Kc(22),o.Ub(),o.Ub(),o.Vb(23,"div",10),o.Vb(24,"h4",4),o.Kc(25,"Features"),o.Ub(),o.Vb(26,"span",8),o.Kc(27),o.Ub(),o.Ub(),o.Ub(),o.Qb(28,"mat-divider",6),o.Vb(29,"div",11),o.Vb(30,"h4",12),o.Kc(31,"Addresses"),o.Ub(),o.Vb(32,"div",13),o.Vb(33,"table",14,15),o.Tb(35,16),o.Ic(36,Yi,2,0,"th",17),o.Ic(37,Zi,2,1,"td",18),o.Sb(),o.Tb(38,19),o.Ic(39,ta,2,0,"th",17),o.Ic(40,ea,2,1,"td",18),o.Sb(),o.Tb(41,20),o.Ic(42,na,2,0,"th",17),o.Ic(43,ia,2,1,"td",18),o.Sb(),o.Tb(44,21),o.Ic(45,aa,3,0,"th",22),o.Ic(46,oa,4,1,"td",23),o.Sb(),o.Ic(47,sa,1,0,"tr",24),o.Ic(48,ca,1,0,"tr",25),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult.nodeid),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(t.lookupResult.alias),o.Db(1),o.oc("ngStyle",o.sc(13,la,"#"+t.lookupResult.color)),o.Db(1),o.Lc(t.lookupResult.color?"#"+t.lookupResult.color:""),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(t.lookupResult.last_timestamp_str),o.Db(5),o.Lc(t.lookupResult.features),o.Db(1),o.oc("inset",!0),o.Db(5),o.oc("dataSource",t.addresses),o.Db(14),o.oc("matHeaderRowDef",t.displayedColumns),o.Db(1),o.oc("matRowDefColumns",t.displayedColumns)}}let ba=(()=>{class t{constructor(t,e){this.logger=t,this.snackBar=e,this.displayedColumns=["type","address","port","actions"]}ngOnInit(){this.addresses=new at.o(this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses?this.lookupResult.addresses:[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null}onCopyNodeURI(t){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(On.b))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-node-lookup"]],viewQuery:function(t,e){if(1&t&&o.Pc(it.a,!0),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first)}},inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start",1,"my-1"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text","w-100"],[1,"my-1",3,"inset"],["fxLayout","row"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxLayout","column","fxFlex","50","fxLayoutAlign","end start",1,"my-1"],["fxLayout","column",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","port"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&o.Ic(0,ra,49,15,"div",0),2&t&&o.oc("ngIf",e.lookupResult)},directives:[i.o,w.c,M.a,w.a,w.b,i.p,I.b,O.b,at.n,it.a,at.c,at.i,at.b,at.k,at.m,at.h,it.b,at.a,S.a,Ji.a,at.j,at.l],styles:[""]}),t})();function da(t,e){1&t&&(o.Vb(0,"h3",11),o.Kc(1,"Node 1"),o.Ub())}function ua(t,e){1&t&&(o.Vb(0,"h3",11),o.Kc(1,"Node 1 (Your Node)"),o.Ub())}function ha(t,e){1&t&&(o.Vb(0,"h3",11),o.Kc(1,"Node 2"),o.Ub())}function ma(t,e){1&t&&(o.Vb(0,"h3",11),o.Kc(1,"Node 2 (Your Node)"),o.Ub())}function fa(t,e){if(1&t&&(o.Vb(0,"div",1),o.Qb(1,"mat-divider"),o.Vb(2,"div",2),o.Vb(3,"div",3),o.Vb(4,"div",4),o.Ic(5,da,2,0,"h3",5),o.Ic(6,ua,2,0,"h3",5),o.Ub(),o.Qb(7,"mat-divider",6),o.Vb(8,"div",7),o.Vb(9,"h4",8),o.Kc(10,"Short Channel Id"),o.Ub(),o.Vb(11,"span",9),o.Kc(12),o.Ub(),o.Ub(),o.Qb(13,"mat-divider",6),o.Vb(14,"div",10),o.Vb(15,"h4",8),o.Kc(16,"Active"),o.Ub(),o.Vb(17,"span",9),o.Kc(18),o.Ub(),o.Ub(),o.Qb(19,"mat-divider",6),o.Vb(20,"div",10),o.Vb(21,"h4",8),o.Kc(22,"Last Update"),o.Ub(),o.Vb(23,"span",9),o.Kc(24),o.Ub(),o.Ub(),o.Qb(25,"mat-divider",6),o.Vb(26,"div",10),o.Vb(27,"h4",8),o.Kc(28,"Amount (mSats)"),o.Ub(),o.Vb(29,"span",9),o.Kc(30),o.Ub(),o.Ub(),o.Qb(31,"mat-divider",6),o.Vb(32,"div",10),o.Vb(33,"h4",8),o.Kc(34,"Base Fee (mSats)"),o.Ub(),o.Vb(35,"span",9),o.Kc(36),o.ic(37,"number"),o.Ub(),o.Ub(),o.Qb(38,"mat-divider",6),o.Vb(39,"div",10),o.Vb(40,"h4",8),o.Kc(41,"Channel Flags"),o.Ub(),o.Vb(42,"span",9),o.Kc(43),o.ic(44,"number"),o.Ub(),o.Ub(),o.Qb(45,"mat-divider",6),o.Vb(46,"div",10),o.Vb(47,"h4",8),o.Kc(48,"Delay"),o.Ub(),o.Vb(49,"span",9),o.Kc(50),o.ic(51,"number"),o.Ub(),o.Ub(),o.Qb(52,"mat-divider",6),o.Vb(53,"div",10),o.Vb(54,"h4",8),o.Kc(55,"Destination"),o.Ub(),o.Vb(56,"span",9),o.Kc(57),o.Ub(),o.Ub(),o.Qb(58,"mat-divider",6),o.Vb(59,"div",10),o.Vb(60,"h4",8),o.Kc(61,"Fee/Millionth"),o.Ub(),o.Vb(62,"span",9),o.Kc(63),o.ic(64,"number"),o.Ub(),o.Ub(),o.Qb(65,"mat-divider",6),o.Vb(66,"div",10),o.Vb(67,"h4",8),o.Kc(68,"Max Htlc (mSat)"),o.Ub(),o.Vb(69,"span",9),o.Kc(70),o.Ub(),o.Ub(),o.Qb(71,"mat-divider",6),o.Vb(72,"div",10),o.Vb(73,"h4",8),o.Kc(74,"Min Htlc (mSat)"),o.Ub(),o.Vb(75,"span",9),o.Kc(76),o.Ub(),o.Ub(),o.Qb(77,"mat-divider",6),o.Vb(78,"div",10),o.Vb(79,"h4",8),o.Kc(80,"Message Flags"),o.Ub(),o.Vb(81,"span",9),o.Kc(82),o.ic(83,"number"),o.Ub(),o.Ub(),o.Qb(84,"mat-divider",6),o.Vb(85,"div",10),o.Vb(86,"h4",8),o.Kc(87,"Public"),o.Ub(),o.Vb(88,"span",9),o.Kc(89),o.Ub(),o.Ub(),o.Qb(90,"mat-divider",6),o.Vb(91,"div",10),o.Vb(92,"h4",8),o.Kc(93,"Satoshis"),o.Ub(),o.Vb(94,"span",9),o.Kc(95),o.ic(96,"number"),o.Ub(),o.Ub(),o.Qb(97,"mat-divider",6),o.Vb(98,"div",10),o.Vb(99,"h4",8),o.Kc(100,"Source"),o.Ub(),o.Vb(101,"span",9),o.Kc(102),o.Ub(),o.Ub(),o.Ub(),o.Vb(103,"div",3),o.Vb(104,"div"),o.Ic(105,ha,2,0,"h3",5),o.Ic(106,ma,2,0,"h3",5),o.Ub(),o.Qb(107,"mat-divider",6),o.Vb(108,"div",7),o.Vb(109,"h4",8),o.Kc(110,"Short Channel Id"),o.Ub(),o.Vb(111,"span",9),o.Kc(112),o.Ub(),o.Ub(),o.Qb(113,"mat-divider",6),o.Vb(114,"div",10),o.Vb(115,"h4",8),o.Kc(116,"Active"),o.Ub(),o.Vb(117,"span",9),o.Kc(118),o.Ub(),o.Ub(),o.Qb(119,"mat-divider",6),o.Vb(120,"div",10),o.Vb(121,"h4",8),o.Kc(122,"Last Update"),o.Ub(),o.Vb(123,"span",9),o.Kc(124),o.Ub(),o.Ub(),o.Qb(125,"mat-divider",6),o.Vb(126,"div",10),o.Vb(127,"h4",8),o.Kc(128,"Amount (mSats)"),o.Ub(),o.Vb(129,"span",9),o.Kc(130),o.Ub(),o.Ub(),o.Qb(131,"mat-divider",6),o.Vb(132,"div",10),o.Vb(133,"h4",8),o.Kc(134,"Base Fee (mSats)"),o.Ub(),o.Vb(135,"span",9),o.Kc(136),o.ic(137,"number"),o.Ub(),o.Ub(),o.Qb(138,"mat-divider",6),o.Vb(139,"div",10),o.Vb(140,"h4",8),o.Kc(141,"Channel Flags"),o.Ub(),o.Vb(142,"span",9),o.Kc(143),o.ic(144,"number"),o.Ub(),o.Ub(),o.Qb(145,"mat-divider",6),o.Vb(146,"div",10),o.Vb(147,"h4",8),o.Kc(148,"Delay"),o.Ub(),o.Vb(149,"span",9),o.Kc(150),o.ic(151,"number"),o.Ub(),o.Ub(),o.Qb(152,"mat-divider",6),o.Vb(153,"div",10),o.Vb(154,"h4",8),o.Kc(155,"Destination"),o.Ub(),o.Vb(156,"span",9),o.Kc(157),o.Ub(),o.Ub(),o.Qb(158,"mat-divider",6),o.Vb(159,"div",10),o.Vb(160,"h4",8),o.Kc(161,"Fee/Millionth"),o.Ub(),o.Vb(162,"span",9),o.Kc(163),o.ic(164,"number"),o.Ub(),o.Ub(),o.Qb(165,"mat-divider",6),o.Vb(166,"div",10),o.Vb(167,"h4",8),o.Kc(168,"Max Htlc (mSat)"),o.Ub(),o.Vb(169,"span",9),o.Kc(170),o.Ub(),o.Ub(),o.Qb(171,"mat-divider",6),o.Vb(172,"div",10),o.Vb(173,"h4",8),o.Kc(174,"Min Htlc (mSat)"),o.Ub(),o.Vb(175,"span",9),o.Kc(176),o.Ub(),o.Ub(),o.Qb(177,"mat-divider",6),o.Vb(178,"div",10),o.Vb(179,"h4",8),o.Kc(180,"Message Flags"),o.Ub(),o.Vb(181,"span",9),o.Kc(182),o.ic(183,"number"),o.Ub(),o.Ub(),o.Qb(184,"mat-divider",6),o.Vb(185,"div",10),o.Vb(186,"h4",8),o.Kc(187,"Public"),o.Ub(),o.Vb(188,"span",9),o.Kc(189),o.Ub(),o.Ub(),o.Qb(190,"mat-divider",6),o.Vb(191,"div",10),o.Vb(192,"h4",8),o.Kc(193,"Satoshis"),o.Ub(),o.Vb(194,"span",9),o.Kc(195),o.ic(196,"number"),o.Ub(),o.Ub(),o.Qb(197,"mat-divider",6),o.Vb(198,"div",10),o.Vb(199,"h4",8),o.Kc(200,"Source"),o.Ub(),o.Vb(201,"span",9),o.Kc(202),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(5),o.oc("ngIf",!t.node1_match),o.Db(1),o.oc("ngIf",t.node1_match),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[0].short_channel_id),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[0].active?"True":"False"),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[0].last_update_str),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[0].amount_msat),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(o.jc(37,64,t.lookupResult[0].base_fee_millisatoshi)),o.Db(2),o.oc("inset",!0),o.Db(5),o.Lc(o.jc(44,66,t.lookupResult[0].channel_flags)),o.Db(2),o.oc("inset",!0),o.Db(5),o.Lc(o.jc(51,68,t.lookupResult[0].delay)),o.Db(2),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[0].destination),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(o.jc(64,70,t.lookupResult[0].fee_per_millionth)),o.Db(2),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[0].htlc_maximum_msat),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[0].htlc_minimum_msat),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(o.jc(83,72,t.lookupResult[0].message_flags)),o.Db(2),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[0].public?"Yes":"No"),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(o.jc(96,74,t.lookupResult[0].satoshis)),o.Db(2),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[0].source),o.Db(3),o.oc("ngIf",!t.node2_match),o.Db(1),o.oc("ngIf",t.node2_match),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[1].short_channel_id),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[1].active?"True":"False"),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[1].last_update_str),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[1].amount_msat),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(o.jc(137,76,t.lookupResult[1].base_fee_millisatoshi)),o.Db(2),o.oc("inset",!0),o.Db(5),o.Lc(o.jc(144,78,t.lookupResult[1].channel_flags)),o.Db(2),o.oc("inset",!0),o.Db(5),o.Lc(o.jc(151,80,t.lookupResult[1].delay)),o.Db(2),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[1].destination),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(o.jc(164,82,t.lookupResult[1].fee_per_millionth)),o.Db(2),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[1].htlc_maximum_msat),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[1].htlc_minimum_msat),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(o.jc(183,84,t.lookupResult[1].message_flags)),o.Db(2),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[1].public?"Yes":"No"),o.Db(1),o.oc("inset",!0),o.Db(5),o.Lc(o.jc(196,86,t.lookupResult[1].satoshis)),o.Db(2),o.oc("inset",!0),o.Db(5),o.Lc(t.lookupResult[1].source)}}let pa=(()=>{class t{constructor(t){this.store=t,this.node1_match=!1,this.node2_match=!1,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){this.store.select("cl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{this.lookupResult.length>0&&this.lookupResult[0].source===t.information.id&&(this.node1_match=!0),this.lookupResult.length>1&&this.lookupResult[1].source===t.information.id&&(this.node2_match=!0)})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(y.h))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-channel-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],[3,"inset"],["fxLayout","column","fxFlex","20",1,"my-1"],[1,"font-bold-500"],[1,"foreground-secondary-text"],["fxLayout","column","fxFlex","10",1,"my-1"],[1,"page-title","font-bold-500"]],template:function(t,e){1&t&&o.Ic(0,fa,203,88,"div",0),2&t&&o.oc("ngIf",e.lookupResult)},directives:[i.o,w.c,M.a,w.b,w.a],pipes:[i.f],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),t})();const ga=["form"];function ya(t,e){if(1&t&&(o.Vb(0,"mat-radio-button",21),o.Kc(1),o.Ub()),2&t){const t=e.$implicit,n=o.hc();o.oc("value",t.id)("checked",n.selectedFieldId===t.id),o.Db(1),o.Mc(" ",t.name," ")}}function va(t,e){if(1&t&&(o.Vb(0,"mat-error"),o.Kc(1),o.Ub()),2&t){const t=o.hc();o.Db(1),o.Mc("",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder," is required.")}}function xa(t,e){if(1&t&&(o.Vb(0,"div"),o.Qb(1,"rtl-cl-node-lookup",30),o.Ub()),2&t){const t=o.hc(3);o.Db(1),o.oc("lookupResult",t.nodeLookupValue)}}function wa(t,e){if(1&t&&(o.Vb(0,"span",28),o.Ic(1,xa,2,1,"div",29),o.Ub()),2&t){const t=o.hc(2),e=o.wc(24);o.Db(1),o.oc("ngIf",""!==t.nodeLookupValue.nodeid)("ngIfElse",e)}}function Va(t,e){if(1&t&&(o.Vb(0,"div"),o.Qb(1,"rtl-cl-channel-lookup",30),o.Ub()),2&t){const t=o.hc(3);o.Db(1),o.oc("lookupResult",t.channelLookupValue)}}function Ua(t,e){if(1&t&&(o.Vb(0,"span",28),o.Ic(1,Va,2,1,"div",29),o.Ub()),2&t){const t=o.hc(2),e=o.wc(24);o.Db(1),o.oc("ngIf",t.channelLookupValue.length>0)("ngIfElse",e)}}function Da(t,e){1&t&&(o.Vb(0,"span",28),o.Vb(1,"h3"),o.Kc(2,"Error! Unable to find details!"),o.Ub(),o.Ub())}function Ca(t,e){if(1&t&&(o.Vb(0,"div",22),o.Vb(1,"div",23),o.Vb(2,"span",24),o.Kc(3),o.Ub(),o.Ub(),o.Vb(4,"div",25),o.Ic(5,wa,2,2,"span",26),o.Ic(6,Ua,2,2,"span",26),o.Ic(7,Da,3,0,"span",27),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(3),o.Mc("",t.lookupFields[t.selectedFieldId].name," Details"),o.Db(1),o.oc("ngSwitch",t.selectedFieldId),o.Db(1),o.oc("ngSwitchCase",0),o.Db(1),o.oc("ngSwitchCase",1)}}function Sa(t,e){1&t&&(o.Vb(0,"h3"),o.Kc(1,"Error! Unable to find details!"),o.Ub())}const La=function(t){return{"mt-2":t}};let Ia=(()=>{class t{constructor(t,e,n,i){this.logger=t,this.commonService=e,this.store=n,this.actions$=i,this.lookupKey="",this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Short Channel ID"}],this.flgLoading=[!0],this.faSearch=m.F,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions$.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t.type===p.pb||t.type===p.o)).subscribe(t=>{if(t.type===p.pb){switch(this.flgLoading[0]=!0,this.selectedFieldId){case 0:this.nodeLookupValue=t.payload[0]?JSON.parse(JSON.stringify(t.payload[0])):{nodeid:""};break;case 1:this.channelLookupValue=t.payload?JSON.parse(JSON.stringify(t.payload)):[]}this.flgSetLookupValue=!0,this.logger.info(this.nodeLookupValue),this.logger.info(this.channelLookupValue)}t.type===p.o&&"Lookup"===t.payload.action&&(this.flgLoading[0]="error")})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.store.dispatch(new st.F("Searching "+this.lookupFields[this.selectedFieldId].name+"...")),this.selectedFieldId){case 0:this.store.dispatch(new p.T(this.lookupKey.trim()));break;case 1:this.store.dispatch(new p.f({shortChannelID:this.lookupKey.trim(),showError:!1}))}}onSelectChange(t){this.resetData(),this.selectedFieldId=t.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.form.resetForm()}clearLookupValue(){this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(x.a),o.Pb(y.h),o.Pb(v.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-lookups"]],viewQuery:function(t,e){if(1&t&&o.Ec(ga,!0),2&t){let t;o.vc(t=o.ec())&&(e.form=t.first)}},decls:25,vars:10,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","35","fxFlex.gt-md","25","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","65","fxFlex.gt-md","75","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],["errorBlock",""],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Qb(2,"fa-icon",2),o.Vb(3,"span",3),o.Kc(4,"Graph Lookups"),o.Ub(),o.Ub(),o.Vb(5,"div",4),o.Vb(6,"mat-card",5),o.Vb(7,"mat-card-content",6),o.Vb(8,"form",7,8),o.Vb(10,"div",9),o.Vb(11,"mat-radio-group",10),o.dc("ngModelChange",function(t){return e.selectedFieldId=t})("change",function(t){return e.onSelectChange(t)}),o.Ic(12,ya,2,3,"mat-radio-button",11),o.Ub(),o.Ub(),o.Vb(13,"mat-form-field",12),o.Vb(14,"input",13,14),o.dc("change",function(){return e.clearLookupValue()})("ngModelChange",function(t){return e.lookupKey=t}),o.Ub(),o.Ic(16,va,2,1,"mat-error",15),o.Ub(),o.Vb(17,"div",16),o.Vb(18,"button",17),o.dc("click",function(){return e.resetData()}),o.Kc(19,"Clear"),o.Ub(),o.Vb(20,"button",18),o.dc("click",function(){return e.onLookup()}),o.Kc(21,"Lookup"),o.Ub(),o.Ub(),o.Ub(),o.Ic(22,Ca,8,4,"div",19),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ic(23,Sa,2,0,"ng-template",null,20,o.Jc)),2&t&&(o.Db(2),o.oc("icon",e.faSearch),o.Db(9),o.oc("ngModel",e.selectedFieldId),o.Db(1),o.oc("ngForOf",e.lookupFields),o.Db(1),o.oc("ngClass",o.sc(8,La,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),o.Db(1),o.oc("placeholder",(null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder)||"Lookup Key")("ngModel",e.lookupKey),o.Db(2),o.oc("ngIf",!e.lookupKey),o.Db(6),o.oc("ngIf",e.flgSetLookupValue))},directives:[w.c,w.b,V.a,w.a,D.a,D.b,ct.u,ct.n,ct.o,Zt.b,ct.m,ct.p,i.n,K.c,i.m,I.a,lt.b,ct.c,ct.s,i.o,S.a,Zt.a,K.b,i.q,i.r,i.s,ba,pa],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),t})();var Fa=function(t){return t.KB="KB",t.KW="KW",t}({});let ka=(()=>{class t{constructor(){this.perkbw={}}ngOnInit(){}ngAfterContentChecked(){this.feeRateStyle===Fa.KB?this.perkbw=this.feeRates.perkb:this.feeRateStyle===Fa.KW&&(this.perkbw=this.feeRates.perkw)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-fee-rates"]],inputs:{feeRateStyle:"feeRateStyle",feeRates:"feeRates",flgLoading:"flgLoading"},decls:51,vars:24,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch",1,"h-100"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"div"),o.Vb(3,"h4",2),o.Kc(4,"Urgent"),o.Ub(),o.Vb(5,"div",3),o.Kc(6),o.ic(7,"number"),o.Ub(),o.Ub(),o.Vb(8,"div"),o.Vb(9,"h4",2),o.Kc(10,"Normal"),o.Ub(),o.Vb(11,"div",3),o.Kc(12),o.ic(13,"number"),o.Ub(),o.Ub(),o.Vb(14,"div"),o.Vb(15,"h4",2),o.Kc(16,"Slow"),o.Ub(),o.Vb(17,"div",3),o.Kc(18),o.ic(19,"number"),o.Ub(),o.Ub(),o.Vb(20,"div"),o.Vb(21,"h4",2),o.Kc(22,"Opening Channel"),o.Ub(),o.Vb(23,"div",3),o.Kc(24),o.ic(25,"number"),o.Ub(),o.Ub(),o.Ub(),o.Vb(26,"div",1),o.Vb(27,"div"),o.Vb(28,"h4",2),o.Kc(29,"Min Acceptable"),o.Ub(),o.Vb(30,"div",3),o.Kc(31),o.ic(32,"number"),o.Ub(),o.Ub(),o.Vb(33,"div"),o.Vb(34,"h4",2),o.Kc(35,"Max Acceptable"),o.Ub(),o.Vb(36,"div",3),o.Kc(37),o.ic(38,"number"),o.Ub(),o.Ub(),o.Vb(39,"div"),o.Vb(40,"h4",2),o.Kc(41,"Mutual Close"),o.Ub(),o.Vb(42,"div",3),o.Kc(43),o.ic(44,"number"),o.Ub(),o.Ub(),o.Vb(45,"div"),o.Vb(46,"h4",2),o.Kc(47,"Unilateral Close"),o.Ub(),o.Vb(48,"div",3),o.Kc(49),o.ic(50,"number"),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(6),o.Lc(o.jc(7,8,null==e.perkbw?null:e.perkbw.urgent)),o.Db(6),o.Lc(o.jc(13,10,null==e.perkbw?null:e.perkbw.normal)),o.Db(6),o.Lc(o.jc(19,12,null==e.perkbw?null:e.perkbw.slow)),o.Db(6),o.Lc(o.jc(25,14,null==e.feeRates||null==e.feeRates.onchain_fee_estimates?null:e.feeRates.onchain_fee_estimates.opening_channel_satoshis)),o.Db(7),o.Lc(o.jc(32,16,null==e.perkbw?null:e.perkbw.min_acceptable)),o.Db(6),o.Lc(o.jc(38,18,null==e.perkbw?null:e.perkbw.max_acceptable)),o.Db(6),o.Lc(o.jc(44,20,null==e.feeRates||null==e.feeRates.onchain_fee_estimates?null:e.feeRates.onchain_fee_estimates.mutual_close_satoshis)),o.Db(6),o.Lc(o.jc(50,22,null==e.feeRates||null==e.feeRates.onchain_fee_estimates?null:e.feeRates.onchain_fee_estimates.unilateral_close_satoshis)))},directives:[w.c,w.a,w.b],pipes:[i.f],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),t})();const Aa=function(t){return{"error-border":t}};function _a(t,e){if(1&t&&o.Qb(0,"rtl-cl-node-info",17),2&t){const t=o.hc(3);o.oc("information",t.information)("showColorFieldSeparately",!1)("ngClass",o.sc(3,Aa,"error"===t.flgLoading[0]))}}function Pa(t,e){if(1&t&&o.Qb(0,"rtl-cl-channel-status-info",18),2&t){const t=o.hc(3);o.oc("channelsStatus",t.channelsStatus)("ngClass",o.sc(2,Aa,"error"===t.flgLoading[0]))}}function Ta(t,e){if(1&t&&o.Qb(0,"rtl-cl-fee-info",19),2&t){const t=o.hc(3);o.oc("fees",t.fees)("ngClass",o.sc(2,Aa,"error"===t.flgLoading[1]))}}function Ka(t,e){if(1&t&&o.Qb(0,"rtl-cl-fee-rates",20),2&t){const t=o.hc(3);o.oc("flgLoading",t.flgLoading[2])("feeRates",t.feeRatesPerKB)("feeRateStyle","KB")}}function Ra(t,e){if(1&t&&o.Qb(0,"rtl-cl-fee-rates",20),2&t){const t=o.hc(3);o.oc("flgLoading",t.flgLoading[2])("feeRates",t.feeRatesPerKW)("feeRateStyle","KW")}}function Ma(t,e){if(1&t&&(o.Vb(0,"mat-grid-tile",4),o.Vb(1,"div",5),o.Vb(2,"div",6),o.Vb(3,"div",7),o.Qb(4,"fa-icon",8),o.Vb(5,"span"),o.Kc(6),o.Ub(),o.Ub(),o.Ub(),o.Vb(7,"div",9),o.Vb(8,"mat-card",10),o.Vb(9,"mat-card-content",11),o.Vb(10,"div",12),o.Ic(11,_a,1,5,"rtl-cl-node-info",13),o.Ic(12,Pa,1,4,"rtl-cl-channel-status-info",14),o.Ic(13,Ta,1,4,"rtl-cl-fee-info",15),o.Ic(14,Ka,1,3,"rtl-cl-fee-rates",16),o.Ic(15,Ra,1,3,"rtl-cl-fee-rates",16),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.oc("colspan",t.cols)("rowspan",t.rows),o.Db(4),o.oc("icon",t.icon),o.Db(2),o.Lc(t.title),o.Db(4),o.oc("ngSwitch",t.id),o.Db(1),o.oc("ngSwitchCase","node"),o.Db(1),o.oc("ngSwitchCase","status"),o.Db(1),o.oc("ngSwitchCase","fee"),o.Db(1),o.oc("ngSwitchCase","feeRatesKB"),o.Db(1),o.oc("ngSwitchCase","feeRatesKW")}}function Oa(t,e){if(1&t&&(o.Vb(0,"mat-grid-list",2),o.Ic(1,Ma,16,10,"mat-grid-tile",3),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("ngForOf",t.nodeCardsOperator)}}function Ea(t,e){if(1&t&&o.Qb(0,"rtl-cl-node-info",17),2&t){const t=o.hc(3);o.oc("information",t.information)("showColorFieldSeparately",!1)("ngClass",o.sc(3,Aa,"error"===t.flgLoading[0]))}}function za(t,e){if(1&t&&o.Qb(0,"rtl-cl-channel-status-info",18),2&t){const t=o.hc(3);o.oc("channelsStatus",t.channelsStatus)("ngClass",o.sc(2,Aa,"error"===t.flgLoading[0]))}}function Ba(t,e){if(1&t&&o.Qb(0,"rtl-cl-fee-info",19),2&t){const t=o.hc(3);o.oc("fees",t.fees)("ngClass",o.sc(2,Aa,"error"===t.flgLoading[1]))}}function Na(t,e){if(1&t&&o.Qb(0,"rtl-cl-fee-rates",20),2&t){const t=o.hc(3);o.oc("flgLoading",t.flgLoading[2])("feeRates",t.feeRatesPerKB)("feeRateStyle","KB")}}function qa(t,e){if(1&t&&o.Qb(0,"rtl-cl-fee-rates",20),2&t){const t=o.hc(3);o.oc("flgLoading",t.flgLoading[2])("feeRates",t.feeRatesPerKW)("feeRateStyle","KW")}}function Qa(t,e){if(1&t&&(o.Vb(0,"mat-grid-tile",4),o.Vb(1,"div",5),o.Vb(2,"div",6),o.Vb(3,"div",21),o.Qb(4,"fa-icon",8),o.Vb(5,"span"),o.Kc(6),o.Ub(),o.Ub(),o.Ub(),o.Vb(7,"div",9),o.Vb(8,"mat-card",10),o.Vb(9,"mat-card-content",11),o.Vb(10,"div",12),o.Ic(11,Ea,1,5,"rtl-cl-node-info",13),o.Ic(12,za,1,4,"rtl-cl-channel-status-info",14),o.Ic(13,Ba,1,4,"rtl-cl-fee-info",15),o.Ic(14,Na,1,3,"rtl-cl-fee-rates",16),o.Ic(15,qa,1,3,"rtl-cl-fee-rates",16),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.oc("colspan",t.cols)("rowspan",t.rows),o.Db(4),o.oc("icon",t.icon),o.Db(2),o.Lc(t.title),o.Db(4),o.oc("ngSwitch",t.id),o.Db(1),o.oc("ngSwitchCase","node"),o.Db(1),o.oc("ngSwitchCase","status"),o.Db(1),o.oc("ngSwitchCase","fee"),o.Db(1),o.oc("ngSwitchCase","feeRatesKB"),o.Db(1),o.oc("ngSwitchCase","feeRatesKW")}}function Ha(t,e){if(1&t&&(o.Vb(0,"mat-grid-list",2),o.Ic(1,Qa,16,10,"mat-grid-tile",3),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("ngForOf",t.nodeCardsMerchant)}}let ja=(()=>{class t{constructor(t,e,n){this.logger=t,this.commonService=e,this.store=n,this.faBolt=m.e,this.faServer=m.G,this.faNetworkWired=m.y,this.selNode={},this.information={},this.channelsStatus={},this.feeRatesPerKB={},this.feeRatesPerKW={},this.nodeCardsOperator=[],this.nodeCardsMerchant=[],this.screenSize="",this.screenSizeEnum=f.q,this.userPersonaEnum=f.w,this.flgLoading=[!0,!0,!0],this.unSubs=[new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.nodeCardsMerchant=[{id:"node",icon:this.faServer,title:"Node Information",cols:6,rows:3},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:6,rows:3},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:6,rows:1},{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:6,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:6,rows:4}],this.nodeCardsOperator=[{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:6,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:6,rows:4}]):(this.nodeCardsMerchant=[{id:"node",icon:this.faServer,title:"Node Information",cols:2,rows:3},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:2,rows:3},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:2,rows:3},{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:3,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:3,rows:4}],this.nodeCardsOperator=[{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:3,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:3,rows:4}])}ngOnInit(){this.store.select("cl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{t.effectErrors.forEach(t=>{"FetchInfo"===t.action&&(this.flgLoading[0]="error"),"FetchFees"===t.action&&(this.flgLoading[1]="error"),"FetchFeeRates"===t.action&&(this.flgLoading[2]="error")}),this.selNode=t.nodeSettings,this.information=t.information,"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!this.information.id),this.fees=t.fees,this.fees.totalTxCount=0,t.forwardingHistory&&t.forwardingHistory.forwarding_events&&t.forwardingHistory.forwarding_events.length&&(this.fees.totalTxCount=t.forwardingHistory.forwarding_events.filter(t=>"settled"===t.status).length),"error"!==this.flgLoading[1]&&(this.flgLoading[1]=!this.fees.feeCollected),this.channelsStatus={active:{channels:t.information.num_active_channels,capacity:0},inactive:{channels:t.information.num_inactive_channels,capacity:0},pending:{channels:t.information.num_pending_channels,capacity:0}},this.feeRatesPerKB=t.feeRatesPerKB,this.feeRatesPerKW=t.feeRatesPerKW,"error"!==this.flgLoading[2]&&(this.flgLoading[2]=!this.feeRatesPerKB||!this.feeRatesPerKW),this.logger.info(t)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(x.a),o.Pb(y.h))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-network-info"]],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","6","rowHeight","110px",4,"ngIf"],["cols","6","rowHeight","110px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","pl-2"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","w-96","h-93"],["fxFlex","100",1,"dashboard-card-content"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"fees","ngClass",4,"ngSwitchCase"],["class","h-100",3,"flgLoading","feeRates","feeRateStyle",4,"ngSwitchCase"],["fxFlex","100",3,"information","showColorFieldSeparately","ngClass"],["fxFlex","100",3,"channelsStatus","ngClass"],["fxFlex","100",3,"fees","ngClass"],[1,"h-100",3,"flgLoading","feeRates","feeRateStyle"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","pl-15px"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Ic(1,Oa,2,1,"mat-grid-list",1),o.Ic(2,Ha,2,1,"mat-grid-list",1),o.Ub()),2&t&&(o.Db(1),o.oc("ngIf",e.selNode.userPersona===e.userPersonaEnum.OPERATOR),o.Db(1),o.oc("ngIf",e.selNode.userPersona===e.userPersonaEnum.MERCHANT))},directives:[w.c,w.b,i.o,U.a,i.n,U.c,w.a,V.a,D.a,D.b,i.q,i.r,P,i.m,I.a,Q,q,ka],styles:[""]}),t})();function $a(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",8),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().activeLink=n.link}),o.Kc(1),o.Ub()}if(2&t){const t=e.$implicit,n=o.hc();o.pc("routerLink",t.link),o.oc("active",n.activeLink===t.link),o.Db(1),o.Lc(t.name)}}let Ga=(()=>{class t{constructor(t){this.router=t,this.faUserCheck=m.L,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new b.a,new b.a]}ngOnInit(){let t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t instanceof a.f)).subscribe(t=>{let e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(a.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-sign-verify-message"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Qb(1,"fa-icon",1),o.Vb(2,"span",2),o.Kc(3,"Sign/Verify Message"),o.Ub(),o.Ub(),o.Vb(4,"div",3),o.Vb(5,"mat-card"),o.Vb(6,"mat-card-content",4),o.Vb(7,"nav",5),o.Ic(8,$a,2,3,"div",6),o.Ub(),o.Vb(9,"div",7),o.Qb(10,"router-outlet"),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(1),o.oc("icon",e.faUserCheck),o.Db(7),o.oc("ngForOf",e.links))},directives:[w.c,w.b,V.a,D.a,D.b,et.e,i.n,w.a,a.l,et.d,a.h],styles:[""]}),t})();var Xa=n("Ysfc");function Wa(t,e){if(1&t&&(o.Vb(0,"mat-option",7),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.oc("value",t),o.Db(1),o.Mc(" ",t.addressTp," ")}}let Ja=(()=>{class t{constructor(t,e){this.store=t,this.clEffects=e,this.addressTypes=f.a,this.selectedAddressType=f.a[0],this.newAddress=""}ngOnInit(){}onGenerateAddress(){this.store.dispatch(new st.F("Getting New Address...")),this.store.dispatch(new p.O(this.selectedAddressType)),this.clEffects.setNewAddressCL.pipe(Object(Jt.a)(1)).subscribe(t=>{this.newAddress=t,this.store.dispatch(new st.C({width:"58%",data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:Xa.a}}))})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(y.h),o.Pb(Yt.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-on-chain-receive"]],decls:8,vars:2,consts:[["fxLayout","column",1,"padding-gap-x-large"],["fxLayout","row","fxLayoutAlign","space-between end","fxLayoutAlign.gt-sm","start end"],["fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["placeholder","Address Type","name","address_type","tabindex","1",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-2"],["mat-flat-button","","color","primary","tabindex","2",1,"top-minus-15px",3,"click"],[3,"value"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"mat-form-field",2),o.Vb(3,"mat-select",3),o.dc("ngModelChange",function(t){return e.selectedAddressType=t}),o.Ic(4,Wa,2,2,"mat-option",4),o.Ub(),o.Ub(),o.Vb(5,"div",5),o.Vb(6,"button",6),o.dc("click",function(){return e.onGenerateAddress()}),o.Kc(7,"Generate Address"),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(3),o.oc("ngModel",e.selectedAddressType),o.Db(1),o.oc("ngForOf",e.addressTypes))},directives:[w.c,w.b,K.c,w.a,dt.a,ct.m,ct.p,i.n,S.a,ht.m],styles:[""]}),t})(),Ya=(()=>{class t{constructor(t,e){this.store=t,this.activatedRoute=e,this.sweepAll=!1,this.unSubs=[new b.a,new b.a]}ngOnInit(){this.activatedRoute.data.pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>this.sweepAll=t.sweepAll)}openSendFundsModal(){this.store.dispatch(new st.C({data:{sweepAll:this.sweepAll,component:mi}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(y.h),o.Pb(a.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-on-chain-send"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"button",2),o.dc("click",function(){return e.openSendFundsModal()}),o.Kc(3),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(3),o.Lc(e.sweepAll?"Sweep All":"Send Funds"))},directives:[w.c,w.a,w.b,S.a],styles:[""]}),t})();var Za=n("JX91"),to=n("lJxs"),eo=n("hNFU"),no=n("vrAh");const io=["form"];function ao(t,e){if(1&t&&(o.Vb(0,"mat-option",40),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.oc("value",t),o.Db(1),o.Lc(t.alias?t.alias:t.id?t.id:"")}}function oo(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Peer alias is required."),o.Ub())}function so(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Peer not found in the list."),o.Ub())}function co(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-form-field",36),o.Vb(1,"input",37),o.dc("change",function(){return o.zc(t),o.hc().onSelectedPeerChanged()}),o.Ub(),o.Vb(2,"mat-autocomplete",38,39),o.dc("optionSelected",function(){return o.zc(t),o.hc().onSelectedPeerChanged()}),o.Ic(4,ao,2,2,"mat-option",24),o.ic(5,"async"),o.Ub(),o.Ic(6,oo,2,0,"mat-error",17),o.Ic(7,so,2,0,"mat-error",17),o.Ub()}if(2&t){const t=o.wc(3),e=o.hc();o.Db(1),o.oc("formControl",e.selectedPeer)("matAutocomplete",t),o.Db(1),o.oc("displayWith",e.displayFn),o.Db(2),o.oc("ngForOf",o.jc(5,6,e.filteredPeers)),o.Db(2),o.oc("ngIf",null==e.selectedPeer.errors?null:e.selectedPeer.errors.required),o.Db(1),o.oc("ngIf",null==e.selectedPeer.errors?null:e.selectedPeer.errors.notfound)}}function lo(t,e){1&t&&o.Rb(0)}function ro(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Amount is required."),o.Ub())}function bo(t,e){if(1&t&&(o.Vb(0,"mat-error"),o.Kc(1),o.Ub()),2&t){const t=o.hc();o.Db(1),o.Mc("Amount must be less than or equal to ",t.totalBalance,".")}}function uo(t,e){if(1&t&&(o.Vb(0,"mat-option",40),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.oc("value",t.feeRateId),o.Db(1),o.Mc(" ",t.feeRateType," ")}}function ho(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Min Confirmation Blocks is required."),o.Ub())}function mo(t,e){if(1&t&&(o.Vb(0,"mat-option",40),o.Kc(1),o.ic(2,"number"),o.Ub()),2&t){const t=e.$implicit;o.oc("value",t),o.Db(1),o.Mc("",o.jc(2,2,t.value)," Sats")}}function fo(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",12),o.Vb(1,"mat-form-field",22),o.Vb(2,"mat-select",41),o.dc("selectionChange",function(e){return o.zc(t),o.hc().onUTXOSelectionChange(e)})("valueChange",function(e){return o.zc(t),o.hc().selUTXOs=e}),o.Vb(3,"mat-select-trigger"),o.Kc(4),o.ic(5,"number"),o.Ub(),o.Ic(6,mo,3,4,"mat-option",24),o.Ub(),o.Ub(),o.Vb(7,"mat-slide-toggle",42),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().flgUseAllBalance=e})("change",function(){return o.zc(t),o.hc().onUTXOAllBalanceChange()}),o.Kc(8," Use selected UTXOs balance "),o.Ub(),o.Ub()}if(2&t){const t=o.hc();o.Db(2),o.oc("value",t.selUTXOs),o.Db(2),o.Nc("",o.jc(5,6,t.totalSelectedUTXOAmount)," Sats (",t.selUTXOs.length>1?t.selUTXOs.length+" UTXOs":"1 UTXO",")"),o.Db(2),o.oc("ngForOf",t.transactions),o.Db(1),o.oc("ngModel",t.flgUseAllBalance)("disabled",t.selUTXOs.length<1)}}function po(t,e){if(1&t&&(o.Vb(0,"span"),o.Kc(1),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Lc(t.channelConnectionError)}}function go(t,e){if(1&t&&(o.Vb(0,"div",43),o.Qb(1,"fa-icon",44),o.Ic(2,po,2,1,"span",17),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("icon",t.faExclamationTriangle),o.Db(1),o.oc("ngIf",""!==t.channelConnectionError)}}function yo(t,e){if(1&t&&(o.Vb(0,"mat-expansion-panel",46),o.Vb(1,"mat-expansion-panel-header"),o.Vb(2,"mat-panel-title"),o.Vb(3,"span"),o.Kc(4,"Peer: \xa0"),o.Ub(),o.Vb(5,"strong",47),o.Kc(6),o.Ub(),o.Ub(),o.Ub(),o.Vb(7,"div",9),o.Vb(8,"div",0),o.Vb(9,"div",36),o.Vb(10,"h4",48),o.Kc(11,"Pubkey"),o.Ub(),o.Vb(12,"span",49),o.Kc(13),o.Ub(),o.Ub(),o.Ub(),o.Qb(14,"mat-divider",50),o.Vb(15,"div",0),o.Vb(16,"div",51),o.Vb(17,"h4",48),o.Kc(18,"Address"),o.Ub(),o.Vb(19,"span",52),o.Kc(20),o.Ub(),o.Ub(),o.Vb(21,"div",51),o.Vb(22,"h4",48),o.Kc(23,"Connected"),o.Ub(),o.Vb(24,"span",52),o.Kc(25),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=o.hc(2);o.Db(6),o.Lc((null==t.peer?null:t.peer.alias)||(null==t.peer?null:t.peer.id)),o.Db(7),o.Lc(t.peer.id),o.Db(7),o.Lc(null==t.peer?null:t.peer.netaddr),o.Db(5),o.Lc(t.peer.connected?"True":"False")}}function vo(t,e){if(1&t&&o.Ic(0,yo,26,4,"mat-expansion-panel",45),2&t){const t=o.hc();o.oc("ngIf",t.peer)}}let xo=(()=>{class t{constructor(t,e,n,i,a){this.dialogRef=t,this.data=e,this.store=n,this.actions$=i,this.decimalPipe=a,this.selectedPeer=new ct.e,this.faExclamationTriangle=m.o,this.isCompatibleVersion=!1,this.transactions=[],this.selUTXOs=[],this.flgUseAllBalance=!1,this.totalSelectedUTXOAmount=0,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.fundingAmount=null,this.selectedPubkey="",this.isPrivate=!1,this.feeRateTypes=f.j,this.selFeeRate="",this.flgMinConf=!1,this.minConfValue=null,this.unSubs=[new b.a,new b.a]}ngOnInit(){this.isCompatibleVersion=this.data.message.isCompatibleVersion,this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.transactions=this.data.message.transactions,this.alertTitle=this.data.alertTitle,this.peer=this.data.message.peer?this.data.message.peer:null,this.peers=this.data.message.peers&&this.data.message.peers.length?this.data.message.peers:[],this.actions$.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t.type===p.o||t.type===p.r)).subscribe(t=>{t.type===p.o&&"SaveNewChannel"===t.payload.action&&(this.channelConnectionError=t.payload.message),t.type===p.r&&this.dialogRef.close()});let t="",e="";this.sortedPeers=this.peers.sort((n,i)=>(t=n.alias?n.alias.toLowerCase():n.id?n.id.toLowerCase():"",e=i.alias?i.alias.toLowerCase():n.id.toLowerCase(),te?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe(Object(d.a)(this.unSubs[1]),Object(Za.a)(""),Object(to.a)(t=>"string"==typeof t?t:t.alias?t.alias:t.id),Object(to.a)(t=>t?this.filterPeers(t):this.sortedPeers.slice()))}filterPeers(t){return this.sortedPeers.filter(e=>0===e.alias.toLowerCase().indexOf(t?t.toLowerCase():""))}displayFn(t){return t&&t.alias?t.alias:t&&t.id?t.id:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.id?this.selectedPeer.value.id:void 0,"string"==typeof this.selectedPeer.value){let t=this.peers.filter(t=>t.alias.length===this.selectedPeer.value.length&&0===t.alias.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===t.length&&t[0].id&&(this.selectedPubkey=t[0].id)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.flgMinConf=!1,this.selFeeRate="",this.minConfValue=null,this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onAdvancedPanelToggle(t){t&&(this.flgMinConf||this.selFeeRate||this.selUTXOs.length&&0!==this.selUTXOs.length)?(this.advancedTitle="Advanced Options",this.flgMinConf&&(this.advancedTitle=this.advancedTitle+" | Min Confirmation Blocks: "+this.minConfValue),this.selFeeRate&&(this.advancedTitle=this.advancedTitle+" | Fee Rate: "+this.feeRateTypes.find(t=>t.feeRateId===this.selFeeRate).feeRateType),this.selUTXOs.length&&this.selUTXOs.length>0&&(this.advancedTitle=this.advancedTitle+" | Total Selected: "+this.selUTXOs.length+" | Selected UTXOs: "+this.decimalPipe.transform(this.totalSelectedUTXOAmount)+" Sats")):this.advancedTitle="Advanced Options"}onUTXOSelectionChange(t){let e={value:0};this.selUTXOs.length&&this.selUTXOs.length>0?(this.totalSelectedUTXOAmount=this.selUTXOs.reduce((t,n)=>(e.value=t.value+n.value,e)).value,this.flgUseAllBalance&&this.onUTXOAllBalanceChange()):(this.totalSelectedUTXOAmount=0,this.fundingAmount=null,this.flgUseAllBalance=!1)}onUTXOAllBalanceChange(){this.fundingAmount=this.flgUseAllBalance?this.totalSelectedUTXOAmount:null}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||this.flgMinConf&&!this.minConfValue)return!0;let t={peerId:this.peer&&this.peer.id?this.peer.id:this.selectedPubkey,satoshis:this.flgUseAllBalance?"all":this.fundingAmount.toString(),announce:!this.isPrivate,feeRate:this.selFeeRate,minconf:this.flgMinConf?this.minConfValue:null};this.selUTXOs.length&&this.selUTXOs.length>0&&(t.utxos=[],this.selUTXOs.forEach(e=>t.utxos.push(e.txid+":"+e.output))),this.store.dispatch(new st.F("Opening Channel...")),this.store.dispatch(new p.wb(t))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(ot.f),o.Pb(ot.a),o.Pb(y.h),o.Pb(v.a),o.Pb(i.f))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-open-channel"]],viewQuery:function(t,e){if(1&t&&o.Ec(io,!0),2&t){let t;o.vc(t=o.ec())&&(e.form=t.first)}},decls:54,vars:29,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","70","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amount",3,"ngModel","step","min","max","disabled","ngModelChange"],["amount","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","25","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","48","fxLayoutAlign","start end"],["tabindex","4","placeholder","Fee Rate",3,"value","disabled","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","name","flgMinConf","fxLayoutAlign","stretch start",1,"mr-2",3,"ngModel","ngModelChange","change"],["fxFlex","98"],["matInput","","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"ngModel","step","min","required","disabled","ngModelChange"],["blocks","ngModel"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["fxFlex","100"],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value"],["tabindex","6","placeholder","Coin Selection","multiple","",3,"value","selectionChange","valueChange"],["fxFlex","48","tabindex","7","color","primary","name","flgUseAllBalance","matTooltip","Use selected UTXOs balance as the amount to be sent. Final amount sent will be less the mining fee.","matTooltipPosition","above",3,"ngModel","disabled","ngModelChange","change"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"mat-card-header",2),o.Vb(3,"div",3),o.Vb(4,"span",4),o.Kc(5),o.Ub(),o.Ub(),o.Vb(6,"button",5),o.dc("click",function(){return e.onClose()}),o.Kc(7,"X"),o.Ub(),o.Ub(),o.Vb(8,"mat-card-content",6),o.Vb(9,"form",7,8),o.dc("submit",function(){return e.onOpenChannel()})("reset",function(){return e.resetData()}),o.Vb(11,"div",9),o.Ic(12,co,8,8,"mat-form-field",10),o.Ub(),o.Ic(13,lo,1,0,"ng-container",11),o.Vb(14,"div",9),o.Vb(15,"div",12),o.Vb(16,"mat-form-field",13),o.Vb(17,"input",14,15),o.dc("ngModelChange",function(t){return e.fundingAmount=t}),o.Ub(),o.Vb(19,"mat-hint"),o.Kc(20),o.ic(21,"number"),o.Ub(),o.Vb(22,"span",16),o.Kc(23),o.Ub(),o.Ic(24,ro,2,0,"mat-error",17),o.Ic(25,bo,2,1,"mat-error",17),o.Ub(),o.Vb(26,"div",18),o.Vb(27,"mat-slide-toggle",19),o.dc("ngModelChange",function(t){return e.isPrivate=t}),o.Kc(28,"Private Channel"),o.Ub(),o.Ub(),o.Ub(),o.Vb(29,"mat-expansion-panel",20),o.dc("closed",function(){return e.onAdvancedPanelToggle(!0)})("opened",function(){return e.onAdvancedPanelToggle(!1)}),o.Vb(30,"mat-expansion-panel-header"),o.Vb(31,"mat-panel-title"),o.Vb(32,"span"),o.Kc(33),o.Ub(),o.Ub(),o.Ub(),o.Vb(34,"div",21),o.Vb(35,"div",12),o.Vb(36,"mat-form-field",22),o.Vb(37,"mat-select",23),o.dc("valueChange",function(t){return e.selFeeRate=t}),o.Ic(38,uo,2,2,"mat-option",24),o.Ub(),o.Ub(),o.Vb(39,"div",25),o.Vb(40,"mat-checkbox",26),o.dc("ngModelChange",function(t){return e.flgMinConf=t})("change",function(){return e.flgMinConf?e.selFeeRate=null:e.minConfValue=null}),o.Ub(),o.Vb(41,"mat-form-field",27),o.Vb(42,"input",28,29),o.dc("ngModelChange",function(t){return e.minConfValue=t}),o.Ub(),o.Ic(44,ho,2,0,"mat-error",17),o.Ub(),o.Ub(),o.Ub(),o.Ic(45,fo,9,8,"div",30),o.Ub(),o.Ub(),o.Ub(),o.Ic(46,go,3,2,"div",31),o.Vb(47,"div",32),o.Vb(48,"button",33),o.Kc(49,"Clear Fields"),o.Ub(),o.Vb(50,"button",34),o.Kc(51,"Open Channel"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ic(52,vo,1,1,"ng-template",null,35,o.Jc)),2&t){const t=o.wc(18),n=o.wc(53);o.Db(5),o.Lc(e.alertTitle),o.Db(7),o.oc("ngIf",!e.peer&&e.peers&&e.peers.length>0),o.Db(1),o.oc("ngTemplateOutlet",n),o.Db(4),o.oc("ngModel",e.fundingAmount)("step",1e3)("min",1)("max",e.totalBalance)("disabled",e.flgUseAllBalance),o.Db(3),o.Nc("Remaining Bal: ",o.jc(21,27,e.totalBalance-(e.fundingAmount?e.fundingAmount:0)),"",e.flgUseAllBalance?". Amount replaced by UTXO balance":"",""),o.Db(3),o.Mc(" ",null==e.information?null:e.information.smaller_currency_unit," "),o.Db(1),o.oc("ngIf",(null==t.errors?null:t.errors.required)||!e.fundingAmount),o.Db(1),o.oc("ngIf",null==t.errors?null:t.errors.max),o.Db(2),o.oc("ngModel",e.isPrivate),o.Db(6),o.Lc(e.advancedTitle),o.Db(4),o.oc("value",e.selFeeRate)("disabled",e.flgMinConf),o.Db(1),o.oc("ngForOf",e.feeRateTypes),o.Db(2),o.oc("ngModel",e.flgMinConf),o.Db(2),o.oc("ngModel",e.minConfValue)("step",1)("min",0)("required",e.flgMinConf)("disabled",!e.flgMinConf),o.Db(2),o.oc("ngIf",e.flgMinConf&&!e.minConfValue),o.Db(1),o.oc("ngIf",e.isCompatibleVersion),o.Db(1),o.oc("ngIf",""!==e.channelConnectionError)}},directives:[w.c,w.a,D.c,w.b,S.a,D.b,ct.u,ct.n,ct.o,i.o,i.t,K.c,lt.b,ct.q,ct.c,bt.a,eo.a,ct.s,ct.m,ct.p,K.f,K.g,ut.a,zn.c,zn.e,zn.f,dt.a,i.n,En.a,rt.a,no.c,ct.f,no.a,ht.m,K.b,dt.c,R.a,V.a,M.a],pipes:[i.f,i.b],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),t})();function wo(t,e){if(1&t&&(o.Vb(0,"span",7),o.Kc(1,"Open"),o.Ub()),2&t){const t=o.hc();o.pc("matBadge",t.openChannels)}}function Vo(t,e){if(1&t&&(o.Vb(0,"span",7),o.Kc(1,"Pending/Inactive"),o.Ub()),2&t){const t=o.hc();o.pc("matBadge",t.pendingChannels)}}let Uo=(()=>{class t{constructor(t,e,n,i){this.logger=t,this.store=e,this.commonService=n,this.router=i,this.openChannels=0,this.pendingChannels=0,this.selNode={},this.information={},this.peers=[],this.transactions=[],this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending/Inactive"}],this.activeLink=0,this.unSubs=[new b.a,new b.a]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t instanceof a.f)).subscribe(t=>{this.activeLink=this.links.findIndex(e=>e.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}),this.store.select("cl").pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{t.allChannels&&t.allChannels.length?(this.openChannels=0,this.pendingChannels=0,t.allChannels.forEach(t=>{"CHANNELD_NORMAL"===t.state&&t.connected?this.openChannels++:this.pendingChannels++})):(this.openChannels=0,this.pendingChannels=0),this.selNode=t.nodeSettings,this.information=t.information,this.peers=t.peers,this.transactions=this.commonService.sortAscByKey(t.transactions.filter(t=>"confirmed"===t.status),"value"),this.totalBalance=t.balance.totalBalance,this.logger.info(t)})}onOpenChannel(){const t={peers:this.peers,information:this.information,balance:this.totalBalance,transactions:this.transactions,isCompatibleVersion:this.commonService.isVersionCompatible(this.information.version,"0.9.0")&&this.commonService.isVersionCompatible(this.information.api_version,"0.4.0")};this.store.dispatch(new st.C({data:{alertTitle:"Open Channel",message:t,component:xo}}))}onSelectedTabChange(t){this.router.navigateByUrl("/cl/connections/channels/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(y.h),o.Pb(x.a),o.Pb(a.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-channels-tables"]],decls:12,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"mt-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"button",2),o.dc("click",function(){return e.onOpenChannel()}),o.Kc(3,"Open Channel"),o.Ub(),o.Ub(),o.Vb(4,"div",3),o.Vb(5,"mat-tab-group",4),o.dc("selectedIndexChange",function(t){return e.activeLink=t})("selectedTabChange",function(t){return e.onSelectedTabChange(t)}),o.Vb(6,"mat-tab"),o.Ic(7,wo,2,1,"ng-template",5),o.Ub(),o.Vb(8,"mat-tab"),o.Ic(9,Vo,2,1,"ng-template",5),o.Ub(),o.Ub(),o.Vb(10,"div",6),o.Qb(11,"router-outlet"),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(5),o.oc("selectedIndex",e.activeLink))},directives:[w.c,w.a,w.b,S.a,et.b,et.a,et.c,a.l,qi.a],styles:[""]}),t})();function Do(t,e){if(1&t&&(o.Vb(0,"div"),o.Qb(1,"mat-divider",13),o.Vb(2,"div",9),o.Vb(3,"div",14),o.Vb(4,"h4",11),o.Kc(5,"Funding Transaction Id"),o.Ub(),o.Vb(6,"span",12),o.Kc(7),o.Ub(),o.Ub(),o.Ub(),o.Qb(8,"mat-divider",13),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(t.channel.funding_txid),o.Db(1),o.oc("inset",!0)}}function Co(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"Show Advanced"),o.Ub())}function So(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"Hide Advanced"),o.Ub())}function Lo(t,e){if(1&t){const t=o.Wb();o.Vb(0,"button",24),o.dc("copied",function(e){return o.zc(t),o.hc().onCopyChanID(e)}),o.Kc(1,"Copy Short Channel ID"),o.Ub()}if(2&t){const t=o.hc();o.oc("payload",t.channel.short_channel_id)}}function Io(t,e){if(1&t){const t=o.Wb();o.Vb(0,"button",25),o.dc("click",function(){return o.zc(t),o.hc().onClose()}),o.Kc(1,"OK"),o.Ub()}}const Fo=function(t){return{"xs-scroll-y":t}},ko=function(t,e){return{"mt-2":t,"mt-1":e}};let Ao=(()=>{class t{constructor(t,e,n,i,a){this.dialogRef=t,this.data=e,this.logger=n,this.commonService=i,this.snackBar=a,this.faReceipt=m.D,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=f.q}ngOnInit(){this.channel=this.data.channel,this.showCopy=this.data.showCopy,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(t){this.snackBar.open("Short channel ID "+t+" copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(ot.f),o.Pb(ot.a),o.Pb(g.b),o.Pb(x.a),o.Pb(On.b))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-channel-information"]],decls:93,vars:39,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"padding-gap-large","pl-3"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-1"],["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"],[3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","100"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"mat-card-header",2),o.Vb(3,"div",3),o.Qb(4,"fa-icon",4),o.Vb(5,"span",5),o.Kc(6,"Channel Information"),o.Ub(),o.Ub(),o.Vb(7,"button",6),o.dc("click",function(){return e.onClose()}),o.Kc(8,"X"),o.Ub(),o.Ub(),o.Vb(9,"mat-card-content",7),o.Vb(10,"div",8),o.Vb(11,"div",9),o.Vb(12,"div",10),o.Vb(13,"h4",11),o.Kc(14,"Short Channel ID"),o.Ub(),o.Vb(15,"span",12),o.Kc(16),o.Ub(),o.Ub(),o.Vb(17,"div",10),o.Vb(18,"h4",11),o.Kc(19,"Peer Alias"),o.Ub(),o.Vb(20,"span",12),o.Kc(21),o.Ub(),o.Ub(),o.Ub(),o.Qb(22,"mat-divider",13),o.Vb(23,"div",9),o.Vb(24,"div",14),o.Vb(25,"h4",11),o.Kc(26,"Channel ID"),o.Ub(),o.Vb(27,"span",12),o.Kc(28),o.Ub(),o.Ub(),o.Ub(),o.Qb(29,"mat-divider",13),o.Vb(30,"div",9),o.Vb(31,"div",14),o.Vb(32,"h4",11),o.Kc(33,"Peer Public Key"),o.Ub(),o.Vb(34,"span",12),o.Kc(35),o.Ub(),o.Ub(),o.Ub(),o.Qb(36,"mat-divider",13),o.Vb(37,"div",9),o.Vb(38,"div",15),o.Vb(39,"h4",11),o.Kc(40,"mSatoshi to Us"),o.Ub(),o.Vb(41,"span",16),o.Kc(42),o.ic(43,"number"),o.Ub(),o.Ub(),o.Vb(44,"div",15),o.Vb(45,"h4",11),o.Kc(46,"Spendable (mSats)"),o.Ub(),o.Vb(47,"span",16),o.Kc(48),o.ic(49,"number"),o.Ub(),o.Ub(),o.Vb(50,"div",15),o.Vb(51,"h4",11),o.Kc(52,"Total (mSats)"),o.Ub(),o.Vb(53,"span",16),o.Kc(54),o.ic(55,"number"),o.Ub(),o.Ub(),o.Vb(56,"div",15),o.Vb(57,"h4",11),o.Kc(58,"State"),o.Ub(),o.Vb(59,"span",16),o.Kc(60),o.Ub(),o.Ub(),o.Ub(),o.Qb(61,"mat-divider",13),o.Vb(62,"div",9),o.Vb(63,"div",15),o.Vb(64,"h4",11),o.Kc(65,"Our Reserve (Sats)"),o.Ub(),o.Vb(66,"span",16),o.Kc(67),o.ic(68,"number"),o.Ub(),o.Ub(),o.Vb(69,"div",15),o.Vb(70,"h4",11),o.Kc(71,"Their Reserve (Sats)"),o.Ub(),o.Vb(72,"span",16),o.Kc(73),o.ic(74,"number"),o.Ub(),o.Ub(),o.Vb(75,"div",15),o.Vb(76,"h4",11),o.Kc(77,"Connected"),o.Ub(),o.Vb(78,"span",16),o.Kc(79),o.Ub(),o.Ub(),o.Vb(80,"div",15),o.Vb(81,"h4",11),o.Kc(82,"Private"),o.Ub(),o.Vb(83,"span",16),o.Kc(84),o.Ub(),o.Ub(),o.Ub(),o.Ic(85,Do,9,3,"div",17),o.Vb(86,"div",18),o.Vb(87,"button",19),o.dc("click",function(){return e.onShowAdvanced()}),o.Ic(88,Co,2,0,"p",20),o.Ic(89,So,2,0,"ng-template",null,21,o.Jc),o.Ub(),o.Ic(91,Lo,2,1,"button",22),o.Ic(92,Io,2,0,"button",23),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=o.wc(90);o.Db(4),o.oc("icon",e.faReceipt),o.Db(5),o.oc("ngClass",o.sc(34,Fo,e.screenSize===e.screenSizeEnum.XS)),o.Db(7),o.Lc(e.channel.short_channel_id),o.Db(5),o.Lc(e.channel.alias),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(e.channel.channel_id),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(e.channel.id),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(o.jc(43,24,e.channel.msatoshi_to_us)),o.Db(6),o.Lc(o.jc(49,26,e.channel.spendable_msatoshi)),o.Db(6),o.Lc(o.jc(55,28,e.channel.msatoshi_total)),o.Db(6),o.Lc(e.channel.state),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(o.jc(68,30,e.channel.our_channel_reserve_satoshis)),o.Db(6),o.Lc(o.jc(74,32,e.channel.their_channel_reserve_satoshis)),o.Db(6),o.Lc(e.channel.connected?"Yes":"No"),o.Db(5),o.Lc(e.channel.private?"Yes":"No"),o.Db(1),o.oc("ngIf",e.showAdvanced),o.Db(1),o.oc("ngClass",o.tc(36,ko,!e.showAdvanced,e.showAdvanced)),o.Db(2),o.oc("ngIf",!e.showAdvanced)("ngIfElse",t),o.Db(3),o.oc("ngIf",e.showCopy),o.Db(1),o.oc("ngIf",!e.showCopy)}},directives:[w.c,w.b,w.a,D.c,V.a,S.a,D.b,i.m,I.a,M.a,i.o,rt.a,Ji.a],pipes:[i.f],styles:[""]}),t})();function _o(t,e){1&t&&o.Qb(0,"mat-progress-bar",33)}function Po(t,e){1&t&&(o.Vb(0,"th",34),o.Kc(1," Short Channel ID "),o.Ub())}function To(t,e){if(1&t&&(o.Vb(0,"span",40),o.Qb(1,"fa-icon",41),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.oc("icon",t.faEyeSlash)}}function Ko(t,e){if(1&t&&(o.Vb(0,"span",42),o.Qb(1,"fa-icon",41),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.oc("icon",t.faEye)}}const Ro=function(t){return{"max-width":t}};function Mo(t,e){if(1&t&&(o.Vb(0,"td",35),o.Vb(1,"div",36),o.Ic(2,To,2,1,"span",37),o.Ic(3,Ko,2,1,"span",38),o.Vb(4,"span",39),o.Kc(5),o.Ub(),o.Ub(),o.Ub()),2&t){const t=e.$implicit,n=o.hc();o.Db(1),o.oc("ngStyle",o.sc(4,Ro,n.screenSize===n.screenSizeEnum.XS?"10rem":"22rem")),o.Db(1),o.oc("ngIf",t.private),o.Db(1),o.oc("ngIf",!t.private),o.Db(2),o.Lc(null==t?null:t.short_channel_id)}}function Oo(t,e){1&t&&(o.Vb(0,"th",34),o.Kc(1," Alias "),o.Ub())}function Eo(t,e){if(1&t&&(o.Vb(0,"td",35),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(null==t?null:t.alias)}}function zo(t,e){1&t&&(o.Vb(0,"th",34),o.Kc(1," Connected "),o.Ub())}function Bo(t,e){if(1&t&&(o.Vb(0,"td",35),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function No(t,e){1&t&&(o.Vb(0,"th",34),o.Kc(1," Private "),o.Ub())}function qo(t,e){if(1&t&&(o.Vb(0,"td",35),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null!=t&&t.private?"Private":"Public"," ")}}function Qo(t,e){1&t&&(o.Vb(0,"th",34),o.Kc(1," State "),o.Ub())}function Ho(t,e){if(1&t&&(o.Vb(0,"td",35),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null==t?null:t.state,"")}}function jo(t,e){1&t&&(o.Vb(0,"th",43),o.Kc(1," Local Balance (Sats) "),o.Ub())}function $o(t,e){if(1&t&&(o.Vb(0,"td",35),o.Vb(1,"span",44),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.kc(3,1,(null==t?null:t.msatoshi_to_us)/1e3,(null==t?null:t.msatoshi_to_us)<1e3?"1.0-4":"1.0-0")," ")}}function Go(t,e){1&t&&(o.Vb(0,"th",43),o.Kc(1," Remote Balance (Sats) "),o.Ub())}function Xo(t,e){if(1&t&&(o.Vb(0,"td",35),o.Vb(1,"span",44),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.kc(3,1,(null==t?null:t.msatoshi_to_them)/1e3,(null==t?null:t.msatoshi_to_them)<1e3?"1.0-4":"1.0-0")," ")}}function Wo(t,e){1&t&&(o.Vb(0,"th",43),o.Kc(1," Total mSatoshis "),o.Ub())}function Jo(t,e){if(1&t&&(o.Vb(0,"td",35),o.Vb(1,"span",44),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.jc(3,1,null==t?null:t.msatoshi_total)," ")}}function Yo(t,e){1&t&&(o.Vb(0,"th",43),o.Kc(1," Spendable Satoshi "),o.Ub())}function Zo(t,e){if(1&t&&(o.Vb(0,"td",35),o.Vb(1,"span",44),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.jc(3,1,null==t?null:t.spendable_msatoshi)," ")}}function ts(t,e){1&t&&(o.Vb(0,"th",45),o.Kc(1,"Balance Score "),o.Ub())}function es(t,e){if(1&t&&(o.Vb(0,"td",46),o.Vb(1,"div",47),o.Vb(2,"mat-hint",48),o.Kc(3),o.ic(4,"number"),o.Ub(),o.Ub(),o.Qb(5,"mat-progress-bar",49),o.Ub()),2&t){const t=e.$implicit;o.Db(3),o.Lc(o.jc(4,2,t.balancedness||0)),o.Db(2),o.pc("value",t.msatoshi_to_us&&t.msatoshi_to_us>0?+t.msatoshi_to_us/(+t.msatoshi_to_us+ +t.msatoshi_to_them)*100:0)}}function ns(t,e){if(1&t){const t=o.Wb();o.Vb(0,"th",50),o.Vb(1,"div",51),o.Vb(2,"mat-select",52),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",53),o.dc("click",function(){return o.zc(t),o.hc().onChannelUpdate("all")}),o.Kc(5,"Update Fee Policy"),o.Ub(),o.Vb(6,"mat-option",53),o.dc("click",function(){return o.zc(t),o.hc().onDownloadCSV()}),o.Kc(7,"Download CSV"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function is(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",54),o.Vb(1,"div",55),o.Vb(2,"mat-select",56),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",53),o.dc("click",function(n){o.zc(t);const i=e.$implicit;return o.hc().onChannelClick(i,n)}),o.Kc(5,"View Info"),o.Ub(),o.Vb(6,"mat-option",53),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().onViewRemotePolicy(n)}),o.Kc(7,"View Remote Fee"),o.Ub(),o.Vb(8,"mat-option",53),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().onChannelUpdate(n)}),o.Kc(9,"Update Fee Policy"),o.Ub(),o.Vb(10,"mat-option",53),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().onChannelClose(n)}),o.Kc(11,"Close Channel"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function as(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No peers connected. Add a peer in order to open a channel."),o.Ub())}function os(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No channels available."),o.Ub())}function ss(t,e){if(1&t&&(o.Vb(0,"td",57),o.Ic(1,as,2,0,"p",58),o.Ic(2,os,2,0,"p",58),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)),o.Db(1),o.oc("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1))}}const cs=function(t){return{"display-none":t}};function ls(t,e){if(1&t&&o.Qb(0,"tr",59),2&t){const t=o.hc();o.oc("ngClass",o.sc(1,cs,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function rs(t,e){1&t&&o.Qb(0,"tr",60)}function bs(t,e){1&t&&o.Qb(0,"tr",61)}const ds=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},us=function(){return["no_peer"]};let hs=(()=>{class t{constructor(t,e,n,i,a){this.logger=t,this.store=e,this.rtlEffects=n,this.clEffects=i,this.commonService=a,this.faEye=m.p,this.faEyeSlash=m.q,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=f.j,this.flgLoading=[!0],this.selFilter="",this.flgSticky=!1,this.pageSize=f.n,this.pageSizeOptions=f.o,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["short_channel_id","alias","actions"]):this.screenSize===f.q.SM||this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","actions"]):(this.flgSticky=!0,this.displayedColumns=["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","balancedness","actions"])}ngOnInit(){this.store.select("cl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{t.effectErrors.forEach(t=>{"FetchChannels"===t.action&&(this.flgLoading[0]="error")}),this.information=t.information,this.numPeers=t.peers&&t.peers.length?t.peers.length:0,this.totalBalance=t.balance.totalBalance,this.channelsData=t.allChannels.filter(t=>"CHANNELD_NORMAL"===t.state&&t.connected),this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!t.allChannels),this.logger.info(t)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(t){this.store.dispatch(new p.f({shortChannelID:t.short_channel_id,showError:!0})),this.clEffects.setLookupCL.pipe(Object(Jt.a)(1)).subscribe(t=>{if(0===t.length)return!1;let e={};e=t[0].source!==this.information.id?t[0]:t[1],this.store.dispatch(new st.C({data:{type:f.b.INFORMATION,alertTitle:"Remote Channel Policy",message:[[{key:"base_fee_millisatoshi",value:e.base_fee_millisatoshi,title:"Base Fees (mSats)",width:34,type:f.h.NUMBER},{key:"fee_per_millionth",value:e.fee_per_millionth,title:"Fee/Millionth",width:33,type:f.h.NUMBER},{key:"delay",value:e.delay,title:"Delay",width:33,type:f.h.NUMBER}]]}}))})}onChannelUpdate(t){"all"!==t&&"ONCHAIN"===t.state||("all"===t?(this.store.dispatch(new st.D({data:{type:f.b.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:1e3,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:1,min:1,width:48}]}})),this.rtlEffects.closeConfirm.pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{if(t){const e=t[0].inputValue,n=t[1].inputValue;this.store.dispatch(new st.F("Updating Channel Policy...")),this.store.dispatch(new p.Jb({baseFeeMsat:e,feeRate:n,channelId:"all"}))}})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0},this.store.dispatch(new st.F("Fetching Channel Policy...")),this.store.dispatch(new p.f({shortChannelID:t.short_channel_id,showError:!1})),this.clEffects.setLookupCL.pipe(Object(Jt.a)(1)).subscribe(e=>{this.myChanPolicy=e.length>0&&e[0].destination===this.information.id?{fee_base_msat:e[0].base_fee_millisatoshi,fee_rate_milli_msat:e[0].fee_per_millionth}:e.length>1&&e[1].destination===this.information.id?{fee_base_msat:e[1].base_fee_millisatoshi,fee_rate_milli_msat:e[1].fee_per_millionth}:{fee_base_msat:0,fee_rate_milli_msat:0},this.logger.info(this.myChanPolicy),this.store.dispatch(new st.i),this.store.dispatch(new st.D({data:{type:f.b.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:[],titleMessage:"Update fee policy for Channel: "+t.channel_id,flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:48}]}}))}),this.rtlEffects.closeConfirm.pipe(Object(d.a)(this.unSubs[2])).subscribe(e=>{if(e){const n=e[0].inputValue,i=e[1].inputValue;this.store.dispatch(new st.F("Updating Channel Policy...")),this.store.dispatch(new p.Jb({baseFeeMsat:n,feeRate:i,channelId:t.channel_id}))}})),this.applyFilter())}onChannelClose(t){this.store.dispatch(new st.D({data:{type:f.b.CONFIRM,alertTitle:"Close Channel",titleMessage:"Closing channel: "+t.channel_id,noBtnText:"Cancel",yesBtnText:"Close Channel"}})),this.rtlEffects.closeConfirm.pipe(Object(d.a)(this.unSubs[3])).subscribe(e=>{e&&(this.store.dispatch(new st.F("Closing Channel...")),this.store.dispatch(new p.h({channelId:t.channel_id,force:!1})))})}applyFilter(){this.channels.filter=this.selFilter}onChannelClick(t,e){this.store.dispatch(new st.C({data:{channel:t,showCopy:!0,component:Ao}}))}loadChannelsTable(t){t.sort(function(t,e){return t.active===e.active?0:e.active?1:-1}),this.channels=new at.o([...t]),this.channels.filterPredicate=(t,e)=>((t.connected?"connected":"disconnected")+(t.channel_id?t.channel_id:"")+(t.short_channel_id?t.short_channel_id:"")+(t.id?t.id:"")+(t.alias?t.alias:"")+(t.private?"private":"public")+(t.state?t.state.toLowerCase():"")+(t.funding_txid?t.funding_txid:"")+(t.msatoshi_to_us?t.msatoshi_to_us:"")+(t.msatoshi_total?t.msatoshi_total:"")+(t.their_channel_reserve_satoshis?t.their_channel_reserve_satoshis:"")+(t.our_channel_reserve_satoshis?t.our_channel_reserve_satoshis:"")+(t.spendable_msatoshi?t.spendable_msatoshi:"")).includes(e.toLowerCase()),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.channels.paginator=this.paginator,this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(y.h),o.Pb(xt.a),o.Pb(Yt.a),o.Pb(x.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-channel-open-table"]],viewQuery:function(t,e){if(1&t&&(o.Pc(it.a,!0),o.Pc(nt.a,!0)),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.paginator=t.first)}},features:[o.Cb([{provide:nt.b,useValue:Object(f.y)("Channels")}])],decls:48,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","connected"],["matColumnDef","private"],["matColumnDef","state"],["matColumnDef","msatoshi_to_us"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_to_them"],["matColumnDef","msatoshi_total"],["matColumnDef","spendable_msatoshi"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["fxFlex","100","fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Qb(2,"div",2),o.Vb(3,"mat-form-field",3),o.Vb(4,"input",4),o.dc("keyup",function(){return e.applyFilter()})("ngModelChange",function(t){return e.selFilter=t}),o.Ub(),o.Ub(),o.Ub(),o.Vb(5,"div",5),o.Ic(6,_o,1,0,"mat-progress-bar",6),o.Vb(7,"table",7,8),o.Tb(9,9),o.Ic(10,Po,2,0,"th",10),o.Ic(11,Mo,6,6,"td",11),o.Sb(),o.Tb(12,12),o.Ic(13,Oo,2,0,"th",10),o.Ic(14,Eo,2,1,"td",11),o.Sb(),o.Tb(15,13),o.Ic(16,zo,2,0,"th",10),o.Ic(17,Bo,2,1,"td",11),o.Sb(),o.Tb(18,14),o.Ic(19,No,2,0,"th",10),o.Ic(20,qo,2,1,"td",11),o.Sb(),o.Tb(21,15),o.Ic(22,Qo,2,0,"th",10),o.Ic(23,Ho,2,1,"td",11),o.Sb(),o.Tb(24,16),o.Ic(25,jo,2,0,"th",17),o.Ic(26,$o,4,4,"td",11),o.Sb(),o.Tb(27,18),o.Ic(28,Go,2,0,"th",17),o.Ic(29,Xo,4,4,"td",11),o.Sb(),o.Tb(30,19),o.Ic(31,Wo,2,0,"th",17),o.Ic(32,Jo,4,3,"td",11),o.Sb(),o.Tb(33,20),o.Ic(34,Yo,2,0,"th",17),o.Ic(35,Zo,4,3,"td",11),o.Sb(),o.Tb(36,21),o.Ic(37,ts,2,0,"th",22),o.Ic(38,es,6,4,"td",23),o.Sb(),o.Tb(39,24),o.Ic(40,ns,8,0,"th",25),o.Ic(41,is,12,0,"td",26),o.Sb(),o.Tb(42,27),o.Ic(43,ss,3,2,"td",28),o.Sb(),o.Ic(44,ls,1,3,"tr",29),o.Ic(45,rs,1,0,"tr",30),o.Ic(46,bs,1,0,"tr",31),o.Ub(),o.Ub(),o.Qb(47,"mat-paginator",32),o.Ub()),2&t&&(o.Db(4),o.oc("ngModel",e.selFilter),o.Db(2),o.oc("ngIf",!0===e.flgLoading[0]),o.Db(1),o.oc("dataSource",e.channels)("ngClass",o.sc(11,ds,"error"===e.flgLoading[0])),o.Db(37),o.oc("matFooterRowDef",o.rc(13,us)),o.Db(1),o.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.Db(1),o.oc("matRowDefColumns",e.displayedColumns),o.Db(1),o.oc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[w.c,w.b,w.a,K.c,lt.b,ct.c,ct.m,ct.p,O.b,i.o,at.n,it.a,i.m,I.a,at.c,at.i,at.b,at.e,at.g,at.k,at.m,nt.a,s.a,at.h,it.b,at.a,i.p,I.b,R.a,V.a,K.f,dt.a,dt.c,ht.m,at.d,at.f,at.j,at.l],pipes:[i.f],styles:[".mat-column-short_channel_id[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-short_channel_id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-alias[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;flex:0 0 22%;width:22%}.mat-column-msatoshi_to_them[_ngcontent-%COMP%], .mat-column-msatoshi_to_us[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{flex:0 0 15%;width:15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})();function ms(t,e){1&t&&o.Qb(0,"mat-progress-bar",29)}function fs(t,e){1&t&&(o.Vb(0,"th",30),o.Kc(1," Short Channel ID "),o.Ub())}function ps(t,e){if(1&t&&(o.Vb(0,"td",31),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null==t?null:t.short_channel_id,"")}}function gs(t,e){1&t&&(o.Vb(0,"th",30),o.Kc(1," Alias "),o.Ub())}function ys(t,e){if(1&t&&(o.Vb(0,"td",31),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(null==t?null:t.alias)}}function vs(t,e){1&t&&(o.Vb(0,"th",30),o.Kc(1," Connected "),o.Ub())}function xs(t,e){if(1&t&&(o.Vb(0,"td",31),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function ws(t,e){1&t&&(o.Vb(0,"th",30),o.Kc(1," Private "),o.Ub())}function Vs(t,e){if(1&t&&(o.Vb(0,"td",31),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null!=t&&t.private?"Private":"Public"," ")}}function Us(t,e){1&t&&(o.Vb(0,"th",30),o.Kc(1," State "),o.Ub())}function Ds(t,e){if(1&t&&(o.Vb(0,"td",31),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null==t?null:t.state,"")}}function Cs(t,e){1&t&&(o.Vb(0,"th",32),o.Kc(1," mSatoshi To Us "),o.Ub())}function Ss(t,e){if(1&t&&(o.Vb(0,"td",31),o.Vb(1,"span",33),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.jc(3,1,null==t?null:t.msatoshi_to_us)," ")}}function Ls(t,e){1&t&&(o.Vb(0,"th",32),o.Kc(1," Total (Sats) "),o.Ub())}function Is(t,e){if(1&t&&(o.Vb(0,"td",31),o.Vb(1,"span",33),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.jc(3,1,(null==t?null:t.msatoshi_total)/1e3)," ")}}function Fs(t,e){1&t&&(o.Vb(0,"th",32),o.Kc(1," Spendable Satoshi "),o.Ub())}function ks(t,e){if(1&t&&(o.Vb(0,"td",31),o.Vb(1,"span",33),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.jc(3,1,null==t?null:t.spendable_msatoshi)," ")}}function As(t,e){if(1&t){const t=o.Wb();o.Vb(0,"th",34),o.Vb(1,"div",35),o.Vb(2,"mat-select",36),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",37),o.dc("click",function(){return o.zc(t),o.hc().onDownloadCSV()}),o.Kc(5,"Download CSV"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function _s(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-option",37),o.dc("click",function(){o.zc(t);const e=o.hc().$implicit;return o.hc().onChannelClose(e)}),o.Kc(1,"Close Channel"),o.Ub()}}function Ps(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",38),o.Vb(1,"div",35),o.Vb(2,"mat-select",39),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",37),o.dc("click",function(n){o.zc(t);const i=e.$implicit;return o.hc().onChannelClick(i,n)}),o.Kc(5,"View Info"),o.Ub(),o.Ic(6,_s,2,0,"mat-option",40),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=e.$implicit,n=o.hc();o.Db(6),o.oc("ngIf",n.isCompatibleVersion&&!t.connected&&"CHANNELD_NORMAL"===t.state)}}function Ts(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No peers connected. Add a peer in order to open a channel."),o.Ub())}function Ks(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No channels available."),o.Ub())}function Rs(t,e){if(1&t&&(o.Vb(0,"td",41),o.Ic(1,Ts,2,0,"p",42),o.Ic(2,Ks,2,0,"p",42),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)),o.Db(1),o.oc("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1))}}const Ms=function(t){return{"display-none":t}};function Os(t,e){if(1&t&&o.Qb(0,"tr",43),2&t){const t=o.hc();o.oc("ngClass",o.sc(1,Ms,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function Es(t,e){1&t&&o.Qb(0,"tr",44)}function zs(t,e){1&t&&o.Qb(0,"tr",45)}const Bs=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},Ns=function(){return["no_peer"]};let qs=(()=>{class t{constructor(t,e,n,i,a){this.logger=t,this.store=e,this.rtlEffects=n,this.clEffects=i,this.commonService=a,this.isCompatibleVersion=!1,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=f.j,this.flgLoading=[!0],this.selFilter="",this.flgSticky=!1,this.pageSize=f.n,this.pageSizeOptions=f.o,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["alias","state","actions"]):this.screenSize===f.q.SM?(this.flgSticky=!1,this.displayedColumns=["alias","connected","state","actions"]):this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["alias","connected","state","msatoshi_total","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","connected","state","msatoshi_total","actions"])}ngOnInit(){this.store.select("cl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{t.effectErrors.forEach(t=>{"FetchChannels"===t.action&&(this.flgLoading[0]="error")}),this.information=t.information,this.information.api_version&&(this.isCompatibleVersion=this.commonService.isVersionCompatible(this.information.api_version,"0.4.2")),this.numPeers=t.peers&&t.peers.length?t.peers.length:0,this.totalBalance=t.balance.totalBalance,this.channelsData=t.allChannels.filter(t=>!("CHANNELD_NORMAL"===t.state&&t.connected)),this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!t.allChannels),this.logger.info(t)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}applyFilter(){this.channels.filter=this.selFilter}onChannelClick(t,e){this.store.dispatch(new st.C({data:{channel:t,showCopy:!0,component:Ao}}))}onChannelClose(t){this.store.dispatch(new st.D({data:{type:f.b.CONFIRM,alertTitle:"Force Close Channel",titleMessage:"Force closing channel: "+t.channel_id,noBtnText:"Cancel",yesBtnText:"Force Close"}})),this.rtlEffects.closeConfirm.pipe(Object(d.a)(this.unSubs[3])).subscribe(e=>{e&&(this.store.dispatch(new st.F("Force Closing Channel...")),this.store.dispatch(new p.h({channelId:t.channel_id,force:!0})))})}loadChannelsTable(t){t.sort(function(t,e){return t.active===e.active?0:e.active?1:-1}),this.channels=new at.o([...t]),this.channels.filterPredicate=(t,e)=>((t.connected?"connected":"disconnected")+(t.channel_id?t.channel_id:"")+(t.short_channel_id?t.short_channel_id:"")+(t.id?t.id:"")+(t.alias?t.alias:"")+(t.private?"private":"public")+(t.state?t.state.toLowerCase():"")+(t.funding_txid?t.funding_txid:"")+(t.msatoshi_to_us?t.msatoshi_to_us:"")+(t.msatoshi_total?t.msatoshi_total:"")+(t.their_channel_reserve_satoshis?t.their_channel_reserve_satoshis:"")+(t.our_channel_reserve_satoshis?t.our_channel_reserve_satoshis:"")+(t.spendable_msatoshi?t.spendable_msatoshi:"")).includes(e.toLowerCase()),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.channels.paginator=this.paginator,this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Pending-inactive-channels")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(y.h),o.Pb(xt.a),o.Pb(Yt.a),o.Pb(x.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-channel-pending-table"]],viewQuery:function(t,e){if(1&t&&(o.Pc(it.a,!0),o.Pc(nt.a,!0)),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.paginator=t.first)}},features:[o.Cb([{provide:nt.b,useValue:Object(f.y)("Channels")}])],decls:42,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","connected"],["matColumnDef","private"],["matColumnDef","state"],["matColumnDef","msatoshi_to_us"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_total"],["matColumnDef","spendable_msatoshi"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pr-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pr-3"],["placeholder","Actions","tabindex","4",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Qb(2,"div",2),o.Vb(3,"mat-form-field",3),o.Vb(4,"input",4),o.dc("keyup",function(){return e.applyFilter()})("ngModelChange",function(t){return e.selFilter=t}),o.Ub(),o.Ub(),o.Ub(),o.Vb(5,"div",5),o.Ic(6,ms,1,0,"mat-progress-bar",6),o.Vb(7,"table",7,8),o.Tb(9,9),o.Ic(10,fs,2,0,"th",10),o.Ic(11,ps,2,1,"td",11),o.Sb(),o.Tb(12,12),o.Ic(13,gs,2,0,"th",10),o.Ic(14,ys,2,1,"td",11),o.Sb(),o.Tb(15,13),o.Ic(16,vs,2,0,"th",10),o.Ic(17,xs,2,1,"td",11),o.Sb(),o.Tb(18,14),o.Ic(19,ws,2,0,"th",10),o.Ic(20,Vs,2,1,"td",11),o.Sb(),o.Tb(21,15),o.Ic(22,Us,2,0,"th",10),o.Ic(23,Ds,2,1,"td",11),o.Sb(),o.Tb(24,16),o.Ic(25,Cs,2,0,"th",17),o.Ic(26,Ss,4,3,"td",11),o.Sb(),o.Tb(27,18),o.Ic(28,Ls,2,0,"th",17),o.Ic(29,Is,4,3,"td",11),o.Sb(),o.Tb(30,19),o.Ic(31,Fs,2,0,"th",17),o.Ic(32,ks,4,3,"td",11),o.Sb(),o.Tb(33,20),o.Ic(34,As,6,0,"th",21),o.Ic(35,Ps,7,1,"td",22),o.Sb(),o.Tb(36,23),o.Ic(37,Rs,3,2,"td",24),o.Sb(),o.Ic(38,Os,1,3,"tr",25),o.Ic(39,Es,1,0,"tr",26),o.Ic(40,zs,1,0,"tr",27),o.Ub(),o.Ub(),o.Qb(41,"mat-paginator",28),o.Ub()),2&t&&(o.Db(4),o.oc("ngModel",e.selFilter),o.Db(2),o.oc("ngIf",!0===e.flgLoading[0]),o.Db(1),o.oc("dataSource",e.channels)("ngClass",o.sc(11,Bs,"error"===e.flgLoading[0])),o.Db(31),o.oc("matFooterRowDef",o.rc(13,Ns)),o.Db(1),o.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.Db(1),o.oc("matRowDefColumns",e.displayedColumns),o.Db(1),o.oc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[w.c,w.b,w.a,K.c,lt.b,ct.c,ct.m,ct.p,O.b,i.o,at.n,it.a,i.m,I.a,at.c,at.i,at.b,at.e,at.g,at.k,at.m,nt.a,s.a,at.h,it.b,at.a,dt.a,dt.c,ht.m,at.d,at.f,at.j,at.l],pipes:[i.f],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})();const Qs=["peersForm"],Hs=["stepper"];function js(t,e){if(1&t&&o.Kc(0),2&t){const t=o.hc();o.Lc(t.peerFormLabel)}}function $s(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Address is required."),o.Ub())}function Gs(t,e){if(1&t&&(o.Vb(0,"div",39),o.Qb(1,"fa-icon",40),o.Vb(2,"span"),o.Kc(3),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("icon",t.faExclamationTriangle),o.Db(2),o.Lc(t.peerConnectionError)}}function Xs(t,e){if(1&t&&o.Kc(0),2&t){const t=o.hc();o.Lc(t.channelFormLabel)}}function Ws(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Amount is required."),o.Ub())}function Js(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Amount must be a positive number."),o.Ub())}function Ys(t,e){if(1&t&&(o.Vb(0,"mat-error"),o.Kc(1),o.Ub()),2&t){const t=o.hc();o.Db(1),o.Mc("Amount must be less than or equal to ",t.totalBalance,".")}}function Zs(t,e){if(1&t&&(o.Vb(0,"mat-option",41),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.oc("value",t.feeRateId),o.Db(1),o.Mc(" ",t.feeRateType," ")}}function tc(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Min Confirmation Blocks is required."),o.Ub())}function ec(t,e){if(1&t&&(o.Vb(0,"div",39),o.Qb(1,"fa-icon",40),o.Vb(2,"span"),o.Kc(3),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("icon",t.faExclamationTriangle),o.Db(2),o.Lc(t.channelConnectionError)}}let nc=(()=>{class t{constructor(t,e,n,i,a,o,s){this.dialogRef=t,this.data=e,this.store=n,this.clEffects=i,this.formBuilder=a,this.actions$=o,this.logger=s,this.faExclamationTriangle=m.o,this.peerAddress="",this.totalBalance=0,this.feeRateTypes=f.j,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.unSubs=[new b.a,new b.a]}ngOnInit(){this.totalBalance=this.data.message.balance,this.peerAddress=this.data.message.peer&&this.data.message.peer.id&&this.data.message.peer.netaddr?this.data.message.peer.id+"@"+this.data.message.peer.netaddr:this.data.message.peer&&this.data.message.peer.id&&!this.data.message.peer.netaddr?this.data.message.peer.id:"",this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[ct.t.required]],peerAddress:[this.peerAddress,[ct.t.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[ct.t.required,ct.t.min(1),ct.t.max(this.totalBalance)]],isPrivate:[!1],selFeeRate:[null],flgMinConf:[!1],minConfValue:[null],hiddenAmount:["",[ct.t.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.flgMinConf.valueChanges.pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{t?(this.channelFormGroup.controls.selFeeRate.setValue(null),this.channelFormGroup.controls.selFeeRate.disable(),this.channelFormGroup.controls.minConfValue.enable(),this.channelFormGroup.controls.minConfValue.setValidators([ct.t.required])):(this.channelFormGroup.controls.selFeeRate.enable(),this.channelFormGroup.controls.minConfValue.disable(),this.channelFormGroup.controls.minConfValue.setValidators(null))}),this.actions$.pipe(Object(d.a)(this.unSubs[1]),Object(u.a)(t=>t.type===p.R||t.type===p.r||t.type===p.o)).subscribe(t=>{t.type===p.R&&(this.logger.info(t.payload),this.flgEditable=!1,this.newlyAddedPeer=t.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),t.type===p.r&&this.dialogRef.close(),t.type===p.o&&("SaveNewPeer"===t.payload.action?this.peerConnectionError=t.payload.message:"SaveNewChannel"===t.payload.action&&(this.channelConnectionError=t.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch(new st.F("Adding Peer...")),this.store.dispatch(new p.yb({id:this.peerFormGroup.controls.peerAddress.value}))}onOpenChannel(){if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||this.channelFormGroup.controls.flgMinConf.value&&!this.channelFormGroup.controls.minConfValue.value)return!0;this.channelConnectionError="",this.store.dispatch(new st.F("Opening Channel...")),this.store.dispatch(new p.wb({peerId:this.newlyAddedPeer.id,satoshis:this.channelFormGroup.controls.fundingAmount.value,announce:!this.channelFormGroup.controls.isPrivate.value,feeRate:this.channelFormGroup.controls.selFeeRate.value,minconf:this.channelFormGroup.controls.flgMinConf.value?this.channelFormGroup.controls.minConfValue.value:null}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(t){switch(t.selectedIndex){case 0:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer.id):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer.id):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)";break;default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)"}t.selectedIndex{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(ot.f),o.Pb(ot.a),o.Pb(y.h),o.Pb(Yt.a),o.Pb(ct.d),o.Pb(v.a),o.Pb(g.b))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-connect-peer"]],viewQuery:function(t,e){if(1&t&&(o.Pc(Qs,!0),o.Pc(Hs,!0)),2&t){let t;o.vc(t=o.ec())&&(e.form=t.first),o.vc(t=o.ec())&&(e.stepper=t.first)}},decls:55,vars:24,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100"],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","autoFocus","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","48","fxLayoutAlign","start end"],["tabindex","4","placeholder","Fee Rate","formControlName","selFeeRate"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","formControlName","flgMinConf","name","flgMinConf","fxLayoutAlign","stretch start",1,"mr-2"],["fxFlex","98"],["matInput","","formControlName","minConfValue","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"step","min","required"],["mat-stroked-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"mat-card-header",2),o.Vb(3,"div",3),o.Vb(4,"span",4),o.Kc(5,"Connect to a new peer"),o.Ub(),o.Ub(),o.Vb(6,"button",5),o.dc("click",function(){return e.onClose()}),o.Kc(7,"X"),o.Ub(),o.Ub(),o.Vb(8,"mat-card-content",6),o.Vb(9,"div",7),o.Vb(10,"mat-vertical-stepper",8,9),o.dc("selectionChange",function(t){return e.stepSelectionChanged(t)}),o.Vb(12,"mat-step",10),o.Vb(13,"form",11),o.Ic(14,js,1,1,"ng-template",12),o.Vb(15,"mat-form-field",13),o.Qb(16,"input",14),o.Ic(17,$s,2,0,"mat-error",15),o.Ub(),o.Ic(18,Gs,4,2,"div",16),o.Vb(19,"div",17),o.Vb(20,"button",18),o.dc("click",function(){return e.onConnectPeer()}),o.Kc(21),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(22,"mat-step",10),o.Vb(23,"form",19),o.Ic(24,Xs,1,1,"ng-template",20),o.Vb(25,"div",21),o.Vb(26,"div",22),o.Vb(27,"mat-form-field",23),o.Qb(28,"input",24),o.Vb(29,"mat-hint"),o.Kc(30),o.Ub(),o.Vb(31,"span",25),o.Kc(32," Sats "),o.Ub(),o.Ic(33,Ws,2,0,"mat-error",15),o.Ic(34,Js,2,0,"mat-error",15),o.Ic(35,Ys,2,1,"mat-error",15),o.Ub(),o.Vb(36,"div",26),o.Vb(37,"mat-slide-toggle",27),o.Kc(38,"Private Channel"),o.Ub(),o.Ub(),o.Ub(),o.Vb(39,"div",28),o.Vb(40,"mat-form-field",29),o.Vb(41,"mat-select",30),o.Ic(42,Zs,2,2,"mat-option",31),o.Ub(),o.Ub(),o.Vb(43,"div",32),o.Qb(44,"mat-checkbox",33),o.Vb(45,"mat-form-field",34),o.Qb(46,"input",35),o.Ic(47,tc,2,0,"mat-error",15),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ic(48,ec,4,2,"div",16),o.Vb(49,"div",17),o.Vb(50,"button",36),o.dc("click",function(){return e.onOpenChannel()}),o.Kc(51),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(52,"div",37),o.Vb(53,"button",38),o.Kc(54),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(10),o.oc("linear",!0),o.Db(2),o.oc("stepControl",e.peerFormGroup)("editable",e.flgEditable),o.Db(1),o.oc("formGroup",e.peerFormGroup),o.Db(4),o.oc("ngIf",null==e.peerFormGroup.controls.peerAddress.errors?null:e.peerFormGroup.controls.peerAddress.errors.required),o.Db(1),o.oc("ngIf",""!==e.peerConnectionError),o.Db(3),o.Lc(""!==e.peerConnectionError?"Retry":"Add Peer"),o.Db(1),o.oc("stepControl",e.channelFormGroup)("editable",e.flgEditable),o.Db(1),o.oc("formGroup",e.channelFormGroup),o.Db(5),o.oc("step",1e3),o.Db(2),o.Mc("Remaining Bal: ",e.totalBalance-(e.channelFormGroup.controls.fundingAmount.value?e.channelFormGroup.controls.fundingAmount.value:0),""),o.Db(3),o.oc("ngIf",null==e.channelFormGroup.controls.fundingAmount.errors?null:e.channelFormGroup.controls.fundingAmount.errors.required),o.Db(1),o.oc("ngIf",null==e.channelFormGroup.controls.fundingAmount.errors?null:e.channelFormGroup.controls.fundingAmount.errors.min),o.Db(1),o.oc("ngIf",null==e.channelFormGroup.controls.fundingAmount.errors?null:e.channelFormGroup.controls.fundingAmount.errors.max),o.Db(7),o.oc("ngForOf",e.feeRateTypes),o.Db(4),o.oc("step",1)("min",0)("required",e.channelFormGroup.controls.flgMinConf.value),o.Db(1),o.oc("ngIf",e.channelFormGroup.controls.flgMinConf.value&&!e.channelFormGroup.controls.minConfValue.value),o.Db(1),o.oc("ngIf",""!==e.channelConnectionError),o.Db(3),o.Lc(""!==e.channelConnectionError?"Retry":"Open Channel"),o.Db(2),o.oc("mat-dialog-close",!1),o.Db(1),o.Lc(null!=e.newlyAddedPeer&&e.newlyAddedPeer.id?"Do It Later":"Close"))},directives:[w.c,w.a,D.c,w.b,S.a,D.b,Bn.h,Bn.a,ct.u,ct.n,ct.h,Bn.b,K.c,lt.b,ct.c,rt.a,ct.m,ct.g,ct.s,i.o,ct.q,K.f,K.g,ut.a,dt.a,i.n,En.a,bt.a,ot.d,K.b,V.a,ht.m],styles:[""]}),t})();function ic(t,e){1&t&&o.Qb(0,"mat-progress-bar",32)}function ac(t,e){1&t&&(o.Vb(0,"th",33),o.Kc(1," Alias "),o.Ub())}const oc=function(t){return{"mr-0":t}};function sc(t,e){if(1&t&&o.Qb(0,"span",37),2&t){const t=o.hc(2);o.oc("ngClass",o.sc(1,oc,t.screenSize===t.screenSizeEnum.XS))}}function cc(t,e){if(1&t&&o.Qb(0,"span",38),2&t){const t=o.hc(2);o.oc("ngClass",o.sc(1,oc,t.screenSize===t.screenSizeEnum.XS))}}const lc=function(t){return{"max-width":t}};function rc(t,e){if(1&t&&(o.Vb(0,"td",34),o.Ic(1,sc,1,3,"span",35),o.Ic(2,cc,1,3,"span",36),o.Kc(3),o.Ub()),2&t){const t=e.$implicit,n=o.hc();o.oc("ngStyle",o.sc(4,lc,n.screenSize===n.screenSizeEnum.XS?"10rem":"40rem")),o.Db(1),o.oc("ngIf",null==t?null:t.connected),o.Db(1),o.oc("ngIf",!(null!=t&&t.connected)),o.Db(1),o.Mc(" ",null==t?null:t.alias," ")}}function bc(t,e){1&t&&(o.Vb(0,"th",39),o.Kc(1," ID "),o.Ub())}function dc(t,e){if(1&t&&(o.Vb(0,"td",40),o.Kc(1),o.Ub()),2&t){const t=e.$implicit,n=o.hc();o.oc("ngStyle",o.sc(2,lc,n.screenSize===n.screenSizeEnum.XS?"10rem":"40rem")),o.Db(1),o.Mc(" ",null==t?null:t.id," ")}}function uc(t,e){1&t&&(o.Vb(0,"th",33),o.Kc(1," Network Address "),o.Ub())}function hc(t,e){1&t&&(o.Vb(0,"span"),o.Kc(1,","),o.Qb(2,"br"),o.Ub())}function mc(t,e){if(1&t&&(o.Vb(0,"span"),o.Kc(1),o.Ic(2,hc,3,0,"span",42),o.Ub()),2&t){const t=e.$implicit,n=e.last;o.Db(1),o.Lc(t),o.Db(1),o.oc("ngIf",!n)}}function fc(t,e){if(1&t&&(o.Vb(0,"td",34),o.Ic(1,mc,3,2,"span",41),o.Ub()),2&t){const t=e.$implicit,n=o.hc();o.oc("ngStyle",o.sc(2,lc,n.screenSize===n.screenSizeEnum.XS?"10rem":"20rem")),o.Db(1),o.oc("ngForOf",null==t?null:t.netaddr)}}function pc(t,e){if(1&t){const t=o.Wb();o.Vb(0,"th",43),o.Vb(1,"div",44),o.Vb(2,"mat-select",45),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",46),o.dc("click",function(){return o.zc(t),o.hc().onDownloadCSV()}),o.Kc(5,"Download CSV"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function gc(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-option",46),o.dc("click",function(){o.zc(t);const e=o.hc().$implicit;return o.hc().onPeerDetach(e)}),o.Kc(1,"Disconnect"),o.Ub()}}function yc(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-option",46),o.dc("click",function(){o.zc(t);const e=o.hc().$implicit;return o.hc().onConnectPeer(e)}),o.Kc(1,"Reconnect"),o.Ub()}}function vc(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",47),o.Vb(1,"div",48),o.Vb(2,"mat-select",45),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",46),o.dc("click",function(n){o.zc(t);const i=e.$implicit;return o.hc().onPeerClick(i,n)}),o.Kc(5,"View Info"),o.Ub(),o.Vb(6,"mat-option",46),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().onOpenChannel(n)}),o.Kc(7,"Open Channel"),o.Ub(),o.Ic(8,gc,2,0,"mat-option",49),o.Ic(9,yc,2,0,"mat-option",49),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=e.$implicit;o.Db(8),o.oc("ngIf",t.connected),o.Db(1),o.oc("ngIf",!t.connected)}}function xc(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No connected peers."),o.Ub())}function wc(t,e){if(1&t&&(o.Vb(0,"td",50),o.Ic(1,xc,2,0,"p",42),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("ngIf",!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)}}const Vc=function(t){return{"display-none":t}};function Uc(t,e){if(1&t&&o.Qb(0,"tr",51),2&t){const t=o.hc();o.oc("ngClass",o.sc(1,Vc,(null==t.peers?null:t.peers.data)&&(null==t.peers||null==t.peers.data?null:t.peers.data.length)>0))}}function Dc(t,e){1&t&&o.Qb(0,"tr",52)}function Cc(t,e){if(1&t&&o.Qb(0,"tr",53),2&t){const t=e.$implicit,n=o.hc();o.oc("@newlyAddedRowAnimation",t.pub_key===n.newlyAddedPeer&&n.flgAnimate?"added":"notAdded")}}const Sc=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},Lc=function(){return["no_peer"]};let Ic=(()=>{class t{constructor(t,e,n,i,a,o){this.logger=t,this.store=e,this.rtlEffects=n,this.clEffects=i,this.actions$=a,this.commonService=o,this.faUsers=m.O,this.newlyAddedPeer="",this.flgAnimate=!0,this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.information={},this.availableBalance=0,this.flgLoading=[!0],this.flgSticky=!1,this.pageSize=f.n,this.pageSizeOptions=f.o,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===f.q.SM||this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["alias","id","netaddr","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","id","netaddr","actions"])}ngOnInit(){this.store.select("cl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{t.effectErrors.forEach(t=>{"FetchPeers"===t.action&&(this.flgLoading[0]="error")}),this.information=t.information,this.availableBalance=t.balance.totalBalance||0,this.peersData=t.peers?t.peers:[],this.peersData.length>0&&this.loadPeersTable(this.peersData),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!1),this.logger.info(t)}),this.actions$.pipe(Object(d.a)(this.unSubs[1]),Object(u.a)(t=>t.type===p.sb)).subscribe(t=>{this.peerAddress=void 0,this.flgAnimate=!0})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(t,e){this.store.dispatch(new st.C({data:{type:f.b.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:t.id,message:[[{key:"id",value:t.id,title:"Public Key",width:100}],[{key:"netaddr",value:t.netaddr,title:"Address",width:100}],[{key:"alias",value:t.alias,title:"Alias",width:50},{key:"connected",value:t.connected?"True":"False",title:"Connected",width:50}]]}}))}onConnectPeer(t){this.store.dispatch(new st.C({data:{message:{peer:t.id?t:null,information:this.information,balance:this.availableBalance},component:nc}}))}onOpenChannel(t){this.store.dispatch(new st.C({data:{alertTitle:"Open Channel",message:{peer:t,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:xo}}))}onPeerDetach(t){this.store.dispatch(new st.D({data:{type:f.b.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(t.alias?t.alias:t.id),noBtnText:"Cancel",yesBtnText:"Disconnect"}})),this.rtlEffects.closeConfirm.pipe(Object(d.a)(this.unSubs[3])).subscribe(e=>{e&&(this.store.dispatch(new st.F("Disconnecting Peer...")),this.store.dispatch(new p.n({id:t.id,force:!1})))})}applyFilter(t){this.peers.filter=t.value}loadPeersTable(t){this.peers=new at.o([...t]),this.peers.sortingDataAccessor=(t,e)=>{switch(e){case"netaddr":if(t.netaddr&&t.netaddr[0]){let e=t.netaddr[0].toString().split(".");return e[0]?+e[0]:t.netaddr[0]}return"";default:return t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null}},this.peers.sort=this.sort,this.peers.paginator=this.paginator}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(y.h),o.Pb(xt.a),o.Pb(Yt.a),o.Pb(v.a),o.Pb(x.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-peers"]],viewQuery:function(t,e){if(1&t&&(o.Pc(it.a,!0),o.Pc(nt.a,!0)),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.paginator=t.first)}},features:[o.Cb([{provide:nt.b,useValue:Object(f.y)("Peers")}])],decls:36,vars:14,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["peersForm","ngForm"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["fxLayout","row","fxLayoutAlign","start start"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","class","px-3","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","px-3",3,"ngStyle",4,"matCellDef"],["matColumnDef","netaddr"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["class","dot green","matTooltip","Connected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Disconnected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Connected","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Disconnected","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header","",1,"px-3"],["mat-cell","",1,"px-3",3,"ngStyle"],[4,"ngFor","ngForOf"],[4,"ngIf"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["fxFlex","100","fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"form",1,2),o.Vb(3,"button",3),o.dc("click",function(){return e.onConnectPeer({})}),o.Kc(4,"Add Peer"),o.Ub(),o.Ub(),o.Vb(5,"div",4),o.Vb(6,"div",5),o.Vb(7,"div",6),o.Qb(8,"fa-icon",7),o.Vb(9,"span",8),o.Kc(10,"Connected Peers"),o.Ub(),o.Ub(),o.Vb(11,"mat-form-field",9),o.Vb(12,"div",10),o.Vb(13,"input",11),o.dc("keyup",function(t){return e.applyFilter(t.target)}),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(14,"div",12),o.Ic(15,ic,1,0,"mat-progress-bar",13),o.Vb(16,"table",14,15),o.Tb(18,16),o.Ic(19,ac,2,0,"th",17),o.Ic(20,rc,4,6,"td",18),o.Sb(),o.Tb(21,19),o.Ic(22,bc,2,0,"th",20),o.Ic(23,dc,2,4,"td",21),o.Sb(),o.Tb(24,22),o.Ic(25,uc,2,0,"th",17),o.Ic(26,fc,2,4,"td",18),o.Sb(),o.Tb(27,23),o.Ic(28,pc,6,0,"th",24),o.Ic(29,vc,10,2,"td",25),o.Sb(),o.Tb(30,26),o.Ic(31,wc,2,1,"td",27),o.Sb(),o.Ic(32,Uc,1,3,"tr",28),o.Ic(33,Dc,1,0,"tr",29),o.Ic(34,Cc,1,1,"tr",30),o.Ub(),o.Ub(),o.Qb(35,"mat-paginator",31),o.Ub(),o.Ub()),2&t&&(o.Db(8),o.oc("icon",e.faUsers),o.Db(7),o.oc("ngIf",!0===e.flgLoading[0]),o.Db(1),o.oc("dataSource",e.peers)("ngClass",o.sc(11,Sc,"error"===e.flgLoading[0])),o.Db(16),o.oc("matFooterRowDef",o.rc(13,Lc)),o.Db(1),o.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.Db(1),o.oc("matRowDefColumns",e.displayedColumns),o.Db(1),o.oc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[w.c,w.a,w.b,ct.u,ct.n,ct.o,S.a,V.a,K.c,lt.b,O.b,i.o,at.n,it.a,i.m,I.a,at.c,at.i,at.b,at.e,at.g,at.k,at.m,nt.a,s.a,at.h,it.b,at.a,i.p,I.b,R.a,i.n,dt.a,dt.c,ht.m,at.d,at.f,at.j,at.l],styles:[".mat-column-alias[_ngcontent-%COMP%], .mat-column-id[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-id[_ngcontent-%COMP%]{padding-left:2rem}.mat-column-netaddr[_ngcontent-%COMP%]{flex:1 1 25%;width:25%}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"],data:{animation:[vt.a]}}),t})();const Fc=["queryRoutesForm"];function kc(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Destination pubkey is required."),o.Ub())}function Ac(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Amount is required."),o.Ub())}function _c(t,e){1&t&&o.Qb(0,"mat-progress-bar",38)}function Pc(t,e){1&t&&(o.Vb(0,"th",39),o.Kc(1," ID "),o.Ub())}function Tc(t,e){if(1&t&&(o.Vb(0,"td",40),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null==t?null:t.id," ")}}function Kc(t,e){1&t&&(o.Vb(0,"th",39),o.Kc(1," Alias "),o.Ub())}function Rc(t,e){if(1&t&&(o.Vb(0,"td",40),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null==t?null:t.alias," ")}}function Mc(t,e){1&t&&(o.Vb(0,"th",39),o.Kc(1," Channel "),o.Ub())}function Oc(t,e){if(1&t&&(o.Vb(0,"td",40),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null==t?null:t.channel," ")}}function Ec(t,e){1&t&&(o.Vb(0,"th",39),o.Kc(1," Direction "),o.Ub())}function zc(t,e){if(1&t&&(o.Vb(0,"td",40),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null==t?null:t.direction," ")}}function Bc(t,e){1&t&&(o.Vb(0,"th",41),o.Kc(1," Delay "),o.Ub())}function Nc(t,e){if(1&t&&(o.Vb(0,"td",40),o.Vb(1,"span",42),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.jc(3,1,null==t?null:t.delay)," ")}}function qc(t,e){1&t&&(o.Vb(0,"th",41),o.Kc(1," Amount (Sats) "),o.Ub())}function Qc(t,e){if(1&t&&(o.Vb(0,"td",40),o.Vb(1,"span",42),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.jc(3,1,(null==t?null:t.msatoshi)/1e3)," ")}}function Hc(t,e){1&t&&(o.Vb(0,"th",43),o.Kc(1," Amount mSat "),o.Ub())}function jc(t,e){if(1&t&&(o.Vb(0,"td",44),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null==t?null:t.amount_msat," ")}}function $c(t,e){1&t&&(o.Vb(0,"th",45),o.Vb(1,"span",42),o.Kc(2,"Actions"),o.Ub(),o.Ub())}function Gc(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",44),o.Vb(1,"button",46),o.dc("click",function(n){o.zc(t);const i=e.$implicit;return o.hc().onHopClick(i,n)}),o.Kc(2,"View Info"),o.Ub(),o.Ub()}}function Xc(t,e){1&t&&o.Qb(0,"tr",47)}function Wc(t,e){1&t&&o.Qb(0,"tr",48)}const Jc=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}};let Yc=(()=>{class t{constructor(t,e,n){this.store=t,this.clEffects=e,this.commonService=n,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=m.E,this.faExclamationTriangle=m.o,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["alias","msatoshi","actions"]):this.screenSize===f.q.SM?(this.flgSticky=!1,this.displayedColumns=["alias","direction","msatoshi","actions"]):this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["alias","direction","delay","msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","channel","direction","delay","msatoshi","actions"])}ngOnInit(){this.clEffects.setQueryRoutesCL.pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.qrHops=new at.o([]),this.qrHops.data=[],t.routes?(this.flgLoading[0]=!1,this.qrHops=new at.o([...t.routes]),this.qrHops.data=t.routes):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.flgLoading[0]=!0,this.store.dispatch(new p.P({destPubkey:this.destinationPubkey,amount:1e3*this.amount}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1,this.qrHops.data=[],this.form.resetForm()}onHopClick(t,e){this.store.dispatch(new st.C({data:{type:f.b.INFORMATION,alertTitle:"Route Information",message:[[{key:"id",value:t.id,title:"ID",width:100,type:f.h.STRING}],[{key:"channel",value:t.channel,title:"Channel",width:50,type:f.h.STRING},{key:"alias",value:t.alias,title:"Peer Alias",width:50,type:f.h.STRING}],[{key:"msatoshi",value:t.msatoshi,title:"mSatoshi",width:50,type:f.h.NUMBER},{key:"amount_msat",value:t.amount_msat,title:"Amount mSat",width:50,type:f.h.STRING}],[{key:"direction",value:t.direction,title:"Direction",width:50,type:f.h.STRING},{key:"delay",value:t.delay,title:"Delay",width:50,type:f.h.NUMBER}]]}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(y.h),o.Pb(Yt.a),o.Pb(x.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-query-routes"]],viewQuery:function(t,e){if(1&t&&(o.Pc(it.a,!0),o.Ec(Fc,!0)),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.form=t.first)}},decls:54,vars:16,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-sub-title-container","mt-2","mb-1"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","channel"],["matColumnDef","direction"],["matColumnDef","delay"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi"],["matColumnDef","amount_msat"],["mat-header-cell","","class","pl-4","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",0),o.Vb(1,"form",1,2),o.dc("ngSubmit",function(){return o.zc(t),o.wc(2).form.valid&&e.onQueryRoutes()}),o.Vb(3,"div",3),o.Qb(4,"fa-icon",4),o.Vb(5,"span"),o.Kc(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),o.Ub(),o.Ub(),o.Vb(7,"mat-form-field",5),o.Vb(8,"input",6,7),o.dc("ngModelChange",function(t){return e.destinationPubkey=t}),o.Ub(),o.Ic(10,kc,2,0,"mat-error",8),o.Ub(),o.Vb(11,"mat-form-field",9),o.Vb(12,"input",10),o.dc("ngModelChange",function(t){return e.amount=t}),o.Ub(),o.Ic(13,Ac,2,0,"mat-error",8),o.Ub(),o.Vb(14,"div",11),o.Vb(15,"button",12),o.dc("click",function(){return e.resetData()}),o.Kc(16,"Clear"),o.Ub(),o.Vb(17,"button",13),o.Kc(18,"Query Route"),o.Ub(),o.Ub(),o.Ub(),o.Vb(19,"div",14),o.Vb(20,"div",15),o.Qb(21,"fa-icon",16),o.Vb(22,"span",17),o.Kc(23,"Transaction Route"),o.Ub(),o.Ub(),o.Ub(),o.Vb(24,"div",18),o.Ic(25,_c,1,0,"mat-progress-bar",19),o.Vb(26,"table",20,21),o.Tb(28,22),o.Ic(29,Pc,2,0,"th",23),o.Ic(30,Tc,2,1,"td",24),o.Sb(),o.Tb(31,25),o.Ic(32,Kc,2,0,"th",23),o.Ic(33,Rc,2,1,"td",24),o.Sb(),o.Tb(34,26),o.Ic(35,Mc,2,0,"th",23),o.Ic(36,Oc,2,1,"td",24),o.Sb(),o.Tb(37,27),o.Ic(38,Ec,2,0,"th",23),o.Ic(39,zc,2,1,"td",24),o.Sb(),o.Tb(40,28),o.Ic(41,Bc,2,0,"th",29),o.Ic(42,Nc,4,3,"td",24),o.Sb(),o.Tb(43,30),o.Ic(44,qc,2,0,"th",29),o.Ic(45,Qc,4,3,"td",24),o.Sb(),o.Tb(46,31),o.Ic(47,Hc,2,0,"th",32),o.Ic(48,jc,2,1,"td",33),o.Sb(),o.Tb(49,34),o.Ic(50,$c,3,0,"th",35),o.Ic(51,Gc,3,0,"td",33),o.Sb(),o.Ic(52,Xc,1,0,"tr",36),o.Ic(53,Wc,1,0,"tr",37),o.Ub(),o.Ub(),o.Ub()}2&t&&(o.Db(4),o.oc("icon",e.faExclamationTriangle),o.Db(4),o.oc("ngModel",e.destinationPubkey),o.Db(2),o.oc("ngIf",!e.destinationPubkey),o.Db(2),o.oc("ngModel",e.amount)("step",1e3)("min",0),o.Db(1),o.oc("ngIf",!e.amount),o.Db(8),o.oc("icon",e.faRoute),o.Db(4),o.oc("ngIf",!0===e.flgLoading[0]),o.Db(1),o.oc("dataSource",e.qrHops)("ngClass",o.sc(14,Jc,"error"===e.flgLoading[0])),o.Db(26),o.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.Db(1),o.oc("matRowDefColumns",e.displayedColumns))},directives:[w.c,w.a,ct.u,ct.n,ct.o,w.b,V.a,K.c,lt.b,ct.c,ct.s,ct.m,ct.p,i.o,ct.q,bt.a,S.a,O.b,at.n,it.a,i.m,I.a,at.c,at.i,at.b,at.k,at.m,K.b,s.a,at.h,it.b,at.a,at.j,at.l],pipes:[i.f],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),t})();var Zc=n("iiaH");function tl(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Message is required."),o.Ub())}let el=(()=>{class t{constructor(t,e,n){this.dataService=t,this.snackBar=e,this.logger=n,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new b.a,new b.a]}ngOnInit(){}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{this.signedMessage=this.message,this.signature=t.zbase})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(t){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+t)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(Zc.a),o.Pb(On.b),o.Pb(g.b))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"form",1,2),o.Vb(3,"mat-form-field",3),o.Vb(4,"textarea",4),o.dc("ngModelChange",function(t){return e.message=t})("keyup",function(){return e.onMessageChange()}),o.Ub(),o.Ic(5,tl,2,0,"mat-error",5),o.Ub(),o.Vb(6,"div",6),o.Vb(7,"button",7),o.dc("click",function(){return e.resetData()}),o.Kc(8,"Clear Field"),o.Ub(),o.Vb(9,"button",8),o.dc("click",function(){return e.onSign()}),o.Kc(10,"Sign"),o.Ub(),o.Ub(),o.Qb(11,"mat-divider",9),o.Vb(12,"div",10),o.Vb(13,"p"),o.Kc(14,"Generated Signature"),o.Ub(),o.Ub(),o.Vb(15,"div",11),o.Kc(16),o.Ub(),o.Vb(17,"div",12),o.Vb(18,"button",13),o.dc("copied",function(t){return e.onCopyField(t)}),o.Kc(19,"Copy Signature"),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(4),o.oc("ngModel",e.message),o.Db(1),o.oc("ngIf",!e.message),o.Db(6),o.oc("inset",!0),o.Db(5),o.Lc(e.signature),o.Db(2),o.oc("payload",e.signature))},directives:[w.c,w.a,w.b,ct.u,ct.n,ct.o,K.c,lt.b,ct.c,rt.a,ct.s,ct.m,ct.p,i.o,S.a,M.a,Ji.a,K.b],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),t})();function nl(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Message is required."),o.Ub())}function il(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Signature is required."),o.Ub())}function al(t,e){1&t&&(o.Vb(0,"p",13),o.Vb(1,"mat-icon",14),o.Kc(2,"close"),o.Ub(),o.Kc(3,"Verification failed, please double check message and signature"),o.Ub())}function ol(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"Pubkey Used"),o.Ub())}function sl(t,e){if(1&t&&(o.Vb(0,"div",20),o.Vb(1,"p"),o.Kc(2),o.Ub(),o.Ub()),2&t){const t=o.hc(2);o.Db(2),o.Lc(null==t.verifyRes?null:t.verifyRes.pubkey)}}function cl(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",21),o.Vb(1,"button",22),o.dc("copied",function(e){return o.zc(t),o.hc(2).onCopyField(e)}),o.Kc(2,"Copy Pubkey"),o.Ub(),o.Ub()}if(2&t){const t=o.hc(2);o.Db(1),o.oc("payload",null==t.verifyRes?null:t.verifyRes.pubkey)}}function ll(t,e){if(1&t&&(o.Vb(0,"div",15),o.Qb(1,"mat-divider",16),o.Vb(2,"div",17),o.Ic(3,ol,2,0,"p",5),o.Ub(),o.Ic(4,sl,3,1,"div",18),o.Ic(5,cl,3,1,"div",19),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("inset",!0),o.Db(2),o.oc("ngIf",t.verifyRes.verified),o.Db(1),o.oc("ngIf",t.verifyRes.verified),o.Db(1),o.oc("ngIf",t.verifyRes.verified)}}let rl=(()=>{class t{constructor(t,e,n){this.dataService=t,this.snackBar=e,this.logger=n,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",verified:null},this.unSubs=[new b.a,new b.a]}ngOnInit(){}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{this.verifyRes=t,this.showVerifyStatus=!0,this.verifiedMessage=this.message,this.verifiedSignature=this.signature})}onChange(){this.verifiedMessage===this.message&&this.verifiedSignature===this.signature||(this.showVerifyStatus=!1,this.verifyRes={pubkey:"",verified:null})}resetData(){this.message="",this.signature="",this.verifyRes=null,this.showVerifyStatus=!1}onCopyField(t){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(Zc.a),o.Pb(On.b),o.Pb(g.b))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"form",1,2),o.Vb(3,"mat-form-field",3),o.Vb(4,"textarea",4),o.dc("ngModelChange",function(t){return e.message=t})("keyup",function(){return e.onChange()}),o.Ub(),o.Ic(5,nl,2,0,"mat-error",5),o.Ub(),o.Vb(6,"mat-form-field",3),o.Vb(7,"input",6,7),o.dc("ngModelChange",function(t){return e.signature=t})("keyup",function(){return e.onChange()}),o.Ub(),o.Ic(9,il,2,0,"mat-error",5),o.Ub(),o.Ic(10,al,4,0,"p",8),o.Vb(11,"div",9),o.Vb(12,"button",10),o.dc("click",function(){return e.resetData()}),o.Kc(13,"Clear Fields"),o.Ub(),o.Vb(14,"button",11),o.dc("click",function(){return e.onVerify()}),o.Kc(15,"Verify"),o.Ub(),o.Ub(),o.Ic(16,ll,6,4,"div",12),o.Ub(),o.Ub()),2&t&&(o.Db(4),o.oc("ngModel",e.message),o.Db(1),o.oc("ngIf",!e.message),o.Db(2),o.oc("ngModel",e.signature),o.Db(2),o.oc("ngIf",!e.signature),o.Db(1),o.oc("ngIf",e.showVerifyStatus&&!e.verifyRes.verified),o.Db(6),o.oc("ngIf",e.showVerifyStatus&&e.verifyRes.verified))},directives:[w.c,w.a,w.b,ct.u,ct.n,ct.o,K.c,lt.b,ct.c,rt.a,ct.s,ct.m,ct.p,i.o,S.a,K.b,L.a,M.a,Ji.a],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),t})();function bl(t,e){if(1&t&&(o.Vb(0,"div",5),o.Kc(1),o.Ub()),2&t){const t=o.hc();o.Db(1),o.Lc(t.errorMessage)}}function dl(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",6),o.Qb(1,"div",7),o.Vb(2,"mat-form-field",8),o.Vb(3,"input",9),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().filterValue=e})("input",function(){return o.zc(t),o.hc().applyFilter()})("keyup",function(){return o.zc(t),o.hc().applyFilter()}),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=o.hc();o.Db(3),o.oc("ngModel",t.filterValue)}}function ul(t,e){1&t&&(o.Vb(0,"th",35),o.Kc(1,"Status"),o.Ub())}function hl(t,e){if(1&t&&(o.Vb(0,"td",36),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(null==t?null:t.status)}}function ml(t,e){1&t&&(o.Vb(0,"th",35),o.Kc(1,"Received Time"),o.Ub())}function fl(t,e){if(1&t&&(o.Vb(0,"td",36),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(null==t?null:t.received_time_str)}}function pl(t,e){1&t&&(o.Vb(0,"th",35),o.Kc(1,"Resolved Time"),o.Ub())}function gl(t,e){if(1&t&&(o.Vb(0,"td",36),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(null==t?null:t.resolved_time_str)}}function yl(t,e){1&t&&(o.Vb(0,"th",35),o.Kc(1,"In Channel"),o.Ub())}function vl(t,e){if(1&t&&(o.Vb(0,"td",36),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc((null==t?null:t.in_channel_alias)||(null==t?null:t.in_channel))}}function xl(t,e){1&t&&(o.Vb(0,"th",35),o.Kc(1,"Out Channel"),o.Ub())}function wl(t,e){if(1&t&&(o.Vb(0,"td",36),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc((null==t?null:t.out_channel_alias)||(null==t?null:t.out_channel))}}function Vl(t,e){1&t&&(o.Vb(0,"th",37),o.Kc(1,"Amount In (Sats)"),o.Ub())}function Ul(t,e){if(1&t&&(o.Vb(0,"td",36),o.Vb(1,"span",38),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.kc(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function Dl(t,e){1&t&&(o.Vb(0,"th",37),o.Kc(1,"Amount Out (Sats)"),o.Ub())}function Cl(t,e){if(1&t&&(o.Vb(0,"td",36),o.Vb(1,"span",38),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.kc(3,1,(null==t?null:t.out_msatoshi)/1e3,(null==t?null:t.out_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function Sl(t,e){1&t&&(o.Vb(0,"th",37),o.Kc(1,"Fee (mSat)"),o.Ub())}function Ll(t,e){if(1&t&&(o.Vb(0,"td",36),o.Vb(1,"span",38),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.jc(3,1,null==t?null:t.fee))}}function Il(t,e){1&t&&(o.Vb(0,"th",39),o.Kc(1,"Payment Hash"),o.Ub())}function Fl(t,e){if(1&t&&(o.Vb(0,"td",40),o.Vb(1,"div"),o.Kc(2),o.ic(3,"slice"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc("",o.lc(3,1,null==t?null:t.payment_hash,0,10),"...")}}function kl(t,e){if(1&t){const t=o.Wb();o.Vb(0,"th",41),o.Vb(1,"div",42),o.Vb(2,"mat-select",43),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",44),o.dc("click",function(){return o.zc(t),o.hc(2).onDownloadCSV()}),o.Kc(5,"Download CSV"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function Al(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",45),o.Vb(1,"button",46),o.dc("click",function(n){o.zc(t);const i=e.$implicit;return o.hc(2).onForwardingEventClick(i,n)}),o.Kc(2,"View Info"),o.Ub(),o.Ub()}}function _l(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No forwarding event available."),o.Ub())}function Pl(t,e){if(1&t&&(o.Vb(0,"td",47),o.Ic(1,_l,2,0,"p",48),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.oc("ngIf",!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)}}const Tl=function(t){return{"display-none":t}};function Kl(t,e){if(1&t&&o.Qb(0,"tr",49),2&t){const t=o.hc(2);o.oc("ngClass",o.sc(1,Tl,(null==t.forwardingHistoryEvents?null:t.forwardingHistoryEvents.data)&&(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)>0))}}function Rl(t,e){1&t&&o.Qb(0,"tr",50)}function Ml(t,e){1&t&&o.Qb(0,"tr",51)}const Ol=function(){return["no_event"]};function El(t,e){if(1&t&&(o.Vb(0,"div",10),o.Vb(1,"table",11,12),o.Tb(3,13),o.Ic(4,ul,2,0,"th",14),o.Ic(5,hl,2,1,"td",15),o.Sb(),o.Tb(6,16),o.Ic(7,ml,2,0,"th",14),o.Ic(8,fl,2,1,"td",15),o.Sb(),o.Tb(9,17),o.Ic(10,pl,2,0,"th",14),o.Ic(11,gl,2,1,"td",15),o.Sb(),o.Tb(12,18),o.Ic(13,yl,2,0,"th",14),o.Ic(14,vl,2,1,"td",15),o.Sb(),o.Tb(15,19),o.Ic(16,xl,2,0,"th",14),o.Ic(17,wl,2,1,"td",15),o.Sb(),o.Tb(18,20),o.Ic(19,Vl,2,0,"th",21),o.Ic(20,Ul,4,4,"td",15),o.Sb(),o.Tb(21,22),o.Ic(22,Dl,2,0,"th",21),o.Ic(23,Cl,4,4,"td",15),o.Sb(),o.Tb(24,23),o.Ic(25,Sl,2,0,"th",21),o.Ic(26,Ll,4,3,"td",15),o.Sb(),o.Tb(27,24),o.Ic(28,Il,2,0,"th",25),o.Ic(29,Fl,4,5,"td",26),o.Sb(),o.Tb(30,27),o.Ic(31,kl,6,0,"th",28),o.Ic(32,Al,3,0,"td",29),o.Sb(),o.Tb(33,30),o.Ic(34,Pl,2,1,"td",31),o.Sb(),o.Ic(35,Kl,1,3,"tr",32),o.Ic(36,Rl,1,0,"tr",33),o.Ic(37,Ml,1,0,"tr",34),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("dataSource",t.forwardingHistoryEvents),o.Db(34),o.oc("matFooterRowDef",o.rc(5,Ol)),o.Db(1),o.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.oc("matRowDefColumns",t.displayedColumns)}}const zl=function(t){return{"error-border":t,"padding-gap-x":!0}};let Bl=(()=>{class t{constructor(t,e,n){this.logger=t,this.commonService=e,this.store=n,this.eventsData=[],this.filterValue="",this.successfulEvents=[],this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.pageSize=f.n,this.pageSizeOptions=f.o,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["in_msatoshi","out_msatoshi","actions"]):this.screenSize===f.q.SM||this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_msatoshi","out_msatoshi","fee","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","resolved_time","in_channel","out_channel","in_msatoshi","out_msatoshi","fee","actions"])}ngOnInit(){this.store.select("cl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{this.eventsData.length<=0&&(this.errorMessage="",t.effectErrors.forEach(t=>{"GetForwardingHistory"===t.action&&(this.errorMessage="object"==typeof t.message?JSON.stringify(t.message):t.message)}),this.successfulEvents=t.forwardingHistory&&t.forwardingHistory.forwarding_events&&t.forwardingHistory.forwarding_events.length>0?this.filterSuccessfulEvents(t.forwardingHistory.forwarding_events):[],this.loadForwardingEventsTable(this.successfulEvents),this.logger.info(t))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadForwardingEventsTable(this.successfulEvents)}ngOnChanges(t){t.eventsData&&(this.eventsData=t.eventsData.currentValue,this.successfulEvents=this.eventsData,this.loadForwardingEventsTable(this.successfulEvents)),t.filterValue&&this.applyFilter()}filterSuccessfulEvents(t){return t.filter(t=>"settled"===t.status)}onForwardingEventClick(t,e){this.store.dispatch(new st.C({data:{type:f.b.INFORMATION,alertTitle:"Event Information",message:[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:f.h.STRING}],[{key:"received_time_str",value:t.received_time_str,title:"Received Time",width:50,type:f.h.DATE_TIME},{key:"resolved_time_str",value:t.resolved_time_str,title:"Resolved Time",width:50,type:f.h.DATE_TIME}],[{key:"in_channel",value:t.in_channel_alias?t.in_channel_alias:t.in_channel,title:"Inbound Channel",width:50,type:f.h.STRING},{key:"out_channel",value:t.out_channel_alias?t.out_channel_alias:t.out_channel,title:"Outbound Channel",width:50,type:f.h.STRING}],[{key:"status",value:"settled"===t.status?"Settled":"Failed",title:"Status",width:50,type:f.h.STRING},{key:"fee",value:t.fee,title:"Fee (mSats)",width:50,type:f.h.NUMBER}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"In (mSats)",width:50,type:f.h.NUMBER},{key:"out_msatoshi",value:t.out_msatoshi,title:"Out (mSats)",width:50,type:f.h.NUMBER}]]}}))}loadForwardingEventsTable(t){this.forwardingHistoryEvents=new at.o([...t]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.forwardingHistoryEvents.paginator=this.paginator,this.forwardingHistoryEvents.filterPredicate=(t,e)=>(t.received_time_str.toLowerCase()+t.resolved_time_str.toLowerCase()+t.in_channel+t.out_channel+t.in_msatoshi/1e3+t.out_msatoshi/1e3+t.fee).includes(e.toLowerCase()),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents.filter=this.filterValue}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(x.a),o.Pb(y.h))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-forwarding-history"]],viewQuery:function(t,e){if(1&t&&(o.Pc(it.a,!0),o.Pc(nt.a,!0)),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.paginator=t.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[o.Cb([{provide:nt.b,useValue:Object(f.y)("Events")}]),o.Bb],decls:5,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass"],["class","p-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","padding-gap-x page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[1,"p-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","received_time"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","out_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","payment_hash"],["mat-header-cell","","class","pl-4","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Ic(1,bl,2,1,"div",1),o.Ic(2,dl,4,1,"div",2),o.Ic(3,El,38,6,"div",3),o.Qb(4,"mat-paginator",4),o.Ub()),2&t&&(o.oc("ngClass",o.sc(7,zl,""!==e.errorMessage)),o.Db(1),o.oc("ngIf",""!==e.errorMessage),o.Db(1),o.oc("ngIf",""===e.errorMessage),o.Db(1),o.oc("ngIf",""===e.errorMessage),o.Db(1),o.oc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[w.c,w.b,i.m,I.a,i.o,nt.a,w.a,K.c,lt.b,ct.c,ct.m,ct.p,O.b,at.n,it.a,at.c,at.i,at.b,at.e,at.g,at.k,at.m,at.h,it.b,at.a,dt.a,dt.c,ht.m,S.a,at.d,at.f,at.j,at.l],pipes:[i.f,i.w],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})();function Nl(t,e){if(1&t&&(o.Vb(0,"div",5),o.Kc(1),o.Ub()),2&t){const t=o.hc();o.Db(1),o.Lc(t.errorMessage)}}function ql(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",6),o.Qb(1,"div",7),o.Vb(2,"mat-form-field",8),o.Vb(3,"input",9),o.dc("keyup",function(e){return o.zc(t),o.hc().applyFilter(e.target)}),o.Ub(),o.Ub(),o.Ub()}}function Ql(t,e){1&t&&(o.Vb(0,"th",35),o.Kc(1,"Status"),o.Ub())}function Hl(t,e){if(1&t&&(o.Vb(0,"td",36),o.Kc(1),o.ic(2,"titlecase"),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(o.jc(2,1,null==t?null:t.status))}}function jl(t,e){1&t&&(o.Vb(0,"th",35),o.Kc(1,"Received Time"),o.Ub())}function $l(t,e){if(1&t&&(o.Vb(0,"td",36),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(null==t?null:t.received_time_str)}}function Gl(t,e){1&t&&(o.Vb(0,"th",35),o.Kc(1,"Resolved Time"),o.Ub())}function Xl(t,e){if(1&t&&(o.Vb(0,"td",36),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(null==t?null:t.resolved_time_str)}}function Wl(t,e){1&t&&(o.Vb(0,"th",35),o.Kc(1,"In Channel"),o.Ub())}function Jl(t,e){if(1&t&&(o.Vb(0,"td",36),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc((null==t?null:t.in_channel_alias)||(null==t?null:t.in_channel))}}function Yl(t,e){1&t&&(o.Vb(0,"th",35),o.Kc(1,"Out Channel"),o.Ub())}function Zl(t,e){if(1&t&&(o.Vb(0,"td",36),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc((null==t?null:t.out_channel_alias)||(null==t?null:t.out_channel))}}function tr(t,e){1&t&&(o.Vb(0,"th",37),o.Kc(1,"Amount In (Sats)"),o.Ub())}function er(t,e){if(1&t&&(o.Vb(0,"td",36),o.Vb(1,"span",38),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.kc(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function nr(t,e){1&t&&(o.Vb(0,"th",37),o.Kc(1,"Amount Out (Sats)"),o.Ub())}function ir(t,e){if(1&t&&(o.Vb(0,"td",36),o.Vb(1,"span",38),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.kc(3,1,(null==t?null:t.out_msatoshi)/1e3,(null==t?null:t.out_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function ar(t,e){1&t&&(o.Vb(0,"th",37),o.Kc(1,"Fee mSat"),o.Ub())}function or(t,e){if(1&t&&(o.Vb(0,"td",36),o.Vb(1,"span",38),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.jc(3,1,null==t?null:t.fee))}}function sr(t,e){1&t&&(o.Vb(0,"th",39),o.Kc(1,"Payment Hash"),o.Ub())}function cr(t,e){if(1&t&&(o.Vb(0,"td",40),o.Vb(1,"div"),o.Kc(2),o.ic(3,"slice"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc("",o.lc(3,1,null==t?null:t.payment_hash,0,10),"...")}}function lr(t,e){if(1&t){const t=o.Wb();o.Vb(0,"th",41),o.Vb(1,"div",42),o.Vb(2,"mat-select",43),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",44),o.dc("click",function(){return o.zc(t),o.hc(2).onDownloadCSV()}),o.Kc(5,"Download CSV"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function rr(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",45),o.Vb(1,"button",46),o.dc("click",function(n){o.zc(t);const i=e.$implicit;return o.hc(2).onForwardingEventClick(i,n)}),o.Kc(2,"View Info"),o.Ub(),o.Ub()}}function br(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No forwarding event available."),o.Ub())}function dr(t,e){if(1&t&&(o.Vb(0,"td",47),o.Ic(1,br,2,0,"p",48),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.oc("ngIf",!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)}}const ur=function(t){return{"display-none":t}};function hr(t,e){if(1&t&&o.Qb(0,"tr",49),2&t){const t=o.hc(2);o.oc("ngClass",o.sc(1,ur,(null==t.forwardingHistoryEvents?null:t.forwardingHistoryEvents.data)&&(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)>0))}}function mr(t,e){1&t&&o.Qb(0,"tr",50)}function fr(t,e){1&t&&o.Qb(0,"tr",51)}const pr=function(){return["no_event"]};function gr(t,e){if(1&t&&(o.Vb(0,"div",10),o.Vb(1,"table",11,12),o.Tb(3,13),o.Ic(4,Ql,2,0,"th",14),o.Ic(5,Hl,3,3,"td",15),o.Sb(),o.Tb(6,16),o.Ic(7,jl,2,0,"th",14),o.Ic(8,$l,2,1,"td",15),o.Sb(),o.Tb(9,17),o.Ic(10,Gl,2,0,"th",14),o.Ic(11,Xl,2,1,"td",15),o.Sb(),o.Tb(12,18),o.Ic(13,Wl,2,0,"th",14),o.Ic(14,Jl,2,1,"td",15),o.Sb(),o.Tb(15,19),o.Ic(16,Yl,2,0,"th",14),o.Ic(17,Zl,2,1,"td",15),o.Sb(),o.Tb(18,20),o.Ic(19,tr,2,0,"th",21),o.Ic(20,er,4,4,"td",15),o.Sb(),o.Tb(21,22),o.Ic(22,nr,2,0,"th",21),o.Ic(23,ir,4,4,"td",15),o.Sb(),o.Tb(24,23),o.Ic(25,ar,2,0,"th",21),o.Ic(26,or,4,3,"td",15),o.Sb(),o.Tb(27,24),o.Ic(28,sr,2,0,"th",25),o.Ic(29,cr,4,5,"td",26),o.Sb(),o.Tb(30,27),o.Ic(31,lr,6,0,"th",28),o.Ic(32,rr,3,0,"td",29),o.Sb(),o.Tb(33,30),o.Ic(34,dr,2,1,"td",31),o.Sb(),o.Ic(35,hr,1,3,"tr",32),o.Ic(36,mr,1,0,"tr",33),o.Ic(37,fr,1,0,"tr",34),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("dataSource",t.forwardingHistoryEvents),o.Db(34),o.oc("matFooterRowDef",o.rc(5,pr)),o.Db(1),o.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.oc("matRowDefColumns",t.displayedColumns)}}const yr=function(t){return{"error-border":t,"padding-gap-x":!0}};let vr=(()=>{class t{constructor(t,e,n){this.logger=t,this.commonService=e,this.store=n,this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.pageSize=f.n,this.pageSizeOptions=f.o,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["status","in_msatoshi","out_msatoshi","actions"]):this.screenSize===f.q.SM||this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["status","in_msatoshi","out_msatoshi","fee","actions"]):(this.flgSticky=!0,this.displayedColumns=["status","received_time","resolved_time","in_channel","out_channel","in_msatoshi","out_msatoshi","fee","actions"])}ngOnInit(){this.store.select("cl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",t.effectErrors.forEach(t=>{"GetForwardingHistory"===t.action&&(this.errorMessage="object"==typeof t.message?JSON.stringify(t.message):t.message)}),this.failedEvents=t.forwardingHistory&&t.forwardingHistory.forwarding_events&&t.forwardingHistory.forwarding_events.length>0?this.filterFailedEvents(t.forwardingHistory.forwarding_events):[],this.loadForwardingEventsTable(this.failedEvents),this.logger.info(t)})}ngAfterViewInit(){this.failedEvents.length>0&&this.loadForwardingEventsTable(this.failedEvents)}filterFailedEvents(t){return t.filter(t=>"settled"!==t.status)}onForwardingEventClick(t,e){this.store.dispatch(new st.C({data:{type:f.b.INFORMATION,alertTitle:"Event Information",message:[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:f.h.STRING}],[{key:"received_time_str",value:t.received_time_str,title:"Received Time",width:50,type:f.h.DATE_TIME},{key:"resolved_time_str",value:t.resolved_time_str,title:"Resolved Time",width:50,type:f.h.DATE_TIME}],[{key:"in_channel",value:t.in_channel_alias?t.in_channel_alias:t.in_channel,title:"Inbound Channel",width:50,type:f.h.STRING},{key:"out_channel",value:t.out_channel_alias?t.out_channel_alias:t.out_channel,title:"Outbound Channel",width:50,type:f.h.STRING}],[{key:"status",value:"settled"===t.status?"Settled":"Unsettled",title:"Status",width:50,type:f.h.STRING},{key:"fee",value:t.fee,title:"Fee (mSats)",width:50,type:f.h.NUMBER}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"In (mSats)",width:50,type:f.h.NUMBER},{key:"out_msatoshi",value:t.out_msatoshi,title:"Out (mSats)",width:50,type:f.h.NUMBER}]]}}))}loadForwardingEventsTable(t){this.forwardingHistoryEvents=new at.o([...t]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.forwardingHistoryEvents.paginator=this.paginator,this.forwardingHistoryEvents.filterPredicate=(t,e)=>(t.status+t.received_time_str+t.resolved_time_str+t.in_channel+t.out_channel+t.in_msatoshi/1e3+t.out_msatoshi/1e3+t.fee).includes(e.toLowerCase()),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Failed-transactions")}applyFilter(t){this.forwardingHistoryEvents.filter=t.value}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(x.a),o.Pb(y.h))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-failed-history"]],viewQuery:function(t,e){if(1&t&&(o.Pc(it.a,!0),o.Pc(nt.a,!0)),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.paginator=t.first)}},features:[o.Cb([{provide:nt.b,useValue:Object(f.y)("Events")}])],decls:5,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass"],["class","p-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","padding-gap-x page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[1,"p-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","received_time"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","out_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","payment_hash"],["mat-header-cell","","class","pl-4","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Ic(1,Nl,2,1,"div",1),o.Ic(2,ql,4,0,"div",2),o.Ic(3,gr,38,6,"div",3),o.Qb(4,"mat-paginator",4),o.Ub()),2&t&&(o.oc("ngClass",o.sc(7,yr,""!==e.errorMessage)),o.Db(1),o.oc("ngIf",""!==e.errorMessage),o.Db(1),o.oc("ngIf",""===e.errorMessage),o.Db(1),o.oc("ngIf",""===e.errorMessage),o.Db(1),o.oc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[w.c,w.b,i.m,I.a,i.o,nt.a,w.a,K.c,lt.b,O.b,at.n,it.a,at.c,at.i,at.b,at.e,at.g,at.k,at.m,at.h,it.b,at.a,dt.a,dt.c,ht.m,S.a,at.d,at.f,at.j,at.l],pipes:[i.x,i.f,i.w],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})();function xr(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",7),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().activeLink=n.link}),o.Kc(1),o.Ub()}if(2&t){const t=e.$implicit,n=o.hc();o.pc("routerLink",t.link),o.oc("active",n.activeLink===t.link),o.Db(1),o.Lc(t.name)}}let wr=(()=>{class t{constructor(t){this.router=t,this.faChartBar=m.f,this.links=[{link:"routingfees",name:"Routing Fees"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){let t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t instanceof a.f)).subscribe(t=>{let e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(a.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-reports"]],decls:10,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Qb(1,"fa-icon",1),o.Vb(2,"span",2),o.Kc(3,"Reports"),o.Ub(),o.Ub(),o.Vb(4,"div",3),o.Vb(5,"mat-card"),o.Vb(6,"mat-card-content",4),o.Vb(7,"nav",5),o.Ic(8,xr,2,3,"div",6),o.Ub(),o.Qb(9,"router-outlet"),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(1),o.oc("icon",e.faChartBar),o.Db(7),o.oc("ngForOf",e.links))},directives:[w.c,w.b,V.a,D.a,D.b,et.e,i.n,a.l,et.d,a.h],styles:[""]}),t})();var Vr=n("2yzq"),Ur=n("LQLF"),Dr=n("Lnru");function Cr(t,e){if(1&t&&(o.Vb(0,"div",8),o.Kc(1),o.ic(2,"number"),o.ic(3,"number"),o.Ub()),2&t){const t=o.hc();o.oc("@fadeIn",t.totalFeeMsat),o.Db(1),o.Nc("",o.kc(2,3,t.totalFeeMsat/1e3||0,"1.0-0")," Sats/",o.jc(3,6,t.filteredEventsBySelectedPeriod.length||0)," Events")}}function Sr(t,e){1&t&&(o.Vb(0,"div",9),o.Kc(1,"No fee report for the selected period"),o.Ub())}function Lr(t,e){if(1&t&&(o.Vb(0,"span"),o.Vb(1,"span",12),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Vb(4,"span",12),o.Kc(5),o.ic(6,"number"),o.Ub(),o.Ub()),2&t){const t=e.model;o.Db(2),o.Mc("Events: ",o.jc(3,2,t.extra.totalEvents||0),""),o.Db(3),o.Mc("Fee: ",o.kc(6,4,t.value||0,"1.0-0"),"")}}function Ir(t,e){if(1&t){const t=o.Wb();o.Vb(0,"ngx-charts-bar-vertical",10),o.dc("select",function(e){return o.zc(t),o.hc().onChartBarSelected(e)})("mouseup",function(e){return o.zc(t),o.hc().onChartMouseUp(e)}),o.Ic(1,Lr,7,7,"ng-template",null,11,o.Jc),o.Ub()}if(2&t){const t=o.hc();o.oc("view",t.view)("results",t.feeReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function Fr(t,e){if(1&t&&o.Qb(0,"rtl-cl-forwarding-history",13),2&t){const t=o.hc();o.oc("eventsData",t.filteredEventsBySelectedPeriod)("filterValue",t.eventFilterValue)}}let kr=(()=>{class t{constructor(t,e,n,i){this.logger=t,this.dataService=e,this.commonService=n,this.store=i,this.reportPeriod=f.p[0],this.secondsInADay=86400,this.events={},this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",this.errorMessage="",this.totalFeeMsat=null,this.today=new Date(Date.now()),this.timezoneOffset=60*this.today.getTimezoneOffset(),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.feeReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===f.q.XS||this.screenSize===f.q.SM),this.store.select("cl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",t.effectErrors.forEach(t=>{"GetForwardingHistory"===t.action&&(this.errorMessage="object"==typeof t.message?JSON.stringify(t.message):t.message)}),this.events=t.forwardingHistory&&t.forwardingHistory.forwarding_events?t.forwardingHistory:{},this.filterForwardingEvents(this.startDate,this.endDate),this.logger.info(t)})}ngAfterViewInit(){const t=this.commonService.getContainerSize();switch(this.screenSize){case f.q.MD:this.screenPaddingX=t.width/10;break;case f.q.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2]}filterForwardingEvents(t,e){const n=Math.round(t.getTime()/1e3)-this.timezoneOffset,i=Math.round(e.getTime()/1e3)-this.timezoneOffset;this.filteredEventsBySelectedPeriod=[],this.feeReportData=[],this.totalFeeMsat=null,this.events&&this.events.forwarding_events&&this.events.forwarding_events.length>0&&(this.events.forwarding_events.forEach(t=>{"settled"===t.status&&t.received_time>=n&&t.received_time0&&"ngx-charts"===t.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(t){this.eventFilterValue=this.reportPeriod===f.p[1]?t.name.toUpperCase()+"/"+this.startDate.getFullYear():t.name.toString().padStart(2,"0")+"/"+f.l[this.startDate.getMonth()].name.toUpperCase()+"/"+this.startDate.getFullYear()}prepareFeeReport(t){const e=Math.round(t.getTime()/1e3)-this.timezoneOffset;let n=[];if(this.reportPeriod===f.p[1]){for(let t=0;t<12;t++)n.push({name:f.l[t].name,value:1e-9,extra:{totalEvents:0}});this.filteredEventsBySelectedPeriod.map(t=>{let e=new Date(1e3*(+t.received_time+this.timezoneOffset)).getMonth();n[e].value=n[e].value+ +t.fee/1e3,n[e].extra.totalEvents=n[e].extra.totalEvents+1,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +t.fee})}else{for(let e=0;e{let i=Math.floor((+t.received_time-e)/this.secondsInADay);n[i].value=n[i].value+ +t.fee/1e3,n[i].extra.totalEvents=n[i].extra.totalEvents+1,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +t.fee})}return n}onSelectionChange(t){const e=t.selDate.getMonth(),n=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===f.p[1]?(this.startDate=new Date(n,0,1,0,0,0),this.endDate=new Date(n,11,31,23,59,59)):(this.startDate=new Date(n,e,1,0,0,0),this.endDate=new Date(n,e,this.getMonthDays(e,n),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(t,e){return 1===t&&e%4==0?f.l[t].days+1:f.l[t].days}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(Zc.a),o.Pb(x.a),o.Pb(y.h))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-fee-report"]],hostBindings:function(t,e){1&t&&o.dc("mouseup",function(t){return e.onChartMouseUp(t)})},decls:9,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],[3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],[3,"eventsData","filterValue",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"rtl-horizontal-scroller",1),o.dc("stepChanged",function(t){return e.onSelectionChange(t)}),o.Ub(),o.Vb(2,"div",2),o.Ic(3,Cr,4,8,"div",3),o.Ic(4,Sr,2,0,"div",4),o.Vb(5,"div",5),o.Ic(6,Ir,3,11,"ngx-charts-bar-vertical",6),o.Ub(),o.Vb(7,"div",5),o.Ic(8,Fr,1,2,"rtl-cl-forwarding-history",7),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(3),o.oc("ngIf",e.feeReportData.length>0&&e.filteredEventsBySelectedPeriod.length>0),o.Db(1),o.oc("ngIf",e.feeReportData.length<=0||e.filteredEventsBySelectedPeriod.length<=0),o.Db(2),o.oc("ngIf",e.feeReportData.length>0&&e.filteredEventsBySelectedPeriod.length>0),o.Db(2),o.oc("ngIf",e.filteredEventsBySelectedPeriod&&e.filteredEventsBySelectedPeriod.length>0))},directives:[w.c,w.b,w.a,Ur.a,i.o,Dr.b,Bl],pipes:[i.f],styles:[""],data:{animation:[Vr.a]}}),t})();var Ar=n("d4ms");function _r(t,e){if(1&t&&(o.Vb(0,"div",10),o.Kc(1),o.ic(2,"number"),o.ic(3,"number"),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Nc(" Paid ",o.kc(2,2,t.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-0")," Sats/",o.jc(3,5,t.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function Pr(t,e){if(1&t&&(o.Vb(0,"div",10),o.Kc(1),o.ic(2,"number"),o.ic(3,"number"),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Nc(" Received ",o.kc(2,2,t.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-0")," Sats/",o.jc(3,5,t.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function Tr(t,e){if(1&t&&(o.Vb(0,"div",8),o.Ic(1,_r,4,7,"div",9),o.Ic(2,Pr,4,7,"div",9),o.Ub()),2&t){const t=o.hc();o.oc("@fadeIn",t.transactionsReportSummary),o.Db(1),o.oc("ngIf",t.transactionsReportSummary.paymentsSelectedPeriod),o.Db(1),o.oc("ngIf",t.transactionsReportSummary.invoicesSelectedPeriod)}}function Kr(t,e){1&t&&(o.Vb(0,"div",11),o.Kc(1,"No transactions report for the selected period"),o.Ub())}function Rr(t,e){if(1&t&&(o.Vb(0,"span",14),o.Kc(1),o.ic(2,"number"),o.ic(3,"number"),o.Ub()),2&t){const t=e.model;o.Db(1),o.Oc("",t.name,": ",o.kc(2,4,t.value||0,"1.0-0"),"/# ","Paid"===t.name?"Payments":"Invoices",": ",o.jc(3,7,(null==t.extra?null:t.extra.total)||0),"")}}function Mr(t,e){if(1&t){const t=o.Wb();o.Vb(0,"ngx-charts-bar-vertical-2d",12),o.dc("select",function(e){return o.zc(t),o.hc().onChartBarSelected(e)})("mouseup",function(e){return o.zc(t),o.hc().onChartMouseUp(e)}),o.Ic(1,Rr,4,9,"ng-template",null,13,o.Jc),o.Ub()}if(2&t){const t=o.hc();o.oc("view",t.view)("results",t.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",t.reportPeriod===t.scrollRanges[0]?2:4)}}function Or(t,e){if(1&t&&o.Qb(0,"rtl-transactions-report-table",15),2&t){const t=o.hc();o.oc("dataList",t.transactionsNonZeroReportData)("dataRange",t.reportPeriod)("filterValue",t.transactionFilterValue)}}let Er=(()=>{class t{constructor(t,e,n){this.dataService=t,this.commonService=e,this.store=n,this.scrollRanges=f.p,this.reportPeriod=f.p[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.timezoneOffset=60*this.today.getTimezoneOffset(),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[],this.transactionsNonZeroReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===f.q.XS||this.screenSize===f.q.SM),this.store.select("cl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{"COMPLETE"===t.initialAPIResponseStatus[0]&&this.dataService.getTransactionsForReport().pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.payments=t.payments,this.invoices=t.invoices,this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()})})}ngAfterViewInit(){const t=this.commonService.getContainerSize();switch(this.screenSize){case f.q.MD:this.screenPaddingX=t.width/10;break;case f.q.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2]}onChartMouseUp(t){"svg"===t.srcElement.tagName&&t.srcElement.classList.length>0&&"ngx-charts"===t.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(t){this.transactionFilterValue=this.reportPeriod===f.p[1]?t.series.toUpperCase()+"/"+this.startDate.getFullYear():t.series.toString().padStart(2,"0")+"/"+f.l[this.startDate.getMonth()].name.toUpperCase()+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(t,e){const n=Math.round(t.getTime()/1e3)-this.timezoneOffset,i=Math.round(e.getTime()/1e3)-this.timezoneOffset;let a=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};let o=this.payments.filter(t=>"complete"===t.status&&t.created_at>=n&&t.created_at"paid"===t.status&&t.paid_at>=n&&t.paid_at{let e=new Date(1e3*(t.created_at+this.timezoneOffset)).getMonth();this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+t.msatoshi_sent,a[e].series[0].value=a[e].series[0].value+t.msatoshi_sent/1e3,a[e].series[0].extra.total=a[e].series[0].extra.total+1}),s.map(t=>{let e=new Date(1e3*(+t.paid_at+this.timezoneOffset)).getMonth();this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+t.msatoshi_received,a[e].series[1].value=a[e].series[1].value+t.msatoshi_received/1e3,a[e].series[1].extra.total=a[e].series[1].extra.total+1})}else{for(let e=0;e{let e=Math.floor((+t.created_at-n)/this.secondsInADay);this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+t.msatoshi_sent,a[e].series[0].value=a[e].series[0].value+t.msatoshi_sent/1e3,a[e].series[0].extra.total=a[e].series[0].extra.total+1}),s.map(t=>{let e=Math.floor((+t.paid_at-n)/this.secondsInADay);this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+t.msatoshi_received,a[e].series[1].value=a[e].series[1].value+t.msatoshi_received/1e3,a[e].series[1].extra.total=a[e].series[1].extra.total+1})}return a}prepareTableData(){return this.transactionsReportData.reduce((t,e)=>e.series[0].value>0||e.series[1].value>0?t.concat({date:e.date,date_str:this.commonService.convertTimestampToDate(e.date.getTime()/1e3),amount_paid:e.series[0].value,num_payments:e.series[0].extra.total,amount_received:e.series[1].value,num_invoices:e.series[1].extra.total}):t,[])}onSelectionChange(t){const e=t.selDate.getMonth(),n=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===f.p[1]?(this.startDate=new Date(n,0,1,0,0,0),this.endDate=new Date(n,11,31,23,59,59)):(this.startDate=new Date(n,e,1,0,0,0),this.endDate=new Date(n,e,this.getMonthDays(e,n),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(t,e){return 1===t&&e%4==0?f.l[t].days+1:f.l[t].days}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(Zc.a),o.Pb(x.a),o.Pb(y.h))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-transactions-report"]],hostBindings:function(t,e){1&t&&o.dc("mouseup",function(t){return e.onChartMouseUp(t)})},decls:9,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],[3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[3,"dataList","dataRange","filterValue",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"rtl-horizontal-scroller",1),o.dc("stepChanged",function(t){return e.onSelectionChange(t)}),o.Ub(),o.Vb(2,"div",2),o.Ic(3,Tr,3,3,"div",3),o.Ic(4,Kr,2,0,"div",4),o.Vb(5,"div",5),o.Ic(6,Mr,3,13,"ngx-charts-bar-vertical-2d",6),o.Ub(),o.Vb(7,"div",5),o.Ic(8,Or,1,3,"rtl-transactions-report-table",7),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(3),o.oc("ngIf",e.transactionsNonZeroReportData.length>0),o.Db(1),o.oc("ngIf",e.transactionsNonZeroReportData.length<=0),o.Db(2),o.oc("ngIf",e.transactionsNonZeroReportData.length>0),o.Db(2),o.oc("ngIf",e.transactionsNonZeroReportData.length>0))},directives:[w.c,w.b,w.a,Ur.a,i.o,Dr.a,Ar.a],pipes:[i.f],styles:[""],data:{animation:[Vr.a]}}),t})();var zr=n("2h+y"),Br=n("0dfH");const Nr=a.k.forChild([{path:"",component:r,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:Kn,canActivate:[zr.b]},{path:"onchain",component:Ni,canActivate:[zr.b],children:[{path:"",pathMatch:"full",redirectTo:"receive"},{path:"receive",component:Ja,canActivate:[zr.b]},{path:"send",component:Ya,data:{sweepAll:!1},canActivate:[zr.b]},{path:"sweep",component:Ya,data:{sweepAll:!0},canActivate:[zr.b]}]},{path:"connections",component:ji,canActivate:[zr.b],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:Uo,canActivate:[zr.b],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:hs,canActivate:[zr.b]},{path:"pending",component:qs,canActivate:[zr.b]}]},{path:"peers",component:Ic,data:{sweepAll:!1},canActivate:[zr.b]}]},{path:"transactions",component:Gi,canActivate:[zr.b],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:bn,canActivate:[zr.b]},{path:"invoices",component:Wt,canActivate:[zr.b]},{path:"queryroutes",component:Yc,canActivate:[zr.b]}]},{path:"messages",component:Ga,canActivate:[zr.b],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:el,canActivate:[zr.b]},{path:"verify",component:rl,canActivate:[zr.b]}]},{path:"routing",component:Wi,canActivate:[zr.b],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:Bl,canActivate:[zr.b]},{path:"failedtransactions",component:vr,canActivate:[zr.b]}]},{path:"reports",component:wr,canActivate:[zr.b],children:[{path:"",pathMatch:"full",redirectTo:"routingfees"},{path:"routingfees",component:kr,canActivate:[zr.b]},{path:"transactions",component:Er,canActivate:[zr.b]}]},{path:"lookups",component:Ia,canActivate:[zr.b]},{path:"rates",component:ja,canActivate:[zr.b]},{path:"**",component:Br.a},{path:"network",redirectTo:"rates"},{path:"wallet",redirectTo:"home"},{path:"backup",redirectTo:"home"}]}]);var qr=n("PCNd");let Qr=(()=>{class t{}return t.\u0275mod=o.Nb({type:t,bootstrap:[r]}),t.\u0275inj=o.Mb({factory:function(e){return new(e||t)},providers:[zr.b],imports:[[i.c,qr.a,Nr]]}),t})()}}]); \ No newline at end of file diff --git a/angular/6.a0ce69bc4fc32a59e836.js b/angular/6.a0ce69bc4fc32a59e836.js new file mode 100644 index 00000000..5613064e --- /dev/null +++ b/angular/6.a0ce69bc4fc32a59e836.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{YoDt:function(t,e,n){"use strict";n.r(e),n.d(e,"ECLModule",function(){return Dl});var a=n("SVse"),i=n("iInd"),o=n("8Y7J"),s=n("BTe0");function c(t,e){1&t&&o.Qb(0,"mat-progress-bar",2)}function l(t,e){1&t&&o.Qb(0,"router-outlet")}let r=(()=>{class t{constructor(t){this.router=t,this.loading=!1,this.router.events.subscribe(t=>{switch(!0){case t instanceof i.e:this.loading=!0;break;case t instanceof i.c:case t instanceof i.b:case t instanceof i.d:this.loading=!1}})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(i.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-root"]],decls:2,vars:2,consts:[["color","primary","mode","indeterminate",4,"ngIf"],[4,"ngIf"],["color","primary","mode","indeterminate"]],template:function(t,e){1&t&&(o.Ic(0,c,1,0,"mat-progress-bar",0),o.Ic(1,l,1,0,"router-outlet",1)),2&t&&(o.oc("ngIf",e.loading),o.Db(1),o.oc("ngIf",!e.loading))},directives:[a.o,s.a,i.l],styles:[""]}),t})();var b=n("XNiG"),d=n("1G5W"),u=n("pLZG"),h=n("twK/"),m=n("wHSu"),f=n("7nzP"),p=n("lF6s"),g=n("cpEJ"),y=n("tqRt"),x=n("7bNT"),v=n("7o2P"),S=n("VDRc"),w=n("Nv++"),D=n("40+f"),V=n("PDjf"),C=n("rJgo"),U=n("Dxy4"),I=n("Tj54"),L=n("ura0");const A=function(t){return{backgroundColor:t}};function F(t,e){if(1&t&&o.Qb(0,"span",6),2&t){const t=o.hc();o.oc("ngStyle",o.sc(1,A,t.information.color))}}function k(t,e){if(1&t&&(o.Vb(0,"div"),o.Vb(1,"h4",1),o.Kc(2,"Color"),o.Ub(),o.Vb(3,"div",2),o.Qb(4,"span",7),o.Kc(5),o.ic(6,"uppercase"),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(4),o.oc("ngStyle",o.sc(4,A,t.information.color)),o.Db(1),o.Mc(" ",o.jc(6,2,t.information.color)," ")}}function P(t,e){if(1&t&&(o.Vb(0,"span",2),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(t)}}let O=(()=>{class t{constructor(t){this.commonService=t,this.chains=[""]}ngOnChanges(){this.chains=[],this.chains.push("Bitcoin "+(this.information.network?this.commonService.titleCase(this.information.network):"Testnet"))}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(v.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[o.Bb],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div"),o.Vb(2,"h4",1),o.Kc(3,"Alias"),o.Ub(),o.Vb(4,"div",2),o.Kc(5),o.Ic(6,F,1,3,"span",3),o.Ub(),o.Ub(),o.Ic(7,k,7,6,"div",4),o.Vb(8,"div"),o.Vb(9,"h4",1),o.Kc(10,"Implementation"),o.Ub(),o.Vb(11,"div",2),o.Kc(12),o.Ub(),o.Ub(),o.Vb(13,"div"),o.Vb(14,"h4",1),o.Kc(15,"Chain"),o.Ub(),o.Ic(16,P,2,1,"span",5),o.Ub(),o.Ub()),2&t&&(o.Db(5),o.Mc(" ",e.information.alias," "),o.Db(1),o.oc("ngIf",!e.showColorFieldSeparately),o.Db(1),o.oc("ngIf",e.showColorFieldSeparately),o.Db(5),o.Lc(e.information.lnImplementation||e.information.version?e.information.lnImplementation+" "+e.information.version:""),o.Db(4),o.oc("ngForOf",e.chains))},directives:[S.c,S.a,S.b,a.o,a.n,a.p,L.b],pipes:[a.y],styles:[""]}),t})(),T=(()=>{class t{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-balances-info"]],inputs:{balances:"balances"},decls:21,vars:11,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div"),o.Vb(2,"h4",1),o.Kc(3,"Lightning"),o.Ub(),o.Vb(4,"div",2),o.Kc(5),o.ic(6,"number"),o.Ub(),o.Qb(7,"mat-progress-bar",3),o.Ub(),o.Vb(8,"div"),o.Vb(9,"h4",1),o.Kc(10,"On-chain"),o.Ub(),o.Vb(11,"div",2),o.Kc(12),o.ic(13,"number"),o.Ub(),o.Qb(14,"mat-progress-bar",3),o.Ub(),o.Vb(15,"div"),o.Vb(16,"h4",1),o.Kc(17,"Total"),o.Ub(),o.Vb(18,"div",2),o.Kc(19),o.ic(20,"number"),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(5),o.Mc("",o.jc(6,5,e.balances.lightning)," Sats"),o.Db(2),o.pc("value",e.balances.lightning/e.balances.total*100),o.Db(5),o.Mc("",o.jc(13,7,e.balances.onchain)," Sats"),o.Db(2),o.pc("value",e.balances.onchain/e.balances.total*100),o.Db(5),o.Mc("",o.jc(20,9,e.balances.total)," Sats"))},directives:[S.c,S.a,S.b,s.a],pipes:[a.f],styles:[""]}),t})();var R=n("Q2Ze"),K=n("ZFy/"),M=n("BSbQ"),E=n("aLe/");function z(t,e){if(1&t&&(o.Vb(0,"div",17),o.Vb(1,"span",18),o.Kc(2),o.ic(3,"slice"),o.Ub(),o.Vb(4,"div",3),o.Vb(5,"mat-hint",19),o.Vb(6,"strong",5),o.Kc(7,"Local:"),o.Ub(),o.Kc(8),o.ic(9,"number"),o.Ub(),o.Vb(10,"mat-hint",20),o.Qb(11,"fa-icon",21),o.Kc(12),o.ic(13,"number"),o.Ub(),o.Vb(14,"mat-hint",22),o.Vb(15,"strong",5),o.Kc(16,"Remote:"),o.Ub(),o.Kc(17),o.ic(18,"number"),o.Ub(),o.Ub(),o.Qb(19,"mat-progress-bar",23),o.Ub()),2&t){const t=e.$implicit,n=o.hc(2);o.Db(1),o.pc("matTooltip",t.alias||t.shortChannelId),o.pc("matTooltipDisabled",(t.alias||t.shortChannelId).length<26),o.Db(1),o.Nc("",o.lc(3,9,(null==t?null:t.alias)||(null==t?null:t.shortChannelId),0,24),"",((null==t?null:t.alias)||(null==t?null:t.shortChannelId)).length>25?"...":"",""),o.Db(6),o.Mc("",o.kc(9,13,(null==t?null:t.toLocal)||0,"1.0-0")," Sats"),o.Db(3),o.oc("icon",n.faBalanceScale),o.Db(1),o.Mc(" (",o.jc(13,16,(null==t?null:t.balancedness)||0),") "),o.Db(5),o.Mc("",o.kc(18,18,(null==t?null:t.toRemote)||0,"1.0-0")," Sats"),o.Db(2),o.pc("value",t.toLocal&&t.toLocal>0?+t.toLocal/(+t.toLocal+ +t.toRemote)*100:0)}}function B(t,e){if(1&t&&(o.Vb(0,"div",15),o.Ic(1,z,20,21,"div",16),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("ngForOf",t.allChannels)}}function q(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",24),o.Kc(1," No channels available. "),o.Vb(2,"button",25),o.dc("click",function(){return o.zc(t),o.hc().goToChannels()}),o.Kc(3,"Open Channel"),o.Ub(),o.Ub()}}let N=(()=>{class t{constructor(t){this.router=t,this.faBalanceScale=m.d,this.faDumbbell=m.l,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/ecl/connections")}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(i.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy"},decls:26,vars:15,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"span",2),o.Kc(3,"Total Capacity"),o.Ub(),o.Vb(4,"div",3),o.Vb(5,"mat-hint",4),o.Vb(6,"strong",5),o.Kc(7,"Local:"),o.Ub(),o.Kc(8),o.ic(9,"number"),o.Ub(),o.Vb(10,"mat-hint",6),o.Qb(11,"fa-icon",7),o.Kc(12),o.ic(13,"number"),o.Ub(),o.Vb(14,"mat-hint",8),o.Vb(15,"strong",5),o.Kc(16,"Remote:"),o.Ub(),o.Kc(17),o.ic(18,"number"),o.Ub(),o.Ub(),o.Qb(19,"mat-progress-bar",9),o.Ub(),o.Vb(20,"div",10),o.Qb(21,"mat-divider",11),o.Ub(),o.Vb(22,"div",12),o.Ic(23,B,2,1,"div",13),o.Ub(),o.Ub(),o.Ic(24,q,4,0,"ng-template",null,14,o.Jc)),2&t){const t=o.wc(25);o.Db(8),o.Mc("",o.kc(9,7,e.channelBalances.localBalance||0,"1.0-0")," Sats"),o.Db(3),o.oc("icon",e.faBalanceScale),o.Db(1),o.Mc(" (",o.jc(13,10,(null==e.channelBalances?null:e.channelBalances.balancedness)||0),") "),o.Db(5),o.Mc("",o.kc(18,12,e.channelBalances.remoteBalance||0,"1.0-0")," Sats"),o.Db(2),o.pc("value",e.channelBalances.localBalance&&e.channelBalances.localBalance>0?+e.channelBalances.localBalance/(+e.channelBalances.localBalance+ +e.channelBalances.remoteBalance)*100:0),o.Db(4),o.oc("ngIf",e.allChannels&&(null==e.allChannels?null:e.allChannels.length)>0)("ngIfElse",t)}},directives:[S.c,S.b,S.a,R.f,w.a,K.a,s.a,M.a,E.b,a.o,a.n,U.a],pipes:[a.f,a.w],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),t})(),H=(()=>{class t{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){if(this.fees.monthly_fee){this.totalFees=[{name:"Monthly",value:this.fees.monthly_fee},{name:"Weekly",value:this.fees.weekly_fee},{name:"Daily ",value:this.fees.daily_fee}];let t=Math.ceil(Math.log(this.fees.monthly_fee+1)/Math.LN10),e=Math.pow(10,t-1);this.maxFeeValue=Math.ceil(this.fees.monthly_fee/e)*e/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-fee-info"]],inputs:{fees:"fees"},features:[o.Bb],decls:38,vars:18,consts:[["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div"),o.Vb(2,"h4",1),o.Kc(3,"Daily"),o.Ub(),o.Vb(4,"div",2),o.Kc(5),o.ic(6,"number"),o.Ub(),o.Ub(),o.Vb(7,"div"),o.Vb(8,"h4",1),o.Kc(9,"Weekly"),o.Ub(),o.Vb(10,"div",2),o.Kc(11),o.ic(12,"number"),o.Ub(),o.Ub(),o.Vb(13,"div"),o.Vb(14,"h4",1),o.Kc(15,"Monthly"),o.Ub(),o.Vb(16,"div",2),o.Kc(17),o.ic(18,"number"),o.Ub(),o.Ub(),o.Ub(),o.Vb(19,"div",0),o.Vb(20,"div"),o.Vb(21,"h4",1),o.Kc(22,"Transactions"),o.Ub(),o.Vb(23,"div",2),o.Kc(24),o.ic(25,"number"),o.Ub(),o.Ub(),o.Vb(26,"div"),o.Vb(27,"h4",1),o.Kc(28,"Transactions"),o.Ub(),o.Vb(29,"div",2),o.Kc(30),o.ic(31,"number"),o.Ub(),o.Ub(),o.Vb(32,"div"),o.Vb(33,"h4",1),o.Kc(34,"Transactions"),o.Ub(),o.Vb(35,"div",2),o.Kc(36),o.ic(37,"number"),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(5),o.Mc("",o.jc(6,6,null==e.fees?null:e.fees.daily_fee)," Sats"),o.Db(6),o.Mc("",o.jc(12,8,null==e.fees?null:e.fees.weekly_fee)," Sats"),o.Db(6),o.Mc("",o.jc(18,10,null==e.fees?null:e.fees.monthly_fee)," Sats"),o.Db(7),o.Lc(o.jc(25,12,null==e.fees?null:e.fees.daily_txs)),o.Db(6),o.Lc(o.jc(31,14,null==e.fees?null:e.fees.weekly_txs)),o.Db(6),o.Lc(o.jc(37,16,null==e.fees?null:e.fees.monthly_txs)))},directives:[S.c,S.a,S.b],pipes:[a.f],styles:[""]}),t})(),Q=(()=>{class t{constructor(){this.channelsStatus={}}ngOnChanges(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus"},features:[o.Bb],decls:41,vars:18,consts:[["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div"),o.Vb(2,"h4",1),o.Kc(3,"Active"),o.Ub(),o.Vb(4,"div",2),o.Qb(5,"span",3),o.Kc(6),o.ic(7,"number"),o.Ub(),o.Ub(),o.Vb(8,"div"),o.Vb(9,"h4",1),o.Kc(10,"Pending"),o.Ub(),o.Vb(11,"div",2),o.Qb(12,"span",4),o.Kc(13),o.ic(14,"number"),o.Ub(),o.Ub(),o.Vb(15,"div"),o.Vb(16,"h4",1),o.Kc(17,"Inactive"),o.Ub(),o.Vb(18,"div",2),o.Qb(19,"span",5),o.Kc(20),o.ic(21,"number"),o.Ub(),o.Ub(),o.Ub(),o.Vb(22,"div",0),o.Vb(23,"div"),o.Vb(24,"h4",1),o.Kc(25,"Capacity"),o.Ub(),o.Vb(26,"div",2),o.Kc(27),o.ic(28,"number"),o.Ub(),o.Ub(),o.Vb(29,"div"),o.Vb(30,"h4",1),o.Kc(31,"Capacity"),o.Ub(),o.Vb(32,"div",2),o.Kc(33),o.ic(34,"number"),o.Ub(),o.Ub(),o.Vb(35,"div"),o.Vb(36,"h4",1),o.Kc(37,"Capacity"),o.Ub(),o.Vb(38,"div",2),o.Kc(39),o.ic(40,"number"),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(6),o.Lc(o.jc(7,6,(null==e.channelsStatus.active?null:e.channelsStatus.active.channels)||0)),o.Db(7),o.Lc(o.jc(14,8,(null==e.channelsStatus.pending?null:e.channelsStatus.pending.channels)||0)),o.Db(7),o.Lc(o.jc(21,10,(null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.channels)||0)),o.Db(7),o.Mc("",o.jc(28,12,(null==e.channelsStatus.active?null:e.channelsStatus.active.capacity)||0)," Sats"),o.Db(6),o.Mc("",o.jc(34,14,(null==e.channelsStatus.pending?null:e.channelsStatus.pending.capacity)||0)," Sats"),o.Db(6),o.Mc("",o.jc(40,16,(null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.capacity)||0)," Sats"))},directives:[S.c,S.a,S.b],pipes:[a.f],styles:[""]}),t})();function j(t,e){if(1&t&&(o.Vb(0,"mat-hint",17),o.Vb(1,"strong",18),o.Kc(2,"Capacity: "),o.Ub(),o.Kc(3),o.ic(4,"number"),o.Ub()),2&t){const t=o.hc().$implicit;o.Db(3),o.Mc("",o.kc(4,1,t.toRemote||0,"1.0-0")," Sats")}}function $(t,e){if(1&t&&(o.Vb(0,"mat-hint",17),o.Vb(1,"strong",18),o.Kc(2,"Capacity: "),o.Ub(),o.Kc(3),o.ic(4,"number"),o.Ub()),2&t){const t=o.hc().$implicit;o.Db(3),o.Mc("",o.kc(4,1,t.toLocal||0,"1.0-0")," Sats")}}function _(t,e){if(1&t&&o.Qb(0,"mat-progress-bar",19),2&t){const t=o.hc().$implicit,e=o.hc(2);o.pc("value",e.totalLiquidity>0?(+t.toRemote||0)/e.totalLiquidity*100:0)}}function J(t,e){if(1&t&&o.Qb(0,"mat-progress-bar",19),2&t){const t=o.hc().$implicit,e=o.hc(2);o.pc("value",e.totalLiquidity>0?(+t.toLocal||0)/e.totalLiquidity*100:0)}}function X(t,e){if(1&t&&(o.Vb(0,"div",12),o.Vb(1,"span",13),o.Kc(2),o.ic(3,"slice"),o.Ub(),o.Vb(4,"div",14),o.Ic(5,j,5,4,"mat-hint",15),o.Ic(6,$,5,4,"mat-hint",15),o.Ub(),o.Ic(7,_,1,1,"mat-progress-bar",16),o.Ic(8,J,1,1,"mat-progress-bar",16),o.Ub()),2&t){const t=e.$implicit,n=o.hc(2);o.Db(1),o.pc("matTooltip",t.alias||t.shortChannelId),o.pc("matTooltipDisabled",(t.alias||t.shortChannelId).length<26),o.Db(1),o.Nc("",o.lc(3,8,t.alias||t.shortChannelId,0,24),"",(t.alias||t.shortChannelId).length>25?"...":"",""),o.Db(3),o.oc("ngIf","In"===n.direction),o.Db(1),o.oc("ngIf","Out"===n.direction),o.Db(1),o.oc("ngIf","In"===n.direction),o.Db(1),o.oc("ngIf","Out"===n.direction)}}function G(t,e){if(1&t&&(o.Vb(0,"div",10),o.Ic(1,X,9,12,"div",11),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("ngForOf",t.allChannels)}}function W(t,e){if(1&t){const t=o.Wb();o.Vb(0,"button",22),o.dc("click",function(){return o.zc(t),o.hc(2).goToChannels()}),o.Kc(1,"Open Channel"),o.Ub()}}function Y(t,e){if(1&t&&(o.Vb(0,"div",20),o.Kc(1," No channels available. "),o.Ic(2,W,2,0,"button",21),o.Ub()),2&t){const t=o.hc();o.Db(2),o.oc("ngIf","Out"===t.direction)}}const Z=function(t,e,n){return{"mb-4":t,"mb-2":e,"mb-1":n}};let tt=(()=>{class t{constructor(t,e){this.router=t,this.commonService=e,this.screenSize="",this.screenSizeEnum=f.q}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/ecl/connections")}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(i.g),o.Pb(v.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels"},decls:14,vars:11,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["fxLayout","column","fxFlex.gt-sm","88","fxFlex","84","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","class","w-100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["fxLayout","column","fxFlex","100",1,"w-100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","100","fxLayoutAlign","start center","class","font-size-90 color-primary",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"span",2),o.Kc(3,"Total Capacity"),o.Ub(),o.Vb(4,"mat-hint",3),o.Kc(5),o.ic(6,"number"),o.Ub(),o.Qb(7,"mat-progress-bar",4),o.Ub(),o.Vb(8,"div",5),o.Qb(9,"mat-divider",6),o.Ub(),o.Vb(10,"div",7),o.Ic(11,G,2,1,"div",8),o.Ub(),o.Ub(),o.Ic(12,Y,3,1,"ng-template",null,9,o.Jc)),2&t){const t=o.wc(13);o.oc("ngClass",o.uc(7,Z,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM,e.screenSize===e.screenSizeEnum.MD,e.screenSize===e.screenSizeEnum.LG||e.screenSize===e.screenSizeEnum.XL)),o.Db(5),o.Mc("",o.kc(6,4,e.totalLiquidity,"1.0-0")," Sats"),o.Db(6),o.oc("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",t)}},directives:[S.c,S.b,S.a,a.m,L.a,R.f,s.a,M.a,E.b,a.o,a.n,K.a,U.a],pipes:[a.f,a.w],styles:[""]}),t})();var et=n("M9ds"),nt=n("5QHs"),at=n("LUZP"),it=n("OaSA"),ot=n("iELJ"),st=n("/uX3"),ct=n("s7LF"),lt=n("e6WT"),rt=n("O4ig"),bt=n("B0X+"),dt=n("ZTz/"),ut=n("UhP/");function ht(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Description is required."),o.Ub())}function mt(t,e){if(1&t&&(o.Vb(0,"mat-option",25),o.Kc(1),o.ic(2,"titlecase"),o.Ub()),2&t){const t=e.$implicit;o.oc("value",t),o.Db(1),o.Lc(o.jc(2,2,t))}}function ft(t,e){if(1&t&&(o.Vb(0,"span"),o.Kc(1),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Lc(t.invoiceError)}}function pt(t,e){if(1&t&&(o.Vb(0,"div",26),o.Qb(1,"fa-icon",27),o.Ic(2,ft,2,1,"span",11),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("icon",t.faExclamationTriangle),o.Db(1),o.oc("ngIf",""!==t.invoiceError)}}let gt=(()=>{class t{constructor(t,e,n,a,i,o){this.dialogRef=t,this.data=e,this.store=n,this.decimalPipe=a,this.commonService=i,this.actions$=o,this.faExclamationTriangle=m.o,this.selNode={},this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=f.n,this.timeUnitEnum=f.v,this.timeUnits=f.t,this.selTimeUnit=f.v.SECS,this.invoiceError="",this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select("ecl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{this.selNode=t.nodeSettings,this.information=t.information}),this.actions$.pipe(Object(d.a)(this.unSubs[1]),Object(u.a)(t=>t.type===p.j||t.type===p.p)).subscribe(t=>{t.type===p.p&&this.dialogRef.close(),t.type===p.j&&"CreateInvoice"===t.payload.action&&(this.invoiceError=t.payload.message)})}onAddInvoice(t){if(this.invoiceError="",!this.description)return!0;let e=this.expiry?this.expiry:3600;this.selTimeUnit!==f.v.SECS&&(e=this.commonService.convertTime(this.expiry,this.selTimeUnit,f.v.SECS));let n=null;n=this.invoiceValue?{description:this.description,expireIn:e,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:e},this.store.dispatch(new st.F("Creating Invoice...")),this.store.dispatch(new p.g(n))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=void 0,this.invoiceValueHint="",this.selTimeUnit=f.v.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,f.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(d.a)(this.unSubs[2])).subscribe(t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,f.f.OTHER)+" "+t.unit}))}onTimeUnitChange(t){this.expiry&&this.selTimeUnit!==t.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,t.value)),this.selTimeUnit=t.value}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(ot.f),o.Pb(ot.a),o.Pb(y.h),o.Pb(a.f),o.Pb(v.a),o.Pb(x.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-create-invoices"]],decls:35,vars:17,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"mt-5px"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","2","name","description","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","tabindex","3","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","30"],["matInput","","placeholder","Expiry","type","number","name","exp","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fxFlex","26"],["tabindex","5","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"mat-card-header",2),o.Vb(3,"div",3),o.Vb(4,"span",4),o.Kc(5,"Create Invoice"),o.Ub(),o.Ub(),o.Vb(6,"button",5),o.Kc(7,"X"),o.Ub(),o.Ub(),o.Vb(8,"mat-card-content",6),o.Vb(9,"form",7,8),o.Vb(11,"mat-form-field",9),o.Vb(12,"input",10),o.dc("ngModelChange",function(t){return e.description=t}),o.Ub(),o.Ic(13,ht,2,0,"mat-error",11),o.Ub(),o.Vb(14,"div",12),o.Vb(15,"mat-form-field",13),o.Vb(16,"input",14),o.dc("ngModelChange",function(t){return e.invoiceValue=t})("keyup",function(){return e.onInvoiceValueChange()}),o.Ub(),o.Vb(17,"span",15),o.Kc(18),o.Ub(),o.Vb(19,"mat-hint"),o.Kc(20),o.Ub(),o.Ub(),o.Vb(21,"mat-form-field",16),o.Vb(22,"input",17),o.dc("ngModelChange",function(t){return e.expiry=t}),o.Ub(),o.Vb(23,"span",15),o.Kc(24),o.ic(25,"titlecase"),o.Ub(),o.Ub(),o.Vb(26,"mat-form-field",18),o.Vb(27,"mat-select",19),o.dc("selectionChange",function(t){return e.onTimeUnitChange(t)}),o.Ic(28,mt,3,4,"mat-option",20),o.Ub(),o.Ub(),o.Ub(),o.Ic(29,pt,3,2,"div",21),o.Vb(30,"div",22),o.Vb(31,"button",23),o.dc("click",function(){return e.resetData()}),o.Kc(32,"Clear Field"),o.Ub(),o.Vb(33,"button",24),o.dc("click",function(){o.zc(t);const n=o.wc(10);return e.onAddInvoice(n)}),o.Kc(34,"Create Invoice"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()}2&t&&(o.Db(6),o.oc("mat-dialog-close",!1),o.Db(6),o.oc("ngModel",e.description),o.Db(1),o.oc("ngIf",!e.description),o.Db(3),o.oc("ngModel",e.invoiceValue)("step",100)("min",1),o.Db(2),o.Mc(" ",null==e.information?null:e.information.smaller_currency_unit," "),o.Db(2),o.Lc(e.invoiceValueHint),o.Db(2),o.oc("ngModel",e.expiry)("step",e.selTimeUnit===e.timeUnitEnum.SECS?300:e.selTimeUnit===e.timeUnitEnum.MINS?10:e.selTimeUnit===e.timeUnitEnum.HOURS?2:1)("min",1),o.Db(2),o.Mc(" ",o.jc(25,15,e.selTimeUnit)," "),o.Db(3),o.oc("value",e.selTimeUnit),o.Db(1),o.oc("ngForOf",e.timeUnits),o.Db(1),o.oc("ngIf",""!==e.invoiceError))},directives:[S.c,S.a,V.c,S.b,U.a,ot.d,V.b,ct.u,ct.n,ct.o,R.c,lt.b,ct.c,rt.a,ct.s,ct.m,ct.p,a.o,ct.q,bt.a,R.g,R.f,dt.a,a.n,R.b,ut.m,w.a],pipes:[a.x],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})();var yt=n("bdpe"),xt=n("mNcL"),vt=n("X9mX");function St(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Description is required."),o.Ub())}function wt(t,e){if(1&t){const t=o.Wb();o.Vb(0,"form",4,5),o.Vb(2,"mat-form-field",6),o.Vb(3,"input",7),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().description=e}),o.Ub(),o.Ic(4,St,2,0,"mat-error",8),o.Ub(),o.Vb(5,"mat-form-field",9),o.Vb(6,"input",10,11),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().invoiceValue=e})("keyup",function(){return o.zc(t),o.hc().onInvoiceValueChange()}),o.Ub(),o.Vb(8,"span",12),o.Kc(9),o.Ub(),o.Vb(10,"mat-hint"),o.Kc(11),o.Ub(),o.Ub(),o.Vb(12,"div",13),o.Vb(13,"button",14),o.dc("click",function(){return o.zc(t),o.hc().resetData()}),o.Kc(14,"Clear Field"),o.Ub(),o.Vb(15,"button",15),o.dc("click",function(){o.zc(t);const e=o.wc(1);return o.hc().onAddInvoice(e)}),o.Kc(16,"Create Invoice"),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=o.hc();o.Db(3),o.oc("ngModel",t.description),o.Db(1),o.oc("ngIf",!t.description),o.Db(2),o.oc("ngModel",t.invoiceValue)("step",100)("min",1),o.Db(3),o.Mc(" ",null==t.information?null:t.information.smaller_currency_unit," "),o.Db(2),o.Lc(t.invoiceValueHint)}}function Dt(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",16),o.Vb(1,"button",17),o.dc("click",function(){return o.zc(t),o.hc().openCreateInvoiceModal()}),o.Kc(2,"Create Invoice"),o.Ub(),o.Ub()}}function Vt(t,e){1&t&&o.Qb(0,"mat-progress-bar",47)}function Ct(t,e){1&t&&(o.Vb(0,"th",48),o.Kc(1," Date Created "),o.Ub())}const Ut=function(t){return{"mr-0":t}};function It(t,e){if(1&t&&o.Qb(0,"span",53),2&t){const t=o.hc(3);o.oc("ngClass",o.sc(1,Ut,t.screenSize===t.screenSizeEnum.XS))}}function Lt(t,e){if(1&t&&o.Qb(0,"span",54),2&t){const t=o.hc(3);o.oc("ngClass",o.sc(1,Ut,t.screenSize===t.screenSizeEnum.XS))}}function At(t,e){if(1&t&&o.Qb(0,"span",55),2&t){const t=o.hc(3);o.oc("ngClass",o.sc(1,Ut,t.screenSize===t.screenSizeEnum.XS))}}function Ft(t,e){if(1&t&&(o.Vb(0,"td",49),o.Ic(1,It,1,3,"span",50),o.Ic(2,Lt,1,3,"span",51),o.Ic(3,At,1,3,"span",52),o.Kc(4),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.oc("ngIf","received"===t.status),o.Db(1),o.oc("ngIf","unpaid"===t.status),o.Db(1),o.oc("ngIf","expired"===t.status||"unknown"===t.status),o.Db(1),o.Mc(" ",t.timestampStr," ")}}function kt(t,e){1&t&&(o.Vb(0,"th",48),o.Kc(1," Date Settled "),o.Ub())}function Pt(t,e){if(1&t&&(o.Vb(0,"td",49),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(t.receivedAtStr||"-")}}function Ot(t,e){1&t&&(o.Vb(0,"th",48),o.Kc(1," Description "),o.Ub())}const Tt=function(t){return{"max-width":t}};function Rt(t,e){if(1&t&&(o.Vb(0,"td",49),o.Vb(1,"div",56),o.Vb(2,"span",57),o.Kc(3),o.Ub(),o.Ub(),o.Ub()),2&t){const t=e.$implicit,n=o.hc(2);o.Db(1),o.oc("ngStyle",o.sc(2,Tt,n.screenSize===n.screenSizeEnum.XS?"10rem":"32rem")),o.Db(2),o.Lc(t.description)}}function Kt(t,e){1&t&&(o.Vb(0,"th",58),o.Kc(1," Amount (Sats) "),o.Ub())}function Mt(t,e){if(1&t&&(o.Vb(0,"td",59),o.Vb(1,"span",60),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",t.amount?o.kc(3,1,t.amount,"1.0-0"):"-","")}}function Et(t,e){1&t&&(o.Vb(0,"th",58),o.Kc(1," Amount Settled (Sats) "),o.Ub())}function zt(t,e){if(1&t&&(o.Vb(0,"td",59),o.Vb(1,"span",60),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",t.amountSettled?o.kc(3,1,t.amountSettled,"1.0-0"):"-","")}}function Bt(t,e){if(1&t){const t=o.Wb();o.Vb(0,"th",61),o.Vb(1,"div",62),o.Vb(2,"mat-select",63),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",64),o.dc("click",function(){return o.zc(t),o.hc(2).onDownloadCSV()}),o.Kc(5,"Download CSV"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}const qt=function(t){return{"px-3":t}};function Nt(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",65),o.Vb(1,"button",66),o.dc("click",function(n){o.zc(t);const a=e.$implicit;return o.hc(2).onInvoiceClick(a,n)}),o.Kc(2,"View Info"),o.Ub(),o.Ub()}if(2&t){const t=o.hc(2);o.oc("ngClass",o.sc(1,qt,t.screenSize!==t.screenSizeEnum.XS))}}function Ht(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No invoices available."),o.Ub())}function Qt(t,e){if(1&t&&(o.Vb(0,"td",67),o.Ic(1,Ht,2,0,"p",8),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.oc("ngIf",!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)}}const jt=function(t){return{"display-none":t}};function $t(t,e){if(1&t&&o.Qb(0,"tr",68),2&t){const t=o.hc(2);o.oc("ngClass",o.sc(1,jt,(null==t.invoices?null:t.invoices.data)&&(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)>0))}}function _t(t,e){1&t&&o.Qb(0,"tr",69)}function Jt(t,e){if(1&t&&o.Qb(0,"tr",70),2&t){const t=e.$implicit,n=o.hc(2);o.oc("@newlyAddedRowAnimation",t.label==n.newlyAddedInvoiceMemo&&t.value==n.newlyAddedInvoiceValue&&n.flgAnimate?"added":"notAdded")}}const Xt=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},Gt=function(){return["no_invoice"]};function Wt(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",18),o.Vb(1,"div",19),o.Vb(2,"div",20),o.Qb(3,"fa-icon",21),o.Vb(4,"span",22),o.Kc(5,"Invoices History"),o.Ub(),o.Ub(),o.Vb(6,"mat-form-field",23),o.Vb(7,"input",24),o.dc("keyup",function(e){return o.zc(t),o.hc().applyFilter(e.target)}),o.Ub(),o.Ub(),o.Ub(),o.Vb(8,"div",25),o.Ic(9,Vt,1,0,"mat-progress-bar",26),o.Vb(10,"table",27,28),o.Tb(12,29),o.Ic(13,Ct,2,0,"th",30),o.Ic(14,Ft,5,4,"td",31),o.Sb(),o.Tb(15,32),o.Ic(16,kt,2,0,"th",30),o.Ic(17,Pt,2,1,"td",31),o.Sb(),o.Tb(18,33),o.Ic(19,Ot,2,0,"th",30),o.Ic(20,Rt,4,4,"td",31),o.Sb(),o.Tb(21,34),o.Ic(22,Kt,2,0,"th",35),o.Ic(23,Mt,4,4,"td",36),o.Sb(),o.Tb(24,37),o.Ic(25,Et,2,0,"th",35),o.Ic(26,zt,4,4,"td",36),o.Sb(),o.Tb(27,38),o.Ic(28,Bt,6,0,"th",39),o.Ic(29,Nt,3,3,"td",40),o.Sb(),o.Tb(30,41),o.Ic(31,Qt,2,1,"td",42),o.Sb(),o.Ic(32,$t,1,3,"tr",43),o.Ic(33,_t,1,0,"tr",44),o.Ic(34,Jt,1,1,"tr",45),o.Ub(),o.Ub(),o.Qb(35,"mat-paginator",46),o.Ub()}if(2&t){const t=o.hc();o.Db(3),o.oc("icon",t.faHistory),o.Db(6),o.oc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.oc("dataSource",t.invoices)("ngClass",o.sc(11,Xt,"error"===t.flgLoading[0])),o.Db(22),o.oc("matFooterRowDef",o.rc(13,Gt)),o.Db(1),o.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.oc("matRowDefColumns",t.displayedColumns),o.Db(1),o.oc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Yt=(()=>{class t{constructor(t,e,n,a,i){this.logger=t,this.store=e,this.decimalPipe=n,this.commonService=a,this.rtlEffects=i,this.calledFrom="transactions",this.faHistory=m.r,this.selNode={},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.flgAnimate=!0,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoiceJSONArr=[],this.information={},this.flgLoading=[!0],this.flgSticky=!1,this.pageSize=f.n,this.pageSizeOptions=f.o,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","actions"]):this.screenSize===f.q.SM||this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","amountSettled","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","receivedAt","description","amount","amountSettled","actions"])}ngOnInit(){this.store.dispatch(new p.x),this.store.select("ecl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{t.effectErrors.forEach(t=>{"FetchInvoices"===t.action&&(this.flgLoading[0]="error")}),this.selNode=t.nodeSettings,this.information=t.information,this.invoiceJSONArr=t.invoices&&t.invoices.length>0?t.invoices:[],this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.loadInvoicesTable(this.invoiceJSONArr),setTimeout(()=>{this.flgAnimate=!1},5e3),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!t.invoices),this.logger.info(t)})}openCreateInvoiceModal(){this.store.dispatch(new st.C({data:{pageSize:this.pageSize,component:gt}}))}onAddInvoice(t){if(!this.description)return!0;let e=this.expiry?this.expiry:3600;this.flgAnimate=!0,this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue;let n=null;n=this.invoiceValue?{description:this.description,expireIn:e,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:e},this.store.dispatch(new st.F("Creating Invoice...")),this.store.dispatch(new p.g(n)),this.resetData()}onInvoiceClick(t,e){this.store.dispatch(new st.C({data:{invoice:t,newlyAdded:!1,component:yt.a}}))}loadInvoicesTable(t){this.invoices=new it.o([...t]),this.invoices.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.invoices.sort=this.sort,this.invoices.paginator=this.paginator}resetData(){this.description="",this.invoiceValue=null,this.expiry=null,this.invoiceValueHint=""}applyFilter(t){this.invoices.filter=t.value}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,f.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,f.f.OTHER)+" "+t.unit}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(y.h),o.Pb(a.f),o.Pb(v.a),o.Pb(vt.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-lightning-invoices"]],viewQuery:function(t,e){if(1&t&&(o.Pc(at.a,!0),o.Pc(nt.a,!0)),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.paginator=t.first)}},inputs:{calledFrom:"calledFrom"},features:[o.Cb([{provide:nt.b,useValue:Object(f.y)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["matInput","","placeholder","Description","tabindex","2","name","description","required","true",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","3","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["invcVal","ngModel"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","9","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","receivedAt"],["matColumnDef","description"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pr-3",4,"matCellDef"],["matColumnDef","amountSettled"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Received","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Received","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red",3,"ngClass"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pr-3"],["mat-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Ic(1,wt,17,7,"form",1),o.Ic(2,Dt,3,0,"div",2),o.Ic(3,Wt,36,14,"div",3),o.Ub()),2&t&&(o.Db(1),o.oc("ngIf","home"===e.calledFrom),o.Db(1),o.oc("ngIf","transactions"===e.calledFrom),o.Db(1),o.oc("ngIf","transactions"===e.calledFrom))},directives:[S.c,S.a,S.b,a.o,ct.u,ct.n,ct.o,R.c,lt.b,ct.c,ct.s,ct.m,ct.p,ct.q,bt.a,R.g,R.f,U.a,R.b,w.a,E.b,it.n,at.a,a.m,L.a,it.c,it.i,it.b,it.e,it.g,it.k,it.m,nt.a,s.a,it.h,at.b,it.a,K.a,a.p,L.b,dt.a,dt.c,ut.m,it.d,it.f,it.j,it.l],pipes:[a.f],styles:[".mat-column-description[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"],data:{animation:[xt.a]}}),t})();var Zt=n("cp0P"),te=n("IzEk"),ee=n("D9sq"),ne=n("iiaH");const ae=["paymentReq"];function ie(t,e){if(1&t&&(o.Vb(0,"mat-hint"),o.Kc(1),o.Ub()),2&t){const t=o.hc();o.Db(1),o.Lc(t.paymentDecodedHint)}}function oe(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Payment request is required."),o.Ub())}function se(t,e){if(1&t&&(o.Vb(0,"mat-error"),o.Kc(1),o.Ub()),2&t){const t=o.hc();o.Db(1),o.Lc(t.paymentDecodedHint)}}function ce(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Payment amount is required."),o.Ub())}function le(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-form-field",9),o.Vb(1,"input",18,19),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().paymentAmount=e})("change",function(e){return o.zc(t),o.hc().onAmountChange(e)}),o.Ub(),o.Vb(3,"mat-hint"),o.Kc(4,"It is a zero amount invoice, enter amount to be paid."),o.Ub(),o.Ic(5,ce,2,0,"mat-error",12),o.Ub()}if(2&t){const t=o.hc();o.Db(1),o.oc("ngModel",t.paymentAmount),o.Db(4),o.oc("ngIf",!t.paymentAmount)}}function re(t,e){if(1&t&&(o.Vb(0,"span"),o.Kc(1),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Lc(t.paymentError)}}function be(t,e){if(1&t&&(o.Vb(0,"div",20),o.Qb(1,"fa-icon",21),o.Ic(2,re,2,1,"span",12),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("icon",t.faExclamationTriangle),o.Db(1),o.oc("ngIf",""!==t.paymentError)}}let de=(()=>{class t{constructor(t,e,n,a,i,o,s,c){this.dialogRef=t,this.store=e,this.eclEffects=n,this.logger=a,this.commonService=i,this.decimalPipe=o,this.actions$=s,this.dataService=c,this.faExclamationTriangle=m.o,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=f.i[0],this.feeLimitTypes=f.i,this.paymentError="",this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){this.store.select("ecl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{this.selNode=t.nodeSettings,this.activeChannels=t.activeChannels,this.logger.info(t)}),this.actions$.pipe(Object(d.a)(this.unSubs[1]),Object(u.a)(t=>t.type===p.j||t.type===p.S)).subscribe(t=>{t.type===p.S&&this.dialogRef.close(),t.type===p.j&&"SendPayment"===t.payload.action&&(delete this.paymentDecoded.amount,this.paymentError=t.payload.message)})}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():(this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.paymentReq.control.setErrors(null),this.dataService.decodePayment(this.paymentRequest,!0).pipe(Object(te.a)(1)).subscribe(t=>{this.paymentDecoded=t,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.commonService.convertCurrency(+this.paymentDecoded.amount,f.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(d.a)(this.unSubs[2])).subscribe(t=>{this.paymentDecodedHint=this.selNode.fiatConversion?"Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+t.symbol+this.decimalPipe.transform(t.OTHER?t.OTHER:0,f.f.OTHER)+") | Memo: "+this.paymentDecoded.description:"Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description}))},t=>{this.logger.error(t),this.paymentDecodedHint="ERROR: "+(t.message?t.message:"string"==typeof t?t:JSON.stringify(t)),this.paymentReq.control.setErrors({decodeError:!0})}))}sendPayment(){this.store.dispatch(new st.F("Sending Payment...")),this.store.dispatch(new p.nb(this.zeroAmtInvoice?{invoice:this.paymentRequest,amountMsat:1e3*this.paymentAmount,fromDialog:!0}:{invoice:this.paymentRequest,fromDialog:!0}))}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.dataService.decodePayment(this.paymentRequest,!0).pipe(Object(te.a)(1)).subscribe(t=>{this.paymentDecoded=t,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.commonService.convertCurrency(+this.paymentDecoded.amount,f.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(d.a)(this.unSubs[3])).subscribe(t=>{this.paymentDecodedHint=this.selNode.fiatConversion?"Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+t.symbol+this.decimalPipe.transform(t.OTHER?t.OTHER:0,f.f.OTHER)+") | Memo: "+this.paymentDecoded.description:"Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description}))},t=>{this.logger.error(t),this.paymentDecodedHint="ERROR: "+(t.message?t.message:"string"==typeof t?t:JSON.stringify(t)),this.paymentReq.control.setErrors({decodeError:!0})}))}onAmountChange(t){delete this.paymentDecoded.amount,this.paymentDecoded.amount=t}resetData(){this.paymentDecoded={},this.paymentRequest="",this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=f.i[0],this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(ot.f),o.Pb(y.h),o.Pb(ee.a),o.Pb(g.b),o.Pb(v.a),o.Pb(a.f),o.Pb(x.a),o.Pb(ne.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-lightning-send-payments"]],viewQuery:function(t,e){if(1&t&&o.Pc(ae,!0),2&t){let t;o.vc(t=o.ec())&&(e.paymentReq=t.first)}},decls:24,vars:7,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"mt-5px"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["sendPaymentForm","ngForm"],["fxFlex","100"],["autoFocus","","matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"mat-card-header",2),o.Vb(3,"div",3),o.Vb(4,"span",4),o.Kc(5,"Send Payment"),o.Ub(),o.Ub(),o.Vb(6,"button",5),o.Kc(7,"X"),o.Ub(),o.Ub(),o.Vb(8,"mat-card-content",6),o.Vb(9,"form",7,8),o.Vb(11,"mat-form-field",9),o.Vb(12,"textarea",10,11),o.dc("ngModelChange",function(t){return e.onPaymentRequestEntry(t)})("matTextareaAutosize",function(){return!0}),o.Ub(),o.Ic(14,ie,2,1,"mat-hint",12),o.Ic(15,oe,2,0,"mat-error",12),o.Ic(16,se,2,1,"mat-error",12),o.Ub(),o.Ic(17,le,6,2,"mat-form-field",13),o.Ic(18,be,3,2,"div",14),o.Vb(19,"div",15),o.Vb(20,"button",16),o.dc("click",function(){return e.resetData()}),o.Kc(21,"Clear Fields"),o.Ub(),o.Vb(22,"button",17),o.dc("click",function(){return e.onSendPayment()}),o.Kc(23,"Send Payment"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=o.wc(13);o.Db(6),o.oc("mat-dialog-close",!1),o.Db(6),o.oc("ngModel",e.paymentRequest),o.Db(2),o.oc("ngIf",e.paymentRequest&&""!==e.paymentDecodedHint),o.Db(1),o.oc("ngIf",!e.paymentRequest),o.Db(1),o.oc("ngIf",null==t.errors?null:t.errors.decodeError),o.Db(1),o.oc("ngIf",e.zeroAmtInvoice),o.Db(1),o.oc("ngIf",""!==e.paymentError)}},directives:[S.c,S.a,V.c,S.b,U.a,ot.d,V.b,ct.u,ct.n,ct.o,R.c,lt.b,ct.c,lt.d,rt.a,ct.s,ct.m,ct.p,a.o,R.f,R.b,w.a],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),t})();var ue=n("o4Yh");const he=["scrollContainer"];function me(t,e){if(1&t&&(o.Vb(0,"div",9),o.Vb(1,"div",15),o.Vb(2,"h4",11),o.Kc(3,"Description"),o.Ub(),o.Vb(4,"span",12),o.Kc(5),o.Ub(),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(5),o.Lc(t.description)}}function fe(t,e){1&t&&o.Qb(0,"mat-divider",14)}function pe(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-expansion-panel",24),o.dc("opened",function(){return o.zc(t),o.hc().onExpansionOpen(!0)})("closed",function(){return o.zc(t),o.hc().onExpansionOpen(!1)}),o.Vb(1,"mat-expansion-panel-header"),o.Vb(2,"mat-panel-title"),o.Vb(3,"h4",25),o.Kc(4),o.Ub(),o.Vb(5,"h4",26),o.Kc(6),o.ic(7,"number"),o.Ub(),o.Ub(),o.Ub(),o.Vb(8,"div",8),o.Vb(9,"div",9),o.Vb(10,"div",27),o.Vb(11,"h4",11),o.Kc(12,"Fees (mSats)"),o.Ub(),o.Vb(13,"span",12),o.Kc(14),o.ic(15,"number"),o.Ub(),o.Ub(),o.Vb(16,"div",27),o.Vb(17,"h4",11),o.Kc(18,"Date/Time"),o.Ub(),o.Vb(19,"span",12),o.Kc(20),o.Ub(),o.Ub(),o.Ub(),o.Qb(21,"mat-divider",14),o.Vb(22,"div",9),o.Vb(23,"div",15),o.Vb(24,"h4",11),o.Kc(25,"ID"),o.Ub(),o.Vb(26,"span",28),o.Kc(27),o.Ub(),o.Ub(),o.Ub(),o.Qb(28,"mat-divider",14),o.Vb(29,"div",9),o.Vb(30,"div",15),o.Vb(31,"h4",11),o.Kc(32,"To Channel"),o.Ub(),o.Vb(33,"span",28),o.Kc(34),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=e.$implicit,n=e.index,a=o.hc();o.oc("expanded",a.expansionOpen),o.Db(4),o.Mc("Part ",n+1,""),o.Db(2),o.Mc("",o.jc(7,7,t.amount)," (Sats)"),o.Db(8),o.Lc(o.jc(15,9,t.feesPaid)),o.Db(6),o.Lc(t.timestampStr),o.Db(7),o.Lc(t.id),o.Db(7),o.Lc(t.toChannelAlias)}}let ge=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.description=null,this.shouldScroll=!0,this.expansionOpen=!0}ngOnInit(){this.payment=this.data.payment,this.data.sentPaymentInfo.length>0&&this.data.sentPaymentInfo[0].paymentRequest&&this.data.sentPaymentInfo[0].paymentRequest.description&&""!==this.data.sentPaymentInfo[0].paymentRequest.description&&(this.description=this.data.sentPaymentInfo[0].paymentRequest.description)}ngAfterViewChecked(){this.shouldScroll=this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+62.6}onExpansionOpen(t){this.expansionOpen=t}onClose(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(ot.f),o.Pb(ot.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-payment-information"]],viewQuery:function(t,e){if(1&t&&o.Pc(he,!0),2&t){let t;o.vc(t=o.ec())&&(e.scrollContainer=t.first)}},decls:65,vars:12,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"padding-gap-large","pl-3"],["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,"mt-5px","mb-0","pr-2","h-40",3,"perfectScrollbar"],["scrollContainer",""],["fxLayout","column"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],["fxFlex","70"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],["class","flat-expansion-panel my-1",3,"expanded","opened","closed",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-1"],["fxLayoutAlign","center center","tabindex","1","mat-stroked-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],[1,"flat-expansion-panel","my-1",3,"expanded","opened","closed"],["fxFlex","30","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","70","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"mat-card-header",2),o.Vb(3,"div",3),o.Vb(4,"span",4),o.Kc(5,"Payment Information"),o.Ub(),o.Ub(),o.Vb(6,"button",5),o.dc("click",function(){return e.onClose()}),o.Kc(7,"X"),o.Ub(),o.Ub(),o.Vb(8,"mat-card-content",6,7),o.Vb(10,"div",8),o.Vb(11,"div",9),o.Vb(12,"div",10),o.Vb(13,"h4",11),o.Kc(14,"Amount (Sats)"),o.Ub(),o.Vb(15,"span",12),o.Kc(16),o.ic(17,"number"),o.Ub(),o.Ub(),o.Vb(18,"div",13),o.Vb(19,"h4",11),o.Kc(20,"Date/Time"),o.Ub(),o.Vb(21,"span",12),o.Kc(22),o.Ub(),o.Ub(),o.Ub(),o.Qb(23,"mat-divider",14),o.Vb(24,"div",9),o.Vb(25,"div",15),o.Vb(26,"h4",11),o.Kc(27,"ID"),o.Ub(),o.Vb(28,"span",12),o.Kc(29),o.Ub(),o.Ub(),o.Ub(),o.Qb(30,"mat-divider",14),o.Vb(31,"div",9),o.Vb(32,"div",15),o.Vb(33,"h4",11),o.Kc(34,"Payment Hash"),o.Ub(),o.Vb(35,"span",12),o.Kc(36),o.Ub(),o.Ub(),o.Ub(),o.Qb(37,"mat-divider",14),o.Vb(38,"div",9),o.Vb(39,"div",15),o.Vb(40,"h4",11),o.Kc(41,"Payment Preimage"),o.Ub(),o.Vb(42,"span",12),o.Kc(43),o.Ub(),o.Ub(),o.Ub(),o.Qb(44,"mat-divider",14),o.Vb(45,"div",9),o.Vb(46,"div",15),o.Vb(47,"h4",11),o.Kc(48,"Recipient Node"),o.Ub(),o.Vb(49,"span",12),o.Kc(50),o.Ub(),o.Ub(),o.Ub(),o.Qb(51,"mat-divider",14),o.Ic(52,me,6,1,"div",16),o.Ic(53,fe,1,0,"mat-divider",17),o.Vb(54,"div",9),o.Vb(55,"div",15),o.Vb(56,"mat-accordion"),o.Ic(57,pe,35,11,"mat-expansion-panel",18),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(58,"div",19),o.Vb(59,"button",20),o.dc("click",function(){return e.onScrollDown()}),o.Vb(60,"mat-icon",21),o.Kc(61,"arrow_downward"),o.Ub(),o.Ub(),o.Ub(),o.Vb(62,"div",22),o.Vb(63,"button",23),o.Kc(64,"OK"),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(16),o.Lc(o.jc(17,10,e.payment.recipientAmount)),o.Db(6),o.Lc(e.payment.firstPartTimestampStr),o.Db(7),o.Lc(e.payment.id),o.Db(7),o.Lc(e.payment.paymentHash),o.Db(7),o.Lc(e.payment.paymentPreimage),o.Db(7),o.Lc(e.payment.recipientNodeAlias),o.Db(2),o.oc("ngIf",e.description),o.Db(1),o.oc("ngIf",e.description),o.Db(4),o.oc("ngForOf",e.payment.parts),o.Db(6),o.oc("mat-dialog-close",!1))},directives:[S.c,S.b,S.a,V.c,U.a,V.b,E.b,M.a,a.o,ue.a,a.n,I.a,ot.d,ue.c,ue.e,ue.f],pipes:[a.f],styles:[""]}),t})();const ye=["sendPaymentForm"];function xe(t,e){if(1&t&&(o.Vb(0,"mat-hint"),o.Kc(1),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Lc(t.paymentDecodedHint)}}function ve(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Payment request is required."),o.Ub())}function Se(t,e){if(1&t){const t=o.Wb();o.Vb(0,"form",4,5),o.Vb(2,"mat-form-field",6),o.Vb(3,"textarea",7,8),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().onPaymentRequestEntry(e)})("matTextareaAutosize",function(){return!0}),o.Ub(),o.Ic(5,xe,2,1,"mat-hint",9),o.Ic(6,ve,2,0,"mat-error",9),o.Ub(),o.Vb(7,"div",10),o.Vb(8,"button",11),o.dc("click",function(){return o.zc(t),o.hc().resetData()}),o.Kc(9,"Clear Field"),o.Ub(),o.Vb(10,"button",12),o.dc("click",function(){return o.zc(t),o.hc().onSendPayment()}),o.Kc(11,"Send Payment"),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=o.hc();o.Db(3),o.oc("ngModel",t.paymentRequest),o.Db(2),o.oc("ngIf",t.paymentRequest&&""!==t.paymentDecodedHint),o.Db(1),o.oc("ngIf",!t.paymentRequest)}}function we(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",13),o.Vb(1,"button",12),o.dc("click",function(){return o.zc(t),o.hc().openSendPaymentModal()}),o.Kc(2,"Send Payment"),o.Ub(),o.Ub()}}function De(t,e){1&t&&o.Qb(0,"mat-progress-bar",48)}function Ve(t,e){1&t&&(o.Vb(0,"th",49),o.Kc(1,"Date/Time"),o.Ub())}function Ce(t,e){if(1&t&&(o.Vb(0,"td",50),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(null==t?null:t.firstPartTimestampStr)}}function Ue(t,e){1&t&&(o.Vb(0,"th",49),o.Kc(1,"ID"),o.Ub())}const Ie=function(t){return{"max-width":t}};function Le(t,e){if(1&t&&(o.Vb(0,"td",50),o.Vb(1,"div",51),o.Vb(2,"span",52),o.Kc(3),o.Ub(),o.Ub(),o.Ub()),2&t){const t=e.$implicit,n=o.hc(2);o.Db(1),o.oc("ngStyle",o.sc(2,Ie,n.screenSize===n.screenSizeEnum.XS?"10rem":"22rem")),o.Db(2),o.Lc(t.id)}}function Ae(t,e){1&t&&(o.Vb(0,"th",49),o.Kc(1,"Destination"),o.Ub())}function Fe(t,e){if(1&t&&(o.Vb(0,"td",50),o.Vb(1,"div",51),o.Vb(2,"span",52),o.Kc(3),o.Ub(),o.Ub(),o.Ub()),2&t){const t=e.$implicit,n=o.hc(2);o.Db(1),o.oc("ngStyle",o.sc(2,Ie,n.screenSize===n.screenSizeEnum.XS?"10rem":"22rem")),o.Db(2),o.Lc(t.recipientNodeAlias)}}function ke(t,e){1&t&&(o.Vb(0,"th",53),o.Kc(1,"Amount (Sats)"),o.Ub())}function Pe(t,e){if(1&t&&(o.Vb(0,"td",50),o.Vb(1,"span",54),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.jc(3,1,null==t?null:t.recipientAmount))}}function Oe(t,e){if(1&t){const t=o.Wb();o.Vb(0,"th",55),o.Vb(1,"div",56),o.Vb(2,"mat-select",57),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",58),o.dc("click",function(){return o.zc(t),o.hc(2).onDownloadCSV()}),o.Kc(5,"Download CSV"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function Te(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",59),o.Vb(1,"button",60),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc(2).onPaymentClick(n)}),o.Kc(2,"View Info"),o.Ub(),o.Ub()}}function Re(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No payments available."),o.Ub())}function Ke(t,e){if(1&t&&(o.Vb(0,"td",61),o.Ic(1,Re,2,0,"p",9),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.oc("ngIf",!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)}}function Me(t,e){if(1&t&&(o.Vb(0,"span",64),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",t.timestampStr," ")}}function Ee(t,e){if(1&t&&(o.Tb(0),o.Ic(1,Me,2,1,"span",63),o.Sb()),2&t){const t=o.hc().$implicit;o.Db(1),o.oc("ngForOf",null==t?null:t.parts)}}function ze(t,e){if(1&t&&(o.Vb(0,"td",50),o.Vb(1,"span",62),o.Kc(2),o.Ub(),o.Ic(3,Ee,2,1,"ng-container",9),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" Total Attempts: ",null==t||null==t.parts?null:t.parts.length," "),o.Db(1),o.oc("ngIf",t.is_expanded)}}function Be(t,e){if(1&t&&(o.Vb(0,"span",62),o.Vb(1,"span",65),o.Vb(2,"span",52),o.Kc(3),o.Ub(),o.Ub(),o.Ub()),2&t){const t=e.$implicit,n=o.hc(4);o.Db(1),o.oc("ngStyle",o.sc(2,Ie,n.screenSize===n.screenSizeEnum.XS?"10rem":"22rem")),o.Db(2),o.Lc(t.id)}}function qe(t,e){if(1&t&&(o.Vb(0,"span"),o.Ic(1,Be,4,4,"span",66),o.Ub()),2&t){const t=o.hc().$implicit;o.Db(1),o.oc("ngForOf",null==t?null:t.parts)}}function Ne(t,e){if(1&t&&(o.Vb(0,"td",50),o.Vb(1,"div",65),o.Vb(2,"span",52),o.Kc(3),o.Ub(),o.Ub(),o.Ic(4,qe,2,1,"span",9),o.Ub()),2&t){const t=e.$implicit,n=o.hc(2);o.Db(1),o.oc("ngStyle",o.sc(3,Ie,n.screenSize===n.screenSizeEnum.XS?"10rem":"22rem")),o.Db(2),o.Lc(t.id),o.Db(1),o.oc("ngIf",t.is_expanded)}}function He(t,e){if(1&t&&(o.Vb(0,"span",62),o.Vb(1,"span",65),o.Vb(2,"span",52),o.Kc(3),o.Ub(),o.Ub(),o.Ub()),2&t){const t=e.$implicit,n=o.hc(4);o.Db(1),o.oc("ngStyle",o.sc(2,Ie,n.screenSize===n.screenSizeEnum.XS?"10rem":"22rem")),o.Db(2),o.Lc(t.toChannelAlias)}}function Qe(t,e){if(1&t&&(o.Vb(0,"span"),o.Ic(1,He,4,4,"span",66),o.Ub()),2&t){const t=o.hc().$implicit;o.Db(1),o.oc("ngForOf",null==t?null:t.parts)}}function je(t,e){if(1&t&&(o.Vb(0,"td",50),o.Vb(1,"div",65),o.Vb(2,"span",52),o.Kc(3),o.Ub(),o.Ub(),o.Ic(4,Qe,2,1,"span",9),o.Ub()),2&t){const t=e.$implicit,n=o.hc(2);o.Db(1),o.oc("ngStyle",o.sc(3,Ie,n.screenSize===n.screenSizeEnum.XS?"10rem":"22rem")),o.Db(2),o.Lc(null==t?null:t.recipientNodeAlias),o.Db(1),o.oc("ngIf",t.is_expanded)}}function $e(t,e){if(1&t&&(o.Vb(0,"span",67),o.Kc(1),o.ic(2,"number"),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",o.kc(2,1,t.amount,"1.0-0")," ")}}function _e(t,e){if(1&t&&(o.Vb(0,"span"),o.Ic(1,$e,3,4,"span",68),o.Ub()),2&t){const t=o.hc().$implicit;o.Db(1),o.oc("ngForOf",null==t?null:t.parts)}}function Je(t,e){if(1&t&&(o.Vb(0,"td",50),o.Vb(1,"span",67),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ic(4,_e,2,1,"span",9),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.kc(3,2,null==t?null:t.recipientAmount,"1.0-0")),o.Db(2),o.oc("ngIf",t.is_expanded)}}function Xe(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",70),o.Vb(1,"button",73),o.dc("click",function(){o.zc(t);const n=e.$implicit,a=o.hc(2).$implicit;return o.hc(2).onPartClick(n,a)}),o.Kc(2),o.Ub(),o.Ub()}if(2&t){const t=e.index;o.Db(2),o.Mc("View ",t+1,"")}}function Ge(t,e){if(1&t&&(o.Vb(0,"div"),o.Ic(1,Xe,3,1,"div",72),o.Ub()),2&t){const t=o.hc().$implicit;o.Db(1),o.oc("ngForOf",null==t?null:t.parts)}}function We(t,e){if(1&t&&(o.Vb(0,"td",69),o.Vb(1,"span",70),o.Vb(2,"button",71),o.dc("click",function(){const t=e.$implicit;return t.is_expanded=!t.is_expanded}),o.Kc(3),o.Ub(),o.Ub(),o.Ic(4,Ge,2,1,"div",9),o.Ub()),2&t){const t=e.$implicit;o.Db(3),o.Lc(t.is_expanded?"Hide":"Show"),o.Db(1),o.oc("ngIf",t.is_expanded)}}function Ye(t,e){if(1&t&&o.Qb(0,"tr",74),2&t){const t=e.$implicit,n=o.hc(2);o.oc("@newlyAddedRowAnimation",t.payment_hash===n.newlyAddedPayment&&n.flgAnimate?"added":"notAdded")}}const Ze=function(t){return{"display-none":t}};function tn(t,e){if(1&t&&o.Qb(0,"tr",75),2&t){const t=o.hc(2);o.oc("ngClass",o.sc(1,Ze,(null==t.payments?null:t.payments.data)&&(null==t.payments||null==t.payments.data?null:t.payments.data.length)>0))}}function en(t,e){1&t&&o.Qb(0,"tr",76)}function nn(t,e){if(1&t&&o.Qb(0,"tr",74),2&t){const t=e.$implicit,n=o.hc(2);o.oc("@newlyAddedRowAnimation",t.payment_hash===n.newlyAddedPayment&&n.flgAnimate?"added":"notAdded")}}const an=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},on=function(){return["no_payment"]};function sn(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",14),o.Vb(1,"div",15),o.Vb(2,"div",16),o.Qb(3,"fa-icon",17),o.Vb(4,"span",18),o.Kc(5,"Payments History"),o.Ub(),o.Ub(),o.Vb(6,"mat-form-field",19),o.Vb(7,"input",20),o.dc("keyup",function(e){return o.zc(t),o.hc().applyFilter(e.target)}),o.Ub(),o.Ub(),o.Ub(),o.Vb(8,"div",21),o.Ic(9,De,1,0,"mat-progress-bar",22),o.Vb(10,"table",23,24),o.Tb(12,25),o.Ic(13,Ve,2,0,"th",26),o.Ic(14,Ce,2,1,"td",27),o.Sb(),o.Tb(15,28),o.Ic(16,Ue,2,0,"th",26),o.Ic(17,Le,4,4,"td",27),o.Sb(),o.Tb(18,29),o.Ic(19,Ae,2,0,"th",26),o.Ic(20,Fe,4,4,"td",27),o.Sb(),o.Tb(21,30),o.Ic(22,ke,2,0,"th",31),o.Ic(23,Pe,4,3,"td",27),o.Sb(),o.Tb(24,32),o.Ic(25,Oe,6,0,"th",33),o.Ic(26,Te,3,0,"td",34),o.Sb(),o.Tb(27,35),o.Ic(28,Ke,2,1,"td",36),o.Sb(),o.Tb(29,37),o.Ic(30,ze,4,2,"td",27),o.Sb(),o.Tb(31,38),o.Ic(32,Ne,5,5,"td",27),o.Sb(),o.Tb(33,39),o.Ic(34,je,5,5,"td",27),o.Sb(),o.Tb(35,40),o.Ic(36,Je,5,5,"td",27),o.Sb(),o.Tb(37,41),o.Ic(38,We,5,2,"td",42),o.Sb(),o.Ic(39,Ye,1,1,"tr",43),o.Ic(40,tn,1,3,"tr",44),o.Ic(41,en,1,0,"tr",45),o.Ic(42,nn,1,1,"tr",46),o.Ub(),o.Ub(),o.Qb(43,"mat-paginator",47),o.Ub()}if(2&t){const t=o.hc();o.Db(3),o.oc("icon",t.faHistory),o.Db(6),o.oc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.oc("dataSource",t.payments)("ngClass",o.sc(13,an,"error"===t.flgLoading[0])),o.Db(29),o.oc("matRowDefColumns",t.partColumns)("matRowDefWhen",t.is_group),o.Db(1),o.oc("matFooterRowDef",o.rc(15,on)),o.Db(1),o.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.oc("matRowDefColumns",t.displayedColumns),o.Db(1),o.oc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let cn=(()=>{class t{constructor(t,e,n,a,i,o,s){this.logger=t,this.commonService=e,this.store=n,this.rtlEffects=a,this.eclEffects=i,this.decimalPipe=o,this.dataService=s,this.calledFrom="transactions",this.faHistory=m.r,this.newlyAddedPayment="",this.flgAnimate=!0,this.selNode={},this.flgLoading=[!0],this.information={},this.paymentJSONArr=[],this.paymentDecoded={},this.displayedColumns=[],this.partColumns=[],this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.pageSize=f.n,this.pageSizeOptions=f.o,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["firstPartTimestamp","actions"],this.partColumns=["groupTotal","groupAction"]):this.screenSize===f.q.SM?(this.flgSticky=!1,this.displayedColumns=["firstPartTimestamp","recipientAmount","actions"],this.partColumns=["groupTotal","groupAmount","groupAction"]):this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["firstPartTimestamp","id","recipientAmount","actions"],this.partColumns=["groupTotal","groupId","groupAmount","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["firstPartTimestamp","id","recipientNodeAlias","recipientAmount","actions"],this.partColumns=["groupTotal","groupId","groupChannelAlias","groupAmount","groupAction"])}ngOnInit(){this.store.select("ecl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{t.effectErrors.forEach(t=>{"FetchPayments"===t.action&&(this.flgLoading[0]="error")}),this.information=t.information,this.selNode=t.nodeSettings,t.payments.sent&&t.payments.sent.map(e=>{let n=t.peers.find(t=>t.nodeId===e.recipientNodeId);e.recipientNodeAlias=n?n.alias:e.recipientNodeId,e.parts&&e.parts.map(e=>{let n=t.activeChannels.find(t=>t.channelId===e.toChannelId);e.toChannelAlias=n?n.alias:e.toChannelId})}),this.paymentJSONArr=t.payments&&t.payments.sent&&t.payments.sent.length>0?t.payments.sent:[],this.loadPaymentsTable(this.paymentJSONArr),setTimeout(()=>{this.flgAnimate=!1},3e3),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!this.paymentJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.loadPaymentsTable(this.paymentJSONArr)}loadPaymentsTable(t){this.payments=new it.o([...t]),this.payments.sort=this.sort,this.payments.sortingDataAccessor=(t,e)=>{switch(e){case"firstPartTimestamp":return this.commonService.sortByKey(t.parts,"timestamp","number",this.sort.direction),t.firstPartTimestamp;case"id":return this.commonService.sortByKey(t.parts,"id","string",this.sort.direction),t.id;case"recipientNodeAlias":return this.commonService.sortByKey(t.parts,"toChannelAlias","string",this.sort.direction),t.recipientNodeAlias;case"recipientAmount":return this.commonService.sortByKey(t.parts,"amount","number",this.sort.direction),t.recipientAmount;default:return t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null}},this.payments.paginator=this.paginator}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe(Object(te.a)(1)).subscribe(t=>{this.paymentDecoded=t,this.paymentDecoded.timestamp?(this.paymentDecoded.amount||(this.paymentDecoded.amount=0),this.sendPayment()):this.resetData()})}sendPayment(){this.flgAnimate=!0,this.newlyAddedPayment=this.paymentDecoded.paymentHash,this.paymentDecoded.amount&&0!==this.paymentDecoded.amount?(this.store.dispatch(new st.D({data:{type:f.b.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestampStr",value:this.paymentDecoded.timestampStr,title:"Creation Date",width:50},{key:"amount",value:this.paymentDecoded.amount,title:"Amount (Sats)",width:50,type:f.h.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:f.h.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:50}]]}})),this.rtlEffects.closeConfirm.pipe(Object(te.a)(1)).subscribe(t=>{t&&(this.store.dispatch(new st.F("Sending Payment...")),this.store.dispatch(new p.nb({invoice:this.paymentRequest,fromDialog:!1})),this.resetData())})):(this.store.dispatch(new st.D({data:{type:f.b.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestampStr",value:this.paymentDecoded.timestampStr,title:"Creation Date",width:40},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:f.h.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",getInputs:[{placeholder:"Amount (Sats)",inputType:f.h.NUMBER.toLowerCase(),inputValue:"",width:30}]}})),this.rtlEffects.closeConfirm.pipe(Object(te.a)(1)).subscribe(t=>{t&&(this.paymentDecoded.amount=t[0].inputValue,this.store.dispatch(new st.F("Sending Payment...")),this.store.dispatch(new p.nb({invoice:this.paymentRequest,amountMsat:1e3*t[0].inputValue,fromDialog:!1})),this.resetData())}))}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe(Object(te.a)(1)).subscribe(t=>{this.paymentDecoded=t,this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,f.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.paymentDecodedHint=this.selNode.fiatConversion?"Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+t.symbol+this.decimalPipe.transform(t.OTHER?t.OTHER:0,f.f.OTHER)+") | Memo: "+this.paymentDecoded.description:"Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description}):this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}openSendPaymentModal(){this.store.dispatch(new st.C({data:{component:de}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}is_group(t,e){return e.parts&&e.parts.length>1}onPaymentClick(t){t.paymentHash&&""!==t.paymentHash.trim()?this.dataService.decodePayments(t.paymentHash).pipe(Object(te.a)(1)).subscribe(e=>{this.showPaymentView(t,e.length&&e.length>0?e[0]:[])},e=>{this.showPaymentView(t,[])}):this.showPaymentView(t,[])}showPaymentView(t,e){this.store.dispatch(new st.C({data:{sentPaymentInfo:e,payment:t,component:ge}}))}onPartClick(t,e){e.paymentHash&&""!==e.paymentHash.trim()?this.dataService.decodePayments(e.paymentHash).pipe(Object(te.a)(1)).subscribe(n=>{this.showPartView(t,e,n)},n=>{this.showPartView(t,e,[])}):this.showPartView(t,e,[])}showPartView(t,e,n){const a=[[{key:"paymentHash",value:e.paymentHash,title:"Payment Hash",width:100,type:f.h.STRING}],[{key:"paymentPreimage",value:e.paymentPreimage,title:"Payment Preimage",width:100,type:f.h.STRING}],[{key:"toChannelId",value:t.toChannelId,title:"Channel",width:100,type:f.h.STRING}],[{key:"id",value:t.id,title:"Part ID",width:50,type:f.h.STRING},{key:"timestampStr",value:t.timestampStr,title:"Time",width:50,type:f.h.DATE_TIME}],[{key:"amount",value:t.amount,title:"Amount (Sats)",width:50,type:f.h.NUMBER},{key:"feesPaid",value:t.feesPaid,title:"Fee (Sats)",width:50,type:f.h.NUMBER}]];n.length>0&&n[0].paymentRequest&&n[0].paymentRequest.description&&""!==n[0].paymentRequest.description&&a.splice(3,0,[{key:"description",value:n[0].paymentRequest.description,title:"Description",width:100,type:f.h.STRING}]),this.store.dispatch(new st.C({data:{type:f.b.INFORMATION,alertTitle:"Payment Part Information",message:a}}))}applyFilter(t){this.payments.filter=t.value}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){let t=JSON.parse(JSON.stringify(this.payments.data)),e=t.reduce((t,e)=>(e.paymentHash&&""!==e.paymentHash.trim()&&(t=""===t?e.paymentHash:t+","+e.paymentHash),t),"");Object(Zt.a)(this.dataService.decodePayments(e).pipe(Object(d.a)(this.unSubs[2])).subscribe(e=>{e.forEach((e,n)=>{e.length>0&&e[0].paymentRequest&&e[0].paymentRequest.description&&""!==e[0].paymentRequest.description&&(t[n].description=e[0].paymentRequest.description)});let n=t.reduce((t,e)=>t.concat(e),[]);this.commonService.downloadFile(n,"Payments")}))}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(v.a),o.Pb(y.h),o.Pb(vt.a),o.Pb(ee.a),o.Pb(a.f),o.Pb(ne.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-lightning-payments"]],viewQuery:function(t,e){if(1&t&&(o.Pc(ye,!0),o.Pc(at.a,!0),o.Pc(nt.a,!0)),2&t){let t;o.vc(t=o.ec())&&(e.form=t.first),o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.paginator=t.first)}},inputs:{calledFrom:"calledFrom"},features:[o.Cb([{provide:nt.b,useValue:Object(f.y)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","firstPartTimestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","recipientNodeAlias"],["matColumnDef","recipientAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupId"],["matColumnDef","groupChannelAlias"],["matColumnDef","groupAmount"],["matColumnDef","groupAction"],["mat-cell","","class","px-3",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"part-row-span"],["fxLayoutAlign","start center","class","part-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"part-row-span","pl-3"],["fxLayoutAlign","start center",1,"ellipsis-parent","part-row-span",3,"ngStyle"],["fxLayoutAlign","start center","class","part-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"part-row-span"],["fxLayoutAlign","end center","class","part-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-3"],["fxLayoutAlign","end start"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-part-expand",3,"click"],["fxLayoutAlign","end start",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-part-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Ic(1,Se,12,3,"form",1),o.Ic(2,we,3,0,"div",2),o.Ic(3,sn,44,16,"div",3),o.Ub()),2&t&&(o.Db(1),o.oc("ngIf","home"===e.calledFrom),o.Db(1),o.oc("ngIf","transactions"===e.calledFrom),o.Db(1),o.oc("ngIf","transactions"===e.calledFrom))},directives:[S.c,S.a,S.b,a.o,ct.u,ct.n,ct.o,R.c,lt.b,ct.c,lt.d,ct.s,E.b,ct.m,ct.p,U.a,R.f,R.b,w.a,it.n,at.a,a.m,L.a,it.c,it.i,it.b,it.e,it.m,it.g,it.k,nt.a,s.a,it.h,at.b,it.a,a.p,L.b,dt.a,dt.c,ut.m,it.d,a.n,it.l,it.f,it.j],pipes:[a.f],styles:[".mat-column-groupChannelAlias[_ngcontent-%COMP%], .mat-column-groupId[_ngcontent-%COMP%], .mat-column-id[_ngcontent-%COMP%], .mat-column-recipientNodeAlias[_ngcontent-%COMP%]{padding:0 1rem;flex:0 0 25%;width:25%}.mat-column-groupChannelAlias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-groupId[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-recipientNodeAlias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%], .mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-part-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-part-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.part-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:15rem}"],data:{animation:[xt.a]}}),t})();function ln(t,e){if(1&t&&(o.Vb(0,"button",25),o.Vb(1,"mat-icon"),o.Kc(2,"more_vert"),o.Ub(),o.Ub()),2&t){o.hc();const t=o.wc(11);o.oc("matMenuTriggerFor",t)}}function rn(t,e){if(1&t){const t=o.Wb();o.Vb(0,"button",15),o.dc("click",function(){return o.zc(t),o.hc(3).onNavigateTo("/ecl/reports")}),o.Kc(1,"Fees Summary"),o.Ub()}}function bn(t,e){if(1&t){const t=o.Wb();o.Vb(0,"button",15),o.dc("click",function(){return o.zc(t),o.hc(3).onsortChannelsBy()}),o.Kc(1),o.Ub()}if(2&t){const t=o.hc(3);o.Db(1),o.Mc("Sort By ","Balance Score"===t.sortField?"Capacity":"Balance Score","")}}const dn=function(t){return{"error-border":t}};function un(t,e){if(1&t&&o.Qb(0,"rtl-ecl-node-info",26),2&t){const t=o.hc(3);o.oc("information",t.information)("showColorFieldSeparately",!1)("ngClass",o.sc(3,dn,"error"===t.flgLoading[0]))}}function hn(t,e){if(1&t&&o.Qb(0,"rtl-ecl-balances-info",27),2&t){const t=o.hc(3);o.oc("balances",t.balances)("ngClass",o.sc(2,dn,"error"===t.flgLoading[2]))}}function mn(t,e){if(1&t&&o.Qb(0,"rtl-ecl-channel-capacity-info",28),2&t){const t=o.hc(3);o.oc("sortBy",t.sortField)("channelBalances",t.channelBalances)("allChannels",t.allChannelsCapacity)("ngClass",o.sc(4,dn,"error"===t.flgLoading[5]))}}function fn(t,e){if(1&t&&o.Qb(0,"rtl-ecl-fee-info",29),2&t){const t=o.hc(3);o.oc("fees",t.fees)("ngClass",o.sc(2,dn,"error"===t.flgLoading[1]))}}function pn(t,e){if(1&t&&o.Qb(0,"rtl-ecl-channel-status-info",30),2&t){const t=o.hc(3);o.oc("channelsStatus",t.channelsStatus)("ngClass",o.sc(2,dn,"error"===t.flgLoading[0]))}}function gn(t,e){1&t&&(o.Vb(0,"h3"),o.Kc(1,"Error! Unable to find information!"),o.Ub())}function yn(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-grid-tile",8),o.Vb(1,"mat-card",9),o.Vb(2,"mat-card-header"),o.Vb(3,"mat-card-title",10),o.Vb(4,"div"),o.Qb(5,"fa-icon",11),o.Vb(6,"span"),o.Kc(7),o.Ub(),o.Ub(),o.Vb(8,"div"),o.Ic(9,ln,3,1,"button",12),o.Vb(10,"mat-menu",13,14),o.Vb(12,"button",15),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc(2).onNavigateTo(n.link)}),o.Kc(13),o.Ub(),o.Ic(14,rn,2,0,"button",16),o.Ic(15,bn,2,1,"button",16),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(16,"mat-card-content",17),o.Vb(17,"div",18),o.Ic(18,un,1,5,"rtl-ecl-node-info",19),o.Ic(19,hn,1,4,"rtl-ecl-balances-info",20),o.Ic(20,mn,1,6,"rtl-ecl-channel-capacity-info",21),o.Ic(21,fn,1,4,"rtl-ecl-fee-info",22),o.Ic(22,pn,1,4,"rtl-ecl-channel-status-info",23),o.Ic(23,gn,2,0,"h3",24),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=e.$implicit;o.oc("colspan",t.cols)("rowspan",t.rows),o.Db(5),o.oc("icon",t.icon),o.Db(2),o.Lc(t.title),o.Db(2),o.oc("ngIf",t.link),o.Db(4),o.Mc("Go To ",t.goTo,""),o.Db(1),o.oc("ngIf","fee"===t.id),o.Db(1),o.oc("ngIf","capacity"===t.id),o.Db(1),o.pc("fxFlex","capacity"===t.id?90:70),o.Db(1),o.oc("ngSwitch",t.id),o.Db(1),o.oc("ngSwitchCase","node"),o.Db(1),o.oc("ngSwitchCase","balance"),o.Db(1),o.oc("ngSwitchCase","capacity"),o.Db(1),o.oc("ngSwitchCase","fee"),o.Db(1),o.oc("ngSwitchCase","status")}}function xn(t,e){if(1&t&&(o.Vb(0,"div",2),o.Vb(1,"div",3),o.Qb(2,"fa-icon",4),o.Vb(3,"span",5),o.Kc(4),o.Ub(),o.Ub(),o.Vb(5,"mat-grid-list",6),o.Ic(6,yn,24,15,"mat-grid-tile",7),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(2),o.oc("icon",t.flgLoading[0]?t.faFrown:t.faSmile),o.Db(2),o.Lc(t.flgLoading[0]?"Error! Please check the server connection.":"Welcome "+t.information.alias+"! Your node is up and running."),o.Db(1),o.oc("rowHeight",t.operatorCardHeight),o.Db(1),o.oc("ngForOf",t.operatorCards)}}function vn(t,e){if(1&t&&(o.Vb(0,"button",25),o.Vb(1,"mat-icon"),o.Kc(2,"more_vert"),o.Ub(),o.Ub()),2&t){o.hc();const t=o.wc(9);o.oc("matMenuTriggerFor",t)}}function Sn(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-card-header"),o.Vb(1,"mat-card-title",10),o.Vb(2,"div"),o.Qb(3,"fa-icon",11),o.Vb(4,"span"),o.Kc(5),o.Ub(),o.Ub(),o.Vb(6,"div"),o.Ic(7,vn,3,1,"button",12),o.Vb(8,"mat-menu",13,39),o.Vb(10,"button",15),o.dc("click",function(){o.zc(t);const e=o.hc().$implicit;return o.hc(2).onNavigateTo(e.link)}),o.Kc(11),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=o.hc().$implicit;o.Db(3),o.oc("icon",t.icon),o.Db(2),o.Lc(t.title),o.Db(2),o.oc("ngIf",t.link),o.Db(4),o.Mc("Go To ",t.goTo,"")}}function wn(t,e){if(1&t&&o.Qb(0,"rtl-ecl-node-info",40),2&t){const t=o.hc(3);o.oc("information",t.information)("ngClass",o.sc(2,dn,"error"===t.flgLoading[0]))}}function Dn(t,e){if(1&t&&o.Qb(0,"rtl-ecl-balances-info",27),2&t){const t=o.hc(3);o.oc("balances",t.balances)("ngClass",o.sc(2,dn,"error"===t.flgLoading[2]))}}function Vn(t,e){if(1&t&&o.Qb(0,"rtl-ecl-channel-liquidity-info",41),2&t){const t=o.hc(3);o.oc("direction","In")("totalLiquidity",t.totalInboundLiquidity)("allChannels",t.allInboundChannels)("ngClass",o.sc(4,dn,"error"===t.flgLoading[5]))}}function Cn(t,e){if(1&t&&o.Qb(0,"rtl-ecl-channel-liquidity-info",41),2&t){const t=o.hc(3);o.oc("direction","Out")("totalLiquidity",t.totalOutboundLiquidity)("allChannels",t.allOutboundChannels)("ngClass",o.sc(4,dn,"error"===t.flgLoading[5]))}}function Un(t,e){if(1&t){const t=o.Wb();o.Vb(0,"button",50),o.Vb(1,"mat-icon"),o.Kc(2,"more_vert"),o.Ub(),o.Ub(),o.Vb(3,"mat-menu",13,51),o.Vb(5,"button",15),o.dc("click",function(){o.zc(t);const e=o.hc(2).$implicit;return o.hc(2).onNavigateTo(e.link)}),o.Kc(6),o.Ub(),o.Vb(7,"button",15),o.dc("click",function(){return o.zc(t),o.hc(4).onNavigateTo("/ecl/reports/transactions")}),o.Kc(8,"Transactions Summary"),o.Ub(),o.Ub()}if(2&t){const t=o.wc(4),e=o.hc(2).$implicit;o.oc("matMenuTriggerFor",t),o.Db(6),o.Mc("Go To ",e.goTo,"")}}function In(t,e){1&t&&(o.Vb(0,"span",42),o.Vb(1,"mat-tab-group",43),o.Vb(2,"mat-tab",44),o.Qb(3,"rtl-ecl-lightning-invoices",45),o.Ub(),o.Vb(4,"mat-tab",46),o.Qb(5,"rtl-ecl-lightning-payments",47),o.Ub(),o.Vb(6,"mat-tab",48),o.Ic(7,Un,9,2,"ng-template",49),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(3),o.oc("calledFrom","home"),o.Db(2),o.oc("calledFrom","home"),o.Db(1),o.oc("disabled",!0))}function Ln(t,e){1&t&&(o.Vb(0,"h3"),o.Kc(1,"Error! Unable to find information!"),o.Ub())}const An=function(t){return{"p-0":t}};function Fn(t,e){if(1&t&&(o.Vb(0,"mat-grid-tile",8),o.Vb(1,"mat-card",33),o.Ic(2,Sn,12,4,"mat-card-header",34),o.Vb(3,"mat-card-content",35),o.Vb(4,"div",18),o.Ic(5,wn,1,4,"rtl-ecl-node-info",36),o.Ic(6,Dn,1,4,"rtl-ecl-balances-info",20),o.Ic(7,Vn,1,6,"rtl-ecl-channel-liquidity-info",37),o.Ic(8,Cn,1,6,"rtl-ecl-channel-liquidity-info",37),o.Ic(9,In,8,3,"span",38),o.Ic(10,Ln,2,0,"h3",24),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.oc("colspan",t.cols)("rowspan",t.rows),o.Db(1),o.oc("ngClass",o.sc(11,An,"transactions"===t.id)),o.Db(1),o.oc("ngIf","transactions"!==t.id),o.Db(1),o.pc("fxFlex","transactions"===t.id?100:"balance"===t.id?70:90),o.Db(1),o.oc("ngSwitch",t.id),o.Db(1),o.oc("ngSwitchCase","node"),o.Db(1),o.oc("ngSwitchCase","balance"),o.Db(1),o.oc("ngSwitchCase","inboundLiq"),o.Db(1),o.oc("ngSwitchCase","outboundLiq"),o.Db(1),o.oc("ngSwitchCase","transactions")}}function kn(t,e){if(1&t&&(o.Vb(0,"div",31),o.Qb(1,"fa-icon",4),o.Vb(2,"span",5),o.Kc(3),o.Ub(),o.Ub(),o.Vb(4,"mat-grid-list",32),o.Ic(5,Fn,11,13,"mat-grid-tile",7),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("icon",t.faSmile),o.Db(2),o.Mc("Welcome ",t.information.alias,"! Your node is up and running."),o.Db(1),o.oc("rowHeight",t.merchantCardHeight),o.Db(1),o.oc("ngForOf",t.merchantCards)}}let Pn=(()=>{class t{constructor(t,e,n,a,i){this.logger=t,this.store=e,this.actions$=n,this.commonService=a,this.router=i,this.faSmile=h.b,this.faFrown=h.a,this.faAngleDoubleDown=m.a,this.faAngleDoubleUp=m.b,this.faChartPie=m.g,this.faBolt=m.e,this.faServer=m.G,this.faNetworkWired=m.y,this.flgChildInfoUpdated=!1,this.userPersonaEnum=f.w,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.channels=[],this.onchainBalance={},this.balances={onchain:-1,lightning:-1,total:0},this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="330px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.flgLoading=[!0,!0,!0,!0,!0,!0,!0,!0],this.unSubs=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goTo:"On-Chain",link:"/ecl/onchain",icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goTo:"Routing",link:"/ecl/routing",icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goTo:"Channels",link:"/ecl/connections",icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goTo:"Channels",link:"/ecl/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/ecl/onchain",icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goTo:"Transactions",link:"/ecl/transactions",title:"",cols:6,rows:4},{id:"inboundLiq",goTo:"Channels",link:"/ecl/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/ecl/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===f.q.SM||this.screenSize===f.q.MD?(this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goTo:"On-Chain",link:"/ecl/onchain",icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goTo:"Routing",link:"/ecl/routing",icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goTo:"Channels",link:"/ecl/connections",icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goTo:"Channels",link:"/ecl/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/ecl/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goTo:"Transactions",link:"/ecl/transactions",title:"",cols:3,rows:4},{id:"inboundLiq",goTo:"Channels",link:"/ecl/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/ecl/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCardHeight=(window.screen.height-200)/2+"px",this.merchantCardHeight=(window.screen.height-210)/10+"px",this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goTo:"On-Chain",link:"/ecl/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goTo:"Channels",link:"/ecl/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goTo:"Routing",link:"/ecl/routing",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goTo:"Channels",link:"/ecl/connections",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/ecl/onchain",icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goTo:"Channels",link:"/ecl/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goTo:"Channels",link:"/ecl/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goTo:"Transactions",link:"/ecl/transactions",title:"",cols:2,rows:5}])}ngOnInit(){this.store.select("ecl").pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.flgLoading=[!0,!0,!0,!0,!0,!0,!0,!0],t.effectErrors.forEach(t=>{"FetchInfo"===t.action&&(this.flgLoading[0]="error"),"FetchFees"===t.action&&(this.flgLoading[1]="error"),"FetchChannels"===t.action&&(this.flgLoading[2]="error")}),this.selNode=t.nodeSettings,this.information=t.information,"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!this.information.nodeId),this.fees=t.fees,"error"!==this.flgLoading[1]&&(this.flgLoading[1]=!this.fees.daily_fee),this.channels=t.activeChannels,this.onchainBalance=t.onchainBalance,this.balances.onchain=this.onchainBalance.total,this.balances.lightning=t.lightningBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);let e=t.lightningBalance.localBalance?+t.lightningBalance.localBalance:0,n=t.lightningBalance.remoteBalance?+t.lightningBalance.remoteBalance:0;this.channelBalances={localBalance:e,remoteBalance:n,balancedness:+(1-Math.abs((e-n)/(e+n))).toFixed(3)},this.channelsStatus=t.channelsStatus,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels.filter(t=>t.toRemote>0),"toRemote"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels.filter(t=>t.toLocal>0),"toLocal"))),this.channels.forEach(t=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil(t.toRemote),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor(t.toLocal)}),"error"!==this.flgLoading[2]&&(this.flgLoading[2]=!this.channels),this.flgChildInfoUpdated=this.balances.lightning>=0&&this.balances.onchain>=0&&this.fees.monthly_fee>=0,this.logger.info(t)}),this.actions$.pipe(Object(d.a)(this.unSubs[2]),Object(u.a)(t=>t.type===p.n||t.type===p.X)).subscribe(t=>{t.type===p.n&&(this.flgChildInfoUpdated=!1),t.type===p.X&&(this.flgChildInfoUpdated=!0)})}onNavigateTo(t){this.router.navigateByUrl(t)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.channels.sort(function(t,e){const n=+t.toLocal+ +t.toRemote,a=+e.toLocal+ +e.toRemote;return n>a?-1:n{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(y.h),o.Pb(x.a),o.Pb(v.a),o.Pb(i.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-0"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10",3,"rowHeight"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["menuOperator","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",1,"dashboard-card-content",3,"fxFlex"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"balances","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"fees","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","ngClass",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["fxFlex","100",3,"information","showColorFieldSeparately","ngClass"],["fxFlex","100",3,"balances","ngClass"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","ngClass"],["fxFlex","100",3,"fees","ngClass"],["fxFlex","100",3,"channelsStatus","ngClass"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-0"],["cols","6",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"dashboard-card-content",3,"fxFlex"],["fxFlex","100",3,"information","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","ngClass",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information","ngClass"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","ngClass"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column",1,"w-100","dashboard-tabs-group"],["label","Receive"],[1,"h-100",3,"calledFrom"],["label","Pay"],[3,"calledFrom"],[3,"disabled"],["mat-tab-label",""],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",2,"max-width","20px",3,"matMenuTriggerFor"],["menuTransactions","matMenu"]],template:function(t,e){if(1&t&&(o.Ic(0,xn,7,4,"div",0),o.Ic(1,kn,6,4,"ng-template",null,1,o.Jc)),2&t){const t=o.wc(2);o.oc("ngIf",e.selNode.userPersona===e.userPersonaEnum.OPERATOR)("ngIfElse",t)}},directives:[a.o,S.c,S.b,w.a,D.a,a.n,D.c,V.a,S.a,V.c,V.f,C.a,C.b,V.b,a.q,a.r,a.s,U.a,C.d,I.a,O,a.m,L.a,T,N,H,Q,tt,et.b,et.a,Yt,cn,et.c],styles:[""]}),t})();const On=["form"];function Tn(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Bitcoin address is required."),o.Ub())}function Rn(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Amount is required."),o.Ub())}function Kn(t,e){if(1&t&&(o.Vb(0,"mat-option",29),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.oc("value",t),o.Db(1),o.Lc(t)}}function Mn(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Target Confirmation Blocks is required."),o.Ub())}function En(t,e){if(1&t&&(o.Vb(0,"span"),o.Kc(1),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Lc(t.sendFundError)}}function zn(t,e){if(1&t&&(o.Vb(0,"div",30),o.Qb(1,"fa-icon",31),o.Ic(2,En,2,1,"span",12),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("icon",t.faExclamationTriangle),o.Db(1),o.oc("ngIf",""!==t.sendFundError)}}let Bn=(()=>{class t{constructor(t,e,n,a,i,o){this.dialogRef=t,this.logger=e,this.store=n,this.commonService=a,this.decimalPipe=i,this.actions$=o,this.faExclamationTriangle=m.o,this.selNode={},this.addressTypes=[],this.flgLoadingWallet=!0,this.selectedAddress=f.a[1],this.blockchainBalance={},this.information={},this.newAddress="",this.transaction={},this.sendFundError="",this.fiatConversion=!1,this.amountUnits=f.e,this.selAmountUnit=f.e[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=f.f,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a]}ngOnInit(){this.store.select("root").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{this.fiatConversion=t.selNode.settings.fiatConversion,this.amountUnits=t.selNode.settings.currencyUnits,this.appConfig=t.appConfig,this.nodeData=t.nodeData,this.logger.info(t)}),this.actions$.pipe(Object(d.a)(this.unSubs[1]),Object(u.a)(t=>t.type===p.j||t.type===p.Q)).subscribe(t=>{t.type===p.Q&&(this.store.dispatch(new st.E("Fund Sent Successfully!")),this.dialogRef.close()),t.type===p.j&&"SendOnchainFunds"===t.payload.action&&(this.sendFundError=t.payload.message)})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="",this.store.dispatch(new st.F("Sending Funds...")),this.transaction.amount&&this.selAmountUnit!==f.g.SATS?this.commonService.convertCurrency(this.transaction.amount,this.selAmountUnit===this.amountUnits[2]?f.g.OTHER:this.selAmountUnit,this.amountUnits[2],this.fiatConversion).pipe(Object(d.a)(this.unSubs[2])).subscribe(t=>{this.transaction.amount=parseInt(t[f.g.SATS]),this.selAmountUnit=f.g.SATS,this.store.dispatch(new p.mb(this.transaction))}):this.store.dispatch(new p.mb(this.transaction))}get invalidValues(){return!this.transaction.address||""===this.transaction.address||!this.transaction.amount||this.transaction.amount<=0||!this.transaction.blocks||this.transaction.blocks<=0}resetData(){this.sendFundError="",this.transaction={}}onAmountUnitChange(t){let e=this,n=t.value===this.amountUnits[2]?f.g.OTHER:t.value;this.transaction.amount&&this.selAmountUnit!==t.value&&this.commonService.convertCurrency(this.transaction.amount,this.selAmountUnit===this.amountUnits[2]?f.g.OTHER:this.selAmountUnit,this.amountUnits[2],this.fiatConversion).pipe(Object(d.a)(this.unSubs[3])).subscribe(t=>{e.transaction.amount=+e.decimalPipe.transform(t[n],e.currencyUnitFormats[n]).replace(/,/g,"")}),this.selAmountUnit=t.value}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(ot.f),o.Pb(g.b),o.Pb(y.h),o.Pb(v.a),o.Pb(a.f),o.Pb(x.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-on-chain-send-modal"]],viewQuery:function(t,e){if(1&t&&o.Ec(On,!0),2&t){let t;o.vc(t=o.ec())&&(e.form=t.first)}},decls:36,vars:15,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"mt-5px"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"padding-gap","overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex","55"],["matInput","","autoFocus","","placeholder","Bitcoin Address","tabindex","1","name","addr","required","",3,"ngModel","ngModelChange"],["addrs","ngModel"],[4,"ngIf"],["fxFlex","30"],["matInput","","placeholder","Amount","name","amt","type","number","tabindex","2","required","",3,"ngModel","step","min","ngModelChange"],["amnt","ngModel"],["matSuffix",""],["fxFlex","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","60","fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["matInput","","placeholder","Target Confirmation Blocks","type","number","name","blocks","tabindex","8","required","true",3,"ngModel","step","min","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-flat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"mat-card-header",2),o.Vb(3,"div",3),o.Vb(4,"span",4),o.Kc(5,"Send Payment"),o.Ub(),o.Ub(),o.Vb(6,"button",5),o.Kc(7,"X"),o.Ub(),o.Ub(),o.Vb(8,"mat-card-content",6),o.Vb(9,"form",7,8),o.dc("submit",function(){return e.onSendFunds()})("reset",function(){return e.resetData()}),o.Vb(11,"mat-form-field",9),o.Vb(12,"input",10,11),o.dc("ngModelChange",function(t){return e.transaction.address=t}),o.Ub(),o.Ic(14,Tn,2,0,"mat-error",12),o.Ub(),o.Vb(15,"mat-form-field",13),o.Vb(16,"input",14,15),o.dc("ngModelChange",function(t){return e.transaction.amount=t}),o.Ub(),o.Vb(18,"span",16),o.Kc(19),o.Ub(),o.Ic(20,Rn,2,0,"mat-error",12),o.Ub(),o.Vb(21,"mat-form-field",17),o.Vb(22,"mat-select",18),o.dc("selectionChange",function(t){return e.onAmountUnitChange(t)}),o.Ic(23,Kn,2,2,"mat-option",19),o.Ub(),o.Ub(),o.Vb(24,"div",20),o.Vb(25,"mat-form-field",21),o.Vb(26,"input",22,23),o.dc("ngModelChange",function(t){return e.transaction.blocks=t}),o.Ub(),o.Ic(28,Mn,2,0,"mat-error",12),o.Ub(),o.Ub(),o.Qb(29,"div",24),o.Ic(30,zn,3,2,"div",25),o.Vb(31,"div",26),o.Vb(32,"button",27),o.Kc(33,"Clear Fields"),o.Ub(),o.Vb(34,"button",28),o.Kc(35,"Send Funds"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(6),o.oc("mat-dialog-close",!1),o.Db(6),o.oc("ngModel",e.transaction.address),o.Db(2),o.oc("ngIf",!e.transaction.address),o.Db(2),o.oc("ngModel",e.transaction.amount)("step",100)("min",0),o.Db(3),o.Mc(" ",e.selAmountUnit," "),o.Db(1),o.oc("ngIf",!e.transaction.amount),o.Db(2),o.oc("value",e.selAmountUnit),o.Db(1),o.oc("ngForOf",e.amountUnits),o.Db(3),o.oc("ngModel",e.transaction.blocks)("step",1)("min",0),o.Db(2),o.oc("ngIf",!e.transaction.blocks),o.Db(2),o.oc("ngIf",""!==e.sendFundError))},directives:[S.c,S.a,V.c,S.b,U.a,ot.d,V.b,ct.u,ct.n,ct.o,R.c,lt.b,ct.c,rt.a,ct.s,ct.m,ct.p,a.o,ct.q,bt.a,R.g,dt.a,a.n,R.b,ut.m,w.a],styles:[""]}),t})();var qn=n("qmev");function Nn(t,e){1&t&&o.Qb(0,"mat-progress-bar",31)}function Hn(t,e){1&t&&(o.Vb(0,"th",32),o.Kc(1," Date/Time "),o.Ub())}function Qn(t,e){if(1&t&&(o.Vb(0,"td",33),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(t.timestampStr)}}function jn(t,e){1&t&&(o.Vb(0,"th",34),o.Kc(1," Amount (Sats) "),o.Ub())}function $n(t,e){if(1&t&&(o.Vb(0,"span",37),o.Kc(1),o.ic(2,"number"),o.Ub()),2&t){const t=o.hc().$implicit;o.Db(1),o.Lc(o.jc(2,1,t.amount))}}function _n(t,e){if(1&t&&(o.Vb(0,"span",38),o.Kc(1),o.ic(2,"number"),o.Ub()),2&t){const t=o.hc().$implicit;o.Db(1),o.Mc("(",o.jc(2,1,-1*t.amount),")")}}function Jn(t,e){if(1&t&&(o.Vb(0,"td",33),o.Ic(1,$n,3,3,"span",35),o.Ic(2,_n,3,3,"span",36),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.oc("ngIf",t.amount>0||0===t.amount),o.Db(1),o.oc("ngIf",t.amount<0)}}function Xn(t,e){1&t&&(o.Vb(0,"th",34),o.Kc(1," Fees (Sats) "),o.Ub())}function Gn(t,e){if(1&t&&(o.Vb(0,"td",33),o.Vb(1,"span",37),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.jc(3,1,t.fees))}}function Wn(t,e){1&t&&(o.Vb(0,"th",39),o.Kc(1," Confirmations "),o.Ub())}function Yn(t,e){if(1&t&&(o.Vb(0,"td",40),o.Vb(1,"span",37),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.jc(3,1,null==t?null:t.confirmations)," ")}}function Zn(t,e){1&t&&(o.Vb(0,"th",32),o.Kc(1," Address "),o.Ub())}function ta(t,e){if(1&t&&(o.Vb(0,"td",33),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(t.address)}}function ea(t,e){if(1&t){const t=o.Wb();o.Vb(0,"th",41),o.Vb(1,"div",42),o.Vb(2,"mat-select",43),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",44),o.dc("click",function(){return o.zc(t),o.hc().onDownloadCSV()}),o.Kc(5,"Download CSV"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function na(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",45),o.Vb(1,"button",46),o.dc("click",function(n){o.zc(t);const a=e.$implicit;return o.hc().onTransactionClick(a,n)}),o.Kc(2,"View Info"),o.Ub(),o.Ub()}}function aa(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No transactions available."),o.Ub())}function ia(t,e){if(1&t&&(o.Vb(0,"td",47),o.Ic(1,aa,2,0,"p",48),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("ngIf",!(null!=t.listTransactions&&t.listTransactions.data)||(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)<1)}}const oa=function(t){return{"display-none":t}};function sa(t,e){if(1&t&&o.Qb(0,"tr",49),2&t){const t=o.hc();o.oc("ngClass",o.sc(1,oa,(null==t.listTransactions?null:t.listTransactions.data)&&(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)>0))}}function ca(t,e){1&t&&o.Qb(0,"tr",50)}function la(t,e){1&t&&o.Qb(0,"tr",51)}const ra=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},ba=function(){return["no_transaction"]};let da=(()=>{class t{constructor(t,e,n,a){this.logger=t,this.commonService=e,this.store=n,this.actions$=a,this.faHistory=m.r,this.displayedColumns=[],this.flgLoading=[!0],this.flgSticky=!1,this.pageSize=f.n,this.pageSizeOptions=f.o,this.screenSize="",this.screenSizeEnum=f.q,this.unsub=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","actions"]):this.screenSize===f.q.SM?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","confirmations","fees","actions"]):this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","fees","confirmations","address","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","amount","fees","confirmations","address","actions"])}ngOnInit(){this.store.dispatch(new p.B),this.store.select("ecl").pipe(Object(d.a)(this.unsub[0])).subscribe(t=>{t.effectErrors.forEach(t=>{"FetchTransactions"===t.action&&(this.flgLoading[0]="error")}),t.transactions&&this.loadTransactionsTable(t.transactions),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!t.transactions),this.logger.info(t)})}applyFilter(t){this.listTransactions.filter=t.value}onTransactionClick(t,e){this.store.dispatch(new st.C({data:{type:f.b.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"blockHash",value:t.blockHash,title:"Block Hash",width:100}],[{key:"txid",value:t.txid,title:"Transaction ID",width:100}],[{key:"timestampStr",value:t.timestampStr,title:"Date/Time",width:50,type:f.h.DATE_TIME},{key:"confirmations",value:t.confirmations,title:"Number of Confirmations",width:50,type:f.h.NUMBER}],[{key:"fees",value:t.fees,title:"Fees (Sats)",width:50,type:f.h.NUMBER},{key:"amount",value:t.amount,title:"Amount (Sats)",width:50,type:f.h.NUMBER}],[{key:"address",value:t.address,title:"Address",width:100,type:f.h.STRING}]]}}))}loadTransactionsTable(t){this.listTransactions=new it.o([...t]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.listTransactions.paginator=this.paginator,this.logger.info(this.listTransactions)}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}ngOnDestroy(){this.unsub.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(v.a),o.Pb(y.h),o.Pb(x.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-on-chain-transaction-history"]],viewQuery:function(t,e){if(1&t&&(o.Pc(at.a,!0),o.Pc(nt.a,!0)),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.paginator=t.first)}},features:[o.Cb([{provide:nt.b,useValue:Object(f.y)("Transactions")}])],decls:37,vars:14,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","fees"],["matColumnDef","confirmations"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pr-2",4,"matHeaderCellDef"],["mat-cell","","class","pr-2",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pr-2"],["mat-cell","",1,"pr-2"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"div",2),o.Qb(3,"fa-icon",3),o.Vb(4,"span",4),o.Kc(5,"Transaction History"),o.Ub(),o.Ub(),o.Vb(6,"mat-form-field",5),o.Vb(7,"input",6),o.dc("keyup",function(t){return e.applyFilter(t.target)}),o.Ub(),o.Ub(),o.Ub(),o.Vb(8,"div",7),o.Vb(9,"div",8),o.Ic(10,Nn,1,0,"mat-progress-bar",9),o.Vb(11,"table",10,11),o.Tb(13,12),o.Ic(14,Hn,2,0,"th",13),o.Ic(15,Qn,2,1,"td",14),o.Sb(),o.Tb(16,15),o.Ic(17,jn,2,0,"th",16),o.Ic(18,Jn,3,2,"td",14),o.Sb(),o.Tb(19,17),o.Ic(20,Xn,2,0,"th",16),o.Ic(21,Gn,4,3,"td",14),o.Sb(),o.Tb(22,18),o.Ic(23,Wn,2,0,"th",19),o.Ic(24,Yn,4,3,"td",20),o.Sb(),o.Tb(25,21),o.Ic(26,Zn,2,0,"th",13),o.Ic(27,ta,2,1,"td",14),o.Sb(),o.Tb(28,22),o.Ic(29,ea,6,0,"th",23),o.Ic(30,na,3,0,"td",24),o.Sb(),o.Tb(31,25),o.Ic(32,ia,2,1,"td",26),o.Sb(),o.Ic(33,sa,1,3,"tr",27),o.Ic(34,ca,1,0,"tr",28),o.Ic(35,la,1,0,"tr",29),o.Ub(),o.Qb(36,"mat-paginator",30),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(3),o.oc("icon",e.faHistory),o.Db(7),o.oc("ngIf",!0===e.flgLoading[0]),o.Db(1),o.oc("dataSource",e.listTransactions)("ngClass",o.sc(11,ra,"error"===e.flgLoading[0])),o.Db(22),o.oc("matFooterRowDef",o.rc(13,ba)),o.Db(1),o.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.Db(1),o.oc("matRowDefColumns",e.displayedColumns),o.Db(1),o.oc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[S.c,S.b,S.a,w.a,R.c,lt.b,E.b,a.o,it.n,at.a,a.m,L.a,it.c,it.i,it.b,it.e,it.g,it.k,it.m,nt.a,s.a,it.h,at.b,it.a,dt.a,dt.c,ut.m,U.a,it.d,it.f,it.j,it.l],pipes:[a.f],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})();function ua(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",12),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().activeLink=n.link}),o.Kc(1),o.Ub()}if(2&t){const t=e.$implicit,n=o.hc();o.pc("routerLink",t.link),o.oc("active",n.activeLink===t.link),o.Db(1),o.Lc(t.name)}}let ha=(()=>{class t{constructor(t,e){this.store=t,this.router=e,this.selNode={},this.faExchangeAlt=m.n,this.faChartPie=m.g,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"}],this.activeLink=this.links[0].link,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){let t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t instanceof i.f)).subscribe(t=>{let e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link}),this.store.select("ecl").pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.selNode=t.nodeSettings,this.balances=[{title:"Total Balance",dataValue:t.onchainBalance.total||0},{title:"Confirmed",dataValue:t.onchainBalance.confirmed},{title:"Unconfirmed",dataValue:t.onchainBalance.unconfirmed}]})}openSendFundsModal(){this.store.dispatch(new st.C({data:{component:Bn}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(y.h),o.Pb(i.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-on-chain"]],decls:21,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large","mt-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Qb(1,"fa-icon",1),o.Vb(2,"span",2),o.Kc(3,"On-chain Balance"),o.Ub(),o.Ub(),o.Vb(4,"div",3),o.Vb(5,"mat-card"),o.Vb(6,"mat-card-content",4),o.Qb(7,"rtl-currency-unit-converter",5),o.Ub(),o.Ub(),o.Ub(),o.Vb(8,"div",0),o.Qb(9,"fa-icon",1),o.Vb(10,"span",2),o.Kc(11,"On-chain Transactions"),o.Ub(),o.Ub(),o.Vb(12,"div",6),o.Vb(13,"mat-card"),o.Vb(14,"mat-card-content",4),o.Vb(15,"nav",7),o.Ic(16,ua,2,3,"div",8),o.Ub(),o.Vb(17,"div",9),o.Qb(18,"router-outlet"),o.Ub(),o.Vb(19,"div",10),o.Qb(20,"rtl-ecl-on-chain-transaction-history",11),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(1),o.oc("icon",e.faChartPie),o.Db(6),o.oc("values",e.balances),o.Db(2),o.oc("icon",e.faExchangeAlt),o.Db(7),o.oc("ngForOf",e.links))},directives:[S.c,S.b,w.a,V.a,V.b,qn.a,et.e,a.n,S.a,i.l,da,et.d,i.h],styles:[""]}),t})();var ma=n("8Qe2");function fa(t,e){if(1&t&&(o.Vb(0,"span",10),o.Kc(1,"Channels"),o.Ub()),2&t){const t=o.hc();o.pc("matBadge",t.activeChannels)}}function pa(t,e){if(1&t&&(o.Vb(0,"span",10),o.Kc(1,"Peers"),o.Ub()),2&t){const t=o.hc();o.pc("matBadge",t.activePeers)}}let ga=(()=>{class t{constructor(t,e){this.store=t,this.router=e,this.activePeers=0,this.activeChannels=0,this.faUsers=m.O,this.faChartPie=m.g,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t instanceof i.f)).subscribe(t=>{this.activeLink=this.links.findIndex(e=>e.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}),this.store.select("ecl").pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.activePeers=t.peers&&t.peers.length?t.peers.length:0,this.activeChannels=t.channelsStatus&&t.channelsStatus.active&&t.channelsStatus.active.channels?t.channelsStatus.active.channels:0,this.balances=[{title:"Total Balance",dataValue:t.onchainBalance.total||0},{title:"Confirmed",dataValue:t.onchainBalance.confirmed},{title:"Unconfirmed",dataValue:t.onchainBalance.unconfirmed}]})}onSelectedTabChange(t){this.router.navigateByUrl("/ecl/connections/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(y.h),o.Pb(i.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-connections"]],decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Qb(1,"fa-icon",1),o.Vb(2,"span",2),o.Kc(3,"On-chain Balance"),o.Ub(),o.Ub(),o.Vb(4,"div",3),o.Vb(5,"mat-card"),o.Vb(6,"mat-card-content",4),o.Qb(7,"rtl-currency-unit-converter",5),o.Ub(),o.Ub(),o.Ub(),o.Vb(8,"div",0),o.Qb(9,"fa-icon",1),o.Vb(10,"span",2),o.Kc(11,"Connections"),o.Ub(),o.Ub(),o.Vb(12,"div",6),o.Vb(13,"mat-card"),o.Vb(14,"mat-card-content",4),o.Vb(15,"mat-tab-group",7),o.dc("selectedIndexChange",function(t){return e.activeLink=t})("selectedTabChange",function(t){return e.onSelectedTabChange(t)}),o.Vb(16,"mat-tab"),o.Ic(17,fa,2,1,"ng-template",8),o.Ub(),o.Vb(18,"mat-tab"),o.Ic(19,pa,2,1,"ng-template",8),o.Ub(),o.Ub(),o.Vb(20,"div",9),o.Qb(21,"router-outlet"),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(1),o.oc("icon",e.faChartPie),o.Db(6),o.oc("values",e.balances),o.Db(2),o.oc("icon",e.faUsers),o.Db(6),o.oc("selectedIndex",e.activeLink))},directives:[S.c,S.b,w.a,V.a,V.b,qn.a,et.b,et.a,et.c,S.a,i.l,ma.a],styles:[""]}),t})();function ya(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",11),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().activeLink=n.link}),o.Kc(1),o.Ub()}if(2&t){const t=e.$implicit,n=o.hc();o.pc("routerLink",t.link),o.oc("active",n.activeLink===t.link),o.Db(1),o.Lc(t.name)}}let xa=(()=>{class t{constructor(t,e,n){this.logger=t,this.store=e,this.router=n,this.faExchangeAlt=m.n,this.faChartPie=m.g,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){let t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t instanceof i.f)).subscribe(t=>{let e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link}),this.store.select("ecl").pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.currencyUnits=t.nodeSettings.currencyUnits,this.balances=t.nodeSettings.userPersona===f.w.OPERATOR?[{title:"Local Capacity",dataValue:t.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:t.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:t.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:t.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(t)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(y.h),o.Pb(i.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-transactions"]],decls:19,vars:4,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Qb(1,"fa-icon",1),o.Vb(2,"span",2),o.Kc(3,"Lightning Balance"),o.Ub(),o.Ub(),o.Vb(4,"div",3),o.Vb(5,"mat-card"),o.Vb(6,"mat-card-content",4),o.Qb(7,"rtl-currency-unit-converter",5),o.Ub(),o.Ub(),o.Ub(),o.Vb(8,"div",6),o.Qb(9,"fa-icon",1),o.Vb(10,"span",2),o.Kc(11,"Lightning Transactions"),o.Ub(),o.Ub(),o.Vb(12,"div",7),o.Vb(13,"mat-card"),o.Vb(14,"mat-card-content",4),o.Vb(15,"nav",8),o.Ic(16,ya,2,3,"div",9),o.Ub(),o.Vb(17,"div",10),o.Qb(18,"router-outlet"),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(1),o.oc("icon",e.faChartPie),o.Db(6),o.oc("values",e.balances),o.Db(2),o.oc("icon",e.faExchangeAlt),o.Db(7),o.oc("ngForOf",e.links))},directives:[S.c,S.b,w.a,V.a,V.b,qn.a,et.e,a.n,S.a,i.l,et.d,i.h],styles:[""]}),t})();function va(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",11),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().activeLink=n.link}),o.Kc(1),o.Ub()}if(2&t){const t=e.$implicit,n=o.hc();o.pc("routerLink",t.link),o.oc("active",n.activeLink===t.link),o.Db(1),o.Lc(t.name)}}let Sa=(()=>{class t{constructor(t){this.router=t,this.faMapSigns=m.w,this.events=[],this.flgLoading=[!0],this.errorMessage="",this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new b.a,new b.a,new b.a]}ngOnInit(){let t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t instanceof i.f)).subscribe(t=>{let e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(i.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-routing"]],decls:13,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Qb(2,"fa-icon",2),o.Vb(3,"span",3),o.Kc(4,"Routing"),o.Ub(),o.Ub(),o.Vb(5,"div",4),o.Vb(6,"mat-card",5),o.Vb(7,"mat-card-content",6),o.Vb(8,"div",7),o.Vb(9,"nav",8),o.Ic(10,va,2,3,"div",9),o.Ub(),o.Ub(),o.Vb(11,"div",10),o.Qb(12,"router-outlet"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(2),o.oc("icon",e.faMapSigns),o.Db(8),o.oc("ngForOf",e.links))},directives:[S.c,S.b,w.a,S.a,V.a,V.b,et.e,a.n,i.l,et.d,i.h],styles:[""]}),t})();var wa=n("zQhy"),Da=n("zHaW"),Va=n("dEYt");function Ca(t,e){1&t&&(o.Vb(0,"th",24),o.Kc(1,"Address"),o.Ub())}function Ua(t,e){if(1&t&&(o.Vb(0,"td",25),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",t," ")}}function Ia(t,e){1&t&&(o.Vb(0,"th",26),o.Vb(1,"span",27),o.Kc(2,"Actions"),o.Ub(),o.Ub())}function La(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",28),o.Vb(1,"span",27),o.Vb(2,"button",29),o.dc("copied",function(e){return o.zc(t),o.hc(2).onCopyNodeURI(e)}),o.Kc(3,"Copy Node URI"),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=e.$implicit,n=o.hc(2);o.Db(2),o.oc("payload",n.lookupResult.nodeId+"@"+t)}}function Aa(t,e){1&t&&o.Qb(0,"tr",30)}function Fa(t,e){1&t&&o.Qb(0,"tr",31)}const ka=function(t){return{"background-color":t}};function Pa(t,e){if(1&t&&(o.Vb(0,"div",1),o.Qb(1,"mat-divider",2),o.Vb(2,"div",3),o.Vb(3,"div",4),o.Vb(4,"h4",5),o.Kc(5,"Pub Key"),o.Ub(),o.Vb(6,"span",6),o.Kc(7),o.Ub(),o.Ub(),o.Ub(),o.Qb(8,"mat-divider",7),o.Vb(9,"div",3),o.Vb(10,"div",4),o.Vb(11,"h4",5),o.Kc(12,"Signature"),o.Ub(),o.Vb(13,"span",8),o.Kc(14),o.Ub(),o.Ub(),o.Ub(),o.Qb(15,"mat-divider",7),o.Vb(16,"div",3),o.Vb(17,"div",9),o.Vb(18,"h4",5),o.Kc(19,"Alias"),o.Ub(),o.Vb(20,"span",8),o.Kc(21),o.Vb(22,"span",10),o.Kc(23),o.Ub(),o.Ub(),o.Ub(),o.Vb(24,"div",9),o.Vb(25,"h4",5),o.Kc(26,"Date/Time"),o.Ub(),o.Vb(27,"span",8),o.Kc(28),o.Ub(),o.Ub(),o.Ub(),o.Vb(29,"div",11),o.Vb(30,"h4",12),o.Kc(31,"Addresses"),o.Ub(),o.Vb(32,"div",13),o.Vb(33,"table",14,15),o.Tb(35,16),o.Ic(36,Ca,2,0,"th",17),o.Ic(37,Ua,2,1,"td",18),o.Sb(),o.Tb(38,19),o.Ic(39,Ia,3,0,"th",20),o.Ic(40,La,4,1,"td",21),o.Sb(),o.Ic(41,Aa,1,0,"tr",22),o.Ic(42,Fa,1,0,"tr",23),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(t.lookupResult.nodeId),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(t.lookupResult.signature),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(t.lookupResult.alias),o.Db(1),o.oc("ngStyle",o.sc(12,ka,t.lookupResult.rgbColor)),o.Db(1),o.Lc(t.lookupResult.rgbColor?t.lookupResult.rgbColor:""),o.Db(5),o.Lc(t.lookupResult.timestampStr),o.Db(5),o.oc("dataSource",t.addresses),o.Db(8),o.oc("matHeaderRowDef",t.displayedColumns),o.Db(1),o.oc("matRowDefColumns",t.displayedColumns)}}let Oa=(()=>{class t{constructor(t,e){this.logger=t,this.snackBar=e,this.displayedColumns=["address","actions"]}ngOnInit(){this.addresses=new it.o(this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses?this.lookupResult.addresses:[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null}onCopyNodeURI(t){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(Da.b))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-node-lookup"]],viewQuery:function(t,e){if(1&t&&o.Pc(at.a,!0),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first)}},inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text","w-100"],[1,"my-1",3,"inset"],[1,"foreground-secondary-text"],["fxFlex","50"],[1,"ml-2",3,"ngStyle"],["fxLayout","column",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","address"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&o.Ic(0,Pa,43,14,"div",0),2&t&&o.oc("ngIf",e.lookupResult)},directives:[a.o,S.c,M.a,S.a,S.b,a.p,L.b,E.b,it.n,at.a,it.c,it.i,it.b,it.k,it.m,it.h,at.b,it.a,U.a,Va.a,it.j,it.l],styles:[""]}),t})();const Ta=["form"];function Ra(t,e){if(1&t&&(o.Vb(0,"mat-error"),o.Kc(1),o.Ub()),2&t){const t=o.hc();o.Db(1),o.Mc("",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder," is required.")}}function Ka(t,e){if(1&t&&(o.Vb(0,"mat-error"),o.Kc(1),o.Ub()),2&t){const t=o.hc();o.Db(1),o.Mc("Invalid ",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder,".")}}function Ma(t,e){if(1&t&&(o.Vb(0,"div"),o.Qb(1,"rtl-ecl-node-lookup",29),o.Ub()),2&t){const t=o.hc(3);o.Db(1),o.oc("lookupResult",t.nodeLookupValue)}}function Ea(t,e){if(1&t&&(o.Vb(0,"span",27),o.Ic(1,Ma,2,1,"div",28),o.Ub()),2&t){const t=o.hc(2),e=o.wc(26);o.Db(1),o.oc("ngIf",t.nodeLookupValue.nodeId)("ngIfElse",e)}}function za(t,e){1&t&&(o.Vb(0,"span",27),o.Vb(1,"h3"),o.Kc(2,"Error! Unable to find details!"),o.Ub(),o.Ub())}function Ba(t,e){if(1&t&&(o.Vb(0,"div",21),o.Vb(1,"div",22),o.Vb(2,"span",23),o.Kc(3),o.Ub(),o.Ub(),o.Vb(4,"div",24),o.Ic(5,Ea,2,2,"span",25),o.Ic(6,za,3,0,"span",26),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(3),o.Mc("",t.lookupFields[t.selectedFieldId].name," Details"),o.Db(1),o.oc("ngSwitch",t.selectedFieldId),o.Db(1),o.oc("ngSwitchCase",0)}}function qa(t,e){1&t&&(o.Vb(0,"h3"),o.Kc(1,"Error! Unable to find details!"),o.Ub())}const Na=function(t){return{"mt-2":t}};let Ha=(()=>{class t{constructor(t,e,n,a){this.logger=t,this.commonService=e,this.store=n,this.actions$=a,this.lookupKeyCtrl=new ct.e,this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Node ID"},{id:1,name:"Channel",placeholder:"Short Channel ID"}],this.flgLoading=[!0],this.faSearch=m.F,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions$.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t.type===p.cb||t.type===p.j)).subscribe(t=>{if(t.type===p.cb){switch(this.flgLoading[0]=!0,this.selectedFieldId){case 0:this.nodeLookupValue=t.payload[0]?JSON.parse(JSON.stringify(t.payload[0])):{nodeid:""};break;case 1:this.channelLookupValue=t.payload?JSON.parse(JSON.stringify(t.payload)):[]}this.flgSetLookupValue=!0,this.logger.info(this.nodeLookupValue),this.logger.info(this.channelLookupValue)}t.type===p.j&&"Lookup"===t.payload.action&&(this.flgLoading[0]="error")}),this.lookupKeyCtrl.valueChanges.pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1})}onLookup(){if(!this.lookupKeyCtrl.value)return this.lookupKeyCtrl.setErrors({required:!0}),!0;if(this.lookupKeyCtrl.value&&(this.lookupKeyCtrl.value.includes("@")||this.lookupKeyCtrl.value.includes(",")))return this.lookupKeyCtrl.setErrors({invalid:!0}),!0;switch(this.selectedFieldId||(this.selectedFieldId=0),this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.store.dispatch(new st.F("Searching "+this.lookupFields[this.selectedFieldId].name+"...")),this.selectedFieldId){case 0:this.store.dispatch(new p.I(this.lookupKeyCtrl.value.trim()))}}onSelectChange(t){this.resetData(),this.selectedFieldId=t.value}resetData(){this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.lookupKeyCtrl.setValue(""),this.lookupKeyCtrl.setErrors(null),this.form.resetForm()}clearLookupValue(){this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(v.a),o.Pb(y.h),o.Pb(x.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-lookups"]],viewQuery:function(t,e){if(1&t&&o.Ec(Ta,!0),2&t){let t;o.vc(t=o.ec())&&(e.form=t.first)}},decls:27,vars:10,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","20","fxFlex.gt-md","15","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField"],["checked","",1,"mr-4",3,"value"],["fxFlex","80","fxFlex.gt-md","85","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"formControl","placeholder"],["key",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],["errorBlock",""],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Qb(2,"fa-icon",2),o.Vb(3,"span",3),o.Kc(4,"Graph Lookups"),o.Ub(),o.Ub(),o.Vb(5,"div",4),o.Vb(6,"mat-card",5),o.Vb(7,"mat-card-content",6),o.Vb(8,"form",7,8),o.Vb(10,"div",9),o.Vb(11,"mat-radio-group",10),o.Vb(12,"mat-radio-button",11),o.Kc(13,"Node"),o.Ub(),o.Ub(),o.Ub(),o.Vb(14,"mat-form-field",12),o.Qb(15,"input",13,14),o.Ic(17,Ra,2,1,"mat-error",15),o.Ic(18,Ka,2,1,"mat-error",15),o.Ub(),o.Vb(19,"div",16),o.Vb(20,"button",17),o.dc("click",function(){return e.resetData()}),o.Kc(21,"Clear"),o.Ub(),o.Vb(22,"button",18),o.dc("click",function(){return e.onLookup()}),o.Kc(23,"Lookup"),o.Ub(),o.Ub(),o.Ub(),o.Ic(24,Ba,7,3,"div",19),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ic(25,qa,2,0,"ng-template",null,20,o.Jc)),2&t&&(o.Db(2),o.oc("icon",e.faSearch),o.Db(10),o.oc("value",0),o.Db(2),o.oc("ngClass",o.sc(8,Na,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),o.Db(1),o.oc("formControl",e.lookupKeyCtrl)("placeholder",(null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder)||"Lookup Key"),o.Db(2),o.oc("ngIf",null==e.lookupKeyCtrl.errors?null:e.lookupKeyCtrl.errors.required),o.Db(1),o.oc("ngIf",null==e.lookupKeyCtrl.errors?null:e.lookupKeyCtrl.errors.invalid),o.Db(6),o.oc("ngIf",e.flgSetLookupValue))},directives:[S.c,S.b,w.a,S.a,V.a,V.b,ct.u,ct.n,ct.o,wa.b,wa.a,R.c,a.m,L.a,lt.b,ct.c,ct.s,ct.m,ct.f,a.o,U.a,R.b,a.q,a.r,a.s,Oa],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),t})();var Qa=n("Ysfc");let ja=(()=>{class t{constructor(t,e){this.store=t,this.eclEffects=e,this.newAddress=""}ngOnInit(){}onGenerateAddress(){this.store.dispatch(new st.F("Getting New Address...")),this.store.dispatch(new p.E),this.eclEffects.setNewAddress.pipe(Object(te.a)(1)).subscribe(t=>{this.newAddress=t,this.store.dispatch(new st.C({width:"58%",data:{address:this.newAddress,addressType:"",component:Qa.a}}))})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(y.h),o.Pb(ee.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-on-chain-receive"]],decls:4,vars:0,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row",1,"mt-1"],["mat-flat-button","","color","primary","tabindex","1",1,"top-minus-15px",3,"click"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"button",2),o.dc("click",function(){return e.onGenerateAddress()}),o.Kc(3,"Generate Address"),o.Ub(),o.Ub(),o.Ub())},directives:[S.c,S.a,S.b,U.a],styles:[""]}),t})(),$a=(()=>{class t{constructor(t,e){this.store=t,this.activatedRoute=e,this.sweepAll=!1,this.unSubs=[new b.a,new b.a]}ngOnInit(){this.activatedRoute.data.pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>this.sweepAll=t.sweepAll)}openSendFundsModal(){this.store.dispatch(new st.C({data:{sweepAll:this.sweepAll,component:Bn}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(y.h),o.Pb(i.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-on-chain-send"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"button",2),o.dc("click",function(){return e.openSendFundsModal()}),o.Kc(3),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(3),o.Lc(e.sweepAll?"Sweep All":"Send Funds"))},directives:[S.c,S.a,S.b,U.a],styles:[""]}),t})();var _a=n("JX91"),Ja=n("lJxs"),Xa=n("hNFU"),Ga=n("jMqV"),Wa=n("vrAh");const Ya=["form"];function Za(t,e){if(1&t&&(o.Vb(0,"mat-option",35),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.oc("value",t),o.Db(1),o.Lc(t.alias?t.alias:t.nodeId?t.nodeId:"")}}function ti(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Peer alias is required."),o.Ub())}function ei(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Peer not found in the list."),o.Ub())}function ni(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-form-field",23),o.Vb(1,"input",31),o.dc("change",function(){return o.zc(t),o.hc().onSelectedPeerChanged()}),o.Ub(),o.Vb(2,"mat-autocomplete",32,33),o.dc("optionSelected",function(){return o.zc(t),o.hc().onSelectedPeerChanged()}),o.Ic(4,Za,2,2,"mat-option",34),o.ic(5,"async"),o.Ub(),o.Ic(6,ti,2,0,"mat-error",17),o.Ic(7,ei,2,0,"mat-error",17),o.Ub()}if(2&t){const t=o.wc(3),e=o.hc();o.Db(1),o.oc("formControl",e.selectedPeer)("matAutocomplete",t),o.Db(1),o.oc("displayWith",e.displayFn),o.Db(2),o.oc("ngForOf",o.jc(5,6,e.filteredPeers)),o.Db(2),o.oc("ngIf",null==e.selectedPeer.errors?null:e.selectedPeer.errors.required),o.Db(1),o.oc("ngIf",null==e.selectedPeer.errors?null:e.selectedPeer.errors.notfound)}}function ai(t,e){1&t&&o.Rb(0)}function ii(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Amount is required."),o.Ub())}function oi(t,e){if(1&t&&(o.Vb(0,"mat-error"),o.Kc(1),o.Ub()),2&t){const t=o.hc();o.Db(1),o.Mc("Amount must be less than or equal to ",t.totalBalance,".")}}function si(t,e){if(1&t&&(o.Vb(0,"span"),o.Kc(1),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Lc(t.channelConnectionError)}}function ci(t,e){if(1&t&&(o.Vb(0,"div",36),o.Qb(1,"fa-icon",37),o.Ic(2,si,2,1,"span",17),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("icon",t.faExclamationTriangle),o.Db(1),o.oc("ngIf",""!==t.channelConnectionError)}}function li(t,e){if(1&t&&(o.Vb(0,"mat-expansion-panel",39),o.Vb(1,"mat-expansion-panel-header"),o.Vb(2,"mat-panel-title"),o.Vb(3,"span"),o.Kc(4,"Peer: \xa0"),o.Ub(),o.Vb(5,"strong",40),o.Kc(6),o.Ub(),o.Ub(),o.Ub(),o.Vb(7,"div",9),o.Vb(8,"div",0),o.Vb(9,"div",23),o.Vb(10,"h4",41),o.Kc(11,"Pubkey"),o.Ub(),o.Vb(12,"span",42),o.Kc(13),o.Ub(),o.Ub(),o.Ub(),o.Qb(14,"mat-divider",43),o.Vb(15,"div",0),o.Vb(16,"div",44),o.Vb(17,"h4",41),o.Kc(18,"Address"),o.Ub(),o.Vb(19,"span",45),o.Kc(20),o.Ub(),o.Ub(),o.Vb(21,"div",44),o.Vb(22,"h4",41),o.Kc(23,"State"),o.Ub(),o.Vb(24,"span",45),o.Kc(25),o.ic(26,"titlecase"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=o.hc(2);o.Db(6),o.Lc((null==t.peer?null:t.peer.alias)||(null==t.peer?null:t.peer.nodeId)),o.Db(7),o.Lc(t.peer.nodeId),o.Db(7),o.Lc(null==t.peer?null:t.peer.address),o.Db(5),o.Lc(o.jc(26,4,null==t.peer?null:t.peer.state))}}function ri(t,e){if(1&t&&o.Ic(0,li,27,6,"mat-expansion-panel",38),2&t){const t=o.hc();o.oc("ngIf",t.peer)}}let bi=(()=>{class t{constructor(t,e,n,a){this.dialogRef=t,this.data=e,this.store=n,this.actions$=a,this.selectedPeer=new ct.e,this.faExclamationTriangle=m.o,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.feeRate=null,this.unSubs=[new b.a,new b.a]}ngOnInit(){this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.alertTitle=this.data.alertTitle,this.peer=this.data.message.peer?this.data.message.peer:null,this.peers=this.data.message.peers&&this.data.message.peers.length?this.data.message.peers:[],this.actions$.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t.type===p.j||t.type===p.l)).subscribe(t=>{t.type===p.j&&"SaveNewChannel"===t.payload.action&&(this.channelConnectionError=t.payload.message),t.type===p.l&&this.dialogRef.close()});let t="",e="";this.sortedPeers=this.peers.sort((n,a)=>(t=n.alias?n.alias.toLowerCase():n.nodeId?n.nodeId.toLowerCase():"",e=a.alias?a.alias.toLowerCase():n.nodeId.toLowerCase(),te?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe(Object(d.a)(this.unSubs[1]),Object(_a.a)(""),Object(Ja.a)(t=>"string"==typeof t?t:t.alias?t.alias:t.nodeId),Object(Ja.a)(t=>t?this.filterPeers(t):this.sortedPeers.slice()))}filterPeers(t){return this.sortedPeers.filter(e=>0===e.alias.toLowerCase().indexOf(t?t.toLowerCase():""))}displayFn(t){return t&&t.alias?t.alias:t&&t.nodeId?t.nodeId:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.nodeId?this.selectedPeer.value.nodeId:void 0,"string"==typeof this.selectedPeer.value){let t=this.peers.filter(t=>t.alias.length===this.selectedPeer.value.length&&0===t.alias.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===t.length&&t[0].nodeId&&(this.selectedPubkey=t[0].nodeId)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.feeRate=null,this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onAdvancedPanelToggle(t){this.advancedTitle=t&&this.feeRate&&this.feeRate>0?"Advanced Options | Fee (Sats/Byte): "+this.feeRate:"Advanced Options"}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0)return!0;this.store.dispatch(new st.F("Opening Channel...")),this.store.dispatch(new p.kb({nodeId:this.peer&&this.peer.nodeId?this.peer.nodeId:this.selectedPubkey,amount:this.fundingAmount,private:this.isPrivate,feeRate:this.feeRate}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(ot.f),o.Pb(ot.a),o.Pb(y.h),o.Pb(x.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-open-channel"]],viewQuery:function(t,e){if(1&t&&o.Ec(Ya,!0),2&t){let t;o.vc(t=o.ec())&&(e.form=t.first)}},decls:48,vars:19,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","70","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amount",3,"ngModel","step","min","max","ngModelChange"],["amount","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","25","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","100"],["matInput","","placeholder","Fee (Sats/Byte)","type","number","name","fee","tabindex","7",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"mat-card-header",2),o.Vb(3,"div",3),o.Vb(4,"span",4),o.Kc(5),o.Ub(),o.Ub(),o.Vb(6,"button",5),o.dc("click",function(){return e.onClose()}),o.Kc(7,"X"),o.Ub(),o.Ub(),o.Vb(8,"mat-card-content",6),o.Vb(9,"form",7,8),o.dc("submit",function(){return e.onOpenChannel()})("reset",function(){return e.resetData()}),o.Vb(11,"div",9),o.Ic(12,ni,8,8,"mat-form-field",10),o.Ub(),o.Ic(13,ai,1,0,"ng-container",11),o.Vb(14,"div",9),o.Vb(15,"div",12),o.Vb(16,"mat-form-field",13),o.Vb(17,"input",14,15),o.dc("ngModelChange",function(t){return e.fundingAmount=t}),o.Ub(),o.Vb(19,"mat-hint"),o.Kc(20),o.ic(21,"number"),o.Ub(),o.Vb(22,"span",16),o.Kc(23),o.Ub(),o.Ic(24,ii,2,0,"mat-error",17),o.Ic(25,oi,2,1,"mat-error",17),o.Ub(),o.Vb(26,"div",18),o.Vb(27,"mat-slide-toggle",19),o.dc("ngModelChange",function(t){return e.isPrivate=t}),o.Kc(28,"Private Channel"),o.Ub(),o.Ub(),o.Ub(),o.Vb(29,"mat-expansion-panel",20),o.dc("closed",function(){return e.onAdvancedPanelToggle(!0)})("opened",function(){return e.onAdvancedPanelToggle(!1)}),o.Vb(30,"mat-expansion-panel-header"),o.Vb(31,"mat-panel-title"),o.Vb(32,"span"),o.Kc(33),o.Ub(),o.Ub(),o.Ub(),o.Vb(34,"div",21),o.Vb(35,"div",12),o.Vb(36,"div",22),o.Vb(37,"mat-form-field",23),o.Vb(38,"input",24,25),o.dc("ngModelChange",function(t){return e.feeRate=t}),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ic(40,ci,3,2,"div",26),o.Vb(41,"div",27),o.Vb(42,"button",28),o.Kc(43,"Clear Fields"),o.Ub(),o.Vb(44,"button",29),o.Kc(45,"Open Channel"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ic(46,ri,1,1,"ng-template",null,30,o.Jc)),2&t){const t=o.wc(18),n=o.wc(47);o.Db(5),o.Lc(e.alertTitle),o.Db(7),o.oc("ngIf",!e.peer&&e.peers&&e.peers.length>0),o.Db(1),o.oc("ngTemplateOutlet",n),o.Db(4),o.oc("ngModel",e.fundingAmount)("step",1e3)("min",1)("max",e.totalBalance),o.Db(3),o.Mc("Remaining Bal: ",o.jc(21,17,e.totalBalance-(e.fundingAmount?e.fundingAmount:0)),""),o.Db(3),o.Mc(" ",null==e.information?null:e.information.smaller_currency_unit," "),o.Db(1),o.oc("ngIf",null==t.errors?null:t.errors.required),o.Db(1),o.oc("ngIf",null==t.errors?null:t.errors.max),o.Db(2),o.oc("ngModel",e.isPrivate),o.Db(6),o.Lc(e.advancedTitle),o.Db(5),o.oc("ngModel",e.feeRate)("step",1)("min",0),o.Db(2),o.oc("ngIf",""!==e.channelConnectionError)}},directives:[S.c,S.a,V.c,S.b,U.a,V.b,ct.u,ct.n,ct.o,a.o,a.t,R.c,lt.b,ct.q,ct.c,bt.a,Xa.a,ct.s,ct.m,ct.p,R.f,R.g,Ga.a,ue.c,ue.e,ue.f,rt.a,Wa.c,ct.f,Wa.a,a.n,ut.m,R.b,w.a,M.a],pipes:[a.f,a.b,a.x],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),t})();function di(t,e){if(1&t&&(o.Vb(0,"span",7),o.Kc(1,"Open"),o.Ub()),2&t){const t=o.hc();o.pc("matBadge",t.numOfOpenChannels)}}function ui(t,e){if(1&t&&(o.Vb(0,"span",7),o.Kc(1,"Pending"),o.Ub()),2&t){const t=o.hc();o.pc("matBadge",t.numOfPendingChannels)}}function hi(t,e){if(1&t&&(o.Vb(0,"span",7),o.Kc(1,"Inactive"),o.Ub()),2&t){const t=o.hc();o.pc("matBadge",t.numOfInactiveChannels)}}let mi=(()=>{class t{constructor(t,e,n){this.logger=t,this.store=e,this.router=n,this.numOfOpenChannels=0,this.numOfPendingChannels=0,this.numOfInactiveChannels=0,this.selNode={},this.information={},this.peers=[],this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"inactive",name:"Inactive"}],this.activeLink=0,this.unSubs=[new b.a,new b.a]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t instanceof i.f)).subscribe(t=>{this.activeLink=this.links.findIndex(e=>e.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}),this.store.select("ecl").pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.numOfOpenChannels=t.channelsStatus&&t.channelsStatus.active&&t.channelsStatus.active.channels?t.channelsStatus.active.channels:0,this.numOfPendingChannels=t.channelsStatus&&t.channelsStatus.pending&&t.channelsStatus.pending.channels?t.channelsStatus.pending.channels:0,this.numOfInactiveChannels=t.channelsStatus&&t.channelsStatus.inactive&&t.channelsStatus.inactive.channels?t.channelsStatus.inactive.channels:0,this.selNode=t.nodeSettings,this.information=t.information,this.peers=t.peers,this.totalBalance=t.onchainBalance.total,this.logger.info(t)})}onOpenChannel(){this.store.dispatch(new st.C({data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:bi}}))}onSelectedTabChange(t){this.router.navigateByUrl("/ecl/connections/channels/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(y.h),o.Pb(i.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-channels-tables"]],decls:14,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"mt-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"button",2),o.dc("click",function(){return e.onOpenChannel()}),o.Kc(3,"Open Channel"),o.Ub(),o.Ub(),o.Vb(4,"div",3),o.Vb(5,"mat-tab-group",4),o.dc("selectedIndexChange",function(t){return e.activeLink=t})("selectedTabChange",function(t){return e.onSelectedTabChange(t)}),o.Vb(6,"mat-tab"),o.Ic(7,di,2,1,"ng-template",5),o.Ub(),o.Vb(8,"mat-tab"),o.Ic(9,ui,2,1,"ng-template",5),o.Ub(),o.Vb(10,"mat-tab"),o.Ic(11,hi,2,1,"ng-template",5),o.Ub(),o.Ub(),o.Vb(12,"div",6),o.Qb(13,"router-outlet"),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(5),o.oc("selectedIndex",e.activeLink))},directives:[S.c,S.a,S.b,U.a,et.b,et.a,et.c,i.l,ma.a],styles:[""]}),t})();function fi(t,e){if(1&t&&(o.Vb(0,"div",11),o.Vb(1,"h4",12),o.Kc(2,"Short Channel ID"),o.Ub(),o.Vb(3,"span",13),o.Kc(4),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(4),o.Lc(t.channel.shortChannelId)}}function pi(t,e){if(1&t&&(o.Vb(0,"div",11),o.Vb(1,"h4",12),o.Kc(2,"State"),o.Ub(),o.Vb(3,"span",16),o.Kc(4),o.ic(5,"titlecase"),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(4),o.Lc(o.jc(5,1,t.channel.state))}}function gi(t,e){if(1&t&&(o.Vb(0,"div"),o.Qb(1,"mat-divider",14),o.Vb(2,"div",9),o.Vb(3,"div",11),o.Vb(4,"h4",12),o.Kc(5,"Base Fee (mSats)"),o.Ub(),o.Vb(6,"span",16),o.Kc(7),o.ic(8,"number"),o.Ub(),o.Ub(),o.Vb(9,"div",11),o.Vb(10,"h4",12),o.Kc(11,"Fee Rate (mSats)"),o.Ub(),o.Vb(12,"span",16),o.Kc(13),o.Ub(),o.Ub(),o.Ub(),o.Qb(14,"mat-divider",14),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(o.jc(8,4,t.channel.feeBaseMsat)),o.Db(6),o.Lc(t.channel.feeProportionalMillionths),o.Db(1),o.oc("inset",!0)}}function yi(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"Show Advanced"),o.Ub())}function xi(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"Hide Advanced"),o.Ub())}function vi(t,e){if(1&t){const t=o.Wb();o.Vb(0,"button",22),o.dc("click",function(){return o.zc(t),o.hc().onShowAdvanced()}),o.Ic(1,yi,2,0,"p",23),o.Ic(2,xi,2,0,"ng-template",null,24,o.Jc),o.Ub()}if(2&t){const t=o.wc(3),e=o.hc();o.Db(1),o.oc("ngIf",!e.showAdvanced)("ngIfElse",t)}}function Si(t,e){if(1&t){const t=o.Wb();o.Vb(0,"button",25),o.dc("copied",function(e){return o.zc(t),o.hc().onCopyChanID(e)}),o.Kc(1,"Copy Short Channel ID"),o.Ub()}if(2&t){const t=o.hc();o.oc("payload",t.channel.shortChannelId)}}function wi(t,e){if(1&t){const t=o.Wb();o.Vb(0,"button",26),o.dc("copied",function(e){return o.zc(t),o.hc().onCopyChanID(e)}),o.Kc(1,"Copy Channel ID"),o.Ub()}if(2&t){const t=o.hc();o.oc("payload",t.channel.channelId)}}const Di=function(t){return{"xs-scroll-y":t}},Vi=function(t,e){return{"mt-2":t,"mt-1":e}};let Ci=(()=>{class t{constructor(t,e,n,a,i){this.dialogRef=t,this.data=e,this.logger=n,this.commonService=a,this.snackBar=i,this.faReceipt=m.D,this.showAdvanced=!1,this.channelsType="open",this.screenSize="",this.screenSizeEnum=f.q}ngOnInit(){this.channel=this.data.channel,this.channelsType=this.data.channelsType,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(t){this.snackBar.open("open"===this.channelsType?"Short channel ID "+t+" copied.":"Channel ID copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(ot.f),o.Pb(ot.a),o.Pb(g.b),o.Pb(v.a),o.Pb(Da.b))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-channel-information"]],decls:64,vars:29,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"padding-gap-large","pl-3"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-1"],["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"],[3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50",4,"ngIf"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-stroked-button","","color","primary","type","reset","tabindex","1","class","mr-1",3,"click",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-flat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"mat-card-header",2),o.Vb(3,"div",3),o.Qb(4,"fa-icon",4),o.Vb(5,"span",5),o.Kc(6,"Channel Information"),o.Ub(),o.Ub(),o.Vb(7,"button",6),o.dc("click",function(){return e.onClose()}),o.Kc(8,"X"),o.Ub(),o.Ub(),o.Vb(9,"mat-card-content",7),o.Vb(10,"div",8),o.Vb(11,"div",9),o.Ic(12,fi,5,1,"div",10),o.Vb(13,"div",11),o.Vb(14,"h4",12),o.Kc(15,"Peer Alias"),o.Ub(),o.Vb(16,"span",13),o.Kc(17),o.Ub(),o.Ub(),o.Ic(18,pi,6,3,"div",10),o.Ub(),o.Qb(19,"mat-divider",14),o.Vb(20,"div",9),o.Vb(21,"div",15),o.Vb(22,"h4",12),o.Kc(23,"Channel ID"),o.Ub(),o.Vb(24,"span",13),o.Kc(25),o.Ub(),o.Ub(),o.Ub(),o.Qb(26,"mat-divider",14),o.Vb(27,"div",9),o.Vb(28,"div",15),o.Vb(29,"h4",12),o.Kc(30,"Peer Public Key"),o.Ub(),o.Vb(31,"span",13),o.Kc(32),o.Ub(),o.Ub(),o.Ub(),o.Qb(33,"mat-divider",14),o.Vb(34,"div",9),o.Vb(35,"div",11),o.Vb(36,"h4",12),o.Kc(37,"Local Balance (Sats)"),o.Ub(),o.Vb(38,"span",16),o.Kc(39),o.ic(40,"number"),o.Ub(),o.Ub(),o.Vb(41,"div",11),o.Vb(42,"h4",12),o.Kc(43,"Remote Balance (Sats)"),o.Ub(),o.Vb(44,"span",16),o.Kc(45),o.ic(46,"number"),o.Ub(),o.Ub(),o.Ub(),o.Qb(47,"mat-divider",14),o.Vb(48,"div",9),o.Vb(49,"div",11),o.Vb(50,"h4",12),o.Kc(51,"Private"),o.Ub(),o.Vb(52,"span",16),o.Kc(53),o.Ub(),o.Ub(),o.Vb(54,"div",11),o.Vb(55,"h4",12),o.Kc(56,"Funder"),o.Ub(),o.Vb(57,"span",16),o.Kc(58),o.Ub(),o.Ub(),o.Ub(),o.Ic(59,gi,15,6,"div",17),o.Vb(60,"div",18),o.Ic(61,vi,4,2,"button",19),o.Ic(62,Si,2,1,"button",20),o.Ic(63,wi,2,1,"button",21),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(4),o.oc("icon",e.faReceipt),o.Db(5),o.oc("ngClass",o.sc(24,Di,e.screenSize===e.screenSizeEnum.XS)),o.Db(3),o.oc("ngIf","open"===e.channelsType),o.Db(5),o.Lc(e.channel.alias),o.Db(1),o.oc("ngIf","open"!==e.channelsType),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(e.channel.channelId),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(e.channel.nodeId),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(o.jc(40,20,e.channel.toLocal)),o.Db(6),o.Lc(o.jc(46,22,e.channel.toRemote)),o.Db(2),o.oc("inset",!0),o.Db(6),o.Lc(0===e.channel.channelFlags?"Yes":"No"),o.Db(5),o.Lc(e.channel.isFunder?"Yes":"No"),o.Db(1),o.oc("ngIf",e.showAdvanced&&"open"===e.channelsType),o.Db(1),o.oc("ngClass",o.tc(26,Vi,!e.showAdvanced,e.showAdvanced)),o.Db(1),o.oc("ngIf","open"===e.channelsType),o.Db(1),o.oc("ngIf","open"===e.channelsType),o.Db(1),o.oc("ngIf","open"!==e.channelsType))},directives:[S.c,S.b,S.a,V.c,w.a,U.a,V.b,a.m,L.a,a.o,M.a,rt.a,Va.a],pipes:[a.f,a.x],styles:[""]}),t})();function Ui(t,e){1&t&&o.Qb(0,"mat-progress-bar",28)}function Ii(t,e){1&t&&(o.Vb(0,"th",29),o.Kc(1," Short Channel ID "),o.Ub())}function Li(t,e){if(1&t&&(o.Vb(0,"span",35),o.Qb(1,"fa-icon",36),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.oc("icon",t.faEyeSlash)}}function Ai(t,e){if(1&t&&(o.Vb(0,"span",37),o.Qb(1,"fa-icon",36),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.oc("icon",t.faEye)}}const Fi=function(t){return{"max-width":t}};function ki(t,e){if(1&t&&(o.Vb(0,"td",30),o.Vb(1,"div",31),o.Ic(2,Li,2,1,"span",32),o.Ic(3,Ai,2,1,"span",33),o.Vb(4,"span",34),o.Kc(5),o.Ub(),o.Ub(),o.Ub()),2&t){const t=e.$implicit,n=o.hc();o.Db(1),o.oc("ngStyle",o.sc(4,Fi,n.screenSize===n.screenSizeEnum.XS?"10rem":"22rem")),o.Db(1),o.oc("ngIf",0===t.channelFlags),o.Db(1),o.oc("ngIf",0!==t.channelFlags),o.Db(2),o.Lc(null==t?null:t.shortChannelId)}}function Pi(t,e){1&t&&(o.Vb(0,"th",29),o.Kc(1," Alias "),o.Ub())}function Oi(t,e){if(1&t&&(o.Vb(0,"td",30),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(t.alias)}}function Ti(t,e){1&t&&(o.Vb(0,"th",38),o.Kc(1," Local Balance (Sats) "),o.Ub())}function Ri(t,e){if(1&t&&(o.Vb(0,"td",30),o.Vb(1,"span",39),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.kc(3,1,null==t?null:t.toLocal,"1.0-0")," ")}}function Ki(t,e){1&t&&(o.Vb(0,"th",38),o.Kc(1," Remote Balance (Sats) "),o.Ub())}function Mi(t,e){if(1&t&&(o.Vb(0,"td",30),o.Vb(1,"span",39),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.kc(3,1,null==t?null:t.toRemote,"1.0-0")," ")}}function Ei(t,e){1&t&&(o.Vb(0,"th",40),o.Kc(1,"Balance Score "),o.Ub())}function zi(t,e){if(1&t&&(o.Vb(0,"td",41),o.Vb(1,"div",42),o.Vb(2,"mat-hint",43),o.Kc(3),o.ic(4,"number"),o.Ub(),o.Ub(),o.Qb(5,"mat-progress-bar",44),o.Ub()),2&t){const t=e.$implicit;o.Db(3),o.Lc(o.jc(4,2,(null==t?null:t.balancedness)||0)),o.Db(2),o.pc("value",t.toLocal&&t.toLocal>0?+t.toLocal/(+t.toLocal+ +t.toRemote)*100:0)}}function Bi(t,e){if(1&t){const t=o.Wb();o.Vb(0,"th",45),o.Vb(1,"div",46),o.Vb(2,"mat-select",47),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",48),o.dc("click",function(){return o.zc(t),o.hc().onChannelUpdate("all")}),o.Kc(5,"Update Fee Policy"),o.Ub(),o.Vb(6,"mat-option",48),o.dc("click",function(){return o.zc(t),o.hc().onDownloadCSV()}),o.Kc(7,"Download CSV"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function qi(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",49),o.Vb(1,"div",50),o.Vb(2,"mat-select",51),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",48),o.dc("click",function(n){o.zc(t);const a=e.$implicit;return o.hc().onChannelClick(a,n)}),o.Kc(5,"View Info"),o.Ub(),o.Vb(6,"mat-option",48),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().onChannelUpdate(n)}),o.Kc(7,"Update Fee Policy"),o.Ub(),o.Vb(8,"mat-option",48),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().onChannelClose(n,!1)}),o.Kc(9,"Close Channel"),o.Ub(),o.Vb(10,"mat-option",48),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().onChannelClose(n,!0)}),o.Kc(11,"Force Close"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function Ni(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No peers connected. Add a peer in order to open a channel."),o.Ub())}function Hi(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No open channels available."),o.Ub())}function Qi(t,e){if(1&t&&(o.Vb(0,"td",52),o.Ic(1,Ni,2,0,"p",53),o.Ic(2,Hi,2,0,"p",53),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)),o.Db(1),o.oc("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1))}}const ji=function(t){return{"display-none":t}};function $i(t,e){if(1&t&&o.Qb(0,"tr",54),2&t){const t=o.hc();o.oc("ngClass",o.sc(1,ji,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function _i(t,e){1&t&&o.Qb(0,"tr",55)}function Ji(t,e){1&t&&o.Qb(0,"tr",56)}const Xi=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},Gi=function(){return["no_peer"]};let Wi=(()=>{class t{constructor(t,e,n,a,i){this.logger=t,this.store=e,this.rtlEffects=n,this.eclEffects=a,this.commonService=i,this.faEye=m.p,this.faEyeSlash=m.q,this.totalBalance=0,this.displayedColumns=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=f.j,this.flgLoading=[!0],this.selFilter="",this.flgSticky=!1,this.pageSize=f.n,this.pageSizeOptions=f.o,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["shortChannelId","alias","actions"]):this.screenSize===f.q.SM||this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["shortChannelId","alias","toLocal","toRemote","actions"]):(this.flgSticky=!0,this.displayedColumns=["shortChannelId","alias","toLocal","toRemote","balancedness","actions"])}ngOnInit(){this.store.select("ecl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{t.effectErrors.forEach(t=>{"FetchChannels"===t.action&&(this.flgLoading[0]="error")}),this.information=t.information,this.numPeers=t.peers&&t.peers.length?t.peers.length:0,this.totalBalance=t.onchainBalance.total,this.activeChannels=t.activeChannels,this.loadChannelsTable(),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!t.activeChannels),this.logger.info(t)})}ngAfterViewInit(){this.activeChannels.length>0&&this.loadChannelsTable()}onChannelUpdate(t){"all"!==t&&"NORMAL"!==t.state||(this.store.dispatch(new st.D({data:{type:f.b.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:[],titleMessage:"all"===t?"Update fee policy for selected/all channels":"Update fee policy for Channel: "+t.channelId,flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:t&&t.feeBaseMsat?t.feeBaseMsat:1e3,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:t&&t.feeProportionalMillionths?t.feeProportionalMillionths:100,min:1,width:48}]}})),this.rtlEffects.closeConfirm.pipe(Object(d.a)(this.unSubs[1])).subscribe(e=>{if(e){const n=e[0].inputValue,a=e[1].inputValue;let i=null,o="";"all"===t?(this.activeChannels.forEach(t=>{o=o+","+t.channelId}),o=o.substring(1),i={baseFeeMsat:n,feeRate:a,channelIds:o}):i={baseFeeMsat:n,feeRate:a,channelId:t.channelId},this.store.dispatch(new st.F("Updating Channel Policy...")),this.store.dispatch(new p.xb(i))}}),this.applyFilter())}onChannelClose(t,e){this.store.dispatch(new st.D({data:{type:f.b.CONFIRM,alertTitle:e?"Force Close Channel":"Close Channel",titleMessage:e?"Force closing channel: "+t.channelId:"Closing channel: "+t.channelId,noBtnText:"Cancel",yesBtnText:e?"Force Close":"Close Channel"}})),this.rtlEffects.closeConfirm.pipe(Object(d.a)(this.unSubs[3])).subscribe(n=>{n&&(this.store.dispatch(new st.F(e?"Force Closing Channel...":"Closing Channel...")),this.store.dispatch(new p.f({channelId:t.channelId,force:e})))})}applyFilter(){this.channels.filter=this.selFilter}onChannelClick(t,e){this.store.dispatch(new st.C({data:{channel:t,channelsType:"open",component:Ci}}))}loadChannelsTable(){this.activeChannels.sort(function(t,e){return t.alias===e.alias?0:e.alias?1:-1}),this.channels=new it.o([...this.activeChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.channels.paginator=this.paginator,this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"ActiveChannels")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(y.h),o.Pb(vt.a),o.Pb(ee.a),o.Pb(v.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-channel-open-table"]],viewQuery:function(t,e){if(1&t&&(o.Pc(at.a,!0),o.Pc(nt.a,!0)),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.paginator=t.first)}},features:[o.Cb([{provide:nt.b,useValue:Object(f.y)("Channels")}])],decls:33,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","shortChannelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["fxFlex","100","fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Qb(2,"div",2),o.Vb(3,"mat-form-field",3),o.Vb(4,"input",4),o.dc("keyup",function(){return e.applyFilter()})("ngModelChange",function(t){return e.selFilter=t}),o.Ub(),o.Ub(),o.Ub(),o.Vb(5,"div",5),o.Ic(6,Ui,1,0,"mat-progress-bar",6),o.Vb(7,"table",7,8),o.Tb(9,9),o.Ic(10,Ii,2,0,"th",10),o.Ic(11,ki,6,6,"td",11),o.Sb(),o.Tb(12,12),o.Ic(13,Pi,2,0,"th",10),o.Ic(14,Oi,2,1,"td",11),o.Sb(),o.Tb(15,13),o.Ic(16,Ti,2,0,"th",14),o.Ic(17,Ri,4,4,"td",11),o.Sb(),o.Tb(18,15),o.Ic(19,Ki,2,0,"th",14),o.Ic(20,Mi,4,4,"td",11),o.Sb(),o.Tb(21,16),o.Ic(22,Ei,2,0,"th",17),o.Ic(23,zi,6,4,"td",18),o.Sb(),o.Tb(24,19),o.Ic(25,Bi,8,0,"th",20),o.Ic(26,qi,12,0,"td",21),o.Sb(),o.Tb(27,22),o.Ic(28,Qi,3,2,"td",23),o.Sb(),o.Ic(29,$i,1,3,"tr",24),o.Ic(30,_i,1,0,"tr",25),o.Ic(31,Ji,1,0,"tr",26),o.Ub(),o.Ub(),o.Qb(32,"mat-paginator",27),o.Ub()),2&t&&(o.Db(4),o.oc("ngModel",e.selFilter),o.Db(2),o.oc("ngIf",!0===e.flgLoading[0]),o.Db(1),o.oc("dataSource",e.channels)("ngClass",o.sc(11,Xi,"error"===e.flgLoading[0])),o.Db(22),o.oc("matFooterRowDef",o.rc(13,Gi)),o.Db(1),o.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.Db(1),o.oc("matRowDefColumns",e.displayedColumns),o.Db(1),o.oc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[S.c,S.b,S.a,R.c,lt.b,ct.c,ct.m,ct.p,E.b,a.o,it.n,at.a,a.m,L.a,it.c,it.i,it.b,it.e,it.g,it.k,it.m,nt.a,s.a,it.h,at.b,it.a,a.p,L.b,K.a,w.a,R.f,dt.a,dt.c,ut.m,it.d,it.f,it.j,it.l],pipes:[a.f],styles:[".mat-column-shortChannelId[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-shortChannelId[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-alias[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;flex:0 0 22%;width:22%}.mat-column-state[_ngcontent-%COMP%], .mat-column-toLocal[_ngcontent-%COMP%], .mat-column-toRemote[_ngcontent-%COMP%]{flex:0 0 15%;width:15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})();function Yi(t,e){1&t&&o.Qb(0,"mat-progress-bar",25)}function Zi(t,e){1&t&&(o.Vb(0,"th",26),o.Kc(1," State "),o.Ub())}function to(t,e){if(1&t&&(o.Vb(0,"td",27),o.Kc(1),o.ic(2,"titlecase"),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",o.jc(2,1,null==t?null:t.state),"")}}function eo(t,e){1&t&&(o.Vb(0,"th",26),o.Kc(1," Alias "),o.Ub())}function no(t,e){if(1&t&&(o.Vb(0,"td",27),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(null==t?null:t.alias)}}function ao(t,e){1&t&&(o.Vb(0,"th",28),o.Kc(1," Local Balance (Sats) "),o.Ub())}function io(t,e){if(1&t&&(o.Vb(0,"td",27),o.Vb(1,"span",29),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.kc(3,1,null==t?null:t.toLocal,"1.0-0")," ")}}function oo(t,e){1&t&&(o.Vb(0,"th",28),o.Kc(1," Remote Balance (Sats) "),o.Ub())}function so(t,e){if(1&t&&(o.Vb(0,"td",27),o.Vb(1,"span",29),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.kc(3,1,null==t?null:t.toRemote,"1.0-0")," ")}}function co(t,e){if(1&t){const t=o.Wb();o.Vb(0,"th",30),o.Vb(1,"div",31),o.Vb(2,"mat-select",32),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",33),o.dc("click",function(){return o.zc(t),o.hc().onDownloadCSV()}),o.Kc(5,"Download CSV"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function lo(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",34),o.Vb(1,"button",35),o.dc("click",function(n){o.zc(t);const a=e.$implicit;return o.hc().onChannelClick(a,n)}),o.Kc(2,"View Info"),o.Ub(),o.Ub()}}function ro(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No pending channels available."),o.Ub())}function bo(t,e){if(1&t&&(o.Vb(0,"td",36),o.Ic(1,ro,2,0,"p",37),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("ngIf",!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)}}const uo=function(t){return{"display-none":t}};function ho(t,e){if(1&t&&o.Qb(0,"tr",38),2&t){const t=o.hc();o.oc("ngClass",o.sc(1,uo,(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function mo(t,e){1&t&&o.Qb(0,"tr",39)}function fo(t,e){1&t&&o.Qb(0,"tr",40)}const po=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},go=function(){return["no_channel"]};let yo=(()=>{class t{constructor(t,e,n,a,i){this.logger=t,this.store=e,this.rtlEffects=n,this.eclEffects=a,this.commonService=i,this.totalBalance=0,this.displayedColumns=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=f.j,this.flgLoading=[!0],this.selFilter="",this.flgSticky=!1,this.pageSize=f.n,this.pageSizeOptions=f.o,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["state","alias","actions"]):this.screenSize===f.q.SM||this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["state","alias","toLocal","toRemote","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","alias","toLocal","toRemote","actions"])}ngOnInit(){this.store.select("ecl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{t.effectErrors.forEach(t=>{"FetchChannels"===t.action&&(this.flgLoading[0]="error")}),this.information=t.information,this.numPeers=t.peers&&t.peers.length?t.peers.length:0,this.totalBalance=t.onchainBalance.total,this.pendingChannels=t.pendingChannels,this.loadChannelsTable(),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!t.pendingChannels),this.logger.info(t)})}ngAfterViewInit(){this.pendingChannels.length>0&&this.loadChannelsTable()}applyFilter(){this.channels.filter=this.selFilter}onChannelClick(t,e){this.store.dispatch(new st.C({data:{channel:t,channelsType:"pending",component:Ci}}))}loadChannelsTable(){this.pendingChannels.sort(function(t,e){return t.alias===e.alias?0:e.alias?1:-1}),this.channels=new it.o([...this.pendingChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.channels.paginator=this.paginator,this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"PendingChannels")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(y.h),o.Pb(vt.a),o.Pb(ee.a),o.Pb(v.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-channel-pending-table"]],viewQuery:function(t,e){if(1&t&&(o.Pc(at.a,!0),o.Pc(nt.a,!0)),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.paginator=t.first)}},features:[o.Cb([{provide:nt.b,useValue:Object(f.y)("Channels")}])],decls:30,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",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","alias"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Qb(2,"div",2),o.Vb(3,"mat-form-field",3),o.Vb(4,"input",4),o.dc("keyup",function(){return e.applyFilter()})("ngModelChange",function(t){return e.selFilter=t}),o.Ub(),o.Ub(),o.Ub(),o.Vb(5,"div",5),o.Ic(6,Yi,1,0,"mat-progress-bar",6),o.Vb(7,"table",7,8),o.Tb(9,9),o.Ic(10,Zi,2,0,"th",10),o.Ic(11,to,3,3,"td",11),o.Sb(),o.Tb(12,12),o.Ic(13,eo,2,0,"th",10),o.Ic(14,no,2,1,"td",11),o.Sb(),o.Tb(15,13),o.Ic(16,ao,2,0,"th",14),o.Ic(17,io,4,4,"td",11),o.Sb(),o.Tb(18,15),o.Ic(19,oo,2,0,"th",14),o.Ic(20,so,4,4,"td",11),o.Sb(),o.Tb(21,16),o.Ic(22,co,6,0,"th",17),o.Ic(23,lo,3,0,"td",18),o.Sb(),o.Tb(24,19),o.Ic(25,bo,2,1,"td",20),o.Sb(),o.Ic(26,ho,1,3,"tr",21),o.Ic(27,mo,1,0,"tr",22),o.Ic(28,fo,1,0,"tr",23),o.Ub(),o.Ub(),o.Qb(29,"mat-paginator",24),o.Ub()),2&t&&(o.Db(4),o.oc("ngModel",e.selFilter),o.Db(2),o.oc("ngIf",!0===e.flgLoading[0]),o.Db(1),o.oc("dataSource",e.channels)("ngClass",o.sc(11,po,"error"===e.flgLoading[0])),o.Db(19),o.oc("matFooterRowDef",o.rc(13,go)),o.Db(1),o.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.Db(1),o.oc("matRowDefColumns",e.displayedColumns),o.Db(1),o.oc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[S.c,S.b,S.a,R.c,lt.b,ct.c,ct.m,ct.p,E.b,a.o,it.n,at.a,a.m,L.a,it.c,it.i,it.b,it.e,it.g,it.k,it.m,nt.a,s.a,it.h,at.b,it.a,dt.a,dt.c,ut.m,U.a,it.d,it.f,it.j,it.l],pipes:[a.x,a.f],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})();var xo=n("hzfI");const vo=["peersForm"],So=["stepper"];function wo(t,e){if(1&t&&o.Kc(0),2&t){const t=o.hc();o.Lc(t.peerFormLabel)}}function Do(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Address is required."),o.Ub())}function Vo(t,e){if(1&t&&(o.Vb(0,"div",34),o.Qb(1,"fa-icon",35),o.Vb(2,"span"),o.Kc(3),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("icon",t.faExclamationTriangle),o.Db(2),o.Lc(t.peerConnectionError)}}function Co(t,e){if(1&t&&o.Kc(0),2&t){const t=o.hc();o.Lc(t.channelFormLabel)}}function Uo(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Amount is required."),o.Ub())}function Io(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Amount must be a positive number."),o.Ub())}function Lo(t,e){if(1&t&&(o.Vb(0,"mat-error"),o.Kc(1),o.Ub()),2&t){const t=o.hc();o.Db(1),o.Mc("Amount must be less than or equal to ",t.totalBalance,".")}}function Ao(t,e){if(1&t&&(o.Vb(0,"div",34),o.Qb(1,"fa-icon",35),o.Vb(2,"span"),o.Kc(3),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("icon",t.faExclamationTriangle),o.Db(2),o.Lc(t.channelConnectionError)}}let Fo=(()=>{class t{constructor(t,e,n,a,i,o,s){this.dialogRef=t,this.data=e,this.store=n,this.eclEffects=a,this.formBuilder=i,this.actions$=o,this.logger=s,this.faExclamationTriangle=m.o,this.peerAddress="",this.totalBalance=0,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.unSubs=[new b.a,new b.a]}ngOnInit(){this.totalBalance=this.data.message.balance,this.peerAddress=this.data.message.peer&&this.data.message.peer.nodeId&&this.data.message.peer.address?this.data.message.peer.nodeId+"@"+this.data.message.peer.address:this.data.message.peer&&this.data.message.peer.nodeId&&!this.data.message.peer.address?this.data.message.peer.nodeId:"",this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[ct.t.required]],peerAddress:[this.peerAddress,[ct.t.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[ct.t.required,ct.t.min(1),ct.t.max(this.totalBalance)]],isPrivate:[!1],feeRate:[null],hiddenAmount:["",[ct.t.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.actions$.pipe(Object(d.a)(this.unSubs[1]),Object(u.a)(t=>t.type===p.G||t.type===p.l||t.type===p.j)).subscribe(t=>{t.type===p.G&&(this.logger.info(t.payload),this.flgEditable=!1,this.newlyAddedPeer=t.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),t.type===p.l&&this.dialogRef.close(),t.type===p.j&&("SaveNewPeer"===t.payload.action?this.peerConnectionError=t.payload.message:"SaveNewChannel"===t.payload.action&&(this.channelConnectionError=t.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch(new st.F("Adding Peer...")),this.store.dispatch(new p.lb({id:this.peerFormGroup.controls.peerAddress.value}))}onOpenChannel(){if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0)return!0;this.channelConnectionError="",this.store.dispatch(new st.F("Opening Channel...")),this.store.dispatch(new p.kb({nodeId:this.newlyAddedPeer.nodeId,amount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,feeRate:this.channelFormGroup.controls.feeRate.value}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(t){switch(t.selectedIndex){case 0:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer.nodeId):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer.nodeId):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)";break;default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)"}t.selectedIndex{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(ot.f),o.Pb(ot.a),o.Pb(y.h),o.Pb(ee.a),o.Pb(ct.d),o.Pb(x.a),o.Pb(g.b))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-connect-peer"]],viewQuery:function(t,e){if(1&t&&(o.Pc(vo,!0),o.Pc(So,!0)),2&t){let t;o.vc(t=o.ec())&&(e.form=t.first),o.vc(t=o.ec())&&(e.stepper=t.first)}},decls:50,vars:20,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100"],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","autoFocus","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["matInput","","formControlName","feeRate","placeholder","Fee (Sats/Byte)","type","number","name","feeRate","tabindex","7",3,"step","min"],["mat-stroked-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Vb(2,"mat-card-header",2),o.Vb(3,"div",3),o.Vb(4,"span",4),o.Kc(5,"Connect to a new peer"),o.Ub(),o.Ub(),o.Vb(6,"button",5),o.dc("click",function(){return e.onClose()}),o.Kc(7,"X"),o.Ub(),o.Ub(),o.Vb(8,"mat-card-content",6),o.Vb(9,"div",7),o.Vb(10,"mat-vertical-stepper",8,9),o.dc("selectionChange",function(t){return e.stepSelectionChanged(t)}),o.Vb(12,"mat-step",10),o.Vb(13,"form",11),o.Ic(14,wo,1,1,"ng-template",12),o.Vb(15,"mat-form-field",13),o.Qb(16,"input",14),o.Ic(17,Do,2,0,"mat-error",15),o.Ub(),o.Ic(18,Vo,4,2,"div",16),o.Vb(19,"div",17),o.Vb(20,"button",18),o.dc("click",function(){return e.onConnectPeer()}),o.Kc(21),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(22,"mat-step",10),o.Vb(23,"form",19),o.Ic(24,Co,1,1,"ng-template",20),o.Vb(25,"div",21),o.Vb(26,"div",22),o.Vb(27,"mat-form-field",23),o.Qb(28,"input",24),o.Vb(29,"mat-hint"),o.Kc(30),o.Ub(),o.Vb(31,"span",25),o.Kc(32," Sats "),o.Ub(),o.Ic(33,Uo,2,0,"mat-error",15),o.Ic(34,Io,2,0,"mat-error",15),o.Ic(35,Lo,2,1,"mat-error",15),o.Ub(),o.Vb(36,"div",26),o.Vb(37,"mat-slide-toggle",27),o.Kc(38,"Private Channel"),o.Ub(),o.Ub(),o.Ub(),o.Vb(39,"div",28),o.Vb(40,"div",29),o.Vb(41,"mat-form-field",13),o.Qb(42,"input",30),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ic(43,Ao,4,2,"div",16),o.Vb(44,"div",17),o.Vb(45,"button",31),o.dc("click",function(){return e.onOpenChannel()}),o.Kc(46),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(47,"div",32),o.Vb(48,"button",33),o.dc("click",function(){return e.onClose()}),o.Kc(49),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(10),o.oc("linear",!0),o.Db(2),o.oc("stepControl",e.peerFormGroup)("editable",e.flgEditable),o.Db(1),o.oc("formGroup",e.peerFormGroup),o.Db(4),o.oc("ngIf",null==e.peerFormGroup.controls.peerAddress.errors?null:e.peerFormGroup.controls.peerAddress.errors.required),o.Db(1),o.oc("ngIf",""!==e.peerConnectionError),o.Db(3),o.Lc(""!==e.peerConnectionError?"Retry":"Add Peer"),o.Db(1),o.oc("stepControl",e.channelFormGroup)("editable",e.flgEditable),o.Db(1),o.oc("formGroup",e.channelFormGroup),o.Db(5),o.oc("step",1e3),o.Db(2),o.Mc("Remaining Bal: ",e.totalBalance-(e.channelFormGroup.controls.fundingAmount.value?e.channelFormGroup.controls.fundingAmount.value:0),""),o.Db(3),o.oc("ngIf",null==e.channelFormGroup.controls.fundingAmount.errors?null:e.channelFormGroup.controls.fundingAmount.errors.required),o.Db(1),o.oc("ngIf",null==e.channelFormGroup.controls.fundingAmount.errors?null:e.channelFormGroup.controls.fundingAmount.errors.min),o.Db(1),o.oc("ngIf",null==e.channelFormGroup.controls.fundingAmount.errors?null:e.channelFormGroup.controls.fundingAmount.errors.max),o.Db(7),o.oc("step",1)("min",0),o.Db(1),o.oc("ngIf",""!==e.channelConnectionError),o.Db(3),o.Lc(""!==e.channelConnectionError?"Retry":"Open Channel"),o.Db(3),o.Lc(null!=e.newlyAddedPeer&&e.newlyAddedPeer.nodeId?"Do It Later":"Close"))},directives:[S.c,S.a,V.c,S.b,U.a,V.b,xo.h,xo.a,ct.u,ct.n,ct.h,xo.b,R.c,lt.b,ct.c,rt.a,ct.m,ct.g,ct.s,a.o,ct.q,R.f,R.g,Ga.a,bt.a,R.b,w.a],styles:[""]}),t})();function ko(t,e){1&t&&o.Qb(0,"mat-progress-bar",35)}function Po(t,e){1&t&&(o.Vb(0,"th",36),o.Kc(1," ID "),o.Ub())}const Oo=function(t){return{"max-width":t}};function To(t,e){if(1&t&&(o.Vb(0,"td",37),o.Kc(1),o.Ub()),2&t){const t=e.$implicit,n=o.hc();o.oc("ngStyle",o.sc(2,Oo,n.screenSize===n.screenSizeEnum.XS?"10rem":"30rem")),o.Db(1),o.Mc(" ",null==t?null:t.nodeId," ")}}function Ro(t,e){1&t&&(o.Vb(0,"th",38),o.Kc(1," Alias "),o.Ub())}const Ko=function(t){return{"mr-0":t}};function Mo(t,e){if(1&t&&o.Qb(0,"span",42),2&t){const t=o.hc(2);o.oc("ngClass",o.sc(1,Ko,t.screenSize===t.screenSizeEnum.XS))}}function Eo(t,e){if(1&t&&o.Qb(0,"span",43),2&t){const t=o.hc(2);o.oc("ngClass",o.sc(1,Ko,t.screenSize===t.screenSizeEnum.XS))}}function zo(t,e){if(1&t&&(o.Vb(0,"td",39),o.Ic(1,Mo,1,3,"span",40),o.Ic(2,Eo,1,3,"span",41),o.Kc(3),o.Ub()),2&t){const t=e.$implicit,n=o.hc();o.oc("ngStyle",o.sc(4,Oo,n.screenSize===n.screenSizeEnum.XS?"10rem":"25rem")),o.Db(1),o.oc("ngIf","CONNECTED"===t.state),o.Db(1),o.oc("ngIf","DISCONNECTED"===t.state),o.Db(1),o.Mc(" ",null==t?null:t.alias," ")}}function Bo(t,e){1&t&&(o.Vb(0,"th",36),o.Kc(1," State "),o.Ub())}function qo(t,e){if(1&t&&(o.Vb(0,"td",44),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null==t?null:t.state," ")}}function No(t,e){1&t&&(o.Vb(0,"th",36),o.Kc(1," Network Address "),o.Ub())}function Ho(t,e){if(1&t&&(o.Vb(0,"td",44),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null==t?null:t.address," ")}}function Qo(t,e){1&t&&(o.Vb(0,"th",36),o.Kc(1," Channels "),o.Ub())}function jo(t,e){if(1&t&&(o.Vb(0,"td",44),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null==t?null:t.channels," ")}}function $o(t,e){if(1&t){const t=o.Wb();o.Vb(0,"th",45),o.Vb(1,"div",46),o.Vb(2,"mat-select",47),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",48),o.dc("click",function(){return o.zc(t),o.hc().onDownloadCSV()}),o.Kc(5,"Download CSV"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function _o(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-option",48),o.dc("click",function(){o.zc(t);const e=o.hc().$implicit;return o.hc().onPeerDetach(e)}),o.Kc(1,"Disconnect"),o.Ub()}}function Jo(t,e){if(1&t){const t=o.Wb();o.Vb(0,"mat-option",48),o.dc("click",function(){o.zc(t);const e=o.hc().$implicit;return o.hc().onConnectPeer(e)}),o.Kc(1,"Reconnect"),o.Ub()}}function Xo(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",49),o.Vb(1,"div",46),o.Vb(2,"mat-select",47),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",48),o.dc("click",function(n){o.zc(t);const a=e.$implicit;return o.hc().onPeerClick(a,n)}),o.Kc(5,"View Info"),o.Ub(),o.Vb(6,"mat-option",48),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().onOpenChannel(n)}),o.Kc(7,"Open Channel"),o.Ub(),o.Ic(8,_o,2,0,"mat-option",50),o.Ic(9,Jo,2,0,"mat-option",50),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=e.$implicit;o.Db(8),o.oc("ngIf","CONNECTED"===t.state),o.Db(1),o.oc("ngIf","DISCONNECTED"===t.state)}}function Go(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No connected peers."),o.Ub())}function Wo(t,e){if(1&t&&(o.Vb(0,"td",51),o.Ic(1,Go,2,0,"p",52),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("ngIf",!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)}}const Yo=function(t){return{"display-none":t}};function Zo(t,e){if(1&t&&o.Qb(0,"tr",53),2&t){const t=o.hc();o.oc("ngClass",o.sc(1,Yo,(null==t.peers?null:t.peers.data)&&(null==t.peers||null==t.peers.data?null:t.peers.data.length)>0))}}function ts(t,e){1&t&&o.Qb(0,"tr",54)}function es(t,e){if(1&t&&o.Qb(0,"tr",55),2&t){const t=e.$implicit,n=o.hc();o.oc("@newlyAddedRowAnimation",t.pub_key===n.newlyAddedPeer&&n.flgAnimate?"added":"notAdded")}}const ns=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},as=function(){return["no_peer"]};let is=(()=>{class t{constructor(t,e,n,a,i,o){this.logger=t,this.store=e,this.rtlEffects=n,this.eclEffects=a,this.actions$=i,this.commonService=o,this.faUsers=m.O,this.newlyAddedPeer="",this.flgAnimate=!0,this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.information={},this.availableBalance=0,this.flgLoading=[!0],this.flgSticky=!1,this.pageSize=f.n,this.pageSizeOptions=f.o,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===f.q.SM?(this.flgSticky=!1,this.displayedColumns=["alias","nodeId","address","actions"]):this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["alias","nodeId","address","channels","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","nodeId","address","channels","actions"])}ngOnInit(){this.store.select("ecl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{t.effectErrors.forEach(t=>{"FetchPeers"===t.action&&(this.flgLoading[0]="error")}),this.information=t.information,this.availableBalance=t.onchainBalance.total||0,this.peersData=t.peers,this.loadPeersTable(this.peersData),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!1),setTimeout(()=>{this.flgAnimate=!1},3e3),this.logger.info(t)}),this.actions$.pipe(Object(d.a)(this.unSubs[1]),Object(u.a)(t=>t.type===p.gb)).subscribe(t=>{this.peerAddress=void 0,this.flgAnimate=!0})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(t,e){const n=[[{key:"nodeId",value:t.nodeId,title:"Public Key",width:100}],[{key:"address",value:t.address,title:"Address",width:50},{key:"alias",value:t.alias,title:"Alias",width:50}],[{key:"state",value:this.commonService.titleCase(t.state),title:"State",width:50},{key:"channels",value:t.channels,title:"Channels",width:50}]];this.store.dispatch(new st.C({data:{type:f.b.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:t.nodeId,message:n}}))}onConnectPeer(t){this.store.dispatch(new st.C({data:{message:{peer:t.nodeId?t:null,information:this.information,balance:this.availableBalance},component:Fo}}))}onOpenChannel(t){this.store.dispatch(new st.C({data:{alertTitle:"Open Channel",message:{peer:t,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:bi}}))}onPeerDetach(t){this.store.dispatch(t.channels>0?new st.C({data:{type:f.b.ERROR,alertTitle:"Disconnect Not Allowed",titleMessage:"Channel active with this peer."}}):new st.D({data:{type:f.b.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(t.alias?t.alias:t.nodeId),noBtnText:"Cancel",yesBtnText:"Disconnect"}})),this.rtlEffects.closeConfirm.pipe(Object(d.a)(this.unSubs[3])).subscribe(e=>{e&&(this.store.dispatch(new st.F("Disconnecting Peer...")),this.store.dispatch(new p.i({nodeId:t.nodeId})))})}applyFilter(t){this.peers.filter=t.value}loadPeersTable(t){this.peers=new it.o(t?[...t]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.peers.paginator=this.paginator}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(y.h),o.Pb(vt.a),o.Pb(ee.a),o.Pb(x.a),o.Pb(v.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-peers"]],viewQuery:function(t,e){if(1&t&&(o.Pc(at.a,!0),o.Pc(nt.a,!0)),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.paginator=t.first)}},features:[o.Cb([{provide:nt.b,useValue:Object(f.y)("Peers")}])],decls:42,vars:14,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["peersForm","ngForm"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["fxLayout","row","fxLayoutAlign","start start"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","nodeId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3",3,"ngStyle",4,"matCellDef"],["matColumnDef","state"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","channels"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","",1,"px-3"],["mat-cell","",1,"px-3",3,"ngStyle"],["class","dot green","matTooltip","Connected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Disconnected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Connected","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Disconnected","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-cell",""],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"form",1,2),o.Vb(3,"button",3),o.dc("click",function(){return e.onConnectPeer({})}),o.Kc(4,"Add Peer"),o.Ub(),o.Ub(),o.Vb(5,"div",4),o.Vb(6,"div",5),o.Vb(7,"div",6),o.Qb(8,"fa-icon",7),o.Vb(9,"span",8),o.Kc(10,"Peers"),o.Ub(),o.Ub(),o.Vb(11,"mat-form-field",9),o.Vb(12,"div",10),o.Vb(13,"input",11),o.dc("keyup",function(t){return e.applyFilter(t.target)}),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Vb(14,"div",12),o.Ic(15,ko,1,0,"mat-progress-bar",13),o.Vb(16,"table",14,15),o.Tb(18,16),o.Ic(19,Po,2,0,"th",17),o.Ic(20,To,2,4,"td",18),o.Sb(),o.Tb(21,19),o.Ic(22,Ro,2,0,"th",20),o.Ic(23,zo,4,6,"td",21),o.Sb(),o.Tb(24,22),o.Ic(25,Bo,2,0,"th",17),o.Ic(26,qo,2,1,"td",23),o.Sb(),o.Tb(27,24),o.Ic(28,No,2,0,"th",17),o.Ic(29,Ho,2,1,"td",23),o.Sb(),o.Tb(30,25),o.Ic(31,Qo,2,0,"th",17),o.Ic(32,jo,2,1,"td",23),o.Sb(),o.Tb(33,26),o.Ic(34,$o,6,0,"th",27),o.Ic(35,Xo,10,2,"td",28),o.Sb(),o.Tb(36,29),o.Ic(37,Wo,2,1,"td",30),o.Sb(),o.Ic(38,Zo,1,3,"tr",31),o.Ic(39,ts,1,0,"tr",32),o.Ic(40,es,1,1,"tr",33),o.Ub(),o.Ub(),o.Qb(41,"mat-paginator",34),o.Ub(),o.Ub()),2&t&&(o.Db(8),o.oc("icon",e.faUsers),o.Db(7),o.oc("ngIf",!0===e.flgLoading[0]),o.Db(1),o.oc("dataSource",e.peers)("ngClass",o.sc(11,ns,"error"===e.flgLoading[0])),o.Db(22),o.oc("matFooterRowDef",o.rc(13,as)),o.Db(1),o.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.Db(1),o.oc("matRowDefColumns",e.displayedColumns),o.Db(1),o.oc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[S.c,S.a,S.b,ct.u,ct.n,ct.o,U.a,w.a,R.c,lt.b,E.b,a.o,it.n,at.a,a.m,L.a,it.c,it.i,it.b,it.e,it.g,it.k,it.m,nt.a,s.a,it.h,at.b,it.a,a.p,L.b,K.a,dt.a,dt.c,ut.m,it.d,it.f,it.j,it.l],styles:[".mat-column-alias[_ngcontent-%COMP%], .mat-column-nodeId[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-nodeId[_ngcontent-%COMP%]{padding-right:2rem}.mat-column-address[_ngcontent-%COMP%]{flex:1 1 15%;width:15%}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"],data:{animation:[xt.a]}}),t})();const os=["queryRoutesForm"];function ss(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Destination Node ID is required."),o.Ub())}function cs(t,e){1&t&&(o.Vb(0,"mat-error"),o.Kc(1,"Amount is required."),o.Ub())}function ls(t,e){1&t&&o.Qb(0,"mat-progress-bar",31)}function rs(t,e){1&t&&(o.Vb(0,"th",32),o.Kc(1," Alias "),o.Ub())}function bs(t,e){if(1&t&&(o.Vb(0,"td",33),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null==t?null:t.alias," ")}}function ds(t,e){1&t&&(o.Vb(0,"th",32),o.Kc(1," ID "),o.Ub())}function us(t,e){if(1&t&&(o.Vb(0,"td",33),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",null==t?null:t.nodeId," ")}}function hs(t,e){1&t&&(o.Vb(0,"th",34),o.Vb(1,"span",35),o.Kc(2,"Actions"),o.Ub(),o.Ub())}function ms(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",36),o.Vb(1,"button",37),o.dc("click",function(n){o.zc(t);const a=e.$implicit;return o.hc().onHopClick(a,n)}),o.Kc(2,"View Info"),o.Ub(),o.Ub()}}function fs(t,e){1&t&&o.Qb(0,"tr",38)}function ps(t,e){1&t&&o.Qb(0,"tr",39)}const gs=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}};let ys=(()=>{class t{constructor(t,e,n){this.store=t,this.eclEffects=e,this.commonService=n,this.nodeId="",this.amount=0,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=m.E,this.faExclamationTriangle=m.o,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===f.q.SM||this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["alias","nodeId","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","nodeId","actions"])}ngOnInit(){this.qrHops=new it.o([]),this.eclEffects.setQueryRoutes.pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.qrHops.data=[],t?(this.flgLoading[0]=!1,this.qrHops=new it.o([...t]),this.qrHops.data=t):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null})}onQueryRoutes(){if(!this.nodeId||!this.amount)return!0;this.qrHops.data=[],this.flgLoading[0]=!0,this.store.dispatch(new p.F({nodeId:this.nodeId,amount:1e3*this.amount}))}resetData(){this.nodeId="",this.amount=0,this.flgLoading[0]=!1,this.qrHops.data=[],this.form.resetForm()}onHopClick(t,e){this.store.dispatch(new st.C({data:{type:f.b.INFORMATION,alertTitle:"Route Information",message:[[{key:"alias",value:t.alias,title:"Alias",width:100,type:f.h.STRING}],[{key:"nodeId",value:t.nodeId,title:"Node ID",width:100,type:f.h.STRING}]]}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(y.h),o.Pb(ee.a),o.Pb(v.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-query-routes"]],viewQuery:function(t,e){if(1&t&&(o.Pc(at.a,!0),o.Ec(os,!0)),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.form=t.first)}},decls:39,vars:16,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Node ID","name","nodeId","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-sub-title-container","mt-2","mb-1"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","nodeId"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-4","pr-3"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",0),o.Vb(1,"form",1,2),o.dc("ngSubmit",function(){return o.zc(t),o.wc(2).form.valid&&e.onQueryRoutes()}),o.Vb(3,"div",3),o.Qb(4,"fa-icon",4),o.Vb(5,"span"),o.Kc(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),o.Ub(),o.Ub(),o.Vb(7,"mat-form-field",5),o.Vb(8,"input",6,7),o.dc("ngModelChange",function(t){return e.nodeId=t}),o.Ub(),o.Ic(10,ss,2,0,"mat-error",8),o.Ub(),o.Vb(11,"mat-form-field",9),o.Vb(12,"input",10),o.dc("ngModelChange",function(t){return e.amount=t}),o.Ub(),o.Ic(13,cs,2,0,"mat-error",8),o.Ub(),o.Vb(14,"div",11),o.Vb(15,"button",12),o.dc("click",function(){return e.resetData()}),o.Kc(16,"Clear"),o.Ub(),o.Vb(17,"button",13),o.Kc(18,"Query Route"),o.Ub(),o.Ub(),o.Ub(),o.Vb(19,"div",14),o.Vb(20,"div",15),o.Qb(21,"fa-icon",16),o.Vb(22,"span",17),o.Kc(23,"Transaction Route"),o.Ub(),o.Ub(),o.Ub(),o.Vb(24,"div",18),o.Ic(25,ls,1,0,"mat-progress-bar",19),o.Vb(26,"table",20,21),o.Tb(28,22),o.Ic(29,rs,2,0,"th",23),o.Ic(30,bs,2,1,"td",24),o.Sb(),o.Tb(31,25),o.Ic(32,ds,2,0,"th",23),o.Ic(33,us,2,1,"td",24),o.Sb(),o.Tb(34,26),o.Ic(35,hs,3,0,"th",27),o.Ic(36,ms,3,0,"td",28),o.Sb(),o.Ic(37,fs,1,0,"tr",29),o.Ic(38,ps,1,0,"tr",30),o.Ub(),o.Ub(),o.Ub()}2&t&&(o.Db(4),o.oc("icon",e.faExclamationTriangle),o.Db(4),o.oc("ngModel",e.nodeId),o.Db(2),o.oc("ngIf",!e.nodeId),o.Db(2),o.oc("ngModel",e.amount)("step",1e3)("min",0),o.Db(1),o.oc("ngIf",!e.amount),o.Db(8),o.oc("icon",e.faRoute),o.Db(4),o.oc("ngIf",!0===e.flgLoading[0]),o.Db(1),o.oc("dataSource",e.qrHops)("ngClass",o.sc(14,gs,"error"===e.flgLoading[0])),o.Db(11),o.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.Db(1),o.oc("matRowDefColumns",e.displayedColumns))},directives:[S.c,S.a,ct.u,ct.n,ct.o,S.b,w.a,R.c,lt.b,ct.c,ct.s,ct.m,ct.p,a.o,ct.q,bt.a,U.a,E.b,it.n,at.a,a.m,L.a,it.c,it.i,it.b,it.k,it.m,R.b,s.a,it.h,at.b,it.a,it.j,it.l],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),t})();function xs(t,e){1&t&&o.Qb(0,"mat-progress-bar",25)}function vs(t,e){1&t&&(o.Vb(0,"th",26),o.Kc(1," State "),o.Ub())}function Ss(t,e){if(1&t&&(o.Vb(0,"td",27),o.Kc(1),o.ic(2,"titlecase"),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Mc(" ",o.jc(2,1,null==t?null:t.state),"")}}function ws(t,e){1&t&&(o.Vb(0,"th",26),o.Kc(1," Alias "),o.Ub())}function Ds(t,e){if(1&t&&(o.Vb(0,"td",27),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(null==t?null:t.alias)}}function Vs(t,e){1&t&&(o.Vb(0,"th",28),o.Kc(1," Local Balance (Sats) "),o.Ub())}function Cs(t,e){if(1&t&&(o.Vb(0,"td",27),o.Vb(1,"span",29),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.kc(3,1,null==t?null:t.toLocal,"1.0-0")," ")}}function Us(t,e){1&t&&(o.Vb(0,"th",28),o.Kc(1," Remote Balance (Sats) "),o.Ub())}function Is(t,e){if(1&t&&(o.Vb(0,"td",27),o.Vb(1,"span",29),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Mc(" ",o.kc(3,1,null==t?null:t.toRemote,"1.0-0")," ")}}function Ls(t,e){if(1&t){const t=o.Wb();o.Vb(0,"th",30),o.Vb(1,"div",31),o.Vb(2,"mat-select",32),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",33),o.dc("click",function(){return o.zc(t),o.hc().onDownloadCSV()}),o.Kc(5,"Download CSV"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function As(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",34),o.Vb(1,"button",35),o.dc("click",function(n){o.zc(t);const a=e.$implicit;return o.hc().onChannelClick(a,n)}),o.Kc(2,"View Info"),o.Ub(),o.Ub()}}function Fs(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No inactive channels available."),o.Ub())}function ks(t,e){if(1&t&&(o.Vb(0,"td",36),o.Ic(1,Fs,2,0,"p",37),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("ngIf",!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)}}const Ps=function(t){return{"display-none":t}};function Os(t,e){if(1&t&&o.Qb(0,"tr",38),2&t){const t=o.hc();o.oc("ngClass",o.sc(1,Ps,(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function Ts(t,e){1&t&&o.Qb(0,"tr",39)}function Rs(t,e){1&t&&o.Qb(0,"tr",40)}const Ks=function(t){return{"overflow-auto error-border":t,"overflow-auto":!0}},Ms=function(){return["no_channel"]};let Es=(()=>{class t{constructor(t,e,n,a,i){this.logger=t,this.store=e,this.rtlEffects=n,this.eclEffects=a,this.commonService=i,this.totalBalance=0,this.displayedColumns=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=f.j,this.flgLoading=[!0],this.selFilter="",this.flgSticky=!1,this.pageSize=f.n,this.pageSizeOptions=f.o,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["state","alias","actions"]):this.screenSize===f.q.SM||this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["state","alias","toLocal","toRemote","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","alias","toLocal","toRemote","actions"])}ngOnInit(){this.store.select("ecl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{t.effectErrors.forEach(t=>{"FetchChannels"===t.action&&(this.flgLoading[0]="error")}),this.information=t.information,this.numPeers=t.peers&&t.peers.length?t.peers.length:0,this.totalBalance=t.onchainBalance.total,this.inactiveChannels=t.inactiveChannels,this.loadChannelsTable(),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!t.inactiveChannels),this.logger.info(t)})}ngAfterViewInit(){this.inactiveChannels.length>0&&this.loadChannelsTable()}applyFilter(){this.channels.filter=this.selFilter}onChannelClick(t,e){this.store.dispatch(new st.C({data:{channel:t,channelsType:"inactive",component:Ci}}))}loadChannelsTable(){this.inactiveChannels.sort(function(t,e){return t.alias===e.alias?0:e.alias?1:-1}),this.channels=new it.o([...this.inactiveChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(t,e)=>t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null,this.channels.paginator=this.paginator,this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"InactiveChannels")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(y.h),o.Pb(vt.a),o.Pb(ee.a),o.Pb(v.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-channel-inactive-table"]],viewQuery:function(t,e){if(1&t&&(o.Pc(at.a,!0),o.Pc(nt.a,!0)),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.paginator=t.first)}},features:[o.Cb([{provide:nt.b,useValue:Object(f.y)("Channels")}])],decls:30,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",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","alias"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Qb(2,"div",2),o.Vb(3,"mat-form-field",3),o.Vb(4,"input",4),o.dc("keyup",function(){return e.applyFilter()})("ngModelChange",function(t){return e.selFilter=t}),o.Ub(),o.Ub(),o.Ub(),o.Vb(5,"div",5),o.Ic(6,xs,1,0,"mat-progress-bar",6),o.Vb(7,"table",7,8),o.Tb(9,9),o.Ic(10,vs,2,0,"th",10),o.Ic(11,Ss,3,3,"td",11),o.Sb(),o.Tb(12,12),o.Ic(13,ws,2,0,"th",10),o.Ic(14,Ds,2,1,"td",11),o.Sb(),o.Tb(15,13),o.Ic(16,Vs,2,0,"th",14),o.Ic(17,Cs,4,4,"td",11),o.Sb(),o.Tb(18,15),o.Ic(19,Us,2,0,"th",14),o.Ic(20,Is,4,4,"td",11),o.Sb(),o.Tb(21,16),o.Ic(22,Ls,6,0,"th",17),o.Ic(23,As,3,0,"td",18),o.Sb(),o.Tb(24,19),o.Ic(25,ks,2,1,"td",20),o.Sb(),o.Ic(26,Os,1,3,"tr",21),o.Ic(27,Ts,1,0,"tr",22),o.Ic(28,Rs,1,0,"tr",23),o.Ub(),o.Ub(),o.Qb(29,"mat-paginator",24),o.Ub()),2&t&&(o.Db(4),o.oc("ngModel",e.selFilter),o.Db(2),o.oc("ngIf",!0===e.flgLoading[0]),o.Db(1),o.oc("dataSource",e.channels)("ngClass",o.sc(11,Ks,"error"===e.flgLoading[0])),o.Db(19),o.oc("matFooterRowDef",o.rc(13,Ms)),o.Db(1),o.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),o.Db(1),o.oc("matRowDefColumns",e.displayedColumns),o.Db(1),o.oc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[S.c,S.b,S.a,R.c,lt.b,ct.c,ct.m,ct.p,E.b,a.o,it.n,at.a,a.m,L.a,it.c,it.i,it.b,it.e,it.g,it.k,it.m,nt.a,s.a,it.h,at.b,it.a,dt.a,dt.c,ut.m,U.a,it.d,it.f,it.j,it.l],pipes:[a.x,a.f],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})();function zs(t,e){if(1&t&&(o.Vb(0,"div",5),o.Kc(1),o.Ub()),2&t){const t=o.hc();o.Db(1),o.Lc(t.errorMessage)}}function Bs(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",6),o.Qb(1,"div",7),o.Vb(2,"mat-form-field",8),o.Vb(3,"input",9),o.dc("ngModelChange",function(e){return o.zc(t),o.hc().filterValue=e})("input",function(){return o.zc(t),o.hc().applyFilter()})("keyup",function(){return o.zc(t),o.hc().applyFilter()}),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=o.hc();o.Db(3),o.oc("ngModel",t.filterValue)}}function qs(t,e){1&t&&(o.Vb(0,"th",31),o.Kc(1,"Date/Time"),o.Ub())}function Ns(t,e){if(1&t&&(o.Vb(0,"td",32),o.Kc(1),o.Ub()),2&t){const t=e.$implicit;o.Db(1),o.Lc(null==t?null:t.timestampStr)}}function Hs(t,e){1&t&&(o.Vb(0,"th",31),o.Kc(1,"In Channel"),o.Ub())}const Qs=function(t){return{"max-width":t}};function js(t,e){if(1&t&&(o.Vb(0,"td",33),o.Kc(1),o.Ub()),2&t){const t=e.$implicit,n=o.hc(2);o.oc("ngStyle",o.sc(2,Qs,n.screenSize===n.screenSizeEnum.XS?"10rem":"20rem")),o.Db(1),o.Lc(null==t?null:t.fromChannelAlias)}}function $s(t,e){1&t&&(o.Vb(0,"th",31),o.Kc(1,"Out Channel"),o.Ub())}function _s(t,e){if(1&t&&(o.Vb(0,"td",33),o.Kc(1),o.Ub()),2&t){const t=e.$implicit,n=o.hc(2);o.oc("ngStyle",o.sc(2,Qs,n.screenSize===n.screenSizeEnum.XS?"10rem":"20rem")),o.Db(1),o.Lc(null==t?null:t.toChannelAlias)}}function Js(t,e){1&t&&(o.Vb(0,"th",34),o.Kc(1,"Amount In (Sats)"),o.Ub())}function Xs(t,e){if(1&t&&(o.Vb(0,"td",32),o.Vb(1,"span",35),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.jc(3,1,null==t?null:t.amountIn))}}function Gs(t,e){1&t&&(o.Vb(0,"th",34),o.Kc(1,"Amount Out (Sats)"),o.Ub())}function Ws(t,e){if(1&t&&(o.Vb(0,"td",32),o.Vb(1,"span",35),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.jc(3,1,null==t?null:t.amountOut))}}function Ys(t,e){1&t&&(o.Vb(0,"th",34),o.Kc(1,"Fee Earned (Sats)"),o.Ub())}function Zs(t,e){if(1&t&&(o.Vb(0,"td",32),o.Vb(1,"span",35),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.jc(3,1,(null==t?null:t.amountIn)-(null==t?null:t.amountOut)))}}function tc(t,e){if(1&t){const t=o.Wb();o.Vb(0,"th",36),o.Vb(1,"div",37),o.Vb(2,"mat-select",38),o.Qb(3,"mat-select-trigger"),o.Vb(4,"mat-option",39),o.dc("click",function(){return o.zc(t),o.hc(2).onDownloadCSV()}),o.Kc(5,"Download CSV"),o.Ub(),o.Ub(),o.Ub(),o.Ub()}}function ec(t,e){if(1&t){const t=o.Wb();o.Vb(0,"td",40),o.Vb(1,"button",41),o.dc("click",function(n){o.zc(t);const a=e.$implicit;return o.hc(2).onForwardingEventClick(a,n)}),o.Kc(2,"View Info"),o.Ub(),o.Ub()}}function nc(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No forwarding event available."),o.Ub())}function ac(t,e){if(1&t&&(o.Vb(0,"td",42),o.Ic(1,nc,2,0,"p",43),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.oc("ngIf",!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)}}const ic=function(t){return{"display-none":t}};function oc(t,e){if(1&t&&o.Qb(0,"tr",44),2&t){const t=o.hc(2);o.oc("ngClass",o.sc(1,ic,(null==t.forwardingHistoryEvents?null:t.forwardingHistoryEvents.data)&&(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)>0))}}function sc(t,e){1&t&&o.Qb(0,"tr",45)}function cc(t,e){1&t&&o.Qb(0,"tr",46)}const lc=function(){return["no_event"]};function rc(t,e){if(1&t&&(o.Vb(0,"div",10),o.Vb(1,"table",11,12),o.Tb(3,13),o.Ic(4,qs,2,0,"th",14),o.Ic(5,Ns,2,1,"td",15),o.Sb(),o.Tb(6,16),o.Ic(7,Hs,2,0,"th",14),o.Ic(8,js,2,4,"td",17),o.Sb(),o.Tb(9,18),o.Ic(10,$s,2,0,"th",14),o.Ic(11,_s,2,4,"td",17),o.Sb(),o.Tb(12,19),o.Ic(13,Js,2,0,"th",20),o.Ic(14,Xs,4,3,"td",15),o.Sb(),o.Tb(15,21),o.Ic(16,Gs,2,0,"th",20),o.Ic(17,Ws,4,3,"td",15),o.Sb(),o.Tb(18,22),o.Ic(19,Ys,2,0,"th",20),o.Ic(20,Zs,4,3,"td",15),o.Sb(),o.Tb(21,23),o.Ic(22,tc,6,0,"th",24),o.Ic(23,ec,3,0,"td",25),o.Sb(),o.Tb(24,26),o.Ic(25,ac,2,1,"td",27),o.Sb(),o.Ic(26,oc,1,3,"tr",28),o.Ic(27,sc,1,0,"tr",29),o.Ic(28,cc,1,0,"tr",30),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("dataSource",t.forwardingHistoryEvents),o.Db(25),o.oc("matFooterRowDef",o.rc(5,lc)),o.Db(1),o.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.oc("matRowDefColumns",t.displayedColumns)}}const bc=function(t){return{"error-border":t,"padding-gap-x":!0}};let dc=(()=>{class t{constructor(t,e,n){this.logger=t,this.commonService=e,this.store=n,this.eventsData=[],this.filterValue="",this.successfulEvents=[],this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.pageSize=f.n,this.pageSizeOptions=f.o,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","amountIn","actions"]):this.screenSize===f.q.SM?(this.flgSticky=!1,this.displayedColumns=["timestamp","amountIn","fee","actions"]):this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amountIn","amountOut","fee","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee","actions"])}ngOnInit(){this.store.select("ecl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{this.eventsData.length<=0&&(this.errorMessage="",t.effectErrors.forEach(t=>{"FetchPayments"===t.action&&(this.errorMessage="object"==typeof t.message?JSON.stringify(t.message):t.message)}),this.successfulEvents=t.payments&&t.payments.relayed?t.payments.relayed:[],this.loadForwardingEventsTable(this.successfulEvents),this.logger.info(t))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadForwardingEventsTable(this.successfulEvents)}ngOnChanges(t){t.eventsData&&(this.eventsData=t.eventsData.currentValue,this.successfulEvents=this.eventsData,this.loadForwardingEventsTable(this.successfulEvents)),t.filterValue&&this.applyFilter()}onForwardingEventClick(t,e){this.store.dispatch(new st.C({data:{type:f.b.INFORMATION,alertTitle:"Event Information",message:[[{key:"paymentHash",value:t.paymentHash,title:"Payment Hash",width:100,type:f.h.STRING}],[{key:"timestampStr",value:t.timestampStr,title:"Date/Time",width:50,type:f.h.DATE_TIME},{key:"fee",value:t.amountIn-t.amountOut,title:"Fee Earned (Sats)",width:50,type:f.h.NUMBER}],[{key:"amountIn",value:t.amountIn,title:"Amount In (Sats)",width:50,type:f.h.NUMBER},{key:"amountOut",value:t.amountOut,title:"Amount Out (Sats)",width:50,type:f.h.NUMBER}],[{key:"fromChannelAlias",value:t.fromChannelAlias,title:"From Channel Alias",width:50,type:f.h.STRING},{key:"fromShortChannelId",value:t.fromShortChannelId,title:"From Short Channel ID",width:50,type:f.h.STRING}],[{key:"fromChannelId",value:t.fromChannelId,title:"From Channel Id",width:100,type:f.h.STRING}],[{key:"toChannelAlias",value:t.toChannelAlias,title:"To Channel Alias",width:50,type:f.h.STRING},{key:"toShortChannelId",value:t.toShortChannelId,title:"To Short Channel ID",width:50,type:f.h.STRING}],[{key:"toChannelId",value:t.toChannelId,title:"To Channel Id",width:100,type:f.h.STRING}]]}}))}loadForwardingEventsTable(t){this.forwardingHistoryEvents=new it.o([...t]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(t,e)=>{switch(e){case"fee":return t.amountIn-t.amountOut;default:return t[e]&&isNaN(t[e])?t[e].toLocaleLowerCase():t[e]?+t[e]:null}},this.forwardingHistoryEvents.paginator=this.paginator,this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents.filter=this.filterValue}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(v.a),o.Pb(y.h))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-forwarding-history"]],viewQuery:function(t,e){if(1&t&&(o.Pc(at.a,!0),o.Pc(nt.a,!0)),2&t){let t;o.vc(t=o.ec())&&(e.sort=t.first),o.vc(t=o.ec())&&(e.paginator=t.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[o.Cb([{provide:nt.b,useValue:Object(f.y)("Events")}]),o.Bb],decls:5,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass"],["class","p-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","padding-gap-x page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[1,"p-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromChannelAlias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","toChannelAlias"],["matColumnDef","amountIn"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amountOut"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Ic(1,zs,2,1,"div",1),o.Ic(2,Bs,4,1,"div",2),o.Ic(3,rc,29,6,"div",3),o.Qb(4,"mat-paginator",4),o.Ub()),2&t&&(o.oc("ngClass",o.sc(7,bc,""!==e.errorMessage)),o.Db(1),o.oc("ngIf",""!==e.errorMessage),o.Db(1),o.oc("ngIf",""===e.errorMessage),o.Db(1),o.oc("ngIf",""===e.errorMessage),o.Db(1),o.oc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS))},directives:[S.c,S.b,a.m,L.a,a.o,nt.a,S.a,R.c,lt.b,ct.c,ct.m,ct.p,E.b,it.n,at.a,it.c,it.i,it.b,it.e,it.g,it.k,it.m,it.h,at.b,it.a,a.p,L.b,dt.a,dt.c,ut.m,U.a,it.d,it.f,it.j,it.l],pipes:[a.f],styles:[".mat-column-fromAlias[_ngcontent-%COMP%]{padding-left:2rem}.mat-column-fromAlias[_ngcontent-%COMP%], .mat-column-toAlias[_ngcontent-%COMP%]{flex:1 1 20%;width:20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-toAlias[_ngcontent-%COMP%]{padding-left:1rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})();const uc=["tableOut"];function hc(t,e){if(1&t&&(o.Vb(0,"div",3),o.Kc(1),o.Ub()),2&t){const t=o.hc();o.Db(1),o.Lc(t.errorMessage)}}function mc(t,e){1&t&&(o.Vb(0,"th",31),o.Kc(1,"Channel ID"),o.Ub())}const fc=function(t){return{"max-width":t}};function pc(t,e){if(1&t&&(o.Vb(0,"td",32),o.Kc(1),o.Ub()),2&t){const t=e.$implicit,n=o.hc(2);o.oc("ngStyle",o.sc(2,fc,n.screenSize===n.screenSizeEnum.XS?"5rem":"10rem")),o.Db(1),o.Lc(t.channelId)}}function gc(t,e){1&t&&(o.Vb(0,"th",31),o.Kc(1,"Peer Alias"),o.Ub())}function yc(t,e){if(1&t&&(o.Vb(0,"td",32),o.Kc(1),o.Ub()),2&t){const t=e.$implicit,n=o.hc(2);o.oc("ngStyle",o.sc(2,fc,n.screenSize===n.screenSizeEnum.XS?"5rem":"10rem")),o.Db(1),o.Lc(t.alias)}}function xc(t,e){1&t&&(o.Vb(0,"th",33),o.Kc(1,"Events"),o.Ub())}function vc(t,e){if(1&t&&(o.Vb(0,"td",34),o.Vb(1,"span",35),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.jc(3,1,t.events))}}function Sc(t,e){1&t&&(o.Vb(0,"th",33),o.Kc(1,"Amount (Sats)"),o.Ub())}function wc(t,e){if(1&t&&(o.Vb(0,"td",34),o.Vb(1,"span",35),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.jc(3,1,t.totalAmount))}}function Dc(t,e){1&t&&(o.Vb(0,"th",33),o.Kc(1,"Fee (Sats)"),o.Ub())}function Vc(t,e){if(1&t&&(o.Vb(0,"td",34),o.Vb(1,"span",35),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.jc(3,1,t.totalFee))}}function Cc(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No incoming routing peer available."),o.Ub())}function Uc(t,e){if(1&t&&(o.Vb(0,"td",36),o.Ic(1,Cc,2,0,"p",37),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.oc("ngIf",!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)}}const Ic=function(t){return{"display-none":t}};function Lc(t,e){if(1&t&&o.Qb(0,"tr",38),2&t){const t=o.hc(2);o.oc("ngClass",o.sc(1,Ic,(null==t.RoutingPeersIncoming?null:t.RoutingPeersIncoming.data)&&(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)>0))}}function Ac(t,e){1&t&&o.Qb(0,"tr",39)}function Fc(t,e){1&t&&o.Qb(0,"tr",40)}function kc(t,e){1&t&&(o.Vb(0,"th",31),o.Kc(1,"Channel ID"),o.Ub())}function Pc(t,e){if(1&t&&(o.Vb(0,"td",32),o.Kc(1),o.Ub()),2&t){const t=e.$implicit,n=o.hc(2);o.oc("ngStyle",o.sc(2,fc,n.screenSize===n.screenSizeEnum.XS?"5rem":"10rem")),o.Db(1),o.Lc(t.channelId)}}function Oc(t,e){1&t&&(o.Vb(0,"th",31),o.Kc(1,"Peer Alias"),o.Ub())}function Tc(t,e){if(1&t&&(o.Vb(0,"td",32),o.Kc(1),o.Ub()),2&t){const t=e.$implicit,n=o.hc(2);o.oc("ngStyle",o.sc(2,fc,n.screenSize===n.screenSizeEnum.XS?"5rem":"10rem")),o.Db(1),o.Lc(t.alias)}}function Rc(t,e){1&t&&(o.Vb(0,"th",33),o.Kc(1,"Events"),o.Ub())}function Kc(t,e){if(1&t&&(o.Vb(0,"td",34),o.Vb(1,"span",35),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.jc(3,1,t.events))}}function Mc(t,e){1&t&&(o.Vb(0,"th",33),o.Kc(1,"Amount (Sats)"),o.Ub())}function Ec(t,e){if(1&t&&(o.Vb(0,"td",34),o.Vb(1,"span",35),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.jc(3,1,t.totalAmount))}}function zc(t,e){1&t&&(o.Vb(0,"th",33),o.Kc(1,"Fee (Sats)"),o.Ub())}function Bc(t,e){if(1&t&&(o.Vb(0,"td",34),o.Vb(1,"span",35),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Ub()),2&t){const t=e.$implicit;o.Db(2),o.Lc(o.jc(3,1,t.totalFee))}}function qc(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"No outgoing routing peer available."),o.Ub())}function Nc(t,e){if(1&t&&(o.Vb(0,"td",36),o.Ic(1,qc,2,0,"p",37),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.oc("ngIf",!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)}}function Hc(t,e){if(1&t&&o.Qb(0,"tr",38),2&t){const t=o.hc(2);o.oc("ngClass",o.sc(1,Ic,(null==t.RoutingPeersOutgoing?null:t.RoutingPeersOutgoing.data)&&(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)>0))}}function Qc(t,e){1&t&&o.Qb(0,"tr",39)}function jc(t,e){1&t&&o.Qb(0,"tr",40)}const $c=function(t,e){return{"mt-2":t,"mt-1":e}},_c=function(){return["no_incoming_event"]},Jc=function(t){return{"mt-2":t}},Xc=function(){return["no_outgoing_event"]};function Gc(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",4),o.Vb(1,"div",5),o.Vb(2,"div",6),o.Vb(3,"div",7),o.Kc(4,"Incoming"),o.Ub(),o.Vb(5,"mat-form-field",8),o.Vb(6,"input",9),o.dc("keyup",function(e){return o.zc(t),o.hc().applyIncomingFilter(e.target)}),o.Ub(),o.Ub(),o.Ub(),o.Vb(7,"div",10),o.Vb(8,"table",11,12),o.Tb(10,13),o.Ic(11,mc,2,0,"th",14),o.Ic(12,pc,2,4,"td",15),o.Sb(),o.Tb(13,16),o.Ic(14,gc,2,0,"th",14),o.Ic(15,yc,2,4,"td",15),o.Sb(),o.Tb(16,17),o.Ic(17,xc,2,0,"th",18),o.Ic(18,vc,4,3,"td",19),o.Sb(),o.Tb(19,20),o.Ic(20,Sc,2,0,"th",18),o.Ic(21,wc,4,3,"td",19),o.Sb(),o.Tb(22,21),o.Ic(23,Dc,2,0,"th",18),o.Ic(24,Vc,4,3,"td",19),o.Sb(),o.Tb(25,22),o.Ic(26,Uc,2,1,"td",23),o.Sb(),o.Ic(27,Lc,1,3,"tr",24),o.Ic(28,Ac,1,0,"tr",25),o.Ic(29,Fc,1,0,"tr",26),o.Ub(),o.Ub(),o.Ub(),o.Vb(30,"div",5),o.Vb(31,"div",6),o.Vb(32,"div",7),o.Kc(33,"Outgoing"),o.Ub(),o.Vb(34,"mat-form-field",8),o.Vb(35,"input",9),o.dc("keyup",function(e){return o.zc(t),o.hc().applyOutgoingFilter(e.target)}),o.Ub(),o.Ub(),o.Ub(),o.Vb(36,"div",27),o.Vb(37,"table",28,29),o.Tb(39,13),o.Ic(40,kc,2,0,"th",14),o.Ic(41,Pc,2,4,"td",15),o.Sb(),o.Tb(42,16),o.Ic(43,Oc,2,0,"th",14),o.Ic(44,Tc,2,4,"td",15),o.Sb(),o.Tb(45,17),o.Ic(46,Rc,2,0,"th",18),o.Ic(47,Kc,4,3,"td",19),o.Sb(),o.Tb(48,20),o.Ic(49,Mc,2,0,"th",18),o.Ic(50,Ec,4,3,"td",19),o.Sb(),o.Tb(51,21),o.Ic(52,zc,2,0,"th",18),o.Ic(53,Bc,4,3,"td",19),o.Sb(),o.Tb(54,30),o.Ic(55,Nc,2,1,"td",23),o.Sb(),o.Ic(56,Hc,1,3,"tr",24),o.Ic(57,Qc,1,0,"tr",25),o.Ic(58,jc,1,0,"tr",26),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=o.hc();o.Db(2),o.oc("ngClass",o.tc(12,$c,t.screenSize===t.screenSizeEnum.XS,t.screenSize===t.screenSizeEnum.SM)),o.Db(6),o.oc("dataSource",t.RoutingPeersIncoming),o.Db(19),o.oc("matFooterRowDef",o.rc(15,_c)),o.Db(1),o.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.oc("matRowDefColumns",t.displayedColumns),o.Db(2),o.oc("ngClass",o.sc(16,Jc,t.screenSize!==t.screenSizeEnum.LG)),o.Db(6),o.oc("dataSource",t.RoutingPeersOutgoing),o.Db(19),o.oc("matFooterRowDef",o.rc(18,Xc)),o.Db(1),o.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.oc("matRowDefColumns",t.displayedColumns)}}const Wc=function(t){return{"error-border":t,"padding-gap":!0}};let Yc=(()=>{class t{constructor(t,e,n,a){this.logger=t,this.commonService=e,this.store=n,this.actions$=a,this.routingPeersData=[],this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.q.XS?(this.flgSticky=!1,this.displayedColumns=["alias","totalFee"]):this.screenSize===f.q.SM?(this.flgSticky=!1,this.displayedColumns=["alias","events","totalFee"]):this.screenSize===f.q.MD?(this.flgSticky=!1,this.displayedColumns=["alias","events","totalAmount","totalFee"]):(this.flgSticky=!0,this.displayedColumns=["channelId","alias","events","totalAmount","totalFee"])}ngOnInit(){this.store.select("ecl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",t.effectErrors.forEach(t=>{"FetchPayments"===t.action&&(this.errorMessage="object"==typeof t.message?JSON.stringify(t.message):t.message)}),this.routingPeersData=t.payments&&t.payments.relayed?t.payments.relayed:[],this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(t)})}loadRoutingPeersTable(t){if(t.length>0){const e=this.groupRoutingPeers(t);this.RoutingPeersIncoming=new it.o(e[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new it.o(e[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new it.o([]),this.RoutingPeersOutgoing=new it.o([])}groupRoutingPeers(t){const e=[],n=[];return t.forEach(t=>{const a=e.find(e=>e.channelId===t.fromChannelId),i=n.find(e=>e.channelId===t.toChannelId);a?(a.events++,a.totalAmount=+a.totalAmount+ +t.amountIn,a.totalFee=t.amountIn-t.amountOut+ +a.totalFee):e.push({channelId:t.fromChannelId,alias:t.fromChannelAlias,events:1,totalAmount:+t.amountIn,totalFee:t.amountIn-t.amountOut}),i?(i.events++,i.totalAmount=+i.totalAmount+ +t.amountOut,i.totalFee=t.amountIn-t.amountOut+ +i.totalFee):n.push({channelId:t.toChannelId,alias:t.toChannelAlias,events:1,totalAmount:+t.amountOut,totalFee:t.amountIn-t.amountOut})}),[this.commonService.sortDescByKey(e,"totalFee"),this.commonService.sortDescByKey(n,"totalFee")]}applyIncomingFilter(t){this.RoutingPeersIncoming.filter=t.value}applyOutgoingFilter(t){this.RoutingPeersOutgoing.filter=t.value}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(v.a),o.Pb(y.h),o.Pb(x.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-routing-peers"]],viewQuery:function(t,e){if(1&t&&(o.Pc(at.a,!0),o.Pc(uc,!0,at.a)),2&t){let t;o.vc(t=o.ec())&&(e.sortIn=t.first),o.vc(t=o.ec())&&(e.sortOut=t.first)}},decls:3,vars:5,consts:[["fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass"],["class","p-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch","class","padding-gap-x page-sub-title-container",4,"ngIf"],[1,"p-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x","page-sub-title-container"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mat-table","","matSort","","fxFlex","100",1,"overflow-auto","incoming-table",3,"dataSource"],["tableIn",""],["matColumnDef","channelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","totalAmount"],["matColumnDef","totalFee"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mat-table","","matSort","","fxFlex","100",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["matColumnDef","no_outgoing_event"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Ic(1,hc,2,1,"div",1),o.Ic(2,Gc,59,19,"div",2),o.Ub()),2&t&&(o.oc("ngClass",o.sc(3,Wc,""!==e.errorMessage)),o.Db(1),o.oc("ngIf",""!==e.errorMessage),o.Db(1),o.oc("ngIf",""===e.errorMessage))},directives:[S.c,S.b,a.m,L.a,a.o,S.a,R.c,lt.b,E.b,it.n,at.a,it.c,it.i,it.b,it.e,it.g,it.k,it.m,it.h,at.b,it.a,a.p,L.b,it.d,it.f,it.j,it.l],pipes:[a.f],styles:[".mat-column-alias[_ngcontent-%COMP%], .mat-column-channelId[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),t})();function Zc(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",7),o.dc("click",function(){o.zc(t);const n=e.$implicit;return o.hc().activeLink=n.link}),o.Kc(1),o.Ub()}if(2&t){const t=e.$implicit,n=o.hc();o.pc("routerLink",t.link),o.oc("active",n.activeLink===t.link),o.Db(1),o.Lc(t.name)}}let tl=(()=>{class t{constructor(t){this.router=t,this.faChartBar=m.f,this.links=[{link:"routingfees",name:"Routing Fees"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){let t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe(Object(d.a)(this.unSubs[0]),Object(u.a)(t=>t instanceof i.f)).subscribe(t=>{let e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(i.g))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-reports"]],decls:10,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Qb(1,"fa-icon",1),o.Vb(2,"span",2),o.Kc(3,"Reports"),o.Ub(),o.Ub(),o.Vb(4,"div",3),o.Vb(5,"mat-card"),o.Vb(6,"mat-card-content",4),o.Vb(7,"nav",5),o.Ic(8,Zc,2,3,"div",6),o.Ub(),o.Qb(9,"router-outlet"),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(1),o.oc("icon",e.faChartBar),o.Db(7),o.oc("ngForOf",e.links))},directives:[S.c,S.b,w.a,V.a,V.b,et.e,a.n,i.l,et.d,i.h],styles:[""]}),t})();var el=n("2yzq"),nl=n("LQLF"),al=n("Lnru");function il(t,e){if(1&t&&(o.Vb(0,"div",8),o.Kc(1),o.ic(2,"number"),o.ic(3,"number"),o.Ub()),2&t){const t=o.hc();o.oc("@fadeIn",t.totalFeeSat),o.Db(1),o.Nc("",o.kc(2,3,t.totalFeeSat||0,"1.0-0")," Sats/",o.jc(3,6,t.filteredEventsBySelectedPeriod.length||0)," Events")}}function ol(t,e){1&t&&(o.Vb(0,"div",9),o.Kc(1,"No fee report for the selected period"),o.Ub())}function sl(t,e){if(1&t&&(o.Vb(0,"span"),o.Vb(1,"span",12),o.Kc(2),o.ic(3,"number"),o.Ub(),o.Vb(4,"span",12),o.Kc(5),o.ic(6,"number"),o.Ub(),o.Ub()),2&t){const t=e.model;o.Db(2),o.Mc("Events: ",o.jc(3,2,t.extra.totalEvents||0),""),o.Db(3),o.Mc("Fee: ",o.kc(6,4,t.value||0,"1.0-0"),"")}}function cl(t,e){if(1&t){const t=o.Wb();o.Vb(0,"ngx-charts-bar-vertical",10),o.dc("select",function(e){return o.zc(t),o.hc().onChartBarSelected(e)})("mouseup",function(e){return o.zc(t),o.hc().onChartMouseUp(e)}),o.Ic(1,sl,7,7,"ng-template",null,11,o.Jc),o.Ub()}if(2&t){const t=o.hc();o.oc("view",t.view)("results",t.feeReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function ll(t,e){if(1&t&&o.Qb(0,"rtl-ecl-forwarding-history",13),2&t){const t=o.hc();o.oc("eventsData",t.filteredEventsBySelectedPeriod)("filterValue",t.eventFilterValue)}}let rl=(()=>{class t{constructor(t,e,n,a){this.logger=t,this.dataService=e,this.commonService=n,this.store=a,this.reportPeriod=f.p[0],this.secondsInADay=86400,this.events=[],this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",this.totalFeeSat=null,this.today=new Date(Date.now()),this.timezoneOffset=60*this.today.getTimezoneOffset(),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.feeReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===f.q.XS||this.screenSize===f.q.SM),this.store.select("ecl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{this.events=t.payments&&t.payments.relayed?t.payments.relayed:[],this.filterForwardingEvents(this.startDate,this.endDate),this.logger.info(t)})}ngAfterViewInit(){const t=this.commonService.getContainerSize();switch(this.screenSize){case f.q.MD:this.screenPaddingX=t.width/10;break;case f.q.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2]}filterForwardingEvents(t,e){const n=Math.round(t.getTime()/1e3)-this.timezoneOffset,a=Math.round(e.getTime()/1e3)-this.timezoneOffset;this.filteredEventsBySelectedPeriod=[],this.feeReportData=[],this.totalFeeSat=null,this.events&&this.events.length>0&&(this.events.forEach(t=>{Math.floor(t.timestamp/1e3)>=n&&Math.floor(t.timestamp/1e3)0&&"ngx-charts"===t.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(t){this.eventFilterValue=this.reportPeriod===f.p[1]?t.name.toUpperCase()+"/"+this.startDate.getFullYear():t.name.toString().padStart(2,"0")+"/"+f.l[this.startDate.getMonth()].name.toUpperCase()+"/"+this.startDate.getFullYear()}prepareFeeReport(t){const e=Math.round(t.getTime()/1e3)-this.timezoneOffset;let n=[];if(this.reportPeriod===f.p[1]){for(let t=0;t<12;t++)n.push({name:f.l[t].name,value:1e-9,extra:{totalEvents:0}});this.filteredEventsBySelectedPeriod.map(t=>{let e=new Date(t.timestamp+1e3*this.timezoneOffset).getMonth();n[e].value=n[e].value+(t.amountIn-t.amountOut),n[e].extra.totalEvents=n[e].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+(t.amountIn-t.amountOut)})}else{for(let e=0;e{let a=Math.floor((Math.floor(t.timestamp/1e3)-e)/this.secondsInADay);n[a].value=n[a].value+(t.amountIn-t.amountOut),n[a].extra.totalEvents=n[a].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+(t.amountIn-t.amountOut)})}return n}onSelectionChange(t){const e=t.selDate.getMonth(),n=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===f.p[1]?(this.startDate=new Date(n,0,1,0,0,0),this.endDate=new Date(n,11,31,23,59,59)):(this.startDate=new Date(n,e,1,0,0,0),this.endDate=new Date(n,e,this.getMonthDays(e,n),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(t,e){return 1===t&&e%4==0?f.l[t].days+1:f.l[t].days}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(g.b),o.Pb(ne.a),o.Pb(v.a),o.Pb(y.h))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-fee-report"]],hostBindings:function(t,e){1&t&&o.dc("mouseup",function(t){return e.onChartMouseUp(t)})},decls:9,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],[3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],[3,"eventsData","filterValue",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"rtl-horizontal-scroller",1),o.dc("stepChanged",function(t){return e.onSelectionChange(t)}),o.Ub(),o.Vb(2,"div",2),o.Ic(3,il,4,8,"div",3),o.Ic(4,ol,2,0,"div",4),o.Vb(5,"div",5),o.Ic(6,cl,3,11,"ngx-charts-bar-vertical",6),o.Ub(),o.Vb(7,"div",5),o.Ic(8,ll,1,2,"rtl-ecl-forwarding-history",7),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(3),o.oc("ngIf",e.feeReportData.length>0&&e.filteredEventsBySelectedPeriod.length>0),o.Db(1),o.oc("ngIf",e.feeReportData.length<=0||e.filteredEventsBySelectedPeriod.length<=0),o.Db(2),o.oc("ngIf",e.feeReportData.length>0&&e.filteredEventsBySelectedPeriod.length>0),o.Db(2),o.oc("ngIf",e.filteredEventsBySelectedPeriod.length>0))},directives:[S.c,S.b,S.a,nl.a,a.o,al.b,dc],pipes:[a.f],styles:[""],data:{animation:[el.a]}}),t})();var bl=n("d4ms");function dl(t,e){if(1&t&&(o.Vb(0,"div",10),o.Kc(1),o.ic(2,"number"),o.ic(3,"number"),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Nc(" Paid ",o.kc(2,2,t.transactionsReportSummary.amountPaidSelectedPeriod||0,"1.0-0")," Sats/",o.jc(3,5,t.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function ul(t,e){if(1&t&&(o.Vb(0,"div",10),o.Kc(1),o.ic(2,"number"),o.ic(3,"number"),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Nc(" Received ",o.kc(2,2,t.transactionsReportSummary.amountReceivedSelectedPeriod||0,"1.0-0")," Sats/",o.jc(3,5,t.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function hl(t,e){if(1&t&&(o.Vb(0,"div",8),o.Ic(1,dl,4,7,"div",9),o.Ic(2,ul,4,7,"div",9),o.Ub()),2&t){const t=o.hc();o.oc("@fadeIn",t.transactionsReportSummary),o.Db(1),o.oc("ngIf",t.transactionsReportSummary.paymentsSelectedPeriod),o.Db(1),o.oc("ngIf",t.transactionsReportSummary.invoicesSelectedPeriod)}}function ml(t,e){1&t&&(o.Vb(0,"div",11),o.Kc(1,"No transactions report for the selected period"),o.Ub())}function fl(t,e){if(1&t&&(o.Vb(0,"span",14),o.Kc(1),o.ic(2,"number"),o.ic(3,"number"),o.Ub()),2&t){const t=e.model;o.Db(1),o.Oc("",t.name,": ",o.kc(2,4,t.value||0,"1.0-0"),"/# ","Paid"===t.name?"Payments":"Invoices",": ",o.jc(3,7,(null==t.extra?null:t.extra.total)||0),"")}}function pl(t,e){if(1&t){const t=o.Wb();o.Vb(0,"ngx-charts-bar-vertical-2d",12),o.dc("select",function(e){return o.zc(t),o.hc().onChartBarSelected(e)})("mouseup",function(e){return o.zc(t),o.hc().onChartMouseUp(e)}),o.Ic(1,fl,4,9,"ng-template",null,13,o.Jc),o.Ub()}if(2&t){const t=o.hc();o.oc("view",t.view)("results",t.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",t.reportPeriod===t.scrollRanges[0]?2:8)}}function gl(t,e){if(1&t&&o.Qb(0,"rtl-transactions-report-table",15),2&t){const t=o.hc();o.oc("dataList",t.transactionsNonZeroReportData)("dataRange",t.reportPeriod)("filterValue",t.transactionFilterValue)}}let yl=(()=>{class t{constructor(t,e,n){this.dataService=t,this.commonService=e,this.store=n,this.scrollRanges=f.p,this.reportPeriod=f.p[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.timezoneOffset=60*this.today.getTimezoneOffset(),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[],this.transactionsNonZeroReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=f.q,this.unSubs=[new b.a,new b.a]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===f.q.XS||this.screenSize===f.q.SM),this.store.select("ecl").pipe(Object(d.a)(this.unSubs[0])).subscribe(t=>{"COMPLETE"===t.initialAPIResponseStatus[0]&&this.dataService.getTransactionsForReport().pipe(Object(d.a)(this.unSubs[1])).subscribe(t=>{this.payments=t.payments.sent,this.invoices=t.invoices,this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()})})}ngAfterViewInit(){const t=this.commonService.getContainerSize();switch(this.screenSize){case f.q.MD:this.screenPaddingX=t.width/10;break;case f.q.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2]}onChartMouseUp(t){"svg"===t.srcElement.tagName&&t.srcElement.classList.length>0&&"ngx-charts"===t.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(t){this.transactionFilterValue=this.reportPeriod===f.p[1]?t.series.toUpperCase()+"/"+this.startDate.getFullYear():t.series.toString().padStart(2,"0")+"/"+f.l[this.startDate.getMonth()].name.toUpperCase()+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(t,e){const n=Math.round(t.getTime()/1e3)-this.timezoneOffset,a=Math.round(e.getTime()/1e3)-this.timezoneOffset;let i=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};let o=this.payments.filter(t=>Math.floor(t.firstPartTimestamp/1e3)>=n&&Math.floor(t.firstPartTimestamp/1e3)"received"===t.status&&t.timestamp>=n&&t.timestamp{let e=new Date(t.firstPartTimestamp+1e3*this.timezoneOffset).getMonth();this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+t.recipientAmount,i[e].series[0].value=i[e].series[0].value+t.recipientAmount,i[e].series[0].extra.total=i[e].series[0].extra.total+1}),s.map(t=>{let e=new Date(1e3*(t.timestamp+this.timezoneOffset)).getMonth();this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+t.amountSettled,i[e].series[1].value=i[e].series[1].value+t.amountSettled,i[e].series[1].extra.total=i[e].series[1].extra.total+1})}else{for(let e=0;e{let e=Math.floor((Math.floor(t.firstPartTimestamp/1e3)-n)/this.secondsInADay);this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+t.recipientAmount,i[e].series[0].value=i[e].series[0].value+t.recipientAmount,i[e].series[0].extra.total=i[e].series[0].extra.total+1}),s.map(t=>{let e=Math.floor((t.timestamp-n)/this.secondsInADay);this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+t.amountSettled,i[e].series[1].value=i[e].series[1].value+t.amountSettled,i[e].series[1].extra.total=i[e].series[1].extra.total+1})}return i}prepareTableData(){return this.transactionsReportData.reduce((t,e)=>e.series[0].value>0||e.series[1].value>0?t.concat({date:e.date,date_str:this.commonService.convertTimestampToDate(e.date.getTime()/1e3),amount_paid:e.series[0].value,num_payments:e.series[0].extra.total,amount_received:e.series[1].value,num_invoices:e.series[1].extra.total}):t,[])}onSelectionChange(t){const e=t.selDate.getMonth(),n=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===f.p[1]?(this.startDate=new Date(n,0,1,0,0,0),this.endDate=new Date(n,11,31,23,59,59)):(this.startDate=new Date(n,e,1,0,0,0),this.endDate=new Date(n,e,this.getMonthDays(e,n),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(t,e){return 1===t&&e%4==0?f.l[t].days+1:f.l[t].days}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(ne.a),o.Pb(v.a),o.Pb(y.h))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-transactions-report"]],hostBindings:function(t,e){1&t&&o.dc("mouseup",function(t){return e.onChartMouseUp(t)})},decls:9,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],[3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[3,"dataList","dataRange","filterValue",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Vb(1,"rtl-horizontal-scroller",1),o.dc("stepChanged",function(t){return e.onSelectionChange(t)}),o.Ub(),o.Vb(2,"div",2),o.Ic(3,hl,3,3,"div",3),o.Ic(4,ml,2,0,"div",4),o.Vb(5,"div",5),o.Ic(6,pl,3,13,"ngx-charts-bar-vertical-2d",6),o.Ub(),o.Vb(7,"div",5),o.Ic(8,gl,1,3,"rtl-transactions-report-table",7),o.Ub(),o.Ub(),o.Ub()),2&t&&(o.Db(3),o.oc("ngIf",e.transactionsNonZeroReportData.length>0),o.Db(1),o.oc("ngIf",e.transactionsNonZeroReportData.length<=0),o.Db(2),o.oc("ngIf",e.transactionsNonZeroReportData.length>0),o.Db(2),o.oc("ngIf",e.transactionsNonZeroReportData.length>0))},directives:[S.c,S.b,S.a,nl.a,a.o,al.a,bl.a],pipes:[a.f],styles:[""],data:{animation:[el.a]}}),t})();var xl=n("2h+y"),vl=n("0dfH");const Sl=i.k.forChild([{path:"",component:r,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:Pn,canActivate:[xl.c]},{path:"onchain",component:ha,canActivate:[xl.c],children:[{path:"",pathMatch:"full",redirectTo:"receive"},{path:"receive",component:ja,canActivate:[xl.c]},{path:"send",component:$a,canActivate:[xl.c]}]},{path:"connections",component:ga,canActivate:[xl.c],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:mi,canActivate:[xl.c],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:Wi,canActivate:[xl.c]},{path:"pending",component:yo,canActivate:[xl.c]},{path:"inactive",component:Es,canActivate:[xl.c]}]},{path:"peers",component:is,data:{sweepAll:!1},canActivate:[xl.c]}]},{path:"transactions",component:xa,canActivate:[xl.c],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:cn,canActivate:[xl.c]},{path:"invoices",component:Yt,canActivate:[xl.c]},{path:"queryroutes",component:ys,canActivate:[xl.c]}]},{path:"routing",component:Sa,canActivate:[xl.c],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:dc,canActivate:[xl.c]},{path:"peers",component:Yc,canActivate:[xl.c]}]},{path:"reports",component:tl,canActivate:[xl.c],children:[{path:"",pathMatch:"full",redirectTo:"routingfees"},{path:"routingfees",component:rl,canActivate:[xl.c]},{path:"transactions",component:yl,canActivate:[xl.c]}]},{path:"lookups",component:Ha,canActivate:[xl.c]},{path:"**",component:vl.a}]}]);var wl=n("PCNd");let Dl=(()=>{class t{}return t.\u0275mod=o.Nb({type:t,bootstrap:[r]}),t.\u0275inj=o.Mb({factory:function(e){return new(e||t)},providers:[xl.c],imports:[[a.c,wl.a,Sl]]}),t})()}}]); \ No newline at end of file diff --git a/angular/6.d5f36502e36ce33775a8.js b/angular/6.d5f36502e36ce33775a8.js deleted file mode 100644 index ea041ea1..00000000 --- a/angular/6.d5f36502e36ce33775a8.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{Ssnv:function(e,t,n){"use strict";n.r(t),n.d(t,"CLModule",(function(){return gl}));var a=n("Ip0R"),i=n("ZYCi"),o=n("CcnG"),c=n("UVSV");function s(e,t){1&e&&o.Rb(0,"mat-progress-bar",2)}function r(e,t){1&e&&o.Rb(0,"router-outlet")}var l=function(){function e(e){var t=this;this.router=e,this.loading=!1,this.router.events.subscribe((function(e){switch(!0){case e instanceof i.e:t.loading=!0;break;case e instanceof i.c:case e instanceof i.b:case e instanceof i.d:t.loading=!1}}))}return e.\u0275fac=function(t){return new(t||e)(o.Qb(i.f))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-root"]],decls:2,vars:2,consts:[["color","primary","mode","indeterminate",4,"ngIf"],[4,"ngIf"],["color","primary","mode","indeterminate"]],template:function(e,t){1&e&&(o.Fc(0,s,1,0,"mat-progress-bar",0),o.Fc(1,r,1,0,"router-outlet",1)),2&e&&(o.pc("ngIf",t.loading),o.Db(1),o.pc("ngIf",!t.loading))},directives:[a.n,c.a,i.k],styles:[""]}),e}(),b=n("K9Ia"),u=n("ny24"),d=n("VnD/"),f=n("twK/"),p=n("wHSu"),m=n("cpEJ"),h=n("7o2P"),g=n("7nzP"),y=n("LvnZ"),v=n("yGQT"),x=n("jYNz"),V=n("21Lb"),w=n("Nv++"),C=n("aPcS"),F=n("qLAh"),D=n("zPjY"),W=n("M4kG"),S=n("fPVg"),L=n("hUWP"),R=function(e){return{backgroundColor:e}};function H(e,t){if(1&e&&o.Rb(0,"span",6),2&e){var n=o.ic();o.pc("ngStyle",o.tc(1,R,"#"+n.information.color))}}function k(e,t){if(1&e&&(o.Wb(0,"div"),o.Wb(1,"h4",1),o.Hc(2,"Color"),o.Vb(),o.Wb(3,"div",2),o.Rb(4,"span",7),o.Hc(5),o.jc(6,"uppercase"),o.Vb(),o.Vb()),2&e){var n=o.ic();o.Db(4),o.pc("ngStyle",o.tc(4,R,"#"+n.information.color)),o.Db(1),o.Jc(" ",o.kc(6,2,n.information.color)," ")}}function A(e,t){if(1&e&&(o.Wb(0,"span",2),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(n)}}var I=function(){function e(e){this.commonService=e,this.chains=[""]}return e.prototype.ngOnChanges=function(){var e=this;this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach((function(t){e.chains.push(e.commonService.titleCase(t.chain)+" "+e.commonService.titleCase(t.network))})))},e.\u0275fac=function(t){return new(t||e)(o.Qb(h.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[o.Bb],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div"),o.Wb(2,"h4",1),o.Hc(3,"Alias"),o.Vb(),o.Wb(4,"div",2),o.Hc(5),o.Fc(6,H,1,3,"span",3),o.Vb(),o.Vb(),o.Fc(7,k,7,6,"div",4),o.Wb(8,"div"),o.Wb(9,"h4",1),o.Hc(10,"Implementation"),o.Vb(),o.Wb(11,"div",2),o.Hc(12),o.Vb(),o.Vb(),o.Wb(13,"div"),o.Wb(14,"h4",1),o.Hc(15,"Chain"),o.Vb(),o.Fc(16,A,2,1,"span",5),o.Vb(),o.Vb()),2&e&&(o.Db(5),o.Jc(" ",t.information.alias," "),o.Db(1),o.pc("ngIf",!t.showColorFieldSeparately),o.Db(1),o.pc("ngIf",t.showColorFieldSeparately),o.Db(5),o.Ic(t.information.lnImplementation||t.information.version?t.information.lnImplementation+" "+t.information.version:""),o.Db(4),o.pc("ngForOf",t.chains))},directives:[V.c,V.a,V.b,a.n,a.m,a.o,L.b],pipes:[a.x],styles:[""]}),e}(),_=function(){function e(){this.balances={onchain:0,lightning:0,total:0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-balances-info"]],inputs:{balances:"balances"},decls:21,vars:11,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div"),o.Wb(2,"h4",1),o.Hc(3,"Lightning"),o.Vb(),o.Wb(4,"div",2),o.Hc(5),o.jc(6,"number"),o.Vb(),o.Rb(7,"mat-progress-bar",3),o.Vb(),o.Wb(8,"div"),o.Wb(9,"h4",1),o.Hc(10,"On-chain"),o.Vb(),o.Wb(11,"div",2),o.Hc(12),o.jc(13,"number"),o.Vb(),o.Rb(14,"mat-progress-bar",3),o.Vb(),o.Wb(15,"div"),o.Wb(16,"h4",1),o.Hc(17,"Total"),o.Vb(),o.Wb(18,"div",2),o.Hc(19),o.jc(20,"number"),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(5),o.Jc("",o.kc(6,5,t.balances.lightning)," Sats"),o.Db(2),o.qc("value",t.balances.lightning/t.balances.total*100),o.Db(5),o.Jc("",o.kc(13,7,t.balances.onchain)," Sats"),o.Db(2),o.qc("value",t.balances.onchain/t.balances.total*100),o.Db(5),o.Jc("",o.kc(20,9,t.balances.total)," Sats"))},directives:[V.c,V.a,V.b,c.a],pipes:[a.e],styles:[""]}),e}(),T=n("dlst"),O=n("v/zR"),P=n("FZ+F"),M=n("g2ei");function E(e,t){if(1&e&&(o.Wb(0,"div",17),o.Wb(1,"span",18),o.Hc(2),o.jc(3,"slice"),o.Vb(),o.Wb(4,"div",3),o.Wb(5,"mat-hint",19),o.Wb(6,"strong",5),o.Hc(7,"Local:"),o.Vb(),o.Hc(8),o.jc(9,"number"),o.Vb(),o.Wb(10,"mat-hint",20),o.Rb(11,"fa-icon",21),o.Hc(12),o.jc(13,"number"),o.Vb(),o.Wb(14,"mat-hint",22),o.Wb(15,"strong",5),o.Hc(16,"Remote:"),o.Vb(),o.Hc(17),o.jc(18,"number"),o.Vb(),o.Vb(),o.Rb(19,"mat-progress-bar",23),o.Vb()),2&e){var n=t.$implicit,a=o.ic(2);o.Db(1),o.qc("matTooltip",n.alias||n.id),o.qc("matTooltipDisabled",(n.alias||n.id).length<26),o.Db(1),o.Kc("",o.mc(3,9,n.alias||n.id,0,24),"",(n.alias||n.id).length>25?"...":"",""),o.Db(6),o.Jc("",o.lc(9,13,n.msatoshi_to_us/1e3||0,"1.0-0")," Sats"),o.Db(3),o.pc("icon",a.faBalanceScale),o.Db(1),o.Jc(" (",o.kc(13,16,n.balancedness||0),") "),o.Db(5),o.Jc("",o.lc(18,18,n.msatoshi_to_them/1e3||0,"1.0-0")," Sats"),o.Db(2),o.qc("value",n.msatoshi_to_us&&n.msatoshi_to_us>0?(n.msatoshi_to_us-0)/(n.msatoshi_to_us-0+(n.msatoshi_to_them-0))*100:0)}}function B(e,t){if(1&e&&(o.Wb(0,"div",15),o.Fc(1,E,20,21,"div",16),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngForOf",n.allChannels)}}function U(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",24),o.Hc(1," No channels available. "),o.Wb(2,"button",25),o.ec("click",(function(){return o.yc(n),o.ic().goToChannels()})),o.Hc(3,"Open Channel"),o.Vb(),o.Vb()}}var N=function(){function e(e){this.router=e,this.faBalanceScale=p.d,this.faDumbbell=p.k,this.sortBy="Balance Score"}return e.prototype.goToChannels=function(){this.router.navigateByUrl("/cl/peerschannels")},e.\u0275fac=function(t){return new(t||e)(o.Qb(i.f))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy"},decls:26,vars:15,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["perfectScrollbar","",1,"channels-capacity-scroll"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"]],template:function(e,t){if(1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"span",2),o.Hc(3,"Total Capacity"),o.Vb(),o.Wb(4,"div",3),o.Wb(5,"mat-hint",4),o.Wb(6,"strong",5),o.Hc(7,"Local:"),o.Vb(),o.Hc(8),o.jc(9,"number"),o.Vb(),o.Wb(10,"mat-hint",6),o.Rb(11,"fa-icon",7),o.Hc(12),o.jc(13,"number"),o.Vb(),o.Wb(14,"mat-hint",8),o.Wb(15,"strong",5),o.Hc(16,"Remote:"),o.Vb(),o.Hc(17),o.jc(18,"number"),o.Vb(),o.Vb(),o.Rb(19,"mat-progress-bar",9),o.Vb(),o.Wb(20,"div",10),o.Rb(21,"mat-divider",11),o.Vb(),o.Wb(22,"div",12),o.Fc(23,B,2,1,"div",13),o.Vb(),o.Vb(),o.Fc(24,U,4,0,"ng-template",null,14,o.Gc)),2&e){var n=o.wc(25);o.Db(8),o.Jc("",o.lc(9,7,t.channelBalances.localBalance||0,"1.0-0")," Sats"),o.Db(3),o.pc("icon",t.faBalanceScale),o.Db(1),o.Jc(" (",o.kc(13,10,(null==t.channelBalances?null:t.channelBalances.balancedness)||0),") "),o.Db(5),o.Jc("",o.lc(18,12,t.channelBalances.remoteBalance||0,"1.0-0")," Sats"),o.Db(2),o.qc("value",t.channelBalances.localBalance&&t.channelBalances.localBalance>0?(t.channelBalances.localBalance-0)/(t.channelBalances.localBalance-0+(t.channelBalances.remoteBalance-0))*100:0),o.Db(4),o.pc("ngIf",t.allChannels&&t.allChannels.length>0)("ngIfElse",n)}},directives:[V.c,V.b,V.a,T.f,w.a,O.a,c.a,P.a,M.b,a.n,a.m,W.a],pipes:[a.e,a.v],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),e}(),z=function(){function e(){this.totalFees=[{name:"Total",value:0}]}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-fee-info"]],inputs:{fees:"fees"},decls:14,vars:6,consts:[["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div"),o.Wb(2,"h4",1),o.Hc(3,"Total"),o.Vb(),o.Wb(4,"div",2),o.Hc(5),o.jc(6,"number"),o.Vb(),o.Vb(),o.Vb(),o.Wb(7,"div",0),o.Wb(8,"div"),o.Wb(9,"h4",1),o.Hc(10,"Transactions"),o.Vb(),o.Wb(11,"div",2),o.Hc(12),o.jc(13,"number"),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(5),o.Jc("",o.kc(6,2,(null==t.fees?null:t.fees.feeCollected)/1e3)," Sats"),o.Db(7),o.Ic(o.kc(13,4,null==t.fees?null:t.fees.totalTxCount)))},directives:[V.c,V.a,V.b],pipes:[a.e],styles:[""]}),e}(),q=function(){function e(){this.channelsStatus={}}return e.prototype.ngOnChanges=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus"},features:[o.Bb],decls:41,vars:18,consts:[["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div"),o.Wb(2,"h4",1),o.Hc(3,"Active"),o.Vb(),o.Wb(4,"div",2),o.Rb(5,"span",3),o.Hc(6),o.jc(7,"number"),o.Vb(),o.Vb(),o.Wb(8,"div"),o.Wb(9,"h4",1),o.Hc(10,"Pending"),o.Vb(),o.Wb(11,"div",2),o.Rb(12,"span",4),o.Hc(13),o.jc(14,"number"),o.Vb(),o.Vb(),o.Wb(15,"div"),o.Wb(16,"h4",1),o.Hc(17,"Inactive"),o.Vb(),o.Wb(18,"div",2),o.Rb(19,"span",5),o.Hc(20),o.jc(21,"number"),o.Vb(),o.Vb(),o.Vb(),o.Wb(22,"div",0),o.Wb(23,"div"),o.Wb(24,"h4",1),o.Hc(25,"Capacity"),o.Vb(),o.Wb(26,"div",2),o.Hc(27),o.jc(28,"number"),o.Vb(),o.Vb(),o.Wb(29,"div"),o.Wb(30,"h4",1),o.Hc(31,"Capacity"),o.Vb(),o.Wb(32,"div",2),o.Hc(33),o.jc(34,"number"),o.Vb(),o.Vb(),o.Wb(35,"div"),o.Wb(36,"h4",1),o.Hc(37,"Capacity"),o.Vb(),o.Wb(38,"div",2),o.Hc(39),o.jc(40,"number"),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(6),o.Ic(o.kc(7,6,t.channelsStatus.active.channels||0)),o.Db(7),o.Ic(o.kc(14,8,t.channelsStatus.pending.channels||0)),o.Db(7),o.Ic(o.kc(21,10,t.channelsStatus.inactive.channels||0)),o.Db(7),o.Jc("",o.kc(28,12,t.channelsStatus.active.capacity||0)," Sats"),o.Db(6),o.Jc("",o.kc(34,14,t.channelsStatus.pending.capacity||0)," Sats"),o.Db(6),o.Jc("",o.kc(40,16,t.channelsStatus.inactive.capacity||0)," Sats"))},directives:[V.c,V.a,V.b],pipes:[a.e],styles:[""]}),e}();function j(e,t){if(1&e&&(o.Wb(0,"mat-hint",17),o.Wb(1,"strong",18),o.Hc(2,"Capacity: "),o.Vb(),o.Hc(3),o.jc(4,"number"),o.Vb()),2&e){var n=o.ic().$implicit;o.Db(3),o.Jc("",o.lc(4,1,n.msatoshi_to_them/1e3||0,"1.0-0")," Sats")}}function X(e,t){if(1&e&&(o.Wb(0,"mat-hint",17),o.Wb(1,"strong",18),o.Hc(2,"Capacity: "),o.Vb(),o.Hc(3),o.jc(4,"number"),o.Vb()),2&e){var n=o.ic().$implicit;o.Db(3),o.Jc("",o.lc(4,1,n.msatoshi_to_us/1e3||0,"1.0-0")," Sats")}}function G(e,t){if(1&e&&o.Rb(0,"mat-progress-bar",19),2&e){var n=o.ic().$implicit,a=o.ic(2);o.qc("value",a.totalLiquidity>0?((n.msatoshi_to_them-0)/1e3||0)/a.totalLiquidity*100:0)}}function $(e,t){if(1&e&&o.Rb(0,"mat-progress-bar",19),2&e){var n=o.ic().$implicit,a=o.ic(2);o.qc("value",a.totalLiquidity>0?((n.msatoshi_to_us-0)/1e3||0)/a.totalLiquidity*100:0)}}function Q(e,t){if(1&e&&(o.Wb(0,"div",12),o.Wb(1,"span",13),o.Hc(2),o.jc(3,"slice"),o.Vb(),o.Wb(4,"div",14),o.Fc(5,j,5,4,"mat-hint",15),o.Fc(6,X,5,4,"mat-hint",15),o.Vb(),o.Fc(7,G,1,1,"mat-progress-bar",16),o.Fc(8,$,1,1,"mat-progress-bar",16),o.Vb()),2&e){var n=t.$implicit,a=o.ic(2);o.Db(1),o.qc("matTooltip",n.alias||n.id),o.qc("matTooltipDisabled",(n.alias||n.id).length<26),o.Db(1),o.Kc("",o.mc(3,8,n.alias||n.id,0,24),"",(n.alias||n.id).length>25?"...":"",""),o.Db(3),o.pc("ngIf","In"===a.direction),o.Db(1),o.pc("ngIf","Out"===a.direction),o.Db(1),o.pc("ngIf","In"===a.direction),o.Db(1),o.pc("ngIf","Out"===a.direction)}}function K(e,t){if(1&e&&(o.Wb(0,"div",10),o.Fc(1,Q,9,12,"div",11),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngForOf",n.allChannels)}}function J(e,t){if(1&e){var n=o.Xb();o.Wb(0,"button",22),o.ec("click",(function(){return o.yc(n),o.ic(2).goToChannels()})),o.Hc(1,"Open Channel"),o.Vb()}}function Y(e,t){if(1&e&&(o.Wb(0,"div",20),o.Hc(1," No channels available. "),o.Fc(2,J,2,0,"button",21),o.Vb()),2&e){var n=o.ic();o.Db(2),o.pc("ngIf","Out"===n.direction)}}var Z=function(){function e(e){this.router=e}return e.prototype.goToChannels=function(){this.router.navigateByUrl("/cl/peerschannels")},e.\u0275fac=function(t){return new(t||e)(o.Qb(i.f))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels"},decls:14,vars:6,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["fxLayout","column","fxFlex.gt-sm","88","fxFlex","84","fxLayoutAlign","start start","perfectScrollbar","",1,"channels-capacity-scroll"],["fxLayout","column","fxFlex","100","class","w-100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["fxLayout","column","fxFlex","100",1,"w-100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","100","fxLayoutAlign","start center","class","font-size-90 color-primary",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"]],template:function(e,t){if(1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"span",2),o.Hc(3,"Total Capacity"),o.Vb(),o.Wb(4,"mat-hint",3),o.Hc(5),o.jc(6,"number"),o.Vb(),o.Rb(7,"mat-progress-bar",4),o.Vb(),o.Wb(8,"div",5),o.Rb(9,"mat-divider",6),o.Vb(),o.Wb(10,"div",7),o.Fc(11,K,2,1,"div",8),o.Vb(),o.Vb(),o.Fc(12,Y,3,1,"ng-template",null,9,o.Gc)),2&e){var n=o.wc(13);o.Db(5),o.Jc("",o.lc(6,3,t.totalLiquidity,"1.0-0")," Sats"),o.Db(6),o.pc("ngIf",t.allChannels&&t.allChannels.length>0)("ngIfElse",n)}},directives:[V.c,V.b,V.a,T.f,c.a,P.a,M.b,a.n,a.m,O.a,W.a],pipes:[a.e,a.v],styles:[""]}),e}(),ee=n("VkXI"),te=n("mrSG"),ne=n("kfqd"),ae=n("BqIw"),ie=n("JeCn"),oe=n("4r19"),ce=n("mNcL"),se=n("X9mX"),re=n("/uX3"),le=n("4lrr"),be=n("gIcY"),ue=n("UTvR"),de=n("O4ig"),fe=n("B0X+"),pe=n("8KZq"),me=n("Ci9w"),he=n("eO+G");function ge(e,t){if(1&e&&(o.Wb(0,"mat-option",26),o.Hc(1),o.jc(2,"titlecase"),o.Vb()),2&e){var n=t.$implicit;o.pc("value",n),o.Db(1),o.Ic(o.kc(2,2,n))}}function ye(e,t){if(1&e&&(o.Wb(0,"span"),o.Hc(1),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.Ic(n.invoiceError)}}function ve(e,t){if(1&e&&(o.Wb(0,"div",27),o.Rb(1,"fa-icon",28),o.Fc(2,ye,2,1,"span",29),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("icon",n.faExclamationTriangle),o.Db(1),o.pc("ngIf",""!==n.invoiceError)}}var xe=function(){function e(e,t,n,a,i,o){this.dialogRef=e,this.data=t,this.store=n,this.decimalPipe=a,this.commonService=i,this.actions$=o,this.faExclamationTriangle=p.n,this.selNode={},this.description="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=g.m,this.timeUnitEnum=g.t,this.timeUnits=g.r,this.selTimeUnit=g.t.SECS,this.invoiceError="",this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.pageSize=this.data.pageSize,this.store.select("cl").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.selNode=t.nodeSettings,e.information=t.information})),this.actions$.pipe(Object(u.a)(this.unSubs[1]),Object(d.a)((function(e){return e.type===y.o||e.type===y.v}))).subscribe((function(t){t.type===y.v&&e.dialogRef.close(),t.type===y.o&&"SaveNewInvoice"===t.payload.action&&(e.invoiceError=t.payload.message)}))},e.prototype.onAddInvoice=function(e){this.invoiceError="",this.invoiceValue||(this.invoiceValue=0);var t=this.expiry?this.expiry:3600;this.selTimeUnit!==g.t.SECS&&(t=this.commonService.convertTime(this.expiry,this.selTimeUnit,g.t.SECS)),this.store.dispatch(new re.F("Adding Invoice...")),this.store.dispatch(new y.xb({label:"ulbl"+Math.random().toString(36).slice(2)+Date.now(),amount:1e3*this.invoiceValue,description:this.description,expiry:t,private:this.private}))},e.prototype.resetData=function(){this.description="",this.invoiceValue=void 0,this.private=!1,this.expiry=void 0,this.invoiceValueHint="",this.selTimeUnit=g.t.SECS,this.invoiceError=""},e.prototype.onInvoiceValueChange=function(){var e=this;this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,g.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(u.a)(this.unSubs[2])).subscribe((function(t){e.invoiceValueHint="= "+t.symbol+e.decimalPipe.transform(t.OTHER,g.f.OTHER)+" "+t.unit})))},e.prototype.onTimeUnitChange=function(e){this.expiry&&this.selTimeUnit!==e.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,e.value)),this.selTimeUnit=e.value},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(le.f),o.Qb(le.a),o.Qb(v.h),o.Qb(a.e),o.Qb(h.a),o.Qb(x.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-create-invoices"]],decls:37,vars:15,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"mt-5px"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","2","name","description",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","step","100","min","1","tabindex","3","name","invoiceValue",3,"ngModel","ngModelChange","keyup"],["matSuffix",""],["fxFlex","30"],["matInput","","placeholder","Expiry","type","number","min","1","tabindex","4","name","expiry",3,"ngModel","step","ngModelChange"],["fxFlex","26"],["tabindex","5","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","50","fxLayoutAlign","start center",1,"mt-2"],["tabindex","6","color","primary","matTooltip","Include routing hints for private channels","name","private",3,"ngModel","matTooltipPosition","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"mat-card-header",2),o.Wb(3,"div",3),o.Wb(4,"span",4),o.Hc(5,"Create Invoice"),o.Vb(),o.Vb(),o.Wb(6,"button",5),o.Hc(7,"X"),o.Vb(),o.Vb(),o.Wb(8,"mat-card-content",6),o.Wb(9,"form",7,8),o.Wb(11,"mat-form-field",9),o.Wb(12,"input",10),o.ec("ngModelChange",(function(e){return t.description=e})),o.Vb(),o.Vb(),o.Wb(13,"div",11),o.Wb(14,"mat-form-field",12),o.Wb(15,"input",13),o.ec("ngModelChange",(function(e){return t.invoiceValue=e}))("keyup",(function(){return t.onInvoiceValueChange()})),o.Vb(),o.Wb(16,"span",14),o.Hc(17),o.Vb(),o.Wb(18,"mat-hint"),o.Hc(19),o.Vb(),o.Vb(),o.Wb(20,"mat-form-field",15),o.Wb(21,"input",16),o.ec("ngModelChange",(function(e){return t.expiry=e})),o.Vb(),o.Wb(22,"span",14),o.Hc(23),o.jc(24,"titlecase"),o.Vb(),o.Vb(),o.Wb(25,"mat-form-field",17),o.Wb(26,"mat-select",18),o.ec("selectionChange",(function(e){return t.onTimeUnitChange(e)})),o.Fc(27,ge,3,4,"mat-option",19),o.Vb(),o.Vb(),o.Vb(),o.Wb(28,"div",20),o.Wb(29,"mat-slide-toggle",21),o.ec("ngModelChange",(function(e){return t.private=e})),o.Hc(30,"Private Routing Hints"),o.Vb(),o.Vb(),o.Fc(31,ve,3,2,"div",22),o.Wb(32,"div",23),o.Wb(33,"button",24),o.ec("click",(function(){return t.resetData()})),o.Hc(34,"Clear Field"),o.Vb(),o.Wb(35,"button",25),o.ec("click",(function(){o.yc(n);var e=o.wc(10);return t.onAddInvoice(e)})),o.Hc(36,"Create Invoice"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()}2&e&&(o.Db(6),o.pc("mat-dialog-close",!1),o.Db(6),o.pc("ngModel",t.description),o.Db(3),o.pc("ngModel",t.invoiceValue),o.Db(2),o.Jc(" ",null==t.information?null:t.information.smaller_currency_unit," "),o.Db(2),o.Ic(t.invoiceValueHint),o.Db(2),o.qc("step",t.selTimeUnit===t.timeUnitEnum.SECS?300:t.selTimeUnit===t.timeUnitEnum.MINS?10:t.selTimeUnit===t.timeUnitEnum.HOURS?2:1),o.pc("ngModel",t.expiry),o.Db(2),o.Jc(" ",o.kc(24,13,t.selTimeUnit)," "),o.Db(3),o.pc("value",t.selTimeUnit),o.Db(1),o.pc("ngForOf",t.timeUnits),o.Db(2),o.pc("ngModel",t.private)("matTooltipPosition","above"),o.Db(2),o.pc("ngIf",""!==t.invoiceError))},directives:[V.c,V.a,F.c,V.b,W.a,le.d,F.b,be.t,be.m,be.n,T.c,ue.b,be.b,de.a,be.l,be.o,be.p,fe.a,T.g,T.f,pe.a,a.m,me.a,O.a,a.n,he.n,w.a],pipes:[a.w],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}();function Ve(e,t){if(1&e){var n=o.Xb();o.Wb(0,"form",31,32),o.Wb(2,"mat-form-field",33),o.Wb(3,"input",34),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().description=e})),o.Vb(),o.Vb(),o.Wb(4,"mat-form-field",35),o.Wb(5,"input",36),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().invoiceValue=e}))("keyup",(function(){return o.yc(n),o.ic().onInvoiceValueChange()})),o.Vb(),o.Wb(6,"span",37),o.Hc(7),o.Vb(),o.Wb(8,"mat-hint"),o.Hc(9),o.Vb(),o.Vb(),o.Wb(10,"div",38),o.Wb(11,"button",39),o.ec("click",(function(){return o.yc(n),o.ic().resetData()})),o.Hc(12,"Clear Field"),o.Vb(),o.Wb(13,"button",40),o.ec("click",(function(){o.yc(n);var e=o.wc(1);return o.ic().onAddInvoice(e)})),o.Hc(14,"Create Invoice"),o.Vb(),o.Vb(),o.Vb()}if(2&e){var a=o.ic();o.Db(3),o.pc("ngModel",a.description),o.Db(2),o.pc("ngModel",a.invoiceValue),o.Db(2),o.Jc(" ",null==a.information?null:a.information.smaller_currency_unit," "),o.Db(2),o.Ic(a.invoiceValueHint)}}function we(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",41),o.Wb(1,"button",42),o.ec("click",(function(){return o.yc(n),o.ic().onDeleteExpiredInvoices()})),o.Hc(2,"Delete Expired"),o.Vb(),o.Wb(3,"button",43),o.ec("click",(function(){return o.yc(n),o.ic().openCreateInvoiceModal()})),o.Hc(4,"Create Invoice"),o.Vb(),o.Vb()}}function Ce(e,t){1&e&&o.Rb(0,"mat-progress-bar",44)}function Fe(e,t){1&e&&(o.Wb(0,"th",45),o.Hc(1," Expiry Date "),o.Vb())}var De=function(e){return{"mr-0":e}};function We(e,t){if(1&e&&o.Rb(0,"span",49),2&e){var n=o.ic(2);o.pc("ngClass",o.tc(1,De,n.screenSize===n.screenSizeEnum.XS))}}function Se(e,t){if(1&e&&o.Rb(0,"span",50),2&e){var n=o.ic(2);o.pc("ngClass",o.tc(1,De,n.screenSize===n.screenSizeEnum.XS))}}function Le(e,t){if(1&e&&(o.Wb(0,"td",46),o.Fc(1,We,1,3,"span",47),o.Fc(2,Se,1,3,"span",48),o.Hc(3),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.pc("ngIf","paid"===n.status),o.Db(1),o.pc("ngIf","paid"!==n.status),o.Db(1),o.Jc(" ",n.expires_at_str," ")}}function Re(e,t){1&e&&(o.Wb(0,"th",45),o.Hc(1," Date Settled "),o.Vb())}function He(e,t){if(1&e&&(o.Wb(0,"td",46),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(n.paid_at_str||"-")}}function ke(e,t){1&e&&(o.Wb(0,"th",45),o.Hc(1," Description "),o.Vb())}var Ae=function(e){return{"max-width":e}};function Ie(e,t){if(1&e&&(o.Wb(0,"td",46),o.Wb(1,"div",51),o.Wb(2,"span",52),o.Hc(3),o.Vb(),o.Vb(),o.Vb()),2&e){var n=t.$implicit,a=o.ic();o.Db(1),o.pc("ngStyle",o.tc(2,Ae,a.screenSize===a.screenSizeEnum.XS?"10rem":"32rem")),o.Db(2),o.Ic(n.description)}}function _e(e,t){1&e&&(o.Wb(0,"th",53),o.Hc(1," Amount (Sats) "),o.Vb())}function Te(e,t){if(1&e&&(o.Wb(0,"td",46),o.Wb(1,"span",54),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.lc(3,1,n.msatoshi/1e3,n.msatoshi<1e3?"1.0-4":"1.0-0"),"")}}function Oe(e,t){1&e&&(o.Wb(0,"th",53),o.Hc(1," Amount Settled (Sats) "),o.Vb())}function Pe(e,t){if(1&e&&(o.Wb(0,"td",46),o.Wb(1,"span",54),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.lc(3,1,n.msatoshi_received/1e3,n.msatoshi_received<1e3?"1.0-4":"1.0-0"),"")}}function Me(e,t){if(1&e){var n=o.Xb();o.Wb(0,"th",55),o.Wb(1,"div",56),o.Wb(2,"mat-select",57),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",58),o.ec("click",(function(){return o.yc(n),o.ic().onDownloadCSV()})),o.Hc(5,"Download CSV"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}}var Ee=function(e){return{"px-3":e}};function Be(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",59),o.Wb(1,"button",60),o.ec("click",(function(e){o.yc(n);var a=t.$implicit;return o.ic().onInvoiceClick(a,e)})),o.Hc(2,"View Info"),o.Vb(),o.Vb()}if(2&e){var a=o.ic();o.pc("ngClass",o.tc(1,Ee,a.screenSize!==a.screenSizeEnum.XS))}}function Ue(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No invoices available."),o.Vb())}function Ne(e,t){if(1&e&&(o.Wb(0,"td",61),o.Fc(1,Ue,2,0,"p",62),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngIf",!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)}}var ze=function(e){return{"display-none":e}};function qe(e,t){if(1&e&&o.Rb(0,"tr",63),2&e){var n=o.ic();o.pc("ngClass",o.tc(1,ze,(null==n.invoices?null:n.invoices.data)&&(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)>0))}}function je(e,t){1&e&&o.Rb(0,"tr",64)}function Xe(e,t){if(1&e&&o.Rb(0,"tr",65),2&e){var n=t.$implicit,a=o.ic();o.pc("@newlyAddedRowAnimation",n.label==a.newlyAddedInvoiceMemo&&n.value==a.newlyAddedInvoiceValue&&a.flgAnimate?"added":"notAdded")}}var Ge=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},$e=function(){return["no_invoice"]},Qe=function(){function e(e,t,n,a,i){this.logger=e,this.store=t,this.decimalPipe=n,this.commonService=a,this.rtlEffects=i,this.showDetails=!0,this.faHistory=p.q,this.selNode={},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.flgAnimate=!0,this.description="",this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoiceJSONArr=[],this.information={},this.flgLoading=[!0],this.flgSticky=!1,this.private=!1,this.expiryStep=100,this.totalInvoices=100,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["expires_at","msatoshi","actions"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["expires_at","description","msatoshi","actions"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["expires_at","description","msatoshi","msatoshi_received","actions"]):(this.flgSticky=!0,this.displayedColumns=["expires_at","paid_at","description","msatoshi","msatoshi_received","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.dispatch(new y.F({num_max_invoices:100,index_offset:0,reversed:!1})),this.store.select("cl").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchInvoices"===t.action&&(e.flgLoading[0]="error")})),e.selNode=t.nodeSettings,e.information=t.information,e.totalInvoices=t.totalInvoices,e.logger.info(t),e.invoiceJSONArr=t.invoices.invoices&&t.invoices.invoices.length>0?t.invoices.invoices:[],e.invoices=new ie.o(t.invoices.invoices?[]:Object(te.g)(e.invoiceJSONArr)),e.invoices.data=e.invoiceJSONArr,e.invoices.sort=e.sort,e.invoices.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},e.invoices.paginator=e.paginator,setTimeout((function(){e.flgAnimate=!1}),5e3),e.logger.info(e.invoices),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.invoices)}))},e.prototype.openCreateInvoiceModal=function(){this.store.dispatch(new re.C({data:{pageSize:this.pageSize,component:xe}}))},e.prototype.onAddInvoice=function(e){this.invoiceValue||(this.invoiceValue=0);var t=this.expiry?this.expiry:3600;this.flgAnimate=!0,this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch(new re.F("Adding Invoice...")),this.store.dispatch(new y.xb({label:this.newlyAddedInvoiceMemo,amount:1e3*this.invoiceValue,description:this.description,expiry:t,private:this.private})),this.resetData()},e.prototype.onDeleteExpiredInvoices=function(){var e=this;this.store.dispatch(new re.D({data:{type:"CONFIRM",titleMessage:"Delete Expired Invoices",noBtnText:"Cancel",yesBtnText:"Delete Invoices"}})),this.rtlEffects.closeConfirm.pipe(Object(u.a)(this.unSubs[1])).subscribe((function(t){t&&(e.store.dispatch(new re.F("Deleting Invoices...")),e.store.dispatch(new y.m))}))},e.prototype.onInvoiceClick=function(e,t){this.store.dispatch(new re.C({data:{invoice:{msatoshi:e.msatoshi,label:e.label,expires_at_str:e.expires_at_str,paid_at_str:e.paid_at_str,bolt11:e.bolt11,payment_hash:e.payment_hash,description:e.description,status:e.status,msatoshi_received:e.msatoshi_received},newlyAdded:!1,component:oe.a}}))},e.prototype.resetData=function(){this.description="",this.invoiceValue=void 0,this.private=!1,this.expiry=void 0,this.invoiceValueHint=""},e.prototype.applyFilter=function(e){this.invoices.filter=e},e.prototype.onInvoiceValueChange=function(){var e=this;this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,g.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(u.a)(this.unSubs[1])).subscribe((function(t){e.invoiceValueHint="= "+t.symbol+e.decimalPipe.transform(t.OTHER,g.f.OTHER)+" "+t.unit})))},e.prototype.onDownloadCSV=function(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(v.h),o.Qb(a.e),o.Qb(h.a),o.Qb(se.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-lightning-invoices"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Dc(ne.a,!0)),2&e&&(o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.paginator=n.first))},inputs:{showDetails:"showDetails"},features:[o.Cb([{provide:ne.b,useValue:Object(g.w)("Invoices")}])],decls:39,vars:19,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","expires_at"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","paid_at"],["matColumnDef","description"],["matColumnDef","msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_received"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["matInput","","placeholder","Description","tabindex","2","name","description",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","step","100","min","1","tabindex","3","name","invoiceValue",3,"ngModel","ngModelChange","keyup"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","9","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["fxLayout","row"],["mat-stroked-button","","color","warn","tabindex","7","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unsettled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unsettled","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Fc(1,Ve,15,4,"form",1),o.Fc(2,we,5,0,"div",2),o.Wb(3,"div",3),o.Wb(4,"div",4),o.Wb(5,"div",5),o.Rb(6,"fa-icon",6),o.Wb(7,"span",7),o.Hc(8,"Invoices History"),o.Vb(),o.Vb(),o.Wb(9,"mat-form-field",8),o.Wb(10,"input",9),o.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),o.Vb(),o.Vb(),o.Vb(),o.Wb(11,"div",10),o.Fc(12,Ce,1,0,"mat-progress-bar",11),o.Wb(13,"table",12,13),o.Ub(15,14),o.Fc(16,Fe,2,0,"th",15),o.Fc(17,Le,4,3,"td",16),o.Tb(),o.Ub(18,17),o.Fc(19,Re,2,0,"th",15),o.Fc(20,He,2,1,"td",16),o.Tb(),o.Ub(21,18),o.Fc(22,ke,2,0,"th",15),o.Fc(23,Ie,4,4,"td",16),o.Tb(),o.Ub(24,19),o.Fc(25,_e,2,0,"th",20),o.Fc(26,Te,4,4,"td",16),o.Tb(),o.Ub(27,21),o.Fc(28,Oe,2,0,"th",20),o.Fc(29,Pe,4,4,"td",16),o.Tb(),o.Ub(30,22),o.Fc(31,Me,6,0,"th",23),o.Fc(32,Be,3,3,"td",24),o.Tb(),o.Ub(33,25),o.Fc(34,Ne,2,1,"td",26),o.Tb(),o.Fc(35,qe,1,3,"tr",27),o.Fc(36,je,1,0,"tr",28),o.Fc(37,Xe,1,1,"tr",29),o.Vb(),o.Vb(),o.Rb(38,"mat-paginator",30),o.Vb(),o.Vb()),2&e&&(o.Db(1),o.pc("ngIf",!t.showDetails),o.Db(1),o.pc("ngIf",t.showDetails),o.Db(1),o.pc("ngClass",o.tc(14,ze,!t.showDetails)),o.Db(3),o.pc("icon",t.faHistory),o.Db(6),o.pc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.pc("dataSource",t.invoices)("ngClass",o.tc(16,Ge,"error"===t.flgLoading[0])),o.Db(22),o.pc("matFooterRowDef",o.sc(18,$e)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns),o.Db(1),o.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[V.c,V.a,V.b,a.n,a.l,L.a,w.a,T.c,ue.b,M.b,ie.n,ae.a,ie.c,ie.i,ie.b,ie.e,ie.g,ie.k,ie.m,ne.a,be.t,be.m,be.n,be.b,be.l,be.o,be.p,fe.a,T.g,T.f,W.a,c.a,ie.h,ae.b,ie.a,O.a,a.o,L.b,pe.a,pe.c,he.n,ie.d,ie.f,ie.j,ie.l],pipes:[a.e],styles:[".mat-column-description[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"],data:{animation:[ce.a]}}),e}(),Ke=n("t9fZ"),Je=n("W7oF"),Ye=n("I21E"),Ze=["paymentReq"];function et(e,t){if(1&e){var n=o.Xb();o.Wb(0,"mat-radio-group",17),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().paymentType=e}))("change",(function(){return o.yc(n),o.ic().onPaymentTypeChange()})),o.Wb(1,"mat-radio-button",18),o.Hc(2,"Invoice Payment"),o.Vb(),o.Wb(3,"mat-radio-button",19),o.Hc(4,"Keysend Payment"),o.Vb(),o.Vb()}if(2&e){var a=o.ic();o.pc("ngModel",a.paymentType)}}function tt(e,t){1&e&&o.Sb(0)}function nt(e,t){if(1&e&&(o.Wb(0,"span"),o.Hc(1),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.Ic(n.paymentError)}}function at(e,t){if(1&e&&(o.Wb(0,"div",20),o.Rb(1,"fa-icon",21),o.Fc(2,nt,2,1,"span",22),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("icon",n.faExclamationTriangle),o.Db(1),o.pc("ngIf",""!==n.paymentError)}}function it(e,t){if(1&e&&(o.Wb(0,"mat-hint"),o.Hc(1),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.Ic(n.paymentDecodedHint)}}function ot(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Payment request is required."),o.Vb())}function ct(e,t){if(1&e&&(o.Wb(0,"mat-error"),o.Hc(1),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.Ic(n.paymentDecodedHint)}}function st(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Payment amount is required."),o.Vb())}function rt(e,t){if(1&e){var n=o.Xb();o.Wb(0,"mat-form-field",23),o.Wb(1,"input",27,28),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic(2).paymentAmount=e}))("change",(function(e){return o.yc(n),o.ic(2).onAmountChange(e)})),o.Vb(),o.Wb(3,"mat-hint"),o.Hc(4,"It is a zero amount invoice, enter amount to be paid."),o.Vb(),o.Fc(5,st,2,0,"mat-error",22),o.Vb()}if(2&e){var a=o.ic(2);o.Db(1),o.pc("ngModel",a.paymentAmount),o.Db(4),o.pc("ngIf",!a.paymentAmount)}}function lt(e,t){if(1&e){var n=o.Xb();o.Wb(0,"mat-form-field",23),o.Wb(1,"textarea",24,25),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().onPaymentRequestEntry(e)}))("matTextareaAutosize",(function(){return!0})),o.Vb(),o.Fc(3,it,2,1,"mat-hint",22),o.Fc(4,ot,2,0,"mat-error",22),o.Fc(5,ct,2,1,"mat-error",22),o.Vb(),o.Fc(6,rt,6,2,"mat-form-field",26)}if(2&e){var a=o.wc(2),i=o.ic();o.Db(1),o.pc("ngModel",i.paymentRequest),o.Db(2),o.pc("ngIf",i.paymentRequest&&""!==i.paymentDecodedHint),o.Db(1),o.pc("ngIf",!i.paymentRequest),o.Db(1),o.pc("ngIf",null==a.errors?null:a.errors.decodeError),o.Db(1),o.pc("ngIf",i.zeroAmtInvoice)}}function bt(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Pubkey is required."),o.Vb())}function ut(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Keysend amount is required."),o.Vb())}function dt(e,t){if(1&e){var n=o.Xb();o.Wb(0,"mat-form-field",23),o.Wb(1,"input",29),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().pubkey=e})),o.Vb(),o.Fc(2,bt,2,0,"mat-error",22),o.Vb(),o.Wb(3,"mat-form-field",23),o.Wb(4,"input",30,31),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().keysendAmount=e})),o.Vb(),o.Fc(6,ut,2,0,"mat-error",22),o.Vb()}if(2&e){var a=o.ic();o.Db(1),o.pc("ngModel",a.pubkey),o.Db(1),o.pc("ngIf",!a.pubkey),o.Db(2),o.pc("ngModel",a.keysendAmount),o.Db(2),o.pc("ngIf",!a.keysendAmount)}}var ft=function(){function e(e,t,n,a,i,o,c,s){this.dialogRef=e,this.store=t,this.clEffects=n,this.logger=a,this.commonService=i,this.decimalPipe=o,this.actions$=c,this.rtlEffects=s,this.faExclamationTriangle=p.n,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentType="invoice",this.pubkey="",this.keysendAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=g.i[0],this.feeLimitTypes=g.i,this.paymentError="",this.isCompatibleVersion=!1,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}return Object.defineProperty(e.prototype,"payReq",{set:function(e){e&&(this.paymentReq=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.store.select("cl").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.selNode=t.nodeSettings,e.activeChannels=t.allChannels.filter((function(e){return"CHANNELD_NORMAL"===e.state&&e.connected})),e.isCompatibleVersion=e.commonService.isVersionCompatible(t.information.version,"0.9.0")&&e.commonService.isVersionCompatible(t.information.api_version,"0.4.0"),e.logger.info(t)})),this.actions$.pipe(Object(u.a)(this.unSubs[1]),Object(d.a)((function(e){return e.type===y.o||e.type===y.cb}))).subscribe((function(t){t.type===y.cb&&e.dialogRef.close(),t.type===y.o&&("SendPayment"===t.payload.action&&(delete e.paymentDecoded.msatoshi,e.paymentError=t.payload.message),"DecodePayment"===t.payload.action&&(e.paymentDecodedHint="ERROR: "+t.payload.message,e.paymentReq.control.setErrors({decodeError:!0})))}))},e.prototype.onSendPayment=function(){var e=this;if("invoice"===this.paymentType&&!this.paymentRequest||"keysend"===this.paymentType&&(!this.pubkey||""===this.pubkey.trim()||!this.keysendAmount||this.keysendAmount<=0))return!0;"keysend"===this.paymentType?this.keysendPayment():this.paymentDecoded.created_at_str?this.sendPayment():(this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.paymentReq.control.setErrors(null),this.store.dispatch(new re.F("Decoding Payment...")),this.store.dispatch(new y.l({routeParam:this.paymentRequest,fromDialog:!0})),this.clEffects.setDecodedPaymentCL.pipe(Object(Ke.a)(1)).subscribe((function(t){e.paymentDecoded=t,e.paymentDecoded.created_at_str&&!e.paymentDecoded.msatoshi?(e.paymentDecoded.msatoshi=0,e.zeroAmtInvoice=!0,e.paymentDecodedHint="Zero Amount Invoice | Memo: "+e.paymentDecoded.description):(e.zeroAmtInvoice=!1,e.commonService.convertCurrency(e.paymentDecoded.msatoshi?e.paymentDecoded.msatoshi/1e3:0,g.g.SATS,e.selNode.currencyUnits[2],e.selNode.fiatConversion).pipe(Object(u.a)(e.unSubs[2])).subscribe((function(t){e.paymentDecodedHint=e.selNode.fiatConversion?"Sending: "+e.decimalPipe.transform(e.paymentDecoded.msatoshi?e.paymentDecoded.msatoshi/1e3:0)+" Sats ("+t.symbol+e.decimalPipe.transform(t.OTHER?t.OTHER:0,g.f.OTHER)+") | Memo: "+e.paymentDecoded.description:"Sending: "+e.decimalPipe.transform(e.paymentDecoded.msatoshi?e.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+e.paymentDecoded.description})))})))},e.prototype.keysendPayment=function(){this.store.dispatch(new re.F("Sending Keysend Payment...")),this.store.dispatch(new y.zb({pubkey:this.pubkey,amount:1e3*this.keysendAmount,fromDialog:!0}))},e.prototype.sendPayment=function(){this.store.dispatch(new re.F("Sending Payment...")),this.store.dispatch(new y.zb(this.zeroAmtInvoice?{invoice:this.paymentRequest,amount:1e3*this.paymentAmount,fromDialog:!0}:{invoice:this.paymentRequest,fromDialog:!0}))},e.prototype.onPaymentRequestEntry=function(e){var t=this;this.paymentRequest=e,this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.store.dispatch(new re.F("Decoding Payment...")),this.store.dispatch(new y.l({routeParam:this.paymentRequest,fromDialog:!0})),this.clEffects.setDecodedPaymentCL.subscribe((function(e){t.paymentDecoded=e,t.paymentDecoded.created_at_str&&!t.paymentDecoded.msatoshi?(t.paymentDecoded.msatoshi=0,t.zeroAmtInvoice=!0,t.paymentDecodedHint="Zero Amount Invoice | Memo: "+t.paymentDecoded.description):(t.zeroAmtInvoice=!1,t.commonService.convertCurrency(t.paymentDecoded.msatoshi?t.paymentDecoded.msatoshi/1e3:0,g.g.SATS,t.selNode.currencyUnits[2],t.selNode.fiatConversion).pipe(Object(u.a)(t.unSubs[3])).subscribe((function(e){t.paymentDecodedHint=t.selNode.fiatConversion?"Sending: "+t.decimalPipe.transform(t.paymentDecoded.msatoshi?t.paymentDecoded.msatoshi/1e3:0)+" Sats ("+e.symbol+t.decimalPipe.transform(e.OTHER?e.OTHER:0,g.f.OTHER)+") | Memo: "+t.paymentDecoded.description:"Sending: "+t.decimalPipe.transform(t.paymentDecoded.msatoshi?t.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+t.paymentDecoded.description})))})))},e.prototype.onAmountChange=function(e){delete this.paymentDecoded.msatoshi,this.paymentDecoded.msatoshi=e},e.prototype.onPaymentTypeChange=function(){this.paymentError=""},e.prototype.resetData=function(){"keysend"===this.paymentType?(this.pubkey="",this.keysendAmount=null):(this.paymentDecoded={},this.paymentRequest="",this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=g.i[0],this.paymentReq.control.setErrors(null),this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentAmount=null),this.paymentError=""},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(le.f),o.Qb(v.h),o.Qb(Je.a),o.Qb(m.b),o.Qb(h.a),o.Qb(a.e),o.Qb(x.a),o.Qb(se.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-lightning-send-payments"]],viewQuery:function(e,t){var n;1&e&&o.Mc(Ze,!0),2&e&&o.vc(n=o.fc())&&(t.payReq=n.first)},decls:23,vars:4,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","12","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","start stretch",1,"mt-5px"],["class","my-1","color","primary","name","paymentType","fxFlex","100","fxLayoutAlign","start stretch",3,"ngModel","ngModelChange","change",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["sendPaymentForm","ngForm"],[4,"ngTemplateOutlet"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","8","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","7",3,"click"],["invoiceBlock",""],["keysendBlock",""],["color","primary","name","paymentType","fxFlex","100","fxLayoutAlign","start stretch",1,"my-1",3,"ngModel","ngModelChange","change"],["fxFlex","25","tabindex","1","value","invoice",1,"mr-2"],["fxFlex","25","tabindex","2","value","keysend"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"],["fxFlex","100"],["autoFocus","","matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","3","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],["fxFlex","100",4,"ngIf"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","4","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],["autoFocus","","matInput","","placeholder","Pubkey","name","pubkey","tabindex","5","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Amount (Sats)","name","keysendAmount","tabindex","6","required","",3,"ngModel","ngModelChange"],["keysendAmt","ngModel"]],template:function(e,t){if(1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"mat-card-header",2),o.Wb(3,"div",3),o.Wb(4,"span",4),o.Hc(5,"Send Payment"),o.Vb(),o.Vb(),o.Wb(6,"button",5),o.Hc(7,"X"),o.Vb(),o.Vb(),o.Wb(8,"mat-card-content",6),o.Fc(9,et,5,1,"mat-radio-group",7),o.Wb(10,"form",8,9),o.Fc(12,tt,1,0,"ng-container",10),o.Fc(13,at,3,2,"div",11),o.Wb(14,"div",12),o.Wb(15,"button",13),o.ec("click",(function(){return t.resetData()})),o.Hc(16,"Clear Fields"),o.Vb(),o.Wb(17,"button",14),o.ec("click",(function(){return t.onSendPayment()})),o.Hc(18,"Send Payment"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Fc(19,lt,7,5,"ng-template",null,15,o.Gc),o.Fc(21,dt,7,4,"ng-template",null,16,o.Gc)),2&e){var n=o.wc(20),a=o.wc(22);o.Db(6),o.pc("mat-dialog-close",!1),o.Db(3),o.pc("ngIf",t.isCompatibleVersion),o.Db(3),o.pc("ngTemplateOutlet","keysend"===t.paymentType?a:n),o.Db(1),o.pc("ngIf",""!==t.paymentError)}},directives:[V.c,V.a,F.c,V.b,W.a,le.d,F.b,a.n,be.t,be.m,be.n,a.s,Ye.b,be.l,be.o,Ye.a,w.a,T.c,ue.b,be.b,ue.d,de.a,be.r,T.f,T.b],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e}(),pt=["sendPaymentForm"];function mt(e,t){if(1&e&&(o.Wb(0,"mat-hint"),o.Hc(1),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.Ic(n.paymentDecodedHint)}}function ht(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Payment request is required."),o.Vb())}function gt(e,t){if(1&e){var n=o.Xb();o.Wb(0,"mat-form-field",39),o.Wb(1,"textarea",40,41),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().onPaymentRequestEntry(e)}))("matTextareaAutosize",(function(){return!0})),o.Vb(),o.Fc(3,mt,2,1,"mat-hint",42),o.Fc(4,ht,2,0,"mat-error",42),o.Vb()}if(2&e){var a=o.ic();o.Db(1),o.pc("ngModel",a.paymentRequest),o.Db(2),o.pc("ngIf",a.paymentRequest&&""!==a.paymentDecodedHint),o.Db(1),o.pc("ngIf",!a.paymentRequest)}}function yt(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",43),o.Wb(1,"button",44),o.ec("click",(function(){return o.yc(n),o.ic().resetData()})),o.Hc(2,"Clear Field"),o.Vb(),o.Wb(3,"button",45),o.ec("click",(function(){return o.yc(n),o.ic().onSendPayment()})),o.Hc(4,"Send Payment"),o.Vb(),o.Vb()}}function vt(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",46),o.Wb(1,"button",45),o.ec("click",(function(){return o.yc(n),o.ic().openSendPaymentModal()})),o.Hc(2,"Send Payment"),o.Vb(),o.Vb()}}function xt(e,t){1&e&&o.Rb(0,"mat-progress-bar",47)}function Vt(e,t){1&e&&(o.Wb(0,"th",48),o.Hc(1,"Created At"),o.Vb())}var wt=function(e){return{"mr-0":e}};function Ct(e,t){if(1&e&&o.Rb(0,"span",52),2&e){var n=o.ic(2);o.pc("ngClass",o.tc(1,wt,n.screenSize===n.screenSizeEnum.XS))}}function Ft(e,t){if(1&e&&o.Rb(0,"span",53),2&e){var n=o.ic(2);o.pc("ngClass",o.tc(1,wt,n.screenSize===n.screenSizeEnum.XS))}}function Dt(e,t){if(1&e&&(o.Wb(0,"td",49),o.Fc(1,Ct,1,3,"span",50),o.Fc(2,Ft,1,3,"span",51),o.Hc(3),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.pc("ngIf","complete"===n.status),o.Db(1),o.pc("ngIf","complete"!==n.status),o.Db(1),o.Jc(" ",null==n?null:n.created_at_str," ")}}function Wt(e,t){1&e&&(o.Wb(0,"th",48),o.Hc(1,"Payment Hash"),o.Vb())}function St(e,t){if(1&e&&(o.Wb(0,"td",49),o.Wb(1,"div"),o.Hc(2),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(null==n?null:n.payment_hash)}}function Lt(e,t){1&e&&(o.Wb(0,"th",54),o.Hc(1,"Sats Sent"),o.Vb())}function Rt(e,t){if(1&e&&(o.Wb(0,"td",49),o.Wb(1,"span",55),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.lc(3,1,(null==n?null:n.msatoshi_sent)/1e3,(null==n?null:n.msatoshi_sent)<1e3?"1.0-4":"1.0-0"))}}function Ht(e,t){1&e&&(o.Wb(0,"th",54),o.Hc(1,"Sats Received"),o.Vb())}function kt(e,t){if(1&e&&(o.Wb(0,"td",49),o.Wb(1,"span",55),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.lc(3,1,(null==n?null:n.msatoshi)/1e3,(null==n?null:n.msatoshi)<1e3?"1.0-4":"1.0-0"))}}function At(e,t){if(1&e){var n=o.Xb();o.Wb(0,"th",56),o.Wb(1,"div",57),o.Wb(2,"mat-select",58),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",59),o.ec("click",(function(){return o.yc(n),o.ic().onDownloadCSV()})),o.Hc(5,"Download CSV"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}}function It(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",60),o.Wb(1,"button",61),o.ec("click",(function(){o.yc(n);var e=t.$implicit;return o.ic().onPaymentClick(e)})),o.Hc(2,"View Info"),o.Vb(),o.Vb()}}function _t(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No payments available."),o.Vb())}function Tt(e,t){if(1&e&&(o.Wb(0,"td",62),o.Fc(1,_t,2,0,"p",42),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngIf",!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)}}function Ot(e,t){if(1&e&&o.Rb(0,"span",66),2&e){var n=o.ic(2);o.pc("ngClass",o.tc(1,wt,n.screenSize===n.screenSizeEnum.XS))}}function Pt(e,t){if(1&e&&o.Rb(0,"span",67),2&e){var n=o.ic(2);o.pc("ngClass",o.tc(1,wt,n.screenSize===n.screenSizeEnum.XS))}}function Mt(e,t){if(1&e&&o.Rb(0,"span",66),2&e){var n=o.ic(4);o.pc("ngClass",o.tc(1,wt,n.screenSize===n.screenSizeEnum.XS))}}function Et(e,t){if(1&e&&o.Rb(0,"span",67),2&e){var n=o.ic(4);o.pc("ngClass",o.tc(1,wt,n.screenSize===n.screenSizeEnum.XS))}}function Bt(e,t){if(1&e&&(o.Wb(0,"span",69),o.Fc(1,Mt,1,3,"span",64),o.Fc(2,Et,1,3,"span",65),o.Hc(3),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.pc("ngIf","complete"===n.status),o.Db(1),o.pc("ngIf","complete"!==n.status),o.Db(1),o.Jc(" ",n.created_at_str," ")}}function Ut(e,t){if(1&e&&(o.Ub(0),o.Fc(1,Bt,4,3,"span",68),o.Tb()),2&e){var n=o.ic().$implicit;o.Db(1),o.pc("ngForOf",null==n?null:n.mpps)}}function Nt(e,t){if(1&e&&(o.Wb(0,"td",49),o.Wb(1,"span",63),o.Fc(2,Ot,1,3,"span",64),o.Fc(3,Pt,1,3,"span",65),o.Hc(4),o.Vb(),o.Fc(5,Ut,2,1,"ng-container",42),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.pc("ngIf","complete"===n.status),o.Db(1),o.pc("ngIf","complete"!==n.status),o.Db(1),o.Jc(" Total Attempts: ",null==n?null:n.total_parts," "),o.Db(1),o.pc("ngIf",n.is_expanded)}}function zt(e,t){if(1&e&&(o.Wb(0,"span",63),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" Part ID ",n.partid?n.partid:0," ")}}function qt(e,t){if(1&e&&(o.Wb(0,"span"),o.Fc(1,zt,2,1,"span",70),o.Vb()),2&e){var n=o.ic().$implicit;o.Db(1),o.pc("ngForOf",null==n?null:n.mpps)}}function jt(e,t){if(1&e&&(o.Wb(0,"td",49),o.Wb(1,"span",63),o.Hc(2),o.Vb(),o.Fc(3,qt,2,1,"span",42),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(null==n?null:n.payment_hash),o.Db(1),o.pc("ngIf",n.is_expanded)}}function Xt(e,t){if(1&e&&(o.Wb(0,"span",71),o.Hc(1),o.jc(2,"number"),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",o.lc(2,1,n.msatoshi_sent/1e3,n.msatoshi_sent<1e3?"1.0-4":"1.0-0")," ")}}function Gt(e,t){if(1&e&&(o.Wb(0,"span"),o.Fc(1,Xt,3,4,"span",72),o.Vb()),2&e){var n=o.ic().$implicit;o.Db(1),o.pc("ngForOf",null==n?null:n.mpps)}}function $t(e,t){if(1&e&&(o.Wb(0,"td",49),o.Wb(1,"span",71),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Fc(4,Gt,2,1,"span",42),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.lc(3,2,(null==n?null:n.msatoshi_sent)/1e3,(null==n?null:n.msatoshi_sent)<1e3?"1.0-4":"1.0-0")),o.Db(2),o.pc("ngIf",n.is_expanded)}}function Qt(e,t){if(1&e&&(o.Wb(0,"span",71),o.Hc(1),o.jc(2,"number"),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",o.lc(2,1,n.msatoshi/1e3,n.msatoshi<1e3?"1.0-4":"1.0-0")," ")}}function Kt(e,t){if(1&e&&(o.Wb(0,"span"),o.Fc(1,Qt,3,4,"span",72),o.Vb()),2&e){var n=o.ic().$implicit;o.Db(1),o.pc("ngForOf",null==n?null:n.mpps)}}function Jt(e,t){if(1&e&&(o.Wb(0,"td",49),o.Wb(1,"span",71),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Fc(4,Kt,2,1,"span",42),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.lc(3,2,(null==n?null:n.msatoshi)/1e3,(null==n?null:n.msatoshi)<1e3?"1.0-4":"1.0-0")),o.Db(2),o.pc("ngIf",n.is_expanded)}}function Yt(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",55),o.Wb(1,"button",76),o.ec("click",(function(){o.yc(n);var e=t.$implicit;return o.ic(3).onPaymentClick(e)})),o.Hc(2),o.Vb(),o.Vb()}if(2&e){var a=t.$implicit;o.Db(2),o.Jc("View ",a.partid?a.partid:0,"")}}function Zt(e,t){if(1&e&&(o.Wb(0,"div"),o.Fc(1,Yt,3,1,"div",75),o.Vb()),2&e){var n=o.ic().$implicit;o.Db(1),o.pc("ngForOf",null==n?null:n.mpps)}}function en(e,t){if(1&e&&(o.Wb(0,"td",73),o.Wb(1,"span",55),o.Wb(2,"button",74),o.ec("click",(function(){var e=t.$implicit;return e.is_expanded=!e.is_expanded})),o.Hc(3),o.Vb(),o.Vb(),o.Fc(4,Zt,2,1,"div",42),o.Vb()),2&e){var n=t.$implicit;o.Db(3),o.Ic(n.is_expanded?"Hide":"Show"),o.Db(1),o.pc("ngIf",n.is_expanded)}}function tn(e,t){if(1&e&&o.Rb(0,"tr",77),2&e){var n=t.$implicit,a=o.ic();o.pc("@newlyAddedRowAnimation",n.payment_hash===a.newlyAddedPayment&&a.flgAnimate?"added":"notAdded")}}var nn=function(e){return{"display-none":e}};function an(e,t){if(1&e&&o.Rb(0,"tr",78),2&e){var n=o.ic();o.pc("ngClass",o.tc(1,nn,(null==n.payments?null:n.payments.data)&&(null==n.payments||null==n.payments.data?null:n.payments.data.length)>0))}}function on(e,t){1&e&&o.Rb(0,"tr",79)}function cn(e,t){if(1&e&&o.Rb(0,"tr",77),2&e){var n=t.$implicit,a=o.ic();o.pc("@newlyAddedRowAnimation",n.payment_hash===a.newlyAddedPayment&&a.flgAnimate?"added":"notAdded")}}var sn=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},rn=function(){return["no_payment"]},ln=function(){function e(e,t,n,a,i,o,c){this.logger=e,this.commonService=t,this.store=n,this.rtlEffects=a,this.clEffects=i,this.decimalPipe=o,this.titleCasePipe=c,this.showDetails=!0,this.faHistory=p.q,this.newlyAddedPayment="",this.flgAnimate=!0,this.selNode={},this.flgLoading=[!0],this.information={},this.paymentJSONArr=[],this.displayedColumns=[],this.mppColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["created_at","actions"],this.mppColumns=["groupTotal","groupAction"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["created_at","msatoshi","actions"],this.mppColumns=["groupTotal","groupAmtRecv","groupAction"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["created_at","msatoshi_sent","msatoshi","actions"],this.mppColumns=["groupTotal","groupAmtSent","groupAmtRecv","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["created_at","payment_hash","msatoshi_sent","msatoshi","actions"],this.mppColumns=["groupTotal","groupHash","groupAmtSent","groupAmtRecv","groupAction"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("cl").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchPayments"===t.action&&(e.flgLoading[0]="error")})),e.information=t.information,e.selNode=t.nodeSettings,e.paymentJSONArr=t.payments&&t.payments.length>0?t.payments:[],e.payments=new ie.o(t.payments?Object(te.g)(e.paymentJSONArr):[]),e.payments.data=e.paymentJSONArr,e.payments.sort=e.sort,e.payments.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},e.payments.paginator=e.paginator,setTimeout((function(){e.flgAnimate=!1}),3e3),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!e.paymentJSONArr),e.logger.info(t)}))},e.prototype.is_group=function(e,t){return t.is_group},e.prototype.onSendPayment=function(){var e=this;if(!this.paymentRequest)return!0;this.paymentDecoded.created_at_str?this.sendPayment():(this.store.dispatch(new re.F("Decoding Payment...")),this.store.dispatch(new y.l({routeParam:this.paymentRequest,fromDialog:!1})),this.clEffects.setDecodedPaymentCL.pipe(Object(Ke.a)(1)).subscribe((function(t){e.paymentDecoded=t,e.paymentDecoded.created_at_str?(e.paymentDecoded.msatoshi||(e.paymentDecoded.msatoshi=0),e.sendPayment()):e.resetData()})))},e.prototype.sendPayment=function(){var e=this;this.flgAnimate=!0,this.newlyAddedPayment=this.paymentDecoded.payment_hash,this.paymentDecoded.msatoshi&&0!==this.paymentDecoded.msatoshi?(this.store.dispatch(new re.D({data:{type:g.b.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"payee",value:this.paymentDecoded.payee,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"created_at_str",value:this.paymentDecoded.created_at_str,title:"Creation Date",width:50},{key:"num_satoshis",value:this.paymentDecoded.msatoshi/1e3,title:"Amount (Sats)",width:50,type:g.h.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:g.h.NUMBER},{key:"min_finaltv_expiry",value:this.paymentDecoded.min_final_cltv_expiry,title:"CLTV Expiry",width:50}]]}})),this.rtlEffects.closeConfirm.pipe(Object(Ke.a)(1)).subscribe((function(t){t&&(e.store.dispatch(new re.F("Sending Payment...")),e.store.dispatch(new y.zb({invoice:e.paymentRequest,fromDialog:!1})),e.resetData())}))):(this.store.dispatch(new re.D({data:{type:g.b.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"payee",value:this.paymentDecoded.payee,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"created_at_str",value:this.paymentDecoded.created_at_str,title:"Creation Date",width:40},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:g.h.NUMBER},{key:"min_finaltv_expiry",value:this.paymentDecoded.min_final_cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",getInputs:[{placeholder:"Amount (Sats)",inputType:g.h.NUMBER.toLowerCase(),inputValue:"",width:30}]}})),this.rtlEffects.closeConfirm.pipe(Object(Ke.a)(1)).subscribe((function(t){t&&(e.paymentDecoded.msatoshi=t[0].inputValue,e.store.dispatch(new re.F("Sending Payment...")),e.store.dispatch(new y.zb({invoice:e.paymentRequest,amount:1e3*t[0].inputValue,fromDialog:!1})),e.resetData())})))},e.prototype.onPaymentRequestEntry=function(e){var t=this;this.paymentRequest=e,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&(this.store.dispatch(new re.F("Decoding Payment...")),this.store.dispatch(new y.l({routeParam:this.paymentRequest,fromDialog:!1})),this.clEffects.setDecodedPaymentCL.subscribe((function(e){t.paymentDecoded=e,t.paymentDecoded.msatoshi?t.commonService.convertCurrency(t.paymentDecoded.msatoshi?t.paymentDecoded.msatoshi/1e3:0,g.g.SATS,t.selNode.currencyUnits[2],t.selNode.fiatConversion).pipe(Object(u.a)(t.unSubs[1])).subscribe((function(e){t.paymentDecodedHint=t.selNode.fiatConversion?"Sending: "+t.decimalPipe.transform(t.paymentDecoded.msatoshi?t.paymentDecoded.msatoshi/1e3:0)+" Sats ("+e.symbol+t.decimalPipe.transform(e.OTHER?e.OTHER:0,g.f.OTHER)+") | Memo: "+t.paymentDecoded.description:"Sending: "+t.decimalPipe.transform(t.paymentDecoded.msatoshi?t.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+t.paymentDecoded.description})):t.paymentDecodedHint="Zero Amount Invoice | Memo: "+t.paymentDecoded.description})))},e.prototype.openSendPaymentModal=function(){this.store.dispatch(new re.C({data:{component:ft}}))},e.prototype.resetData=function(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()},e.prototype.onPaymentClick=function(e){var t=[[{key:"bolt11",value:e.bolt11,title:"Bolt 11",width:100,type:g.h.STRING}],[{key:"payment_preimage",value:e.payment_preimage,title:"Payment Preimage",width:100,type:g.h.STRING}],[{key:"id",value:e.id,title:"ID",width:20,type:g.h.STRING},{key:"destination",value:e.destination,title:"Destination",width:80,type:g.h.STRING}],[{key:"created_at_str",value:e.created_at_str,title:"Creation Date",width:50,type:g.h.DATE_TIME},{key:"status",value:this.titleCasePipe.transform(e.status),title:"Status",width:50,type:g.h.STRING}],[{key:"msatoshi",value:e.msatoshi,title:"Amount (mSats)",width:50,type:g.h.NUMBER},{key:"msatoshi_sent",value:e.msatoshi_sent,title:"Amount Sent (mSats)",width:50,type:g.h.NUMBER}]];e.memo&&""!==e.memo&&t.splice(2,0,[{key:"memo",value:e.memo,title:"Memo",width:100,type:g.h.STRING}]),e.hasOwnProperty("partid")?t.unshift([{key:"payment_hash",value:e.payment_hash,title:"Payment Hash",width:80,type:g.h.STRING},{key:"partid",value:e.partid,title:"Part ID",width:20,type:g.h.STRING}]):t.unshift([{key:"payment_hash",value:e.payment_hash,title:"Payment Hash",width:100,type:g.h.STRING}]),this.store.dispatch(new re.C({data:{type:g.b.INFORMATION,alertTitle:"Payment Information",message:t}}))},e.prototype.applyFilter=function(e){this.payments.filter=e},e.prototype.onDownloadCSV=function(){if(this.payments.data&&this.payments.data.length>0){var e=JSON.parse(JSON.stringify(this.payments.data)).reduce((function(e,t){return t.mpps?e.concat(t.mpps):(delete t.is_group,delete t.is_expanded,delete t.total_parts,e.concat(t))}),[]);this.commonService.downloadFile(e,"Payments")}},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(h.a),o.Qb(v.h),o.Qb(se.a),o.Qb(Je.a),o.Qb(a.e),o.Qb(a.w))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-lightning-payments"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(pt,!0),o.Dc(ae.a,!0),o.Dc(ne.a,!0)),2&e&&(o.vc(n=o.fc())&&(t.form=n.first),o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.paginator=n.first))},inputs:{showDetails:"showDetails"},features:[o.Cb([{provide:ne.b,useValue:Object(g.w)("Payments")}])],decls:50,vars:23,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100",4,"ngIf"],["fxLayout","row","class","mt-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","created_at"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","payment_hash"],["matColumnDef","msatoshi_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupHash"],["matColumnDef","groupAmtSent"],["matColumnDef","groupAmtRecv"],["matColumnDef","groupAction"],["mat-cell","","class","px-3",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Completed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Completed","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"mpp-row-span"],["class","dot green mt-0","matTooltip","Completed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow mt-0","matTooltip","Incomplete/Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Completed","matTooltipPosition","right",1,"dot","green","mt-0",3,"ngClass"],["matTooltip","Incomplete/Failed","matTooltipPosition","right",1,"dot","yellow","mt-0",3,"ngClass"],["fxLayoutAlign","start center","class","mpp-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"mpp-row-span","pl-3"],["fxLayoutAlign","start center","class","mpp-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"mpp-row-span"],["fxLayoutAlign","end center","class","mpp-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-3"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-mpp-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-mpp-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"form",1,2),o.Fc(3,gt,5,3,"mat-form-field",3),o.Fc(4,yt,5,0,"div",4),o.Fc(5,vt,3,0,"div",5),o.Vb(),o.Wb(6,"div",6),o.Wb(7,"div",7),o.Wb(8,"div",8),o.Rb(9,"fa-icon",9),o.Wb(10,"span",10),o.Hc(11,"Payments History"),o.Vb(),o.Vb(),o.Wb(12,"mat-form-field",11),o.Wb(13,"input",12),o.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),o.Vb(),o.Vb(),o.Vb(),o.Wb(14,"div",13),o.Fc(15,xt,1,0,"mat-progress-bar",14),o.Wb(16,"table",15,16),o.Ub(18,17),o.Fc(19,Vt,2,0,"th",18),o.Fc(20,Dt,4,3,"td",19),o.Tb(),o.Ub(21,20),o.Fc(22,Wt,2,0,"th",18),o.Fc(23,St,3,1,"td",19),o.Tb(),o.Ub(24,21),o.Fc(25,Lt,2,0,"th",22),o.Fc(26,Rt,4,4,"td",19),o.Tb(),o.Ub(27,23),o.Fc(28,Ht,2,0,"th",22),o.Fc(29,kt,4,4,"td",19),o.Tb(),o.Ub(30,24),o.Fc(31,At,6,0,"th",25),o.Fc(32,It,3,0,"td",26),o.Tb(),o.Ub(33,27),o.Fc(34,Tt,2,1,"td",28),o.Tb(),o.Ub(35,29),o.Fc(36,Nt,6,4,"td",19),o.Tb(),o.Ub(37,30),o.Fc(38,jt,4,2,"td",19),o.Tb(),o.Ub(39,31),o.Fc(40,$t,5,5,"td",19),o.Tb(),o.Ub(41,32),o.Fc(42,Jt,5,5,"td",19),o.Tb(),o.Ub(43,33),o.Fc(44,en,5,2,"td",34),o.Tb(),o.Fc(45,tn,1,1,"tr",35),o.Fc(46,an,1,3,"tr",36),o.Fc(47,on,1,0,"tr",37),o.Fc(48,cn,1,1,"tr",35),o.Vb(),o.Vb(),o.Rb(49,"mat-paginator",38),o.Vb(),o.Vb()),2&e&&(o.Db(3),o.pc("ngIf",!t.showDetails),o.Db(1),o.pc("ngIf",!t.showDetails),o.Db(1),o.pc("ngIf",t.showDetails),o.Db(1),o.pc("ngClass",o.tc(18,nn,!t.showDetails)),o.Db(3),o.pc("icon",t.faHistory),o.Db(6),o.pc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.pc("dataSource",t.payments)("ngClass",o.tc(20,sn,"error"===t.flgLoading[0])),o.Db(29),o.pc("matRowDefColumns",t.mppColumns)("matRowDefWhen",t.is_group),o.Db(1),o.pc("matFooterRowDef",o.sc(22,rn)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns)("matRowDefWhen",!t.is_group),o.Db(1),o.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[V.c,V.a,V.b,be.t,be.m,be.n,a.n,a.l,L.a,w.a,T.c,ue.b,M.b,ie.n,ae.a,ie.c,ie.i,ie.b,ie.e,ie.m,ie.g,ie.k,ne.a,be.b,ue.d,be.r,be.l,be.o,T.f,T.b,W.a,c.a,ie.h,ae.b,ie.a,O.a,pe.a,pe.c,he.n,ie.d,a.m,ie.l,ie.f,ie.j],pipes:[a.e],styles:[".mat-column-bolt11[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%], .mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-mpp-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-mpp-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.mpp-row-span[_ngcontent-%COMP%]{min-height:4.2rem}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"],data:{animation:[ce.a]}}),e}();function bn(e,t){if(1&e&&(o.Wb(0,"button",24),o.Wb(1,"mat-icon"),o.Hc(2,"more_vert"),o.Vb(),o.Vb()),2&e){o.ic();var n=o.wc(9);o.pc("matMenuTriggerFor",n)}}function un(e,t){if(1&e){var n=o.Xb();o.Wb(0,"button",14),o.ec("click",(function(){return o.yc(n),o.ic(3).onsortChannelsBy()})),o.Hc(1),o.Vb()}if(2&e){var a=o.ic(3);o.Db(1),o.Jc("Sort By ","Balance Score"===a.sortField?"Capacity":"Balance Score","")}}var dn=function(e){return{"error-border":e}};function fn(e,t){if(1&e&&o.Rb(0,"rtl-cl-node-info",25),2&e){var n=o.ic(3);o.pc("information",n.information)("showColorFieldSeparately",!1)("ngClass",o.tc(3,dn,"error"===n.flgLoading[0]))}}function pn(e,t){if(1&e&&o.Rb(0,"rtl-cl-balances-info",26),2&e){var n=o.ic(3);o.pc("balances",n.balances)("ngClass",o.tc(2,dn,"error"===n.flgLoading[2]))}}function mn(e,t){if(1&e&&o.Rb(0,"rtl-cl-channel-capacity-info",27),2&e){var n=o.ic(3);o.pc("sortBy",n.sortField)("channelBalances",n.channelBalances)("allChannels",n.allChannelsCapacity)("ngClass",o.tc(4,dn,"error"===n.flgLoading[5]))}}function hn(e,t){if(1&e&&o.Rb(0,"rtl-cl-fee-info",28),2&e){var n=o.ic(3);o.pc("fees",n.fees)("ngClass",o.tc(2,dn,"error"===n.flgLoading[1]))}}function gn(e,t){if(1&e&&o.Rb(0,"rtl-cl-channel-status-info",29),2&e){var n=o.ic(3);o.pc("channelsStatus",n.channelsStatus)("ngClass",o.tc(2,dn,"error"===n.flgLoading[0]))}}function yn(e,t){1&e&&(o.Wb(0,"h3"),o.Hc(1,"Error! Unable to find information!"),o.Vb())}function vn(e,t){if(1&e){var n=o.Xb();o.Wb(0,"mat-grid-tile",8),o.Wb(1,"mat-card",9),o.Wb(2,"mat-card-header"),o.Wb(3,"mat-card-title"),o.Rb(4,"fa-icon",10),o.Wb(5,"span"),o.Hc(6),o.Vb(),o.Fc(7,bn,3,1,"button",11),o.Wb(8,"mat-menu",12,13),o.Wb(10,"button",14),o.ec("click",(function(){o.yc(n);var e=t.$implicit;return o.ic(2).onNavigateTo(e.link)})),o.Hc(11),o.Vb(),o.Fc(12,un,2,1,"button",15),o.Vb(),o.Vb(),o.Vb(),o.Wb(13,"mat-card-content",16),o.Wb(14,"div",17),o.Fc(15,fn,1,5,"rtl-cl-node-info",18),o.Fc(16,pn,1,4,"rtl-cl-balances-info",19),o.Fc(17,mn,1,6,"rtl-cl-channel-capacity-info",20),o.Fc(18,hn,1,4,"rtl-cl-fee-info",21),o.Fc(19,gn,1,4,"rtl-cl-channel-status-info",22),o.Fc(20,yn,2,0,"h3",23),o.Vb(),o.Vb(),o.Vb(),o.Vb()}if(2&e){var a=t.$implicit;o.pc("colspan",a.cols)("rowspan",a.rows),o.Db(4),o.pc("icon",a.icon),o.Db(2),o.Ic(a.title),o.Db(1),o.pc("ngIf",a.link),o.Db(4),o.Jc("Go To ",a.goTo,""),o.Db(1),o.pc("ngIf","capacity"===a.id),o.Db(2),o.pc("ngSwitch",a.id),o.Db(1),o.pc("ngSwitchCase","node"),o.Db(1),o.pc("ngSwitchCase","balance"),o.Db(1),o.pc("ngSwitchCase","capacity"),o.Db(1),o.pc("ngSwitchCase","fee"),o.Db(1),o.pc("ngSwitchCase","status")}}function xn(e,t){if(1&e&&(o.Wb(0,"div",2),o.Wb(1,"div",3),o.Rb(2,"fa-icon",4),o.Wb(3,"span",5),o.Hc(4),o.Vb(),o.Vb(),o.Wb(5,"mat-grid-list",6),o.Fc(6,vn,21,13,"mat-grid-tile",7),o.Vb(),o.Vb()),2&e){var n=o.ic();o.Db(2),o.pc("icon",n.flgLoading[0]?n.faFrown:n.faSmile),o.Db(2),o.Ic(n.flgLoading[0]?"Error! Please check the server connection.":"Welcome "+n.information.alias+"! Your node is up and running."),o.Db(1),o.pc("rowHeight",n.operatorCardHeight),o.Db(1),o.pc("ngForOf",n.operatorCards)}}function Vn(e,t){if(1&e&&(o.Wb(0,"button",24),o.Wb(1,"mat-icon"),o.Hc(2,"more_vert"),o.Vb(),o.Vb()),2&e){o.ic();var n=o.wc(7);o.pc("matMenuTriggerFor",n)}}function wn(e,t){if(1&e){var n=o.Xb();o.Wb(0,"mat-card-header"),o.Wb(1,"mat-card-title"),o.Rb(2,"fa-icon",10),o.Wb(3,"span"),o.Hc(4),o.Vb(),o.Fc(5,Vn,3,1,"button",11),o.Wb(6,"mat-menu",12,37),o.Wb(8,"button",14),o.ec("click",(function(){o.yc(n);var e=o.ic().$implicit;return o.ic(2).onNavigateTo(e.link)})),o.Hc(9),o.Vb(),o.Vb(),o.Vb(),o.Vb()}if(2&e){var a=o.ic().$implicit;o.Db(2),o.pc("icon",a.icon),o.Db(2),o.Ic(a.title),o.Db(1),o.pc("ngIf",a.link),o.Db(4),o.Jc("Go To ",a.goTo,"")}}function Cn(e,t){if(1&e&&o.Rb(0,"rtl-cl-node-info",38),2&e){var n=o.ic(3);o.pc("information",n.information)("ngClass",o.tc(2,dn,"error"===n.flgLoading[0]))}}function Fn(e,t){if(1&e&&o.Rb(0,"rtl-cl-balances-info",26),2&e){var n=o.ic(3);o.pc("balances",n.balances)("ngClass",o.tc(2,dn,"error"===n.flgLoading[2]))}}function Dn(e,t){if(1&e&&o.Rb(0,"rtl-cl-channel-liquidity-info",39),2&e){var n=o.ic(3);o.pc("direction","In")("totalLiquidity",n.totalInboundLiquidity)("allChannels",n.allInboundChannels)("ngClass",o.tc(4,dn,"error"===n.flgLoading[5]))}}function Wn(e,t){if(1&e&&o.Rb(0,"rtl-cl-channel-liquidity-info",39),2&e){var n=o.ic(3);o.pc("direction","Out")("totalLiquidity",n.totalOutboundLiquidity)("allChannels",n.allOutboundChannels)("ngClass",o.tc(4,dn,"error"===n.flgLoading[5]))}}function Sn(e,t){if(1&e){var n=o.Xb();o.Wb(0,"button",48),o.Wb(1,"mat-icon"),o.Hc(2,"more_vert"),o.Vb(),o.Vb(),o.Wb(3,"mat-menu",12,49),o.Wb(5,"button",14),o.ec("click",(function(){o.yc(n);var e=o.ic(2).$implicit;return o.ic(2).onNavigateTo(e.link)})),o.Hc(6),o.Vb(),o.Vb()}if(2&e){var a=o.wc(4),i=o.ic(2).$implicit;o.pc("matMenuTriggerFor",a),o.Db(6),o.Jc("Go To ",i.goTo,"")}}function Ln(e,t){1&e&&(o.Wb(0,"span",40),o.Wb(1,"mat-tab-group",41),o.Wb(2,"mat-tab",42),o.Rb(3,"rtl-cl-lightning-invoices",43),o.Vb(),o.Wb(4,"mat-tab",44),o.Rb(5,"rtl-cl-lightning-payments",45),o.Vb(),o.Wb(6,"mat-tab",46),o.Fc(7,Sn,7,2,"ng-template",47),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(3),o.pc("showDetails",!1),o.Db(2),o.pc("showDetails",!1),o.Db(1),o.pc("disabled",!0))}function Rn(e,t){1&e&&(o.Wb(0,"h3"),o.Hc(1,"Error! Unable to find information!"),o.Vb())}var Hn=function(e){return{"p-24":e}};function kn(e,t){if(1&e&&(o.Wb(0,"mat-grid-tile",8),o.Wb(1,"mat-card",31),o.Fc(2,wn,10,4,"mat-card-header",32),o.Wb(3,"mat-card-content",33),o.Wb(4,"div",17),o.Fc(5,Cn,1,4,"rtl-cl-node-info",34),o.Fc(6,Fn,1,4,"rtl-cl-balances-info",19),o.Fc(7,Dn,1,6,"rtl-cl-channel-liquidity-info",35),o.Fc(8,Wn,1,6,"rtl-cl-channel-liquidity-info",35),o.Fc(9,Ln,8,3,"span",36),o.Fc(10,Rn,2,0,"h3",23),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.pc("colspan",n.cols)("rowspan",n.rows),o.Db(1),o.pc("ngClass",o.tc(11,Hn,"transactions"!==n.id)),o.Db(1),o.pc("ngIf","transactions"!==n.id),o.Db(1),o.qc("fxFlex","transactions"!==n.id?95:100),o.Db(1),o.pc("ngSwitch",n.id),o.Db(1),o.pc("ngSwitchCase","node"),o.Db(1),o.pc("ngSwitchCase","balance"),o.Db(1),o.pc("ngSwitchCase","inboundLiq"),o.Db(1),o.pc("ngSwitchCase","outboundLiq"),o.Db(1),o.pc("ngSwitchCase","transactions")}}function An(e,t){if(1&e&&(o.Wb(0,"div",3),o.Rb(1,"fa-icon",4),o.Wb(2,"span",5),o.Hc(3),o.Vb(),o.Vb(),o.Wb(4,"mat-grid-list",30),o.Fc(5,kn,11,13,"mat-grid-tile",7),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("icon",n.faSmile),o.Db(2),o.Jc("Welcome ",n.information.alias,"! Your node is up and running."),o.Db(1),o.pc("rowHeight",n.merchantCardHeight),o.Db(1),o.pc("ngForOf",n.merchantCards)}}var In=function(){function e(e,t,n,a,i){this.logger=e,this.store=t,this.actions$=n,this.commonService=a,this.router=i,this.faSmile=f.b,this.faFrown=f.a,this.faAngleDoubleDown=p.a,this.faAngleDoubleUp=p.b,this.faChartPie=p.f,this.faBolt=p.e,this.faServer=p.F,this.faNetworkWired=p.x,this.flgChildInfoUpdated=!1,this.userPersonaEnum=g.u,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.totalBalance={},this.balances={onchain:-1,lightning:-1,total:0},this.allChannels=[],this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.feeRatesPerKB={},this.feeRatesPerKW={},this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="330px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.flgLoading=[!0,!0,!0,!0,!0,!0,!0,!0],this.unSubs=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goTo:"Routing",link:"/cl/routing",icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goTo:"Channels",link:"/cl/peerschannels",icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goTo:"Channels",link:"/cl/peerschannels",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goTo:"Transactions",link:"/cl/transactions",title:"",cols:6,rows:4},{id:"inboundLiq",goTo:"Channels",link:"/cl/peerschannels",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/cl/peerschannels",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goTo:"Routing",link:"/cl/routing",icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goTo:"Channels",link:"/cl/peerschannels",icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goTo:"Channels",link:"/cl/peerschannels",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goTo:"Transactions",link:"/cl/transactions",title:"",cols:3,rows:4},{id:"inboundLiq",goTo:"Channels",link:"/cl/peerschannels",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/cl/peerschannels",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCardHeight=.77*window.screen.height/2+"px",this.merchantCardHeight=.76*window.screen.height/10+"px",this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goTo:"Channels",link:"/cl/peerschannels",icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goTo:"Routing",link:"/cl/routing",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goTo:"Channels",link:"/cl/peerschannels",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goTo:"Channels",link:"/cl/peerschannels",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goTo:"Channels",link:"/cl/peerschannels",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goTo:"Transactions",link:"/cl/transactions",title:"",cols:2,rows:5}])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("cl").pipe(Object(u.a)(this.unSubs[1])).subscribe((function(t){e.flgLoading=[!0,!0,!0,!0,!0,!0,!0,!0],t.effectErrors.forEach((function(t){"FetchInfo"===t.action&&(e.flgLoading[0]="error"),"FetchFees"===t.action&&(e.flgLoading[1]="error"),"FetchBalance"===t.action&&(e.flgLoading[2]="error"),"FetchLocalRemoteBalance"===t.action&&(e.flgLoading[3]="error"),"FetchFeeRates"===t.action&&(e.flgLoading[4]="error"),"FetchChannels"===t.action&&(e.flgLoading[5]="error")})),e.selNode=t.nodeSettings,e.information=t.information,"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!e.information.id),e.fees=t.fees,"error"!==e.flgLoading[1]&&(e.flgLoading[1]=!e.fees.feeCollected),e.totalBalance=t.balance,e.balances.onchain=t.balance.totalBalance,e.balances.lightning=t.localRemoteBalance.localBalance,e.balances.total=e.balances.lightning+e.balances.onchain,e.balances=Object.assign({},e.balances),"error"!==e.flgLoading[2]&&(e.flgLoading[2]=""===e.totalBalance);var n=t.localRemoteBalance.localBalance?+t.localRemoteBalance.localBalance:0,a=t.localRemoteBalance.remoteBalance?+t.localRemoteBalance.remoteBalance:0;e.channelBalances={localBalance:n,remoteBalance:a,balancedness:+(1-Math.abs((n-a)/(n+a))).toFixed(3)},"error"!==e.flgLoading[3]&&(e.flgLoading[3]=!t.localRemoteBalance.localBalance),e.feeRatesPerKB=t.feeRatesPerKB,e.feeRatesPerKW=t.feeRatesPerKW,"error"!==e.flgLoading[4]&&(e.flgLoading[4]=!e.feeRatesPerKB||!e.feeRatesPerKW),e.channelsStatus={active:{channels:t.information.num_active_channels,capacity:t.localRemoteBalance.localBalance},pending:{channels:t.information.num_pending_channels,capacity:0|t.localRemoteBalance.pendingBalance},inactive:{channels:t.information.num_inactive_channels,capacity:0|t.localRemoteBalance.inactiveBalance}},e.totalInboundLiquidity=0,e.totalOutboundLiquidity=0,e.allChannels=t.allChannels.filter((function(e){return"CHANNELD_NORMAL"===e.state&&e.connected})),e.allChannelsCapacity=JSON.parse(JSON.stringify(e.commonService.sortDescByKey(e.allChannels,"balancedness"))),e.allInboundChannels=JSON.parse(JSON.stringify(e.commonService.sortDescByKey(e.allChannels.filter((function(e){return e.msatoshi_to_them>0})),"msatoshi_to_them"))),e.allOutboundChannels=JSON.parse(JSON.stringify(e.commonService.sortDescByKey(e.allChannels.filter((function(e){return e.msatoshi_to_us>0})),"msatoshi_to_us"))),e.allChannels.forEach((function(t){e.totalInboundLiquidity=e.totalInboundLiquidity+Math.ceil(t.msatoshi_to_them/1e3),e.totalOutboundLiquidity=e.totalOutboundLiquidity+Math.floor(t.msatoshi_to_us/1e3)})),"error"!==e.flgLoading[5]&&(e.flgLoading[5]=!e.allChannels||!e.allChannels.length),e.flgChildInfoUpdated=e.balances.lightning>=0&&e.balances.onchain>=0&&e.fees.feeCollected>=0,e.logger.info(t)})),this.actions$.pipe(Object(u.a)(this.unSubs[2]),Object(d.a)((function(e){return e.type===y.s||e.type===y.jb}))).subscribe((function(t){t.type===y.s&&(e.flgChildInfoUpdated=!1),t.type===y.jb&&(e.flgChildInfoUpdated=!0)}))},e.prototype.onNavigateTo=function(e){this.router.navigateByUrl(e)},e.prototype.onsortChannelsBy=function(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort((function(e,t){var n=+e.msatoshi_to_us+ +e.msatoshi_to_them,a=+t.msatoshi_to_them+ +t.msatoshi_to_them;return n>a?-1:n1?a.selUTXOs.length+" UTXOs":"1 UTXO",")"),o.Db(2),o.pc("ngForOf",a.transactions),o.Db(1),o.pc("ngModel",a.flgUseAllBalance)("disabled",a.selUTXOs.length<1)}}function Jn(e,t){if(1&e&&(o.Wb(0,"span"),o.Hc(1),o.Vb()),2&e){var n=o.ic(3);o.Db(1),o.Ic(n.sendFundError)}}function Yn(e,t){if(1&e&&(o.Wb(0,"div",43),o.Rb(1,"fa-icon",44),o.Fc(2,Jn,2,1,"span",14),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.pc("icon",n.faExclamationTriangle),o.Db(1),o.pc("ngIf",""!==n.sendFundError)}}function Zn(e,t){if(1&e){var n=o.Xb();o.Wb(0,"form",9,10),o.ec("submit",(function(){return o.yc(n),o.ic().onSendFunds()}))("reset",(function(){return o.yc(n),o.ic().resetData()})),o.Wb(2,"mat-form-field",11),o.Wb(3,"input",12,13),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().transaction.address=e})),o.Vb(),o.Fc(5,zn,2,0,"mat-error",14),o.Vb(),o.Wb(6,"mat-form-field",15),o.Wb(7,"input",16,17),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().transaction.satoshis=e})),o.Vb(),o.Fc(9,qn,2,0,"mat-hint",14),o.Wb(10,"span",18),o.Hc(11),o.Vb(),o.Fc(12,jn,2,0,"mat-error",14),o.Vb(),o.Wb(13,"mat-form-field",19),o.Wb(14,"mat-select",20),o.ec("selectionChange",(function(e){return o.yc(n),o.ic().onAmountUnitChange(e)})),o.Fc(15,Xn,2,2,"mat-option",21),o.Vb(),o.Vb(),o.Wb(16,"div",22),o.Wb(17,"mat-form-field",23),o.Wb(18,"mat-select",24),o.ec("valueChange",(function(e){return o.yc(n),o.ic().transaction.feeRate=e})),o.Fc(19,Gn,2,2,"mat-option",21),o.Vb(),o.Vb(),o.Wb(20,"div",25),o.Wb(21,"mat-checkbox",26),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().flgMinConf=e}))("change",(function(){o.yc(n);var e=o.ic();return e.flgMinConf?e.transaction.feeRate=null:e.transaction.minconf=null})),o.Vb(),o.Wb(22,"mat-form-field",27),o.Wb(23,"input",28,29),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().transaction.minconf=e})),o.Vb(),o.Fc(25,$n,2,0,"mat-error",14),o.Vb(),o.Vb(),o.Vb(),o.Fc(26,Kn,16,9,"div",30),o.Rb(27,"div",31),o.Fc(28,Yn,3,2,"div",32),o.Wb(29,"div",33),o.Wb(30,"button",34),o.Hc(31,"Clear Fields"),o.Vb(),o.Wb(32,"button",35),o.Hc(33,"Send Funds"),o.Vb(),o.Vb(),o.Vb()}if(2&e){var a=o.ic();o.Db(3),o.pc("ngModel",a.transaction.address),o.Db(2),o.pc("ngIf",!a.transaction.address),o.Db(2),o.pc("ngModel",a.transaction.satoshis)("type",a.flgUseAllBalance?"text":"number")("disabled",a.flgUseAllBalance),o.Db(2),o.pc("ngIf",a.flgUseAllBalance),o.Db(2),o.Jc(" ",a.selAmountUnit," "),o.Db(1),o.pc("ngIf",!a.transaction.satoshis),o.Db(2),o.pc("value",a.selAmountUnit)("disabled",a.flgUseAllBalance),o.Db(1),o.pc("ngForOf",a.amountUnits),o.Db(3),o.pc("value",a.transaction.feeRate)("disabled",a.flgMinConf),o.Db(1),o.pc("ngForOf",a.feeRateTypes),o.Db(2),o.pc("ngModel",a.flgMinConf),o.Db(2),o.pc("ngModel",a.transaction.minconf)("required",a.flgMinConf)("disabled",!a.flgMinConf),o.Db(2),o.pc("ngIf",a.flgMinConf&&!a.transaction.minconf),o.Db(1),o.pc("ngIf",a.isCompatibleVersion),o.Db(2),o.pc("ngIf",""!==a.sendFundError)}}function ea(e,t){if(1&e&&o.Hc(0),2&e){var n=o.ic(3);o.Ic(n.passwordFormLabel)}}function ta(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Password is required."),o.Vb())}function na(e,t){if(1&e){var n=o.Xb();o.Wb(0,"mat-step",49),o.Wb(1,"form",70),o.Fc(2,ea,1,1,"ng-template",64),o.Wb(3,"div",0),o.Wb(4,"mat-form-field",52),o.Rb(5,"input",71),o.Fc(6,ta,2,0,"mat-error",14),o.Vb(),o.Vb(),o.Wb(7,"div",72),o.Wb(8,"button",73),o.ec("click",(function(){return o.yc(n),o.ic(2).onAuthenticate()})),o.Hc(9,"Confirm"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}if(2&e){var a=o.ic(2);o.pc("stepControl",a.passwordFormGroup)("editable",a.flgEditable),o.Db(1),o.pc("formGroup",a.passwordFormGroup),o.Db(5),o.pc("ngIf",null==a.passwordFormGroup.controls.password.errors?null:a.passwordFormGroup.controls.password.errors.required)}}function aa(e,t){if(1&e&&o.Hc(0),2&e){var n=o.ic(2);o.Ic(n.sendFundFormLabel)}}function ia(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Bitcoin address is required."),o.Vb())}function oa(e,t){if(1&e&&(o.Wb(0,"mat-option",36),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.pc("value",n.feeRateId),o.Db(1),o.Jc(" ",n.feeRateType," ")}}function ca(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Fees Rate is required."),o.Vb())}function sa(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Min confirmation blocks is required."),o.Vb())}function ra(e,t){if(1&e&&o.Hc(0),2&e){var n=o.ic(2);o.Ic(n.confirmFormLabel)}}function la(e,t){if(1&e&&(o.Wb(0,"span"),o.Hc(1),o.Vb()),2&e){var n=o.ic(3);o.Db(1),o.Ic(n.sendFundError)}}function ba(e,t){if(1&e&&(o.Wb(0,"div",43),o.Rb(1,"fa-icon",44),o.Fc(2,la,2,1,"span",14),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.pc("icon",n.faExclamationTriangle),o.Db(1),o.pc("ngIf",""!==n.sendFundError)}}function ua(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",45),o.Wb(1,"mat-vertical-stepper",46,47),o.ec("selectionChange",(function(e){return o.yc(n),o.ic().stepSelectionChanged(e)})),o.Fc(3,na,10,4,"mat-step",48),o.Wb(4,"mat-step",49),o.Wb(5,"form",50),o.Fc(6,aa,1,1,"ng-template",51),o.Wb(7,"div",31),o.Wb(8,"mat-form-field",52),o.Rb(9,"input",53),o.Fc(10,ia,2,0,"mat-error",14),o.Vb(),o.Wb(11,"div",54),o.Wb(12,"mat-form-field",55),o.Wb(13,"mat-select",56),o.Fc(14,oa,2,2,"mat-option",21),o.Vb(),o.Fc(15,ca,2,0,"mat-error",14),o.Vb(),o.Wb(16,"div",57),o.Rb(17,"mat-checkbox",58),o.Wb(18,"mat-form-field",27),o.Rb(19,"input",59),o.Fc(20,sa,2,0,"mat-error",14),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Wb(21,"div",60),o.Wb(22,"button",61),o.Hc(23,"Next"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Wb(24,"mat-step",62),o.Wb(25,"form",63),o.Fc(26,ra,1,1,"ng-template",64),o.Wb(27,"div",45),o.Wb(28,"div",65),o.Rb(29,"fa-icon",66),o.Wb(30,"span"),o.Hc(31,"You are about to sweep all funds from RTL. Are you sure?"),o.Vb(),o.Vb(),o.Fc(32,ba,3,2,"div",32),o.Wb(33,"div",60),o.Wb(34,"button",67),o.ec("click",(function(){return o.yc(n),o.ic().onSendFunds()})),o.Hc(35,"Sweep All Funds"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Wb(36,"div",68),o.Wb(37,"button",69),o.Hc(38),o.Vb(),o.Vb(),o.Vb()}if(2&e){var a=o.ic();o.Db(1),o.pc("linear",!0),o.Db(2),o.pc("ngIf",!a.appConfig.sso.rtlSSO),o.Db(1),o.pc("stepControl",a.sendFundFormGroup)("editable",a.flgEditable),o.Db(1),o.pc("formGroup",a.sendFundFormGroup),o.Db(5),o.pc("ngIf",null==a.sendFundFormGroup.controls.transactionAddress.errors?null:a.sendFundFormGroup.controls.transactionAddress.errors.required),o.Db(4),o.pc("ngForOf",a.feeRateTypes),o.Db(1),o.pc("ngIf",null==a.sendFundFormGroup.controls.transactionFeeRate.errors?null:a.sendFundFormGroup.controls.transactionFeeRate.errors.required),o.Db(5),o.pc("ngIf",null==a.sendFundFormGroup.controls.transactionBlocks.errors?null:a.sendFundFormGroup.controls.transactionBlocks.errors.required),o.Db(4),o.pc("stepControl",a.confirmFormGroup),o.Db(1),o.pc("formGroup",a.confirmFormGroup),o.Db(4),o.pc("icon",a.faExclamationTriangle),o.Db(3),o.pc("ngIf",""!==a.sendFundError),o.Db(5),o.pc("mat-dialog-close",!1),o.Db(1),o.Ic(a.flgValidated?"Close":"Cancel")}}var da=function(){function e(e,t,n,a,i,o,c,s,r,l){this.dialogRef=e,this.data=t,this.logger=n,this.store=a,this.commonService=i,this.decimalPipe=o,this.actions$=c,this.formBuilder=s,this.rtlEffects=r,this.snackBar=l,this.faExclamationTriangle=p.n,this.sweepAll=!1,this.selNode={},this.addressTypes=[],this.transactions=[],this.selUTXOs=[],this.flgUseAllBalance=!1,this.totalSelectedUTXOAmount=null,this.flgLoadingWallet=!0,this.selectedAddress=g.a[1],this.blockchainBalance={},this.information={},this.isCompatibleVersion=!1,this.newAddress="",this.transaction={},this.feeRateTypes=g.j,this.flgMinConf=!1,this.sendFundError="",this.fiatConversion=!1,this.amountUnits=g.e,this.selAmountUnit=g.e[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=g.f,this.advancedTitle="Advanced Options",this.flgValidated=!1,this.flgEditable=!0,this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[be.s.required]],password:["",[be.s.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",be.s.required],transactionFeeRate:[null],flgMinConf:[!1],transactionBlocks:[{value:null,disabled:!0}]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.flgMinConf.valueChanges.pipe(Object(u.a)(this.unSubs[4])).subscribe((function(t){t?(e.sendFundFormGroup.controls.transactionBlocks.enable(),e.sendFundFormGroup.controls.transactionBlocks.setValidators([be.s.required]),e.sendFundFormGroup.controls.transactionBlocks.setValue(null),e.sendFundFormGroup.controls.transactionFeeRate.disable(),e.sendFundFormGroup.controls.transactionFeeRate.setValue(null)):(e.sendFundFormGroup.controls.transactionBlocks.disable(),e.sendFundFormGroup.controls.transactionBlocks.setValidators(null),e.sendFundFormGroup.controls.transactionBlocks.setValue(null),e.sendFundFormGroup.controls.transactionBlocks.setErrors(null),e.sendFundFormGroup.controls.transactionFeeRate.enable(),e.sendFundFormGroup.controls.transactionFeeRate.setValue(null))})),Object(_n.a)(this.store.select("root"),this.store.select("cl")).pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){var n=t[0],a=t[1];e.fiatConversion=n.selNode.settings.fiatConversion,e.amountUnits=n.selNode.settings.currencyUnits,e.appConfig=n.appConfig,e.nodeData=n.nodeData,e.information=a.information,e.isCompatibleVersion=e.commonService.isVersionCompatible(e.information.version,"0.9.0")&&e.commonService.isVersionCompatible(e.information.api_version,"0.4.0"),e.transactions=e.commonService.sortAscByKey(a.transactions.filter((function(e){return"confirmed"===e.status})),"value"),e.logger.info(n),e.logger.info(a)})),this.actions$.pipe(Object(u.a)(this.unSubs[1]),Object(d.a)((function(e){return e.type===y.o||e.type===y.gb}))).subscribe((function(t){t.type===y.gb&&(e.store.dispatch(new re.E("Fund Sent Successfully!")),e.dialogRef.close()),t.type===y.o&&"SetChannelTransaction"===t.payload.action&&(e.sendFundError=t.payload.message)}))},e.prototype.onAuthenticate=function(){var e=this;if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch(new re.t(Tn(this.passwordFormGroup.controls.password.value))),this.rtlEffects.isAuthorizedRes.pipe(Object(Ke.a)(1)).subscribe((function(t){"ERROR"!==t?(e.passwordFormGroup.controls.hiddenPassword.setValue(e.passwordFormGroup.controls.password.value),e.stepper.next()):(e.dialogRef.close(),e.snackBar.open("Unauthorized User. Logging out from RTL."))}))},e.prototype.onSendFunds=function(){var e=this;if(this.invalidValues)return!0;this.sendFundError="",this.flgUseAllBalance&&(this.transaction.satoshis="all"),this.selUTXOs.length&&this.selUTXOs.length>0&&(this.transaction.utxos=[],this.selUTXOs.forEach((function(t){return e.transaction.utxos.push(t.txid+":"+t.output)}))),this.store.dispatch(new re.F("Sending Funds...")),this.sweepAll?(this.transaction.satoshis="all",this.transaction.address=this.sendFundFormGroup.controls.transactionAddress.value,this.sendFundFormGroup.controls.flgMinConf.value?(delete this.transaction.feeRate,this.transaction.minconf=this.sendFundFormGroup.controls.transactionBlocks.value):(delete this.transaction.minconf,this.sendFundFormGroup.controls.transactionFeeRate.value?this.transaction.feeRate=this.sendFundFormGroup.controls.transactionFeeRate.value:delete this.transaction.feeRate),delete this.transaction.utxos,this.store.dispatch(new y.Ab(this.transaction))):this.transaction.satoshis&&"all"!==this.transaction.satoshis&&this.selAmountUnit!==g.g.SATS?this.commonService.convertCurrency(+this.transaction.satoshis,this.selAmountUnit===this.amountUnits[2]?g.g.OTHER:this.selAmountUnit,this.amountUnits[2],this.fiatConversion).pipe(Object(u.a)(this.unSubs[2])).subscribe((function(t){e.transaction.satoshis=t[g.g.SATS],e.selAmountUnit=g.g.SATS,e.store.dispatch(new y.Ab(e.transaction))})):this.store.dispatch(new y.Ab(this.transaction))},Object.defineProperty(e.prototype,"invalidValues",{get:function(){return this.sweepAll?!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||this.sendFundFormGroup.controls.flgMinConf.value&&(!this.sendFundFormGroup.controls.transactionBlocks.value||this.sendFundFormGroup.controls.transactionBlocks.value<=0):!this.transaction.address||""===this.transaction.address||!this.transaction.satoshis||+this.transaction.satoshis<=0||this.flgMinConf&&(!this.transaction.minconf||this.transaction.minconf<=0)},enumerable:!0,configurable:!0}),e.prototype.resetData=function(){this.sendFundError="",this.transaction={},this.flgMinConf=!1,this.totalSelectedUTXOAmount=null,this.selUTXOs=[],this.flgUseAllBalance=!1,this.selAmountUnit=g.e[0]},e.prototype.stepSelectionChanged=function(e){var t=this;switch(this.sendFundError="",e.selectedIndex){case 0:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds";break;case 1:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds";break;case 2:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds | Address: "+this.sendFundFormGroup.controls.transactionAddress.value+(this.sendFundFormGroup.controls.flgMinConf.value?" | Min Confirmation Blocks: "+this.sendFundFormGroup.controls.transactionBlocks.value:this.sendFundFormGroup.controls.transactionFeeRate.value?" | Fee Rate: "+this.feeRateTypes.find((function(e){return e.feeRateId===t.sendFundFormGroup.controls.transactionFeeRate.value})).feeRateType:"");break;default:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds"}e.selectedIndex0?(this.totalSelectedUTXOAmount=this.selUTXOs.reduce((function(e,n){return t.value=e.value+n.value,t})).value,this.flgUseAllBalance&&this.onUTXOAllBalanceChange()):(this.totalSelectedUTXOAmount=null,this.transaction.satoshis=null,this.flgUseAllBalance=!1)},e.prototype.onUTXOAllBalanceChange=function(){this.flgUseAllBalance?(this.transaction.satoshis=this.totalSelectedUTXOAmount,this.selAmountUnit=g.e[0]):this.transaction.satoshis=null},e.prototype.onAmountUnitChange=function(e){var t=this,n=e.value===this.amountUnits[2]?g.g.OTHER:e.value;this.transaction.satoshis&&this.selAmountUnit!==e.value&&this.commonService.convertCurrency(+this.transaction.satoshis,this.selAmountUnit===this.amountUnits[2]?g.g.OTHER:this.selAmountUnit,this.amountUnits[2],this.fiatConversion).pipe(Object(u.a)(this.unSubs[3])).subscribe((function(e){t.transaction.satoshis=t.decimalPipe.transform(e[n],t.currencyUnitFormats[n]).replace(/,/g,"")})),this.selAmountUnit=e.value},e.prototype.onAdvancedPanelToggle=function(e){this.advancedTitle=e&&this.selUTXOs.length&&this.selUTXOs.length>0?"Advanced Options | Selected UTXOs: "+this.selUTXOs.length+" | Selected UTXO Amount: "+this.decimalPipe.transform(this.totalSelectedUTXOAmount)+" Sats":"Advanced Options"},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(le.f),o.Qb(le.a),o.Qb(m.b),o.Qb(v.h),o.Qb(h.a),o.Qb(a.e),o.Qb(x.a),o.Qb(be.c),o.Qb(se.a),o.Qb(On.b))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-on-chain-send"]],viewQuery:function(e,t){var n;1&e&&(o.Mc(Bn,!0),o.Mc(Un,!0),o.Mc(Nn,!0)),2&e&&(o.vc(n=o.fc())&&(t.form=n.first),o.vc(n=o.fc())&&(t.formSweepAll=n.first),o.vc(n=o.fc())&&(t.stepper=n.first))},decls:12,vars:4,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"mt-5px"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","padding-gap overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["sweepAllBlock",""],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"padding-gap","overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex","55"],["matInput","","autoFocus","","placeholder","Bitcoin Address","tabindex","1","name","address","required","",3,"ngModel","ngModelChange"],["address","ngModel"],[4,"ngIf"],["fxFlex","30"],["matInput","","placeholder","Amount","name","amount","step","100","min","0","tabindex","2","required","",3,"ngModel","type","disabled","ngModelChange"],["amount","ngModel"],["matSuffix",""],["fxFlex","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","disabled","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","60","fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["fxFlex","48","fxLayoutAlign","start end"],["tabindex","6","placeholder","Fee Rate",3,"value","disabled","valueChange"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","7","color","primary","name","flgMinConf","fxLayoutAlign","stretch start",1,"mr-2",3,"ngModel","ngModelChange","change"],["fxFlex","98"],["matInput","","placeholder","Min Confirmation Blocks","type","number","name","blocks","step","1","min","0","tabindex","8",3,"ngModel","required","disabled","ngModelChange"],["blocks","ngModel"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-flat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","35","fxLayoutAlign","start end"],["tabindex","8","placeholder","Coin Selection","multiple","",3,"value","selectionChange","valueChange"],["fxFlex","60","tabindex","9","color","primary","name","flgUseAllBalance","matTooltip","Use selected UTXOs balance as the amount to be sent. Final amount sent will be less the mining fee.","matTooltipPosition","above",3,"ngModel","disabled","ngModelChange","change"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxFlex","100"],["matInput","","formControlName","transactionAddress","placeholder","Bitcoin Address","tabindex","4","name","address","required",""],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex.gt-sm","48","fxLayoutAlign","start end"],["tabindex","5","placeholder","Fee Rate","formControlName","transactionFeeRate"],["fxFlex.gt-sm","48","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","6","color","primary","formControlName","flgMinConf","name","flgMinCon",1,"mr-2"],["matInput","","formControlName","transactionBlocks","placeholder","Min Confirmation Blocks","type","number","name","blocks","step","1","min","0","tabindex","7","required",""],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","8","type","default","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-stroked-button","","color","primary","tabindex","9","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","default",3,"click"]],template:function(e,t){if(1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"mat-card-header",2),o.Wb(3,"div",3),o.Wb(4,"span",4),o.Hc(5),o.Vb(),o.Vb(),o.Wb(6,"button",5),o.Hc(7,"X"),o.Vb(),o.Vb(),o.Wb(8,"mat-card-content",6),o.Fc(9,Zn,34,21,"form",7),o.Vb(),o.Vb(),o.Vb(),o.Fc(10,ua,39,15,"ng-template",null,8,o.Gc)),2&e){var n=o.wc(11);o.Db(5),o.Ic(t.sweepAll?"Sweep All Funds":"Send Funds"),o.Db(1),o.pc("mat-dialog-close",!1),o.Db(3),o.pc("ngIf",!t.sweepAll)("ngIfElse",n)}},directives:[V.c,V.a,F.c,V.b,W.a,le.d,F.b,a.n,be.t,be.m,be.n,T.c,ue.b,be.b,de.a,be.r,be.l,be.o,fe.a,T.g,pe.a,a.m,Pn.a,be.p,T.b,T.f,he.n,Mn.c,Mn.e,Mn.f,pe.c,me.a,O.a,w.a,En.h,En.a,be.g,En.b,be.f,En.f],pipes:[a.e],styles:[""]}),e}(),fa=n("qmev"),pa=n("Ysfc");function ma(e,t){if(1&e&&(o.Wb(0,"mat-option",7),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.pc("value",n),o.Db(1),o.Jc(" ",n.addressTp," ")}}var ha=function(){function e(e,t){this.store=e,this.clEffects=t,this.addressTypes=g.a,this.selectedAddressType=g.a[0],this.newAddress=""}return e.prototype.ngOnInit=function(){},e.prototype.onGenerateAddress=function(){var e=this;this.store.dispatch(new re.F("Getting New Address...")),this.store.dispatch(new y.O(this.selectedAddressType)),this.clEffects.setNewAddressCL.pipe(Object(Ke.a)(1)).subscribe((function(t){e.newAddress=t,e.store.dispatch(new re.C({width:"58%",data:{address:e.newAddress,addressType:e.selectedAddressType.addressTp,component:pa.a}}))}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(v.h),o.Qb(Je.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-on-chain-receive"]],decls:8,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","space-between end","fxLayoutAlign.gt-sm","start end"],["fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["placeholder","Address Type","name","address_type","tabindex","1",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-2"],["mat-flat-button","","color","primary","tabindex","2",1,"top-minus-15px",3,"click"],[3,"value"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"mat-form-field",2),o.Wb(3,"mat-select",3),o.ec("ngModelChange",(function(e){return t.selectedAddressType=e})),o.Fc(4,ma,2,2,"mat-option",4),o.Vb(),o.Vb(),o.Wb(5,"div",5),o.Wb(6,"button",6),o.ec("click",(function(){return t.onGenerateAddress()})),o.Hc(7,"Generate Address"),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(3),o.pc("ngModel",t.selectedAddressType),o.Db(1),o.pc("ngForOf",t.addressTypes))},directives:[V.c,V.b,T.c,V.a,pe.a,be.l,be.o,a.m,W.a,he.n],styles:[""]}),e}();function ga(e,t){1&e&&o.Rb(0,"mat-progress-bar",28)}function ya(e,t){1&e&&(o.Wb(0,"th",29),o.Hc(1," Transaction ID "),o.Vb())}function va(e,t){1&e&&o.Rb(0,"span",35)}function xa(e,t){if(1&e&&(o.Rb(0,"span",36),o.jc(1,"titlecase")),2&e){var n=o.ic().$implicit;o.qc("matTooltip",o.kc(1,1,n.status))}}var Va=function(e){return{"max-width":e}};function wa(e,t){if(1&e&&(o.Wb(0,"td",30),o.Wb(1,"div",31),o.Fc(2,va,1,0,"span",32),o.Fc(3,xa,2,3,"span",33),o.Wb(4,"span",34),o.Hc(5),o.Vb(),o.Vb(),o.Vb()),2&e){var n=t.$implicit,a=o.ic();o.Db(1),o.pc("ngStyle",o.tc(4,Va,a.screenSize===a.screenSizeEnum.XS?"10rem":"50rem")),o.Db(1),o.pc("ngIf","confirmed"===n.status),o.Db(1),o.pc("ngIf","confirmed"!==n.status),o.Db(2),o.Ic(n.txid)}}function Ca(e,t){1&e&&(o.Wb(0,"th",37),o.Hc(1," Output "),o.Vb())}function Fa(e,t){if(1&e&&(o.Wb(0,"td",30),o.Wb(1,"span",38),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.kc(3,1,null==n?null:n.output)," ")}}function Da(e,t){1&e&&(o.Wb(0,"th",37),o.Hc(1," Value (Sats) "),o.Vb())}function Wa(e,t){if(1&e&&(o.Wb(0,"span",38),o.Hc(1),o.jc(2,"number"),o.Vb()),2&e){var n=o.ic().$implicit;o.Db(1),o.Ic(o.kc(2,1,n.value))}}function Sa(e,t){if(1&e&&(o.Wb(0,"span",41),o.Hc(1),o.jc(2,"number"),o.Vb()),2&e){var n=o.ic().$implicit;o.Db(1),o.Jc("(",o.kc(2,1,-1*n.value),")")}}function La(e,t){if(1&e&&(o.Wb(0,"td",30),o.Fc(1,Wa,3,3,"span",39),o.Fc(2,Sa,3,3,"span",40),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.pc("ngIf",n.value>0||0===n.value),o.Db(1),o.pc("ngIf",n.value<0)}}function Ra(e,t){1&e&&(o.Wb(0,"th",37),o.Hc(1," Blockheight "),o.Vb())}function Ha(e,t){if(1&e&&(o.Wb(0,"td",30),o.Wb(1,"span",38),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.kc(3,1,null==n?null:n.blockheight)," ")}}function ka(e,t){if(1&e){var n=o.Xb();o.Wb(0,"th",42),o.Wb(1,"div",43),o.Wb(2,"mat-select",44),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",45),o.ec("click",(function(){return o.yc(n),o.ic().onDownloadCSV()})),o.Hc(5,"Download CSV"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}}function Aa(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",46),o.Wb(1,"button",47),o.ec("click",(function(e){o.yc(n);var a=t.$implicit;return o.ic().onTransactionClick(a,e)})),o.Hc(2,"View Info"),o.Vb(),o.Vb()}}function Ia(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No transactions available."),o.Vb())}function _a(e,t){if(1&e&&(o.Wb(0,"td",48),o.Fc(1,Ia,2,0,"p",49),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngIf",!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)}}var Ta=function(e){return{"display-none":e}};function Oa(e,t){if(1&e&&o.Rb(0,"tr",50),2&e){var n=o.ic();o.pc("ngClass",o.tc(1,Ta,(null==n.listTransactions?null:n.listTransactions.data)&&(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)>0))}}function Pa(e,t){1&e&&o.Rb(0,"tr",51)}function Ma(e,t){1&e&&o.Rb(0,"tr",52)}var Ea=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Ba=function(){return["no_transaction"]},Ua=function(){function e(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.actions$=a,this.faMoneyBillWave=p.w,this.displayedColumns=[],this.flgLoading=[!0],this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unsub=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["txid","value","actions"]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["txid","output","value","blockheight","actions"]):(this.flgSticky=!0,this.displayedColumns=["txid","output","value","blockheight","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("cl").pipe(Object(u.a)(this.unsub[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchTransactions"===t.action&&(e.flgLoading[0]="error")})),t.transactions&&e.loadTransactionsTable(t.transactions),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.transactions),e.logger.info(t)}))},e.prototype.applyFilter=function(e){this.listTransactions.filter=e},e.prototype.onTransactionClick=function(e,t){var n=[[{key:"txid",value:e.txid,title:"Transaction ID",width:100}],[{key:"output",value:e.output,title:"Output",width:50,type:g.h.NUMBER},{key:"value",value:e.value,title:"Value (Sats)",width:50,type:g.h.NUMBER}],[{key:"status",value:this.commonService.titleCase(e.status),title:"Status",width:50,type:g.h.STRING},{key:"blockheight",value:e.blockheight,title:"Blockheight",width:50,type:g.h.NUMBER}],[{key:"address",value:e.address,title:"Address",width:100}]];this.store.dispatch(new re.C({data:{type:g.b.INFORMATION,alertTitle:"Transaction Information",message:n}}))},e.prototype.loadTransactionsTable=function(e){this.listTransactions=new ie.o(Object(te.g)(e)),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.listTransactions.paginator=this.paginator,this.logger.info(this.listTransactions)},e.prototype.onDownloadCSV=function(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")},e.prototype.ngOnDestroy=function(){this.unsub.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(h.a),o.Qb(v.h),o.Qb(x.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-on-chain-transaction-history"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Dc(ne.a,!0)),2&e&&(o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.paginator=n.first))},features:[o.Cb([{provide:ne.b,useValue:Object(g.w)("Transactions")}])],decls:34,vars:14,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start"],["perfectScrollbar","","fxFlex","100",1,"table-container"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","txid"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","blockheight"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","dot green","matTooltip","Confirmed","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Confirmed","matTooltipPosition","right",1,"dot","green"],["matTooltipPosition","right",1,"dot","yellow",3,"matTooltip"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"div",2),o.Rb(3,"fa-icon",3),o.Wb(4,"span",4),o.Hc(5,"UTXOs"),o.Vb(),o.Vb(),o.Wb(6,"mat-form-field",5),o.Wb(7,"input",6),o.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),o.Vb(),o.Vb(),o.Vb(),o.Wb(8,"div",7),o.Wb(9,"div",8),o.Fc(10,ga,1,0,"mat-progress-bar",9),o.Wb(11,"table",10,11),o.Ub(13,12),o.Fc(14,ya,2,0,"th",13),o.Fc(15,wa,6,6,"td",14),o.Tb(),o.Ub(16,15),o.Fc(17,Ca,2,0,"th",16),o.Fc(18,Fa,4,3,"td",14),o.Tb(),o.Ub(19,17),o.Fc(20,Da,2,0,"th",16),o.Fc(21,La,3,2,"td",14),o.Tb(),o.Ub(22,18),o.Fc(23,Ra,2,0,"th",16),o.Fc(24,Ha,4,3,"td",14),o.Tb(),o.Ub(25,19),o.Fc(26,ka,6,0,"th",20),o.Fc(27,Aa,3,0,"td",21),o.Tb(),o.Ub(28,22),o.Fc(29,_a,2,1,"td",23),o.Tb(),o.Fc(30,Oa,1,3,"tr",24),o.Fc(31,Pa,1,0,"tr",25),o.Fc(32,Ma,1,0,"tr",26),o.Vb(),o.Rb(33,"mat-paginator",27),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(3),o.pc("icon",t.faMoneyBillWave),o.Db(7),o.pc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.pc("dataSource",t.listTransactions)("ngClass",o.tc(11,Ea,"error"===t.flgLoading[0])),o.Db(19),o.pc("matFooterRowDef",o.sc(13,Ba)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns),o.Db(1),o.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[V.c,V.b,V.a,w.a,T.c,ue.b,M.b,a.n,ie.n,ae.a,a.l,L.a,ie.c,ie.i,ie.b,ie.e,ie.g,ie.k,ie.m,ne.a,c.a,ie.h,ae.b,ie.a,a.o,L.b,O.a,pe.a,pe.c,he.n,W.a,ie.d,ie.f,ie.j,ie.l],pipes:[a.w,a.e],styles:[".mat-column-txid[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-txid[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}(),Na=function(){function e(e){this.store=e,this.selNode={},this.faExchangeAlt=p.m,this.faChartPie=p.f,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.unSubs=[new b.a,new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("cl").pipe(Object(u.a)(this.unSubs[1])).subscribe((function(t){e.selNode=t.nodeSettings,e.balances=[{title:"Total Balance",dataValue:t.balance.totalBalance||0},{title:"Confirmed",dataValue:t.balance.confBalance},{title:"Unconfirmed",dataValue:t.balance.unconfBalance}]}))},e.prototype.openSendFundsModal=function(e){this.store.dispatch(new re.C({data:{sweepAll:e,component:da}}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(v.h))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-on-chain"]],decls:31,vars:3,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["label","Receive"],["label","Send"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["label","Sweep All"],["mat-flat-button","","color","primary","type","button","tabindex","3",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Rb(1,"fa-icon",1),o.Wb(2,"span",2),o.Hc(3,"On-chain Balance"),o.Vb(),o.Vb(),o.Wb(4,"div",3),o.Wb(5,"mat-card"),o.Wb(6,"mat-card-content",4),o.Rb(7,"rtl-currency-unit-converter",5),o.Vb(),o.Vb(),o.Vb(),o.Wb(8,"div",0),o.Rb(9,"fa-icon",1),o.Wb(10,"span",2),o.Hc(11,"On-chain Transactions"),o.Vb(),o.Vb(),o.Wb(12,"div",6),o.Wb(13,"mat-card"),o.Wb(14,"mat-card-content",4),o.Wb(15,"mat-tab-group"),o.Wb(16,"mat-tab",7),o.Rb(17,"rtl-cl-on-chain-receive"),o.Vb(),o.Wb(18,"mat-tab",8),o.Wb(19,"div",9),o.Wb(20,"div",10),o.Wb(21,"button",11),o.ec("click",(function(){return t.openSendFundsModal(!1)})),o.Hc(22,"Send Funds"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Wb(23,"mat-tab",12),o.Wb(24,"div",9),o.Wb(25,"div",10),o.Wb(26,"button",13),o.ec("click",(function(){return t.openSendFundsModal(!0)})),o.Hc(27,"Sweep All"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Wb(28,"div",14),o.Wb(29,"div",10),o.Rb(30,"rtl-cl-on-chain-transaction-history",15),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(1),o.pc("icon",t.faChartPie),o.Db(6),o.pc("values",t.balances),o.Db(2),o.pc("icon",t.faExchangeAlt))},directives:[V.c,V.b,w.a,F.a,F.b,fa.a,ee.c,ee.a,ha,V.a,W.a,Ua],styles:[""]}),e}(),za=n("p0Sj"),qa=n("67Y/"),ja=n("ZiY4"),Xa=n("hNFU"),Ga=["form"];function $a(e,t){if(1&e&&(o.Wb(0,"mat-option",24),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.pc("value",n),o.Db(1),o.Ic(n.alias?n.alias:n.id?n.id:"")}}function Qa(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Peer alias is required."),o.Vb())}function Ka(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Peer not found in the list."),o.Vb())}function Ja(e,t){if(1&e){var n=o.Xb();o.Wb(0,"mat-form-field",18),o.Wb(1,"input",19),o.ec("change",(function(){return o.yc(n),o.ic().onSelectedPeerChanged()})),o.Vb(),o.Wb(2,"mat-autocomplete",20,21),o.ec("optionSelected",(function(){return o.yc(n),o.ic().onSelectedPeerChanged()})),o.Fc(4,$a,2,2,"mat-option",22),o.jc(5,"async"),o.Vb(),o.Fc(6,Qa,2,0,"mat-error",23),o.Fc(7,Ka,2,0,"mat-error",23),o.Vb()}if(2&e){var a=o.wc(3),i=o.ic();o.Db(1),o.pc("formControl",i.selectedPeer)("matAutocomplete",a),o.Db(1),o.pc("displayWith",i.displayFn),o.Db(2),o.pc("ngForOf",o.kc(5,6,i.filteredPeers)),o.Db(2),o.pc("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.required),o.Db(1),o.pc("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.notfound)}}function Ya(e,t){1&e&&o.Sb(0)}function Za(e,t){1&e&&o.Sb(0)}function ei(e,t){if(1&e&&(o.Wb(0,"span"),o.Hc(1),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.Ic(n.channelConnectionError)}}function ti(e,t){if(1&e&&(o.Wb(0,"div",25),o.Rb(1,"fa-icon",26),o.Fc(2,ei,2,1,"span",23),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("icon",n.faExclamationTriangle),o.Db(1),o.pc("ngIf",""!==n.channelConnectionError)}}function ni(e,t){if(1&e&&(o.Wb(0,"mat-expansion-panel",28),o.Wb(1,"mat-expansion-panel-header"),o.Wb(2,"mat-panel-title"),o.Wb(3,"span"),o.Hc(4,"Peer: \xa0"),o.Vb(),o.Wb(5,"strong",29),o.Hc(6),o.Vb(),o.Vb(),o.Vb(),o.Wb(7,"div",9),o.Wb(8,"div",0),o.Wb(9,"div",18),o.Wb(10,"h4",30),o.Hc(11,"Pubkey"),o.Vb(),o.Wb(12,"span",31),o.Hc(13),o.Vb(),o.Vb(),o.Vb(),o.Rb(14,"mat-divider",32),o.Wb(15,"div",0),o.Wb(16,"div",33),o.Wb(17,"h4",30),o.Hc(18,"Address"),o.Vb(),o.Wb(19,"span",34),o.Hc(20),o.Vb(),o.Vb(),o.Wb(21,"div",33),o.Wb(22,"h4",30),o.Hc(23,"Connected"),o.Vb(),o.Wb(24,"span",34),o.Hc(25),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e){var n=o.ic(2);o.Db(6),o.Ic((null==n.peer?null:n.peer.alias)||(null==n.peer?null:n.peer.id)),o.Db(7),o.Ic(n.peer.id),o.Db(7),o.Ic(null==n.peer?null:n.peer.netaddr),o.Db(5),o.Ic(n.peer.connected?"True":"False")}}function ai(e,t){if(1&e&&o.Fc(0,ni,26,4,"mat-expansion-panel",27),2&e){var n=o.ic();o.pc("ngIf",n.peer)}}function ii(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Amount is required."),o.Vb())}function oi(e,t){if(1&e&&(o.Wb(0,"mat-error"),o.Hc(1),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.Jc("Amount must be less than or equal to ",n.totalBalance,".")}}function ci(e,t){if(1&e&&(o.Wb(0,"mat-option",24),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.pc("value",n.feeRateId),o.Db(1),o.Jc(" ",n.feeRateType," ")}}function si(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Min Confirmation Blocks is required."),o.Vb())}function ri(e,t){if(1&e&&(o.Wb(0,"mat-option",24),o.Hc(1),o.jc(2,"number"),o.Vb()),2&e){var n=t.$implicit;o.pc("value",n),o.Db(1),o.Jc("",o.kc(2,2,n.value)," Sats")}}function li(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",35),o.Wb(1,"mat-form-field",44),o.Wb(2,"mat-select",52),o.ec("selectionChange",(function(e){return o.yc(n),o.ic(2).onUTXOSelectionChange(e)}))("valueChange",(function(e){return o.yc(n),o.ic(2).selUTXOs=e})),o.Wb(3,"mat-select-trigger"),o.Hc(4),o.jc(5,"number"),o.Vb(),o.Fc(6,ri,3,4,"mat-option",22),o.Vb(),o.Vb(),o.Wb(7,"mat-slide-toggle",53),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic(2).flgUseAllBalance=e}))("change",(function(){return o.yc(n),o.ic(2).onUTXOAllBalanceChange()})),o.Hc(8," Use selected UTXOs balance "),o.Vb(),o.Vb()}if(2&e){var a=o.ic(2);o.Db(2),o.pc("value",a.selUTXOs),o.Db(2),o.Kc("",o.kc(5,6,a.totalSelectedUTXOAmount)," Sats (",a.selUTXOs.length>1?a.selUTXOs.length+" UTXOs":"1 UTXO",")"),o.Db(2),o.pc("ngForOf",a.transactions),o.Db(1),o.pc("ngModel",a.flgUseAllBalance)("disabled",a.selUTXOs.length<1)}}function bi(e,t){if(1&e){var n=o.Xb();o.Wb(0,"form",9,8),o.Wb(2,"div",35),o.Wb(3,"mat-form-field",36),o.Wb(4,"input",37,38),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().fundingAmount=e})),o.Vb(),o.Wb(6,"mat-hint"),o.Hc(7),o.jc(8,"number"),o.Vb(),o.Wb(9,"span",39),o.Hc(10),o.Vb(),o.Fc(11,ii,2,0,"mat-error",23),o.Fc(12,oi,2,1,"mat-error",23),o.Vb(),o.Wb(13,"div",40),o.Wb(14,"mat-slide-toggle",41),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().isPrivate=e})),o.Hc(15,"Private Channel"),o.Vb(),o.Vb(),o.Vb(),o.Wb(16,"mat-expansion-panel",42),o.ec("closed",(function(){return o.yc(n),o.ic().onAdvancedPanelToggle(!0)}))("opened",(function(){return o.yc(n),o.ic().onAdvancedPanelToggle(!1)})),o.Wb(17,"mat-expansion-panel-header"),o.Wb(18,"mat-panel-title"),o.Wb(19,"span"),o.Hc(20),o.Vb(),o.Vb(),o.Vb(),o.Wb(21,"div",43),o.Wb(22,"div",35),o.Wb(23,"mat-form-field",44),o.Wb(24,"mat-select",45),o.ec("valueChange",(function(e){return o.yc(n),o.ic().selFeeRate=e})),o.Fc(25,ci,2,2,"mat-option",22),o.Vb(),o.Vb(),o.Wb(26,"div",46),o.Wb(27,"mat-checkbox",47),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().flgMinConf=e}))("change",(function(){o.yc(n);var e=o.ic();return e.flgMinConf?e.selFeeRate=null:e.minConfValue=null})),o.Vb(),o.Wb(28,"mat-form-field",48),o.Wb(29,"input",49,50),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().minConfValue=e})),o.Vb(),o.Fc(31,si,2,0,"mat-error",23),o.Vb(),o.Vb(),o.Vb(),o.Fc(32,li,9,8,"div",51),o.Vb(),o.Vb(),o.Vb()}if(2&e){var a=o.wc(5),i=o.ic();o.Db(4),o.qc("max",i.totalBalance),o.pc("ngModel",i.fundingAmount)("disabled",i.flgUseAllBalance),o.Db(3),o.Kc("Remaining Bal: ",o.kc(8,19,i.totalBalance-(i.fundingAmount?i.fundingAmount:0)),"",i.flgUseAllBalance?". Amount replaced by UTXO balance":"",""),o.Db(3),o.Jc(" ",null==i.information?null:i.information.smaller_currency_unit," "),o.Db(1),o.pc("ngIf",(null==a.errors?null:a.errors.required)||!i.fundingAmount),o.Db(1),o.pc("ngIf",null==a.errors?null:a.errors.max),o.Db(2),o.pc("ngModel",i.isPrivate),o.Db(6),o.Ic(i.advancedTitle),o.Db(4),o.pc("value",i.selFeeRate)("disabled",i.flgMinConf),o.Db(1),o.pc("ngForOf",i.feeRateTypes),o.Db(2),o.pc("ngModel",i.flgMinConf),o.Db(2),o.pc("ngModel",i.minConfValue)("required",i.flgMinConf)("disabled",!i.flgMinConf),o.Db(2),o.pc("ngIf",i.flgMinConf&&!i.minConfValue),o.Db(1),o.pc("ngIf",i.isCompatibleVersion)}}var ui=function(){function e(e,t,n,a,i){this.dialogRef=e,this.data=t,this.store=n,this.actions$=a,this.decimalPipe=i,this.selectedPeer=new be.d,this.faExclamationTriangle=p.n,this.isCompatibleVersion=!1,this.transactions=[],this.selUTXOs=[],this.flgUseAllBalance=!1,this.totalSelectedUTXOAmount=0,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.fundingAmount=null,this.selectedPubkey="",this.isPrivate=!1,this.feeRateTypes=g.j,this.selFeeRate="",this.flgMinConf=!1,this.minConfValue=null,this.unSubs=[new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.isCompatibleVersion=this.data.message.isCompatibleVersion,this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.transactions=this.data.message.transactions,this.alertTitle=this.data.alertTitle,this.peer=this.data.message.peer?this.data.message.peer:null,this.peers=this.data.message.peers&&this.data.message.peers.length?this.data.message.peers:[],this.actions$.pipe(Object(u.a)(this.unSubs[0]),Object(d.a)((function(e){return e.type===y.o||e.type===y.r}))).subscribe((function(t){t.type===y.o&&"SaveNewChannel"===t.payload.action&&(e.channelConnectionError=t.payload.message),t.type===y.r&&e.dialogRef.close()}));var t="",n="";this.sortedPeers=this.peers.sort((function(e,a){return t=e.alias?e.alias.toLowerCase():e.id?e.id.toLowerCase():"",n=a.alias?a.alias.toLowerCase():e.id.toLowerCase(),tn?1:0})),this.filteredPeers=this.selectedPeer.valueChanges.pipe(Object(u.a)(this.unSubs[1]),Object(za.a)(""),Object(qa.a)((function(e){return"string"==typeof e?e:e.alias?e.alias:e.id})),Object(qa.a)((function(t){return t?e.filterPeers(t):e.sortedPeers.slice()})))},e.prototype.filterPeers=function(e){return this.sortedPeers.filter((function(t){return 0===t.alias.toLowerCase().indexOf(e?e.toLowerCase():"")}))},e.prototype.displayFn=function(e){return e&&e.alias?e.alias:e&&e.id?e.id:""},e.prototype.onSelectedPeerChanged=function(){var e=this;if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.id?this.selectedPeer.value.id:void 0,"string"==typeof this.selectedPeer.value){var t=this.peers.filter((function(t){return t.alias.length===e.selectedPeer.value.length&&0===t.alias.toLowerCase().indexOf(e.selectedPeer.value?e.selectedPeer.value.toLowerCase():"")}));1===t.length&&t[0].id&&(this.selectedPubkey=t[0].id)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)},e.prototype.onClose=function(){this.dialogRef.close(!1)},e.prototype.resetData=function(){this.flgMinConf=!1,this.selFeeRate="",this.minConfValue=null,this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()},e.prototype.onAdvancedPanelToggle=function(e){var t=this;e&&(this.flgMinConf||this.selFeeRate||this.selUTXOs.length&&0!==this.selUTXOs.length)?(this.advancedTitle="Advanced Options",this.flgMinConf&&(this.advancedTitle=this.advancedTitle+" | Min Confirmation Blocks: "+this.minConfValue),this.selFeeRate&&(this.advancedTitle=this.advancedTitle+" | Fee Rate: "+this.feeRateTypes.find((function(e){return e.feeRateId===t.selFeeRate})).feeRateType),this.selUTXOs.length&&this.selUTXOs.length>0&&(this.advancedTitle=this.advancedTitle+" | Total Selected: "+this.selUTXOs.length+" | Selected UTXOs: "+this.decimalPipe.transform(this.totalSelectedUTXOAmount)+" Sats")):this.advancedTitle="Advanced Options"},e.prototype.onUTXOSelectionChange=function(e){var t={value:0};this.selUTXOs.length&&this.selUTXOs.length>0?(this.totalSelectedUTXOAmount=this.selUTXOs.reduce((function(e,n){return t.value=e.value+n.value,t})).value,this.flgUseAllBalance&&this.onUTXOAllBalanceChange()):(this.totalSelectedUTXOAmount=0,this.fundingAmount=null,this.flgUseAllBalance=!1)},e.prototype.onUTXOAllBalanceChange=function(){this.fundingAmount=this.flgUseAllBalance?this.totalSelectedUTXOAmount:null},e.prototype.onOpenChannel=function(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||this.flgMinConf&&!this.minConfValue)return!0;var e={peerId:this.peer&&this.peer.id?this.peer.id:this.selectedPubkey,satoshis:this.flgUseAllBalance?"all":this.fundingAmount.toString(),announce:!this.isPrivate,feeRate:this.selFeeRate,minconf:this.flgMinConf?this.minConfValue:null};this.selUTXOs.length&&this.selUTXOs.length>0&&(e.utxos=[],this.selUTXOs.forEach((function(t){return e.utxos.push(t.txid+":"+t.output)}))),this.store.dispatch(new re.F("Opening Channel...")),this.store.dispatch(new y.wb(e))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(le.f),o.Qb(le.a),o.Qb(v.h),o.Qb(x.a),o.Qb(a.e))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-open-channel"]],viewQuery:function(e,t){var n;1&e&&o.Mc(Ga,!0),2&e&&o.vc(n=o.fc())&&(t.form=n.first)},decls:25,vars:5,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["openChannelBlock",""],["fxFlex","100"],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","70","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","step","1000","min","1","tabindex","1","required","","name","amount",3,"ngModel","max","disabled","ngModelChange"],["amount","ngModel"],["matSuffix",""],["fxFlex","25","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","48","fxLayoutAlign","start end"],["tabindex","4","placeholder","Fee Rate",3,"value","disabled","valueChange"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","name","flgMinConf","fxLayoutAlign","stretch start",1,"mr-2",3,"ngModel","ngModelChange","change"],["fxFlex","98"],["matInput","","placeholder","Min Confirmation Blocks","type","number","name","blocks","step","1","min","0","tabindex","8",3,"ngModel","required","disabled","ngModelChange"],["blocks","ngModel"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",4,"ngIf"],["tabindex","6","placeholder","Coin Selection","multiple","",3,"value","selectionChange","valueChange"],["fxFlex","48","tabindex","7","color","primary","name","flgUseAllBalance","matTooltip","Use selected UTXOs balance as the amount to be sent. Final amount sent will be less the mining fee.","matTooltipPosition","above",3,"ngModel","disabled","ngModelChange","change"]],template:function(e,t){if(1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"mat-card-header",2),o.Wb(3,"div",3),o.Wb(4,"span",4),o.Hc(5),o.Vb(),o.Vb(),o.Wb(6,"button",5),o.ec("click",(function(){return t.onClose()})),o.Hc(7,"X"),o.Vb(),o.Vb(),o.Wb(8,"mat-card-content",6),o.Wb(9,"form",7,8),o.ec("submit",(function(){return t.onOpenChannel()}))("reset",(function(){return t.resetData()})),o.Wb(11,"div",9),o.Fc(12,Ja,8,8,"mat-form-field",10),o.Vb(),o.Fc(13,Ya,1,0,"ng-container",11),o.Fc(14,Za,1,0,"ng-container",11),o.Fc(15,ti,3,2,"div",12),o.Wb(16,"div",13),o.Wb(17,"button",14),o.Hc(18,"Clear Fields"),o.Vb(),o.Wb(19,"button",15),o.Hc(20,"Open Channel"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Fc(21,ai,1,1,"ng-template",null,16,o.Gc),o.Fc(23,bi,33,21,"ng-template",null,17,o.Gc)),2&e){var n=o.wc(22),a=o.wc(24);o.Db(5),o.Ic(t.alertTitle),o.Db(7),o.pc("ngIf",!t.peer&&t.peers&&t.peers.length>0),o.Db(1),o.pc("ngTemplateOutlet",n),o.Db(1),o.pc("ngTemplateOutlet",a),o.Db(1),o.pc("ngIf",""!==t.channelConnectionError)}},directives:[V.c,V.a,F.c,V.b,W.a,F.b,be.t,be.m,be.n,a.n,a.s,de.a,T.c,ue.b,be.b,ja.c,be.r,be.l,be.e,ja.a,a.m,he.n,T.b,w.a,Mn.c,Mn.e,Mn.f,P.a,be.p,fe.a,Xa.a,be.o,T.f,T.g,me.a,pe.a,Pn.a,pe.c,O.a],pipes:[a.b,a.e],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),e}(),di=n("dEYt");function fi(e,t){if(1&e&&(o.Wb(0,"div"),o.Rb(1,"mat-divider",13),o.Wb(2,"div",9),o.Wb(3,"div",14),o.Wb(4,"h4",11),o.Hc(5,"Funding Transaction Id"),o.Vb(),o.Wb(6,"span",12),o.Hc(7),o.Vb(),o.Vb(),o.Vb(),o.Rb(8,"mat-divider",13),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("inset",!0),o.Db(6),o.Ic(n.channel.funding_txid),o.Db(1),o.pc("inset",!0)}}function pi(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"Show Advanced"),o.Vb())}function mi(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"Hide Advanced"),o.Vb())}function hi(e,t){if(1&e){var n=o.Xb();o.Wb(0,"button",24),o.ec("copied",(function(e){return o.yc(n),o.ic().onCopyChanID(e)})),o.Hc(1,"Copy Short Channel ID"),o.Vb()}if(2&e){var a=o.ic();o.pc("payload",a.channel.short_channel_id)}}function gi(e,t){if(1&e){var n=o.Xb();o.Wb(0,"button",25),o.ec("click",(function(){return o.yc(n),o.ic().onClose()})),o.Hc(1,"OK"),o.Vb()}}var yi=function(e){return{"xs-scroll-y":e}},vi=function(e,t){return{"mt-2":e,"mt-1":t}},xi=function(){function e(e,t,n,a,i){this.dialogRef=e,this.data=t,this.logger=n,this.commonService=a,this.snackBar=i,this.faReceipt=p.C,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=g.o}return e.prototype.ngOnInit=function(){this.channel=this.data.channel,this.showCopy=this.data.showCopy,this.screenSize=this.commonService.getScreenSize()},e.prototype.onClose=function(){this.dialogRef.close(!1)},e.prototype.onShowAdvanced=function(){this.showAdvanced=!this.showAdvanced},e.prototype.onCopyChanID=function(e){this.snackBar.open("Short channel ID "+e+" copied."),this.logger.info("Copied Text: "+e)},e.\u0275fac=function(t){return new(t||e)(o.Qb(le.f),o.Qb(le.a),o.Qb(m.b),o.Qb(h.a),o.Qb(On.b))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-channel-information"]],decls:93,vars:39,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"padding-gap-large","pl-3"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-1"],["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"],[3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","100"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(e,t){if(1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"mat-card-header",2),o.Wb(3,"div",3),o.Rb(4,"fa-icon",4),o.Wb(5,"span",5),o.Hc(6,"Channel Information"),o.Vb(),o.Vb(),o.Wb(7,"button",6),o.ec("click",(function(){return t.onClose()})),o.Hc(8,"X"),o.Vb(),o.Vb(),o.Wb(9,"mat-card-content",7),o.Wb(10,"div",8),o.Wb(11,"div",9),o.Wb(12,"div",10),o.Wb(13,"h4",11),o.Hc(14,"Short Channel ID"),o.Vb(),o.Wb(15,"span",12),o.Hc(16),o.Vb(),o.Vb(),o.Wb(17,"div",10),o.Wb(18,"h4",11),o.Hc(19,"Peer Alias"),o.Vb(),o.Wb(20,"span",12),o.Hc(21),o.Vb(),o.Vb(),o.Vb(),o.Rb(22,"mat-divider",13),o.Wb(23,"div",9),o.Wb(24,"div",14),o.Wb(25,"h4",11),o.Hc(26,"Channel ID"),o.Vb(),o.Wb(27,"span",12),o.Hc(28),o.Vb(),o.Vb(),o.Vb(),o.Rb(29,"mat-divider",13),o.Wb(30,"div",9),o.Wb(31,"div",14),o.Wb(32,"h4",11),o.Hc(33,"Peer Public Key"),o.Vb(),o.Wb(34,"span",12),o.Hc(35),o.Vb(),o.Vb(),o.Vb(),o.Rb(36,"mat-divider",13),o.Wb(37,"div",9),o.Wb(38,"div",15),o.Wb(39,"h4",11),o.Hc(40,"mSatoshi to Us"),o.Vb(),o.Wb(41,"span",16),o.Hc(42),o.jc(43,"number"),o.Vb(),o.Vb(),o.Wb(44,"div",15),o.Wb(45,"h4",11),o.Hc(46,"Spendable (mSats)"),o.Vb(),o.Wb(47,"span",16),o.Hc(48),o.jc(49,"number"),o.Vb(),o.Vb(),o.Wb(50,"div",15),o.Wb(51,"h4",11),o.Hc(52,"Total (mSats)"),o.Vb(),o.Wb(53,"span",16),o.Hc(54),o.jc(55,"number"),o.Vb(),o.Vb(),o.Wb(56,"div",15),o.Wb(57,"h4",11),o.Hc(58,"State"),o.Vb(),o.Wb(59,"span",16),o.Hc(60),o.Vb(),o.Vb(),o.Vb(),o.Rb(61,"mat-divider",13),o.Wb(62,"div",9),o.Wb(63,"div",15),o.Wb(64,"h4",11),o.Hc(65,"Our Reserve (Sats)"),o.Vb(),o.Wb(66,"span",16),o.Hc(67),o.jc(68,"number"),o.Vb(),o.Vb(),o.Wb(69,"div",15),o.Wb(70,"h4",11),o.Hc(71,"Their Reserve (Sats)"),o.Vb(),o.Wb(72,"span",16),o.Hc(73),o.jc(74,"number"),o.Vb(),o.Vb(),o.Wb(75,"div",15),o.Wb(76,"h4",11),o.Hc(77,"Connected"),o.Vb(),o.Wb(78,"span",16),o.Hc(79),o.Vb(),o.Vb(),o.Wb(80,"div",15),o.Wb(81,"h4",11),o.Hc(82,"Private"),o.Vb(),o.Wb(83,"span",16),o.Hc(84),o.Vb(),o.Vb(),o.Vb(),o.Fc(85,fi,9,3,"div",17),o.Wb(86,"div",18),o.Wb(87,"button",19),o.ec("click",(function(){return t.onShowAdvanced()})),o.Fc(88,pi,2,0,"p",20),o.Fc(89,mi,2,0,"ng-template",null,21,o.Gc),o.Vb(),o.Fc(91,hi,2,1,"button",22),o.Fc(92,gi,2,0,"button",23),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e){var n=o.wc(90);o.Db(4),o.pc("icon",t.faReceipt),o.Db(5),o.pc("ngClass",o.tc(34,yi,t.screenSize===t.screenSizeEnum.XS)),o.Db(7),o.Ic(t.channel.short_channel_id),o.Db(5),o.Ic(t.channel.alias),o.Db(1),o.pc("inset",!0),o.Db(6),o.Ic(t.channel.channel_id),o.Db(1),o.pc("inset",!0),o.Db(6),o.Ic(t.channel.id),o.Db(1),o.pc("inset",!0),o.Db(6),o.Ic(o.kc(43,24,t.channel.msatoshi_to_us)),o.Db(6),o.Ic(o.kc(49,26,t.channel.spendable_msatoshi)),o.Db(6),o.Ic(o.kc(55,28,t.channel.msatoshi_total)),o.Db(6),o.Ic(t.channel.state),o.Db(1),o.pc("inset",!0),o.Db(6),o.Ic(o.kc(68,30,t.channel.our_channel_reserve_satoshis)),o.Db(6),o.Ic(o.kc(74,32,t.channel.their_channel_reserve_satoshis)),o.Db(6),o.Ic(t.channel.connected?"Yes":"No"),o.Db(5),o.Ic(t.channel.private?"Yes":"No"),o.Db(1),o.pc("ngIf",t.showAdvanced),o.Db(1),o.pc("ngClass",o.uc(36,vi,!t.showAdvanced,t.showAdvanced)),o.Db(2),o.pc("ngIf",!t.showAdvanced)("ngIfElse",n),o.Db(3),o.pc("ngIf",t.showCopy),o.Db(1),o.pc("ngIf",!t.showCopy)}},directives:[V.c,V.b,V.a,F.c,w.a,W.a,F.b,a.l,L.a,P.a,a.n,de.a,di.a],pipes:[a.e],styles:[""]}),e}();function Vi(e,t){1&e&&o.Rb(0,"mat-progress-bar",33)}function wi(e,t){1&e&&(o.Wb(0,"th",34),o.Hc(1," Short Channel ID "),o.Vb())}function Ci(e,t){if(1&e&&(o.Wb(0,"span",40),o.Rb(1,"fa-icon",41),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.pc("icon",n.faEyeSlash)}}function Fi(e,t){if(1&e&&(o.Wb(0,"span",42),o.Rb(1,"fa-icon",41),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.pc("icon",n.faEye)}}var Di=function(e){return{"max-width":e}};function Wi(e,t){if(1&e&&(o.Wb(0,"td",35),o.Wb(1,"div",36),o.Fc(2,Ci,2,1,"span",37),o.Fc(3,Fi,2,1,"span",38),o.Wb(4,"span",39),o.Hc(5),o.Vb(),o.Vb(),o.Vb()),2&e){var n=t.$implicit,a=o.ic();o.Db(1),o.pc("ngStyle",o.tc(4,Di,a.screenSize===a.screenSizeEnum.XS?"10rem":"22rem")),o.Db(1),o.pc("ngIf",n.private),o.Db(1),o.pc("ngIf",!n.private),o.Db(2),o.Ic(null==n?null:n.short_channel_id)}}function Si(e,t){1&e&&(o.Wb(0,"th",34),o.Hc(1," Alias "),o.Vb())}function Li(e,t){if(1&e&&(o.Wb(0,"td",35),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(null==n?null:n.alias)}}function Ri(e,t){1&e&&(o.Wb(0,"th",34),o.Hc(1," Connected "),o.Vb())}function Hi(e,t){if(1&e&&(o.Wb(0,"td",35),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null!=n&&n.connected?"Connected":"Disconnected"," ")}}function ki(e,t){1&e&&(o.Wb(0,"th",34),o.Hc(1," Private "),o.Vb())}function Ai(e,t){if(1&e&&(o.Wb(0,"td",35),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null!=n&&n.private?"Private":"Public"," ")}}function Ii(e,t){1&e&&(o.Wb(0,"th",34),o.Hc(1," State "),o.Vb())}function _i(e,t){if(1&e&&(o.Wb(0,"td",35),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null==n?null:n.state,"")}}function Ti(e,t){1&e&&(o.Wb(0,"th",43),o.Hc(1," Local Balance (Sats) "),o.Vb())}function Oi(e,t){if(1&e&&(o.Wb(0,"td",35),o.Wb(1,"span",44),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.lc(3,1,(null==n?null:n.msatoshi_to_us)/1e3,(null==n?null:n.msatoshi_to_us)<1e3?"1.0-4":"1.0-0")," ")}}function Pi(e,t){1&e&&(o.Wb(0,"th",43),o.Hc(1," Remote Balance (Sats) "),o.Vb())}function Mi(e,t){if(1&e&&(o.Wb(0,"td",35),o.Wb(1,"span",44),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.lc(3,1,(null==n?null:n.msatoshi_to_them)/1e3,(null==n?null:n.msatoshi_to_them)<1e3?"1.0-4":"1.0-0")," ")}}function Ei(e,t){1&e&&(o.Wb(0,"th",43),o.Hc(1," Total mSatoshis "),o.Vb())}function Bi(e,t){if(1&e&&(o.Wb(0,"td",35),o.Wb(1,"span",44),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.kc(3,1,null==n?null:n.msatoshi_total)," ")}}function Ui(e,t){1&e&&(o.Wb(0,"th",43),o.Hc(1," Spendable Satoshi "),o.Vb())}function Ni(e,t){if(1&e&&(o.Wb(0,"td",35),o.Wb(1,"span",44),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.kc(3,1,null==n?null:n.spendable_msatoshi)," ")}}function zi(e,t){1&e&&(o.Wb(0,"th",45),o.Hc(1,"Balance Score "),o.Vb())}function qi(e,t){if(1&e&&(o.Wb(0,"td",46),o.Wb(1,"div",47),o.Wb(2,"mat-hint",48),o.Hc(3),o.jc(4,"number"),o.Vb(),o.Vb(),o.Rb(5,"mat-progress-bar",49),o.Vb()),2&e){var n=t.$implicit;o.Db(3),o.Ic(o.kc(4,2,n.balancedness||0)),o.Db(2),o.qc("value",n.msatoshi_to_us&&n.msatoshi_to_us>0?(n.msatoshi_to_us-0)/(n.msatoshi_to_us-0+(n.msatoshi_to_them-0))*100:0)}}function ji(e,t){if(1&e){var n=o.Xb();o.Wb(0,"th",50),o.Wb(1,"div",51),o.Wb(2,"mat-select",52),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",53),o.ec("click",(function(){return o.yc(n),o.ic().onChannelUpdate("all")})),o.Hc(5,"Update Fee Policy"),o.Vb(),o.Wb(6,"mat-option",53),o.ec("click",(function(){return o.yc(n),o.ic().onDownloadCSV()})),o.Hc(7,"Download CSV"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}}function Xi(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",54),o.Wb(1,"div",55),o.Wb(2,"mat-select",56),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",53),o.ec("click",(function(e){o.yc(n);var a=t.$implicit;return o.ic().onChannelClick(a,e)})),o.Hc(5,"View Info"),o.Vb(),o.Wb(6,"mat-option",53),o.ec("click",(function(){o.yc(n);var e=t.$implicit;return o.ic().onViewRemotePolicy(e)})),o.Hc(7,"View Remote Fee"),o.Vb(),o.Wb(8,"mat-option",53),o.ec("click",(function(){o.yc(n);var e=t.$implicit;return o.ic().onChannelUpdate(e)})),o.Hc(9,"Update Fee Policy"),o.Vb(),o.Wb(10,"mat-option",53),o.ec("click",(function(){o.yc(n);var e=t.$implicit;return o.ic().onChannelClose(e)})),o.Hc(11,"Close Channel"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}}function Gi(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No peers connected. Add a peer in order to open a channel."),o.Vb())}function $i(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No channels available."),o.Vb())}function Qi(e,t){if(1&e&&(o.Wb(0,"td",57),o.Fc(1,Gi,2,0,"p",58),o.Fc(2,$i,2,0,"p",58),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngIf",n.numPeers<1&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)),o.Db(1),o.pc("ngIf",n.numPeers>0&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1))}}var Ki=function(e){return{"display-none":e}};function Ji(e,t){if(1&e&&o.Rb(0,"tr",59),2&e){var n=o.ic();o.pc("ngClass",o.tc(1,Ki,n.numPeers>0&&(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function Yi(e,t){1&e&&o.Rb(0,"tr",60)}function Zi(e,t){1&e&&o.Rb(0,"tr",61)}var eo=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},to=function(){return["no_peer"]},no=function(){function e(e,t,n,a,i){this.logger=e,this.store=t,this.rtlEffects=n,this.clEffects=a,this.commonService=i,this.faEye=p.o,this.faEyeSlash=p.p,this.totalBalance=0,this.displayedColumns=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=g.j,this.flgLoading=[!0],this.selectedFilter="",this.selFilter="",this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["short_channel_id","alias","actions"]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","actions"]):(this.flgSticky=!0,this.displayedColumns=["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","balancedness","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("cl").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchChannels"===t.action&&(e.flgLoading[0]="error")})),e.information=t.information,e.numPeers=t.peers&&t.peers.length?t.peers.length:0,e.totalBalance=t.balance.totalBalance,t.allChannels&&e.loadChannelsTable(t.allChannels.filter((function(e){return"CHANNELD_NORMAL"===e.state&&e.connected}))),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.allChannels),e.logger.info(t)}))},e.prototype.onViewRemotePolicy=function(e){var t=this;this.store.dispatch(new y.f({shortChannelID:e.short_channel_id,showError:!0})),this.clEffects.setLookupCL.pipe(Object(Ke.a)(1)).subscribe((function(e){if(0===e.length)return!1;var n;t.store.dispatch(new re.C({data:{type:g.b.INFORMATION,alertTitle:"Remote Channel Policy",message:[[{key:"base_fee_millisatoshi",value:(n=e[0].source!==t.information.id?e[0]:e[1]).base_fee_millisatoshi,title:"Base Fees (mSats)",width:34,type:g.h.NUMBER},{key:"fee_per_millionth",value:n.fee_per_millionth,title:"Fee/Millionth",width:33,type:g.h.NUMBER},{key:"delay",value:n.delay,title:"Delay",width:33,type:g.h.NUMBER}]]}}))}))},e.prototype.onChannelUpdate=function(e){var t=this;"all"!==e&&"ONCHAIN"===e.state||("all"===e?(this.store.dispatch(new re.D({data:{type:g.b.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:1e3,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:1,min:1,width:48}]}})),this.rtlEffects.closeConfirm.pipe(Object(u.a)(this.unSubs[1])).subscribe((function(e){if(e){var n=e[0].inputValue,a=e[1].inputValue;t.store.dispatch(new re.F("Updating Channel Policy...")),t.store.dispatch(new y.Jb({baseFeeMsat:n,feeRate:a,channelId:"all"}))}}))):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0},this.store.dispatch(new re.F("Fetching Channel Policy...")),this.store.dispatch(new y.f({shortChannelID:e.short_channel_id,showError:!1})),this.clEffects.setLookupCL.pipe(Object(Ke.a)(1)).subscribe((function(n){t.myChanPolicy=n.length>0&&n[0].destination===t.information.id?{fee_base_msat:n[0].base_fee_millisatoshi,fee_rate_milli_msat:n[0].fee_per_millionth}:n.length>1&&n[1].destination===t.information.id?{fee_base_msat:n[1].base_fee_millisatoshi,fee_rate_milli_msat:n[1].fee_per_millionth}:{fee_base_msat:0,fee_rate_milli_msat:0},t.logger.info(t.myChanPolicy),t.store.dispatch(new re.i),t.store.dispatch(new re.D({data:{type:g.b.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:[],titleMessage:"Update fee policy for Channel: "+e.channel_id,flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:""===t.myChanPolicy.fee_base_msat?0:t.myChanPolicy.fee_base_msat,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:t.myChanPolicy.fee_rate_milli_msat,min:1,width:48}]}}))})),this.rtlEffects.closeConfirm.pipe(Object(u.a)(this.unSubs[2])).subscribe((function(n){if(n){var a=n[0].inputValue,i=n[1].inputValue;t.store.dispatch(new re.F("Updating Channel Policy...")),t.store.dispatch(new y.Jb({baseFeeMsat:a,feeRate:i,channelId:e.channel_id}))}}))),this.applyFilter())},e.prototype.onChannelClose=function(e){var t=this;this.store.dispatch(new re.D({data:{type:g.b.CONFIRM,alertTitle:"Close Channel",titleMessage:"Closing channel: "+e.channel_id,noBtnText:"Cancel",yesBtnText:"Close Channel"}})),this.rtlEffects.closeConfirm.pipe(Object(u.a)(this.unSubs[3])).subscribe((function(n){n&&(t.store.dispatch(new re.F("Closing Channel...")),t.store.dispatch(new y.h({channelId:e.channel_id,force:!1})))}))},e.prototype.applyFilter=function(){this.selectedFilter=this.selFilter,this.channels.filter=this.selFilter},e.prototype.onChannelClick=function(e,t){this.store.dispatch(new re.C({data:{channel:e,showCopy:!0,component:xi}}))},e.prototype.loadChannelsTable=function(e){e.sort((function(e,t){return e.active===t.active?0:t.active?1:-1})),this.channels=new ie.o(Object(te.g)(e)),this.channels.filterPredicate=function(e,t){return((e.connected?"connected":"disconnected")+(e.channel_id?e.channel_id:"")+(e.short_channel_id?e.short_channel_id:"")+(e.id?e.id:"")+(e.alias?e.alias:"")+(e.private?"private":"public")+(e.state?e.state.toLowerCase():"")+(e.funding_txid?e.funding_txid:"")+(e.msatoshi_to_us?e.msatoshi_to_us:"")+(e.msatoshi_total?e.msatoshi_total:"")+(e.their_channel_reserve_satoshis?e.their_channel_reserve_satoshis:"")+(e.our_channel_reserve_satoshis?e.our_channel_reserve_satoshis:"")+(e.spendable_msatoshi?e.spendable_msatoshi:"")).includes(t.toLowerCase())},this.channels.sort=this.sort,this.channels.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.channels.paginator=this.paginator,this.logger.info(this.channels)},e.prototype.onDownloadCSV=function(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(v.h),o.Qb(se.a),o.Qb(Je.a),o.Qb(h.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-channel-open-table"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Dc(ne.a,!0)),2&e&&(o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.paginator=n.first))},features:[o.Cb([{provide:ne.b,useValue:Object(g.w)("Channels")}])],decls:48,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","connected"],["matColumnDef","private"],["matColumnDef","state"],["matColumnDef","msatoshi_to_us"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_to_them"],["matColumnDef","msatoshi_total"],["matColumnDef","spendable_msatoshi"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["fxFlex","100","fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Rb(2,"div",2),o.Wb(3,"mat-form-field",3),o.Wb(4,"input",4),o.ec("keyup",(function(){return t.applyFilter()}))("ngModelChange",(function(e){return t.selFilter=e})),o.Vb(),o.Vb(),o.Vb(),o.Wb(5,"div",5),o.Fc(6,Vi,1,0,"mat-progress-bar",6),o.Wb(7,"table",7,8),o.Ub(9,9),o.Fc(10,wi,2,0,"th",10),o.Fc(11,Wi,6,6,"td",11),o.Tb(),o.Ub(12,12),o.Fc(13,Si,2,0,"th",10),o.Fc(14,Li,2,1,"td",11),o.Tb(),o.Ub(15,13),o.Fc(16,Ri,2,0,"th",10),o.Fc(17,Hi,2,1,"td",11),o.Tb(),o.Ub(18,14),o.Fc(19,ki,2,0,"th",10),o.Fc(20,Ai,2,1,"td",11),o.Tb(),o.Ub(21,15),o.Fc(22,Ii,2,0,"th",10),o.Fc(23,_i,2,1,"td",11),o.Tb(),o.Ub(24,16),o.Fc(25,Ti,2,0,"th",17),o.Fc(26,Oi,4,4,"td",11),o.Tb(),o.Ub(27,18),o.Fc(28,Pi,2,0,"th",17),o.Fc(29,Mi,4,4,"td",11),o.Tb(),o.Ub(30,19),o.Fc(31,Ei,2,0,"th",17),o.Fc(32,Bi,4,3,"td",11),o.Tb(),o.Ub(33,20),o.Fc(34,Ui,2,0,"th",17),o.Fc(35,Ni,4,3,"td",11),o.Tb(),o.Ub(36,21),o.Fc(37,zi,2,0,"th",22),o.Fc(38,qi,6,4,"td",23),o.Tb(),o.Ub(39,24),o.Fc(40,ji,8,0,"th",25),o.Fc(41,Xi,12,0,"td",26),o.Tb(),o.Ub(42,27),o.Fc(43,Qi,3,2,"td",28),o.Tb(),o.Fc(44,Ji,1,3,"tr",29),o.Fc(45,Yi,1,0,"tr",30),o.Fc(46,Zi,1,0,"tr",31),o.Vb(),o.Vb(),o.Rb(47,"mat-paginator",32),o.Vb()),2&e&&(o.Db(4),o.pc("ngModel",t.selFilter),o.Db(2),o.pc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.pc("dataSource",t.channels)("ngClass",o.tc(11,eo,"error"===t.flgLoading[0])),o.Db(37),o.pc("matFooterRowDef",o.sc(13,to)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns),o.Db(1),o.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[V.c,V.b,V.a,T.c,ue.b,be.b,be.l,be.o,M.b,a.n,ie.n,ae.a,a.l,L.a,ie.c,ie.i,ie.b,ie.e,ie.g,ie.k,ie.m,ne.a,c.a,ie.h,ae.b,ie.a,a.o,L.b,O.a,w.a,T.f,pe.a,pe.c,he.n,ie.d,ie.f,ie.j,ie.l],pipes:[a.e],styles:[".mat-column-short_channel_id[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-short_channel_id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-alias[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;flex:0 0 22%;width:22%}.mat-column-msatoshi_to_them[_ngcontent-%COMP%], .mat-column-msatoshi_to_us[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{flex:0 0 15%;width:15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}();function ao(e,t){1&e&&o.Rb(0,"mat-progress-bar",29)}function io(e,t){1&e&&(o.Wb(0,"th",30),o.Hc(1," Short Channel ID "),o.Vb())}function oo(e,t){if(1&e&&(o.Wb(0,"td",31),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null==n?null:n.short_channel_id,"")}}function co(e,t){1&e&&(o.Wb(0,"th",30),o.Hc(1," Alias "),o.Vb())}function so(e,t){if(1&e&&(o.Wb(0,"td",31),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(null==n?null:n.alias)}}function ro(e,t){1&e&&(o.Wb(0,"th",30),o.Hc(1," Connected "),o.Vb())}function lo(e,t){if(1&e&&(o.Wb(0,"td",31),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null!=n&&n.connected?"Connected":"Disconnected"," ")}}function bo(e,t){1&e&&(o.Wb(0,"th",30),o.Hc(1," Private "),o.Vb())}function uo(e,t){if(1&e&&(o.Wb(0,"td",31),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null!=n&&n.private?"Private":"Public"," ")}}function fo(e,t){1&e&&(o.Wb(0,"th",30),o.Hc(1," State "),o.Vb())}function po(e,t){if(1&e&&(o.Wb(0,"td",31),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null==n?null:n.state,"")}}function mo(e,t){1&e&&(o.Wb(0,"th",32),o.Hc(1," mSatoshi To Us "),o.Vb())}function ho(e,t){if(1&e&&(o.Wb(0,"td",31),o.Wb(1,"span",33),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.kc(3,1,null==n?null:n.msatoshi_to_us)," ")}}function go(e,t){1&e&&(o.Wb(0,"th",32),o.Hc(1," Total (Sats) "),o.Vb())}function yo(e,t){if(1&e&&(o.Wb(0,"td",31),o.Wb(1,"span",33),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.kc(3,1,(null==n?null:n.msatoshi_total)/1e3)," ")}}function vo(e,t){1&e&&(o.Wb(0,"th",32),o.Hc(1," Spendable Satoshi "),o.Vb())}function xo(e,t){if(1&e&&(o.Wb(0,"td",31),o.Wb(1,"span",33),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.kc(3,1,null==n?null:n.spendable_msatoshi)," ")}}function Vo(e,t){if(1&e){var n=o.Xb();o.Wb(0,"th",34),o.Wb(1,"div",35),o.Wb(2,"mat-select",36),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",37),o.ec("click",(function(){return o.yc(n),o.ic().onDownloadCSV()})),o.Hc(5,"Download CSV"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}}function wo(e,t){if(1&e){var n=o.Xb();o.Wb(0,"mat-option",37),o.ec("click",(function(){o.yc(n);var e=o.ic().$implicit;return o.ic().onChannelClose(e)})),o.Hc(1,"Close Channel"),o.Vb()}}function Co(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",38),o.Wb(1,"div",35),o.Wb(2,"mat-select",39),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",37),o.ec("click",(function(e){o.yc(n);var a=t.$implicit;return o.ic().onChannelClick(a,e)})),o.Hc(5,"View Info"),o.Vb(),o.Fc(6,wo,2,0,"mat-option",40),o.Vb(),o.Vb(),o.Vb()}if(2&e){var a=t.$implicit,i=o.ic();o.Db(6),o.pc("ngIf",i.isCompatibleVersion&&!a.connected&&"CHANNELD_NORMAL"===a.state)}}function Fo(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No peers connected. Add a peer in order to open a channel."),o.Vb())}function Do(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No channels available."),o.Vb())}function Wo(e,t){if(1&e&&(o.Wb(0,"td",41),o.Fc(1,Fo,2,0,"p",42),o.Fc(2,Do,2,0,"p",42),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngIf",n.numPeers<1&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)),o.Db(1),o.pc("ngIf",n.numPeers>0&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1))}}var So=function(e){return{"display-none":e}};function Lo(e,t){if(1&e&&o.Rb(0,"tr",43),2&e){var n=o.ic();o.pc("ngClass",o.tc(1,So,n.numPeers>0&&(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function Ro(e,t){1&e&&o.Rb(0,"tr",44)}function Ho(e,t){1&e&&o.Rb(0,"tr",45)}var ko=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Ao=function(){return["no_peer"]},Io=function(){function e(e,t,n,a,i){this.logger=e,this.store=t,this.rtlEffects=n,this.clEffects=a,this.commonService=i,this.isCompatibleVersion=!1,this.totalBalance=0,this.displayedColumns=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=g.j,this.flgLoading=[!0],this.selectedFilter="",this.selFilter="",this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["alias","state","actions"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["alias","connected","state","actions"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["alias","connected","state","msatoshi_total","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","connected","state","msatoshi_total","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("cl").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchChannels"===t.action&&(e.flgLoading[0]="error")})),e.information=t.information,e.information.api_version&&(e.isCompatibleVersion=e.commonService.isVersionCompatible(e.information.api_version,"0.4.2")),e.numPeers=t.peers&&t.peers.length?t.peers.length:0,e.totalBalance=t.balance.totalBalance,t.allChannels&&e.loadChannelsTable(t.allChannels.filter((function(e){return!("CHANNELD_NORMAL"===e.state&&e.connected)}))),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.allChannels),e.logger.info(t)}))},e.prototype.applyFilter=function(){this.selectedFilter=this.selFilter,this.channels.filter=this.selFilter},e.prototype.onChannelClick=function(e,t){this.store.dispatch(new re.C({data:{channel:e,showCopy:!0,component:xi}}))},e.prototype.onChannelClose=function(e){var t=this;this.store.dispatch(new re.D({data:{type:g.b.CONFIRM,alertTitle:"Force Close Channel",titleMessage:"Force closing channel: "+e.channel_id,noBtnText:"Cancel",yesBtnText:"Force Close"}})),this.rtlEffects.closeConfirm.pipe(Object(u.a)(this.unSubs[3])).subscribe((function(n){n&&(t.store.dispatch(new re.F("Force Closing Channel...")),t.store.dispatch(new y.h({channelId:e.channel_id,force:!0})))}))},e.prototype.loadChannelsTable=function(e){e.sort((function(e,t){return e.active===t.active?0:t.active?1:-1})),this.channels=new ie.o(Object(te.g)(e)),this.channels.filterPredicate=function(e,t){return((e.connected?"connected":"disconnected")+(e.channel_id?e.channel_id:"")+(e.short_channel_id?e.short_channel_id:"")+(e.id?e.id:"")+(e.alias?e.alias:"")+(e.private?"private":"public")+(e.state?e.state.toLowerCase():"")+(e.funding_txid?e.funding_txid:"")+(e.msatoshi_to_us?e.msatoshi_to_us:"")+(e.msatoshi_total?e.msatoshi_total:"")+(e.their_channel_reserve_satoshis?e.their_channel_reserve_satoshis:"")+(e.our_channel_reserve_satoshis?e.our_channel_reserve_satoshis:"")+(e.spendable_msatoshi?e.spendable_msatoshi:"")).includes(t.toLowerCase())},this.channels.sort=this.sort,this.channels.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.channels.paginator=this.paginator,this.logger.info(this.channels)},e.prototype.onDownloadCSV=function(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Pending-inactive-channels")},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(v.h),o.Qb(se.a),o.Qb(Je.a),o.Qb(h.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-channel-pending-table"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Dc(ne.a,!0)),2&e&&(o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.paginator=n.first))},features:[o.Cb([{provide:ne.b,useValue:Object(g.w)("Channels")}])],decls:42,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","connected"],["matColumnDef","private"],["matColumnDef","state"],["matColumnDef","msatoshi_to_us"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_total"],["matColumnDef","spendable_msatoshi"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pr-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pr-3"],["placeholder","Actions","tabindex","4",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Rb(2,"div",2),o.Wb(3,"mat-form-field",3),o.Wb(4,"input",4),o.ec("keyup",(function(){return t.applyFilter()}))("ngModelChange",(function(e){return t.selFilter=e})),o.Vb(),o.Vb(),o.Vb(),o.Wb(5,"div",5),o.Fc(6,ao,1,0,"mat-progress-bar",6),o.Wb(7,"table",7,8),o.Ub(9,9),o.Fc(10,io,2,0,"th",10),o.Fc(11,oo,2,1,"td",11),o.Tb(),o.Ub(12,12),o.Fc(13,co,2,0,"th",10),o.Fc(14,so,2,1,"td",11),o.Tb(),o.Ub(15,13),o.Fc(16,ro,2,0,"th",10),o.Fc(17,lo,2,1,"td",11),o.Tb(),o.Ub(18,14),o.Fc(19,bo,2,0,"th",10),o.Fc(20,uo,2,1,"td",11),o.Tb(),o.Ub(21,15),o.Fc(22,fo,2,0,"th",10),o.Fc(23,po,2,1,"td",11),o.Tb(),o.Ub(24,16),o.Fc(25,mo,2,0,"th",17),o.Fc(26,ho,4,3,"td",11),o.Tb(),o.Ub(27,18),o.Fc(28,go,2,0,"th",17),o.Fc(29,yo,4,3,"td",11),o.Tb(),o.Ub(30,19),o.Fc(31,vo,2,0,"th",17),o.Fc(32,xo,4,3,"td",11),o.Tb(),o.Ub(33,20),o.Fc(34,Vo,6,0,"th",21),o.Fc(35,Co,7,1,"td",22),o.Tb(),o.Ub(36,23),o.Fc(37,Wo,3,2,"td",24),o.Tb(),o.Fc(38,Lo,1,3,"tr",25),o.Fc(39,Ro,1,0,"tr",26),o.Fc(40,Ho,1,0,"tr",27),o.Vb(),o.Vb(),o.Rb(41,"mat-paginator",28),o.Vb()),2&e&&(o.Db(4),o.pc("ngModel",t.selFilter),o.Db(2),o.pc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.pc("dataSource",t.channels)("ngClass",o.tc(11,ko,"error"===t.flgLoading[0])),o.Db(31),o.pc("matFooterRowDef",o.sc(13,Ao)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns),o.Db(1),o.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[V.c,V.b,V.a,T.c,ue.b,be.b,be.l,be.o,M.b,a.n,ie.n,ae.a,a.l,L.a,ie.c,ie.i,ie.b,ie.e,ie.g,ie.k,ie.m,ne.a,c.a,ie.h,ae.b,ie.a,pe.a,pe.c,he.n,ie.d,ie.f,ie.j,ie.l],pipes:[a.e],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}(),_o=n("BId/");function To(e,t){if(1&e&&(o.Wb(0,"span",2),o.Hc(1,"Open"),o.Vb()),2&e){var n=o.ic();o.qc("matBadge",n.openChannels)}}function Oo(e,t){if(1&e&&(o.Wb(0,"span",2),o.Hc(1,"Pending/Inactive"),o.Vb()),2&e){var n=o.ic();o.qc("matBadge",n.pendingChannels)}}var Po=function(){function e(e,t){this.logger=e,this.store=t,this.openChannels=0,this.pendingChannels=0,this.unSubs=[new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("cl").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t.allChannels&&t.allChannels.length?(e.openChannels=0,e.pendingChannels=0,t.allChannels.forEach((function(t){"CHANNELD_NORMAL"===t.state&&t.connected?e.openChannels++:e.pendingChannels++}))):(e.openChannels=0,e.pendingChannels=0),e.logger.info(t)}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(v.h))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-channels-tables"]],decls:8,vars:0,consts:[["fxLayout","column","fxFlex","100",1,"mt-2","bordered-box"],["mat-tab-label",""],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"mat-tab-group"),o.Wb(2,"mat-tab"),o.Fc(3,To,2,1,"ng-template",1),o.Rb(4,"rtl-cl-channel-open-table"),o.Vb(),o.Wb(5,"mat-tab"),o.Fc(6,Oo,2,1,"ng-template",1),o.Rb(7,"rtl-cl-channel-pending-table"),o.Vb(),o.Vb(),o.Vb())},directives:[V.c,V.a,ee.c,ee.a,ee.d,no,Io,_o.a],styles:[""]}),e}(),Mo=["peersForm"],Eo=["stepper"];function Bo(e,t){if(1&e&&o.Hc(0),2&e){var n=o.ic();o.Ic(n.peerFormLabel)}}function Uo(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Address is required."),o.Vb())}function No(e,t){if(1&e&&(o.Wb(0,"div",39),o.Rb(1,"fa-icon",40),o.Wb(2,"span"),o.Hc(3),o.Vb(),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("icon",n.faExclamationTriangle),o.Db(2),o.Ic(n.peerConnectionError)}}function zo(e,t){if(1&e&&o.Hc(0),2&e){var n=o.ic();o.Ic(n.channelFormLabel)}}function qo(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Amount is required."),o.Vb())}function jo(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Amount must be a positive number."),o.Vb())}function Xo(e,t){if(1&e&&(o.Wb(0,"mat-error"),o.Hc(1),o.Vb()),2&e){var n=o.ic();o.Db(1),o.Jc("Amount must be less than or equal to ",n.totalBalance,".")}}function Go(e,t){if(1&e&&(o.Wb(0,"mat-option",41),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.pc("value",n.feeRateId),o.Db(1),o.Jc(" ",n.feeRateType," ")}}function $o(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Min Confirmation Blocks is required."),o.Vb())}function Qo(e,t){if(1&e&&(o.Wb(0,"div",39),o.Rb(1,"fa-icon",40),o.Wb(2,"span"),o.Hc(3),o.Vb(),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("icon",n.faExclamationTriangle),o.Db(2),o.Ic(n.channelConnectionError)}}var Ko=function(){function e(e,t,n,a,i,o,c){this.dialogRef=e,this.data=t,this.store=n,this.clEffects=a,this.formBuilder=i,this.actions$=o,this.logger=c,this.faExclamationTriangle=p.n,this.peerAddress="",this.totalBalance=0,this.feeRateTypes=g.j,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.unSubs=[new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.totalBalance=this.data.message.balance,this.peerAddress=this.data.message.peer&&this.data.message.peer.id&&this.data.message.peer.netaddr?this.data.message.peer.id+"@"+this.data.message.peer.netaddr:this.data.message.peer&&this.data.message.peer.id&&!this.data.message.peer.netaddr?this.data.message.peer.id:"",this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[be.s.required]],peerAddress:[this.peerAddress,[be.s.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[be.s.required,be.s.min(1),be.s.max(this.totalBalance)]],isPrivate:[!1],selFeeRate:[null],flgMinConf:[!1],minConfValue:[null],hiddenAmount:["",[be.s.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.flgMinConf.valueChanges.pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t?(e.channelFormGroup.controls.selFeeRate.setValue(null),e.channelFormGroup.controls.selFeeRate.disable(),e.channelFormGroup.controls.minConfValue.enable(),e.channelFormGroup.controls.minConfValue.setValidators([be.s.required])):(e.channelFormGroup.controls.selFeeRate.enable(),e.channelFormGroup.controls.minConfValue.disable(),e.channelFormGroup.controls.minConfValue.setValidators(null))})),this.actions$.pipe(Object(u.a)(this.unSubs[1]),Object(d.a)((function(e){return e.type===y.R||e.type===y.r||e.type===y.o}))).subscribe((function(t){t.type===y.R&&(e.logger.info(t.payload),e.flgEditable=!1,e.newlyAddedPeer=t.payload.peer,e.peerFormGroup.controls.hiddenAddress.setValue(e.peerFormGroup.controls.peerAddress.value),e.stepper.next()),t.type===y.r&&e.dialogRef.close(),t.type===y.o&&("SaveNewPeer"===t.payload.action?e.peerConnectionError=t.payload.message:"SaveNewChannel"===t.payload.action&&(e.channelConnectionError=t.payload.message))}))},e.prototype.onConnectPeer=function(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch(new re.F("Adding Peer...")),this.store.dispatch(new y.yb({id:this.peerFormGroup.controls.peerAddress.value}))},e.prototype.onOpenChannel=function(){if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||this.channelFormGroup.controls.flgMinConf.value&&!this.channelFormGroup.controls.minConfValue.value)return!0;this.channelConnectionError="",this.store.dispatch(new re.F("Opening Channel...")),this.store.dispatch(new y.wb({peerId:this.newlyAddedPeer.id,satoshis:this.channelFormGroup.controls.fundingAmount.value,announce:!this.channelFormGroup.controls.isPrivate.value,feeRate:this.channelFormGroup.controls.selFeeRate.value,minconf:this.channelFormGroup.controls.flgMinConf.value?this.channelFormGroup.controls.minConfValue.value:null}))},e.prototype.onClose=function(){this.dialogRef.close(!1)},e.prototype.stepSelectionChanged=function(e){switch(e.selectedIndex){case 0:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer.id):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer.id):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)";break;default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)"}e.selectedIndex0))}}function yc(e,t){1&e&&o.Rb(0,"tr",52)}function vc(e,t){if(1&e&&o.Rb(0,"tr",53),2&e){var n=t.$implicit,a=o.ic();o.pc("@newlyAddedRowAnimation",n.pub_key===a.newlyAddedPeer&&a.flgAnimate?"added":"notAdded")}}var xc=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Vc=function(){return["no_peer"]},wc=function(){function e(e,t,n,a,i,o){this.logger=e,this.store=t,this.rtlEffects=n,this.clEffects=a,this.actions$=i,this.commonService=o,this.faUsers=p.N,this.newlyAddedPeer="",this.flgAnimate=!0,this.displayedColumns=[],this.peerAddress="",this.information={},this.availableBalance=0,this.flgLoading=[!0],this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["alias","id","netaddr","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","id","netaddr","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("cl").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchPeers"===t.action&&(e.flgLoading[0]="error")})),e.information=t.information,e.availableBalance=t.balance.totalBalance||0,e.peers=new ie.o([]),e.peers.data=[],t.peers&&(e.peers=new ie.o(Object(te.g)(t.peers)),e.peers.data=t.peers,setTimeout((function(){e.flgAnimate=!1}),3e3)),e.peers.sort=e.sort,e.peers.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},e.peers.paginator=e.paginator,"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!1),e.logger.info(t)})),this.actions$.pipe(Object(u.a)(this.unSubs[1]),Object(d.a)((function(e){return e.type===y.sb}))).subscribe((function(t){e.peerAddress=void 0,e.flgAnimate=!0}))},e.prototype.onPeerClick=function(e,t){this.store.dispatch(new re.C({data:{type:g.b.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:e.id,message:[[{key:"id",value:e.id,title:"Public Key",width:100}],[{key:"netaddr",value:e.netaddr,title:"Address",width:100}],[{key:"alias",value:e.alias,title:"Alias",width:50},{key:"connected",value:e.connected?"True":"False",title:"Connected",width:50}]]}}))},e.prototype.onConnectPeer=function(e){this.store.dispatch(new re.C({data:{message:{peer:e.id?e:null,information:this.information,balance:this.availableBalance},component:Ko}}))},e.prototype.onOpenChannel=function(e){this.store.dispatch(new re.C({data:{alertTitle:"Open Channel",message:{peer:e,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:ui}}))},e.prototype.onPeerDetach=function(e){var t=this;this.store.dispatch(new re.D({data:{type:g.b.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(e.alias?e.alias:e.id),noBtnText:"Cancel",yesBtnText:"Disconnect"}})),this.rtlEffects.closeConfirm.pipe(Object(u.a)(this.unSubs[3])).subscribe((function(n){n&&(t.store.dispatch(new re.F("Disconnecting Peer...")),t.store.dispatch(new y.n({id:e.id,force:!1})))}))},e.prototype.applyFilter=function(e){this.peers.filter=e},e.prototype.onDownloadCSV=function(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(v.h),o.Qb(se.a),o.Qb(Je.a),o.Qb(x.a),o.Qb(h.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-peers"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Dc(ne.a,!0)),2&e&&(o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.paginator=n.first))},features:[o.Cb([{provide:ne.b,useValue:Object(g.w)("Peers")}])],decls:36,vars:14,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["peersForm","ngForm"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["fxLayout","row","fxLayoutAlign","start start"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pr-3",3,"ngStyle",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","netaddr"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","",1,"pr-3"],["mat-cell","",1,"pr-3",3,"ngStyle"],["class","dot green","matTooltip","Connected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Disconnected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Connected","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Disconnected","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],[4,"ngFor","ngForOf"],[4,"ngIf"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["fxFlex","100","fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"form",1,2),o.Wb(3,"button",3),o.ec("click",(function(){return t.onConnectPeer({})})),o.Hc(4,"Add Peer"),o.Vb(),o.Vb(),o.Wb(5,"div",4),o.Wb(6,"div",5),o.Wb(7,"div",6),o.Rb(8,"fa-icon",7),o.Wb(9,"span",8),o.Hc(10,"Connected Peers"),o.Vb(),o.Vb(),o.Wb(11,"mat-form-field",9),o.Wb(12,"div",10),o.Wb(13,"input",11),o.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Wb(14,"div",12),o.Fc(15,Jo,1,0,"mat-progress-bar",13),o.Wb(16,"table",14,15),o.Ub(18,16),o.Fc(19,Yo,2,0,"th",17),o.Fc(20,ac,4,6,"td",18),o.Tb(),o.Ub(21,19),o.Fc(22,ic,2,0,"th",20),o.Fc(23,oc,2,4,"td",21),o.Tb(),o.Ub(24,22),o.Fc(25,cc,2,0,"th",20),o.Fc(26,lc,2,4,"td",21),o.Tb(),o.Ub(27,23),o.Fc(28,bc,6,0,"th",24),o.Fc(29,fc,10,2,"td",25),o.Tb(),o.Ub(30,26),o.Fc(31,mc,2,1,"td",27),o.Tb(),o.Fc(32,gc,1,3,"tr",28),o.Fc(33,yc,1,0,"tr",29),o.Fc(34,vc,1,1,"tr",30),o.Vb(),o.Vb(),o.Rb(35,"mat-paginator",31),o.Vb(),o.Vb()),2&e&&(o.Db(8),o.pc("icon",t.faUsers),o.Db(7),o.pc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.pc("dataSource",t.peers)("ngClass",o.tc(11,xc,"error"===t.flgLoading[0])),o.Db(16),o.pc("matFooterRowDef",o.sc(13,Vc)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns),o.Db(1),o.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[V.c,V.a,V.b,be.t,be.m,be.n,W.a,w.a,T.c,ue.b,M.b,a.n,ie.n,ae.a,a.l,L.a,ie.c,ie.i,ie.b,ie.e,ie.g,ie.k,ie.m,ne.a,c.a,ie.h,ae.b,ie.a,a.o,L.b,O.a,a.m,pe.a,pe.c,he.n,ie.d,ie.f,ie.j,ie.l],styles:[".mat-column-alias[_ngcontent-%COMP%], .mat-column-id[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-id[_ngcontent-%COMP%]{padding-left:2rem}.mat-column-netaddr[_ngcontent-%COMP%]{flex:1 1 15%;width:15%}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"],data:{animation:[ce.a]}}),e}();function Cc(e,t){if(1&e&&(o.Wb(0,"span",12),o.Hc(1,"Channels"),o.Vb()),2&e){var n=o.ic();o.qc("matBadge",n.activeChannels)}}function Fc(e,t){if(1&e&&(o.Wb(0,"span",12),o.Hc(1,"Peers"),o.Vb()),2&e){var n=o.ic();o.qc("matBadge",n.activePeers)}}var Dc=function(){function e(e,t,n){this.store=e,this.logger=t,this.commonService=n,this.selNode={},this.information={},this.peers=[],this.transactions=[],this.totalBalance=0,this.activePeers=0,this.activeChannels=0,this.faUsers=p.N,this.faChartPie=p.f,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.unSubs=[new b.a,new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("cl").pipe(Object(u.a)(this.unSubs[1])).subscribe((function(t){e.selNode=t.nodeSettings,e.information=t.information,e.peers=t.peers,e.transactions=e.commonService.sortAscByKey(t.transactions.filter((function(e){return"confirmed"===e.status})),"value"),e.activePeers=t.peers&&t.peers.length?t.peers.length:0,e.activeChannels=t.information.num_active_channels,e.totalBalance=t.balance.totalBalance,e.balances=[{title:"Total Balance",dataValue:t.balance.totalBalance||0},{title:"Confirmed",dataValue:t.balance.confBalance},{title:"Unconfirmed",dataValue:t.balance.unconfBalance}],e.logger.info(t)}))},e.prototype.onOpenChannel=function(){var e={peers:this.peers,information:this.information,balance:this.totalBalance,transactions:this.transactions,isCompatibleVersion:this.commonService.isVersionCompatible(this.information.version,"0.9.0")&&this.commonService.isVersionCompatible(this.information.api_version,"0.4.0")};this.store.dispatch(new re.C({data:{alertTitle:"Open Channel",message:e,component:ui}}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(v.h),o.Qb(m.b),o.Qb(h.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-peers-channels"]],decls:26,vars:3,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Rb(1,"fa-icon",1),o.Wb(2,"span",2),o.Hc(3,"On-chain Balance"),o.Vb(),o.Vb(),o.Wb(4,"div",3),o.Wb(5,"mat-card"),o.Wb(6,"mat-card-content",4),o.Rb(7,"rtl-currency-unit-converter",5),o.Vb(),o.Vb(),o.Vb(),o.Wb(8,"div",0),o.Rb(9,"fa-icon",1),o.Wb(10,"span",2),o.Hc(11,"Connections"),o.Vb(),o.Vb(),o.Wb(12,"div",6),o.Wb(13,"mat-card"),o.Wb(14,"mat-card-content",4),o.Wb(15,"mat-tab-group"),o.Wb(16,"mat-tab"),o.Fc(17,Cc,2,1,"ng-template",7),o.Wb(18,"div",8),o.Wb(19,"div",9),o.Wb(20,"button",10),o.ec("click",(function(){return t.onOpenChannel()})),o.Hc(21,"Open Channel"),o.Vb(),o.Vb(),o.Rb(22,"rtl-cl-channels-tables",11),o.Vb(),o.Vb(),o.Wb(23,"mat-tab"),o.Fc(24,Fc,2,1,"ng-template",7),o.Rb(25,"rtl-cl-peers"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(1),o.pc("icon",t.faChartPie),o.Db(6),o.pc("values",t.balances),o.Db(2),o.pc("icon",t.faUsers))},directives:[V.c,V.b,w.a,F.a,F.b,fa.a,ee.c,ee.a,ee.d,V.a,W.a,Po,wc,_o.a],styles:[""]}),e}(),Wc=["queryRoutesForm"];function Sc(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Destination pubkey is required."),o.Vb())}function Lc(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Amount is required."),o.Vb())}function Rc(e,t){1&e&&o.Rb(0,"mat-progress-bar",39)}function Hc(e,t){1&e&&(o.Wb(0,"th",40),o.Hc(1," ID "),o.Vb())}function kc(e,t){if(1&e&&(o.Wb(0,"td",41),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null==n?null:n.id," ")}}function Ac(e,t){1&e&&(o.Wb(0,"th",40),o.Hc(1," Alias "),o.Vb())}function Ic(e,t){if(1&e&&(o.Wb(0,"td",41),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null==n?null:n.alias," ")}}function _c(e,t){1&e&&(o.Wb(0,"th",40),o.Hc(1," Channel "),o.Vb())}function Tc(e,t){if(1&e&&(o.Wb(0,"td",41),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null==n?null:n.channel," ")}}function Oc(e,t){1&e&&(o.Wb(0,"th",40),o.Hc(1," Direction "),o.Vb())}function Pc(e,t){if(1&e&&(o.Wb(0,"td",41),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null==n?null:n.direction," ")}}function Mc(e,t){1&e&&(o.Wb(0,"th",42),o.Hc(1," Delay "),o.Vb())}function Ec(e,t){if(1&e&&(o.Wb(0,"td",41),o.Wb(1,"span",43),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.kc(3,1,null==n?null:n.delay)," ")}}function Bc(e,t){1&e&&(o.Wb(0,"th",42),o.Hc(1," Amount (Sats) "),o.Vb())}function Uc(e,t){if(1&e&&(o.Wb(0,"td",41),o.Wb(1,"span",43),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.kc(3,1,(null==n?null:n.msatoshi)/1e3)," ")}}function Nc(e,t){1&e&&(o.Wb(0,"th",44),o.Hc(1," Amount mSat "),o.Vb())}function zc(e,t){if(1&e&&(o.Wb(0,"td",45),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null==n?null:n.amount_msat," ")}}function qc(e,t){1&e&&(o.Wb(0,"th",46),o.Wb(1,"span",43),o.Hc(2,"Actions"),o.Vb(),o.Vb())}function jc(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",45),o.Wb(1,"button",47),o.ec("click",(function(e){o.yc(n);var a=t.$implicit;return o.ic().onHopClick(a,e)})),o.Hc(2,"View Info"),o.Vb(),o.Vb()}}function Xc(e,t){1&e&&o.Rb(0,"tr",48)}function Gc(e,t){1&e&&o.Rb(0,"tr",49)}var $c=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Qc=function(){function e(e,t,n){this.store=e,this.clEffects=t,this.commonService=n,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=p.D,this.faExclamationTriangle=p.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["alias","msatoshi","actions"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["alias","direction","msatoshi","actions"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["alias","direction","delay","msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","channel","direction","delay","msatoshi","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.clEffects.setQueryRoutesCL.pipe(Object(u.a)(this.unSubs[1])).subscribe((function(t){e.qrHops=new ie.o([]),e.qrHops.data=[],t.routes?(e.flgLoading[0]=!1,e.qrHops=new ie.o(Object(te.g)(t.routes)),e.qrHops.data=t.routes):e.flgLoading[0]="error",e.qrHops.sort=e.sort,e.qrHops.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]}}))},e.prototype.onQueryRoutes=function(){if(!this.destinationPubkey||!this.amount)return!0;this.flgLoading[0]=!0,this.store.dispatch(new y.P({destPubkey:this.destinationPubkey,amount:1e3*this.amount}))},e.prototype.resetData=function(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1,this.qrHops.data=[],this.form.resetForm()},e.prototype.onHopClick=function(e,t){this.store.dispatch(new re.C({data:{type:g.b.INFORMATION,alertTitle:"Route Information",message:[[{key:"id",value:e.id,title:"ID",width:100,type:g.h.STRING}],[{key:"channel",value:e.channel,title:"Channel",width:50,type:g.h.STRING},{key:"alias",value:e.alias,title:"Peer Alias",width:50,type:g.h.STRING}],[{key:"msatoshi",value:e.msatoshi,title:"mSatoshi",width:50,type:g.h.NUMBER},{key:"amount_msat",value:e.amount_msat,title:"Amount mSat",width:50,type:g.h.STRING}],[{key:"direction",value:e.direction,title:"Direction",width:50,type:g.h.STRING},{key:"delay",value:e.delay,title:"Delay",width:50,type:g.h.NUMBER}]]}}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(v.h),o.Qb(Je.a),o.Qb(h.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-query-routes"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Mc(Wc,!0)),2&e&&(o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.form=n.first))},decls:55,vars:14,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","step","1000","min","0","required","",3,"ngModel","ngModelChange"],["destAmount","ngModel"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-sub-title-container","mt-2","mb-1"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["perfectScrollbar","",1,"table-container","mb-6"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","channel"],["matColumnDef","direction"],["matColumnDef","delay"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi"],["matColumnDef","amount_msat"],["mat-header-cell","","class","pl-4","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",0),o.Wb(1,"form",1,2),o.ec("ngSubmit",(function(){return o.yc(n),o.wc(2).form.valid&&t.onQueryRoutes()})),o.Wb(3,"div",3),o.Rb(4,"fa-icon",4),o.Wb(5,"span"),o.Hc(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),o.Vb(),o.Vb(),o.Wb(7,"mat-form-field",5),o.Wb(8,"input",6,7),o.ec("ngModelChange",(function(e){return t.destinationPubkey=e})),o.Vb(),o.Fc(10,Sc,2,0,"mat-error",8),o.Vb(),o.Wb(11,"mat-form-field",9),o.Wb(12,"input",10,11),o.ec("ngModelChange",(function(e){return t.amount=e})),o.Vb(),o.Fc(14,Lc,2,0,"mat-error",8),o.Vb(),o.Wb(15,"div",12),o.Wb(16,"button",13),o.ec("click",(function(){return t.resetData()})),o.Hc(17,"Clear"),o.Vb(),o.Wb(18,"button",14),o.Hc(19,"Query Route"),o.Vb(),o.Vb(),o.Vb(),o.Wb(20,"div",15),o.Wb(21,"div",16),o.Rb(22,"fa-icon",17),o.Wb(23,"span",18),o.Hc(24,"Transaction Route"),o.Vb(),o.Vb(),o.Vb(),o.Wb(25,"div",19),o.Fc(26,Rc,1,0,"mat-progress-bar",20),o.Wb(27,"table",21,22),o.Ub(29,23),o.Fc(30,Hc,2,0,"th",24),o.Fc(31,kc,2,1,"td",25),o.Tb(),o.Ub(32,26),o.Fc(33,Ac,2,0,"th",24),o.Fc(34,Ic,2,1,"td",25),o.Tb(),o.Ub(35,27),o.Fc(36,_c,2,0,"th",24),o.Fc(37,Tc,2,1,"td",25),o.Tb(),o.Ub(38,28),o.Fc(39,Oc,2,0,"th",24),o.Fc(40,Pc,2,1,"td",25),o.Tb(),o.Ub(41,29),o.Fc(42,Mc,2,0,"th",30),o.Fc(43,Ec,4,3,"td",25),o.Tb(),o.Ub(44,31),o.Fc(45,Bc,2,0,"th",30),o.Fc(46,Uc,4,3,"td",25),o.Tb(),o.Ub(47,32),o.Fc(48,Nc,2,0,"th",33),o.Fc(49,zc,2,1,"td",34),o.Tb(),o.Ub(50,35),o.Fc(51,qc,3,0,"th",36),o.Fc(52,jc,3,0,"td",34),o.Tb(),o.Fc(53,Xc,1,0,"tr",37),o.Fc(54,Gc,1,0,"tr",38),o.Vb(),o.Vb(),o.Vb()}2&e&&(o.Db(4),o.pc("icon",t.faExclamationTriangle),o.Db(4),o.pc("ngModel",t.destinationPubkey),o.Db(2),o.pc("ngIf",!t.destinationPubkey),o.Db(2),o.pc("ngModel",t.amount),o.Db(2),o.pc("ngIf",!t.amount),o.Db(8),o.pc("icon",t.faRoute),o.Db(4),o.pc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.pc("dataSource",t.qrHops)("ngClass",o.tc(12,$c,"error"===t.flgLoading[0])),o.Db(26),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns))},directives:[V.c,V.a,be.t,be.m,be.n,V.b,w.a,T.c,ue.b,be.b,be.r,be.l,be.o,a.n,be.p,fe.a,W.a,M.b,ie.n,ae.a,a.l,L.a,ie.c,ie.i,ie.b,ie.k,ie.m,T.b,c.a,ie.h,ae.b,ie.a,ie.j,ie.l],pipes:[a.e],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e}(),Kc=function(){function e(e,t){this.logger=e,this.store=t,this.faExchangeAlt=p.m,this.faChartPie=p.f,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.unSubs=[new b.a,new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("cl").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.currencyUnits=t.nodeSettings.currencyUnits,e.balances=t.nodeSettings.userPersona===g.u.OPERATOR?[{title:"Local Capacity",dataValue:t.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:t.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:t.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:t.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}],e.logger.info(t)}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(v.h))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-transactions"]],decls:22,vars:5,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],["fxLayout","column",1,"padding-gap-x"],["label","Payments"],[3,"showDetails"],["label","Invoices"],["label","Query Routes"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Rb(1,"fa-icon",1),o.Wb(2,"span",2),o.Hc(3,"Lightning Balance"),o.Vb(),o.Vb(),o.Wb(4,"div",3),o.Wb(5,"mat-card"),o.Wb(6,"mat-card-content",4),o.Rb(7,"rtl-currency-unit-converter",5),o.Vb(),o.Vb(),o.Vb(),o.Wb(8,"div",6),o.Rb(9,"fa-icon",1),o.Wb(10,"span",2),o.Hc(11,"Lightning Transactions"),o.Vb(),o.Vb(),o.Wb(12,"div",7),o.Wb(13,"mat-card"),o.Wb(14,"mat-card-content",4),o.Wb(15,"mat-tab-group"),o.Wb(16,"mat-tab",8),o.Rb(17,"rtl-cl-lightning-payments",9),o.Vb(),o.Wb(18,"mat-tab",10),o.Rb(19,"rtl-cl-lightning-invoices",9),o.Vb(),o.Wb(20,"mat-tab",11),o.Rb(21,"rtl-cl-query-routes"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(1),o.pc("icon",t.faChartPie),o.Db(6),o.pc("values",t.balances),o.Db(2),o.pc("icon",t.faExchangeAlt),o.Db(8),o.pc("showDetails",!0),o.Db(2),o.pc("showDetails",!0))},directives:[V.c,V.b,w.a,F.a,F.b,fa.a,ee.c,ee.a,ln,Qe,Qc],styles:[""]}),e}();function Jc(e,t){1&e&&(o.Wb(0,"th",31),o.Hc(1,"Status"),o.Vb())}function Yc(e,t){if(1&e&&(o.Wb(0,"td",32),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(null==n?null:n.status)}}function Zc(e,t){1&e&&(o.Wb(0,"th",31),o.Hc(1,"Received Time"),o.Vb())}function es(e,t){if(1&e&&(o.Wb(0,"td",32),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(null==n?null:n.received_time_str)}}function ts(e,t){1&e&&(o.Wb(0,"th",31),o.Hc(1,"Resolved Time"),o.Vb())}function ns(e,t){if(1&e&&(o.Wb(0,"td",32),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(null==n?null:n.resolved_time_str)}}function as(e,t){1&e&&(o.Wb(0,"th",31),o.Hc(1,"In Channel"),o.Vb())}function is(e,t){if(1&e&&(o.Wb(0,"td",32),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic((null==n?null:n.in_channel_alias)||(null==n?null:n.in_channel))}}function os(e,t){1&e&&(o.Wb(0,"th",31),o.Hc(1,"Out Channel"),o.Vb())}function cs(e,t){if(1&e&&(o.Wb(0,"td",32),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic((null==n?null:n.out_channel_alias)||(null==n?null:n.out_channel))}}function ss(e,t){1&e&&(o.Wb(0,"th",33),o.Hc(1,"Amount In (Sats)"),o.Vb())}function rs(e,t){if(1&e&&(o.Wb(0,"td",32),o.Wb(1,"span",34),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.lc(3,1,(null==n?null:n.in_msatoshi)/1e3,(null==n?null:n.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function ls(e,t){1&e&&(o.Wb(0,"th",33),o.Hc(1,"Amount Out (Sats)"),o.Vb())}function bs(e,t){if(1&e&&(o.Wb(0,"td",32),o.Wb(1,"span",34),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.lc(3,1,(null==n?null:n.out_msatoshi)/1e3,(null==n?null:n.out_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function us(e,t){1&e&&(o.Wb(0,"th",33),o.Hc(1,"Fee mSat"),o.Vb())}function ds(e,t){if(1&e&&(o.Wb(0,"td",32),o.Wb(1,"span",34),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.kc(3,1,null==n?null:n.fee))}}function fs(e,t){1&e&&(o.Wb(0,"th",35),o.Hc(1,"Payment Hash"),o.Vb())}function ps(e,t){if(1&e&&(o.Wb(0,"td",36),o.Wb(1,"div"),o.Hc(2),o.jc(3,"slice"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc("",o.mc(3,1,null==n?null:n.payment_hash,0,10),"...")}}function ms(e,t){if(1&e){var n=o.Xb();o.Wb(0,"th",37),o.Wb(1,"div",38),o.Wb(2,"mat-select",39),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",40),o.ec("click",(function(){return o.yc(n),o.ic().onDownloadCSV()})),o.Hc(5,"Download CSV"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}}function hs(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",41),o.Wb(1,"button",42),o.ec("click",(function(e){o.yc(n);var a=t.$implicit;return o.ic().onForwardingEventClick(a,e)})),o.Hc(2,"View Info"),o.Vb(),o.Vb()}}function gs(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No forwarding event available."),o.Vb())}function ys(e,t){if(1&e&&(o.Wb(0,"td",43),o.Fc(1,gs,2,0,"p",44),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngIf",!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)}}var vs=function(e){return{"display-none":e}};function xs(e,t){if(1&e&&o.Rb(0,"tr",45),2&e){var n=o.ic();o.pc("ngClass",o.tc(1,vs,(null==n.forwardingHistoryEvents?null:n.forwardingHistoryEvents.data)&&(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)>0))}}function Vs(e,t){1&e&&o.Rb(0,"tr",46)}function ws(e,t){1&e&&o.Rb(0,"tr",47)}var Cs=function(){return["no_event"]},Fs=function(){function e(e,t,n){this.logger=e,this.commonService=t,this.store=n,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["in_msatoshi","out_msatoshi","actions"]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_msatoshi","out_msatoshi","fee","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","resolved_time","in_channel","out_channel","in_msatoshi","out_msatoshi","fee","actions"])}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(){this.loadForwardingEventsTable(this.successfulEvents)},e.prototype.onForwardingEventClick=function(e,t){this.store.dispatch(new re.C({data:{type:g.b.INFORMATION,alertTitle:"Event Information",message:[[{key:"payment_hash",value:e.payment_hash,title:"Payment Hash",width:100,type:g.h.STRING}],[{key:"received_time_str",value:e.received_time_str,title:"Received Time",width:50,type:g.h.DATE_TIME},{key:"resolved_time_str",value:e.resolved_time_str,title:"Resolved Time",width:50,type:g.h.DATE_TIME}],[{key:"in_channel",value:e.in_channel_alias?e.in_channel_alias:e.in_channel,title:"Inbound Channel",width:50,type:g.h.STRING},{key:"out_channel",value:e.out_channel_alias?e.out_channel_alias:e.out_channel,title:"Outbound Channel",width:50,type:g.h.STRING}],[{key:"status",value:"settled"===e.status?"Settled":"Failed",title:"Status",width:50,type:g.h.STRING},{key:"fee",value:e.fee,title:"Fee (mSats)",width:50,type:g.h.NUMBER}],[{key:"in_msatoshi",value:e.in_msatoshi,title:"In (mSats)",width:50,type:g.h.NUMBER},{key:"out_msatoshi",value:e.out_msatoshi,title:"Out (mSats)",width:50,type:g.h.NUMBER}]]}}))},e.prototype.loadForwardingEventsTable=function(e){this.forwardingHistoryEvents=new ie.o(Object(te.g)(e)),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.forwardingHistoryEvents.paginator=this.paginator,this.forwardingHistoryEvents.filterPredicate=function(e,t){return(e.received_time_str+e.resolved_time_str+e.in_channel+e.out_channel+e.in_msatoshi/1e3+e.out_msatoshi/1e3+e.fee).includes(t.toLowerCase())},this.logger.info(this.forwardingHistoryEvents)},e.prototype.onDownloadCSV=function(){this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")},e.prototype.applyFilter=function(e){this.forwardingHistoryEvents.filter=e},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(h.a),o.Qb(v.h))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-forwarding-history"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Dc(ne.a,!0)),2&e&&(o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.paginator=n.first))},inputs:{successfulEvents:"successfulEvents"},features:[o.Cb([{provide:ne.b,useValue:Object(g.w)("Events")}]),o.Bb],decls:44,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-large"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","received_time"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","out_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","payment_hash"],["mat-header-cell","","class","pl-4","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Rb(2,"div",2),o.Wb(3,"mat-form-field",3),o.Wb(4,"input",4),o.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),o.Vb(),o.Vb(),o.Vb(),o.Wb(5,"div",5),o.Wb(6,"table",6,7),o.Ub(8,8),o.Fc(9,Jc,2,0,"th",9),o.Fc(10,Yc,2,1,"td",10),o.Tb(),o.Ub(11,11),o.Fc(12,Zc,2,0,"th",9),o.Fc(13,es,2,1,"td",10),o.Tb(),o.Ub(14,12),o.Fc(15,ts,2,0,"th",9),o.Fc(16,ns,2,1,"td",10),o.Tb(),o.Ub(17,13),o.Fc(18,as,2,0,"th",9),o.Fc(19,is,2,1,"td",10),o.Tb(),o.Ub(20,14),o.Fc(21,os,2,0,"th",9),o.Fc(22,cs,2,1,"td",10),o.Tb(),o.Ub(23,15),o.Fc(24,ss,2,0,"th",16),o.Fc(25,rs,4,4,"td",10),o.Tb(),o.Ub(26,17),o.Fc(27,ls,2,0,"th",16),o.Fc(28,bs,4,4,"td",10),o.Tb(),o.Ub(29,18),o.Fc(30,us,2,0,"th",16),o.Fc(31,ds,4,3,"td",10),o.Tb(),o.Ub(32,19),o.Fc(33,fs,2,0,"th",20),o.Fc(34,ps,4,5,"td",21),o.Tb(),o.Ub(35,22),o.Fc(36,ms,6,0,"th",23),o.Fc(37,hs,3,0,"td",24),o.Tb(),o.Ub(38,25),o.Fc(39,ys,2,1,"td",26),o.Tb(),o.Fc(40,xs,1,3,"tr",27),o.Fc(41,Vs,1,0,"tr",28),o.Fc(42,ws,1,0,"tr",29),o.Vb(),o.Vb(),o.Rb(43,"mat-paginator",30),o.Vb()),2&e&&(o.Db(6),o.pc("dataSource",t.forwardingHistoryEvents),o.Db(34),o.pc("matFooterRowDef",o.sc(8,Cs)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns),o.Db(1),o.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[V.c,V.b,V.a,T.c,ue.b,M.b,ie.n,ae.a,ie.c,ie.i,ie.b,ie.e,ie.g,ie.k,ie.m,ne.a,ie.h,ae.b,ie.a,pe.a,pe.c,he.n,W.a,ie.d,a.n,ie.f,a.l,L.a,ie.j,ie.l],pipes:[a.e,a.v],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}();function Ds(e,t){1&e&&(o.Wb(0,"th",31),o.Hc(1,"Status"),o.Vb())}function Ws(e,t){if(1&e&&(o.Wb(0,"td",32),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(null==n?null:n.status)}}function Ss(e,t){1&e&&(o.Wb(0,"th",31),o.Hc(1,"Received Time"),o.Vb())}function Ls(e,t){if(1&e&&(o.Wb(0,"td",32),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(null==n?null:n.received_time_str)}}function Rs(e,t){1&e&&(o.Wb(0,"th",31),o.Hc(1,"Resolved Time"),o.Vb())}function Hs(e,t){if(1&e&&(o.Wb(0,"td",32),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(null==n?null:n.resolved_time_str)}}function ks(e,t){1&e&&(o.Wb(0,"th",31),o.Hc(1,"In Channel"),o.Vb())}function As(e,t){if(1&e&&(o.Wb(0,"td",32),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic((null==n?null:n.in_channel_alias)||(null==n?null:n.in_channel))}}function Is(e,t){1&e&&(o.Wb(0,"th",31),o.Hc(1,"Out Channel"),o.Vb())}function _s(e,t){if(1&e&&(o.Wb(0,"td",32),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic((null==n?null:n.out_channel_alias)||(null==n?null:n.out_channel))}}function Ts(e,t){1&e&&(o.Wb(0,"th",33),o.Hc(1,"Amount In (Sats)"),o.Vb())}function Os(e,t){if(1&e&&(o.Wb(0,"td",32),o.Wb(1,"span",34),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.lc(3,1,(null==n?null:n.in_msatoshi)/1e3,(null==n?null:n.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function Ps(e,t){1&e&&(o.Wb(0,"th",33),o.Hc(1,"Amount Out (Sats)"),o.Vb())}function Ms(e,t){if(1&e&&(o.Wb(0,"td",32),o.Wb(1,"span",34),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.lc(3,1,(null==n?null:n.out_msatoshi)/1e3,(null==n?null:n.out_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function Es(e,t){1&e&&(o.Wb(0,"th",33),o.Hc(1,"Fee mSat"),o.Vb())}function Bs(e,t){if(1&e&&(o.Wb(0,"td",32),o.Wb(1,"span",34),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.kc(3,1,null==n?null:n.fee))}}function Us(e,t){1&e&&(o.Wb(0,"th",35),o.Hc(1,"Payment Hash"),o.Vb())}function Ns(e,t){if(1&e&&(o.Wb(0,"td",36),o.Wb(1,"div"),o.Hc(2),o.jc(3,"slice"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc("",o.mc(3,1,null==n?null:n.payment_hash,0,10),"...")}}function zs(e,t){if(1&e){var n=o.Xb();o.Wb(0,"th",37),o.Wb(1,"div",38),o.Wb(2,"mat-select",39),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",40),o.ec("click",(function(){return o.yc(n),o.ic().onDownloadCSV()})),o.Hc(5,"Download CSV"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}}function qs(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",41),o.Wb(1,"button",42),o.ec("click",(function(e){o.yc(n);var a=t.$implicit;return o.ic().onForwardingEventClick(a,e)})),o.Hc(2,"View Info"),o.Vb(),o.Vb()}}function js(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No forwarding event available."),o.Vb())}function Xs(e,t){if(1&e&&(o.Wb(0,"td",43),o.Fc(1,js,2,0,"p",44),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngIf",!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)}}var Gs=function(e){return{"display-none":e}};function $s(e,t){if(1&e&&o.Rb(0,"tr",45),2&e){var n=o.ic();o.pc("ngClass",o.tc(1,Gs,(null==n.forwardingHistoryEvents?null:n.forwardingHistoryEvents.data)&&(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)>0))}}function Qs(e,t){1&e&&o.Rb(0,"tr",46)}function Ks(e,t){1&e&&o.Rb(0,"tr",47)}var Js=function(){return["no_event"]},Ys=function(){function e(e,t,n){this.logger=e,this.commonService=t,this.store=n,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["status","in_msatoshi","out_msatoshi","actions"]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["status","in_msatoshi","out_msatoshi","fee","actions"]):(this.flgSticky=!0,this.displayedColumns=["status","received_time","resolved_time","in_channel","out_channel","in_msatoshi","out_msatoshi","fee","actions"])}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(){this.loadForwardingEventsTable(this.failedEvents)},e.prototype.onForwardingEventClick=function(e,t){this.store.dispatch(new re.C({data:{type:g.b.INFORMATION,alertTitle:"Event Information",message:[[{key:"payment_hash",value:e.payment_hash,title:"Payment Hash",width:100,type:g.h.STRING}],[{key:"received_time_str",value:e.received_time_str,title:"Received Time",width:50,type:g.h.DATE_TIME},{key:"resolved_time_str",value:e.resolved_time_str,title:"Resolved Time",width:50,type:g.h.DATE_TIME}],[{key:"in_channel",value:e.in_channel_alias?e.in_channel_alias:e.in_channel,title:"Inbound Channel",width:50,type:g.h.STRING},{key:"out_channel",value:e.out_channel_alias?e.out_channel_alias:e.out_channel,title:"Outbound Channel",width:50,type:g.h.STRING}],[{key:"status",value:"settled"===e.status?"Settled":"Unsettled",title:"Status",width:50,type:g.h.STRING},{key:"fee",value:e.fee,title:"Fee (mSats)",width:50,type:g.h.NUMBER}],[{key:"in_msatoshi",value:e.in_msatoshi,title:"In (mSats)",width:50,type:g.h.NUMBER},{key:"out_msatoshi",value:e.out_msatoshi,title:"Out (mSats)",width:50,type:g.h.NUMBER}]]}}))},e.prototype.loadForwardingEventsTable=function(e){this.forwardingHistoryEvents=new ie.o(Object(te.g)(e)),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.forwardingHistoryEvents.paginator=this.paginator,this.forwardingHistoryEvents.filterPredicate=function(e,t){return(e.status+e.received_time_str+e.resolved_time_str+e.in_channel+e.out_channel+e.in_msatoshi/1e3+e.out_msatoshi/1e3+e.fee).includes(t.toLowerCase())},this.logger.info(this.forwardingHistoryEvents)},e.prototype.onDownloadCSV=function(){this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Failed-transactions")},e.prototype.applyFilter=function(e){this.forwardingHistoryEvents.filter=e},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(h.a),o.Qb(v.h))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-failed-history"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Dc(ne.a,!0)),2&e&&(o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.paginator=n.first))},inputs:{failedEvents:"failedEvents"},features:[o.Cb([{provide:ne.b,useValue:Object(g.w)("Events")}]),o.Bb],decls:44,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-large"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","received_time"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","out_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","payment_hash"],["mat-header-cell","","class","pl-4","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Rb(2,"div",2),o.Wb(3,"mat-form-field",3),o.Wb(4,"input",4),o.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),o.Vb(),o.Vb(),o.Vb(),o.Wb(5,"div",5),o.Wb(6,"table",6,7),o.Ub(8,8),o.Fc(9,Ds,2,0,"th",9),o.Fc(10,Ws,2,1,"td",10),o.Tb(),o.Ub(11,11),o.Fc(12,Ss,2,0,"th",9),o.Fc(13,Ls,2,1,"td",10),o.Tb(),o.Ub(14,12),o.Fc(15,Rs,2,0,"th",9),o.Fc(16,Hs,2,1,"td",10),o.Tb(),o.Ub(17,13),o.Fc(18,ks,2,0,"th",9),o.Fc(19,As,2,1,"td",10),o.Tb(),o.Ub(20,14),o.Fc(21,Is,2,0,"th",9),o.Fc(22,_s,2,1,"td",10),o.Tb(),o.Ub(23,15),o.Fc(24,Ts,2,0,"th",16),o.Fc(25,Os,4,4,"td",10),o.Tb(),o.Ub(26,17),o.Fc(27,Ps,2,0,"th",16),o.Fc(28,Ms,4,4,"td",10),o.Tb(),o.Ub(29,18),o.Fc(30,Es,2,0,"th",16),o.Fc(31,Bs,4,3,"td",10),o.Tb(),o.Ub(32,19),o.Fc(33,Us,2,0,"th",20),o.Fc(34,Ns,4,5,"td",21),o.Tb(),o.Ub(35,22),o.Fc(36,zs,6,0,"th",23),o.Fc(37,qs,3,0,"td",24),o.Tb(),o.Ub(38,25),o.Fc(39,Xs,2,1,"td",26),o.Tb(),o.Fc(40,$s,1,3,"tr",27),o.Fc(41,Qs,1,0,"tr",28),o.Fc(42,Ks,1,0,"tr",29),o.Vb(),o.Vb(),o.Rb(43,"mat-paginator",30),o.Vb()),2&e&&(o.Db(6),o.pc("dataSource",t.forwardingHistoryEvents),o.Db(34),o.pc("matFooterRowDef",o.sc(8,Js)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns),o.Db(1),o.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[V.c,V.b,V.a,T.c,ue.b,M.b,ie.n,ae.a,ie.c,ie.i,ie.b,ie.e,ie.g,ie.k,ie.m,ne.a,ie.h,ae.b,ie.a,pe.a,pe.c,he.n,W.a,ie.d,a.n,ie.f,a.l,L.a,ie.j,ie.l],pipes:[a.e,a.v],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}();function Zs(e,t){if(1&e&&(o.Wb(0,"div",15),o.Hc(1),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.Ic(n.errorMessage)}}function er(e,t){if(1&e&&o.Rb(0,"rtl-cl-forwarding-history",16),2&e){var n=o.ic(2);o.pc("successfulEvents",n.successfulData)}}function tr(e,t){if(1&e&&(o.Wb(0,"div",15),o.Hc(1),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.Ic(n.errorMessage)}}function nr(e,t){if(1&e&&o.Rb(0,"rtl-cl-failed-history",17),2&e){var n=o.ic(2);o.pc("failedEvents",n.failedData)}}var ar=function(e){return{"error-border w-100 routing-tabs-block":e,"w-100 routing-tabs-block":!0}};function ir(e,t){if(1&e&&(o.Wb(0,"div",8),o.Wb(1,"mat-tab-group",9),o.Wb(2,"mat-tab",10),o.Fc(3,Zs,2,1,"div",11),o.Fc(4,er,1,1,"rtl-cl-forwarding-history",12),o.Vb(),o.Wb(5,"mat-tab",13),o.Fc(6,tr,2,1,"div",11),o.Fc(7,nr,1,1,"rtl-cl-failed-history",14),o.Vb(),o.Vb(),o.Vb()),2&e){var n=o.ic();o.pc("ngClass",o.tc(5,ar,"error"===n.flgLoading[0])),o.Db(3),o.pc("ngIf",""!==n.errorMessage),o.Db(1),o.pc("ngIf",""===n.errorMessage),o.Db(2),o.pc("ngIf",""!==n.errorMessage),o.Db(1),o.pc("ngIf",""===n.errorMessage)}}var or=function(){function e(e,t,n){this.logger=e,this.store=t,this.actions$=n,this.faMapSigns=p.v,this.lastOffsetIndex=0,this.successfulData=[],this.failedData=[],this.filteredData=!1,this.today=new Date(Date.now()),this.lastMonthDay=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate()-30,this.today.getHours(),this.today.getMinutes(),this.today.getSeconds()),this.yesterday=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate()-1,this.today.getHours(),this.today.getMinutes(),this.today.getSeconds()),this.endDate=this.today,this.startDate=this.lastMonthDay,this.flgLoading=[!0],this.errorMessage="",this.unSubs=[new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.onEventsFetch(),this.store.select("cl").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.filteredData=!1,e.errorMessage="",t.effectErrors.forEach((function(t){"GetForwardingHistory"===t.action&&(e.flgLoading[0]="error",e.errorMessage="object"==typeof t.message?JSON.stringify(t.message):t.message)})),t.forwardingHistory&&t.forwardingHistory.forwarding_events?(e.lastOffsetIndex=t.forwardingHistory.last_offset_index,e.successfulData=[],e.failedData=[],t.forwardingHistory.forwarding_events.forEach((function(t){"settled"===t.status?e.successfulData.push(t):e.failedData.push(t)})),e.filteredData=!0):(e.lastOffsetIndex=0,e.successfulData=[],e.failedData=[]),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.forwardingHistory),e.logger.info(t)}))},e.prototype.onEventsFetch=function(){this.endDate||(this.endDate=new Date),this.startDate||(this.startDate=new Date(this.endDate.getFullYear(),this.endDate.getMonth(),this.endDate.getDate()-30)),this.store.dispatch(new y.N)},e.prototype.resetData=function(){this.endDate=new Date,this.startDate=new Date(this.endDate.getFullYear(),this.endDate.getMonth(),this.endDate.getDate()-1),this.successfulData=[],this.failedData=[],this.lastOffsetIndex=0},e.prototype.ngOnDestroy=function(){this.resetData(),this.store.dispatch(new y.Db({})),this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(v.h),o.Qb(x.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-routing"]],decls:9,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","row","fxFlex","100",3,"ngClass",4,"ngIf"],["fxLayout","row","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","100"],["label","Forwarding History"],["class","p-2",4,"ngIf"],[3,"successfulEvents",4,"ngIf"],["label","Failed Transactions"],[3,"failedEvents",4,"ngIf"],[1,"p-2"],[3,"successfulEvents"],[3,"failedEvents"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Rb(2,"fa-icon",2),o.Wb(3,"span",3),o.Hc(4,"Routing"),o.Vb(),o.Vb(),o.Wb(5,"div",4),o.Wb(6,"mat-card",5),o.Wb(7,"mat-card-content",6),o.Fc(8,ir,8,7,"div",7),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(2),o.pc("icon",t.faMapSigns),o.Db(6),o.pc("ngIf",t.filteredData))},directives:[V.c,V.b,w.a,V.a,F.a,F.b,a.n,a.l,L.a,ee.c,ee.a,Fs,Ys],styles:[""]}),e}();function cr(e,t){1&e&&(o.Wb(0,"th",26),o.Hc(1,"Type"),o.Vb())}function sr(e,t){if(1&e&&(o.Wb(0,"td",27),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null==n?null:n.type," ")}}function rr(e,t){1&e&&(o.Wb(0,"th",26),o.Hc(1,"Address"),o.Vb())}function lr(e,t){if(1&e&&(o.Wb(0,"td",27),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null==n?null:n.address," ")}}function br(e,t){1&e&&(o.Wb(0,"th",26),o.Hc(1,"Port"),o.Vb())}function ur(e,t){if(1&e&&(o.Wb(0,"td",27),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null==n?null:n.port," ")}}function dr(e,t){1&e&&(o.Wb(0,"th",28),o.Wb(1,"span",29),o.Hc(2,"Actions"),o.Vb(),o.Vb())}function fr(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",30),o.Wb(1,"span",29),o.Wb(2,"button",31),o.ec("copied",(function(e){return o.yc(n),o.ic(2).onCopyNodeURI(e)})),o.Hc(3,"Copy Node URI"),o.Vb(),o.Vb(),o.Vb()}if(2&e){var a=t.$implicit,i=o.ic(2);o.Db(2),o.pc("payload",i.lookupResult.nodeid+"@"+a.address+":"+a.port)}}function pr(e,t){1&e&&o.Rb(0,"tr",32)}function mr(e,t){1&e&&o.Rb(0,"tr",33)}var hr=function(e){return{"background-color":e}};function gr(e,t){if(1&e&&(o.Wb(0,"div",1),o.Rb(1,"mat-divider",2),o.Wb(2,"div",3),o.Wb(3,"h4",4),o.Hc(4,"Pub Key"),o.Vb(),o.Wb(5,"span",5),o.Hc(6),o.Vb(),o.Vb(),o.Rb(7,"mat-divider",6),o.Wb(8,"div",7),o.Wb(9,"div",3),o.Wb(10,"h4",4),o.Hc(11,"Alias"),o.Vb(),o.Wb(12,"span",8),o.Hc(13),o.Wb(14,"span",9),o.Hc(15),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Rb(16,"mat-divider",6),o.Wb(17,"div",7),o.Wb(18,"div",10),o.Wb(19,"h4",4),o.Hc(20,"Last Update"),o.Vb(),o.Wb(21,"span",8),o.Hc(22),o.Vb(),o.Vb(),o.Wb(23,"div",10),o.Wb(24,"h4",4),o.Hc(25,"Features"),o.Vb(),o.Wb(26,"span",8),o.Hc(27),o.Vb(),o.Vb(),o.Vb(),o.Rb(28,"mat-divider",6),o.Wb(29,"div",11),o.Wb(30,"h4",12),o.Hc(31,"Addresses"),o.Vb(),o.Wb(32,"div",13),o.Wb(33,"table",14,15),o.Ub(35,16),o.Fc(36,cr,2,0,"th",17),o.Fc(37,sr,2,1,"td",18),o.Tb(),o.Ub(38,19),o.Fc(39,rr,2,0,"th",17),o.Fc(40,lr,2,1,"td",18),o.Tb(),o.Ub(41,20),o.Fc(42,br,2,0,"th",17),o.Fc(43,ur,2,1,"td",18),o.Tb(),o.Ub(44,21),o.Fc(45,dr,3,0,"th",22),o.Fc(46,fr,4,1,"td",23),o.Tb(),o.Fc(47,pr,1,0,"tr",24),o.Fc(48,mr,1,0,"tr",25),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult.nodeid),o.Db(1),o.pc("inset",!0),o.Db(6),o.Ic(n.lookupResult.alias),o.Db(1),o.pc("ngStyle",o.tc(13,hr,"#"+n.lookupResult.color)),o.Db(1),o.Ic(n.lookupResult.color?"#"+n.lookupResult.color:""),o.Db(1),o.pc("inset",!0),o.Db(6),o.Ic(n.lookupResult.last_timestamp_str),o.Db(5),o.Ic(n.lookupResult.features),o.Db(1),o.pc("inset",!0),o.Db(5),o.pc("dataSource",n.addresses),o.Db(14),o.pc("matHeaderRowDef",n.displayedColumns),o.Db(1),o.pc("matRowDefColumns",n.displayedColumns)}}var yr=function(){function e(e,t){this.logger=e,this.snackBar=t,this.displayedColumns=["type","address","port","actions"]}return e.prototype.ngOnInit=function(){this.addresses=new ie.o(this.lookupResult.addresses?Object(te.g)(this.lookupResult.addresses):[]),this.addresses.data=this.lookupResult.addresses?this.lookupResult.addresses:[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]}},e.prototype.onCopyNodeURI=function(e){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+e)},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(On.b))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-node-lookup"]],viewQuery:function(e,t){var n;1&e&&o.Dc(ae.a,!0),2&e&&o.vc(n=o.fc())&&(t.sort=n.first)},inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start",1,"my-1"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text","w-100"],[1,"my-1",3,"inset"],["fxLayout","row"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxLayout","column","fxFlex","50","fxLayoutAlign","end start",1,"my-1"],["fxLayout","column",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","port"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&o.Fc(0,gr,49,15,"div",0),2&e&&o.pc("ngIf",t.lookupResult)},directives:[a.n,V.c,P.a,V.a,V.b,a.o,L.b,M.b,ie.n,ae.a,ie.c,ie.i,ie.b,ie.k,ie.m,ie.h,ae.b,ie.a,W.a,di.a,ie.j,ie.l],styles:[""]}),e}();function vr(e,t){1&e&&(o.Wb(0,"h3",11),o.Hc(1,"Node 1"),o.Vb())}function xr(e,t){1&e&&(o.Wb(0,"h3",11),o.Hc(1,"Node 1 (Your Node)"),o.Vb())}function Vr(e,t){1&e&&(o.Wb(0,"h3",11),o.Hc(1,"Node 2"),o.Vb())}function wr(e,t){1&e&&(o.Wb(0,"h3",11),o.Hc(1,"Node 2 (Your Node)"),o.Vb())}function Cr(e,t){if(1&e&&(o.Wb(0,"div",1),o.Rb(1,"mat-divider"),o.Wb(2,"div",2),o.Wb(3,"div",3),o.Wb(4,"div",4),o.Fc(5,vr,2,0,"h3",5),o.Fc(6,xr,2,0,"h3",5),o.Vb(),o.Rb(7,"mat-divider",6),o.Wb(8,"div",7),o.Wb(9,"h4",8),o.Hc(10,"Short Channel Id"),o.Vb(),o.Wb(11,"span",9),o.Hc(12),o.Vb(),o.Vb(),o.Rb(13,"mat-divider",6),o.Wb(14,"div",10),o.Wb(15,"h4",8),o.Hc(16,"Active"),o.Vb(),o.Wb(17,"span",9),o.Hc(18),o.Vb(),o.Vb(),o.Rb(19,"mat-divider",6),o.Wb(20,"div",10),o.Wb(21,"h4",8),o.Hc(22,"Last Update"),o.Vb(),o.Wb(23,"span",9),o.Hc(24),o.Vb(),o.Vb(),o.Rb(25,"mat-divider",6),o.Wb(26,"div",10),o.Wb(27,"h4",8),o.Hc(28,"Amount (mSats)"),o.Vb(),o.Wb(29,"span",9),o.Hc(30),o.Vb(),o.Vb(),o.Rb(31,"mat-divider",6),o.Wb(32,"div",10),o.Wb(33,"h4",8),o.Hc(34,"Base Fee (mSats)"),o.Vb(),o.Wb(35,"span",9),o.Hc(36),o.jc(37,"number"),o.Vb(),o.Vb(),o.Rb(38,"mat-divider",6),o.Wb(39,"div",10),o.Wb(40,"h4",8),o.Hc(41,"Channel Flags"),o.Vb(),o.Wb(42,"span",9),o.Hc(43),o.jc(44,"number"),o.Vb(),o.Vb(),o.Rb(45,"mat-divider",6),o.Wb(46,"div",10),o.Wb(47,"h4",8),o.Hc(48,"Delay"),o.Vb(),o.Wb(49,"span",9),o.Hc(50),o.jc(51,"number"),o.Vb(),o.Vb(),o.Rb(52,"mat-divider",6),o.Wb(53,"div",10),o.Wb(54,"h4",8),o.Hc(55,"Destination"),o.Vb(),o.Wb(56,"span",9),o.Hc(57),o.Vb(),o.Vb(),o.Rb(58,"mat-divider",6),o.Wb(59,"div",10),o.Wb(60,"h4",8),o.Hc(61,"Fee/Millionth"),o.Vb(),o.Wb(62,"span",9),o.Hc(63),o.jc(64,"number"),o.Vb(),o.Vb(),o.Rb(65,"mat-divider",6),o.Wb(66,"div",10),o.Wb(67,"h4",8),o.Hc(68,"Max Htlc (mSat)"),o.Vb(),o.Wb(69,"span",9),o.Hc(70),o.Vb(),o.Vb(),o.Rb(71,"mat-divider",6),o.Wb(72,"div",10),o.Wb(73,"h4",8),o.Hc(74,"Min Htlc (mSat)"),o.Vb(),o.Wb(75,"span",9),o.Hc(76),o.Vb(),o.Vb(),o.Rb(77,"mat-divider",6),o.Wb(78,"div",10),o.Wb(79,"h4",8),o.Hc(80,"Message Flags"),o.Vb(),o.Wb(81,"span",9),o.Hc(82),o.jc(83,"number"),o.Vb(),o.Vb(),o.Rb(84,"mat-divider",6),o.Wb(85,"div",10),o.Wb(86,"h4",8),o.Hc(87,"Public"),o.Vb(),o.Wb(88,"span",9),o.Hc(89),o.Vb(),o.Vb(),o.Rb(90,"mat-divider",6),o.Wb(91,"div",10),o.Wb(92,"h4",8),o.Hc(93,"Satoshis"),o.Vb(),o.Wb(94,"span",9),o.Hc(95),o.jc(96,"number"),o.Vb(),o.Vb(),o.Rb(97,"mat-divider",6),o.Wb(98,"div",10),o.Wb(99,"h4",8),o.Hc(100,"Source"),o.Vb(),o.Wb(101,"span",9),o.Hc(102),o.Vb(),o.Vb(),o.Vb(),o.Wb(103,"div",3),o.Wb(104,"div"),o.Fc(105,Vr,2,0,"h3",5),o.Fc(106,wr,2,0,"h3",5),o.Vb(),o.Rb(107,"mat-divider",6),o.Wb(108,"div",7),o.Wb(109,"h4",8),o.Hc(110,"Short Channel Id"),o.Vb(),o.Wb(111,"span",9),o.Hc(112),o.Vb(),o.Vb(),o.Rb(113,"mat-divider",6),o.Wb(114,"div",10),o.Wb(115,"h4",8),o.Hc(116,"Active"),o.Vb(),o.Wb(117,"span",9),o.Hc(118),o.Vb(),o.Vb(),o.Rb(119,"mat-divider",6),o.Wb(120,"div",10),o.Wb(121,"h4",8),o.Hc(122,"Last Update"),o.Vb(),o.Wb(123,"span",9),o.Hc(124),o.Vb(),o.Vb(),o.Rb(125,"mat-divider",6),o.Wb(126,"div",10),o.Wb(127,"h4",8),o.Hc(128,"Amount (mSats)"),o.Vb(),o.Wb(129,"span",9),o.Hc(130),o.Vb(),o.Vb(),o.Rb(131,"mat-divider",6),o.Wb(132,"div",10),o.Wb(133,"h4",8),o.Hc(134,"Base Fee (mSats)"),o.Vb(),o.Wb(135,"span",9),o.Hc(136),o.jc(137,"number"),o.Vb(),o.Vb(),o.Rb(138,"mat-divider",6),o.Wb(139,"div",10),o.Wb(140,"h4",8),o.Hc(141,"Channel Flags"),o.Vb(),o.Wb(142,"span",9),o.Hc(143),o.jc(144,"number"),o.Vb(),o.Vb(),o.Rb(145,"mat-divider",6),o.Wb(146,"div",10),o.Wb(147,"h4",8),o.Hc(148,"Delay"),o.Vb(),o.Wb(149,"span",9),o.Hc(150),o.jc(151,"number"),o.Vb(),o.Vb(),o.Rb(152,"mat-divider",6),o.Wb(153,"div",10),o.Wb(154,"h4",8),o.Hc(155,"Destination"),o.Vb(),o.Wb(156,"span",9),o.Hc(157),o.Vb(),o.Vb(),o.Rb(158,"mat-divider",6),o.Wb(159,"div",10),o.Wb(160,"h4",8),o.Hc(161,"Fee/Millionth"),o.Vb(),o.Wb(162,"span",9),o.Hc(163),o.jc(164,"number"),o.Vb(),o.Vb(),o.Rb(165,"mat-divider",6),o.Wb(166,"div",10),o.Wb(167,"h4",8),o.Hc(168,"Max Htlc (mSat)"),o.Vb(),o.Wb(169,"span",9),o.Hc(170),o.Vb(),o.Vb(),o.Rb(171,"mat-divider",6),o.Wb(172,"div",10),o.Wb(173,"h4",8),o.Hc(174,"Min Htlc (mSat)"),o.Vb(),o.Wb(175,"span",9),o.Hc(176),o.Vb(),o.Vb(),o.Rb(177,"mat-divider",6),o.Wb(178,"div",10),o.Wb(179,"h4",8),o.Hc(180,"Message Flags"),o.Vb(),o.Wb(181,"span",9),o.Hc(182),o.jc(183,"number"),o.Vb(),o.Vb(),o.Rb(184,"mat-divider",6),o.Wb(185,"div",10),o.Wb(186,"h4",8),o.Hc(187,"Public"),o.Vb(),o.Wb(188,"span",9),o.Hc(189),o.Vb(),o.Vb(),o.Rb(190,"mat-divider",6),o.Wb(191,"div",10),o.Wb(192,"h4",8),o.Hc(193,"Satoshis"),o.Vb(),o.Wb(194,"span",9),o.Hc(195),o.jc(196,"number"),o.Vb(),o.Vb(),o.Rb(197,"mat-divider",6),o.Wb(198,"div",10),o.Wb(199,"h4",8),o.Hc(200,"Source"),o.Vb(),o.Wb(201,"span",9),o.Hc(202),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e){var n=o.ic();o.Db(5),o.pc("ngIf",!n.node1_match),o.Db(1),o.pc("ngIf",n.node1_match),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[0].short_channel_id),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[0].active?"True":"False"),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[0].last_update_str),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[0].amount_msat),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(o.kc(37,64,n.lookupResult[0].base_fee_millisatoshi)),o.Db(2),o.pc("inset",!0),o.Db(5),o.Ic(o.kc(44,66,n.lookupResult[0].channel_flags)),o.Db(2),o.pc("inset",!0),o.Db(5),o.Ic(o.kc(51,68,n.lookupResult[0].delay)),o.Db(2),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[0].destination),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(o.kc(64,70,n.lookupResult[0].fee_per_millionth)),o.Db(2),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[0].htlc_maximum_msat),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[0].htlc_minimum_msat),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(o.kc(83,72,n.lookupResult[0].message_flags)),o.Db(2),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[0].public?"Yes":"No"),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(o.kc(96,74,n.lookupResult[0].satoshis)),o.Db(2),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[0].source),o.Db(3),o.pc("ngIf",!n.node2_match),o.Db(1),o.pc("ngIf",n.node2_match),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[1].short_channel_id),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[1].active?"True":"False"),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[1].last_update_str),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[1].amount_msat),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(o.kc(137,76,n.lookupResult[1].base_fee_millisatoshi)),o.Db(2),o.pc("inset",!0),o.Db(5),o.Ic(o.kc(144,78,n.lookupResult[1].channel_flags)),o.Db(2),o.pc("inset",!0),o.Db(5),o.Ic(o.kc(151,80,n.lookupResult[1].delay)),o.Db(2),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[1].destination),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(o.kc(164,82,n.lookupResult[1].fee_per_millionth)),o.Db(2),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[1].htlc_maximum_msat),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[1].htlc_minimum_msat),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(o.kc(183,84,n.lookupResult[1].message_flags)),o.Db(2),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[1].public?"Yes":"No"),o.Db(1),o.pc("inset",!0),o.Db(5),o.Ic(o.kc(196,86,n.lookupResult[1].satoshis)),o.Db(2),o.pc("inset",!0),o.Db(5),o.Ic(n.lookupResult[1].source)}}var Fr=function(){function e(e){this.store=e,this.node1_match=!1,this.node2_match=!1,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("cl").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.lookupResult.length>0&&e.lookupResult[0].source===t.information.id&&(e.node1_match=!0),e.lookupResult.length>1&&e.lookupResult[1].source===t.information.id&&(e.node2_match=!0)}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(v.h))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-channel-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],[3,"inset"],["fxLayout","column","fxFlex","20",1,"my-1"],[1,"font-bold-500"],[1,"foreground-secondary-text"],["fxLayout","column","fxFlex","10",1,"my-1"],[1,"page-title","font-bold-500"]],template:function(e,t){1&e&&o.Fc(0,Cr,203,88,"div",0),2&e&&o.pc("ngIf",t.lookupResult)},directives:[a.n,V.c,P.a,V.b,V.a],pipes:[a.e],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),e}(),Dr=["form"];function Wr(e,t){if(1&e&&(o.Wb(0,"mat-radio-button",21),o.Hc(1),o.Vb()),2&e){var n=t.$implicit,a=o.ic();o.pc("value",n.id)("checked",a.selectedFieldId===n.id),o.Db(1),o.Jc(" ",n.name," ")}}function Sr(e,t){if(1&e&&(o.Wb(0,"mat-error"),o.Hc(1),o.Vb()),2&e){var n=o.ic();o.Db(1),o.Jc("",null==n.lookupFields[n.selectedFieldId]?null:n.lookupFields[n.selectedFieldId].placeholder," is required.")}}function Lr(e,t){if(1&e&&(o.Wb(0,"div"),o.Rb(1,"rtl-cl-node-lookup",30),o.Vb()),2&e){var n=o.ic(3);o.Db(1),o.pc("lookupResult",n.nodeLookupValue)}}function Rr(e,t){if(1&e&&(o.Wb(0,"span",28),o.Fc(1,Lr,2,1,"div",29),o.Vb()),2&e){var n=o.ic(2),a=o.wc(24);o.Db(1),o.pc("ngIf",""!==n.nodeLookupValue.nodeid)("ngIfElse",a)}}function Hr(e,t){if(1&e&&(o.Wb(0,"div"),o.Rb(1,"rtl-cl-channel-lookup",30),o.Vb()),2&e){var n=o.ic(3);o.Db(1),o.pc("lookupResult",n.channelLookupValue)}}function kr(e,t){if(1&e&&(o.Wb(0,"span",28),o.Fc(1,Hr,2,1,"div",29),o.Vb()),2&e){var n=o.ic(2),a=o.wc(24);o.Db(1),o.pc("ngIf",n.channelLookupValue.length>0)("ngIfElse",a)}}function Ar(e,t){1&e&&(o.Wb(0,"span",28),o.Wb(1,"h3"),o.Hc(2,"Error! Unable to find details!"),o.Vb(),o.Vb())}function Ir(e,t){if(1&e&&(o.Wb(0,"div",22),o.Wb(1,"div",23),o.Wb(2,"span",24),o.Hc(3),o.Vb(),o.Vb(),o.Wb(4,"div",25),o.Fc(5,Rr,2,2,"span",26),o.Fc(6,kr,2,2,"span",26),o.Fc(7,Ar,3,0,"span",27),o.Vb(),o.Vb()),2&e){var n=o.ic();o.Db(3),o.Jc("",n.lookupFields[n.selectedFieldId].name," Details"),o.Db(1),o.pc("ngSwitch",n.selectedFieldId),o.Db(1),o.pc("ngSwitchCase",0),o.Db(1),o.pc("ngSwitchCase",1)}}function _r(e,t){1&e&&(o.Wb(0,"h3"),o.Hc(1,"Error! Unable to find details!"),o.Vb())}var Tr=function(e){return{"mt-2":e}},Or=function(){function e(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.actions$=a,this.lookupKey="",this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Short Channel ID"}],this.flgLoading=[!0],this.faSearch=p.E,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a],this.screenSize=this.commonService.getScreenSize()}return e.prototype.ngOnInit=function(){var e=this;this.actions$.pipe(Object(u.a)(this.unSubs[0]),Object(d.a)((function(e){return e.type===y.pb||e.type===y.o}))).subscribe((function(t){if(t.type===y.pb){switch(e.flgLoading[0]=!0,e.selectedFieldId){case 0:e.nodeLookupValue=t.payload[0]?JSON.parse(JSON.stringify(t.payload[0])):{nodeid:""};break;case 1:e.channelLookupValue=t.payload?JSON.parse(JSON.stringify(t.payload)):[]}e.flgSetLookupValue=!0,e.logger.info(e.nodeLookupValue),e.logger.info(e.channelLookupValue)}t.type===y.o&&"Lookup"===t.payload.action&&(e.flgLoading[0]="error")}))},e.prototype.onLookup=function(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.store.dispatch(new re.F("Searching "+this.lookupFields[this.selectedFieldId].name+"...")),this.selectedFieldId){case 0:this.store.dispatch(new y.T(this.lookupKey.trim()));break;case 1:this.store.dispatch(new y.f({shortChannelID:this.lookupKey.trim(),showError:!1}))}},e.prototype.onSelectChange=function(e){this.resetData(),this.selectedFieldId=e.value},e.prototype.resetData=function(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.form.resetForm()},e.prototype.clearLookupValue=function(){this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.flgSetLookupValue=!1},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(h.a),o.Qb(v.h),o.Qb(x.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-lookups"]],viewQuery:function(e,t){var n;1&e&&o.Mc(Dr,!0),2&e&&o.vc(n=o.fc())&&(t.form=n.first)},decls:25,vars:10,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","35","fxFlex.gt-md","25","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","65","fxFlex.gt-md","75","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],["errorBlock",""],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Rb(2,"fa-icon",2),o.Wb(3,"span",3),o.Hc(4,"Graph Lookups"),o.Vb(),o.Vb(),o.Wb(5,"div",4),o.Wb(6,"mat-card",5),o.Wb(7,"mat-card-content",6),o.Wb(8,"form",7,8),o.Wb(10,"div",9),o.Wb(11,"mat-radio-group",10),o.ec("ngModelChange",(function(e){return t.selectedFieldId=e}))("change",(function(e){return t.onSelectChange(e)})),o.Fc(12,Wr,2,3,"mat-radio-button",11),o.Vb(),o.Vb(),o.Wb(13,"mat-form-field",12),o.Wb(14,"input",13,14),o.ec("change",(function(){return t.clearLookupValue()}))("ngModelChange",(function(e){return t.lookupKey=e})),o.Vb(),o.Fc(16,Sr,2,1,"mat-error",15),o.Vb(),o.Wb(17,"div",16),o.Wb(18,"button",17),o.ec("click",(function(){return t.resetData()})),o.Hc(19,"Clear"),o.Vb(),o.Wb(20,"button",18),o.ec("click",(function(){return t.onLookup()})),o.Hc(21,"Lookup"),o.Vb(),o.Vb(),o.Vb(),o.Fc(22,Ir,8,4,"div",19),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Fc(23,_r,2,0,"ng-template",null,20,o.Gc)),2&e&&(o.Db(2),o.pc("icon",t.faSearch),o.Db(9),o.pc("ngModel",t.selectedFieldId),o.Db(1),o.pc("ngForOf",t.lookupFields),o.Db(1),o.pc("ngClass",o.tc(8,Tr,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM)),o.Db(1),o.pc("placeholder",(null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder)||"Lookup Key")("ngModel",t.lookupKey),o.Db(2),o.pc("ngIf",!t.lookupKey),o.Db(6),o.pc("ngIf",t.flgSetLookupValue))},directives:[V.c,V.b,w.a,V.a,F.a,F.b,be.t,be.m,be.n,Ye.b,be.l,be.o,a.m,T.c,a.l,L.a,ue.b,be.b,be.r,a.n,W.a,Ye.a,T.b,a.p,a.q,a.r,yr,Fr],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),e}(),Pr=function(e){return e.KB="KB",e.KW="KW",e}({}),Mr=function(){function e(){this.perkbw={}}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentChecked=function(){this.feeRateStyle===Pr.KB?this.perkbw=this.feeRates.perkb:this.feeRateStyle===Pr.KW&&(this.perkbw=this.feeRates.perkw)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-fee-rates"]],inputs:{feeRateStyle:"feeRateStyle",feeRates:"feeRates",flgLoading:"flgLoading"},decls:51,vars:24,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch",1,"h-100"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"div"),o.Wb(3,"h4",2),o.Hc(4,"Urgent"),o.Vb(),o.Wb(5,"div",3),o.Hc(6),o.jc(7,"number"),o.Vb(),o.Vb(),o.Wb(8,"div"),o.Wb(9,"h4",2),o.Hc(10,"Normal"),o.Vb(),o.Wb(11,"div",3),o.Hc(12),o.jc(13,"number"),o.Vb(),o.Vb(),o.Wb(14,"div"),o.Wb(15,"h4",2),o.Hc(16,"Slow"),o.Vb(),o.Wb(17,"div",3),o.Hc(18),o.jc(19,"number"),o.Vb(),o.Vb(),o.Wb(20,"div"),o.Wb(21,"h4",2),o.Hc(22,"Opening Channel"),o.Vb(),o.Wb(23,"div",3),o.Hc(24),o.jc(25,"number"),o.Vb(),o.Vb(),o.Vb(),o.Wb(26,"div",1),o.Wb(27,"div"),o.Wb(28,"h4",2),o.Hc(29,"Min Acceptable"),o.Vb(),o.Wb(30,"div",3),o.Hc(31),o.jc(32,"number"),o.Vb(),o.Vb(),o.Wb(33,"div"),o.Wb(34,"h4",2),o.Hc(35,"Max Acceptable"),o.Vb(),o.Wb(36,"div",3),o.Hc(37),o.jc(38,"number"),o.Vb(),o.Vb(),o.Wb(39,"div"),o.Wb(40,"h4",2),o.Hc(41,"Mutual Close"),o.Vb(),o.Wb(42,"div",3),o.Hc(43),o.jc(44,"number"),o.Vb(),o.Vb(),o.Wb(45,"div"),o.Wb(46,"h4",2),o.Hc(47,"Unilateral Close"),o.Vb(),o.Wb(48,"div",3),o.Hc(49),o.jc(50,"number"),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(6),o.Ic(o.kc(7,8,null==t.perkbw?null:t.perkbw.urgent)),o.Db(6),o.Ic(o.kc(13,10,null==t.perkbw?null:t.perkbw.normal)),o.Db(6),o.Ic(o.kc(19,12,null==t.perkbw?null:t.perkbw.slow)),o.Db(6),o.Ic(o.kc(25,14,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.opening_channel_satoshis)),o.Db(7),o.Ic(o.kc(32,16,null==t.perkbw?null:t.perkbw.min_acceptable)),o.Db(6),o.Ic(o.kc(38,18,null==t.perkbw?null:t.perkbw.max_acceptable)),o.Db(6),o.Ic(o.kc(44,20,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.mutual_close_satoshis)),o.Db(6),o.Ic(o.kc(50,22,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.unilateral_close_satoshis)))},directives:[V.c,V.a,V.b],pipes:[a.e],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),e}(),Er=function(e){return{"error-border":e}};function Br(e,t){if(1&e&&o.Rb(0,"rtl-cl-node-info",17),2&e){var n=o.ic(3);o.pc("information",n.information)("showColorFieldSeparately",!1)("ngClass",o.tc(3,Er,"error"===n.flgLoading[0]))}}function Ur(e,t){if(1&e&&o.Rb(0,"rtl-cl-channel-status-info",18),2&e){var n=o.ic(3);o.pc("channelsStatus",n.channelsStatus)("ngClass",o.tc(2,Er,"error"===n.flgLoading[0]))}}function Nr(e,t){if(1&e&&o.Rb(0,"rtl-cl-fee-info",19),2&e){var n=o.ic(3);o.pc("fees",n.fees)("ngClass",o.tc(2,Er,"error"===n.flgLoading[1]))}}function zr(e,t){if(1&e&&o.Rb(0,"rtl-cl-fee-rates",20),2&e){var n=o.ic(3);o.pc("flgLoading",n.flgLoading[2])("feeRates",n.feeRatesPerKB)("feeRateStyle","KB")}}function qr(e,t){if(1&e&&o.Rb(0,"rtl-cl-fee-rates",20),2&e){var n=o.ic(3);o.pc("flgLoading",n.flgLoading[2])("feeRates",n.feeRatesPerKW)("feeRateStyle","KW")}}function jr(e,t){if(1&e&&(o.Wb(0,"mat-grid-tile",4),o.Wb(1,"div",5),o.Wb(2,"div",6),o.Wb(3,"div",7),o.Rb(4,"fa-icon",8),o.Wb(5,"span"),o.Hc(6),o.Vb(),o.Vb(),o.Vb(),o.Wb(7,"div",9),o.Wb(8,"mat-card",10),o.Wb(9,"mat-card-content",11),o.Wb(10,"div",12),o.Fc(11,Br,1,5,"rtl-cl-node-info",13),o.Fc(12,Ur,1,4,"rtl-cl-channel-status-info",14),o.Fc(13,Nr,1,4,"rtl-cl-fee-info",15),o.Fc(14,zr,1,3,"rtl-cl-fee-rates",16),o.Fc(15,qr,1,3,"rtl-cl-fee-rates",16),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.pc("colspan",n.cols)("rowspan",n.rows),o.Db(4),o.pc("icon",n.icon),o.Db(2),o.Ic(n.title),o.Db(4),o.pc("ngSwitch",n.id),o.Db(1),o.pc("ngSwitchCase","node"),o.Db(1),o.pc("ngSwitchCase","status"),o.Db(1),o.pc("ngSwitchCase","fee"),o.Db(1),o.pc("ngSwitchCase","feeRatesKB"),o.Db(1),o.pc("ngSwitchCase","feeRatesKW")}}function Xr(e,t){if(1&e&&(o.Wb(0,"mat-grid-list",2),o.Fc(1,jr,16,10,"mat-grid-tile",3),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngForOf",n.nodeCardsOperator)}}function Gr(e,t){if(1&e&&o.Rb(0,"rtl-cl-node-info",17),2&e){var n=o.ic(3);o.pc("information",n.information)("showColorFieldSeparately",!1)("ngClass",o.tc(3,Er,"error"===n.flgLoading[0]))}}function $r(e,t){if(1&e&&o.Rb(0,"rtl-cl-channel-status-info",18),2&e){var n=o.ic(3);o.pc("channelsStatus",n.channelsStatus)("ngClass",o.tc(2,Er,"error"===n.flgLoading[0]))}}function Qr(e,t){if(1&e&&o.Rb(0,"rtl-cl-fee-info",19),2&e){var n=o.ic(3);o.pc("fees",n.fees)("ngClass",o.tc(2,Er,"error"===n.flgLoading[1]))}}function Kr(e,t){if(1&e&&o.Rb(0,"rtl-cl-fee-rates",20),2&e){var n=o.ic(3);o.pc("flgLoading",n.flgLoading[2])("feeRates",n.feeRatesPerKB)("feeRateStyle","KB")}}function Jr(e,t){if(1&e&&o.Rb(0,"rtl-cl-fee-rates",20),2&e){var n=o.ic(3);o.pc("flgLoading",n.flgLoading[2])("feeRates",n.feeRatesPerKW)("feeRateStyle","KW")}}function Yr(e,t){if(1&e&&(o.Wb(0,"mat-grid-tile",4),o.Wb(1,"div",5),o.Wb(2,"div",6),o.Wb(3,"div",21),o.Rb(4,"fa-icon",8),o.Wb(5,"span"),o.Hc(6),o.Vb(),o.Vb(),o.Vb(),o.Wb(7,"div",9),o.Wb(8,"mat-card",10),o.Wb(9,"mat-card-content",11),o.Wb(10,"div",12),o.Fc(11,Gr,1,5,"rtl-cl-node-info",13),o.Fc(12,$r,1,4,"rtl-cl-channel-status-info",14),o.Fc(13,Qr,1,4,"rtl-cl-fee-info",15),o.Fc(14,Kr,1,3,"rtl-cl-fee-rates",16),o.Fc(15,Jr,1,3,"rtl-cl-fee-rates",16),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.pc("colspan",n.cols)("rowspan",n.rows),o.Db(4),o.pc("icon",n.icon),o.Db(2),o.Ic(n.title),o.Db(4),o.pc("ngSwitch",n.id),o.Db(1),o.pc("ngSwitchCase","node"),o.Db(1),o.pc("ngSwitchCase","status"),o.Db(1),o.pc("ngSwitchCase","fee"),o.Db(1),o.pc("ngSwitchCase","feeRatesKB"),o.Db(1),o.pc("ngSwitchCase","feeRatesKW")}}function Zr(e,t){if(1&e&&(o.Wb(0,"mat-grid-list",2),o.Fc(1,Yr,16,10,"mat-grid-tile",3),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngForOf",n.nodeCardsMerchant)}}var el=function(){function e(e,t,n){this.logger=e,this.commonService=t,this.store=n,this.faBolt=p.e,this.faServer=p.F,this.faNetworkWired=p.x,this.selNode={},this.information={},this.channelsStatus={},this.feeRatesPerKB={},this.feeRatesPerKW={},this.nodeCardsOperator=[],this.nodeCardsMerchant=[],this.screenSize="",this.screenSizeEnum=g.o,this.userPersonaEnum=g.u,this.flgLoading=[!0,!0,!0],this.unSubs=[new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.nodeCardsMerchant=[{id:"node",icon:this.faServer,title:"Node Information",cols:6,rows:3},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:6,rows:3},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:6,rows:1},{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:6,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:6,rows:4}],this.nodeCardsOperator=[{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:6,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:6,rows:4}]):(this.nodeCardsMerchant=[{id:"node",icon:this.faServer,title:"Node Information",cols:2,rows:3},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:2,rows:3},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:2,rows:3},{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:3,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:3,rows:4}],this.nodeCardsOperator=[{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:3,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:3,rows:4}])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("cl").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchInfo"===t.action&&(e.flgLoading[0]="error"),"FetchFees"===t.action&&(e.flgLoading[1]="error"),"FetchFeeRates"===t.action&&(e.flgLoading[2]="error")})),e.selNode=t.nodeSettings,e.information=t.information,"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!e.information.id),e.fees=t.fees,e.fees.totalTxCount=0,t.forwardingHistory&&t.forwardingHistory.forwarding_events&&t.forwardingHistory.forwarding_events.length&&(e.fees.totalTxCount=t.forwardingHistory.forwarding_events.filter((function(e){return"settled"===e.status})).length),"error"!==e.flgLoading[1]&&(e.flgLoading[1]=!e.fees.feeCollected),e.channelsStatus={active:{channels:t.information.num_active_channels,capacity:0},inactive:{channels:t.information.num_inactive_channels,capacity:0},pending:{channels:t.information.num_pending_channels,capacity:0}},e.feeRatesPerKB=t.feeRatesPerKB,e.feeRatesPerKW=t.feeRatesPerKW,"error"!==e.flgLoading[2]&&(e.flgLoading[2]=!e.feeRatesPerKB||!e.feeRatesPerKW),e.logger.info(t)}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(h.a),o.Qb(v.h))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-network-info"]],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","6","rowHeight","110px",4,"ngIf"],["cols","6","rowHeight","110px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","pl-2"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","p-24","w-96","h-93"],["fxFlex","100",1,"dashboard-card-content"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"fees","ngClass",4,"ngSwitchCase"],["class","h-100",3,"flgLoading","feeRates","feeRateStyle",4,"ngSwitchCase"],["fxFlex","100",3,"information","showColorFieldSeparately","ngClass"],["fxFlex","100",3,"channelsStatus","ngClass"],["fxFlex","100",3,"fees","ngClass"],[1,"h-100",3,"flgLoading","feeRates","feeRateStyle"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","pl-15px"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Fc(1,Xr,2,1,"mat-grid-list",1),o.Fc(2,Zr,2,1,"mat-grid-list",1),o.Vb()),2&e&&(o.Db(1),o.pc("ngIf",t.selNode.userPersona===t.userPersonaEnum.OPERATOR),o.Db(1),o.pc("ngIf",t.selNode.userPersona===t.userPersonaEnum.MERCHANT))},directives:[V.c,V.b,a.n,C.a,a.m,C.c,V.a,w.a,F.a,F.b,a.p,a.q,I,a.l,L.a,q,z,Mr],styles:[""]}),e}(),tl=n("iiaH");function nl(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Message is required."),o.Vb())}var al=function(){function e(e,t,n){this.dataService=e,this.snackBar=t,this.logger=n,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new b.a,new b.a]}return e.prototype.ngOnInit=function(){},e.prototype.onSign=function(){var e=this;if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.signedMessage=e.message,e.signature=t.zbase}))},e.prototype.onMessageChange=function(){this.signedMessage!==this.message&&(this.signature="")},e.prototype.onCopyField=function(e){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+e)},e.prototype.resetData=function(){this.message="",this.signature="",this.signedMessage=""},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(tl.a),o.Qb(On.b),o.Qb(m.b))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"form",1,2),o.Wb(3,"mat-form-field",3),o.Wb(4,"textarea",4),o.ec("ngModelChange",(function(e){return t.message=e}))("keyup",(function(){return t.onMessageChange()})),o.Vb(),o.Fc(5,nl,2,0,"mat-error",5),o.Vb(),o.Wb(6,"div",6),o.Wb(7,"button",7),o.ec("click",(function(){return t.resetData()})),o.Hc(8,"Clear Field"),o.Vb(),o.Wb(9,"button",8),o.ec("click",(function(){return t.onSign()})),o.Hc(10,"Sign"),o.Vb(),o.Vb(),o.Rb(11,"mat-divider",9),o.Wb(12,"div",10),o.Wb(13,"p"),o.Hc(14,"Generated Signature"),o.Vb(),o.Vb(),o.Wb(15,"div",11),o.Hc(16),o.Vb(),o.Wb(17,"div",12),o.Wb(18,"button",13),o.ec("copied",(function(e){return t.onCopyField(e)})),o.Hc(19,"Copy Signature"),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(4),o.pc("ngModel",t.message),o.Db(1),o.pc("ngIf",!t.message),o.Db(6),o.pc("inset",!0),o.Db(5),o.Ic(t.signature),o.Db(2),o.pc("payload",t.signature))},directives:[V.c,V.a,V.b,be.t,be.m,be.n,T.c,ue.b,be.b,de.a,be.r,be.l,be.o,a.n,W.a,P.a,di.a,T.b],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e}();function il(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Message is required."),o.Vb())}function ol(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Signature is required."),o.Vb())}function cl(e,t){1&e&&(o.Wb(0,"p",13),o.Wb(1,"mat-icon",14),o.Hc(2,"close"),o.Vb(),o.Hc(3,"Verification failed, please double check message and signature"),o.Vb())}function sl(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"Pubkey Used"),o.Vb())}function rl(e,t){if(1&e&&(o.Wb(0,"div",20),o.Wb(1,"p"),o.Hc(2),o.Vb(),o.Vb()),2&e){var n=o.ic(2);o.Db(2),o.Ic(null==n.verifyRes?null:n.verifyRes.pubkey)}}function ll(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",21),o.Wb(1,"button",22),o.ec("copied",(function(e){return o.yc(n),o.ic(2).onCopyField(e)})),o.Hc(2,"Copy Pubkey"),o.Vb(),o.Vb()}if(2&e){var a=o.ic(2);o.Db(1),o.pc("payload",null==a.verifyRes?null:a.verifyRes.pubkey)}}function bl(e,t){if(1&e&&(o.Wb(0,"div",15),o.Rb(1,"mat-divider",16),o.Wb(2,"div",17),o.Fc(3,sl,2,0,"p",5),o.Vb(),o.Fc(4,rl,3,1,"div",18),o.Fc(5,ll,3,1,"div",19),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("inset",!0),o.Db(2),o.pc("ngIf",n.verifyRes.verified),o.Db(1),o.pc("ngIf",n.verifyRes.verified),o.Db(1),o.pc("ngIf",n.verifyRes.verified)}}var ul=function(){function e(e,t,n){this.dataService=e,this.snackBar=t,this.logger=n,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",verified:null},this.unSubs=[new b.a,new b.a]}return e.prototype.ngOnInit=function(){},e.prototype.onVerify=function(){var e=this;if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.verifyRes=t,e.showVerifyStatus=!0,e.verifiedMessage=e.message,e.verifiedSignature=e.signature}))},e.prototype.onChange=function(){this.verifiedMessage===this.message&&this.verifiedSignature===this.signature||(this.showVerifyStatus=!1,this.verifyRes={pubkey:"",verified:null})},e.prototype.resetData=function(){this.message="",this.signature="",this.verifyRes=null,this.showVerifyStatus=!1},e.prototype.onCopyField=function(e){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+e)},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(tl.a),o.Qb(On.b),o.Qb(m.b))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"form",1,2),o.Wb(3,"mat-form-field",3),o.Wb(4,"textarea",4),o.ec("ngModelChange",(function(e){return t.message=e}))("keyup",(function(){return t.onChange()})),o.Vb(),o.Fc(5,il,2,0,"mat-error",5),o.Vb(),o.Wb(6,"mat-form-field",3),o.Wb(7,"input",6,7),o.ec("ngModelChange",(function(e){return t.signature=e}))("keyup",(function(){return t.onChange()})),o.Vb(),o.Fc(9,ol,2,0,"mat-error",5),o.Vb(),o.Fc(10,cl,4,0,"p",8),o.Wb(11,"div",9),o.Wb(12,"button",10),o.ec("click",(function(){return t.resetData()})),o.Hc(13,"Clear Fields"),o.Vb(),o.Wb(14,"button",11),o.ec("click",(function(){return t.onVerify()})),o.Hc(15,"Verify"),o.Vb(),o.Vb(),o.Fc(16,bl,6,4,"div",12),o.Vb(),o.Vb()),2&e&&(o.Db(4),o.pc("ngModel",t.message),o.Db(1),o.pc("ngIf",!t.message),o.Db(2),o.pc("ngModel",t.signature),o.Db(2),o.pc("ngIf",!t.signature),o.Db(1),o.pc("ngIf",t.showVerifyStatus&&!t.verifyRes.verified),o.Db(6),o.pc("ngIf",t.showVerifyStatus&&t.verifyRes.verified))},directives:[V.c,V.a,V.b,be.t,be.m,be.n,T.c,ue.b,be.b,de.a,be.r,be.l,be.o,a.n,W.a,T.b,S.a,P.a,di.a],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e}(),dl=function(){function e(){this.faUserCheck=p.K}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-cl-sign-verify-message"]],decls:12,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["label","Sign"],["label","Verify"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Rb(1,"fa-icon",1),o.Wb(2,"span",2),o.Hc(3,"Sign/Verify Message"),o.Vb(),o.Vb(),o.Wb(4,"div",3),o.Wb(5,"mat-card"),o.Wb(6,"mat-card-content",4),o.Wb(7,"mat-tab-group"),o.Wb(8,"mat-tab",5),o.Rb(9,"rtl-cl-sign"),o.Vb(),o.Wb(10,"mat-tab",6),o.Rb(11,"rtl-cl-verify"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(1),o.pc("icon",t.faUserCheck))},directives:[V.c,V.b,w.a,F.a,F.b,ee.c,ee.a,al,ul],styles:[""]}),e}(),fl=n("2h+y"),pl=n("0dfH"),ml=i.j.forChild([{path:"",component:l,children:[{path:"home",component:In,canActivate:[fl.b]},{path:"onchain",component:Na,canActivate:[fl.b]},{path:"peerschannels",component:Dc,canActivate:[fl.b]},{path:"transactions",component:Kc,canActivate:[fl.b]},{path:"routing",component:or,canActivate:[fl.b]},{path:"lookups",component:Or,canActivate:[fl.b]},{path:"rates",component:el,canActivate:[fl.b]},{path:"signverify",component:dl,canActivate:[fl.b]},{path:"**",component:pl.a},{path:"network",redirectTo:"rates"},{path:"wallet",redirectTo:"home"},{path:"backup",redirectTo:"home"}]}]),hl=n("PCNd"),gl=function(){function e(){}return e.\u0275mod=o.Ob({type:e,bootstrap:[l]}),e.\u0275inj=o.Nb({factory:function(t){return new(t||e)},providers:[fl.b],imports:[[a.c,hl.a,ml]]}),e}()}}]); \ No newline at end of file diff --git a/angular/7.2a4fb50bff6654155ed9.js b/angular/7.2a4fb50bff6654155ed9.js new file mode 100644 index 00000000..be6dfb30 --- /dev/null +++ b/angular/7.2a4fb50bff6654155ed9.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{tmAo:function(e,t,n){"use strict";n.r(t),n.d(t,"LNDModule",function(){return ef});var a=n("SVse"),o=n("iInd"),i=n("8Y7J"),s=n("BTe0");function c(e,t){1&e&&i.Qb(0,"mat-progress-bar",2)}function l(e,t){1&e&&i.Qb(0,"router-outlet")}let r=(()=>{class e{constructor(e){this.router=e,this.loading=!1,this.router.events.subscribe(e=>{switch(!0){case e instanceof o.e:this.loading=!0;break;case e instanceof o.c:case e instanceof o.b:case e instanceof o.d:this.loading=!1}})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(o.g))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-lnd-root"]],decls:2,vars:2,consts:[["color","primary","mode","indeterminate",4,"ngIf"],[4,"ngIf"],["color","primary","mode","indeterminate"]],template:function(e,t){1&e&&(i.Ic(0,c,1,0,"mat-progress-bar",0),i.Ic(1,l,1,0,"router-outlet",1)),2&e&&(i.oc("ngIf",t.loading),i.Db(1),i.oc("ngIf",!t.loading))},directives:[a.o,s.a,o.l],styles:[""]}),e})();var b=n("XNiG"),u=n("1G5W"),d=n("pLZG"),h=n("twK/"),m=n("wHSu"),p=n("7nzP"),f=n("MCVq"),g=n("cpEJ"),y=n("tqRt"),C=n("7bNT"),x=n("7o2P"),w=n("VDRc"),v=n("Nv++"),L=n("40+f"),U=n("PDjf"),V=n("rJgo"),S=n("Dxy4"),D=n("Tj54"),I=n("ura0");const F=function(e){return{backgroundColor:e}};function _(e,t){if(1&e&&i.Qb(0,"span",6),2&e){const e=i.hc();i.oc("ngStyle",i.sc(1,F,e.information.color))}}function k(e,t){if(1&e&&(i.Vb(0,"div"),i.Vb(1,"h4",1),i.Kc(2,"Color"),i.Ub(),i.Vb(3,"div",2),i.Qb(4,"span",7),i.Kc(5),i.ic(6,"uppercase"),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(4),i.oc("ngStyle",i.sc(4,F,e.information.color)),i.Db(1),i.Mc(" ",i.jc(6,2,e.information.color)," ")}}function A(e,t){if(1&e&&(i.Vb(0,"span",2),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(e)}}let T=(()=>{class e{constructor(e){this.commonService=e,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(e=>{this.chains.push(this.commonService.titleCase(e.chain)+" "+this.commonService.titleCase(e.network))}))}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(x.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[i.Bb],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div"),i.Vb(2,"h4",1),i.Kc(3,"Alias"),i.Ub(),i.Vb(4,"div",2),i.Kc(5),i.Ic(6,_,1,3,"span",3),i.Ub(),i.Ub(),i.Ic(7,k,7,6,"div",4),i.Vb(8,"div"),i.Vb(9,"h4",1),i.Kc(10,"Implementation"),i.Ub(),i.Vb(11,"div",2),i.Kc(12),i.Ub(),i.Ub(),i.Vb(13,"div"),i.Vb(14,"h4",1),i.Kc(15,"Chain"),i.Ub(),i.Ic(16,A,2,1,"span",5),i.Ub(),i.Ub()),2&e&&(i.Db(5),i.Mc(" ",t.information.alias," "),i.Db(1),i.oc("ngIf",!t.showColorFieldSeparately),i.Db(1),i.oc("ngIf",t.showColorFieldSeparately),i.Db(5),i.Lc(t.information.lnImplementation||t.information.version?t.information.lnImplementation+" "+t.information.version:""),i.Db(4),i.oc("ngForOf",t.chains))},directives:[w.c,w.a,w.b,a.o,a.n,a.p,I.b],pipes:[a.y],styles:[""]}),e})(),P=(()=>{class e{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-balances-info"]],inputs:{balances:"balances"},decls:21,vars:11,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div"),i.Vb(2,"h4",1),i.Kc(3,"Lightning"),i.Ub(),i.Vb(4,"div",2),i.Kc(5),i.ic(6,"number"),i.Ub(),i.Qb(7,"mat-progress-bar",3),i.Ub(),i.Vb(8,"div"),i.Vb(9,"h4",1),i.Kc(10,"On-chain"),i.Ub(),i.Vb(11,"div",2),i.Kc(12),i.ic(13,"number"),i.Ub(),i.Qb(14,"mat-progress-bar",3),i.Ub(),i.Vb(15,"div"),i.Vb(16,"h4",1),i.Kc(17,"Total"),i.Ub(),i.Vb(18,"div",2),i.Kc(19),i.ic(20,"number"),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(5),i.Mc("",i.jc(6,5,t.balances.lightning)," Sats"),i.Db(2),i.pc("value",t.balances.lightning/t.balances.total*100),i.Db(5),i.Mc("",i.jc(13,7,t.balances.onchain)," Sats"),i.Db(2),i.pc("value",t.balances.onchain/t.balances.total*100),i.Db(5),i.Mc("",i.jc(20,9,t.balances.total)," Sats"))},directives:[w.c,w.a,w.b,s.a],pipes:[a.f],styles:[""]}),e})();var O=n("Q2Ze"),R=n("ZFy/"),K=n("BSbQ"),M=n("aLe/");function Q(e,t){if(1&e&&(i.Vb(0,"div",17),i.Vb(1,"span",18),i.Kc(2),i.ic(3,"slice"),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"mat-hint",19),i.Vb(6,"strong",5),i.Kc(7,"Local:"),i.Ub(),i.Kc(8),i.ic(9,"number"),i.Ub(),i.Vb(10,"mat-hint",20),i.Qb(11,"fa-icon",21),i.Kc(12),i.ic(13,"number"),i.Ub(),i.Vb(14,"mat-hint",22),i.Vb(15,"strong",5),i.Kc(16,"Remote:"),i.Ub(),i.Kc(17),i.ic(18,"number"),i.Ub(),i.Ub(),i.Qb(19,"mat-progress-bar",23),i.Ub()),2&e){const e=t.$implicit,n=i.hc(2);i.Db(1),i.pc("matTooltip",e.remote_alias||e.remote_pubkey),i.pc("matTooltipDisabled",(e.remote_alias||e.remote_pubkey).length<26),i.Db(1),i.Nc("",i.lc(3,9,e.remote_alias||e.remote_pubkey,0,24),"",(e.remote_alias||e.remote_pubkey).length>25?"...":"",""),i.Db(6),i.Mc("",i.jc(9,13,e.local_balance||0)," Sats"),i.Db(3),i.oc("icon",n.faBalanceScale),i.Db(1),i.Mc(" (",i.jc(13,15,e.balancedness||0),") "),i.Db(5),i.Mc("",i.jc(18,17,e.remote_balance||0)," Sats"),i.Db(2),i.pc("value",e.local_balance&&e.local_balance>0?+e.local_balance/(+e.local_balance+ +e.remote_balance)*100:0)}}function z(e,t){if(1&e&&(i.Vb(0,"div",15),i.Ic(1,Q,20,19,"div",16),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("ngForOf",e.allChannels)}}function E(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",24),i.Kc(1," No channels available. "),i.Vb(2,"button",25),i.dc("click",function(){return i.zc(e),i.hc().goToChannels()}),i.Kc(3,"Open Channel"),i.Ub(),i.Ub()}}let N=(()=>{class e{constructor(e){this.router=e,this.faBalanceScale=m.d,this.faDumbbell=m.l,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/lnd/connections")}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(o.g))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy"},decls:26,vars:13,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"]],template:function(e,t){if(1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"span",2),i.Kc(3,"Total Capacity"),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"mat-hint",4),i.Vb(6,"strong",5),i.Kc(7,"Local:"),i.Ub(),i.Kc(8),i.ic(9,"number"),i.Ub(),i.Vb(10,"mat-hint",6),i.Qb(11,"fa-icon",7),i.Kc(12),i.ic(13,"number"),i.Ub(),i.Vb(14,"mat-hint",8),i.Vb(15,"strong",5),i.Kc(16,"Remote:"),i.Ub(),i.Kc(17),i.ic(18,"number"),i.Ub(),i.Ub(),i.Qb(19,"mat-progress-bar",9),i.Ub(),i.Vb(20,"div",10),i.Qb(21,"mat-divider",11),i.Ub(),i.Vb(22,"div",12),i.Ic(23,z,2,1,"div",13),i.Ub(),i.Ub(),i.Ic(24,E,4,0,"ng-template",null,14,i.Jc)),2&e){const e=i.wc(25);i.Db(8),i.Mc("",i.jc(9,7,t.channelBalances.localBalance||0)," Sats"),i.Db(3),i.oc("icon",t.faBalanceScale),i.Db(1),i.Mc(" (",i.jc(13,9,(null==t.channelBalances?null:t.channelBalances.balancedness)||0),") "),i.Db(5),i.Mc("",i.jc(18,11,t.channelBalances.remoteBalance||0)," Sats"),i.Db(2),i.pc("value",t.channelBalances.localBalance&&t.channelBalances.localBalance>0?+t.channelBalances.localBalance/(+t.channelBalances.localBalance+ +t.channelBalances.remoteBalance)*100:0),i.Db(4),i.oc("ngIf",t.allChannels&&t.allChannels.length>0)("ngIfElse",e)}},directives:[w.c,w.b,w.a,O.f,v.a,R.a,s.a,K.a,M.b,a.o,a.n,S.a],pipes:[a.f,a.w],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),e})(),G=(()=>{class e{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){if(this.fees.month_fee_sum){this.totalFees=[{name:"Monthly",value:this.fees.month_fee_sum},{name:"Weekly",value:this.fees.week_fee_sum},{name:"Daily ",value:this.fees.day_fee_sum}];let e=Math.ceil(Math.log(this.fees.month_fee_sum+1)/Math.LN10),t=Math.pow(10,e-1);this.maxFeeValue=Math.ceil(this.fees.month_fee_sum/t)*t/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-fee-info"]],inputs:{fees:"fees"},features:[i.Bb],decls:44,vars:18,consts:[["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"],[1,"dashboard-info-title"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div"),i.Vb(2,"h4",1),i.Kc(3,"Daily"),i.Ub(),i.Vb(4,"div",2),i.Kc(5),i.ic(6,"number"),i.Ub(),i.Ub(),i.Vb(7,"div"),i.Vb(8,"h4",1),i.Kc(9,"Weekly"),i.Ub(),i.Vb(10,"div",2),i.Kc(11),i.ic(12,"number"),i.Ub(),i.Ub(),i.Vb(13,"div"),i.Vb(14,"h4",1),i.Kc(15,"Monthly"),i.Ub(),i.Vb(16,"div",2),i.Kc(17),i.ic(18,"number"),i.Ub(),i.Ub(),i.Vb(19,"div",3),i.Qb(20,"h4",4),i.Qb(21,"span",2),i.Ub(),i.Ub(),i.Vb(22,"div",0),i.Vb(23,"div"),i.Vb(24,"h4",1),i.Kc(25,"Transactions"),i.Ub(),i.Vb(26,"div",2),i.Kc(27),i.ic(28,"number"),i.Ub(),i.Ub(),i.Vb(29,"div"),i.Vb(30,"h4",1),i.Kc(31,"Transactions"),i.Ub(),i.Vb(32,"div",2),i.Kc(33),i.ic(34,"number"),i.Ub(),i.Ub(),i.Vb(35,"div"),i.Vb(36,"h4",1),i.Kc(37,"Transactions"),i.Ub(),i.Vb(38,"div",2),i.Kc(39),i.ic(40,"number"),i.Ub(),i.Ub(),i.Vb(41,"div",3),i.Qb(42,"h4",4),i.Qb(43,"span",2),i.Ub(),i.Ub()),2&e&&(i.Db(5),i.Mc("",i.jc(6,6,null==t.fees?null:t.fees.day_fee_sum)," Sats"),i.Db(6),i.Mc("",i.jc(12,8,null==t.fees?null:t.fees.week_fee_sum)," Sats"),i.Db(6),i.Mc("",i.jc(18,10,null==t.fees?null:t.fees.month_fee_sum)," Sats"),i.Db(10),i.Lc(i.jc(28,12,null==t.fees?null:t.fees.daily_tx_count)),i.Db(6),i.Lc(i.jc(34,14,null==t.fees?null:t.fees.weekly_tx_count)),i.Db(6),i.Lc(i.jc(40,16,null==t.fees?null:t.fees.monthly_tx_count)))},directives:[w.c,w.a,w.b],pipes:[a.f],styles:[""]}),e})(),q=(()=>{class e{constructor(){this.channelsStatus={}}ngOnChanges(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus"},features:[i.Bb],decls:54,vars:24,consts:[["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],[1,"dot","tiny-dot","red"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div"),i.Vb(2,"h4",1),i.Kc(3,"Active"),i.Ub(),i.Vb(4,"div",2),i.Qb(5,"span",3),i.Kc(6),i.ic(7,"number"),i.Ub(),i.Ub(),i.Vb(8,"div"),i.Vb(9,"h4",1),i.Kc(10,"Pending"),i.Ub(),i.Vb(11,"div",2),i.Qb(12,"span",4),i.Kc(13),i.ic(14,"number"),i.Ub(),i.Ub(),i.Vb(15,"div"),i.Vb(16,"h4",1),i.Kc(17,"Inactive"),i.Ub(),i.Vb(18,"div",2),i.Qb(19,"span",5),i.Kc(20),i.ic(21,"number"),i.Ub(),i.Ub(),i.Vb(22,"div"),i.Vb(23,"h4",1),i.Kc(24,"Closing"),i.Ub(),i.Vb(25,"div",2),i.Qb(26,"span",6),i.Kc(27),i.ic(28,"number"),i.Ub(),i.Ub(),i.Ub(),i.Vb(29,"div",0),i.Vb(30,"div"),i.Vb(31,"h4",1),i.Kc(32,"Capacity"),i.Ub(),i.Vb(33,"div",2),i.Kc(34),i.ic(35,"number"),i.Ub(),i.Ub(),i.Vb(36,"div"),i.Vb(37,"h4",1),i.Kc(38,"Capacity"),i.Ub(),i.Vb(39,"div",2),i.Kc(40),i.ic(41,"number"),i.Ub(),i.Ub(),i.Vb(42,"div"),i.Vb(43,"h4",1),i.Kc(44,"Capacity"),i.Ub(),i.Vb(45,"div",2),i.Kc(46),i.ic(47,"number"),i.Ub(),i.Ub(),i.Vb(48,"div"),i.Vb(49,"h4",1),i.Kc(50,"Capacity"),i.Ub(),i.Vb(51,"div",2),i.Kc(52),i.ic(53,"number"),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(6),i.Lc(i.jc(7,8,t.channelsStatus.active.channels||0)),i.Db(7),i.Lc(i.jc(14,10,t.channelsStatus.pending.channels||0)),i.Db(7),i.Lc(i.jc(21,12,t.channelsStatus.inactive.channels||0)),i.Db(7),i.Lc(i.jc(28,14,t.channelsStatus.closing.channels||0)),i.Db(7),i.Mc("",i.jc(35,16,t.channelsStatus.active.capacity||0)," Sats"),i.Db(6),i.Mc("",i.jc(41,18,t.channelsStatus.pending.capacity||0)," Sats"),i.Db(6),i.Mc("",i.jc(47,20,t.channelsStatus.inactive.capacity||0)," Sats"),i.Db(6),i.Mc("",i.jc(53,22,t.channelsStatus.closing.capacity||0)," Sats"))},directives:[w.c,w.a,w.b],pipes:[a.f],styles:[""]}),e})();var B=n("s7LF"),H=n("iELJ"),j=n("2yzq"),W=n("/uX3"),$=n("hBQm"),X=n("hzfI"),J=n("o4Yh");function Z(e,t){1&e&&i.Rb(0)}function Y(e,t){1&e&&i.Rb(0)}const ee=function(e){return{"h-5":e}};function te(e,t){if(1&e&&(i.Vb(0,"mat-expansion-panel",3),i.Vb(1,"mat-expansion-panel-header"),i.Vb(2,"mat-panel-title"),i.Vb(3,"span",4),i.Kc(4),i.ic(5,"number"),i.Ub(),i.Ub(),i.Ub(),i.Ic(6,Y,1,0,"ng-container",0),i.Ub()),2&e){const e=i.hc(),t=i.wc(4);i.oc("expanded",e.panelExpanded)("ngClass",i.sc(7,ee,!e.flgShowPanel)),i.Db(4),i.Nc("Quote for ",e.termCaption," amount (",i.jc(5,5,e.quote.amount)," Sats)"),i.Db(2),i.oc("ngTemplateOutlet",t)}}function ne(e,t){if(1&e&&(i.Vb(0,"div",17),i.Vb(1,"h4",8),i.Kc(2,"Prepay Amount (Sats)"),i.Ub(),i.Vb(3,"span",9),i.Kc(4),i.ic(5,"number"),i.Ub(),i.Ub()),2&e){const e=i.hc(2);i.Db(4),i.Lc(i.jc(5,1,null==e.quote?null:e.quote.prepay_amt_sat))}}function ae(e,t){1&e&&i.Qb(0,"mat-divider",12)}function oe(e,t){if(1&e&&(i.Vb(0,"div",6),i.Vb(1,"div",18),i.Vb(2,"h4",8),i.Kc(3,"Swap Server Node Pubkey"),i.Ub(),i.Vb(4,"span",9),i.Kc(5),i.Ub(),i.Ub(),i.Ub()),2&e){const e=i.hc(2);i.Db(5),i.Lc(null==e.quote?null:e.quote.swap_payment_dest)}}function ie(e,t){if(1&e&&(i.Vb(0,"div",5),i.Vb(1,"div",6),i.Vb(2,"div",7),i.Vb(3,"h4",8),i.Kc(4,"Swap Fee (Sats)"),i.Ub(),i.Vb(5,"span",9),i.Kc(6),i.ic(7,"number"),i.Ub(),i.Ub(),i.Vb(8,"div",10),i.Vb(9,"h4",8),i.Kc(10),i.Ub(),i.Vb(11,"span",9),i.Kc(12),i.ic(13,"number"),i.Ub(),i.Ub(),i.Ic(14,ne,6,3,"div",11),i.Ub(),i.Qb(15,"mat-divider",12),i.Vb(16,"div",6),i.Vb(17,"div",13),i.Vb(18,"h4",8),i.Kc(19,"Max Off-chain Swap Routing Fee (Sats)"),i.Ub(),i.Vb(20,"span",9),i.Kc(21),i.ic(22,"number"),i.Ub(),i.Ub(),i.Vb(23,"div",14),i.Vb(24,"h4",8),i.Kc(25,"Max Off-chain Prepay Routing Fee (Sats)"),i.Ub(),i.Vb(26,"span",9),i.Kc(27,"36"),i.Ub(),i.Ub(),i.Ub(),i.Ic(28,ae,1,0,"mat-divider",15),i.Ic(29,oe,6,1,"div",16),i.Ub()),2&e){const e=i.hc();i.Db(2),i.oc("fxFlex",null!=e.quote&&e.quote.prepay_amt_sat?"30":"50"),i.Db(4),i.Lc(i.jc(7,9,null==e.quote?null:e.quote.swap_fee_sat)),i.Db(2),i.oc("fxFlex",null!=e.quote&&e.quote.prepay_amt_sat?"30":"50"),i.Db(2),i.Lc(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)":""),i.Db(2),i.Lc(i.jc(13,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)),i.Db(2),i.oc("ngIf",null==e.quote?null:e.quote.prepay_amt_sat),i.Db(7),i.Lc(i.jc(22,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))),i.Db(7),i.oc("ngIf",""!==(null==e.quote?null:e.quote.swap_payment_dest)),i.Db(1),i.oc("ngIf",""!==(null==e.quote?null:e.quote.swap_payment_dest))}}let se=(()=>{class e{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["informationBlock",""],["quoteDetailsBlock",""],["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded","ngClass"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["matTooltip","Estimated fee charged by the loop server for the swap",3,"fxFlex"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],["matTooltip","An estimate of the on-chain fee that needs to be paid to sweep the HTLC",3,"fxFlex"],["fxFlex","40","matTooltip","The part of the swap fee that is requested as a prepayment",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","50","matTooltip","Maximum off-chain fee that may be paid for routing the payment amount to the server"],["fxFlex","50","matTooltip","Maximum off-chain fee that may be paid for routing the pre-payment amount to the server"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxFlex","40","matTooltip","The part of the swap fee that is requested as a prepayment"],["fxFlex","100","matTooltip","The node pubkey, where the swap payments will be sent"]],template:function(e,t){if(1&e&&(i.Ic(0,Z,1,0,"ng-container",0),i.Ic(1,te,7,9,"ng-template",null,1,i.Jc),i.Ic(3,ie,30,15,"ng-template",null,2,i.Jc)),2&e){const e=i.wc(2),n=i.wc(4);i.oc("ngTemplateOutlet",t.showPanel?e:n)}},directives:[a.t,J.c,w.a,a.m,I.a,J.e,J.f,w.b,w.c,R.a,a.o,K.a],pipes:[a.f],styles:[""]}),e})();var ce=n("e6WT"),le=n("O4ig"),re=n("jMqV"),be=n("zQhy");function ue(e,t){1&e&&i.Rb(0)}function de(e,t){if(1&e&&(i.Vb(0,"div",3),i.Vb(1,"span",4),i.Kc(2),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(2),i.Lc("Error: "+(null!=e.loopStatus&&null!=e.loopStatus.error&&null!=e.loopStatus.error.error&&null!=e.loopStatus.error.error.error&&e.loopStatus.error.error.error.error?e.loopStatus.error.error.error.error:null!=e.loopStatus&&null!=e.loopStatus.error&&null!=e.loopStatus.error.error&&e.loopStatus.error.error.error?e.loopStatus.error.error.error:null!=e.loopStatus&&null!=e.loopStatus.error&&e.loopStatus.error.error?e.loopStatus.error.error:null!=e.loopStatus&&e.loopStatus.error?e.loopStatus.error:"Unknown"))}}function he(e,t){if(1&e&&(i.Vb(0,"div",3),i.Vb(1,"div",5),i.Vb(2,"div",6),i.Vb(3,"h4",7),i.Kc(4,"ID"),i.Ub(),i.Vb(5,"span",4),i.Kc(6),i.Ub(),i.Ub(),i.Ub(),i.Qb(7,"mat-divider",8),i.Vb(8,"div",5),i.Vb(9,"div",6),i.Vb(10,"h4",7),i.Kc(11,"HTLC Address"),i.Ub(),i.Vb(12,"span",4),i.Kc(13),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(6),i.Lc(null==e.loopStatus?null:e.loopStatus.id_bytes),i.Db(7),i.Lc(null==e.loopStatus?null:e.loopStatus.htlc_address)}}let me=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Jb({type:e,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,t){if(1&e&&(i.Ic(0,ue,1,0,"ng-container",0),i.Ic(1,de,3,1,"ng-template",null,1,i.Jc),i.Ic(3,he,14,2,"ng-template",null,2,i.Jc)),2&e){const e=i.wc(2),n=i.wc(4);i.oc("ngTemplateOutlet",null!=t.loopStatus&&t.loopStatus.error?e:n)}},directives:[a.t,w.c,w.a,w.b,K.a],styles:[""]}),e})();var pe=n("9wfV");function fe(e,t){1&e&&i.Rb(0)}const ge=function(e,t){return{"small-svg":e,"large-svg":t}};function ye(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",6),i.dc("swipe",function(t){return i.zc(e),i.hc().onSwipe(t)}),i.gc(),i.Vb(1,"svg",7),i.Vb(2,"desc"),i.Kc(3,"Created with Sketch."),i.Ub(),i.Vb(4,"g",8),i.Vb(5,"g",9),i.Vb(6,"g",10),i.Vb(7,"g",11),i.Qb(8,"circle",12),i.Qb(9,"path",13),i.Ub(),i.Vb(10,"g",14),i.Qb(11,"ellipse",15),i.Qb(12,"ellipse",16),i.Qb(13,"rect",17),i.Qb(14,"rect",18),i.Qb(15,"rect",19),i.Qb(16,"rect",20),i.Qb(17,"rect",21),i.Qb(18,"rect",22),i.Qb(19,"rect",23),i.Qb(20,"rect",24),i.Qb(21,"rect",25),i.Qb(22,"rect",26),i.Qb(23,"rect",27),i.Qb(24,"rect",28),i.Qb(25,"rect",29),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.fc(),i.Vb(26,"div",30),i.Vb(27,"mat-card-title"),i.Kc(28,"Loop Out explained."),i.Ub(),i.Ub(),i.Vb(29,"div",31),i.Vb(30,"mat-card-subtitle",32),i.Kc(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.oc("@sliderAnimation",e.animationDirection),i.Db(1),i.oc("ngClass",i.tc(2,ge,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Ce(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",6),i.dc("swipe",function(t){return i.zc(e),i.hc().onSwipe(t)}),i.gc(),i.Vb(1,"svg",33),i.Vb(2,"desc"),i.Kc(3,"Created with Sketch."),i.Ub(),i.Vb(4,"defs"),i.Vb(5,"linearGradient",34),i.Qb(6,"stop",35),i.Qb(7,"stop",36),i.Qb(8,"stop",37),i.Ub(),i.Ub(),i.Vb(9,"g",8),i.Vb(10,"g",38),i.Vb(11,"g",39),i.Vb(12,"g",40),i.Vb(13,"g",41),i.Vb(14,"g",42),i.Qb(15,"rect",43),i.Qb(16,"rect",44),i.Qb(17,"rect",45),i.Qb(18,"circle",46),i.Qb(19,"rect",47),i.Qb(20,"rect",48),i.Qb(21,"circle",49),i.Qb(22,"rect",50),i.Qb(23,"rect",51),i.Qb(24,"rect",52),i.Qb(25,"rect",53),i.Qb(26,"circle",54),i.Qb(27,"circle",55),i.Ub(),i.Vb(28,"g",56),i.Qb(29,"path",57),i.Qb(30,"rect",58),i.Qb(31,"polygon",59),i.Qb(32,"circle",60),i.Qb(33,"path",61),i.Qb(34,"rect",62),i.Qb(35,"rect",63),i.Qb(36,"rect",64),i.Qb(37,"rect",65),i.Qb(38,"rect",66),i.Qb(39,"rect",67),i.Qb(40,"rect",68),i.Qb(41,"path",69),i.Qb(42,"path",70),i.Ub(),i.Qb(43,"path",71),i.Ub(),i.Ub(),i.Qb(44,"circle",72),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.fc(),i.Vb(45,"div",30),i.Vb(46,"mat-card-title"),i.Kc(47,"Step 1: Deciding to Loop Out"),i.Ub(),i.Ub(),i.Vb(48,"div",31),i.Vb(49,"mat-card-subtitle",32),i.Kc(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.oc("@sliderAnimation",e.animationDirection),i.Db(1),i.oc("ngClass",i.tc(2,ge,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function xe(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",6),i.dc("swipe",function(t){return i.zc(e),i.hc().onSwipe(t)}),i.gc(),i.Vb(1,"svg",73),i.Vb(2,"desc"),i.Kc(3,"Created with Sketch."),i.Ub(),i.Vb(4,"defs"),i.Vb(5,"linearGradient",74),i.Qb(6,"stop",35),i.Qb(7,"stop",36),i.Qb(8,"stop",37),i.Ub(),i.Ub(),i.Vb(9,"g",8),i.Vb(10,"g",75),i.Vb(11,"g",76),i.Qb(12,"circle",77),i.Qb(13,"path",78),i.Vb(14,"g",79),i.Qb(15,"polygon",80),i.Qb(16,"polygon",81),i.Qb(17,"path",82),i.Ub(),i.Vb(18,"g",83),i.Qb(19,"polygon",84),i.Qb(20,"path",85),i.Qb(21,"rect",86),i.Qb(22,"path",87),i.Qb(23,"rect",88),i.Qb(24,"rect",89),i.Qb(25,"rect",90),i.Qb(26,"rect",91),i.Qb(27,"circle",92),i.Qb(28,"path",93),i.Vb(29,"g",94),i.Vb(30,"g",95),i.Qb(31,"g",96),i.Ub(),i.Qb(32,"g",97),i.Ub(),i.Qb(33,"path",98),i.Ub(),i.Vb(34,"g",99),i.Vb(35,"g",41),i.Vb(36,"g",42),i.Qb(37,"rect",43),i.Qb(38,"rect",44),i.Qb(39,"rect",45),i.Qb(40,"circle",46),i.Qb(41,"rect",47),i.Qb(42,"rect",48),i.Qb(43,"circle",49),i.Qb(44,"rect",50),i.Qb(45,"rect",51),i.Qb(46,"rect",52),i.Qb(47,"rect",53),i.Qb(48,"circle",100),i.Qb(49,"circle",54),i.Qb(50,"circle",55),i.Qb(51,"circle",101),i.Ub(),i.Vb(52,"g",56),i.Qb(53,"path",57),i.Qb(54,"rect",102),i.Qb(55,"polygon",103),i.Qb(56,"circle",104),i.Qb(57,"path",61),i.Qb(58,"rect",105),i.Qb(59,"rect",106),i.Qb(60,"rect",107),i.Qb(61,"rect",108),i.Qb(62,"rect",109),i.Qb(63,"rect",110),i.Qb(64,"rect",68),i.Qb(65,"path",69),i.Qb(66,"path",70),i.Ub(),i.Qb(67,"path",111),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.fc(),i.Vb(68,"div",30),i.Vb(69,"mat-card-title"),i.Kc(70,"Step 2: Send lightning payment"),i.Ub(),i.Ub(),i.Vb(71,"div",31),i.Vb(72,"mat-card-subtitle",32),i.Kc(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. "),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.oc("@sliderAnimation",e.animationDirection),i.Db(1),i.oc("ngClass",i.tc(2,ge,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function we(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",6),i.dc("swipe",function(t){return i.zc(e),i.hc().onSwipe(t)}),i.gc(),i.Vb(1,"svg",112),i.Vb(2,"desc"),i.Kc(3,"Created with Sketch."),i.Ub(),i.Vb(4,"g",8),i.Vb(5,"g",113),i.Vb(6,"g",114),i.Vb(7,"g",115),i.Vb(8,"g",116),i.Qb(9,"circle",12),i.Qb(10,"path",117),i.Ub(),i.Vb(11,"g",14),i.Qb(12,"ellipse",118),i.Qb(13,"ellipse",16),i.Qb(14,"rect",17),i.Qb(15,"rect",18),i.Qb(16,"rect",19),i.Qb(17,"rect",20),i.Qb(18,"rect",21),i.Qb(19,"rect",22),i.Qb(20,"rect",23),i.Qb(21,"rect",24),i.Qb(22,"rect",25),i.Qb(23,"rect",26),i.Qb(24,"rect",27),i.Qb(25,"rect",28),i.Qb(26,"rect",29),i.Ub(),i.Ub(),i.Vb(27,"g",119),i.Qb(28,"polygon",80),i.Qb(29,"polygon",120),i.Qb(30,"path",82),i.Ub(),i.Vb(31,"g",121),i.Qb(32,"polygon",84),i.Qb(33,"path",85),i.Qb(34,"rect",86),i.Qb(35,"path",87),i.Qb(36,"rect",88),i.Qb(37,"rect",89),i.Qb(38,"rect",90),i.Qb(39,"rect",91),i.Qb(40,"circle",122),i.Qb(41,"path",93),i.Vb(42,"g",94),i.Vb(43,"g",95),i.Qb(44,"g",96),i.Ub(),i.Qb(45,"g",97),i.Ub(),i.Qb(46,"path",123),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.fc(),i.Vb(47,"div",30),i.Vb(48,"mat-card-title"),i.Kc(49,"Step 3: Receive funds back"),i.Ub(),i.Ub(),i.Vb(50,"div",31),i.Vb(51,"mat-card-subtitle",32),i.Kc(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.oc("@sliderAnimation",e.animationDirection),i.Db(1),i.oc("ngClass",i.tc(2,ge,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function ve(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",6),i.dc("swipe",function(t){return i.zc(e),i.hc().onSwipe(t)}),i.gc(),i.Vb(1,"svg",124),i.Vb(2,"desc"),i.Kc(3,"Created with Sketch."),i.Ub(),i.Vb(4,"defs"),i.Vb(5,"linearGradient",34),i.Qb(6,"stop",35),i.Qb(7,"stop",36),i.Qb(8,"stop",37),i.Ub(),i.Ub(),i.Vb(9,"g",8),i.Vb(10,"g",125),i.Vb(11,"g",126),i.Vb(12,"g",42),i.Qb(13,"rect",127),i.Qb(14,"rect",128),i.Qb(15,"rect",129),i.Qb(16,"circle",130),i.Qb(17,"rect",131),i.Qb(18,"rect",132),i.Qb(19,"circle",133),i.Qb(20,"rect",134),i.Qb(21,"rect",135),i.Qb(22,"rect",136),i.Qb(23,"rect",137),i.Qb(24,"rect",138),i.Qb(25,"circle",139),i.Qb(26,"circle",140),i.Qb(27,"circle",141),i.Ub(),i.Vb(28,"g",142),i.Vb(29,"g",143),i.Vb(30,"g",144),i.Qb(31,"path",145),i.Qb(32,"rect",146),i.Qb(33,"polygon",147),i.Vb(34,"g",148),i.Qb(35,"path",149),i.Ub(),i.Qb(36,"rect",150),i.Qb(37,"rect",151),i.Qb(38,"rect",152),i.Qb(39,"rect",153),i.Qb(40,"rect",154),i.Qb(41,"rect",155),i.Qb(42,"rect",156),i.Qb(43,"path",157),i.Qb(44,"path",158),i.Ub(),i.Vb(45,"g",159),i.Qb(46,"path",160),i.Qb(47,"path",161),i.Qb(48,"path",162),i.Qb(49,"path",163),i.Qb(50,"path",164),i.Qb(51,"path",165),i.Qb(52,"path",166),i.Qb(53,"path",167),i.Qb(54,"path",168),i.Qb(55,"path",169),i.Qb(56,"path",170),i.Qb(57,"circle",171),i.Qb(58,"circle",172),i.Ub(),i.Qb(59,"path",173),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.fc(),i.Vb(60,"div",30),i.Vb(61,"mat-card-title"),i.Kc(62,"Done!"),i.Ub(),i.Ub(),i.Vb(63,"div",31),i.Vb(64,"mat-card-subtitle",32),i.Kc(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. "),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.oc("@sliderAnimation",e.animationDirection),i.Db(1),i.oc("ngClass",i.tc(2,ge,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}let Le=(()=>{class e{constructor(e){this.commonService=e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new i.o,this.screenSize="",this.screenSizeEnum=p.q}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 e.\u0275fac=function(t){return new(t||e)(i.Pb(x.a))},e.\u0275cmp=i.Jb({type:e,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,t){if(1&e&&(i.Ic(0,fe,1,0,"ng-container",0),i.Ic(1,ye,32,5,"ng-template",null,1,i.Jc),i.Ic(3,Ce,51,5,"ng-template",null,2,i.Jc),i.Ic(5,xe,74,5,"ng-template",null,3,i.Jc),i.Ic(7,we,53,5,"ng-template",null,4,i.Jc),i.Ic(9,ve,66,5,"ng-template",null,5,i.Jc)),2&e){const e=i.wc(2),n=i.wc(4),a=i.wc(6),o=i.wc(8),s=i.wc(10);i.oc("ngTemplateOutlet",1===t.stepNumber?e:2===t.stepNumber?n:3===t.stepNumber?a:4===t.stepNumber?o:s)}},directives:[a.t,w.c,w.a,w.b,a.m,I.a,U.f,U.e],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[pe.a]}}),e})();function Ue(e,t){1&e&&i.Rb(0)}const Ve=function(e,t){return{"small-svg":e,"large-svg":t}};function Se(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",6),i.dc("swipe",function(t){return i.zc(e),i.hc().onSwipe(t)}),i.gc(),i.Vb(1,"svg",7),i.Vb(2,"desc"),i.Kc(3,"Created with Sketch."),i.Ub(),i.Vb(4,"g",8),i.Vb(5,"g",9),i.Vb(6,"g",10),i.Vb(7,"g",11),i.Qb(8,"circle",12),i.Qb(9,"path",13),i.Ub(),i.Vb(10,"g",14),i.Qb(11,"ellipse",15),i.Qb(12,"ellipse",16),i.Qb(13,"rect",17),i.Qb(14,"rect",18),i.Qb(15,"rect",19),i.Qb(16,"rect",20),i.Qb(17,"rect",21),i.Qb(18,"rect",22),i.Qb(19,"rect",23),i.Qb(20,"rect",24),i.Qb(21,"rect",25),i.Qb(22,"rect",26),i.Qb(23,"rect",27),i.Qb(24,"rect",28),i.Qb(25,"rect",29),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.fc(),i.Vb(26,"div",30),i.Vb(27,"mat-card-title"),i.Kc(28,"Loop In explained."),i.Ub(),i.Ub(),i.Vb(29,"div",31),i.Vb(30,"mat-card-subtitle",32),i.Kc(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.oc("@sliderAnimation",e.animationDirection),i.Db(1),i.oc("ngClass",i.tc(2,Ve,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function De(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",6),i.dc("swipe",function(t){return i.zc(e),i.hc().onSwipe(t)}),i.gc(),i.Vb(1,"svg",33),i.Vb(2,"desc"),i.Kc(3,"Created with Sketch."),i.Ub(),i.Vb(4,"defs"),i.Vb(5,"linearGradient",34),i.Qb(6,"stop",35),i.Qb(7,"stop",36),i.Qb(8,"stop",37),i.Ub(),i.Ub(),i.Vb(9,"g",8),i.Vb(10,"g",38),i.Vb(11,"g",39),i.Vb(12,"g",40),i.Qb(13,"rect",41),i.Qb(14,"rect",42),i.Qb(15,"rect",43),i.Qb(16,"circle",44),i.Qb(17,"rect",45),i.Qb(18,"rect",46),i.Qb(19,"circle",47),i.Qb(20,"rect",48),i.Qb(21,"rect",49),i.Qb(22,"rect",50),i.Qb(23,"rect",51),i.Qb(24,"rect",52),i.Qb(25,"circle",53),i.Qb(26,"circle",54),i.Qb(27,"circle",55),i.Ub(),i.Vb(28,"g",56),i.Vb(29,"g",57),i.Vb(30,"g",58),i.Qb(31,"path",59),i.Qb(32,"rect",60),i.Qb(33,"polygon",61),i.Vb(34,"g",62),i.Qb(35,"path",63),i.Ub(),i.Qb(36,"rect",64),i.Qb(37,"rect",65),i.Qb(38,"rect",66),i.Qb(39,"rect",67),i.Qb(40,"rect",68),i.Qb(41,"rect",69),i.Qb(42,"rect",70),i.Qb(43,"path",71),i.Qb(44,"path",72),i.Ub(),i.Vb(45,"g",73),i.Qb(46,"path",74),i.Qb(47,"path",75),i.Qb(48,"path",76),i.Qb(49,"path",77),i.Qb(50,"path",78),i.Qb(51,"path",79),i.Qb(52,"path",80),i.Qb(53,"path",81),i.Qb(54,"path",82),i.Qb(55,"path",83),i.Qb(56,"path",84),i.Qb(57,"circle",85),i.Qb(58,"circle",86),i.Ub(),i.Qb(59,"path",87),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.fc(),i.Vb(60,"div",30),i.Vb(61,"mat-card-title"),i.Kc(62,"Step 1: Deciding to Loop In"),i.Ub(),i.Ub(),i.Vb(63,"div",31),i.Vb(64,"mat-card-subtitle",32),i.Kc(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.oc("@sliderAnimation",e.animationDirection),i.Db(1),i.oc("ngClass",i.tc(2,Ve,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Ie(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",6),i.dc("swipe",function(t){return i.zc(e),i.hc().onSwipe(t)}),i.gc(),i.Vb(1,"svg",88),i.Vb(2,"desc"),i.Kc(3,"Created with Sketch."),i.Ub(),i.Vb(4,"defs"),i.Vb(5,"linearGradient",89),i.Qb(6,"stop",35),i.Qb(7,"stop",36),i.Qb(8,"stop",37),i.Ub(),i.Ub(),i.Vb(9,"g",90),i.Vb(10,"g",91),i.Vb(11,"g",92),i.Vb(12,"g",93),i.Vb(13,"g",94),i.Qb(14,"circle",95),i.Qb(15,"path",96),i.Vb(16,"g",97),i.Qb(17,"polygon",98),i.Qb(18,"polygon",99),i.Qb(19,"path",100),i.Ub(),i.Vb(20,"g",101),i.Qb(21,"polygon",102),i.Qb(22,"path",103),i.Qb(23,"rect",104),i.Qb(24,"path",105),i.Qb(25,"rect",106),i.Qb(26,"rect",107),i.Qb(27,"rect",108),i.Qb(28,"rect",109),i.Qb(29,"circle",110),i.Qb(30,"path",111),i.Vb(31,"g",112),i.Vb(32,"g",113),i.Qb(33,"g",114),i.Ub(),i.Qb(34,"g",115),i.Ub(),i.Ub(),i.Ub(),i.Vb(35,"g",116),i.Vb(36,"g",40),i.Qb(37,"rect",117),i.Qb(38,"rect",42),i.Qb(39,"rect",43),i.Qb(40,"circle",118),i.Qb(41,"rect",45),i.Qb(42,"rect",46),i.Qb(43,"circle",119),i.Qb(44,"rect",48),i.Qb(45,"rect",49),i.Qb(46,"rect",50),i.Qb(47,"rect",51),i.Qb(48,"rect",52),i.Qb(49,"circle",120),i.Qb(50,"circle",54),i.Qb(51,"circle",55),i.Qb(52,"circle",121),i.Ub(),i.Vb(53,"g",56),i.Vb(54,"g",57),i.Vb(55,"g",58),i.Qb(56,"path",59),i.Qb(57,"rect",60),i.Qb(58,"polygon",61),i.Vb(59,"g",122),i.Qb(60,"path",63),i.Ub(),i.Qb(61,"rect",123),i.Qb(62,"rect",124),i.Qb(63,"rect",125),i.Qb(64,"rect",126),i.Qb(65,"rect",127),i.Qb(66,"rect",128),i.Qb(67,"rect",129),i.Qb(68,"path",130),i.Qb(69,"path",72),i.Ub(),i.Vb(70,"g",73),i.Qb(71,"path",131),i.Qb(72,"path",132),i.Qb(73,"path",133),i.Qb(74,"path",134),i.Qb(75,"path",135),i.Qb(76,"path",136),i.Qb(77,"path",80),i.Qb(78,"path",81),i.Qb(79,"path",137),i.Qb(80,"path",83),i.Qb(81,"path",138),i.Qb(82,"circle",85),i.Qb(83,"circle",86),i.Ub(),i.Qb(84,"path",139),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Qb(85,"path",140),i.Qb(86,"path",141),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.fc(),i.Vb(87,"div",30),i.Vb(88,"mat-card-title"),i.Kc(89,"Step 2: Send payment out"),i.Ub(),i.Ub(),i.Vb(90,"div",31),i.Vb(91,"mat-card-subtitle",32),i.Kc(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.oc("@sliderAnimation",e.animationDirection),i.Db(1),i.oc("ngClass",i.tc(2,Ve,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Fe(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",6),i.dc("swipe",function(t){return i.zc(e),i.hc().onSwipe(t)}),i.gc(),i.Vb(1,"svg",142),i.Vb(2,"desc"),i.Kc(3,"Created with Sketch."),i.Ub(),i.Vb(4,"g",90),i.Vb(5,"g",143),i.Vb(6,"g",144),i.Vb(7,"g"),i.Vb(8,"g",145),i.Vb(9,"g",146),i.Qb(10,"circle",12),i.Qb(11,"path",147),i.Ub(),i.Vb(12,"g",14),i.Qb(13,"ellipse",148),i.Qb(14,"ellipse",16),i.Qb(15,"rect",17),i.Qb(16,"rect",18),i.Qb(17,"rect",19),i.Qb(18,"rect",20),i.Qb(19,"rect",21),i.Qb(20,"rect",22),i.Qb(21,"rect",23),i.Qb(22,"rect",24),i.Qb(23,"rect",25),i.Qb(24,"rect",26),i.Qb(25,"rect",27),i.Qb(26,"rect",28),i.Qb(27,"rect",29),i.Ub(),i.Ub(),i.Vb(28,"g",149),i.Qb(29,"polygon",150),i.Qb(30,"polygon",99),i.Qb(31,"path",151),i.Ub(),i.Vb(32,"g",152),i.Qb(33,"polygon",102),i.Qb(34,"path",103),i.Qb(35,"rect",104),i.Qb(36,"path",105),i.Qb(37,"rect",106),i.Qb(38,"rect",107),i.Qb(39,"rect",108),i.Qb(40,"rect",109),i.Qb(41,"circle",110),i.Qb(42,"path",111),i.Vb(43,"g",112),i.Vb(44,"g",113),i.Qb(45,"g",114),i.Ub(),i.Qb(46,"g",115),i.Ub(),i.Ub(),i.Ub(),i.Qb(47,"path",153),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.fc(),i.Vb(48,"div",30),i.Vb(49,"mat-card-title"),i.Kc(50,"Step 3: Recieve Funds Off-chain"),i.Ub(),i.Ub(),i.Vb(51,"div",31),i.Vb(52,"mat-card-subtitle",32),i.Kc(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.oc("@sliderAnimation",e.animationDirection),i.Db(1),i.oc("ngClass",i.tc(2,Ve,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function _e(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",6),i.dc("swipe",function(t){return i.zc(e),i.hc().onSwipe(t)}),i.gc(),i.Vb(1,"svg",154),i.Vb(2,"desc"),i.Kc(3,"Created with Sketch."),i.Ub(),i.Vb(4,"defs"),i.Vb(5,"linearGradient",34),i.Qb(6,"stop",35),i.Qb(7,"stop",36),i.Qb(8,"stop",37),i.Ub(),i.Ub(),i.Vb(9,"g",90),i.Vb(10,"g",155),i.Vb(11,"g",156),i.Vb(12,"g",157),i.Vb(13,"g",158),i.Vb(14,"g",40),i.Qb(15,"rect",159),i.Qb(16,"rect",160),i.Qb(17,"rect",161),i.Qb(18,"circle",162),i.Qb(19,"rect",163),i.Qb(20,"rect",164),i.Qb(21,"circle",165),i.Qb(22,"rect",166),i.Qb(23,"rect",167),i.Qb(24,"rect",168),i.Qb(25,"rect",169),i.Qb(26,"circle",170),i.Qb(27,"circle",171),i.Ub(),i.Vb(28,"g",172),i.Qb(29,"path",173),i.Qb(30,"rect",174),i.Qb(31,"polygon",175),i.Qb(32,"circle",176),i.Qb(33,"path",177),i.Qb(34,"rect",178),i.Qb(35,"rect",179),i.Qb(36,"rect",180),i.Qb(37,"rect",181),i.Qb(38,"rect",182),i.Qb(39,"rect",183),i.Qb(40,"rect",184),i.Qb(41,"path",185),i.Qb(42,"path",186),i.Ub(),i.Qb(43,"path",187),i.Ub(),i.Ub(),i.Qb(44,"circle",188),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.fc(),i.Vb(45,"div",30),i.Vb(46,"mat-card-title"),i.Kc(47,"Done!"),i.Ub(),i.Ub(),i.Vb(48,"div",31),i.Vb(49,"mat-card-subtitle",32),i.Kc(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. "),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.oc("@sliderAnimation",e.animationDirection),i.Db(1),i.oc("ngClass",i.tc(2,Ve,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}let ke=(()=>{class e{constructor(e){this.commonService=e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new i.o,this.screenSize="",this.screenSizeEnum=p.q}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 e.\u0275fac=function(t){return new(t||e)(i.Pb(x.a))},e.\u0275cmp=i.Jb({type:e,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,t){if(1&e&&(i.Ic(0,Ue,1,0,"ng-container",0),i.Ic(1,Se,32,5,"ng-template",null,1,i.Jc),i.Ic(3,De,66,5,"ng-template",null,2,i.Jc),i.Ic(5,Ie,93,5,"ng-template",null,3,i.Jc),i.Ic(7,Fe,54,5,"ng-template",null,4,i.Jc),i.Ic(9,_e,51,5,"ng-template",null,5,i.Jc)),2&e){const e=i.wc(2),n=i.wc(4),a=i.wc(6),o=i.wc(8),s=i.wc(10);i.oc("ngTemplateOutlet",1===t.stepNumber?e:2===t.stepNumber?n:3===t.stepNumber?a:4===t.stepNumber?o:s)}},directives:[a.t,w.c,w.a,w.b,a.m,I.a,U.f,U.e],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[pe.a]}}),e})();const Ae=["stepper"];function Te(e,t){if(1&e&&(i.Vb(0,"div",48),i.Vb(1,"p",49),i.Vb(2,"strong"),i.Kc(3,"Channel Peer:\xa0"),i.Ub(),i.Kc(4),i.ic(5,"titlecase"),i.Ub(),i.Vb(6,"p",50),i.Vb(7,"strong"),i.Kc(8,"Channel ID:\xa0"),i.Ub(),i.Kc(9),i.Ub(),i.Qb(10,"p",50),i.Ub()),2&e){const e=i.hc(2);i.Db(4),i.Lc(i.jc(5,2,e.channel.remote_alias)),i.Db(5),i.Lc(e.channel.chan_id)}}function Pe(e,t){if(1&e&&i.Kc(0),2&e){const e=i.hc(2);i.Lc(e.inputFormLabel)}}function Oe(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Amount is required."),i.Ub())}function Re(e,t){if(1&e&&(i.Vb(0,"mat-error"),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.Mc("Amount must be greater than or equal to ",i.jc(2,1,e.minQuote.amount),".")}}function Ke(e,t){if(1&e&&(i.Vb(0,"mat-error"),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.Mc("Amount must be less than or equal to ",i.jc(2,1,e.maxQuote.amount),".")}}function Me(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Confirmation target is required."),i.Ub())}function Qe(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Confirmation target must be a positive number."),i.Ub())}function ze(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Percentage is required."),i.Ub())}function Ee(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Percentage must be a positive number."),i.Ub())}function Ne(e,t){if(1&e&&(i.Vb(0,"mat-error"),i.Kc(1),i.Ub()),2&e){const e=i.hc(3);i.Db(1),i.Mc("Percentage must be less than or equal to ",e.maxRoutingFeePercentage,".")}}function Ge(e,t){if(1&e&&(i.Vb(0,"mat-form-field",50),i.Qb(1,"input",51),i.Ic(2,ze,2,0,"mat-error",25),i.Ic(3,Ee,2,0,"mat-error",25),i.Ic(4,Ne,2,1,"mat-error",25),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.oc("step",1),i.Db(1),i.oc("ngIf",null==e.inputFormGroup.controls.routingFeePercent.errors?null:e.inputFormGroup.controls.routingFeePercent.errors.required),i.Db(1),i.oc("ngIf",null==e.inputFormGroup.controls.routingFeePercent.errors?null:e.inputFormGroup.controls.routingFeePercent.errors.min),i.Db(1),i.oc("ngIf",null==e.inputFormGroup.controls.routingFeePercent.errors?null:e.inputFormGroup.controls.routingFeePercent.errors.max)}}function qe(e,t){1&e&&(i.Vb(0,"mat-slide-toggle",52),i.Kc(1,"Fast"),i.Ub())}function Be(e,t){if(1&e&&i.Kc(0),2&e){const e=i.hc(2);i.Lc(e.quoteFormLabel)}}function He(e,t){1&e&&(i.Vb(0,"p",53),i.Vb(1,"mat-icon",54),i.Kc(2,"close"),i.Ub(),i.Kc(3,"Local balance amount is insufficient for swap."),i.Ub())}function je(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",55),i.dc("click",function(){return i.zc(e),i.hc(2).onValidateAmount()}),i.Kc(1,"Next"),i.Ub()}}function We(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",56),i.dc("click",function(){return i.zc(e),i.hc(2).onLoop()}),i.Kc(1),i.Ub()}if(2&e){const e=i.hc(2);i.Db(1),i.Mc("Initiate ",e.loopDirectionCaption,"")}}function $e(e,t){if(1&e&&i.Kc(0),2&e){const e=i.hc(3);i.Lc(e.addressFormLabel)}}function Xe(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Address is required."),i.Ub())}function Je(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-step",16),i.Vb(1,"form",17),i.Ic(2,$e,1,1,"ng-template",18),i.Vb(3,"div",57),i.Vb(4,"mat-radio-group",58),i.dc("change",function(t){return i.zc(e),i.hc(2).onAddressTypeChange(t)}),i.Vb(5,"mat-radio-button",59),i.Kc(6,"Node Local Address"),i.Ub(),i.Vb(7,"mat-radio-button",60),i.Kc(8,"External Address"),i.Ub(),i.Ub(),i.Vb(9,"mat-form-field",61),i.Qb(10,"input",62),i.Ic(11,Xe,2,0,"mat-error",25),i.Ub(),i.Ub(),i.Vb(12,"div",29),i.Vb(13,"button",63),i.dc("click",function(){return i.zc(e),i.hc(2).onLoop()}),i.Kc(14),i.Ub(),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc(2);i.oc("stepControl",e.addressFormGroup)("editable",e.flgEditable),i.Db(1),i.oc("formGroup",e.addressFormGroup),i.Db(9),i.oc("required","external"===e.addressFormGroup.controls.addressType.value),i.Db(1),i.oc("ngIf",null==e.addressFormGroup.controls.address.errors?null:e.addressFormGroup.controls.address.errors.required),i.Db(3),i.Mc("Initiate ",e.loopDirectionCaption,"")}}function Ze(e,t){if(1&e&&i.Kc(0),2&e){const e=i.hc(2);i.Mc("",e.loopDirectionCaption," Status")}}function Ye(e,t){if(1&e&&(i.Vb(0,"mat-icon",64),i.Kc(1),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.Lc(e.loopStatus&&null!=e.loopStatus&&e.loopStatus.id_bytes?"check":"close")}}function et(e,t){1&e&&i.Qb(0,"div")}function tt(e,t){1&e&&i.Qb(0,"mat-progress-bar",65)}function nt(e,t){if(1&e&&(i.Vb(0,"h4",66),i.Kc(1),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.Lc(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 at(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",67),i.dc("click",function(){return i.zc(e),i.hc(2).goToLoop()}),i.Kc(1,"Check Status"),i.Ub()}}function ot(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",68),i.dc("click",function(){return i.zc(e),i.hc(2).onRestart()}),i.Kc(1,"Start Again"),i.Ub()}}function it(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",3),i.Vb(1,"div",4),i.Vb(2,"mat-card-header",5),i.Vb(3,"div",6),i.Vb(4,"span",7),i.Kc(5),i.Ub(),i.Ub(),i.Vb(6,"div",8),i.Vb(7,"button",9),i.dc("click",function(){return i.zc(e),i.hc().showInfo()}),i.Kc(8,"?"),i.Ub(),i.Vb(9,"button",10),i.dc("click",function(){return i.zc(e),i.hc().onClose()}),i.Kc(10,"X"),i.Ub(),i.Ub(),i.Ub(),i.Vb(11,"mat-card-content",11),i.Vb(12,"div",12),i.Ic(13,Te,11,4,"div",13),i.Vb(14,"mat-vertical-stepper",14,15),i.dc("selectionChange",function(t){return i.zc(e),i.hc().stepSelectionChanged(t)}),i.Vb(16,"mat-step",16),i.Vb(17,"form",17),i.Ic(18,Pe,1,1,"ng-template",18),i.Vb(19,"div",19),i.Qb(20,"rtl-loop-quote",20),i.Qb(21,"rtl-loop-quote",20),i.Ub(),i.Vb(22,"div",21),i.Vb(23,"mat-form-field",22),i.Qb(24,"input",23),i.Vb(25,"mat-hint"),i.Kc(26),i.ic(27,"number"),i.ic(28,"number"),i.Ub(),i.Vb(29,"span",24),i.Kc(30,"Sats"),i.Ub(),i.Ic(31,Oe,2,0,"mat-error",25),i.Ic(32,Re,3,3,"mat-error",25),i.Ic(33,Ke,3,3,"mat-error",25),i.Ub(),i.Vb(34,"mat-form-field",22),i.Qb(35,"input",26),i.Ic(36,Me,2,0,"mat-error",25),i.Ic(37,Qe,2,0,"mat-error",25),i.Ub(),i.Ic(38,Ge,5,4,"mat-form-field",27),i.Ic(39,qe,2,0,"mat-slide-toggle",28),i.Ub(),i.Vb(40,"div",29),i.Vb(41,"button",30),i.dc("click",function(){return i.zc(e),i.hc().onEstimateQuote()}),i.Kc(42,"Estimate Quote"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Vb(43,"mat-step",16),i.Vb(44,"form",17),i.Ic(45,Be,1,1,"ng-template",18),i.Qb(46,"rtl-loop-quote",31),i.Ic(47,He,4,0,"p",32),i.Vb(48,"div",29),i.Ic(49,je,2,0,"button",33),i.Ic(50,We,2,1,"button",34),i.Ub(),i.Ub(),i.Ub(),i.Ic(51,Je,15,6,"mat-step",35),i.Vb(52,"mat-step",36),i.Vb(53,"form",17),i.Ic(54,Ze,1,1,"ng-template",18),i.Vb(55,"div",37),i.Vb(56,"mat-expansion-panel",38),i.Vb(57,"mat-expansion-panel-header"),i.Vb(58,"mat-panel-title"),i.Vb(59,"span",39),i.Kc(60),i.Ic(61,Ye,2,1,"mat-icon",40),i.Ub(),i.Ub(),i.Ub(),i.Ic(62,et,1,0,"div",41),i.Ub(),i.Ic(63,tt,1,0,"mat-progress-bar",42),i.Ub(),i.Ic(64,nt,2,1,"h4",43),i.Vb(65,"div",29),i.Ic(66,at,2,0,"button",44),i.Ic(67,ot,2,0,"button",45),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Vb(68,"div",46),i.Vb(69,"button",47),i.Kc(70,"Close"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc(),t=i.wc(2);i.oc("@opacityAnimation",void 0),i.Db(3),i.oc("fxFlex",e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM?"83":"91"),i.Db(2),i.Lc(e.channel?"Channel "+e.loopDirectionCaption:e.loopDirectionCaption),i.Db(1),i.oc("fxFlex",e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM?"17":"9"),i.Db(7),i.oc("ngIf",e.channel),i.Db(1),i.oc("linear",!0),i.Db(2),i.oc("stepControl",e.inputFormGroup)("editable",e.flgEditable),i.Db(1),i.oc("formGroup",e.inputFormGroup),i.Db(3),i.oc("quote",e.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),i.Db(1),i.oc("quote",e.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),i.Db(2),i.oc("fxFlex",e.direction===e.swapTypeEnum.LOOP_OUT?"30":"48"),i.Db(1),i.oc("step",1e3),i.Db(2),i.Nc("Range: ",i.jc(27,51,e.minQuote.amount),"-",i.jc(28,53,e.maxQuote.amount),""),i.Db(5),i.oc("ngIf",null==e.inputFormGroup.controls.amount.errors?null:e.inputFormGroup.controls.amount.errors.required),i.Db(1),i.oc("ngIf",null==e.inputFormGroup.controls.amount.errors?null:e.inputFormGroup.controls.amount.errors.min),i.Db(1),i.oc("ngIf",null==e.inputFormGroup.controls.amount.errors?null:e.inputFormGroup.controls.amount.errors.max),i.Db(1),i.oc("fxFlex",e.direction===e.swapTypeEnum.LOOP_OUT?"20":"48"),i.Db(1),i.oc("step",1),i.Db(1),i.oc("ngIf",null==e.inputFormGroup.controls.sweepConfTarget.errors?null:e.inputFormGroup.controls.sweepConfTarget.errors.required),i.Db(1),i.oc("ngIf",null==e.inputFormGroup.controls.sweepConfTarget.errors?null:e.inputFormGroup.controls.sweepConfTarget.errors.min),i.Db(1),i.oc("ngIf",e.direction===e.swapTypeEnum.LOOP_OUT),i.Db(1),i.oc("ngIf",e.direction===e.swapTypeEnum.LOOP_OUT),i.Db(4),i.oc("stepControl",e.quoteFormGroup)("editable",e.flgEditable),i.Db(1),i.oc("formGroup",e.quoteFormGroup),i.Db(2),i.oc("quote",e.quote)("showPanel",!1),i.Db(1),i.oc("ngIf",e.inputFormGroup.controls.amount.value>e.localBalanceToCompare),i.Db(2),i.oc("ngIf",e.direction===e.swapTypeEnum.LOOP_OUT),i.Db(1),i.oc("ngIf",e.direction===e.swapTypeEnum.LOOP_IN),i.Db(1),i.oc("ngIf",e.direction===e.swapTypeEnum.LOOP_OUT),i.Db(1),i.oc("stepControl",e.statusFormGroup),i.Db(1),i.oc("formGroup",e.statusFormGroup),i.Db(3),i.oc("expanded",!!e.loopStatus),i.Db(4),i.Lc(e.loopStatus?e.loopStatus.id_bytes?e.loopDirectionCaption+" request details":e.loopDirectionCaption+" error details":"Waiting for "+e.loopDirectionCaption+" request..."),i.Db(1),i.oc("ngIf",e.loopStatus),i.Db(1),i.oc("ngIf",!e.loopStatus)("ngIfElse",t),i.Db(1),i.oc("ngIf",!e.loopStatus),i.Db(1),i.oc("ngIf",e.loopStatus),i.Db(2),i.oc("ngIf",e.loopStatus&&e.loopStatus.id_bytes&&e.channel),i.Db(1),i.oc("ngIf",e.loopStatus&&(e.loopStatus.error||!e.loopStatus.id_bytes)),i.Db(2),i.oc("mat-dialog-close",!1)}}function st(e,t){if(1&e&&i.Qb(0,"rtl-loop-status",69),2&e){const e=i.hc();i.oc("loopStatus",e.loopStatus)}}function ct(e,t){if(1&e){const e=i.Wb();i.Vb(0,"rtl-loop-out-info-graphics",87),i.dc("stepNumberChange",function(t){return i.zc(e),i.hc(2).stepNumber=t}),i.Ub()}if(2&e){const e=i.hc(2);i.oc("stepNumber",e.stepNumber)("animationDirection",e.animationDirection)}}function lt(e,t){if(1&e){const e=i.Wb();i.Vb(0,"rtl-loop-in-info-graphics",87),i.dc("stepNumberChange",function(t){return i.zc(e),i.hc(2).stepNumber=t}),i.Ub()}if(2&e){const e=i.hc(2);i.oc("stepNumber",e.stepNumber)("animationDirection",e.animationDirection)}}const rt=function(e,t){return{"dot-primary":e,"dot-primary-lighter":t}};function bt(e,t){if(1&e){const e=i.Wb();i.Vb(0,"span",88),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc(2).onStepChanged(n)}),i.Qb(1,"p",89),i.Ub()}if(2&e){const e=t.$implicit,n=i.hc(2);i.Db(1),i.oc("ngClass",i.tc(1,rt,n.stepNumber===e,n.stepNumber!==e))}}function ut(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",90),i.dc("click",function(){return i.zc(e),i.hc(2).onReadMore()}),i.Kc(1,"Read More"),i.Ub()}}function dt(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",91),i.dc("click",function(){return i.zc(e),i.hc(2).onStepChanged(4)}),i.Kc(1,"Back"),i.Ub()}}function ht(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",92),i.dc("click",function(){i.zc(e);const t=i.hc(2);return t.flgShowInfo=!1,t.stepNumber=1}),i.Kc(1,"Close"),i.Ub()}}function mt(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",93),i.dc("click",function(){i.zc(e);const t=i.hc(2);return t.flgShowInfo=!1,t.stepNumber=1}),i.Kc(1,"Close"),i.Ub()}}function pt(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",94),i.dc("click",function(){i.zc(e);const t=i.hc(2);return t.onStepChanged(t.stepNumber-1)}),i.Kc(1,"Back"),i.Ub()}}function ft(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",95),i.dc("click",function(){i.zc(e);const t=i.hc(2);return t.onStepChanged(t.stepNumber+1)}),i.Kc(1,"Next"),i.Ub()}}const gt=function(){return[1,2,3,4,5]};function yt(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",70),i.Vb(1,"div",71),i.Vb(2,"mat-card-header",72),i.Vb(3,"div",73),i.Qb(4,"span",7),i.Ub(),i.Vb(5,"div",74),i.Vb(6,"button",75),i.dc("click",function(){i.zc(e);const t=i.hc();return t.flgShowInfo=!1,t.stepNumber=1}),i.Kc(7,"X"),i.Ub(),i.Ub(),i.Ub(),i.Vb(8,"mat-card-content",76),i.Ic(9,ct,1,2,"rtl-loop-out-info-graphics",77),i.Ic(10,lt,1,2,"rtl-loop-in-info-graphics",77),i.Ub(),i.Vb(11,"div",78),i.Ic(12,bt,2,4,"span",79),i.Ub(),i.Vb(13,"div",80),i.Ic(14,ut,2,0,"button",81),i.Ic(15,dt,2,0,"button",82),i.Ic(16,ht,2,0,"button",83),i.Ic(17,mt,2,0,"button",84),i.Ic(18,pt,2,0,"button",85),i.Ic(19,ft,2,0,"button",86),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.oc("@opacityAnimation",void 0),i.Db(9),i.oc("ngIf",e.direction===e.swapTypeEnum.LOOP_OUT),i.Db(1),i.oc("ngIf",e.direction===e.swapTypeEnum.LOOP_IN),i.Db(2),i.oc("ngForOf",i.rc(10,gt)),i.Db(2),i.oc("ngIf",5===e.stepNumber),i.Db(1),i.oc("ngIf",5===e.stepNumber),i.Db(1),i.oc("ngIf",5===e.stepNumber),i.Db(1),i.oc("ngIf",e.stepNumber<5),i.Db(1),i.oc("ngIf",e.stepNumber>1&&e.stepNumber<5),i.Db(1),i.oc("ngIf",e.stepNumber<5)}}let Ct=(()=>{class e{constructor(e,t,n,a,o,i,s,c,l){this.dialogRef=e,this.data=t,this.store=n,this.loopService=a,this.formBuilder=o,this.decimalPipe=i,this.logger=s,this.router=c,this.commonService=l,this.faInfoCircle=m.t,this.swapTypeEnum=p.s,this.direction=p.s.LOOP_OUT,this.loopDirectionCaption="Loop out",this.loopStatus=null,this.inputFormLabel="Amount to loop out",this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address",this.maxRoutingFeePercentage=2,this.prepayRoutingFee=36,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=p.q,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a,new b.a,new b.a]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.channel=this.data.channel,this.minQuote=this.data.minQuote?this.data.minQuote:{},this.maxQuote=this.data.maxQuote?this.data.maxQuote:{},this.direction=this.data.direction,this.loopDirectionCaption=this.direction===p.s.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[B.t.required,B.t.min(this.minQuote.amount),B.t.max(this.maxQuote.amount)]],sweepConfTarget:[6,[B.t.required,B.t.min(1)]],routingFeePercent:[this.maxRoutingFeePercentage,[B.t.required,B.t.min(0),B.t.max(this.maxRoutingFeePercentage)]],fast:[!1,[B.t.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[B.t.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[6])).subscribe(e=>{this.localBalanceToCompare=this.channel?+this.channel.local_balance:+e.totalLocalBalance})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===p.s.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe(Object(u.a)(this.unSubs[4])).subscribe(e=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===p.s.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe(Object(u.a)(this.unSubs[5])).subscribe(e=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(e){"external"===e.value?(this.addressFormGroup.controls.address.setValidators([B.t.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onValidateAmount(){this.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===p.s.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0||this.inputFormGroup.controls.routingFeePercent.value>this.maxRoutingFeePercentage)||this.direction===p.s.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===p.s.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+this.quote.swap_fee_sat,+this.quote.htlc_publish_fee_sat,"",!0).pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{this.loopStatus=e,this.store.dispatch(new f.J),this.flgEditable=!0},e=>{this.loopStatus={error:e.error.error?e.error.error:e.error?e.error:e},this.flgEditable=!0,this.logger.error(e)});else{let e=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),t="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",n=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,this.prepayRoutingFee,+this.quote.prepay_amt_sat,+this.quote.swap_fee_sat,n,t).pipe(Object(u.a)(this.unSubs[1])).subscribe(e=>{this.loopStatus=e,this.store.dispatch(new f.J),this.flgEditable=!0},e=>{this.loopStatus={error:e.error.error?e.error.error:e.error?e.error:e},this.flgEditable=!0,this.logger.error(e)})}}onEstimateQuote(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;this.store.dispatch(new W.F("Getting Quotes..."));let e=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===p.s.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,e).pipe(Object(u.a)(this.unSubs[2])).subscribe(e=>{this.store.dispatch(new W.i),this.quote=e,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(Object(u.a)(this.unSubs[3])).subscribe(e=>{this.store.dispatch(new W.i),this.quote=e,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: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===p.s.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===p.s.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel=this.quote&&this.quote.swap_fee_sat&&(this.quote.htlc_sweep_fee_sat||this.quote.htlc_publish_fee_sat)&&this.quote.prepay_amt_sat?"Quote confirmed | Estimated Fees: "+this.decimalPipe.transform(+this.quote.swap_fee_sat+ +(this.quote.htlc_sweep_fee_sat?this.quote.htlc_sweep_fee_sat:this.quote.htlc_publish_fee_sat?this.quote.htlc_publish_fee_sat:0))+" Sats":"Quote confirmed",this.addressFormLabel=this.addressFormGroup.controls.addressType.value?"Withdrawal Address | Type: "+this.addressFormGroup.controls.addressType.value:"Withdrawal Address";break;default:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address"}(this.direction===p.s.LOOP_OUT&&1!==e.selectedIndex&&e.selectedIndex{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(H.f),i.Pb(H.a),i.Pb(y.h),i.Pb($.a),i.Pb(B.d),i.Pb(a.f),i.Pb(g.b),i.Pb(o.g),i.Pb(x.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-loop-modal"]],viewQuery:function(e,t){if(1&e&&i.Pc(Ae,!0),2&e){let e;i.vc(e=i.ec())&&(t.stepper=e.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",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",1,"padding-gap-x-large",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,"mt-5px"],["fxLayout","column"],["class","padding-gap-large","fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngIf"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"quote","termCaption","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"fxFlex"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Sweep Confirmation Target","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","fxFlex","15","tabindex","4","color","primary","formControlName","fast",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-stroked-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","placeholder","Max Off-chain Routing Fee (%)","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","fxFlex","15","tabindex","4","color","primary","formControlName","fast"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-stroked-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-stroked-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-stroked-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-flat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-flat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxLayout","row","fxFlex","5","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start",1,"padding-gap-x-large"],["fxFlex","8","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end"],["mat-stroked-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-stroked-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-stroked-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-stroked-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(e,t){1&e&&(i.Ic(0,it,71,55,"div",0),i.Ic(1,st,1,1,"ng-template",null,1,i.Jc),i.Ic(3,yt,20,11,"div",2)),2&e&&(i.oc("ngIf",!t.flgShowInfo),i.Db(3),i.oc("ngIf",t.flgShowInfo))},directives:[a.o,w.c,w.a,w.b,U.c,S.a,U.b,X.h,X.a,B.u,B.n,B.h,X.b,se,O.c,ce.b,B.q,B.c,le.a,B.m,B.g,B.s,O.f,O.g,J.c,J.e,J.f,H.d,O.b,re.a,R.a,D.a,be.b,be.a,s.a,me,a.n,Le,ke,a.m,I.a],pipes:[a.f,a.x],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{min-height:60rem}"],data:{animation:[j.b]}}),e})();function xt(e,t){if(1&e&&(i.Vb(0,"mat-hint",17),i.Vb(1,"strong",18),i.Kc(2,"Capacity: "),i.Ub(),i.Kc(3),i.ic(4,"number"),i.Ub()),2&e){const e=i.hc().$implicit;i.Db(3),i.Mc("",i.jc(4,1,e.remote_balance||0)," Sats")}}function wt(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",22),i.dc("click",function(){i.zc(e);const t=i.hc(2).$implicit;return i.hc(2).onLoopOut(t)}),i.Kc(1,"Loop Out"),i.Ub()}}function vt(e,t){if(1&e&&(i.Vb(0,"div",19),i.Vb(1,"mat-hint",20),i.Vb(2,"strong",18),i.Kc(3,"Capacity: "),i.Ub(),i.Kc(4),i.ic(5,"number"),i.Ub(),i.Ic(6,wt,2,0,"button",21),i.Ub()),2&e){const e=i.hc().$implicit,t=i.hc(2);i.Db(4),i.Mc("",i.jc(5,2,e.local_balance||0)," Sats"),i.Db(2),i.oc("ngIf",t.showLoop)}}function Lt(e,t){if(1&e&&i.Qb(0,"mat-progress-bar",23),2&e){const e=i.hc().$implicit,t=i.hc(2);i.pc("value",t.totalLiquidity>0?(+e.remote_balance||0)/t.totalLiquidity*100:0)}}function Ut(e,t){if(1&e&&i.Qb(0,"mat-progress-bar",23),2&e){const e=i.hc().$implicit,t=i.hc(2);i.pc("value",t.totalLiquidity>0?(+e.local_balance||0)/t.totalLiquidity*100:0)}}function Vt(e,t){if(1&e&&(i.Vb(0,"div",11),i.Vb(1,"span",12),i.Kc(2),i.ic(3,"slice"),i.Ub(),i.Vb(4,"div",13),i.Ic(5,xt,5,3,"mat-hint",14),i.Ic(6,vt,7,4,"div",15),i.Ub(),i.Ic(7,Lt,1,1,"mat-progress-bar",16),i.Ic(8,Ut,1,1,"mat-progress-bar",16),i.Ub()),2&e){const e=t.$implicit,n=i.hc(2);i.Db(1),i.pc("matTooltip",e.remote_alias||e.remote_pubkey),i.pc("matTooltipDisabled",(e.remote_alias||e.remote_pubkey).length<26),i.Db(1),i.Nc("",i.lc(3,8,e.remote_alias||e.remote_pubkey,0,24),"",(e.remote_alias||e.remote_pubkey).length>25?"...":"",""),i.Db(3),i.oc("ngIf","In"===n.direction),i.Db(1),i.oc("ngIf","Out"===n.direction),i.Db(1),i.oc("ngIf","In"===n.direction),i.Db(1),i.oc("ngIf","Out"===n.direction)}}function St(e,t){if(1&e&&(i.Vb(0,"div",9),i.Ic(1,Vt,9,12,"div",10),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("ngForOf",e.allChannels)}}function Dt(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",26),i.dc("click",function(){return i.zc(e),i.hc(2).goToChannels()}),i.Kc(1,"Open Channel"),i.Ub()}}function It(e,t){if(1&e&&(i.Vb(0,"div",24),i.Kc(1," No channels available. "),i.Ic(2,Dt,2,0,"button",25),i.Ub()),2&e){const e=i.hc();i.Db(2),i.oc("ngIf","Out"===e.direction)}}const Ft=function(e,t,n){return{"mb-4":e,"mb-2":t,"mb-1":n}};let _t=(()=>{class e{constructor(e,t,n,a){this.router=e,this.loopService=t,this.commonService=n,this.store=a,this.targetConf=6,this.screenSize="",this.screenSizeEnum=p.q,this.unSubs=[new b.a,new b.a]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{this.showLoop=!(!e.nodeSettings.swapServerUrl||""===e.nodeSettings.swapServerUrl.trim())})}goToChannels(){this.router.navigateByUrl("/lnd/connections")}onLoopOut(e){this.store.dispatch(new W.F("Getting Terms and Quotes...")),this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe(Object(u.a)(this.unSubs[1])).subscribe(t=>{this.store.dispatch(new W.i),this.store.dispatch(new W.C({minHeight:"56rem",data:{channel:e,minQuote:t[0],maxQuote:t[1],direction:p.s.LOOP_OUT,component:Ct}}))})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(o.g),i.Pb($.a),i.Pb(x.a),i.Pb(y.h))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels"},decls:13,vars:10,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[3,"perfectScrollbar",4,"ngIf","ngIfElse"],["noChannelBlock",""],[3,"perfectScrollbar"],["fxLayout","column",4,"ngFor","ngForOf"],["fxLayout","column"],[1,"dashboard-capacity-header","mt-2",3,"matTooltip","matTooltipDisabled"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["class","font-size-90 color-primary",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],[1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxFlex","85","fxLayoutAlign","start start",1,"font-size-90","color-primary"],["fxFlex","15","fxLayoutAlign","end start","class","button-link-dashboard","color","primary","mat-button","","aria-label","Loop Out",3,"click",4,"ngIf"],["fxFlex","15","fxLayoutAlign","end start","color","primary","mat-button","","aria-label","Loop Out",1,"button-link-dashboard",3,"click"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"]],template:function(e,t){if(1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"span",2),i.Kc(3,"Total Capacity"),i.Ub(),i.Vb(4,"mat-hint",3),i.Kc(5),i.ic(6,"number"),i.Ub(),i.Qb(7,"mat-progress-bar",4),i.Ub(),i.Vb(8,"div",5),i.Qb(9,"mat-divider",6),i.Ub(),i.Ic(10,St,2,1,"div",7),i.Ub(),i.Ic(11,It,3,1,"ng-template",null,8,i.Jc)),2&e){const e=i.wc(12);i.oc("ngClass",i.uc(6,Ft,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD,t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),i.Db(5),i.Mc("",i.jc(6,4,t.totalLiquidity)," Sats"),i.Db(5),i.oc("ngIf",t.allChannels&&t.allChannels.length>0)("ngIfElse",e)}},directives:[w.c,w.b,w.a,a.m,I.a,O.f,s.a,K.a,a.o,M.b,a.n,R.a,S.a],pipes:[a.f,a.w],styles:[""]}),e})();var kt=n("M9ds"),At=n("5QHs"),Tt=n("LUZP"),Pt=n("OaSA"),Ot=n("B0X+"),Rt=n("ZTz/"),Kt=n("UhP/");function Mt(e,t){if(1&e&&(i.Vb(0,"mat-option",24),i.Kc(1),i.ic(2,"titlecase"),i.Ub()),2&e){const e=t.$implicit;i.oc("value",e),i.Db(1),i.Lc(i.jc(2,2,e))}}function Qt(e,t){if(1&e&&(i.Vb(0,"span"),i.Kc(1),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.Lc(e.invoiceError)}}function zt(e,t){if(1&e&&(i.Vb(0,"div",25),i.Qb(1,"fa-icon",26),i.Ic(2,Qt,2,1,"span",27),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("icon",e.faExclamationTriangle),i.Db(1),i.oc("ngIf",""!==e.invoiceError)}}let Et=(()=>{class e{constructor(e,t,n,a,o,i){this.dialogRef=e,this.data=t,this.store=n,this.decimalPipe=a,this.commonService=o,this.actions$=i,this.faExclamationTriangle=m.o,this.selNode={},this.memo="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=p.n,this.timeUnitEnum=p.v,this.timeUnits=p.t,this.selTimeUnit=p.v.SECS,this.invoiceError="",this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{this.selNode=e.nodeSettings,this.information=e.information}),this.actions$.pipe(Object(u.a)(this.unSubs[1]),Object(d.a)(e=>e.type===f.m||e.type===f.u)).subscribe(e=>{e.type===f.u&&this.dialogRef.close(),e.type===f.m&&"SaveNewInvoice"===e.payload.action&&(this.invoiceError=e.payload.message)})}onAddInvoice(e){this.invoiceError="";let t=this.expiry?this.expiry:3600;this.selTimeUnit!==p.v.SECS&&(t=this.commonService.convertTime(this.expiry,this.selTimeUnit,p.v.SECS)),this.store.dispatch(new W.F("Adding Invoice...")),this.store.dispatch(new f.Tb({memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:t,pageSize:this.pageSize,openModal:!0}))}resetData(){this.memo="",this.invoiceValue=void 0,this.private=!1,this.expiry=void 0,this.invoiceValueHint="",this.selTimeUnit=p.v.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,p.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(u.a)(this.unSubs[2])).subscribe(e=>{this.invoiceValueHint="= "+e.symbol+this.decimalPipe.transform(e.OTHER,p.f.OTHER)+" "+e.unit}))}onTimeUnitChange(e){this.expiry&&this.selTimeUnit!==e.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,e.value)),this.selTimeUnit=e.value}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(H.f),i.Pb(H.a),i.Pb(y.h),i.Pb(a.f),i.Pb(x.a),i.Pb(C.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-create-invoices"]],decls:36,vars:18,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"mt-5px"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","autoFocus","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","50","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invoiceValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","24","fxLayoutAlign","start end"],["matInput","","placeholder","Expiry","type","number","tabindex","3","name","expiry",3,"ngModel","step","min","ngModelChange"],["tabindex","4","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","matTooltip","Include routing hints for private channels","name","private",3,"ngModel","matTooltipPosition","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","6",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"mat-card-header",2),i.Vb(3,"div",3),i.Vb(4,"span",4),i.Kc(5,"Create Invoice"),i.Ub(),i.Ub(),i.Vb(6,"button",5),i.Kc(7,"X"),i.Ub(),i.Ub(),i.Vb(8,"mat-card-content",6),i.Vb(9,"form",7,8),i.Vb(11,"mat-form-field",9),i.Vb(12,"input",10),i.dc("ngModelChange",function(e){return t.memo=e}),i.Ub(),i.Ub(),i.Vb(13,"mat-form-field",11),i.Vb(14,"input",12),i.dc("ngModelChange",function(e){return t.invoiceValue=e})("keyup",function(){return t.onInvoiceValueChange()}),i.Ub(),i.Vb(15,"span",13),i.Kc(16),i.Ub(),i.Vb(17,"mat-hint"),i.Kc(18),i.Ub(),i.Ub(),i.Vb(19,"mat-form-field",14),i.Vb(20,"input",15),i.dc("ngModelChange",function(e){return t.expiry=e}),i.Ub(),i.Vb(21,"span",13),i.Kc(22),i.ic(23,"titlecase"),i.Ub(),i.Ub(),i.Vb(24,"mat-form-field",14),i.Vb(25,"mat-select",16),i.dc("selectionChange",function(e){return t.onTimeUnitChange(e)}),i.Ic(26,Mt,3,4,"mat-option",17),i.Ub(),i.Ub(),i.Vb(27,"div",18),i.Vb(28,"mat-slide-toggle",19),i.dc("ngModelChange",function(e){return t.private=e}),i.Kc(29,"Private Routing Hints"),i.Ub(),i.Ub(),i.Ic(30,zt,3,2,"div",20),i.Vb(31,"div",21),i.Vb(32,"button",22),i.dc("click",function(){return t.resetData()}),i.Kc(33,"Clear Field"),i.Ub(),i.Vb(34,"button",23),i.dc("click",function(){i.zc(e);const n=i.wc(10);return t.onAddInvoice(n)}),i.Kc(35,"Create Invoice"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()}2&e&&(i.Db(6),i.oc("mat-dialog-close",!1),i.Db(6),i.oc("ngModel",t.memo),i.Db(2),i.oc("ngModel",t.invoiceValue)("step",100)("min",1),i.Db(2),i.Mc(" ",null==t.information?null:t.information.smaller_currency_unit," "),i.Db(2),i.Lc(t.invoiceValueHint),i.Db(2),i.oc("ngModel",t.expiry)("step",t.selTimeUnit===t.timeUnitEnum.SECS?300:t.selTimeUnit===t.timeUnitEnum.MINS?10:t.selTimeUnit===t.timeUnitEnum.HOURS?2:1)("min",1),i.Db(2),i.Mc(" ",i.jc(23,16,t.selTimeUnit)," "),i.Db(3),i.oc("value",t.selTimeUnit),i.Db(1),i.oc("ngForOf",t.timeUnits),i.Db(2),i.oc("ngModel",t.private)("matTooltipPosition","above"),i.Db(2),i.oc("ngIf",""!==t.invoiceError))},directives:[w.c,w.a,U.c,w.b,S.a,H.d,U.b,B.u,B.n,B.o,O.c,ce.b,B.c,le.a,B.m,B.p,B.q,Ot.a,O.g,O.f,Rt.a,a.n,re.a,R.a,a.o,Kt.m,v.a],pipes:[a.x],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e})();var Nt=n("+zbs"),Gt=n("mNcL");function qt(e,t){if(1&e){const e=i.Wb();i.Vb(0,"form",4,5),i.Vb(2,"mat-form-field",6),i.Vb(3,"input",7),i.dc("ngModelChange",function(t){return i.zc(e),i.hc().memo=t}),i.Ub(),i.Ub(),i.Vb(4,"mat-form-field",8),i.Vb(5,"input",9),i.dc("ngModelChange",function(t){return i.zc(e),i.hc().invoiceValue=t})("keyup",function(){return i.zc(e),i.hc().onInvoiceValueChange()}),i.Ub(),i.Vb(6,"span",10),i.Kc(7),i.Ub(),i.Vb(8,"mat-hint"),i.Kc(9),i.Ub(),i.Ub(),i.Vb(10,"div",11),i.Vb(11,"button",12),i.dc("click",function(){return i.zc(e),i.hc().resetData()}),i.Kc(12,"Clear Field"),i.Ub(),i.Vb(13,"button",13),i.dc("click",function(){i.zc(e);const t=i.wc(1);return i.hc().onAddInvoice(t)}),i.Kc(14,"Create Invoice"),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.Db(3),i.oc("ngModel",e.memo),i.Db(2),i.oc("ngModel",e.invoiceValue)("step",100)("min",1),i.Db(2),i.Mc(" ",null==e.information?null:e.information.smaller_currency_unit," "),i.Db(2),i.Lc(e.invoiceValueHint)}}function Bt(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",14),i.Vb(1,"button",15),i.dc("click",function(){return i.zc(e),i.hc().openCreateInvoiceModal()}),i.Kc(2,"Create Invoice"),i.Ub(),i.Ub()}}function Ht(e,t){1&e&&i.Qb(0,"mat-progress-bar",46)}function jt(e,t){1&e&&(i.Vb(0,"th",47),i.Kc(1," Date Created "),i.Ub())}const Wt=function(e){return{"mr-0":e}};function $t(e,t){if(1&e&&i.Qb(0,"span",51),2&e){const e=i.hc(3);i.oc("ngClass",i.sc(1,Wt,e.screenSize===e.screenSizeEnum.XS))}}function Xt(e,t){if(1&e&&i.Qb(0,"span",52),2&e){const e=i.hc(3);i.oc("ngClass",i.sc(1,Wt,e.screenSize===e.screenSizeEnum.XS))}}function Jt(e,t){if(1&e&&(i.Vb(0,"td",48),i.Ic(1,$t,1,3,"span",49),i.Ic(2,Xt,1,3,"span",50),i.Kc(3),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.oc("ngIf",e.settled),i.Db(1),i.oc("ngIf",!e.settled),i.Db(1),i.Mc(" ",e.creation_date_str,"")}}function Zt(e,t){1&e&&(i.Vb(0,"th",53),i.Kc(1," Date Settled "),i.Ub())}function Yt(e,t){if(1&e&&(i.Vb(0,"td",54),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(e.settle_date_str||"-")}}function en(e,t){1&e&&(i.Vb(0,"th",47),i.Kc(1," Memo "),i.Ub())}const tn=function(e){return{"max-width":e}};function nn(e,t){if(1&e&&(i.Vb(0,"td",48),i.Vb(1,"div",55),i.Vb(2,"span",56),i.Kc(3),i.Ub(),i.Ub(),i.Ub()),2&e){const e=t.$implicit,n=i.hc(2);i.Db(1),i.oc("ngStyle",i.sc(2,tn,n.screenSize===n.screenSizeEnum.XS?"10rem":"22rem")),i.Db(2),i.Lc(e.memo)}}function an(e,t){1&e&&(i.Vb(0,"th",57),i.Kc(1," Amount (Sats) "),i.Ub())}function on(e,t){if(1&e&&(i.Vb(0,"td",48),i.Vb(1,"span",58),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc(" ",i.jc(3,1,null==e?null:e.value)," ")}}function sn(e,t){1&e&&(i.Vb(0,"th",57),i.Kc(1," Amount Settled (Sats) "),i.Ub())}function cn(e,t){if(1&e&&(i.Vb(0,"td",48),i.Vb(1,"span",58),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc(" ",i.jc(3,1,null==e?null:e.amt_paid_sat)," ")}}function ln(e,t){if(1&e){const e=i.Wb();i.Vb(0,"th",59),i.Vb(1,"div",60),i.Vb(2,"mat-select",61),i.Qb(3,"mat-select-trigger"),i.Vb(4,"mat-option",62),i.dc("click",function(){return i.zc(e),i.hc(2).onDownloadCSV()}),i.Kc(5,"Download CSV"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}}const rn=function(e){return{"pl-3":e}};function bn(e,t){if(1&e){const e=i.Wb();i.Vb(0,"td",63),i.Vb(1,"button",64),i.dc("click",function(n){i.zc(e);const a=t.$implicit;return i.hc(2).onInvoiceClick(a,n)}),i.Kc(2,"View Info"),i.Ub(),i.Ub()}if(2&e){const e=i.hc(2);i.oc("ngClass",i.sc(1,rn,e.screenSize!==e.screenSizeEnum.XS))}}function un(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No invoices available."),i.Ub())}function dn(e,t){if(1&e&&(i.Vb(0,"td",65),i.Ic(1,un,2,0,"p",66),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.oc("ngIf",!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)}}const hn=function(e){return{"display-none":e}};function mn(e,t){if(1&e&&i.Qb(0,"tr",67),2&e){const e=i.hc(2);i.oc("ngClass",i.sc(1,hn,(null==e.invoices?null:e.invoices.data)&&(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)>0))}}function pn(e,t){1&e&&i.Qb(0,"tr",68)}function fn(e,t){if(1&e&&i.Qb(0,"tr",69),2&e){const e=t.$implicit,n=i.hc(2);i.oc("@newlyAddedRowAnimation",e.memo==n.newlyAddedInvoiceMemo&&e.value==n.newlyAddedInvoiceValue&&n.flgAnimate?"added":"notAdded")}}const gn=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},yn=function(){return["no_invoice"]};function Cn(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",16),i.Vb(1,"div",17),i.Vb(2,"div",18),i.Qb(3,"fa-icon",19),i.Vb(4,"span",20),i.Kc(5,"Invoices History"),i.Ub(),i.Ub(),i.Vb(6,"mat-form-field",21),i.Vb(7,"input",22),i.dc("keyup",function(t){return i.zc(e),i.hc().applyFilter(t.target)}),i.Ub(),i.Ub(),i.Ub(),i.Vb(8,"div",23),i.Ic(9,Ht,1,0,"mat-progress-bar",24),i.Vb(10,"table",25,26),i.Tb(12,27),i.Ic(13,jt,2,0,"th",28),i.Ic(14,Jt,4,3,"td",29),i.Sb(),i.Tb(15,30),i.Ic(16,Zt,2,0,"th",31),i.Ic(17,Yt,2,1,"td",32),i.Sb(),i.Tb(18,33),i.Ic(19,en,2,0,"th",28),i.Ic(20,nn,4,4,"td",29),i.Sb(),i.Tb(21,34),i.Ic(22,an,2,0,"th",35),i.Ic(23,on,4,3,"td",29),i.Sb(),i.Tb(24,36),i.Ic(25,sn,2,0,"th",35),i.Ic(26,cn,4,3,"td",29),i.Sb(),i.Tb(27,37),i.Ic(28,ln,6,0,"th",38),i.Ic(29,bn,3,3,"td",39),i.Sb(),i.Tb(30,40),i.Ic(31,dn,2,1,"td",41),i.Sb(),i.Ic(32,mn,1,3,"tr",42),i.Ic(33,pn,1,0,"tr",43),i.Ic(34,fn,1,1,"tr",44),i.Ub(),i.Vb(35,"mat-paginator",45),i.dc("page",function(t){return i.zc(e),i.hc().onPageChange(t)}),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.Db(3),i.oc("icon",e.faHistory),i.Db(6),i.oc("ngIf",!0===e.flgLoading[0]),i.Db(1),i.oc("dataSource",e.invoices)("ngClass",i.sc(12,gn,"error"===e.flgLoading[0])),i.Db(22),i.oc("matFooterRowDef",i.rc(14,yn)),i.Db(1),i.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),i.Db(1),i.oc("matRowDefColumns",e.displayedColumns),i.Db(1),i.oc("length",e.totalInvoices)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let xn=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.store=t,this.decimalPipe=n,this.commonService=a,this.calledFrom="transactions",this.faHistory=m.r,this.selNode={},this.newlyAddedInvoiceMemo=null,this.newlyAddedInvoiceValue=null,this.flgAnimate=!0,this.memo="",this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoicesData=[],this.information={},this.flgLoading=[!0],this.flgSticky=!1,this.private=!1,this.expiryStep=100,this.totalInvoices=100,this.pageSize=p.n,this.pageSizeOptions=p.o,this.firstOffset=-1,this.lastOffset=-1,this.screenSize="",this.screenSizeEnum=p.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.q.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","actions"]):this.screenSize===p.q.SM?(this.flgSticky=!1,this.displayedColumns=["creation_date","value","actions"]):this.screenSize===p.q.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","memo","value","actions"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","settle_date","memo","value","amt_paid_sat","actions"])}ngOnInit(){this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{e.effectErrors.forEach(e=>{"FetchInvoices"===e.action&&(this.flgLoading[0]="error")}),this.selNode=e.nodeSettings,this.information=e.information,this.totalInvoices=e.totalInvoices,this.firstOffset=+e.invoices.first_index_offset,this.lastOffset=+e.invoices.last_index_offset,this.invoicesData=e.invoices.invoices?e.invoices.invoices:[],this.invoicesData.length>0&&this.loadInvoicesTable(this.invoicesData),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!e.invoices),this.logger.info(e)})}ngAfterViewInit(){this.invoicesData.length>0&&this.loadInvoicesTable(this.invoicesData)}onAddInvoice(e){let t=this.expiry?this.expiry:3600;this.flgAnimate=!0,this.newlyAddedInvoiceMemo=this.memo,this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch(new W.F("Adding Invoice...")),this.store.dispatch(new f.Tb({memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:t,pageSize:this.pageSize,openModal:!0})),this.resetData()}onInvoiceClick(e,t){this.store.dispatch(new W.C({data:{invoice:e,newlyAdded:!1,component:Nt.a}}))}loadInvoicesTable(e){this.invoices=new Pt.o([...e]),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,setTimeout(()=>{this.flgAnimate=!1},5e3),this.logger.info(this.invoices)}resetData(){this.memo="",this.invoiceValue=void 0,this.private=!1,this.expiry=void 0,this.invoiceValueHint=""}applyFilter(e){this.invoices.filter=e.value}onPageChange(e){let t=!0,n=this.firstOffset;e.pageIndex99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,p.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(u.a)(this.unSubs[1])).subscribe(e=>{this.invoiceValueHint="= "+e.symbol+this.decimalPipe.transform(e.OTHER,p.f.OTHER)+" "+e.unit}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}openCreateInvoiceModal(){this.store.dispatch(new W.C({data:{pageSize:this.pageSize,component:Et}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(y.h),i.Pb(a.f),i.Pb(x.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-lightning-invoices"]],viewQuery:function(e,t){if(1&e&&i.Pc(Tt.a,!0),2&e){let e;i.vc(e=i.ec())&&(t.sort=e.first)}},inputs:{calledFrom:"calledFrom"},features:[i.Cb([{provide:At.b,useValue:Object(p.y)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","5",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","tabindex","6","placeholder","Filter",3,"keyup"],[1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","settle_date"],["mat-header-cell","","mat-sort-header","","class","pl-4",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","memo"],["matColumnDef","value"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_paid_sat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","","class","row-invoices",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unsettled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unsettled","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row","",1,"row-invoices"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Ic(1,qt,15,6,"form",1),i.Ic(2,Bt,3,0,"div",2),i.Ic(3,Cn,36,15,"div",3),i.Ub()),2&e&&(i.Db(1),i.oc("ngIf","home"===t.calledFrom),i.Db(1),i.oc("ngIf","transactions"===t.calledFrom),i.Db(1),i.oc("ngIf","transactions"===t.calledFrom))},directives:[w.c,w.a,w.b,a.o,B.u,B.n,B.o,O.c,ce.b,B.c,B.m,B.p,B.q,Ot.a,O.g,O.f,S.a,v.a,M.b,Pt.n,Tt.a,a.m,I.a,Pt.c,Pt.i,Pt.b,Pt.e,Pt.g,Pt.k,Pt.m,At.a,s.a,Pt.h,Tt.b,Pt.a,R.a,a.p,I.b,Rt.a,Rt.c,Kt.m,Pt.d,Pt.f,Pt.j,Pt.l],pipes:[a.f],styles:[".mat-column-memo[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-memo[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"],data:{animation:[Gt.a]}}),e})();var wn=n("cp0P"),vn=n("IzEk"),Ln=n("iiaH");const Un=["paymentReq"];function Vn(e,t){if(1&e&&(i.Vb(0,"mat-hint"),i.Kc(1),i.Ub()),2&e){const e=i.hc();i.Db(1),i.Lc(e.paymentDecodedHint)}}function Sn(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Payment request is required."),i.Ub())}function Dn(e,t){if(1&e&&(i.Vb(0,"mat-error"),i.Kc(1),i.Ub()),2&e){const e=i.hc();i.Db(1),i.Lc(e.paymentDecodedHint)}}function In(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Payment amount is required."),i.Ub())}function Fn(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-form-field",9),i.Vb(1,"input",28,29),i.dc("ngModelChange",function(t){return i.zc(e),i.hc().paymentAmount=t})("change",function(t){return i.zc(e),i.hc().onAmountChange(t)}),i.Ub(),i.Vb(3,"mat-hint"),i.Kc(4,"It is a zero amount invoice, enter amount to be paid."),i.Ub(),i.Ic(5,In,2,0,"mat-error",12),i.Ub()}if(2&e){const e=i.hc();i.Db(1),i.oc("ngModel",e.paymentAmount),i.Db(4),i.oc("ngIf",!e.paymentAmount)}}function _n(e,t){if(1&e&&(i.Vb(0,"mat-option",30),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.oc("value",e),i.Db(1),i.Mc(" ",e.name," ")}}function kn(e,t){if(1&e&&(i.Vb(0,"mat-error"),i.Kc(1),i.Ub()),2&e){const e=i.hc();i.Db(1),i.Mc("",e.selFeeLimitType.placeholder," is required.")}}function An(e,t){if(1&e&&(i.Vb(0,"mat-option",30),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.oc("value",e),i.Db(1),i.Mc(" ",e.remote_alias||e.chan_id," ")}}function Tn(e,t){if(1&e&&(i.Vb(0,"span"),i.Kc(1),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.Lc(e.paymentError)}}function Pn(e,t){if(1&e&&(i.Vb(0,"div",31),i.Qb(1,"fa-icon",32),i.Ic(2,Tn,2,1,"span",12),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("icon",e.faExclamationTriangle),i.Db(1),i.oc("ngIf",""!==e.paymentError)}}let On=(()=>{class e{constructor(e,t,n,a,o,i,s){this.dialogRef=e,this.store=t,this.logger=n,this.commonService=a,this.decimalPipe=o,this.actions$=i,this.dataService=s,this.faExclamationTriangle=m.o,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.showAdvanced=!1,this.selActiveChannel={},this.activeChannels=[],this.filteredMinAmtActvChannels=[],this.feeLimit=null,this.selFeeLimitType=p.i[0],this.feeLimitTypes=p.i,this.advancedTitle="Advanced Options",this.paymentError="",this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{this.selNode=e.nodeSettings,this.activeChannels=e.allChannels.filter(e=>e.active),this.filteredMinAmtActvChannels=this.activeChannels,this.logger.info(e)}),this.actions$.pipe(Object(u.a)(this.unSubs[1]),Object(d.a)(e=>e.type===f.m||e.type===f.ub)).subscribe(e=>{e.type===f.ub&&this.dialogRef.close(),e.type===f.m&&"SendPayment"===e.payload.action&&(delete this.paymentDecoded.num_satoshis,this.paymentError=e.payload.message)})}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp_str?this.sendPayment():(this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.paymentReq.control.setErrors(null),this.dataService.decodePayment(this.paymentRequest,!0).pipe(Object(vn.a)(1)).subscribe(e=>{this.selActiveChannel={},this.paymentDecoded=e,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.zeroAmtInvoice=!1,this.filteredMinAmtActvChannels=this.activeChannels.filter(e=>e.local_balance>=this.paymentDecoded.num_satoshis),this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,p.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(u.a)(this.unSubs[2])).subscribe(e=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats ("+e.symbol+this.decimalPipe.transform(e.OTHER?e.OTHER:0,p.f.OTHER)+") | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")):(this.zeroAmtInvoice=!0,this.filteredMinAmtActvChannels=this.activeChannels,this.paymentDecodedHint="Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"))},e=>{this.logger.error(e),this.paymentDecodedHint="ERROR: "+e.message,this.paymentReq.control.setErrors({decodeError:!0})}))}sendPayment(){this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.store.dispatch(new W.F("Sending Payment...")),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.zeroAmtInvoice=!1,this.store.dispatch(new f.Vb({paymentReq:this.paymentRequest,paymentDecoded:this.paymentDecoded,zeroAmtInvoice:!1,outgoingChannel:this.selActiveChannel,feeLimitType:this.selFeeLimitType,feeLimit:this.feeLimit,fromDialog:!0}))):(this.zeroAmtInvoice=!0,this.paymentDecoded.num_satoshis=this.paymentAmount,this.store.dispatch(new f.Vb({paymentReq:this.paymentRequest,paymentDecoded:this.paymentDecoded,zeroAmtInvoice:!0,outgoingChannel:this.selActiveChannel,feeLimitType:this.selFeeLimitType,feeLimit:this.feeLimit,fromDialog:!0})))}onAmountChange(e){delete this.paymentDecoded.num_satoshis}onPaymentRequestEntry(e){this.paymentRequest=e,this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.dataService.decodePayment(this.paymentRequest,!0).pipe(Object(vn.a)(1)).subscribe(e=>{this.paymentDecoded=e,this.selActiveChannel={},this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.zeroAmtInvoice=!1,this.filteredMinAmtActvChannels=this.activeChannels.filter(e=>e.local_balance>=this.paymentDecoded.num_satoshis),this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,p.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(u.a)(this.unSubs[2])).subscribe(e=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats ("+e.symbol+this.decimalPipe.transform(e.OTHER?e.OTHER:0,p.f.OTHER)+") | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")):(this.zeroAmtInvoice=!0,this.filteredMinAmtActvChannels=this.activeChannels,this.paymentDecodedHint="Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"))},e=>{this.logger.error(e),this.paymentDecodedHint="ERROR: "+e.message,this.paymentReq.control.setErrors({decodeError:!0})}))}onAdvancedPanelToggle(e){this.advancedTitle=e?"Advanced Options | "+this.selFeeLimitType.name+("none"===this.selFeeLimitType.id?"":": "+this.feeLimit)+(this.selActiveChannel.remote_alias||this.selActiveChannel.chan_id?" | First Outgoing Channel: "+(this.selActiveChannel.remote_alias?this.selActiveChannel.remote_alias:this.selActiveChannel.chan_id):""):"Advanced Options"}resetData(){this.paymentDecoded={},this.paymentRequest="",this.selActiveChannel=null,this.filteredMinAmtActvChannels=this.activeChannels,this.feeLimit=null,this.selFeeLimitType=p.i[0],this.advancedTitle="Advanced Options",this.zeroAmtInvoice=!1,this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint=""}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(H.f),i.Pb(y.h),i.Pb(g.b),i.Pb(x.a),i.Pb(a.f),i.Pb(C.a),i.Pb(Ln.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-lightning-send-payments"]],viewQuery:function(e,t){if(1&e&&i.Pc(Un,!0),2&e){let e;i.vc(e=i.ec())&&(t.paymentReq=e.first)}},decls:40,vars:19,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"mt-5px"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["sendPaymentForm","ngForm"],["fxFlex","100"],["autoFocus","","matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxFlex","100","fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","5","Placeholder","Fee Limits",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","26"],["matInput","","type","number","name","feeLmt","required","","tabindex","6",3,"ngModel","placeholder","step","min","disabled","ngModelChange"],["fLmt","ngModel"],["fxFlex","40","fxLayoutAlign","start end"],["tabindex","7","placeholder","First Outgoing Channel",3,"value","disabled","valueChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,t){if(1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"mat-card-header",2),i.Vb(3,"div",3),i.Vb(4,"span",4),i.Kc(5,"Send Payment"),i.Ub(),i.Ub(),i.Vb(6,"button",5),i.Kc(7,"X"),i.Ub(),i.Ub(),i.Vb(8,"mat-card-content",6),i.Vb(9,"form",7,8),i.Vb(11,"mat-form-field",9),i.Vb(12,"textarea",10,11),i.dc("ngModelChange",function(e){return t.onPaymentRequestEntry(e)})("matTextareaAutosize",function(){return!0}),i.Ub(),i.Ic(14,Vn,2,1,"mat-hint",12),i.Ic(15,Sn,2,0,"mat-error",12),i.Ic(16,Dn,2,1,"mat-error",12),i.Ub(),i.Ic(17,Fn,6,2,"mat-form-field",13),i.Vb(18,"mat-expansion-panel",14),i.dc("closed",function(){return t.onAdvancedPanelToggle(!0)})("opened",function(){return t.onAdvancedPanelToggle(!1)}),i.Vb(19,"mat-expansion-panel-header"),i.Vb(20,"mat-panel-title"),i.Vb(21,"span"),i.Kc(22),i.Ub(),i.Ub(),i.Ub(),i.Vb(23,"div",15),i.Vb(24,"mat-form-field",16),i.Vb(25,"mat-select",17),i.dc("valueChange",function(e){return t.selFeeLimitType=e}),i.Ic(26,_n,2,2,"mat-option",18),i.Ub(),i.Ub(),i.Vb(27,"mat-form-field",19),i.Vb(28,"input",20,21),i.dc("ngModelChange",function(e){return t.feeLimit=e}),i.Ub(),i.Ic(30,kn,2,1,"mat-error",12),i.Ub(),i.Vb(31,"mat-form-field",22),i.Vb(32,"mat-select",23),i.dc("valueChange",function(e){return t.selActiveChannel=e}),i.Ic(33,An,2,2,"mat-option",18),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ic(34,Pn,3,2,"div",24),i.Vb(35,"div",25),i.Vb(36,"button",26),i.dc("click",function(){return t.resetData()}),i.Kc(37,"Clear Fields"),i.Ub(),i.Vb(38,"button",27),i.dc("click",function(){return t.onSendPayment()}),i.Kc(39,"Send Payment"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e){const e=i.wc(13);i.Db(6),i.oc("mat-dialog-close",!1),i.Db(6),i.oc("ngModel",t.paymentRequest),i.Db(2),i.oc("ngIf",t.paymentRequest&&""!==t.paymentDecodedHint),i.Db(1),i.oc("ngIf",!t.paymentRequest),i.Db(1),i.oc("ngIf",null==e.errors?null:e.errors.decodeError),i.Db(1),i.oc("ngIf",t.zeroAmtInvoice),i.Db(5),i.Lc(t.advancedTitle),i.Db(3),i.oc("value",t.selFeeLimitType),i.Db(1),i.oc("ngForOf",t.feeLimitTypes),i.Db(2),i.oc("ngModel",t.feeLimit)("placeholder",t.selFeeLimitType.placeholder)("step",1)("min",0)("disabled",t.selFeeLimitType===t.feeLimitTypes[0]),i.Db(2),i.oc("ngIf",t.selFeeLimitType!==t.feeLimitTypes[0]&&!t.feeLimit),i.Db(2),i.oc("value",t.selActiveChannel)("disabled",t.filteredMinAmtActvChannels&&t.filteredMinAmtActvChannels.length<1),i.Db(1),i.oc("ngForOf",t.filteredMinAmtActvChannels),i.Db(1),i.oc("ngIf",""!==t.paymentError)}},directives:[w.c,w.a,U.c,w.b,S.a,H.d,U.b,B.u,B.n,B.o,O.c,ce.b,B.c,ce.d,le.a,B.s,B.m,B.p,a.o,J.c,J.e,J.f,Rt.a,a.n,B.q,Ot.a,O.f,O.b,Kt.m,v.a],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();var Rn=n("X9mX"),Kn=n("F12H");const Mn=["sendPaymentForm"];function Qn(e,t){if(1&e&&(i.Vb(0,"mat-hint"),i.Kc(1),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.Lc(e.paymentDecodedHint)}}function zn(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Payment request is required."),i.Ub())}function En(e,t){if(1&e){const e=i.Wb();i.Vb(0,"form",4,5),i.Vb(2,"mat-form-field",6),i.Vb(3,"textarea",7,8),i.dc("ngModelChange",function(t){return i.zc(e),i.hc().onPaymentRequestEntry(t)})("matTextareaAutosize",function(){return!0}),i.Ub(),i.Ic(5,Qn,2,1,"mat-hint",9),i.Ic(6,zn,2,0,"mat-error",9),i.Ub(),i.Vb(7,"div",10),i.Vb(8,"button",11),i.dc("click",function(){return i.zc(e),i.hc().resetData()}),i.Kc(9,"Clear Field"),i.Ub(),i.Vb(10,"button",12),i.dc("click",function(){return i.zc(e),i.hc().onSendPayment()}),i.Kc(11,"Send Payment"),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.Db(3),i.oc("ngModel",e.paymentRequest),i.Db(2),i.oc("ngIf",e.paymentRequest&&""!==e.paymentDecodedHint),i.Db(1),i.oc("ngIf",!e.paymentRequest)}}function Nn(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",13),i.Vb(1,"button",14),i.dc("click",function(){return i.zc(e),i.hc().openSendPaymentModal()}),i.Kc(2,"Send Payment"),i.Ub(),i.Ub()}}function Gn(e,t){1&e&&i.Qb(0,"mat-progress-bar",53)}function qn(e,t){1&e&&(i.Vb(0,"th",54),i.Kc(1,"Creation Date"),i.Ub())}const Bn=function(e){return{"mr-0":e}};function Hn(e,t){if(1&e&&i.Qb(0,"span",58),2&e){const e=i.hc(3);i.oc("ngClass",i.sc(1,Bn,e.screenSize===e.screenSizeEnum.XS))}}function jn(e,t){if(1&e&&i.Qb(0,"span",59),2&e){const e=i.hc(3);i.oc("ngClass",i.sc(1,Bn,e.screenSize===e.screenSizeEnum.XS))}}function Wn(e,t){if(1&e&&(i.Vb(0,"td",55),i.Ic(1,Hn,1,3,"span",56),i.Ic(2,jn,1,3,"span",57),i.Kc(3),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.oc("ngIf","SUCCEEDED"===e.status),i.Db(1),i.oc("ngIf","SUCCEEDED"!==e.status),i.Db(1),i.Mc(" ",null==e?null:e.creation_date_str," ")}}function $n(e,t){1&e&&(i.Vb(0,"th",54),i.Kc(1,"Payment Hash"),i.Ub())}const Xn=function(e){return{"max-width":e}};function Jn(e,t){if(1&e&&(i.Vb(0,"td",60),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc(2);i.oc("ngStyle",i.sc(2,Xn,n.screenSize===n.screenSizeEnum.XS?"10rem":"35rem")),i.Db(1),i.Lc(null==e?null:e.payment_hash)}}function Zn(e,t){1&e&&(i.Vb(0,"th",61),i.Kc(1,"Fee (Sats)"),i.Ub())}function Yn(e,t){if(1&e&&(i.Vb(0,"td",55),i.Vb(1,"span",62),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.jc(3,1,null==e?null:e.fee))}}function ea(e,t){1&e&&(i.Vb(0,"th",61),i.Kc(1,"Value (Sats)"),i.Ub())}function ta(e,t){if(1&e&&(i.Vb(0,"td",55),i.Vb(1,"span",62),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.jc(3,1,null==e?null:e.value))}}function na(e,t){1&e&&(i.Vb(0,"th",61),i.Kc(1,"#Hops"),i.Ub())}function aa(e,t){if(1&e&&(i.Vb(0,"td",55),i.Vb(1,"span",62),i.Kc(2),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc((null==e||null==e.htlcs[0]||null==e.htlcs[0].route||null==e.htlcs[0].route.hops?null:e.htlcs[0].route.hops.length)||0)}}function oa(e,t){if(1&e){const e=i.Wb();i.Vb(0,"th",63),i.Vb(1,"div",64),i.Vb(2,"mat-select",65),i.Qb(3,"mat-select-trigger"),i.Vb(4,"mat-option",66),i.dc("click",function(){return i.zc(e),i.hc(2).onDownloadCSV()}),i.Kc(5,"Download CSV"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}}function ia(e,t){if(1&e){const e=i.Wb();i.Vb(0,"td",67),i.Vb(1,"button",68),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc(2).onPaymentClick(n)}),i.Kc(2,"View Info"),i.Ub(),i.Ub()}}function sa(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No payments available."),i.Ub())}function ca(e,t){if(1&e&&(i.Vb(0,"td",69),i.Ic(1,sa,2,0,"p",9),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.oc("ngIf",!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)}}function la(e,t){if(1&e&&i.Qb(0,"span",58),2&e){const e=i.hc(3);i.oc("ngClass",i.sc(1,Bn,e.screenSize===e.screenSizeEnum.XS))}}function ra(e,t){if(1&e&&i.Qb(0,"span",59),2&e){const e=i.hc(3);i.oc("ngClass",i.sc(1,Bn,e.screenSize===e.screenSizeEnum.XS))}}function ba(e,t){if(1&e&&i.Qb(0,"span",58),2&e){const e=i.hc(5);i.oc("ngClass",i.sc(1,Bn,e.screenSize===e.screenSizeEnum.XS))}}function ua(e,t){if(1&e&&i.Qb(0,"span",59),2&e){const e=i.hc(5);i.oc("ngClass",i.sc(1,Bn,e.screenSize===e.screenSizeEnum.XS))}}function da(e,t){if(1&e&&(i.Vb(0,"span",72),i.Ic(1,ba,1,3,"span",56),i.Ic(2,ua,1,3,"span",57),i.Kc(3),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.oc("ngIf","SUCCEEDED"===e.status),i.Db(1),i.oc("ngIf","SUCCEEDED"!==e.status),i.Db(1),i.Mc(" ",e.attempt_time_str," ")}}function ha(e,t){if(1&e&&(i.Tb(0),i.Ic(1,da,4,3,"span",71),i.Sb()),2&e){const e=i.hc().$implicit;i.Db(1),i.oc("ngForOf",null==e?null:e.htlcs)}}function ma(e,t){if(1&e&&(i.Vb(0,"td",55),i.Vb(1,"span",70),i.Ic(2,la,1,3,"span",56),i.Ic(3,ra,1,3,"span",57),i.Kc(4),i.Ub(),i.Ic(5,ha,2,1,"ng-container",9),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.oc("ngIf","SUCCEEDED"===e.status),i.Db(1),i.oc("ngIf","SUCCEEDED"!==e.status),i.Db(1),i.Mc(" Total Attempts: ",null==e||null==e.htlcs?null:e.htlcs.length," "),i.Db(1),i.oc("ngIf",e.is_expanded)}}function pa(e,t){if(1&e&&(i.Vb(0,"span",70),i.Kc(1),i.Ub()),2&e){const e=t.index;i.Db(1),i.Mc(" HTLC ",e+1," ")}}function fa(e,t){if(1&e&&(i.Vb(0,"span"),i.Ic(1,pa,2,1,"span",73),i.Ub()),2&e){const e=i.hc().$implicit;i.Db(1),i.oc("ngForOf",null==e?null:e.htlcs)}}function ga(e,t){if(1&e&&(i.Vb(0,"td",55),i.Vb(1,"span",70),i.Kc(2),i.Ub(),i.Ic(3,fa,2,1,"span",9),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(null==e?null:e.payment_hash),i.Db(1),i.oc("ngIf",e.is_expanded)}}function ya(e,t){if(1&e&&(i.Vb(0,"span",74),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Mc(" ",i.kc(2,1,null==e.route?null:e.route.total_fees,"1.0-0")," ")}}function Ca(e,t){if(1&e&&(i.Vb(0,"span"),i.Ic(1,ya,3,4,"span",75),i.Ub()),2&e){const e=i.hc().$implicit;i.Db(1),i.oc("ngForOf",null==e?null:e.htlcs)}}function xa(e,t){if(1&e&&(i.Vb(0,"td",55),i.Vb(1,"span",74),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ic(4,Ca,2,1,"span",9),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.kc(3,2,null==e?null:e.fee,"1.0-0")),i.Db(2),i.oc("ngIf",e.is_expanded)}}function wa(e,t){if(1&e&&(i.Vb(0,"span",74),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Mc(" ",i.kc(2,1,null==e.route?null:e.route.total_amt,"1.0-0")," ")}}function va(e,t){if(1&e&&(i.Vb(0,"span"),i.Ic(1,wa,3,4,"span",75),i.Ub()),2&e){const e=i.hc().$implicit;i.Db(1),i.oc("ngForOf",null==e?null:e.htlcs)}}function La(e,t){if(1&e&&(i.Vb(0,"td",55),i.Vb(1,"span",74),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ic(4,va,2,1,"span",9),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.kc(3,2,null==e?null:e.value,"1.0-0")),i.Db(2),i.oc("ngIf",e.is_expanded)}}function Ua(e,t){if(1&e&&(i.Vb(0,"span",74),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Mc(" ",i.kc(2,1,(null==e.route||null==e.route.hops?null:e.route.hops.length)||0,"1.0-0")," ")}}function Va(e,t){if(1&e&&(i.Vb(0,"span"),i.Ic(1,Ua,3,4,"span",75),i.Ub()),2&e){const e=i.hc().$implicit;i.Db(1),i.oc("ngForOf",null==e?null:e.htlcs)}}function Sa(e,t){if(1&e&&(i.Vb(0,"td",55),i.Vb(1,"span",74),i.Kc(2,"-"),i.Ub(),i.Ic(3,Va,2,1,"span",9),i.Ub()),2&e){const e=t.$implicit;i.Db(3),i.oc("ngIf",e.is_expanded)}}function Da(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",62),i.Vb(1,"button",79),i.dc("click",function(){i.zc(e);const n=t.$implicit,a=i.hc(2).$implicit;return i.hc(2).onHTLCClick(n,a)}),i.Kc(2),i.Ub(),i.Ub()}if(2&e){const e=t.index;i.Db(2),i.Mc("View ",e+1,"")}}function Ia(e,t){if(1&e&&(i.Vb(0,"div"),i.Ic(1,Da,3,1,"div",78),i.Ub()),2&e){const e=i.hc().$implicit;i.Db(1),i.oc("ngForOf",null==e?null:e.htlcs)}}function Fa(e,t){if(1&e&&(i.Vb(0,"td",76),i.Vb(1,"span",62),i.Vb(2,"button",77),i.dc("click",function(){const e=t.$implicit;return e.is_expanded=!e.is_expanded}),i.Kc(3),i.Ub(),i.Ub(),i.Ic(4,Ia,2,1,"div",9),i.Ub()),2&e){const e=t.$implicit;i.Db(3),i.Lc(e.is_expanded?"Hide":"Show"),i.Db(1),i.oc("ngIf",e.is_expanded)}}function _a(e,t){if(1&e&&i.Qb(0,"tr",80),2&e){const e=t.$implicit,n=i.hc(2);i.oc("@newlyAddedRowAnimation",e.payment_hash===n.newlyAddedPayment&&n.flgAnimate?"added":"notAdded")}}const ka=function(e){return{"display-none":e}};function Aa(e,t){if(1&e&&i.Qb(0,"tr",81),2&e){const e=i.hc(2);i.oc("ngClass",i.sc(1,ka,(null==e.payments?null:e.payments.data)&&(null==e.payments||null==e.payments.data?null:e.payments.data.length)>0))}}function Ta(e,t){1&e&&i.Qb(0,"tr",82)}function Pa(e,t){if(1&e&&i.Qb(0,"tr",80),2&e){const e=t.$implicit,n=i.hc(2);i.oc("@newlyAddedRowAnimation",e.payment_hash===n.newlyAddedPayment&&n.flgAnimate?"added":"notAdded")}}const Oa=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Ra=function(){return["no_payment"]};function Ka(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",15),i.Vb(1,"div",16),i.Vb(2,"div",17),i.Qb(3,"fa-icon",18),i.Vb(4,"span",19),i.Kc(5,"Payments History"),i.Ub(),i.Ub(),i.Vb(6,"mat-form-field",20),i.Vb(7,"input",21),i.dc("keyup",function(t){return i.zc(e),i.hc().applyFilter(t.target)}),i.Ub(),i.Ub(),i.Ub(),i.Vb(8,"div",22),i.Vb(9,"div",23),i.Ic(10,Gn,1,0,"mat-progress-bar",24),i.Vb(11,"table",25,26),i.Tb(13,27),i.Ic(14,qn,2,0,"th",28),i.Ic(15,Wn,4,3,"td",29),i.Sb(),i.Tb(16,30),i.Ic(17,$n,2,0,"th",28),i.Ic(18,Jn,2,4,"td",31),i.Sb(),i.Tb(19,32),i.Ic(20,Zn,2,0,"th",33),i.Ic(21,Yn,4,3,"td",29),i.Sb(),i.Tb(22,34),i.Ic(23,ea,2,0,"th",33),i.Ic(24,ta,4,3,"td",29),i.Sb(),i.Tb(25,35),i.Ic(26,na,2,0,"th",33),i.Ic(27,aa,3,1,"td",29),i.Sb(),i.Tb(28,36),i.Ic(29,oa,6,0,"th",37),i.Ic(30,ia,3,0,"td",38),i.Sb(),i.Tb(31,39),i.Ic(32,ca,2,1,"td",40),i.Sb(),i.Tb(33,41),i.Ic(34,ma,6,4,"td",29),i.Sb(),i.Tb(35,42),i.Ic(36,ga,4,2,"td",29),i.Sb(),i.Tb(37,43),i.Ic(38,xa,5,5,"td",29),i.Sb(),i.Tb(39,44),i.Ic(40,La,5,5,"td",29),i.Sb(),i.Tb(41,45),i.Ic(42,Sa,4,1,"td",29),i.Sb(),i.Tb(43,46),i.Ic(44,Fa,5,2,"td",47),i.Sb(),i.Ic(45,_a,1,1,"tr",48),i.Ic(46,Aa,1,3,"tr",49),i.Ic(47,Ta,1,0,"tr",50),i.Ic(48,Pa,1,1,"tr",51),i.Ub(),i.Qb(49,"mat-paginator",52),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.Db(3),i.oc("icon",e.faHistory),i.Db(7),i.oc("ngIf",!0===e.flgLoading[0]),i.Db(1),i.oc("dataSource",e.payments)("ngClass",i.sc(13,Oa,"error"===e.flgLoading[0])),i.Db(34),i.oc("matRowDefColumns",e.htlcColumns)("matRowDefWhen",e.is_group),i.Db(1),i.oc("matFooterRowDef",i.rc(15,Ra)),i.Db(1),i.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),i.Db(1),i.oc("matRowDefColumns",e.displayedColumns),i.Db(1),i.oc("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Ma=(()=>{class e{constructor(e,t,n,a,o,i,s,c){this.logger=e,this.commonService=t,this.dataService=n,this.store=a,this.rtlEffects=o,this.lndEffects=i,this.decimalPipe=s,this.actions$=c,this.calledFrom="transactions",this.faHistory=m.r,this.newlyAddedPayment="",this.flgAnimate=!0,this.selNode={},this.flgLoading=[!0],this.information={},this.peers=[],this.paymentJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.pageSize=p.n,this.pageSizeOptions=p.o,this.screenSize="",this.screenSizeEnum=p.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.q.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","actions"],this.htlcColumns=["groupTotal","groupAction"]):this.screenSize===p.q.SM?(this.flgSticky=!1,this.displayedColumns=["creation_date","value","actions"],this.htlcColumns=["groupTotal","groupValue","groupAction"]):this.screenSize===p.q.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","value","actions"],this.htlcColumns=["groupTotal","groupFee","groupValue","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","payment_hash","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupHash","groupFee","groupValue","groupHops","groupAction"])}ngOnInit(){this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{e.effectErrors.forEach(e=>{"FetchPayments"===e.action&&(this.flgLoading[0]="error")}),this.information=e.information,this.selNode=e.nodeSettings,this.peers=e.peers,this.paymentJSONArr=e.payments&&e.payments.length>0?e.payments:[],this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr),setTimeout(()=>{this.flgAnimate=!1},3e3),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!this.paymentJSONArr),this.logger.info(e)})}ngAfterViewInit(){this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp_str?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe(Object(vn.a)(1)).subscribe(e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp_str?(this.paymentDecoded.num_satoshis=this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis?(+this.paymentDecoded.num_msat/1e3).toString():"0",this.sendPayment()):this.resetData()})}sendPayment(){this.flgAnimate=!0,this.newlyAddedPayment=this.paymentDecoded.payment_hash,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.store.dispatch(new W.D({data:{type:p.b.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp_str",value:this.paymentDecoded.timestamp_str,title:"Creation Date",width:50},{key:"num_satoshis",value:this.paymentDecoded.num_satoshis,title:"Amount (Sats)",width:50,type:p.h.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:p.h.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:50}]]}})),this.rtlEffects.closeConfirm.pipe(Object(vn.a)(1)).subscribe(e=>{e&&(this.store.dispatch(new W.F("Sending Payment...")),this.store.dispatch(new f.Vb({paymentReq:this.paymentRequest,paymentDecoded:this.paymentDecoded,zeroAmtInvoice:!1,fromDialog:!1})),this.resetData())})):(this.store.dispatch(new W.D({data:{type:p.b.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp_str",value:this.paymentDecoded.timestamp_str,title:"Creation Date",width:40},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:p.h.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,getInputs:[{placeholder:"Amount (Sats)",inputType:p.h.NUMBER.toLowerCase(),inputValue:"",width:30}]}})),this.rtlEffects.closeConfirm.pipe(Object(vn.a)(1)).subscribe(e=>{e&&(this.paymentDecoded.num_satoshis=e[0].inputValue,this.store.dispatch(new W.F("Sending Payment...")),this.store.dispatch(new f.Vb({paymentReq:this.paymentRequest,paymentDecoded:this.paymentDecoded,zeroAmtInvoice:!0,fromDialog:!1})),this.resetData())}))}openSendPaymentModal(){this.store.dispatch(new W.C({data:{component:On}}))}onPaymentRequestEntry(e){this.paymentRequest=e,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe(Object(vn.a)(1)).subscribe(e=>{this.paymentDecoded=e,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,p.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(u.a)(this.unSubs[2])).subscribe(e=>{this.paymentDecodedHint=this.selNode.fiatConversion?"Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats ("+e.symbol+this.decimalPipe.transform(e.OTHER?e.OTHER:0,p.f.OTHER)+") | Memo: "+this.paymentDecoded.description:"Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description}):this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}is_group(e,t){return t.htlcs&&t.htlcs.length>1}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}getHopDetails(e){let t=this;return e.reduce(function(e,n){let a=t.peers.find(e=>e.pub_key===n.pub_key);return a&&a.alias?e.push("
Channel: "+a.alias.padEnd(20)+"			Amount (Sats): "+t.decimalPipe.transform(n.amt_to_forward)+"
"):t.dataService.getAliasesFromPubkeys(n.pub_key,!1).pipe(Object(u.a)(t.unSubs[1])).subscribe(a=>{e.push("
Channel: "+(a.node&&a.node.alias?a.node.alias.padEnd(20):n.pub_key.substring(0,17)+"...")+"			Amount (Sats): "+t.decimalPipe.transform(n.amt_to_forward)+"
")}),e},[])}onHTLCClick(e,t){t.payment_request&&""!==t.payment_request.trim()?this.dataService.decodePayment(t.payment_request,!1).pipe(Object(vn.a)(1)).subscribe(n=>{this.showHTLCView(e,t,n)},n=>{this.showHTLCView(e,t,null)}):this.showHTLCView(e,t,null)}showHTLCView(e,t,n){const a=[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:p.h.STRING}],[{key:"preimage",value:e.preimage,title:"Preimage",width:100,type:p.h.STRING}],[{key:"payment_request",value:t.payment_request,title:"Payment Request",width:100,type:p.h.STRING}],[{key:"status",value:e.status,title:"Status",width:33,type:p.h.STRING},{key:"attempt_time_str",value:e.attempt_time_str,title:"Attempt Time",width:33,type:p.h.DATE_TIME},{key:"resolve_time_str",value:e.resolve_time_str,title:"Resolve Time",width:34,type:p.h.DATE_TIME}],[{key:"total_amt",value:e.route.total_amt,title:"Amount (Sats)",width:33,type:p.h.NUMBER},{key:"total_fees",value:e.route.total_fees,title:"Fee (Sats)",width:33,type:p.h.NUMBER},{key:"total_time_lock",value:e.route.total_time_lock,title:"Total Time Lock",width:34,type:p.h.NUMBER}],[{key:"hops",value:this.getHopDetails(e.route.hops),title:"Hops",width:100,type:p.h.ARRAY}]];n&&n.description&&""!==n.description&&a.splice(3,0,[{key:"description",value:n.description,title:"Description",width:100,type:p.h.STRING}]),this.store.dispatch(new W.C({data:{type:p.b.INFORMATION,alertTitle:"HTLC Information",message:a,scrollable:e.route&&e.route.hops&&e.route.hops.length>1}}))}onPaymentClick(e){if(e.htlcs&&e.htlcs[0]&&e.htlcs[0].route&&e.htlcs[0].route.hops&&e.htlcs[0].route.hops.length>0){let t=e.htlcs[0].route.hops.reduce((e,t)=>""===e?t.pub_key:e+","+t.pub_key,"");Object(wn.a)(this.dataService.getAliasesFromPubkeys(t,!0).pipe(Object(u.a)(this.unSubs[3])).subscribe(t=>{this.showPaymentView(e,t.reduce((e,t)=>""===e?t:e+"\n"+t,""))}))}else this.showPaymentView(e,"")}showPaymentView(e,t){const n=[[{key:"payment_hash",value:e.payment_hash,title:"Payment Hash",width:100,type:p.h.STRING}],[{key:"payment_preimage",value:e.payment_preimage,title:"Payment Preimage",width:100,type:p.h.STRING}],[{key:"payment_request",value:e.payment_request,title:"Payment Request",width:100,type:p.h.STRING}],[{key:"status",value:e.status,title:"Status",width:50,type:p.h.STRING},{key:"creation_date_str",value:e.creation_date_str,title:"Creation Date",width:50,type:p.h.DATE_TIME}],[{key:"value_msat",value:e.value_msat,title:"Value (mSats)",width:50,type:p.h.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:50,type:p.h.NUMBER}],[{key:"path",value:t,title:"Path",width:100,type:p.h.STRING}]];e.payment_request&&""!==e.payment_request.trim()?this.dataService.decodePayment(e.payment_request,!1).pipe(Object(vn.a)(1)).subscribe(t=>{t&&t.description&&""!==t.description&&n.splice(3,0,[{key:"description",value:t.description,title:"Description",width:100,type:p.h.STRING}]),this.openPaymentAlert(n,e.htlcs&&e.htlcs[0]&&e.htlcs[0].route&&e.htlcs[0].route.hops&&e.htlcs[0].route.hops.length>1)}):this.openPaymentAlert(n,!1)}openPaymentAlert(e,t){this.store.dispatch(new W.C({data:{type:p.b.INFORMATION,alertTitle:"Payment Information",message:e,scrollable:t}}))}applyFilter(e){this.payments.filter=e.value}loadPaymentsTable(e){this.payments=new Pt.o(e?[]:[...e]),this.payments.data=e,this.payments.sortingDataAccessor=(e,t)=>{switch(t){case"hops":return e.htlcs.length&&e.htlcs[0]&&e.htlcs[0].route&&e.htlcs[0].route.hops&&e.htlcs[0].route.hops.length?e.htlcs[0].route.hops.length:0;default:return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null}},this.payments.sort=this.sort,this.payments.paginator=this.paginator}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){let e=JSON.parse(JSON.stringify(this.payments.data)),t=e.reduce((e,t)=>(t.payment_request&&""!==t.payment_request.trim()&&(e=""===e?t.payment_request:e+","+t.payment_request),e),"");Object(wn.a)(this.dataService.decodePayments(t).pipe(Object(u.a)(this.unSubs[4])).subscribe(t=>{let n=0;t.forEach((t,a)=>{for(;e[a+n].payment_hash!==t.payment_hash;)n+=1;e[a+n].description=t.description});let a=e.reduce((e,t)=>e.concat(t),[]);this.commonService.downloadFile(a,"Payments")}))}}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(x.a),i.Pb(Ln.a),i.Pb(y.h),i.Pb(Rn.a),i.Pb(Kn.a),i.Pb(a.f),i.Pb(C.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-lightning-payments"]],viewQuery:function(e,t){if(1&e&&(i.Pc(Mn,!0),i.Pc(Tt.a,!0),i.Pc(At.a,!0)),2&e){let e;i.vc(e=i.ec())&&(t.form=e.first),i.vc(e=i.ec())&&(t.sort=e.first),i.vc(e=i.ec())&&(t.paginator=e.first)}},inputs:{calledFrom:"calledFrom"},features:[i.Cb([{provide:At.b,useValue:Object(p.y)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","payment_hash"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","fee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","hops"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupHash"],["matColumnDef","groupFee"],["matColumnDef","groupValue"],["matColumnDef","groupHops"],["matColumnDef","groupAction"],["mat-cell","","class","px-2",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Succeeded","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Succeeded","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-2"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Ic(1,En,12,3,"form",1),i.Ic(2,Nn,3,0,"div",2),i.Ic(3,Ka,50,16,"div",3),i.Ub()),2&e&&(i.Db(1),i.oc("ngIf","home"===t.calledFrom),i.Db(1),i.oc("ngIf","transactions"===t.calledFrom),i.Db(1),i.oc("ngIf","transactions"===t.calledFrom))},directives:[w.c,w.a,w.b,a.o,B.u,B.n,B.o,O.c,ce.b,B.c,ce.d,B.s,M.b,B.m,B.p,S.a,O.f,O.b,v.a,Pt.n,Tt.a,a.m,I.a,Pt.c,Pt.i,Pt.b,Pt.e,Pt.m,Pt.g,Pt.k,At.a,s.a,Pt.h,Tt.b,Pt.a,R.a,a.p,I.b,Rt.a,Rt.c,Kt.m,Pt.d,a.n,Pt.l,Pt.f,Pt.j],pipes:[a.f],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"],data:{animation:[Gt.a]}}),e})();function Qa(e,t){if(1&e&&(i.Vb(0,"button",25),i.Vb(1,"mat-icon"),i.Kc(2,"more_vert"),i.Ub(),i.Ub()),2&e){i.hc();const e=i.wc(11);i.oc("matMenuTriggerFor",e)}}function za(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",15),i.dc("click",function(){return i.zc(e),i.hc(3).onNavigateTo("/lnd/reports")}),i.Kc(1,"Fees Summary"),i.Ub()}}function Ea(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",15),i.dc("click",function(){return i.zc(e),i.hc(3).onsortChannelsBy()}),i.Kc(1),i.Ub()}if(2&e){const e=i.hc(3);i.Db(1),i.Mc("Sort By ","Balance Score"===e.sortField?"Capacity":"Balance Score","")}}const Na=function(e){return{"error-border":e}};function Ga(e,t){if(1&e&&i.Qb(0,"rtl-node-info",26),2&e){const e=i.hc(3);i.oc("information",e.information)("showColorFieldSeparately",!1)("ngClass",i.sc(3,Na,"error"===e.flgLoading[0]))}}function qa(e,t){if(1&e&&i.Qb(0,"rtl-balances-info",27),2&e){const e=i.hc(3);i.oc("balances",e.balances)("ngClass",i.sc(2,Na,"error"===e.flgLoading[2]||"error"===e.flgLoading[3]))}}function Ba(e,t){if(1&e&&i.Qb(0,"rtl-channel-capacity-info",28),2&e){const e=i.hc(3);i.oc("sortBy",e.sortField)("channelBalances",e.channelBalances)("allChannels",e.allChannelsCapacity)("ngClass",i.sc(4,Na,"error"===e.flgLoading[3]))}}function Ha(e,t){if(1&e&&i.Qb(0,"rtl-fee-info",29),2&e){const e=i.hc(3);i.oc("fees",e.fees)("ngClass",i.sc(2,Na,"error"===e.flgLoading[1]))}}function ja(e,t){if(1&e&&i.Qb(0,"rtl-channel-status-info",30),2&e){const e=i.hc(3);i.oc("channelsStatus",e.channelsStatus)("ngClass",i.sc(2,Na,"error"===e.flgLoading[3]||"error"===e.flgLoading[4]))}}function Wa(e,t){1&e&&(i.Vb(0,"h3"),i.Kc(1,"Error! Unable to find information!"),i.Ub())}function $a(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-grid-tile",8),i.Vb(1,"mat-card",9),i.Vb(2,"mat-card-header"),i.Vb(3,"mat-card-title",10),i.Vb(4,"div"),i.Qb(5,"fa-icon",11),i.Vb(6,"span"),i.Kc(7),i.Ub(),i.Ub(),i.Vb(8,"div"),i.Ic(9,Qa,3,1,"button",12),i.Vb(10,"mat-menu",13,14),i.Vb(12,"button",15),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc(2).onNavigateTo(n.link)}),i.Kc(13),i.Ub(),i.Ic(14,za,2,0,"button",16),i.Ic(15,Ea,2,1,"button",16),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Vb(16,"mat-card-content",17),i.Vb(17,"div",18),i.Ic(18,Ga,1,5,"rtl-node-info",19),i.Ic(19,qa,1,4,"rtl-balances-info",20),i.Ic(20,Ba,1,6,"rtl-channel-capacity-info",21),i.Ic(21,Ha,1,4,"rtl-fee-info",22),i.Ic(22,ja,1,4,"rtl-channel-status-info",23),i.Ic(23,Wa,2,0,"h3",24),i.Ub(),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=t.$implicit;i.oc("colspan",e.cols)("rowspan",e.rows),i.Db(5),i.oc("icon",e.icon),i.Db(2),i.Lc(e.title),i.Db(2),i.oc("ngIf",e.link),i.Db(4),i.Mc("Go To ",e.goTo,""),i.Db(1),i.oc("ngIf","fee"===e.id),i.Db(1),i.oc("ngIf","capacity"===e.id),i.Db(1),i.pc("fxFlex","node"===e.id||"balance"===e.id?70:"fee"===e.id||"status"===e.id?78:90),i.Db(1),i.oc("ngSwitch",e.id),i.Db(1),i.oc("ngSwitchCase","node"),i.Db(1),i.oc("ngSwitchCase","balance"),i.Db(1),i.oc("ngSwitchCase","capacity"),i.Db(1),i.oc("ngSwitchCase","fee"),i.Db(1),i.oc("ngSwitchCase","status")}}function Xa(e,t){if(1&e&&(i.Vb(0,"div",2),i.Vb(1,"div",3),i.Qb(2,"fa-icon",4),i.Vb(3,"span",5),i.Kc(4),i.Ub(),i.Ub(),i.Vb(5,"mat-grid-list",6),i.Ic(6,$a,24,15,"mat-grid-tile",7),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(2),i.oc("icon",e.flgLoading[0]?e.faFrown:e.faSmile),i.Db(2),i.Lc(e.flgLoading[0]?"Error! Please check the server connection.":"Welcome "+e.information.alias+"! Your node is up and running."),i.Db(1),i.oc("rowHeight",e.operatorCardHeight),i.Db(1),i.oc("ngForOf",e.operatorCards)}}function Ja(e,t){if(1&e&&(i.Vb(0,"button",25),i.Vb(1,"mat-icon"),i.Kc(2,"more_vert"),i.Ub(),i.Ub()),2&e){i.hc();const e=i.wc(9);i.oc("matMenuTriggerFor",e)}}function Za(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-card-header"),i.Vb(1,"mat-card-title",10),i.Vb(2,"div"),i.Qb(3,"fa-icon",11),i.Vb(4,"span"),i.Kc(5),i.Ub(),i.Ub(),i.Vb(6,"div"),i.Ic(7,Ja,3,1,"button",12),i.Vb(8,"mat-menu",13,40),i.Vb(10,"button",15),i.dc("click",function(){i.zc(e);const t=i.hc().$implicit;return i.hc(2).onNavigateTo(t.link)}),i.Kc(11),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc().$implicit;i.Db(3),i.oc("icon",e.icon),i.Db(2),i.Lc(e.title),i.Db(2),i.oc("ngIf",e.link),i.Db(4),i.Mc("Go To ",e.goTo,"")}}function Ya(e,t){if(1&e&&i.Qb(0,"rtl-node-info",41),2&e){const e=i.hc(3);i.oc("information",e.information)("ngClass",i.sc(2,Na,"error"===e.flgLoading[0]))}}function eo(e,t){if(1&e&&i.Qb(0,"rtl-balances-info",27),2&e){const e=i.hc(3);i.oc("balances",e.balances)("ngClass",i.sc(2,Na,"error"===e.flgLoading[2]||"error"===e.flgLoading[3]))}}function to(e,t){if(1&e&&i.Qb(0,"rtl-channel-liquidity-info",42),2&e){const e=i.hc(3);i.oc("direction","In")("totalLiquidity",e.totalInboundLiquidity)("allChannels",e.allInboundChannels)("ngClass",i.sc(4,Na,"error"===e.flgLoading[3]))}}function no(e,t){if(1&e&&i.Qb(0,"rtl-channel-liquidity-info",42),2&e){const e=i.hc(3);i.oc("direction","Out")("totalLiquidity",e.totalOutboundLiquidity)("allChannels",e.allOutboundChannels)("ngClass",i.sc(4,Na,"error"===e.flgLoading[3]))}}function ao(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",25),i.Vb(1,"mat-icon"),i.Kc(2,"more_vert"),i.Ub(),i.Ub(),i.Vb(3,"mat-menu",13,50),i.Vb(5,"button",15),i.dc("click",function(){i.zc(e);const t=i.hc(2).$implicit;return i.hc(2).onNavigateTo(t.link)}),i.Kc(6),i.Ub(),i.Vb(7,"button",15),i.dc("click",function(){return i.zc(e),i.hc(4).onNavigateTo("/lnd/reports/transactions")}),i.Kc(8,"Transactions Summary"),i.Ub(),i.Ub()}if(2&e){const e=i.wc(4),t=i.hc(2).$implicit;i.oc("matMenuTriggerFor",e),i.Db(6),i.Mc("Go To ",t.goTo,"")}}function oo(e,t){1&e&&(i.Vb(0,"span",43),i.Vb(1,"mat-tab-group",44),i.Vb(2,"mat-tab",45),i.Qb(3,"rtl-lightning-invoices",46),i.Ub(),i.Vb(4,"mat-tab",47),i.Qb(5,"rtl-lightning-payments",46),i.Ub(),i.Vb(6,"mat-tab",48),i.Ic(7,ao,9,2,"ng-template",49),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(3),i.oc("calledFrom","home"),i.Db(2),i.oc("calledFrom","home"),i.Db(1),i.oc("disabled",!0))}function io(e,t){1&e&&(i.Vb(0,"h3"),i.Kc(1,"Error! Unable to find information!"),i.Ub())}const so=function(e){return{"p-0":e}};function co(e,t){if(1&e&&(i.Vb(0,"mat-grid-tile",8),i.Vb(1,"mat-card",33),i.Ic(2,Za,12,4,"mat-card-header",34),i.Vb(3,"mat-card-content",35),i.Vb(4,"div",36),i.Ic(5,Ya,1,4,"rtl-node-info",37),i.Ic(6,eo,1,4,"rtl-balances-info",20),i.Ic(7,to,1,6,"rtl-channel-liquidity-info",38),i.Ic(8,no,1,6,"rtl-channel-liquidity-info",38),i.Ic(9,oo,8,3,"span",39),i.Ic(10,io,2,0,"h3",24),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.oc("colspan",e.cols)("rowspan",e.rows),i.Db(1),i.oc("ngClass",i.sc(11,so,"transactions"===e.id)),i.Db(1),i.oc("ngIf","transactions"!==e.id),i.Db(1),i.pc("fxFlex","transactions"===e.id?100:"balance"===e.id?70:90),i.Db(1),i.oc("ngSwitch",e.id),i.Db(1),i.oc("ngSwitchCase","node"),i.Db(1),i.oc("ngSwitchCase","balance"),i.Db(1),i.oc("ngSwitchCase","inboundLiq"),i.Db(1),i.oc("ngSwitchCase","outboundLiq"),i.Db(1),i.oc("ngSwitchCase","transactions")}}function lo(e,t){if(1&e&&(i.Vb(0,"div",31),i.Qb(1,"fa-icon",4),i.Vb(2,"span",5),i.Kc(3),i.Ub(),i.Ub(),i.Vb(4,"mat-grid-list",32),i.Ic(5,co,11,13,"mat-grid-tile",7),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("icon",e.faSmile),i.Db(2),i.Mc("Welcome ",e.information.alias,"! Your node is up and running."),i.Db(1),i.oc("rowHeight",e.merchantCardHeight),i.Db(1),i.oc("ngForOf",e.merchantCards)}}let ro=(()=>{class e{constructor(e,t,n,a,o){switch(this.logger=e,this.store=t,this.actions$=n,this.commonService=a,this.router=o,this.faSmile=h.b,this.faFrown=h.a,this.faAngleDoubleDown=m.a,this.faAngleDoubleUp=m.b,this.faChartPie=m.g,this.faBolt=m.e,this.faServer=m.G,this.faNetworkWired=m.y,this.flgChildInfoUpdated=!1,this.userPersonaEnum=p.w,this.activeChannels=0,this.inactiveChannels=0,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.showLoop=!1,this.information={},this.balances={onchain:-1,lightning:-1,total:0},this.allChannels=[],this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="330px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.screenSizeEnum=p.q,this.flgLoading=[!0,!0,!0,!0,!0,!0,!0,!0],this.unSubs=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize){case p.q.XS:this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goTo:"Routing",link:"/lnd/routing",icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goTo:"Transactions",link:"/lnd/transactions",title:"",cols:6,rows:6},{id:"inboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}];break;case p.q.SM:this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goTo:"Routing",link:"/lnd/routing",icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goTo:"Transactions",link:"/lnd/transactions",title:"",cols:3,rows:4},{id:"inboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}];break;case p.q.MD:default:this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goTo:"Routing",link:"/lnd/routing",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goTo:"Channels",link:"/lnd/connections",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goTo:"Channels",link:"/lnd/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goTo:"Transactions",link:"/lnd/transactions",title:"",cols:2,rows:5}]}}ngOnInit(){this.store.select("lnd").pipe(Object(u.a)(this.unSubs[1])).subscribe(e=>{this.flgLoading=[!0,!0,!0,!0,!0,!0,!0,!0],e.effectErrors.forEach(e=>{this.flgLoading[0]="FetchInfo"===e.action?"error":this.flgLoading[0],this.flgLoading[1]="FetchFees"===e.action?"error":this.flgLoading[1],this.flgLoading[2]="FetchBalance/channels"===e.action?"error":this.flgLoading[2],this.flgLoading[3]="FetchChannels/all"===e.action?"error":this.flgLoading[3],this.flgLoading[4]="FetchChannels/pending"===e.action?"error":this.flgLoading[4]}),this.flgLoading[0]=!e.information.identity_pubkey&&this.flgLoading[0],this.flgLoading[1]=!e.fees.day_fee_sum&&this.flgLoading[1],this.flgLoading[2]=!(+e.blockchainBalance.total_balance>=0&&e.totalLocalBalance>=0)&&this.flgLoading[2],this.flgLoading[3]=!(e.totalLocalBalance>=0&&e.totalRemoteBalance>=0)&&this.flgLoading[3],this.flgLoading[4]=("error"===this.flgLoading[4]||!e.numberOfPendingChannels)&&this.flgLoading[4],this.selNode=e.nodeSettings,this.showLoop=!(!this.selNode.swapServerUrl||""===this.selNode.swapServerUrl.trim()),this.information=e.information,this.fees=e.fees,this.balances.onchain=+e.blockchainBalance.total_balance>=0?+e.blockchainBalance.total_balance:0;let t=e.totalLocalBalance?+e.totalLocalBalance:0,n=e.totalRemoteBalance?+e.totalRemoteBalance:0;this.channelBalances={localBalance:t,remoteBalance:n,balancedness:+(1-Math.abs((t-n)/(t+n))).toFixed(3)},this.balances.lightning=e.totalLocalBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances),this.activeChannels=e.numberOfActiveChannels,this.inactiveChannels=e.numberOfInactiveChannels,this.channelsStatus={active:{channels:e.numberOfActiveChannels,capacity:e.totalCapacityActive},inactive:{channels:e.numberOfInactiveChannels,capacity:e.totalCapacityInactive},pending:{channels:e.numberOfPendingChannels.open.num_channels,capacity:e.numberOfPendingChannels.open.limbo_balance},closing:{channels:e.numberOfPendingChannels.closing.num_channels+e.numberOfPendingChannels.force_closing.num_channels+e.numberOfPendingChannels.waiting_close.num_channels,capacity:e.numberOfPendingChannels.total_limbo_balance}},this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannels=e.allChannels.filter(e=>!0===e.active),this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels.filter(e=>e.remote_balance>0),"remote_balance"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels.filter(e=>e.local_balance>0),"local_balance"))),this.allChannels.forEach(e=>{this.totalInboundLiquidity=this.totalInboundLiquidity+ +e.remote_balance,this.totalOutboundLiquidity=this.totalOutboundLiquidity+ +e.local_balance}),this.flgChildInfoUpdated=this.balances.lightning>=0&&this.balances.onchain>=0&&this.fees.month_fee_sum>=0,this.logger.info(e)}),this.actions$.pipe(Object(u.a)(this.unSubs[2]),Object(d.a)(e=>e.type===f.r||e.type===f.Bb)).subscribe(e=>{e.type===f.r&&(this.flgChildInfoUpdated=!1),e.type===f.Bb&&(this.flgChildInfoUpdated=!0)})}onNavigateTo(e){this.router.navigateByUrl(e)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort(function(e,t){const n=+e.local_balance+ +e.remote_balance,a=+t.local_balance+ +t.remote_balance;return n>a?-1:n{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(y.h),i.Pb(C.a),i.Pb(x.a),i.Pb(o.g))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-0"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10",3,"rowHeight"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["menuOperator","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",1,"dashboard-card-content",3,"fxFlex"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"balances","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"fees","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","ngClass",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["fxFlex","100",3,"information","showColorFieldSeparately","ngClass"],["fxFlex","100",3,"balances","ngClass"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","ngClass"],["fxFlex","100",3,"fees","ngClass"],["fxFlex","100",3,"channelsStatus","ngClass"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-0"],["cols","6",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"dashboard-card-content",3,"fxFlex"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"ngSwitch"],["fxFlex","100",3,"information","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","ngClass",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information","ngClass"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","ngClass"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",1,"w-100","dashboard-tabs-group"],["label","Receive"],[3,"calledFrom"],["label","Pay"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(e,t){if(1&e&&(i.Ic(0,Xa,7,4,"div",0),i.Ic(1,lo,6,4,"ng-template",null,1,i.Jc)),2&e){const e=i.wc(2);i.oc("ngIf",t.selNode.userPersona===t.userPersonaEnum.OPERATOR)("ngIfElse",e)}},directives:[a.o,w.c,w.b,v.a,L.a,a.n,L.c,U.a,w.a,U.c,U.f,V.a,V.b,U.b,a.q,a.r,a.s,S.a,V.d,D.a,T,a.m,I.a,P,N,G,q,_t,M.b,kt.b,kt.a,xn,Ma,kt.c],styles:[""]}),e})();var bo=n("qmev"),uo=n("8Qe2");function ho(e,t){if(1&e&&(i.Vb(0,"span",10),i.Kc(1,"Channels"),i.Ub()),2&e){const e=i.hc();i.pc("matBadge",e.activeChannels)}}function mo(e,t){if(1&e&&(i.Vb(0,"span",10),i.Kc(1,"Peers"),i.Ub()),2&e){const e=i.hc();i.pc("matBadge",e.activePeers)}}let po=(()=>{class e{constructor(e,t,n){this.store=e,this.logger=t,this.router=n,this.selNode={},this.activePeers=0,this.activeChannels=0,this.faUsers=m.O,this.faChartPie=m.g,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe(Object(u.a)(this.unSubs[0]),Object(d.a)(e=>e instanceof o.f)).subscribe(e=>{this.activeLink=this.links.findIndex(t=>t.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[1])).subscribe(e=>{this.selNode=e.nodeSettings,this.activePeers=e.peers&&e.peers.length?e.peers.length:0,this.activeChannels=e.numberOfActiveChannels,this.balances=[{title:"Total Balance",dataValue:e.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:e.blockchainBalance.confirmed_balance},{title:"Unconfirmed",dataValue:e.blockchainBalance.unconfirmed_balance}],this.logger.info(e)})}onSelectedTabChange(e){this.router.navigateByUrl("/lnd/connections/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(y.h),i.Pb(g.b),i.Pb(o.g))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-connections"]],decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Qb(1,"fa-icon",1),i.Vb(2,"span",2),i.Kc(3,"On-chain Balance"),i.Ub(),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"mat-card"),i.Vb(6,"mat-card-content",4),i.Qb(7,"rtl-currency-unit-converter",5),i.Ub(),i.Ub(),i.Ub(),i.Vb(8,"div",0),i.Qb(9,"fa-icon",1),i.Vb(10,"span",2),i.Kc(11,"Connections"),i.Ub(),i.Ub(),i.Vb(12,"div",6),i.Vb(13,"mat-card"),i.Vb(14,"mat-card-content",4),i.Vb(15,"mat-tab-group",7),i.dc("selectedIndexChange",function(e){return t.activeLink=e})("selectedTabChange",function(e){return t.onSelectedTabChange(e)}),i.Vb(16,"mat-tab"),i.Ic(17,ho,2,1,"ng-template",8),i.Ub(),i.Vb(18,"mat-tab"),i.Ic(19,mo,2,1,"ng-template",8),i.Ub(),i.Ub(),i.Vb(20,"div",9),i.Qb(21,"router-outlet"),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(1),i.oc("icon",t.faChartPie),i.Db(6),i.oc("values",t.balances),i.Db(2),i.oc("icon",t.faUsers),i.Db(6),i.oc("selectedIndex",t.activeLink))},directives:[w.c,w.b,v.a,U.a,U.b,bo.a,kt.b,kt.a,kt.c,w.a,o.l,uo.a],styles:[""]}),e})();var fo=n("JX91"),go=n("lJxs"),yo=n("hNFU"),Co=n("vrAh");const xo=["form"];function wo(e,t){if(1&e&&(i.Vb(0,"mat-option",38),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.oc("value",e),i.Db(1),i.Lc(e.alias?e.alias:e.pub_key?e.pub_key:"")}}function vo(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Peer alias is required."),i.Ub())}function Lo(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Peer not found in the list."),i.Ub())}function Uo(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-form-field",34),i.Vb(1,"input",35),i.dc("change",function(){return i.zc(e),i.hc().onSelectedPeerChanged()}),i.Ub(),i.Vb(2,"mat-autocomplete",36,37),i.dc("optionSelected",function(){return i.zc(e),i.hc().onSelectedPeerChanged()}),i.Ic(4,wo,2,2,"mat-option",24),i.ic(5,"async"),i.Ub(),i.Ic(6,vo,2,0,"mat-error",17),i.Ic(7,Lo,2,0,"mat-error",17),i.Ub()}if(2&e){const e=i.wc(3),t=i.hc();i.Db(1),i.oc("formControl",t.selectedPeer)("matAutocomplete",e),i.Db(1),i.oc("displayWith",t.displayFn),i.Db(2),i.oc("ngForOf",i.jc(5,6,t.filteredPeers)),i.Db(2),i.oc("ngIf",null==t.selectedPeer.errors?null:t.selectedPeer.errors.required),i.Db(1),i.oc("ngIf",null==t.selectedPeer.errors?null:t.selectedPeer.errors.notfound)}}function Vo(e,t){1&e&&i.Rb(0)}function So(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Amount is required."),i.Ub())}function Do(e,t){if(1&e&&(i.Vb(0,"mat-error"),i.Kc(1),i.Ub()),2&e){const e=i.hc();i.Db(1),i.Mc("Amount must be less than or equal to ",e.totalBalance,".")}}function Io(e,t){if(1&e&&(i.Vb(0,"mat-option",38),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.oc("value",e.id),i.Db(1),i.Mc(" ",e.name," ")}}function Fo(e,t){if(1&e&&(i.Vb(0,"mat-error"),i.Kc(1),i.Ub()),2&e){const e=i.hc();i.Db(1),i.Mc("","1"===e.selTransType?"Target Confirmation Blocks":"Fee"," is required.")}}function _o(e,t){if(1&e&&(i.Vb(0,"span"),i.Kc(1),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.Lc(e.channelConnectionError)}}function ko(e,t){if(1&e&&(i.Vb(0,"div",39),i.Qb(1,"fa-icon",40),i.Ic(2,_o,2,1,"span",17),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("icon",e.faExclamationTriangle),i.Db(1),i.oc("ngIf",""!==e.channelConnectionError)}}function Ao(e,t){if(1&e&&(i.Vb(0,"mat-expansion-panel",42),i.Vb(1,"mat-expansion-panel-header"),i.Vb(2,"mat-panel-title"),i.Vb(3,"span"),i.Kc(4,"Peer: \xa0"),i.Ub(),i.Vb(5,"strong",43),i.Kc(6),i.Ub(),i.Ub(),i.Ub(),i.Vb(7,"div",9),i.Vb(8,"div",0),i.Vb(9,"div",34),i.Vb(10,"h4",44),i.Kc(11,"Pubkey"),i.Ub(),i.Vb(12,"span",45),i.Kc(13),i.Ub(),i.Ub(),i.Ub(),i.Qb(14,"mat-divider",46),i.Vb(15,"div",0),i.Vb(16,"div",47),i.Vb(17,"h4",44),i.Kc(18,"Address"),i.Ub(),i.Vb(19,"span",48),i.Kc(20),i.Ub(),i.Ub(),i.Vb(21,"div",47),i.Vb(22,"h4",44),i.Kc(23,"Inbound"),i.Ub(),i.Vb(24,"span",48),i.Kc(25),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e){const e=i.hc(2);i.Db(6),i.Lc((null==e.peer?null:e.peer.alias)||(null==e.peer?null:e.peer.address)),i.Db(7),i.Lc(e.peer.pub_key),i.Db(7),i.Lc(null==e.peer?null:e.peer.address),i.Db(5),i.Lc(null!=e.peer&&e.peer.inbound?"True":"False")}}function To(e,t){if(1&e&&i.Ic(0,Ao,26,4,"mat-expansion-panel",41),2&e){const e=i.hc();i.oc("ngIf",e.peer)}}let Po=(()=>{class e{constructor(e,t,n,a){this.dialogRef=e,this.data=t,this.store=n,this.actions$=a,this.selectedPeer=new B.e,this.amount=new B.e,this.faExclamationTriangle=m.o,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.selTransType="0",this.spendUnconfirmed=!1,this.transTypeValue="",this.transTypes=p.u,this.unSubs=[new b.a,new b.a]}ngOnInit(){this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.alertTitle=this.data.alertTitle,this.peer=this.data.message.peer?this.data.message.peer:null,this.peers=this.data.message.peers&&this.data.message.peers.length?this.data.message.peers:[],this.actions$.pipe(Object(u.a)(this.unSubs[0]),Object(d.a)(e=>e.type===f.m||e.type===f.o)).subscribe(e=>{e.type===f.m&&"SaveNewChannel"===e.payload.action&&(this.channelConnectionError=e.payload.message),e.type===f.o&&this.dialogRef.close()});let e="",t="";this.sortedPeers=this.peers.sort((n,a)=>(e=n.alias?n.alias.toLowerCase():n.pub_key?n.pub_key.toLowerCase():"",t=a.alias?a.alias.toLowerCase():n.pub_key.toLowerCase(),et?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe(Object(u.a)(this.unSubs[1]),Object(fo.a)(""),Object(go.a)(e=>"string"==typeof e?e:e.alias?e.alias:e.pub_key),Object(go.a)(e=>e?this.filterPeers(e):this.sortedPeers.slice()))}filterPeers(e){return this.sortedPeers.filter(t=>0===t.alias.toLowerCase().indexOf(e?e.toLowerCase():""))}displayFn(e){return e&&e.alias?e.alias:e&&e.pub_key?e.pub_key:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.pub_key?this.selectedPeer.value.pub_key:void 0,"string"==typeof this.selectedPeer.value){let e=this.peers.filter(e=>e.alias.length===this.selectedPeer.value.length&&0===e.alias.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===e.length&&e[0].pub_key&&(this.selectedPubkey=e[0].pub_key)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.spendUnconfirmed=!1,this.selTransType="0",this.transTypeValue="",this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||("1"===this.selTransType||"2"===this.selTransType)&&!this.transTypeValue)return!0;this.store.dispatch(new W.F("Opening Channel...")),this.store.dispatch(new f.Sb({selectedPeerPubkey:this.peer&&this.peer.pub_key?this.peer.pub_key:this.selectedPubkey,fundingAmount:this.fundingAmount,private:this.isPrivate,transType:this.selTransType,transTypeValue:this.transTypeValue,spendUnconfirmed:this.spendUnconfirmed}))}onAdvancedPanelToggle(e){this.advancedTitle=e?"Advanced Options | "+("1"===this.selTransType?"Target Confirmation Blocks: ":"2"===this.selTransType?"Fee (Sats/Byte): ":"Default")+("1"===this.selTransType||"2"===this.selTransType?this.transTypeValue:"")+" | Spend Unconfirmed Output: "+(this.spendUnconfirmed?"Yes":"No"):"Advanced Options"}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(H.f),i.Pb(H.a),i.Pb(y.h),i.Pb(C.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-open-channel"]],viewQuery:function(e,t){if(1&e&&i.Ec(xo,!0),2&e){let e;i.vc(e=i.ec())&&(t.form=e.first)}},decls:55,vars:26,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amnt",3,"ngModel","step","min","max","ngModelChange"],["amt","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","49"],["tabindex","3",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","tabindex","4","name","transTpValue",3,"ngModel","required","disabled","placeholder","step","min","ngModelChange"],["transTypeVal","ngModel"],["fxFlex","50","fxLayoutAlign","start center"],["tabindex","6","color","primary","name","spendUnconfirmed",3,"ngModel","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["fxFlex","100"],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(e,t){if(1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"mat-card-header",2),i.Vb(3,"div",3),i.Vb(4,"span",4),i.Kc(5),i.Ub(),i.Ub(),i.Vb(6,"button",5),i.dc("click",function(){return t.onClose()}),i.Kc(7,"X"),i.Ub(),i.Ub(),i.Vb(8,"mat-card-content",6),i.Vb(9,"form",7,8),i.dc("submit",function(){return t.onOpenChannel()})("reset",function(){return t.resetData()}),i.Vb(11,"div",9),i.Ic(12,Uo,8,8,"mat-form-field",10),i.Ub(),i.Ic(13,Vo,1,0,"ng-container",11),i.Vb(14,"div",9),i.Vb(15,"div",12),i.Vb(16,"mat-form-field",13),i.Vb(17,"input",14,15),i.dc("ngModelChange",function(e){return t.fundingAmount=e}),i.Ub(),i.Vb(19,"mat-hint"),i.Kc(20),i.ic(21,"number"),i.Ub(),i.Vb(22,"span",16),i.Kc(23),i.Ub(),i.Ic(24,So,2,0,"mat-error",17),i.Ic(25,Do,2,1,"mat-error",17),i.Ub(),i.Vb(26,"div",18),i.Vb(27,"mat-slide-toggle",19),i.dc("ngModelChange",function(e){return t.isPrivate=e}),i.Kc(28,"Private Channel"),i.Ub(),i.Ub(),i.Ub(),i.Vb(29,"mat-expansion-panel",20),i.dc("closed",function(){return t.onAdvancedPanelToggle(!0)})("opened",function(){return t.onAdvancedPanelToggle(!1)}),i.Vb(30,"mat-expansion-panel-header"),i.Vb(31,"mat-panel-title"),i.Vb(32,"span"),i.Kc(33),i.Ub(),i.Ub(),i.Ub(),i.Vb(34,"div",21),i.Vb(35,"div",12),i.Vb(36,"mat-form-field",22),i.Vb(37,"mat-select",23),i.dc("valueChange",function(e){return t.selTransType=e}),i.Ic(38,Io,2,2,"mat-option",24),i.Ub(),i.Ub(),i.Vb(39,"mat-form-field",22),i.Vb(40,"input",25,26),i.dc("ngModelChange",function(e){return t.transTypeValue=e}),i.Ub(),i.Ic(42,Fo,2,1,"mat-error",17),i.Ub(),i.Ub(),i.Vb(43,"div",12),i.Vb(44,"div",27),i.Vb(45,"mat-slide-toggle",28),i.dc("ngModelChange",function(e){return t.spendUnconfirmed=e}),i.Kc(46,"Spend Unconfirmed Output"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ic(47,ko,3,2,"div",29),i.Vb(48,"div",30),i.Vb(49,"button",31),i.Kc(50,"Clear Fields"),i.Ub(),i.Vb(51,"button",32),i.Kc(52,"Open Channel"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ic(53,To,1,1,"ng-template",null,33,i.Jc)),2&e){const e=i.wc(54);i.Db(5),i.Lc(t.alertTitle),i.Db(7),i.oc("ngIf",!t.peer&&t.peers&&t.peers.length>0),i.Db(1),i.oc("ngTemplateOutlet",e),i.Db(4),i.oc("ngModel",t.fundingAmount)("step",1e3)("min",1)("max",t.totalBalance),i.Db(3),i.Mc("(Remaining Bal: ",i.jc(21,24,t.totalBalance-(t.fundingAmount?t.fundingAmount:0)),")"),i.Db(3),i.Mc(" ",null==t.information?null:t.information.smaller_currency_unit,""),i.Db(1),i.oc("ngIf",null==t.amount.errors?null:t.amount.errors.required),i.Db(1),i.oc("ngIf",null==t.amount.errors?null:t.amount.errors.max),i.Db(2),i.oc("ngModel",t.isPrivate),i.Db(6),i.Lc(t.advancedTitle),i.Db(4),i.oc("value",t.selTransType),i.Db(1),i.oc("ngForOf",t.transTypes),i.Db(2),i.oc("ngModel",t.transTypeValue)("required","0"!==t.selTransType)("disabled","0"===t.selTransType)("placeholder","0"===t.selTransType?"Default":"1"===t.selTransType?"Target Confirmation Blocks":"Fee (Sats/Byte)")("step",1)("min",0),i.Db(2),i.oc("ngIf","0"!==t.selTransType&&!t.transTypeValue),i.Db(3),i.oc("ngModel",t.spendUnconfirmed),i.Db(2),i.oc("ngIf",""!==t.channelConnectionError)}},directives:[w.c,w.a,U.c,w.b,S.a,U.b,B.u,B.n,B.o,a.o,a.t,O.c,ce.b,B.q,B.c,Ot.a,yo.a,B.s,B.m,B.p,O.f,O.g,re.a,J.c,J.e,J.f,Rt.a,a.n,le.a,Co.c,B.f,Co.a,Kt.m,O.b,v.a,K.a],pipes:[a.f,a.b],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),e})();const Oo=["peersForm"],Ro=["stepper"];function Ko(e,t){if(1&e&&i.Kc(0),2&e){const e=i.hc();i.Lc(e.peerFormLabel)}}function Mo(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Address is required."),i.Ub())}function Qo(e,t){if(1&e&&(i.Vb(0,"div",38),i.Qb(1,"fa-icon",39),i.Vb(2,"span"),i.Kc(3),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("icon",e.faExclamationTriangle),i.Db(2),i.Lc(e.peerConnectionError)}}function zo(e,t){if(1&e&&i.Kc(0),2&e){const e=i.hc();i.Lc(e.channelFormLabel)}}function Eo(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Amount is required."),i.Ub())}function No(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Amount must be a positive number."),i.Ub())}function Go(e,t){if(1&e&&(i.Vb(0,"mat-error"),i.Kc(1),i.Ub()),2&e){const e=i.hc();i.Db(1),i.Mc("Amount must be less than or equal to ",e.totalBalance,".")}}function qo(e,t){if(1&e&&(i.Vb(0,"mat-option",40),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.oc("value",e.id),i.Db(1),i.Mc(" ",e.name," ")}}function Bo(e,t){if(1&e&&(i.Vb(0,"mat-error"),i.Kc(1),i.Ub()),2&e){const e=i.hc();i.Db(1),i.Mc("","0"===e.channelFormGroup.controls.selTransType.value?"Default":"1"===e.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/Byte)"," is required.")}}function Ho(e,t){if(1&e&&(i.Vb(0,"div",38),i.Qb(1,"fa-icon",39),i.Vb(2,"span"),i.Kc(3),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("icon",e.faExclamationTriangle),i.Db(2),i.Lc(e.channelConnectionError)}}let jo=(()=>{class e{constructor(e,t,n,a,o,i,s){this.dialogRef=e,this.data=t,this.store=n,this.lndEffects=a,this.formBuilder=o,this.actions$=i,this.logger=s,this.faExclamationTriangle=m.o,this.peerAddress="",this.totalBalance=0,this.transTypes=p.u,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.unSubs=[new b.a,new b.a]}ngOnInit(){this.totalBalance=this.data.message.balance,this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[B.t.required]],peerAddress:["",[B.t.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[B.t.required,B.t.min(1),B.t.max(this.totalBalance)]],isPrivate:[!1],selTransType:[p.u[0].id],transTypeValue:[{value:"",disabled:!0}],spendUnconfirmed:[!1],hiddenAmount:["",[B.t.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.selTransType.valueChanges.pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{e===p.u[0].id?(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.disable(),this.channelFormGroup.controls.transTypeValue.setValidators(null),this.channelFormGroup.controls.transTypeValue.setErrors(null)):(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.enable(),this.channelFormGroup.controls.transTypeValue.setValidators([B.t.required]))}),this.actions$.pipe(Object(u.a)(this.unSubs[1]),Object(d.a)(e=>e.type===f.db||e.type===f.z||e.type===f.m)).subscribe(e=>{e.type===f.db&&(this.logger.info(e.payload),this.flgEditable=!1,this.newlyAddedPeer=e.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),e.type===f.z&&this.dialogRef.close(),e.type===f.m&&("SaveNewPeer"===e.payload.action||"FetchGraphNode"===e.payload.action?this.peerConnectionError=e.payload.message:"SaveNewChannel"===e.payload.action&&(this.channelConnectionError=e.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="";const e=this.peerFormGroup.controls.peerAddress.value.search("@");let t="",n="";e>-1?(t=this.peerFormGroup.controls.peerAddress.value.substring(0,e),n=this.peerFormGroup.controls.peerAddress.value.substring(e+1),this.connectPeerWithParams(t,n)):(this.store.dispatch(new W.F("Getting Node Address...")),this.store.dispatch(new f.G({pubkey:this.peerFormGroup.controls.peerAddress.value})),this.lndEffects.setGraphNode.pipe(Object(vn.a)(1)).subscribe(e=>{this.store.dispatch(new W.i),n=e.node.addresses&&e.node.addresses[0].addr?e.node.addresses[0].addr:"",this.connectPeerWithParams(this.peerFormGroup.controls.peerAddress.value,n)}))}connectPeerWithParams(e,t){this.store.dispatch(new W.F("Adding Peer...")),this.store.dispatch(new f.Ub({pubkey:e,host:t,perm:!1}))}onOpenChannel(){if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||"1"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value||"2"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value)return!0;this.channelConnectionError="",this.store.dispatch(new W.F("Opening Channel...")),this.store.dispatch(new f.Sb({selectedPeerPubkey:this.newlyAddedPeer.pub_key,fundingAmount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,transType:this.channelFormGroup.controls.selTransType.value,transTypeValue:this.channelFormGroup.controls.transTypeValue.value,spendUnconfirmed:this.channelFormGroup.controls.spendUnconfirmed.value}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(e){switch(e.selectedIndex){case 0:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+this.newlyAddedPeer.alias:"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+this.newlyAddedPeer.alias:"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)";break;default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)"}e.selectedIndex{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(H.f),i.Pb(H.a),i.Pb(y.h),i.Pb(Kn.a),i.Pb(B.d),i.Pb(C.a),i.Pb(g.b))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-connect-peer"]],viewQuery:function(e,t){if(1&e&&(i.Pc(Oo,!0),i.Pc(Ro,!0)),2&e){let e;i.vc(e=i.ec())&&(t.form=e.first),i.vc(e=i.ec())&&(t.stepper=e.first)}},decls:56,vars:24,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100"],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","3","formControlName","selTransType","placeholder","Transaction Type"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","30"],["matInput","","formControlName","transTypeValue","type","number","name","transTypeValue","tabindex","4",3,"placeholder","step","required"],["tabindex","6","color","primary","formControlName","spendUnconfirmed","name","spendUnconfirmed"],["mat-stroked-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"mat-card-header",2),i.Vb(3,"div",3),i.Vb(4,"span",4),i.Kc(5,"Connect to a new peer"),i.Ub(),i.Ub(),i.Vb(6,"button",5),i.dc("click",function(){return t.onClose()}),i.Kc(7,"X"),i.Ub(),i.Ub(),i.Vb(8,"mat-card-content",6),i.Vb(9,"div",7),i.Vb(10,"mat-vertical-stepper",8,9),i.dc("selectionChange",function(e){return t.stepSelectionChanged(e)}),i.Vb(12,"mat-step",10),i.Vb(13,"form",11),i.Ic(14,Ko,1,1,"ng-template",12),i.Vb(15,"mat-form-field",13),i.Qb(16,"input",14),i.Ic(17,Mo,2,0,"mat-error",15),i.Ub(),i.Ic(18,Qo,4,2,"div",16),i.Vb(19,"div",17),i.Vb(20,"button",18),i.dc("click",function(){return t.onConnectPeer()}),i.Kc(21),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Vb(22,"mat-step",10),i.Vb(23,"form",19),i.Ic(24,zo,1,1,"ng-template",20),i.Vb(25,"div",21),i.Vb(26,"div",22),i.Vb(27,"mat-form-field",23),i.Qb(28,"input",24),i.Vb(29,"mat-hint"),i.Kc(30),i.Ub(),i.Vb(31,"span",25),i.Kc(32," Sats "),i.Ub(),i.Ic(33,Eo,2,0,"mat-error",15),i.Ic(34,No,2,0,"mat-error",15),i.Ic(35,Go,2,1,"mat-error",15),i.Ub(),i.Vb(36,"div",26),i.Vb(37,"mat-slide-toggle",27),i.Kc(38,"Private Channel"),i.Ub(),i.Ub(),i.Ub(),i.Vb(39,"div",28),i.Vb(40,"mat-form-field",29),i.Vb(41,"mat-select",30),i.Ic(42,qo,2,2,"mat-option",31),i.Ub(),i.Ub(),i.Vb(43,"mat-form-field",32),i.Qb(44,"input",33),i.Ic(45,Bo,2,1,"mat-error",15),i.Ub(),i.Vb(46,"div",26),i.Vb(47,"mat-slide-toggle",34),i.Kc(48,"Spend Unconfirmed Output"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ic(49,Ho,4,2,"div",16),i.Vb(50,"div",17),i.Vb(51,"button",35),i.dc("click",function(){return t.onOpenChannel()}),i.Kc(52),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Vb(53,"div",36),i.Vb(54,"button",37),i.Kc(55),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(10),i.oc("linear",!0),i.Db(2),i.oc("stepControl",t.peerFormGroup)("editable",t.flgEditable),i.Db(1),i.oc("formGroup",t.peerFormGroup),i.Db(4),i.oc("ngIf",null==t.peerFormGroup.controls.peerAddress.errors?null:t.peerFormGroup.controls.peerAddress.errors.required),i.Db(1),i.oc("ngIf",""!==t.peerConnectionError),i.Db(3),i.Lc(""!==t.peerConnectionError?"Retry":"Add Peer"),i.Db(1),i.oc("stepControl",t.channelFormGroup)("editable",t.flgEditable),i.Db(1),i.oc("formGroup",t.channelFormGroup),i.Db(5),i.oc("step",1e3),i.Db(2),i.Mc("Remaining Bal: ",t.totalBalance-(t.channelFormGroup.controls.fundingAmount.value?t.channelFormGroup.controls.fundingAmount.value:0),""),i.Db(3),i.oc("ngIf",null==t.channelFormGroup.controls.fundingAmount.errors?null:t.channelFormGroup.controls.fundingAmount.errors.required),i.Db(1),i.oc("ngIf",null==t.channelFormGroup.controls.fundingAmount.errors?null:t.channelFormGroup.controls.fundingAmount.errors.min),i.Db(1),i.oc("ngIf",null==t.channelFormGroup.controls.fundingAmount.errors?null:t.channelFormGroup.controls.fundingAmount.errors.max),i.Db(7),i.oc("ngForOf",t.transTypes),i.Db(2),i.oc("placeholder","0"===t.channelFormGroup.controls.selTransType.value?"Default":"1"===t.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/Byte)")("step",1)("required","0"!==t.channelFormGroup.controls.selTransType.value),i.Db(1),i.oc("ngIf",null==t.channelFormGroup.controls.transTypeValue.errors?null:t.channelFormGroup.controls.transTypeValue.errors.required),i.Db(4),i.oc("ngIf",""!==t.channelConnectionError),i.Db(3),i.Lc(""!==t.channelConnectionError?"Retry":"Open Channel"),i.Db(2),i.oc("mat-dialog-close",!1),i.Db(1),i.Lc(null!=t.newlyAddedPeer&&t.newlyAddedPeer.pub_key?"Do It Later":"Close"))},directives:[w.c,w.a,U.c,w.b,S.a,U.b,X.h,X.a,B.u,B.n,B.h,X.b,O.c,ce.b,B.c,le.a,B.m,B.g,B.s,a.o,B.q,O.f,O.g,re.a,Rt.a,a.n,H.d,O.b,v.a,Kt.m],styles:[""]}),e})();function Wo(e,t){1&e&&i.Qb(0,"mat-progress-bar",32)}function $o(e,t){1&e&&(i.Vb(0,"th",33),i.Kc(1," Alias "),i.Ub())}const Xo=function(e){return{"max-width":e}};function Jo(e,t){if(1&e&&(i.Vb(0,"td",34),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc();i.oc("ngStyle",i.sc(2,Xo,n.screenSize===n.screenSizeEnum.XS?"12rem":"25rem")),i.Db(1),i.Mc(" ",null==e?null:e.alias," ")}}function Zo(e,t){1&e&&(i.Vb(0,"th",33),i.Kc(1," Public Key "),i.Ub())}function Yo(e,t){if(1&e&&(i.Vb(0,"td",34),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc();i.oc("ngStyle",i.sc(2,Xo,n.screenSize===n.screenSizeEnum.XS?"5rem":"35rem")),i.Db(1),i.Mc(" ",null==e?null:e.pub_key," ")}}function ei(e,t){1&e&&(i.Vb(0,"th",35),i.Kc(1," Sats Sent "),i.Ub())}function ti(e,t){if(1&e&&(i.Vb(0,"td",36),i.Vb(1,"span",37),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc(" ",i.jc(3,1,null==e?null:e.sat_sent)," ")}}function ni(e,t){1&e&&(i.Vb(0,"th",35),i.Kc(1," Sats Received "),i.Ub())}function ai(e,t){if(1&e&&(i.Vb(0,"td",36),i.Vb(1,"span",37),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc(" ",i.jc(3,1,null==e?null:e.sat_recv)," ")}}function oi(e,t){1&e&&(i.Vb(0,"th",35),i.Kc(1," Ping "),i.Ub())}function ii(e,t){if(1&e&&(i.Vb(0,"td",36),i.Vb(1,"span",37),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc(" ",i.jc(3,1,null==e?null:e.ping_time)," ")}}function si(e,t){if(1&e){const e=i.Wb();i.Vb(0,"th",38),i.Vb(1,"div",39),i.Vb(2,"mat-select",40),i.Qb(3,"mat-select-trigger"),i.Vb(4,"mat-option",41),i.dc("click",function(){return i.zc(e),i.hc().onDownloadCSV()}),i.Kc(5,"Download CSV"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}}function ci(e,t){if(1&e){const e=i.Wb();i.Vb(0,"td",42),i.Vb(1,"div",39),i.Vb(2,"mat-select",40),i.Qb(3,"mat-select-trigger"),i.Vb(4,"mat-option",41),i.dc("click",function(n){i.zc(e);const a=t.$implicit;return i.hc().onPeerClick(a,n)}),i.Kc(5,"View Info"),i.Ub(),i.Vb(6,"mat-option",41),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().onOpenChannel(n)}),i.Kc(7,"Open Channel"),i.Ub(),i.Vb(8,"mat-option",41),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().onPeerDetach(n)}),i.Kc(9,"Disconnect"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}}function li(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No connected peers."),i.Ub())}function ri(e,t){if(1&e&&(i.Vb(0,"td",43),i.Ic(1,li,2,0,"p",44),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("ngIf",!(null!=e.peers&&e.peers.data)||(null==e.peers.data?null:e.peers.data.length)<1)}}const bi=function(e){return{"display-none":e}};function ui(e,t){if(1&e&&i.Qb(0,"tr",45),2&e){const e=i.hc();i.oc("ngClass",i.sc(1,bi,(null==e.peers?null:e.peers.data)&&(null==e.peers||null==e.peers.data?null:e.peers.data.length)>0))}}function di(e,t){1&e&&i.Qb(0,"tr",46)}function hi(e,t){1&e&&i.Qb(0,"tr",47)}const mi=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},pi=function(){return["no_peer"]};let fi=(()=>{class e{constructor(e,t,n,a,o,i){this.logger=e,this.store=t,this.rtlEffects=n,this.lndEffects=a,this.actions$=o,this.commonService=i,this.availableBalance=0,this.faUsers=m.O,this.displayedColumns=[],this.peersData=[],this.information={},this.flgLoading=[!0],this.flgSticky=!1,this.pageSize=p.n,this.pageSizeOptions=p.o,this.screenSize="",this.screenSizeEnum=p.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.q.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===p.q.SM?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","actions"]):this.screenSize===p.q.MD?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","ping_time","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","pub_key","sat_sent","sat_recv","ping_time","actions"])}ngOnInit(){this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{e.effectErrors.forEach(e=>{"FetchPeers"===e.action&&(this.flgLoading[0]="error")}),this.information=e.information,this.availableBalance=e.blockchainBalance.total_balance||0,this.peersData=e.peers,this.peersData.length>0&&this.loadPeersTable(this.peersData),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!1),this.logger.info(e)})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(e,t){this.store.dispatch(new W.C({data:{type:p.b.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:e.pub_key,message:[[{key:"pub_key",value:e.pub_key,title:"Public Key",width:100}],[{key:"address",value:e.address,title:"Address",width:100}],[{key:"alias",value:e.alias,title:"Alias",width:40},{key:"inbound",value:e.inbound?"True":"False",title:"Inbound",width:30},{key:"ping_time",value:e.ping_time,title:"Ping Time",width:30,type:p.h.NUMBER}],[{key:"sat_sent",value:e.sat_sent,title:"Satoshis Sent",width:50,type:p.h.NUMBER},{key:"sat_recv",value:e.sat_recv,title:"Satoshis Received",width:50,type:p.h.NUMBER}],[{key:"bytes_sent",value:e.bytes_sent,title:"Bytes Sent",width:50,type:p.h.NUMBER},{key:"bytes_recv",value:e.bytes_recv,title:"Bytes Received",width:50,type:p.h.NUMBER}]]}}))}onConnectPeer(){this.store.dispatch(new W.C({data:{message:{peer:null,information:this.information,balance:this.availableBalance},component:jo}}))}onOpenChannel(e){this.store.dispatch(new W.C({data:{alertTitle:"Open Channel",message:{peer:e,information:this.information,balance:this.availableBalance},component:Po}}))}onPeerDetach(e){this.store.dispatch(new W.D({data:{type:p.b.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(e.alias?e.alias:e.pub_key),noBtnText:"Cancel",yesBtnText:"Disconnect"}})),this.rtlEffects.closeConfirm.pipe(Object(u.a)(this.unSubs[3])).subscribe(t=>{t&&(this.store.dispatch(new W.F("Disconnecting Peer...")),this.store.dispatch(new f.l({pubkey:e.pub_key})))})}applyFilter(e){this.peers.filter=e.value}loadPeersTable(e){this.peers=new Pt.o(e?[...e]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.peers.paginator=this.paginator}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(y.h),i.Pb(Rn.a),i.Pb(Kn.a),i.Pb(C.a),i.Pb(x.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-peers"]],viewQuery:function(e,t){if(1&e&&(i.Pc(Tt.a,!0),i.Pc(At.a,!0)),2&e){let e;i.vc(e=i.ec())&&(t.sort=e.first),i.vc(e=i.ec())&&(t.paginator=e.first)}},features:[i.Cb([{provide:At.b,useValue:Object(p.y)("Peers")}])],decls:40,vars:14,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","pub_key"],["matColumnDef","sat_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","sat_recv"],["matColumnDef","ping_time"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"button",2),i.dc("click",function(){return t.onConnectPeer()}),i.Kc(3,"Add Peer"),i.Ub(),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"div",4),i.Vb(6,"div",5),i.Qb(7,"fa-icon",6),i.Vb(8,"span",7),i.Kc(9,"Connected Peers"),i.Ub(),i.Ub(),i.Vb(10,"mat-form-field",8),i.Vb(11,"input",9),i.dc("keyup",function(e){return t.applyFilter(e.target)}),i.Ub(),i.Ub(),i.Ub(),i.Vb(12,"div",10),i.Ic(13,Wo,1,0,"mat-progress-bar",11),i.Vb(14,"table",12,13),i.Tb(16,14),i.Ic(17,$o,2,0,"th",15),i.Ic(18,Jo,2,4,"td",16),i.Sb(),i.Tb(19,17),i.Ic(20,Zo,2,0,"th",15),i.Ic(21,Yo,2,4,"td",16),i.Sb(),i.Tb(22,18),i.Ic(23,ei,2,0,"th",19),i.Ic(24,ti,4,3,"td",20),i.Sb(),i.Tb(25,21),i.Ic(26,ni,2,0,"th",19),i.Ic(27,ai,4,3,"td",20),i.Sb(),i.Tb(28,22),i.Ic(29,oi,2,0,"th",19),i.Ic(30,ii,4,3,"td",20),i.Sb(),i.Tb(31,23),i.Ic(32,si,6,0,"th",24),i.Ic(33,ci,10,0,"td",25),i.Sb(),i.Tb(34,26),i.Ic(35,ri,2,1,"td",27),i.Sb(),i.Ic(36,ui,1,3,"tr",28),i.Ic(37,di,1,0,"tr",29),i.Ic(38,hi,1,0,"tr",30),i.Ub(),i.Ub(),i.Qb(39,"mat-paginator",31),i.Ub(),i.Ub()),2&e&&(i.Db(7),i.oc("icon",t.faUsers),i.Db(6),i.oc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.oc("dataSource",t.peers)("ngClass",i.sc(11,mi,"error"===t.flgLoading[0])),i.Db(22),i.oc("matFooterRowDef",i.rc(13,pi)),i.Db(1),i.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.oc("matRowDefColumns",t.displayedColumns),i.Db(1),i.oc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[w.c,w.a,w.b,S.a,v.a,O.c,ce.b,M.b,a.o,Pt.n,Tt.a,a.m,I.a,Pt.c,Pt.i,Pt.b,Pt.e,Pt.g,Pt.k,Pt.m,At.a,s.a,Pt.h,Tt.b,Pt.a,a.p,I.b,Rt.a,Rt.c,Kt.m,Pt.d,Pt.f,Pt.j,Pt.l],pipes:[a.f],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%}.mat-column-alias[_ngcontent-%COMP%], .mat-column-pub_key[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-pub_key[_ngcontent-%COMP%]{flex:1 1 35%;padding-left:2rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem;flex:1 1 10%}.mat-column-ping_time[_ngcontent-%COMP%], .mat-column-sat_recv[_ngcontent-%COMP%], .mat-column-sat_sent[_ngcontent-%COMP%]{flex:1 1 13%;width:13%}"]}),e})();function gi(e,t){if(1&e&&(i.Vb(0,"span",7),i.Kc(1,"Open"),i.Ub()),2&e){const e=i.hc();i.pc("matBadge",e.numOpenChannels)}}function yi(e,t){if(1&e&&(i.Vb(0,"span",7),i.Kc(1,"Pending"),i.Ub()),2&e){const e=i.hc();i.pc("matBadge",e.numPendingChannels)}}function Ci(e,t){if(1&e&&(i.Vb(0,"span",7),i.Kc(1,"Closed"),i.Ub()),2&e){const e=i.hc();i.pc("matBadge",e.numClosedChannels)}}function xi(e,t){if(1&e&&(i.Vb(0,"span",7),i.Kc(1,"Active HTLCs"),i.Ub()),2&e){const e=i.hc();i.pc("matBadge",e.numActiveHTLCs)}}let wi=(()=>{class e{constructor(e,t,n){this.logger=e,this.store=t,this.router=n,this.numOpenChannels=0,this.numPendingChannels=0,this.numClosedChannels=0,this.numActiveHTLCs=0,this.peers=[],this.information={},this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"closed",name:"Closed"},{link:"activehtlcs",name:"Active HTLCs"}],this.activeLink=0,this.unSubs=[new b.a,new b.a]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe(Object(u.a)(this.unSubs[0]),Object(d.a)(e=>e instanceof o.f)).subscribe(e=>{this.activeLink=this.links.findIndex(t=>t.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[1])).subscribe(e=>{this.numOpenChannels=e.allChannels&&e.allChannels.length?e.allChannels.length:0,this.numPendingChannels=e.numberOfPendingChannels.total_channels?e.numberOfPendingChannels.total_channels:0,this.numClosedChannels=e.closedChannels&&e.closedChannels.length?e.closedChannels.length:0,this.numActiveHTLCs=e.allChannels.reduce((e,t)=>e+(t.pending_htlcs&&t.pending_htlcs.length>0?t.pending_htlcs.length:0),0),this.information=e.information,this.totalBalance=+e.blockchainBalance.total_balance,this.peers=e.peers,this.peers.forEach(e=>{e.alias&&""!==e.alias||(e.alias=e.pub_key.substring(0,15)+"...")}),this.logger.info(e)})}onOpenChannel(){this.store.dispatch(new W.C({data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Po}}))}onSelectedTabChange(e){this.router.navigateByUrl("/lnd/connections/channels/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(y.h),i.Pb(o.g))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-channels-tables"]],decls:16,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"mt-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"button",2),i.dc("click",function(){return t.onOpenChannel()}),i.Kc(3,"Open Channel"),i.Ub(),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"mat-tab-group",4),i.dc("selectedIndexChange",function(e){return t.activeLink=e})("selectedTabChange",function(e){return t.onSelectedTabChange(e)}),i.Vb(6,"mat-tab"),i.Ic(7,gi,2,1,"ng-template",5),i.Ub(),i.Vb(8,"mat-tab"),i.Ic(9,yi,2,1,"ng-template",5),i.Ub(),i.Vb(10,"mat-tab"),i.Ic(11,Ci,2,1,"ng-template",5),i.Ub(),i.Vb(12,"mat-tab"),i.Ic(13,xi,2,1,"ng-template",5),i.Ub(),i.Ub(),i.Vb(14,"div",6),i.Qb(15,"router-outlet"),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(5),i.oc("selectedIndex",t.activeLink))},directives:[w.c,w.a,w.b,S.a,kt.b,kt.a,kt.c,o.l,uo.a],styles:[""]}),e})();var vi=n("zHaW"),Li=n("dEYt");function Ui(e,t){if(1&e&&(i.Vb(0,"div"),i.Qb(1,"mat-divider",13),i.Vb(2,"div",9),i.Vb(3,"div",15),i.Vb(4,"h4",11),i.Kc(5,"Commit Fee"),i.Ub(),i.Vb(6,"span",16),i.Kc(7),i.ic(8,"number"),i.Ub(),i.Ub(),i.Vb(9,"div",15),i.Vb(10,"h4",11),i.Kc(11,"Commit Weight"),i.Ub(),i.Vb(12,"span",16),i.Kc(13),i.ic(14,"number"),i.Ub(),i.Ub(),i.Vb(15,"div",15),i.Vb(16,"h4",11),i.Kc(17,"Fee/KW"),i.Ub(),i.Vb(18,"span",16),i.Kc(19),i.ic(20,"number"),i.Ub(),i.Ub(),i.Vb(21,"div",15),i.Vb(22,"h4",11),i.Kc(23,"Static Remote Key"),i.Ub(),i.Vb(24,"span",16),i.Kc(25),i.Ub(),i.Ub(),i.Ub(),i.Qb(26,"mat-divider",13),i.Vb(27,"div",9),i.Vb(28,"div",15),i.Vb(29,"h4",11),i.Kc(30),i.Ub(),i.Vb(31,"span",16),i.Kc(32),i.ic(33,"number"),i.Ub(),i.Ub(),i.Vb(34,"div",15),i.Vb(35,"h4",11),i.Kc(36),i.Ub(),i.Vb(37,"span",16),i.Kc(38),i.ic(39,"number"),i.Ub(),i.Ub(),i.Vb(40,"div",15),i.Vb(41,"h4",11),i.Kc(42,"Unsettled Balance"),i.Ub(),i.Vb(43,"span",16),i.Kc(44),i.ic(45,"number"),i.Ub(),i.Ub(),i.Vb(46,"div",15),i.Vb(47,"h4",11),i.Kc(48,"CSV Delay"),i.Ub(),i.Vb(49,"span",16),i.Kc(50),i.ic(51,"number"),i.Ub(),i.Ub(),i.Ub(),i.Qb(52,"mat-divider",13),i.Vb(53,"div",9),i.Vb(54,"div",15),i.Vb(55,"h4",11),i.Kc(56,"Local Reserve (Sats)"),i.Ub(),i.Vb(57,"span",16),i.Kc(58),i.ic(59,"number"),i.Ub(),i.Ub(),i.Vb(60,"div",15),i.Vb(61,"h4",11),i.Kc(62,"Remote Reserve (Sats)"),i.Ub(),i.Vb(63,"span",16),i.Kc(64),i.ic(65,"number"),i.Ub(),i.Ub(),i.Vb(66,"div",15),i.Vb(67,"h4",11),i.Kc(68,"Lifetime (Seconds)"),i.Ub(),i.Vb(69,"span",16),i.Kc(70),i.ic(71,"number"),i.Ub(),i.Ub(),i.Vb(72,"div",15),i.Vb(73,"h4",11),i.Kc(74,"Pending HTLCs"),i.Ub(),i.Vb(75,"span",16),i.Kc(76),i.ic(77,"number"),i.Ub(),i.Ub(),i.Ub(),i.Qb(78,"mat-divider",13),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("inset",!0),i.Db(6),i.Lc(i.jc(8,18,e.channel.commit_fee)),i.Db(6),i.Lc(i.jc(14,20,e.channel.commit_weight)),i.Db(6),i.Lc(i.jc(20,22,e.channel.fee_per_kw)),i.Db(6),i.Lc(e.channel.static_remote_key?"Yes":"No"),i.Db(1),i.oc("inset",!0),i.Db(4),i.Lc(e.screenSize===e.screenSizeEnum.XS?"Total Sats Sent":"Total Satoshis Sent"),i.Db(2),i.Lc(i.jc(33,24,e.channel.total_satoshis_sent)),i.Db(4),i.Lc(e.screenSize===e.screenSizeEnum.XS?"Total Sats Recv":"Total Satoshis Received"),i.Db(2),i.Lc(i.jc(39,26,e.channel.total_satoshis_received)),i.Db(6),i.Lc(i.jc(45,28,e.channel.unsettled_balance)),i.Db(6),i.Lc(i.jc(51,30,e.channel.csv_delay)),i.Db(2),i.oc("inset",!0),i.Db(6),i.Lc(i.jc(59,32,e.channel.local_chan_reserve_sat)),i.Db(6),i.Lc(i.jc(65,34,e.channel.remote_chan_reserve_sat)),i.Db(6),i.Lc(i.jc(71,36,e.channel.lifetime)),i.Db(6),i.Lc(i.jc(77,38,null==e.channel||null==e.channel.pending_htlcs?null:e.channel.pending_htlcs.length)),i.Db(2),i.oc("inset",!0)}}function Vi(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"Show Advanced"),i.Ub())}function Si(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"Hide Advanced"),i.Ub())}function Di(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",24),i.dc("copied",function(t){return i.zc(e),i.hc().onCopyChanID(t)}),i.Kc(1,"Copy Channel ID"),i.Ub()}if(2&e){const e=i.hc();i.oc("payload",e.channel.chan_id)}}function Ii(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",25),i.dc("click",function(){return i.zc(e),i.hc().onClose()}),i.Kc(1,"OK"),i.Ub()}}const Fi=function(e){return{"xs-scroll-y":e}},_i=function(e,t){return{"mt-2":e,"mt-1":t}};let ki=(()=>{class e{constructor(e,t,n,a,o){this.dialogRef=e,this.data=t,this.logger=n,this.commonService=a,this.snackBar=o,this.faReceipt=m.D,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=p.q}ngOnInit(){this.channel=this.data.channel,this.showCopy=this.data.showCopy,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(e){this.snackBar.open("Channel ID "+e+" copied."),this.logger.info("Copied Text: "+e)}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(H.f),i.Pb(H.a),i.Pb(g.b),i.Pb(x.a),i.Pb(vi.b))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-channel-information"]],decls:93,vars:39,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"padding-gap-large","pl-3"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-1"],["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"],[3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","100"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(e,t){if(1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"mat-card-header",2),i.Vb(3,"div",3),i.Qb(4,"fa-icon",4),i.Vb(5,"span",5),i.Kc(6,"Channel Information"),i.Ub(),i.Ub(),i.Vb(7,"button",6),i.dc("click",function(){return t.onClose()}),i.Kc(8,"X"),i.Ub(),i.Ub(),i.Vb(9,"mat-card-content",7),i.Vb(10,"div",8),i.Vb(11,"div",9),i.Vb(12,"div",10),i.Vb(13,"h4",11),i.Kc(14,"Channel ID"),i.Ub(),i.Vb(15,"span",12),i.Kc(16),i.Ub(),i.Ub(),i.Vb(17,"div",10),i.Vb(18,"h4",11),i.Kc(19,"Peer Alias"),i.Ub(),i.Vb(20,"span",12),i.Kc(21),i.Ub(),i.Ub(),i.Ub(),i.Qb(22,"mat-divider",13),i.Vb(23,"div",9),i.Vb(24,"div",14),i.Vb(25,"h4",11),i.Kc(26,"Channel Point"),i.Ub(),i.Vb(27,"span",12),i.Kc(28),i.Ub(),i.Ub(),i.Ub(),i.Qb(29,"mat-divider",13),i.Vb(30,"div",9),i.Vb(31,"div",14),i.Vb(32,"h4",11),i.Kc(33,"Peer Public Key"),i.Ub(),i.Vb(34,"span",12),i.Kc(35),i.Ub(),i.Ub(),i.Ub(),i.Qb(36,"mat-divider",13),i.Vb(37,"div",9),i.Vb(38,"div",15),i.Vb(39,"h4",11),i.Kc(40,"Local Balance"),i.Ub(),i.Vb(41,"span",16),i.Kc(42),i.ic(43,"number"),i.Ub(),i.Ub(),i.Vb(44,"div",15),i.Vb(45,"h4",11),i.Kc(46,"Remote Balance"),i.Ub(),i.Vb(47,"span",16),i.Kc(48),i.ic(49,"number"),i.Ub(),i.Ub(),i.Vb(50,"div",15),i.Vb(51,"h4",11),i.Kc(52,"Capacity"),i.Ub(),i.Vb(53,"span",16),i.Kc(54),i.ic(55,"number"),i.Ub(),i.Ub(),i.Vb(56,"div",15),i.Vb(57,"h4",11),i.Kc(58,"Uptime (Seconds)"),i.Ub(),i.Vb(59,"span",16),i.Kc(60),i.ic(61,"number"),i.Ub(),i.Ub(),i.Ub(),i.Qb(62,"mat-divider",13),i.Vb(63,"div",9),i.Vb(64,"div",15),i.Vb(65,"h4",11),i.Kc(66,"Active"),i.Ub(),i.Vb(67,"span",16),i.Kc(68),i.Ub(),i.Ub(),i.Vb(69,"div",15),i.Vb(70,"h4",11),i.Kc(71,"Private"),i.Ub(),i.Vb(72,"span",16),i.Kc(73),i.Ub(),i.Ub(),i.Vb(74,"div",15),i.Vb(75,"h4",11),i.Kc(76,"Initiator"),i.Ub(),i.Vb(77,"span",16),i.Kc(78),i.Ub(),i.Ub(),i.Vb(79,"div",15),i.Vb(80,"h4",11),i.Kc(81,"Number of Updates"),i.Ub(),i.Vb(82,"span",16),i.Kc(83),i.ic(84,"number"),i.Ub(),i.Ub(),i.Ub(),i.Ic(85,Ui,79,40,"div",17),i.Vb(86,"div",18),i.Vb(87,"button",19),i.dc("click",function(){return t.onShowAdvanced()}),i.Ic(88,Vi,2,0,"p",20),i.Ic(89,Si,2,0,"ng-template",null,21,i.Jc),i.Ub(),i.Ic(91,Di,2,1,"button",22),i.Ic(92,Ii,2,0,"button",23),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e){const e=i.wc(90);i.Db(4),i.oc("icon",t.faReceipt),i.Db(5),i.oc("ngClass",i.sc(34,Fi,t.screenSize===t.screenSizeEnum.XS)),i.Db(7),i.Lc(t.channel.chan_id),i.Db(5),i.Lc(t.channel.remote_alias),i.Db(1),i.oc("inset",!0),i.Db(6),i.Lc(t.channel.channel_point),i.Db(1),i.oc("inset",!0),i.Db(6),i.Lc(t.channel.remote_pubkey),i.Db(1),i.oc("inset",!0),i.Db(6),i.Lc(i.jc(43,24,t.channel.local_balance)),i.Db(6),i.Lc(i.jc(49,26,t.channel.remote_balance)),i.Db(6),i.Lc(i.jc(55,28,t.channel.capacity)),i.Db(6),i.Lc(i.jc(61,30,t.channel.uptime)),i.Db(2),i.oc("inset",!0),i.Db(6),i.Lc(t.channel.active?"Yes":"No"),i.Db(5),i.Lc(t.channel.private?"Yes":"No"),i.Db(5),i.Lc(t.channel.initiator?"Yes":"No"),i.Db(5),i.Lc(i.jc(84,32,t.channel.num_updates)),i.Db(2),i.oc("ngIf",t.showAdvanced),i.Db(1),i.oc("ngClass",i.tc(36,_i,!t.showAdvanced,t.showAdvanced)),i.Db(2),i.oc("ngIf",!t.showAdvanced)("ngIfElse",e),i.Db(3),i.oc("ngIf",t.showCopy),i.Db(1),i.oc("ngIf",!t.showCopy)}},directives:[w.c,w.b,w.a,U.c,v.a,S.a,U.b,a.m,I.a,K.a,a.o,le.a,Li.a],pipes:[a.f],styles:[""]}),e})();const Ai=["stepper"];function Ti(e,t){if(1&e&&i.Kc(0),2&e){const e=i.hc();i.Lc(e.inputFormLabel)}}function Pi(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Amount is required."),i.Ub())}function Oi(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Amount must be a positive number."),i.Ub())}function Ri(e,t){if(1&e&&(i.Vb(0,"mat-error"),i.Kc(1),i.Ub()),2&e){const e=i.hc();i.Db(1),i.Mc("Amount must be less than or equal to ",null==e.selChannel?null:e.selChannel.local_balance,".")}}function Ki(e,t){if(1&e&&(i.Vb(0,"mat-option",54),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.oc("value",e),i.Db(1),i.Mc(" ",e.remote_alias||e.chan_id," ")}}function Mi(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Peer is required."),i.Ub())}function Qi(e,t){if(1&e&&i.Kc(0),2&e){const e=i.hc();i.Lc(e.feeFormLabel)}}function zi(e,t){if(1&e&&(i.Vb(0,"mat-option",54),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.oc("value",e),i.Db(1),i.Mc(" ",e.name," ")}}function Ei(e,t){if(1&e&&(i.Vb(0,"mat-error"),i.Kc(1),i.Ub()),2&e){const e=i.hc();i.Db(1),i.Mc("",e.feeFormGroup.controls.selFeeLimitType.value?e.feeFormGroup.controls.selFeeLimitType.value.placeholder:e.feeLimitTypes[0].placeholder," is required.")}}function Ni(e,t){if(1&e&&(i.Vb(0,"mat-error"),i.Kc(1),i.Ub()),2&e){const e=i.hc();i.Db(1),i.Mc("",e.feeFormGroup.controls.selFeeLimitType.value?e.feeFormGroup.controls.selFeeLimitType.value.placeholder:e.feeLimitTypes[0].placeholder," must be a positive number.")}}function Gi(e,t){1&e&&i.Kc(0,"Invoice/Payment")}function qi(e,t){1&e&&(i.Vb(0,"mat-icon",55),i.Kc(1,"check"),i.Ub())}function Bi(e,t){1&e&&i.Qb(0,"mat-progress-bar",56)}function Hi(e,t){if(1&e&&(i.Vb(0,"mat-icon",55),i.Kc(1),i.Ub()),2&e){const e=i.hc();i.Db(1),i.Lc(null!=e.paymentStatus&&e.paymentStatus.error?"close":"check")}}function ji(e,t){1&e&&i.Qb(0,"div",7)}function Wi(e,t){1&e&&i.Qb(0,"mat-progress-bar",56)}function $i(e,t){if(1&e&&(i.Vb(0,"h4",57),i.Kc(1),i.Ub()),2&e){const e=i.hc();i.Db(1),i.Lc(e.paymentStatus&&e.paymentStatus.payment_hash?"Rebalance Successful.":"Rebalance Failed.")}}function Xi(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",58),i.dc("click",function(){return i.zc(e),i.hc().onRestart()}),i.Kc(1,"Start Again"),i.Ub()}}function Ji(e,t){1&e&&i.Rb(0)}function Zi(e,t){if(1&e&&i.Ic(0,Ji,1,0,"ng-container",59),2&e){const e=i.hc(),t=i.wc(109),n=i.wc(111);i.oc("ngTemplateOutlet",e.paymentStatus.error?t:n)}}function Yi(e,t){if(1&e&&(i.Vb(0,"div",7),i.Vb(1,"span",42),i.Kc(2),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(2),i.Lc("Error: "+(e.paymentStatus.error.error.error?e.paymentStatus.error.error.error:e.paymentStatus.error.error?e.paymentStatus.error.error:e.paymentStatus.error?e.paymentStatus.error:"Unknown"))}}function es(e,t){if(1&e&&(i.Vb(0,"div",7),i.Vb(1,"div",0),i.Vb(2,"div",60),i.Vb(3,"h4",61),i.Kc(4,"Payment Hash"),i.Ub(),i.Vb(5,"span",42),i.Kc(6),i.Ub(),i.Ub(),i.Ub(),i.Qb(7,"mat-divider",62),i.Vb(8,"div",0),i.Vb(9,"div",63),i.Vb(10,"h4",61),i.Kc(11),i.Ub(),i.Vb(12,"span",42),i.Kc(13),i.Ub(),i.Ub(),i.Vb(14,"div",63),i.Vb(15,"h4",61),i.Kc(16,"Number of Hops"),i.Ub(),i.Vb(17,"span",42),i.Kc(18),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(6),i.Lc(e.paymentStatus.payment_hash),i.Db(5),i.Mc("Total Fees (",e.paymentStatus.payment_route.total_fees_msat?"mSats":"Sats",")"),i.Db(2),i.Lc(e.paymentStatus.payment_route.total_fees_msat?e.paymentStatus.payment_route.total_fees_msat:e.paymentStatus.payment_route.total_fees?e.paymentStatus.payment_route.total_fees:0),i.Db(5),i.Lc(e.paymentStatus&&e.paymentStatus.payment_route&&e.paymentStatus.payment_route.hops&&e.paymentStatus.payment_route.hops.length?e.paymentStatus.payment_route.hops.length:0)}}let ts=(()=>{class e{constructor(e,t,n,a,o,i,s){this.dialogRef=e,this.data=t,this.logger=n,this.store=a,this.actions$=o,this.formBuilder=i,this.decimalPipe=s,this.faInfoCircle=m.t,this.invoices={},this.selChannel={},this.activeChannels=[],this.filteredActiveChannels=[],this.feeLimitTypes=[],this.queryRoute={},this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1,this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee",this.flgEditable=!0,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){this.selChannel=this.data.channel,p.i.forEach((e,t)=>{t>0&&this.feeLimitTypes.push(e)}),this.inputFormGroup=this.formBuilder.group({hiddenAmount:["",[B.t.required]],rebalanceAmount:["",[B.t.required,B.t.min(1),B.t.max(this.selChannel.local_balance)]],selRebalancePeer:[null,B.t.required]}),this.feeFormGroup=this.formBuilder.group({selFeeLimitType:[this.feeLimitTypes[0],B.t.required],feeLimit:["",[B.t.required,B.t.min(0)]],hiddenFeeLimit:["",[B.t.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{this.activeChannels=e.allChannels.filter(e=>e.active&&e.remote_balance>=this.inputFormGroup.controls.rebalanceAmount.value&&e.chan_id!==this.selChannel.chan_id),this.invoices=e.invoices,this.logger.info(e)}),this.actions$.pipe(Object(u.a)(this.unSubs[1]),Object(d.a)(e=>e.type===f.Nb||e.type===f.ub||e.type===f.eb)).subscribe(e=>{e.type===f.Nb&&(this.queryRoute=e.payload),e.type===f.ub&&(this.logger.info(e.payload),this.flgPaymentSent=!0,this.paymentStatus=e.payload,this.flgEditable=!0),e.type===f.eb&&(this.logger.info(e.payload),this.flgInvoiceGenerated=!0,this.sendPayment(e.payload.paymentRequest))})}onEstimateFee(){if(!this.inputFormGroup.controls.selRebalancePeer.value||!this.inputFormGroup.controls.rebalanceAmount.value)return!0;0===this.stepper.selectedIndex&&(this.inputFormGroup.controls.hiddenAmount.setValue(this.inputFormGroup.controls.rebalanceAmount.value),this.stepper.next()),this.queryRoute=null,this.feeFormGroup.reset(),this.feeFormGroup.controls.selFeeLimitType.setValue(this.feeLimitTypes[0]),this.store.dispatch(new f.Y({destPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,amount:this.inputFormGroup.controls.rebalanceAmount.value,outgoingChanId:this.selChannel.chan_id}))}stepSelectionChanged(e){switch(e.selectedIndex){case 0:this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel=this.queryRoute&&this.queryRoute.routes&&this.queryRoute.routes.length>0&&(this.queryRoute.routes[0].total_fees_msat||this.queryRoute.routes[0].hops&&this.queryRoute.routes[0].hops.length)?this.feeFormGroup.controls.selFeeLimitType.value.placeholder+": "+this.decimalPipe.transform(this.feeFormGroup.controls.feeLimit.value?this.feeFormGroup.controls.feeLimit.value:0)+" | Hops: "+this.queryRoute.routes[0].hops.length:"Select rebalance fee";break;default:this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee"}e.selectedIndex0&&this.queryRoute.routes[0].total_fees_msat?Math.ceil(+this.queryRoute.routes[0].total_fees_msat/1e3):0)}onRebalance(){if(!this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.rebalanceAmount.value<=0||this.inputFormGroup.controls.rebalanceAmount.value>+this.selChannel.local_balance||!this.feeFormGroup.controls.feeLimit.value||this.feeFormGroup.controls.feeLimit.value<0||!this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey)return!0;this.feeFormGroup.controls.hiddenFeeLimit.setValue(this.feeFormGroup.controls.feeLimit.value),this.stepper.next(),this.flgEditable=!1,this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1;let e=this.findUnsettledInvoice();e?(this.flgReusingInvoice=!0,this.sendPayment(e.payment_request)):this.store.dispatch(new f.Tb({memo:"Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats",invoiceValue:this.inputFormGroup.controls.rebalanceAmount.value,private:!1,expiry:3600,pageSize:p.n,openModal:!1}))}findUnsettledInvoice(){return this.invoices.invoices.find(e=>("0"===e.settle_date||""===e.settle_date||!e.settle_date)&&e.memo==="Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats"&&"CANCELED"!==e.state)}sendPayment(e){this.flgInvoiceGenerated=!0,this.paymentRequest=e,this.store.dispatch(new f.Vb({paymentReq:e,paymentDecoded:{},zeroAmtInvoice:!1,outgoingChannel:this.selChannel,feeLimitType:this.feeFormGroup.controls.selFeeLimitType.value,feeLimit:this.feeFormGroup.controls.feeLimit.value,allowSelfPayment:!0,lastHopPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0}))}filterActiveChannels(){this.filteredActiveChannels=this.activeChannels.filter(e=>e.remote_balance>=this.inputFormGroup.controls.rebalanceAmount.value&&e.chan_id!==this.selChannel.chan_id)}onClose(){this.dialogRef.close(!1)}onRestart(){this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1,this.flgEditable=!0,this.stepper.reset(),this.inputFormGroup.reset(),this.feeFormGroup.reset(),this.statusFormGroup.reset()}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(H.f),i.Pb(H.a),i.Pb(g.b),i.Pb(y.h),i.Pb(C.a),i.Pb(B.d),i.Pb(a.f))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-channel-rebalance"]],viewQuery:function(e,t){if(1&e&&i.Pc(Ai,!0),2&e){let e;i.vc(e=i.ec())&&(t.stepper=e.first)}},decls:112,vars:43,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start",1,"padding-gap-x-large"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"mt-5px"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step","change"],["matSuffix",""],[4,"ngIf"],["fxFlex","48","fxLayoutAlign","start end"],["tabindex","2","formControlName","selRebalancePeer","placeholder","Receive from Peer","required",""],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","submit",3,"click"],["matStepLabel","","disabled","true"],["fxFlex","75",1,"alert"],["mat-stroked-button","","type","button","tabindex","4","matTooltip","Re-estimate Fee",1,"h-35px",3,"click"],[1,"mb-5px"],["mat-stroked-button","","type","button","tabindex","5",1,"h-35px",3,"click"],["tabindex","6","formControlName","selFeeLimitType","Placeholder","Fee Limits","required",""],["matInput","","formControlName","feeLimit","type","number","tabindex","7","required","",3,"placeholder","step"],["mat-stroked-button","","color","primary","tabindex","8","type","submit",3,"click"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel","mb-2"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[1,"foreground-secondary-text"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayoutAlign","start","class","font-bold-500 mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],[3,"value"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","button",3,"click"],[4,"ngTemplateOutlet"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","50"]],template:function(e,t){if(1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"mat-card-header",2),i.Vb(3,"div",3),i.Vb(4,"span",4),i.Kc(5,"Channel Rebalance"),i.Ub(),i.Ub(),i.Vb(6,"button",5),i.dc("click",function(){return t.onClose()}),i.Kc(7,"X"),i.Ub(),i.Ub(),i.Vb(8,"mat-card-content",6),i.Vb(9,"div",7),i.Vb(10,"div",8),i.Vb(11,"div",9),i.Qb(12,"fa-icon",10),i.Vb(13,"span"),i.Kc(14,"Circular Rebalance is a payment you make to *yourselves* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner."),i.Ub(),i.Ub(),i.Ub(),i.Vb(15,"div",11),i.Vb(16,"p",12),i.Vb(17,"strong"),i.Kc(18,"Channel Peer:\xa0"),i.Ub(),i.Kc(19),i.ic(20,"titlecase"),i.Ub(),i.Vb(21,"p",13),i.Vb(22,"strong"),i.Kc(23,"Channel ID:\xa0"),i.Ub(),i.Kc(24),i.Ub(),i.Qb(25,"p",13),i.Ub(),i.Vb(26,"mat-vertical-stepper",14,15),i.dc("selectionChange",function(e){return t.stepSelectionChanged(e)}),i.Vb(28,"mat-step",16),i.Vb(29,"form",17),i.Ic(30,Ti,1,1,"ng-template",18),i.Vb(31,"div",19),i.Vb(32,"mat-form-field",20),i.Vb(33,"input",21),i.dc("change",function(){return t.filterActiveChannels()}),i.Ub(),i.Vb(34,"mat-hint"),i.Kc(35),i.Ub(),i.Vb(36,"span",22),i.Kc(37,"Sats"),i.Ub(),i.Ic(38,Pi,2,0,"mat-error",23),i.Ic(39,Oi,2,0,"mat-error",23),i.Ic(40,Ri,2,1,"mat-error",23),i.Ub(),i.Vb(41,"mat-form-field",24),i.Vb(42,"mat-select",25),i.Ic(43,Ki,2,2,"mat-option",26),i.Ub(),i.Ic(44,Mi,2,0,"mat-error",23),i.Ub(),i.Ub(),i.Vb(45,"div",27),i.Vb(46,"button",28),i.dc("click",function(){return t.onEstimateFee()}),i.Kc(47,"Estimate Fee"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Vb(48,"mat-step",16),i.Vb(49,"form",17),i.Ic(50,Qi,1,1,"ng-template",29),i.Vb(51,"div",19),i.Vb(52,"div",19),i.Vb(53,"div",30),i.Qb(54,"fa-icon",10),i.Vb(55,"span"),i.Vb(56,"strong"),i.Kc(57,"Estimated Fee: "),i.Ub(),i.Kc(58),i.Vb(59,"strong"),i.Kc(60,"Number of Hops: "),i.Ub(),i.Kc(61),i.Ub(),i.Ub(),i.Vb(62,"button",31),i.dc("click",function(){return t.onEstimateFee()}),i.Vb(63,"mat-icon",32),i.Kc(64,"loop"),i.Ub(),i.Ub(),i.Vb(65,"button",33),i.dc("click",function(){return t.onUseEstimate()}),i.Kc(66,"Use Estimate"),i.Ub(),i.Ub(),i.Vb(67,"div",19),i.Vb(68,"mat-form-field",24),i.Vb(69,"mat-select",34),i.Ic(70,zi,2,2,"mat-option",26),i.Ub(),i.Ub(),i.Vb(71,"mat-form-field",20),i.Qb(72,"input",35),i.Ic(73,Ei,2,1,"mat-error",23),i.Ic(74,Ni,2,1,"mat-error",23),i.Ub(),i.Ub(),i.Ub(),i.Vb(75,"div",27),i.Vb(76,"button",36),i.dc("click",function(){return t.onRebalance()}),i.Kc(77,"Rebalance"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Vb(78,"mat-step",37),i.Vb(79,"form",17),i.Ic(80,Gi,1,0,"ng-template",18),i.Vb(81,"div",38),i.Vb(82,"mat-expansion-panel",39),i.Vb(83,"mat-expansion-panel-header"),i.Vb(84,"mat-panel-title"),i.Vb(85,"span",40),i.Kc(86),i.Ic(87,qi,2,0,"mat-icon",41),i.Ub(),i.Ub(),i.Ub(),i.Vb(88,"div",7),i.Vb(89,"span",42),i.Kc(90),i.Ub(),i.Ub(),i.Ub(),i.Ic(91,Bi,1,0,"mat-progress-bar",43),i.Vb(92,"mat-expansion-panel",44),i.Vb(93,"mat-expansion-panel-header"),i.Vb(94,"mat-panel-title"),i.Vb(95,"span",40),i.Kc(96),i.Ic(97,Hi,2,1,"mat-icon",41),i.Ub(),i.Ub(),i.Ub(),i.Ic(98,ji,1,0,"div",45),i.Ub(),i.Ic(99,Wi,1,0,"mat-progress-bar",43),i.Ub(),i.Ic(100,$i,2,1,"h4",46),i.Vb(101,"div",47),i.Ic(102,Xi,2,0,"button",48),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Vb(103,"div",49),i.Vb(104,"button",50),i.Kc(105,"Close"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ic(106,Zi,1,1,"ng-template",null,51,i.Jc),i.Ic(108,Yi,3,1,"ng-template",null,52,i.Jc),i.Ic(110,es,19,4,"ng-template",null,53,i.Jc)),2&e){const e=i.wc(107);i.Db(12),i.oc("icon",t.faInfoCircle),i.Db(7),i.Lc(i.jc(20,41,t.selChannel.remote_alias)),i.Db(5),i.Lc(t.selChannel.chan_id),i.Db(2),i.oc("linear",!0),i.Db(2),i.oc("stepControl",t.inputFormGroup)("editable",t.flgEditable),i.Db(1),i.oc("formGroup",t.inputFormGroup),i.Db(4),i.oc("step",100),i.Db(2),i.Nc("(Local Bal: ",null==t.selChannel?null:t.selChannel.local_balance,", Remaining: ",(null==t.selChannel?null:t.selChannel.local_balance)-(t.inputFormGroup.controls.rebalanceAmount.value?t.inputFormGroup.controls.rebalanceAmount.value:0),")"),i.Db(3),i.oc("ngIf",null==t.inputFormGroup.controls.rebalanceAmount.errors?null:t.inputFormGroup.controls.rebalanceAmount.errors.required),i.Db(1),i.oc("ngIf",null==t.inputFormGroup.controls.rebalanceAmount.errors?null:t.inputFormGroup.controls.rebalanceAmount.errors.min),i.Db(1),i.oc("ngIf",null==t.inputFormGroup.controls.rebalanceAmount.errors?null:t.inputFormGroup.controls.rebalanceAmount.errors.max),i.Db(3),i.oc("ngForOf",t.filteredActiveChannels),i.Db(1),i.oc("ngIf",null==t.inputFormGroup.controls.selRebalancePeer.errors?null:t.inputFormGroup.controls.selRebalancePeer.errors.required),i.Db(4),i.oc("stepControl",t.feeFormGroup)("editable",t.flgEditable),i.Db(1),i.oc("formGroup",t.feeFormGroup),i.Db(5),i.oc("icon",t.faInfoCircle),i.Db(4),i.Mc("",t.queryRoute&&t.queryRoute.routes&&t.queryRoute.routes.length>0&&t.queryRoute.routes[0].total_fees_msat?t.queryRoute.routes[0].total_fees_msat:0," mSats | "),i.Db(3),i.Mc("",t.queryRoute&&t.queryRoute.routes&&t.queryRoute.routes.length>0&&t.queryRoute.routes[0].hops&&t.queryRoute.routes[0].hops.length?t.queryRoute.routes[0].hops.length:0," "),i.Db(9),i.oc("ngForOf",t.feeLimitTypes),i.Db(2),i.pc("placeholder",t.feeFormGroup.controls.selFeeLimitType.value?t.feeFormGroup.controls.selFeeLimitType.value.placeholder:t.feeLimitTypes[0].placeholder),i.oc("step",1),i.Db(1),i.oc("ngIf",null==t.feeFormGroup.controls.feeLimit.errors?null:t.feeFormGroup.controls.feeLimit.errors.required),i.Db(1),i.oc("ngIf",null==t.feeFormGroup.controls.feeLimit.errors?null:t.feeFormGroup.controls.feeLimit.errors.min),i.Db(4),i.oc("stepControl",t.statusFormGroup),i.Db(1),i.oc("formGroup",t.statusFormGroup),i.Db(7),i.Lc(t.flgInvoiceGenerated?t.flgReusingInvoice?"Invoice re-used":"Invoice generated":"Generating invoice..."),i.Db(1),i.oc("ngIf",t.flgInvoiceGenerated),i.Db(3),i.Lc(t.paymentRequest),i.Db(1),i.oc("ngIf",!t.flgInvoiceGenerated),i.Db(1),i.oc("expanded",(t.flgInvoiceGenerated||t.flgReusingInvoice)&&t.flgPaymentSent),i.Db(4),i.Lc(t.flgInvoiceGenerated||t.flgPaymentSent?t.flgPaymentSent?null!=t.paymentStatus&&t.paymentStatus.error?"Payment failed":"Payment successful":"Processing payment...":"Payment waiting for Invoice"),i.Db(1),i.oc("ngIf",t.flgPaymentSent),i.Db(1),i.oc("ngIf",!t.paymentStatus)("ngIfElse",e),i.Db(1),i.oc("ngIf",t.flgInvoiceGenerated&&!t.flgPaymentSent),i.Db(1),i.oc("ngIf",t.flgInvoiceGenerated&&t.flgPaymentSent),i.Db(2),i.oc("ngIf",t.paymentStatus&&t.paymentStatus.error),i.Db(2),i.oc("mat-dialog-close",!1)}},directives:[w.c,w.a,U.c,w.b,S.a,U.b,v.a,X.h,X.a,B.u,B.n,B.h,X.b,O.c,ce.b,B.q,B.c,le.a,B.m,B.g,B.s,O.f,O.g,a.o,Rt.a,a.n,R.a,D.a,J.c,J.e,J.f,H.d,O.b,Kt.m,s.a,a.t,K.a],pipes:[a.x],styles:[""]}),e})();function ns(e,t){if(1&e&&(i.Vb(0,"div",16),i.Vb(1,"p",17),i.Vb(2,"mat-icon",18),i.Kc(3,"close"),i.Ub(),i.Kc(4),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(4),i.Lc(e.errorMsg)}}function as(e,t){if(1&e&&(i.Vb(0,"div",27),i.Qb(1,"fa-icon",28),i.Vb(2,"span"),i.Kc(3,"Priority/Fee for force closing inactive channels cannot be modified."),i.Ub(),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.oc("icon",e.faInfoCircle)}}function os(e,t){if(1&e&&(i.Vb(0,"mat-option",29),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.oc("value",e.id),i.Db(1),i.Mc(" ",e.name," ")}}function is(e,t){1&e&&(i.Vb(0,"mat-form-field",30),i.Qb(1,"input",31),i.Ub())}function ss(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Number of blocks is required."),i.Ub())}function cs(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-form-field",32),i.Vb(1,"input",33,34),i.dc("ngModelChange",function(t){return i.zc(e),i.hc(2).blocks=t}),i.Ub(),i.Ic(3,ss,2,0,"mat-error",35),i.Ub()}if(2&e){const e=i.hc(2);i.Db(1),i.oc("ngModel",e.blocks)("step",1)("min",0),i.Db(2),i.oc("ngIf",!e.blocks)}}function ls(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Fees is required."),i.Ub())}function rs(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-form-field",32),i.Vb(1,"input",36,37),i.dc("ngModelChange",function(t){return i.zc(e),i.hc(2).fees=t}),i.Ub(),i.Ic(3,ls,2,0,"mat-error",35),i.Ub()}if(2&e){const e=i.hc(2);i.Db(1),i.oc("ngModel",e.fees)("step",1)("min",0),i.Db(2),i.oc("ngIf",!e.fees)}}function bs(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",19),i.Ic(1,as,4,1,"div",20),i.Vb(2,"div",21),i.Vb(3,"mat-form-field",22),i.Vb(4,"mat-select",23),i.dc("valueChange",function(t){return i.zc(e),i.hc().selTransType=t}),i.Ic(5,os,2,2,"mat-option",24),i.Ub(),i.Ub(),i.Ic(6,is,2,0,"mat-form-field",25),i.Ic(7,cs,4,4,"mat-form-field",26),i.Ic(8,rs,4,4,"mat-form-field",26),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.Db(1),i.oc("ngIf",!e.channelToClose.active),i.Db(3),i.oc("value",e.selTransType)("disabled",!e.channelToClose.active),i.Db(1),i.oc("ngForOf",e.transTypes),i.Db(1),i.oc("ngIf","0"==e.selTransType),i.Db(1),i.oc("ngIf","1"==e.selTransType),i.Db(1),i.oc("ngIf","2"==e.selTransType)}}function us(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",38),i.dc("click",function(){return i.zc(e),i.hc().resetData()}),i.Kc(1,"Clear"),i.Ub()}}function ds(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",39),i.dc("click",function(){return i.zc(e),i.hc().onCloseChannel()}),i.Kc(1),i.Ub()}if(2&e){const e=i.hc();i.Db(1),i.Lc(e.channelToClose.active?"Close Channel":"Force Close")}}function hs(e,t){if(1&e){const e=i.Wb();i.Vb(0,"button",40),i.dc("click",function(){return i.zc(e),i.hc().onClose()}),i.Kc(1,"Ok"),i.Ub()}}let ms=(()=>{class e{constructor(e,t,n,a,o){this.dialogRef=e,this.data=t,this.store=n,this.actions$=a,this.logger=o,this.transTypes=p.u,this.selTransType="0",this.blocks=null,this.fees=null,this.faExclamationTriangle=m.o,this.faInfoCircle=m.t,this.flgPendingHtlcs=!1,this.errorMsg="Please wait for pending HTLCs to settle before attempting channel closure.",this.unSubs=[new b.a,new b.a]}ngOnInit(){this.channelToClose=this.data.channel,this.actions$.pipe(Object(u.a)(this.unSubs[0]),Object(d.a)(e=>e.type===f.m||e.type===f.vb)).subscribe(e=>{if(e.type===f.vb){let t=e.payload.find(e=>e.chan_id===this.data.channel.chan_id);t.pending_htlcs&&t.pending_htlcs.length&&t.pending_htlcs.length>0&&(this.flgPendingHtlcs=!0)}e.type===f.m&&"FetchChannels/all"===e.payload.action&&this.logger.error("Fetching latest channel information failed!\n"+e.payload.message)})}onCloseChannel(){if("1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;let e={channelPoint:this.channelToClose.channel_point,forcibly:!this.channelToClose.active};this.blocks&&(e.targetConf=this.blocks),this.fees&&(e.satPerByte=this.fees),this.store.dispatch(new W.F(this.channelToClose.active?"Closing Channel...":"Force Closing Channel...")),this.store.dispatch(new f.j(e)),this.dialogRef.close(!1)}resetData(){this.selTransType="0",this.blocks=null,this.fees=null}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(H.f),i.Pb(H.a),i.Pb(y.h),i.Pb(C.a),i.Pb(g.b))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-close-channel"]],decls:19,vars:7,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","reset","class","mr-1","tabindex","3","default","",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","type","submit","tabindex","4",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click",4,"ngIf"],["fxLayoutAlign","start center"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","48"],["tabindex","1",3,"value","disabled","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48",4,"ngIf"],["fxFlex.gt-sm","48","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"],["fxFlex","48"],["matInput","","placeholder","Default","disabled",""],["fxFlex.gt-sm","48","fxLayoutAlign","start end"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","2",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],[4,"ngIf"],["matInput","","placeholder","Fees (Sats/Byte)","type","number","name","ccfees","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["clchfee","ngModel"],["mat-stroked-button","","color","primary","type","reset","tabindex","3","default","",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"mat-card-header",2),i.Vb(3,"div",3),i.Vb(4,"span",4),i.Kc(5),i.Ub(),i.Ub(),i.Vb(6,"button",5),i.dc("click",function(){return t.onClose()}),i.Kc(7,"X"),i.Ub(),i.Ub(),i.Vb(8,"mat-card-content",6),i.Vb(9,"form",7),i.Vb(10,"div",8),i.Vb(11,"p",9),i.Kc(12),i.Ub(),i.Ic(13,ns,5,1,"div",10),i.Ic(14,bs,9,7,"div",11),i.Ub(),i.Vb(15,"div",12),i.Ic(16,us,2,0,"button",13),i.Ic(17,ds,2,1,"button",14),i.Ic(18,hs,2,0,"button",15),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(5),i.Lc(t.channelToClose.active?"Close Channel":"Force Close Channel"),i.Db(7),i.Lc(t.channelToClose.active?"Closing channel: "+t.channelToClose.channel_point:"Force closing channel: "+t.channelToClose.channel_point),i.Db(1),i.oc("ngIf",t.flgPendingHtlcs),i.Db(1),i.oc("ngIf",!t.flgPendingHtlcs),i.Db(2),i.oc("ngIf",t.channelToClose.active&&!t.flgPendingHtlcs),i.Db(1),i.oc("ngIf",!t.flgPendingHtlcs),i.Db(1),i.oc("ngIf",t.flgPendingHtlcs))},directives:[w.c,w.a,U.c,w.b,S.a,U.b,B.u,B.n,B.o,a.o,D.a,O.c,Rt.a,a.n,v.a,Kt.m,ce.b,B.q,B.c,Ot.a,B.s,B.m,B.p,O.b],styles:[""]}),e})();function ps(e,t){1&e&&i.Qb(0,"mat-progress-bar",30)}function fs(e,t){1&e&&(i.Vb(0,"th",31),i.Kc(1," Peer "),i.Ub())}function gs(e,t){1&e&&i.Qb(0,"span",39)}function ys(e,t){1&e&&i.Qb(0,"span",40)}function Cs(e,t){if(1&e&&(i.Vb(0,"span",41),i.Qb(1,"fa-icon",42),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.oc("icon",e.faEyeSlash)}}function xs(e,t){if(1&e&&(i.Vb(0,"span",43),i.Qb(1,"fa-icon",42),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.oc("icon",e.faEye)}}const ws=function(e){return{"max-width":e}};function vs(e,t){if(1&e&&(i.Vb(0,"td",32),i.Vb(1,"div",33),i.Ic(2,gs,1,0,"span",34),i.Ic(3,ys,1,0,"span",35),i.Ic(4,Cs,2,1,"span",36),i.Ic(5,xs,2,1,"span",37),i.Vb(6,"span",38),i.Kc(7),i.Ub(),i.Ub(),i.Ub()),2&e){const e=t.$implicit,n=i.hc();i.Db(1),i.oc("ngStyle",i.sc(6,ws,n.screenSize===n.screenSizeEnum.XS?"10rem":"22rem")),i.Db(1),i.oc("ngIf",e.active),i.Db(1),i.oc("ngIf",!e.active),i.Db(1),i.oc("ngIf",e.private),i.Db(1),i.oc("ngIf",!e.private),i.Db(2),i.Lc(e.remote_alias||e.remote_pubkey)}}function Ls(e,t){if(1&e&&(i.Vb(0,"th",44),i.Kc(1),i.Ub()),2&e){const e=i.hc();i.Db(1),i.Mc("Uptime (",e.timeUnit,")")}}function Us(e,t){if(1&e&&(i.Vb(0,"td",32),i.Vb(1,"span",45),i.Kc(2),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc("",e.uptime_str," ")}}function Vs(e,t){1&e&&(i.Vb(0,"th",44),i.Kc(1,"Sats Sent "),i.Ub())}function Ss(e,t){if(1&e&&(i.Vb(0,"td",32),i.Vb(1,"span",45),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc("",i.jc(3,1,e.total_satoshis_sent)," ")}}function Ds(e,t){1&e&&(i.Vb(0,"th",44),i.Kc(1,"Sats Received "),i.Ub())}function Is(e,t){if(1&e&&(i.Vb(0,"td",32),i.Vb(1,"span",45),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc("",i.jc(3,1,e.total_satoshis_received)," ")}}function Fs(e,t){1&e&&(i.Vb(0,"th",44),i.Kc(1,"Local Balance "),i.Ub())}function _s(e,t){if(1&e&&(i.Vb(0,"td",32),i.Vb(1,"span",45),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc("",i.jc(3,1,e.local_balance)," ")}}function ks(e,t){1&e&&(i.Vb(0,"th",44),i.Kc(1,"Remote Balance "),i.Ub())}function As(e,t){if(1&e&&(i.Vb(0,"td",32),i.Vb(1,"span",45),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc("",i.jc(3,1,e.remote_balance)," ")}}function Ts(e,t){1&e&&(i.Vb(0,"th",46),i.Kc(1,"Balance Score "),i.Ub())}function Ps(e,t){if(1&e&&(i.Vb(0,"td",47),i.Vb(1,"div",48),i.Vb(2,"mat-hint",49),i.Kc(3),i.ic(4,"number"),i.Ub(),i.Ub(),i.Qb(5,"mat-progress-bar",50),i.Ub()),2&e){const e=t.$implicit;i.Db(3),i.Lc(i.jc(4,2,e.balancedness||0)),i.Db(2),i.pc("value",e.local_balance&&e.local_balance>0?+e.local_balance/(+e.local_balance+ +e.remote_balance)*100:0)}}function Os(e,t){if(1&e){const e=i.Wb();i.Vb(0,"th",51),i.Vb(1,"div",52),i.Vb(2,"mat-select",53),i.Qb(3,"mat-select-trigger"),i.Vb(4,"mat-option",54),i.dc("click",function(){return i.zc(e),i.hc().onChannelUpdate("all")}),i.Kc(5,"Update Fee Policy"),i.Ub(),i.Vb(6,"mat-option",54),i.dc("click",function(){return i.zc(e),i.hc().onDownloadCSV()}),i.Kc(7,"Download CSV"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}}function Rs(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-option",54),i.dc("click",function(){i.zc(e);const t=i.hc().$implicit;return i.hc().onCircularRebalance(t)}),i.Kc(1,"Circular Rebalance"),i.Ub()}}function Ks(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-option",54),i.dc("click",function(){i.zc(e);const t=i.hc().$implicit;return i.hc().onLoopOut(t)}),i.Kc(1,"Loop Out"),i.Ub()}}function Ms(e,t){if(1&e){const e=i.Wb();i.Vb(0,"td",55),i.Vb(1,"div",56),i.Vb(2,"mat-select",57),i.Qb(3,"mat-select-trigger"),i.Vb(4,"mat-option",54),i.dc("click",function(n){i.zc(e);const a=t.$implicit;return i.hc().onChannelClick(a,n)}),i.Kc(5,"View Info"),i.Ub(),i.Vb(6,"mat-option",54),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().onViewRemotePolicy(n)}),i.Kc(7,"View Remote Fee "),i.Ub(),i.Vb(8,"mat-option",54),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().onChannelUpdate(n)}),i.Kc(9,"Update Fee Policy"),i.Ub(),i.Ic(10,Rs,2,0,"mat-option",58),i.Ic(11,Ks,2,0,"mat-option",58),i.Vb(12,"mat-option",54),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().onChannelClose(n)}),i.Kc(13,"Close Channel"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.Db(10),i.oc("ngIf",+e.versionsArr[0]>0||+e.versionsArr[1]>=9),i.Db(1),i.oc("ngIf",e.selNode.swapServerUrl)}}function Qs(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No peers connected. Add a peer in order to open a channel."),i.Ub())}function zs(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No channels available."),i.Ub())}function Es(e,t){if(1&e&&(i.Vb(0,"td",59),i.Ic(1,Qs,2,0,"p",60),i.Ic(2,zs,2,0,"p",60),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("ngIf",e.numPeers<1&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)),i.Db(1),i.oc("ngIf",e.numPeers>0&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1))}}const Ns=function(e){return{"display-none":e}};function Gs(e,t){if(1&e&&i.Qb(0,"tr",61),2&e){const e=i.hc();i.oc("ngClass",i.sc(1,Ns,e.numPeers>0&&(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function qs(e,t){1&e&&i.Qb(0,"tr",62)}function Bs(e,t){1&e&&i.Qb(0,"tr",63)}const Hs=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},js=function(){return["no_peer"]};let Ws=(()=>{class e{constructor(e,t,n,a,o,i,s){this.logger=e,this.store=t,this.rtlEffects=n,this.lndEffects=a,this.commonService=o,this.loopService=i,this.decimalPipe=s,this.timeUnit="mins:secs",this.userPersonaEnum=p.w,this.selNode={},this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.flgLoading=[!0],this.selFilter="",this.flgSticky=!1,this.pageSize=p.n,this.pageSizeOptions=p.o,this.screenSize="",this.screenSizeEnum=p.q,this.versionsArr=[],this.faEye=m.p,this.faEyeSlash=m.q,this.targetConf=6,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.q.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","actions"]):this.screenSize===p.q.SM?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","actions"]):this.screenSize===p.q.MD?(this.flgSticky=!1,this.displayedColumns=["remote_alias","uptime","local_balance","remote_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["remote_alias","uptime","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness","actions"])}ngOnInit(){this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{e.effectErrors.forEach(e=>{"FetchChannels/all"===e.action&&(this.flgLoading[0]="error")}),this.selNode=e.nodeSettings,this.information=e.information,this.information&&this.information.version&&(this.versionsArr=this.information.version.split(".")),this.numPeers=e.peers&&e.peers.length?e.peers.length:0,this.totalBalance=+e.blockchainBalance.total_balance,this.channelsData=this.calculateUptime(e.allChannels),this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!e.allChannels),this.logger.info(e)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(e){this.store.dispatch(new f.h(e.chan_id.toString()+"/"+this.information.identity_pubkey)),this.lndEffects.setLookup.pipe(Object(vn.a)(1)).subscribe(e=>{if(!e.fee_base_msat&&!e.fee_rate_milli_msat&&!e.time_lock_delta)return!1;this.store.dispatch(new W.C({data:{type:p.b.INFORMATION,alertTitle:"Remote Channel Policy",message:[[{key:"fee_base_msat",value:e.fee_base_msat,title:"Base Fees (mSats)",width:34,type:p.h.NUMBER},{key:"fee_rate_milli_msat",value:e.fee_rate_milli_msat,title:"Fee Rate (milli mSats)",width:33,type:p.h.NUMBER},{key:"time_lock_delta",value:e.time_lock_delta,title:"Time Lock Delta",width:33,type:p.h.NUMBER}]]}}))})}onCircularRebalance(e){this.store.dispatch(new W.C({data:{channel:e,component:ts}}))}onChannelUpdate(e){"all"===e?(this.store.dispatch(new W.D({data:{type:p.b.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All Channels",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:p.h.NUMBER.toLowerCase(),inputValue:1e3,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:p.h.NUMBER.toLowerCase(),inputValue:1,min:1,width:32},{placeholder:"Time Lock Delta",inputType:p.h.NUMBER.toLowerCase(),inputValue:40,width:32}]}})),this.rtlEffects.closeConfirm.pipe(Object(u.a)(this.unSubs[1])).subscribe(e=>{if(e){const t=e[0].inputValue,n=e[1].inputValue,a=e[2].inputValue;this.store.dispatch(new W.F("Updating Channel Policy...")),this.store.dispatch(new f.hc({baseFeeMsat:t,feeRate:n,timeLockDelta:a,chanPoint:"all"}))}})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.store.dispatch(new W.F("Fetching Channel Policy...")),this.store.dispatch(new f.h(e.chan_id.toString())),this.lndEffects.setLookup.pipe(Object(vn.a)(1)).subscribe(t=>{this.myChanPolicy=t.node1_pub===this.information.identity_pubkey?t.node1_policy:t.node2_pub===this.information.identity_pubkey?t.node2_policy:{fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.logger.info(this.myChanPolicy),this.store.dispatch(new W.i),this.store.dispatch(new W.D({data:{type:p.b.CONFIRM,alertTitle:"Update Fee Policy",titleMessage:"Update fee policy for channel point: "+e.channel_point,noBtnText:"Cancel",yesBtnText:"Update Channel",message:[],flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:p.h.NUMBER.toLowerCase(),inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:p.h.NUMBER.toLowerCase(),inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:32},{placeholder:"Time Lock Delta",inputType:p.h.NUMBER.toLowerCase(),inputValue:this.myChanPolicy.time_lock_delta,width:32}]}}))}),this.rtlEffects.closeConfirm.pipe(Object(u.a)(this.unSubs[2])).subscribe(t=>{if(t){const n=t[0].inputValue,a=t[1].inputValue,o=t[2].inputValue;this.store.dispatch(new W.F("Updating Channel Policy...")),this.store.dispatch(new f.hc({baseFeeMsat:n,feeRate:a,timeLockDelta:o,chanPoint:e.channel_point}))}})),this.applyFilter()}onChannelClose(e){e.active&&this.store.dispatch(new f.C),this.store.dispatch(new W.C({width:"70%",data:{channel:e,component:ms}}))}applyFilter(){this.channels.filter=this.selFilter}onChannelClick(e,t){this.store.dispatch(new W.C({data:{channel:e,showCopy:!0,component:ki}}))}loadChannelsTable(e){e.sort(function(e,t){return e.active===t.active?0:t.active?1:-1}),this.channels=new Pt.o([...e]),this.channels.filterPredicate=(e,t)=>((e.active?"active":"inactive")+(e.chan_id?e.chan_id:"")+(e.remote_pubkey?e.remote_pubkey:"")+(e.remote_alias?e.remote_alias:"")+(e.capacity?e.capacity:"")+(e.local_balance?e.local_balance:"")+(e.remote_balance?e.remote_balance:"")+(e.total_satoshis_sent?e.total_satoshis_sent:"")+(e.total_satoshis_received?e.total_satoshis_received:"")+(e.commit_fee?e.commit_fee:"")+(e.private?"private":"public")).includes(t),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.channels.paginator=this.paginator,this.logger.info(this.channels)}calculateUptime(e){const t=3600,n=86400,a=31536e3;let o=60,i=1,s=0;switch(e.forEach(e=>{e.uptime&&+e.uptime>s&&(s=+e.uptime)}),!0){case s=t&&s=n&&sa:this.timeUnit="Yrs:Days",o=a,i=n;break;default:this.timeUnit="Mins:Secs",o=60,i=1}return e.forEach(e=>{e.uptime_str=e.uptime?this.decimalPipe.transform(Math.floor(+e.uptime/o),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+e.uptime%o/i),"2.0-0"):"---"}),e}onLoopOut(e){this.store.dispatch(new W.F("Getting Terms and Quotes...")),this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe(Object(u.a)(this.unSubs[0])).subscribe(t=>{this.store.dispatch(new W.i),this.store.dispatch(new W.C({minHeight:"56rem",data:{channel:e,minQuote:t[0],maxQuote:t[1],direction:p.s.LOOP_OUT,component:Ct}}))})}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(y.h),i.Pb(Rn.a),i.Pb(Kn.a),i.Pb(x.a),i.Pb($.a),i.Pb(a.f))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-channel-open-table"]],viewQuery:function(e,t){if(1&e&&(i.Pc(Tt.a,!0),i.Pc(At.a,!0)),2&e){let e;i.vc(e=i.ec())&&(t.sort=e.first),i.vc(e=i.ec())&&(t.paginator=e.first)}},features:[i.Cb([{provide:At.b,useValue:Object(p.y)("Channels")}])],decls:39,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","uptime"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-2",4,"matHeaderCellDef"],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","dot green","matTooltip","Active","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltip","Inactive","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","yellow"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-2"],["mat-cell","",1,"pl-2"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Qb(2,"div",2),i.Vb(3,"mat-form-field",3),i.Vb(4,"input",4),i.dc("keyup",function(){return t.applyFilter()})("ngModelChange",function(e){return t.selFilter=e}),i.Ub(),i.Ub(),i.Ub(),i.Vb(5,"div",5),i.Ic(6,ps,1,0,"mat-progress-bar",6),i.Vb(7,"table",7,8),i.Tb(9,9),i.Ic(10,fs,2,0,"th",10),i.Ic(11,vs,8,8,"td",11),i.Sb(),i.Tb(12,12),i.Ic(13,Ls,2,1,"th",13),i.Ic(14,Us,3,1,"td",11),i.Sb(),i.Tb(15,14),i.Ic(16,Vs,2,0,"th",13),i.Ic(17,Ss,4,3,"td",11),i.Sb(),i.Tb(18,15),i.Ic(19,Ds,2,0,"th",13),i.Ic(20,Is,4,3,"td",11),i.Sb(),i.Tb(21,16),i.Ic(22,Fs,2,0,"th",13),i.Ic(23,_s,4,3,"td",11),i.Sb(),i.Tb(24,17),i.Ic(25,ks,2,0,"th",13),i.Ic(26,As,4,3,"td",11),i.Sb(),i.Tb(27,18),i.Ic(28,Ts,2,0,"th",19),i.Ic(29,Ps,6,4,"td",20),i.Sb(),i.Tb(30,21),i.Ic(31,Os,8,0,"th",22),i.Ic(32,Ms,14,2,"td",23),i.Sb(),i.Tb(33,24),i.Ic(34,Es,3,2,"td",25),i.Sb(),i.Ic(35,Gs,1,3,"tr",26),i.Ic(36,qs,1,0,"tr",27),i.Ic(37,Bs,1,0,"tr",28),i.Ub(),i.Ub(),i.Qb(38,"mat-paginator",29),i.Ub()),2&e&&(i.Db(4),i.oc("ngModel",t.selFilter),i.Db(2),i.oc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.oc("dataSource",t.channels)("ngClass",i.sc(11,Hs,"error"===t.flgLoading[0])),i.Db(28),i.oc("matFooterRowDef",i.rc(13,js)),i.Db(1),i.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.oc("matRowDefColumns",t.displayedColumns),i.Db(1),i.oc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[w.c,w.b,w.a,O.c,ce.b,B.c,B.m,B.p,M.b,a.o,Pt.n,Tt.a,a.m,I.a,Pt.c,Pt.i,Pt.b,Pt.e,Pt.g,Pt.k,Pt.m,At.a,s.a,Pt.h,Tt.b,Pt.a,a.p,I.b,R.a,v.a,O.f,Rt.a,Rt.c,Kt.m,Pt.d,Pt.f,Pt.j,Pt.l],pipes:[a.f],styles:[".mat-column-remote_alias[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-remote_alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:2rem;flex:0 0 20%;width:20%}.mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-uptime[_ngcontent-%COMP%]{flex:1 1 20%;width:10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e})();const $s=["outputIdx"];function Xs(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Index for change output is required."),i.Ub())}function Js(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Invalid index value."),i.Ub())}function Zs(e,t){if(1&e&&(i.Vb(0,"mat-option",28),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.oc("value",e.id),i.Db(1),i.Mc(" ",e.name," ")}}function Ys(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Number of blocks is required."),i.Ub())}function ec(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-form-field",16),i.Vb(1,"input",29,30),i.dc("ngModelChange",function(t){return i.zc(e),i.hc().blocks=t}),i.Ub(),i.Ic(3,Ys,2,0,"mat-error",19),i.Ub()}if(2&e){const e=i.hc();i.Db(1),i.oc("ngModel",e.blocks)("step",1)("min",0),i.Db(2),i.oc("ngIf",!e.blocks)}}function tc(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Fees is required."),i.Ub())}function nc(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-form-field",16),i.Vb(1,"input",31,32),i.dc("ngModelChange",function(t){return i.zc(e),i.hc().fees=t}),i.Ub(),i.Ic(3,tc,2,0,"mat-error",19),i.Ub()}if(2&e){const e=i.hc();i.Db(1),i.oc("ngModel",e.fees)("step",1)("min",0),i.Db(2),i.oc("ngIf",!e.fees)}}function ac(e,t){if(1&e&&(i.Vb(0,"div",33),i.Qb(1,"fa-icon",12),i.Vb(2,"span"),i.Kc(3),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("icon",e.faExclamationTriangle),i.Db(2),i.Lc(e.bumpFeeError)}}let oc=(()=>{class e{constructor(e,t,n,a){this.dialogRef=e,this.data=t,this.store=n,this.dataService=a,this.transTypes=[...p.u],this.selTransType="1",this.blocks=null,this.fees=null,this.outputIndex=null,this.faInfoCircle=m.t,this.faExclamationTriangle=m.o,this.bumpFeeError="",this.unSubs=[new b.a,new b.a]}set payReq(e){e&&(this.outputIdx=e)}ngOnInit(){this.transTypes=this.transTypes.splice(1),this.bumpFeeChannel=this.data.pendingChannel;const e=this.bumpFeeChannel.channel&&this.bumpFeeChannel.channel.channel_point?this.bumpFeeChannel.channel.channel_point.split(":"):[];this.bumpFeeChannel.channel.txid_str=e[0]?e[0]:this.bumpFeeChannel.channel&&this.bumpFeeChannel.channel.channel_point?this.bumpFeeChannel.channel.channel_point:"",this.bumpFeeChannel.channel.output_index=e[1]?+e[1]:null}onBumpFee(){return this.outputIndex===this.bumpFeeChannel.channel.output_index?(this.outputIdx.control.setErrors({pendingChannelOutputIndex:!0}),!0):!this.outputIndex&&0!==this.outputIndex||!("1"!==this.selTransType||this.blocks&&0!==this.blocks)||!("2"!==this.selTransType||this.fees&&0!==this.fees)||void this.dataService.bumpFee(this.bumpFeeChannel.channel.txid_str,this.outputIndex,this.blocks,this.fees).pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{this.dialogRef.close(!1)},e=>{console.error(e),this.bumpFeeError=e.message?e.message:e})}resetData(){this.bumpFeeError="",this.selTransType="1",this.blocks=null,this.fees=null,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(H.f),i.Pb(H.a),i.Pb(y.h),i.Pb(Ln.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-bump-fee"]],viewQuery:function(e,t){if(1&e&&i.Pc($s,!0),2&e){let e;i.vc(e=i.ec())&&(t.payReq=e.first)}},decls:47,vars:13,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],[1,"pl-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","32","fxLayoutAlign","start end"],["matInput","","placeholder","Index for Change Output","type","number","tabindex","1","required","","name","outputIdx",3,"ngModel","step","min","ngModelChange"],["outputIdx","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","32"],["tabindex","2",3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex.gt-sm","32","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","reset","tabindex","5","default","",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","6",3,"click"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],["matInput","","placeholder","Fees (Sats/Byte)","type","number","name","fees","required","","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(e,t){if(1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"mat-card-header",2),i.Vb(3,"div",3),i.Vb(4,"span",4),i.Kc(5,"Bump Fee"),i.Ub(),i.Ub(),i.Vb(6,"button",5),i.dc("click",function(){return t.onClose()}),i.Kc(7,"X"),i.Ub(),i.Ub(),i.Vb(8,"mat-card-content",6),i.Vb(9,"form",7),i.Vb(10,"div",8),i.Vb(11,"p",9),i.Kc(12),i.Ub(),i.Vb(13,"div",10),i.Vb(14,"div",11),i.Qb(15,"fa-icon",12),i.Vb(16,"span",13),i.Kc(17,"Bumping fee on pending open channels is an advanced feature, attempt it only if you are familiar with the functionality of Bitcoin transactions. "),i.Vb(18,"div"),i.Kc(19,"Before attempting fee bump ensure the following:"),i.Ub(),i.Vb(20,"div",14),i.Kc(21,"1: Use a Bitcoin block explorer to ensure that channel opening transaction is not confirmed."),i.Ub(),i.Vb(22,"div",14),i.Kc(23,"2: The channel opening transaction must have a sizable change output, which can be spent further. The fee cannot be bumped without the change output."),i.Ub(),i.Vb(24,"div",14),i.Kc(25,"3: Find the index value of the change output via a block explorer."),i.Ub(),i.Vb(26,"div",14),i.Kc(27,"4: Enter the index value of the change output in the form below and the desired fee rate."),i.Ub(),i.Vb(28,"div",14),i.Kc(29,"5: Upon successful fee bump, use your block explorer to track the child transaction in the mempool, which should be linked with the change output transaction."),i.Ub(),i.Ub(),i.Ub(),i.Vb(30,"div",15),i.Vb(31,"mat-form-field",16),i.Vb(32,"input",17,18),i.dc("ngModelChange",function(e){return t.outputIndex=e}),i.Ub(),i.Ic(34,Xs,2,0,"mat-error",19),i.Ic(35,Js,2,0,"mat-error",19),i.Ub(),i.Vb(36,"mat-form-field",20),i.Vb(37,"mat-select",21),i.dc("valueChange",function(e){return t.selTransType=e})("selectionChange",function(){return t.blocks=null,t.fees=null}),i.Ic(38,Zs,2,2,"mat-option",22),i.Ub(),i.Ub(),i.Ic(39,ec,4,4,"mat-form-field",23),i.Ic(40,nc,4,4,"mat-form-field",23),i.Ub(),i.Ic(41,ac,4,2,"div",24),i.Ub(),i.Ub(),i.Vb(42,"div",25),i.Vb(43,"button",26),i.dc("click",function(){return t.resetData()}),i.Kc(44,"Clear"),i.Ub(),i.Vb(45,"button",27),i.dc("click",function(){return t.onBumpFee()}),i.Kc(46),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e){const e=i.wc(33);i.Db(12),i.Mc("Bump fee for channel point: ",null==t.bumpFeeChannel||null==t.bumpFeeChannel.channel?null:t.bumpFeeChannel.channel.channel_point,""),i.Db(3),i.oc("icon",t.faInfoCircle),i.Db(17),i.oc("ngModel",t.outputIndex)("step",1)("min",0),i.Db(2),i.oc("ngIf",null==e.errors?null:e.errors.required),i.Db(1),i.oc("ngIf",null==e.errors?null:e.errors.pendingChannelOutputIndex),i.Db(2),i.oc("value",t.selTransType),i.Db(1),i.oc("ngForOf",t.transTypes),i.Db(1),i.oc("ngIf","1"==t.selTransType),i.Db(1),i.oc("ngIf","2"==t.selTransType),i.Db(1),i.oc("ngIf",""!==t.bumpFeeError),i.Db(5),i.Lc(""!==t.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[w.c,w.a,U.c,w.b,S.a,U.b,B.u,B.n,B.o,v.a,O.c,ce.b,B.q,B.c,Ot.a,B.s,B.m,B.p,a.o,Rt.a,a.n,O.b,Kt.m],styles:[""]}),e})();function ic(e,t){1&e&&i.Qb(0,"mat-progress-bar",36)}function sc(e,t){1&e&&(i.Vb(0,"mat-header-cell",37),i.Kc(1," Peer "),i.Ub())}const cc=function(e){return{"max-width":e}};function lc(e,t){if(1&e&&(i.Vb(0,"mat-cell",38),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc();i.oc("ngStyle",i.sc(2,cc,n.screenSize===n.screenSizeEnum.XS?"10rem":"30rem")),i.Db(1),i.Lc(e.channel.remote_alias)}}function rc(e,t){1&e&&(i.Vb(0,"mat-header-cell",39),i.Kc(1,"Commit Fee (Sats) "),i.Ub())}function bc(e,t){if(1&e&&(i.Vb(0,"mat-cell",40),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(i.jc(2,1,e.commit_fee))}}function uc(e,t){1&e&&(i.Vb(0,"mat-header-cell",39),i.Kc(1,"Commit Weight "),i.Ub())}function dc(e,t){if(1&e&&(i.Vb(0,"mat-cell",40),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(i.jc(2,1,e.commit_weight))}}function hc(e,t){1&e&&(i.Vb(0,"mat-header-cell",39),i.Kc(1,"Capacity (Sats)"),i.Ub())}function mc(e,t){if(1&e&&(i.Vb(0,"mat-cell",40),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(i.jc(2,1,e.channel.capacity))}}function pc(e,t){1&e&&(i.Vb(0,"mat-header-cell",41),i.Kc(1,"Actions"),i.Ub())}function fc(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-cell",42),i.Vb(1,"div",43),i.Vb(2,"mat-select",44),i.Qb(3,"mat-select-trigger"),i.Vb(4,"mat-option",45),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().onOpenClick(n)}),i.Kc(5,"View Info"),i.Ub(),i.Vb(6,"mat-option",45),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().onBumpFee(n)}),i.Kc(7,"Bump Fee"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}}function gc(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No pending channels."),i.Ub())}function yc(e,t){if(1&e&&(i.Vb(0,"td",46),i.Ic(1,gc,2,0,"p",47),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("ngIf",!e.pendingOpenChannels||!(null!=e.pendingOpenChannels&&e.pendingOpenChannels.data)||(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)<1)}}const Cc=function(e){return{"display-none":e}};function xc(e,t){if(1&e&&i.Qb(0,"tr",48),2&e){const e=i.hc();i.oc("ngClass",i.sc(1,Cc,e.pendingOpenChannels&&(null==e.pendingOpenChannels?null:e.pendingOpenChannels.data)&&(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)>0))}}function wc(e,t){1&e&&i.Qb(0,"mat-header-row")}function vc(e,t){1&e&&i.Qb(0,"mat-row",49)}function Lc(e,t){1&e&&i.Qb(0,"mat-progress-bar",36)}function Uc(e,t){1&e&&(i.Vb(0,"mat-header-cell",37),i.Kc(1," Peer "),i.Ub())}function Vc(e,t){if(1&e&&(i.Vb(0,"mat-cell",38),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc();i.oc("ngStyle",i.sc(2,cc,n.screenSize===n.screenSizeEnum.XS?"10rem":"30rem")),i.Db(1),i.Lc(e.channel.remote_alias)}}function Sc(e,t){1&e&&(i.Vb(0,"mat-header-cell",39),i.Kc(1,"Recovered Balance (Sats) "),i.Ub())}function Dc(e,t){if(1&e&&(i.Vb(0,"mat-cell",40),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(i.jc(2,1,e.recovered_balance))}}function Ic(e,t){1&e&&(i.Vb(0,"mat-header-cell",39),i.Kc(1,"Limbo Balance (Sats) "),i.Ub())}function Fc(e,t){if(1&e&&(i.Vb(0,"mat-cell",40),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(i.jc(2,1,e.limbo_balance))}}function _c(e,t){1&e&&(i.Vb(0,"mat-header-cell",39),i.Kc(1,"Capacity (Sats) "),i.Ub())}function kc(e,t){if(1&e&&(i.Vb(0,"mat-cell",40),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(i.jc(2,1,e.channel.capacity))}}function Ac(e,t){1&e&&(i.Vb(0,"mat-header-cell",50),i.Kc(1,"Actions"),i.Ub())}function Tc(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-cell",51),i.Vb(1,"button",52),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().onForceClosingClick(n)}),i.Kc(2,"View Info"),i.Ub(),i.Ub()}}function Pc(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No pending channels."),i.Ub())}function Oc(e,t){if(1&e&&(i.Vb(0,"td",46),i.Ic(1,Pc,2,0,"p",47),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("ngIf",!e.pendingForceClosingChannels||!(null!=e.pendingForceClosingChannels&&e.pendingForceClosingChannels.data)||(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)<1)}}function Rc(e,t){if(1&e&&i.Qb(0,"tr",48),2&e){const e=i.hc();i.oc("ngClass",i.sc(1,Cc,e.pendingForceClosingChannels&&(null==e.pendingForceClosingChannels?null:e.pendingForceClosingChannels.data)&&(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)>0))}}function Kc(e,t){1&e&&i.Qb(0,"mat-header-row")}function Mc(e,t){1&e&&i.Qb(0,"mat-row",49)}function Qc(e,t){1&e&&i.Qb(0,"mat-progress-bar",36)}function zc(e,t){1&e&&(i.Vb(0,"mat-header-cell",53),i.Kc(1," Peer "),i.Ub())}function Ec(e,t){if(1&e&&(i.Vb(0,"mat-cell",54),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc();i.oc("ngStyle",i.sc(2,cc,n.screenSize===n.screenSizeEnum.XS?"10rem":"30rem")),i.Db(1),i.Lc(e.channel.remote_alias)}}function Nc(e,t){1&e&&(i.Vb(0,"mat-header-cell",39),i.Kc(1," Local Balance (Sats) "),i.Ub())}function Gc(e,t){if(1&e&&(i.Vb(0,"mat-cell",40),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(i.jc(2,1,e.channel.local_balance))}}function qc(e,t){1&e&&(i.Vb(0,"mat-header-cell",39),i.Kc(1," Remote Balance (Sats) "),i.Ub())}function Bc(e,t){if(1&e&&(i.Vb(0,"mat-cell",40),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(i.jc(2,1,e.channel.remote_balance))}}function Hc(e,t){1&e&&(i.Vb(0,"mat-header-cell",39),i.Kc(1," Capacity (Sats) "),i.Ub())}function jc(e,t){if(1&e&&(i.Vb(0,"mat-cell",40),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(i.jc(2,1,e.channel.capacity))}}function Wc(e,t){1&e&&(i.Vb(0,"mat-header-cell",50),i.Kc(1,"Actions"),i.Ub())}function $c(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-cell",51),i.Vb(1,"button",55),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().onClosingClick(n)}),i.Kc(2,"View Info"),i.Ub(),i.Ub()}}function Xc(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No pending channels."),i.Ub())}function Jc(e,t){if(1&e&&(i.Vb(0,"td",46),i.Ic(1,Xc,2,0,"p",47),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("ngIf",!e.pendingClosingChannels||!(null!=e.pendingClosingChannels&&e.pendingClosingChannels.data)||(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)<1)}}function Zc(e,t){if(1&e&&i.Qb(0,"tr",48),2&e){const e=i.hc();i.oc("ngClass",i.sc(1,Cc,e.pendingClosingChannels&&(null==e.pendingClosingChannels?null:e.pendingClosingChannels.data)&&(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)>0))}}function Yc(e,t){1&e&&i.Qb(0,"mat-header-row")}function el(e,t){1&e&&i.Qb(0,"mat-row",49)}function tl(e,t){1&e&&i.Qb(0,"mat-progress-bar",36)}function nl(e,t){1&e&&(i.Vb(0,"mat-header-cell",53),i.Kc(1," Peer "),i.Ub())}function al(e,t){if(1&e&&(i.Vb(0,"mat-cell",54),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc();i.oc("ngStyle",i.sc(2,cc,n.screenSize===n.screenSizeEnum.XS?"10rem":"30rem")),i.Db(1),i.Lc(e.channel.remote_alias)}}function ol(e,t){1&e&&(i.Vb(0,"mat-header-cell",39),i.Kc(1," Limbo Balance (Sats) "),i.Ub())}function il(e,t){if(1&e&&(i.Vb(0,"mat-cell",40),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Mc("",i.jc(2,1,e.limbo_balance)," ")}}function sl(e,t){1&e&&(i.Vb(0,"mat-header-cell",39),i.Kc(1," Local Balance (Sats) "),i.Ub())}function cl(e,t){if(1&e&&(i.Vb(0,"mat-cell",40),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(i.jc(2,1,e.channel.local_balance))}}function ll(e,t){1&e&&(i.Vb(0,"mat-header-cell",39),i.Kc(1," Remote Balance (Sats) "),i.Ub())}function rl(e,t){if(1&e&&(i.Vb(0,"mat-cell",40),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(i.jc(2,1,e.channel.remote_balance))}}function bl(e,t){1&e&&(i.Vb(0,"mat-header-cell",39),i.Kc(1," Capacity (Sats) "),i.Ub())}function ul(e,t){if(1&e&&(i.Vb(0,"mat-cell",40),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(i.jc(2,1,e.channel.capacity))}}function dl(e,t){1&e&&(i.Vb(0,"mat-header-cell",50),i.Kc(1,"Actions"),i.Ub())}function hl(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-cell",51),i.Vb(1,"button",56),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().onWaitClosingClick(n)}),i.Kc(2,"View Info"),i.Ub(),i.Ub()}}function ml(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No pending channels."),i.Ub())}function pl(e,t){if(1&e&&(i.Vb(0,"td",46),i.Ic(1,ml,2,0,"p",47),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("ngIf",!e.pendingWaitClosingChannels||!(null!=e.pendingWaitClosingChannels&&e.pendingWaitClosingChannels.data)||(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)<1)}}const fl=function(e){return{"py-0":!0,"display-none":e}};function gl(e,t){if(1&e&&i.Qb(0,"tr",48),2&e){const e=i.hc();i.oc("ngClass",i.sc(1,fl,e.pendingWaitClosingChannels&&(null==e.pendingWaitClosingChannels?null:e.pendingWaitClosingChannels.data)&&(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)>0))}}function yl(e,t){1&e&&i.Qb(0,"mat-header-row")}function Cl(e,t){1&e&&i.Qb(0,"mat-row",49)}const xl=function(e){return{"w-100 error-border bordered-box":e,"bordered-box w-100":!0}},wl=function(){return["no_pending_open"]},vl=function(e){return{"error-border bordered-box":e,"bordered-box":!0}},Ll=function(){return["no_pending_force_closing"]},Ul=function(){return["no_pending_closing"]},Vl=function(){return["no_pending_wait_closing"]};let Sl=(()=>{class e{constructor(e,t,n){this.logger=e,this.store=t,this.commonService=n,this.selNode={},this.selectedFilter=0,this.information={},this.pendingChannels={},this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.pendingOpenChannelsLength=0,this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.pendingForceClosingChannelsLength=0,this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.pendingClosingChannelsLength=0,this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"],this.pendingWaitClosingChannelsLength=0,this.flgLoading=[!0],this.screenSize="",this.screenSizeEnum=p.q,this.unSubs=[new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.q.XS?(this.displayedOpenColumns=["remote_alias","actions"],this.displayedForceClosingColumns=["remote_alias","actions"],this.displayedClosingColumns=["remote_alias","actions"],this.displayedWaitClosingColumns=["remote_alias","actions"]):this.screenSize===p.q.SM||this.screenSize===p.q.MD?(this.displayedOpenColumns=["remote_alias","commit_fee","actions"],this.displayedForceClosingColumns=["remote_alias","limbo_balance","actions"],this.displayedClosingColumns=["remote_alias","remote_balance","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","actions"]):(this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"])}ngOnInit(){this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{e.effectErrors.forEach(e=>{"FetchChannels/pending"===e.action&&(this.flgLoading[0]="error")}),this.selNode=e.nodeSettings,this.information=e.information,this.pendingChannels=e.pendingChannels,this.pendingChannels.total_limbo_balance&&(this.flgLoading[1]=!1),this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!this.information.identity_pubkey),this.logger.info(e)})}ngAfterViewInit(){this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels)}onOpenClick(e){const t=JSON.parse(JSON.stringify(e,["commit_weight","confirmation_height","fee_per_kw","commit_fee"],2)),n=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),a={};Object.assign(a,t,n),this.store.dispatch(new W.C({data:{type:p.b.INFORMATION,alertTitle:"Opening Channel Information",message:[[{key:"channel_point",value:a.channel_point,title:"Channel Point",width:100,type:p.h.STRING}],[{key:"remote_alias",value:a.remote_alias,title:"Peer Alias",width:25,type:p.h.STRING},{key:"remote_node_pub",value:a.remote_node_pub,title:"Peer Node Pubkey",width:75,type:p.h.STRING}],[{key:"capacity",value:a.capacity,title:"Capacity",width:25,type:p.h.NUMBER},{key:"confirmation_height",value:a.confirmation_height,title:"Confirmation Height",width:25,type:p.h.NUMBER},{key:"local_balance",value:a.local_balance,title:"Local Balance",width:25,type:p.h.NUMBER},{key:"remote_balance",value:a.remote_balance,title:"Remote Balance",width:25,type:p.h.NUMBER}],[{key:"fee_per_kw",value:a.fee_per_kw,title:"Fee/KW",width:25,type:p.h.NUMBER},{key:"commit_weight",value:a.commit_weight,title:"Commit Weight",width:25,type:p.h.NUMBER},{key:"commit_fee",value:a.commit_fee,title:"Commit Fee",width:50,type:p.h.NUMBER}]]}}))}onBumpFee(e){this.store.dispatch(new W.C({data:{pendingChannel:e,component:oc}}))}onForceClosingClick(e){const t=JSON.parse(JSON.stringify(e,["closing_txid","limbo_balance","maturity_height","blocks_til_maturity","recovered_balance"],2)),n=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),a={};Object.assign(a,t,n),this.store.dispatch(new W.C({data:{type:p.b.INFORMATION,alertTitle:"Force Closing Channel Information",message:[[{key:"closing_txid",value:a.closing_txid,title:"Closing Transaction ID",width:100,type:p.h.STRING}],[{key:"channel_point",value:a.channel_point,title:"Channel Point",width:100,type:p.h.STRING}],[{key:"remote_alias",value:a.remote_alias,title:"Peer Alias",width:25,type:p.h.STRING},{key:"remote_node_pub",value:a.remote_node_pub,title:"Peer Node Pubkey",width:75,type:p.h.STRING}],[{key:"capacity",value:a.capacity,title:"Capacity",width:25,type:p.h.NUMBER},{key:"limbo_balance",value:a.limbo_balance,title:"Limbo Balance",width:25,type:p.h.NUMBER},{key:"local_balance",value:a.local_balance,title:"Local Balance",width:25,type:p.h.NUMBER},{key:"remote_balance",value:a.remote_balance,title:"Remote Balance",width:25,type:p.h.NUMBER}],[{key:"maturity_height",value:a.maturity_height,title:"Maturity Height",width:25,type:p.h.NUMBER},{key:"blocks_til_maturity",value:a.blocks_til_maturity,title:"Blocks Till Maturity",width:25,type:p.h.NUMBER},{key:"recovered_balance",value:a.recovered_balance,title:"Recovered Balance",width:50,type:p.h.NUMBER}]]}}))}onClosingClick(e){const t=JSON.parse(JSON.stringify(e,["closing_txid"],2)),n=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),a={};Object.assign(a,t,n),this.store.dispatch(new W.C({data:{type:p.b.INFORMATION,alertTitle:"Closing Channel Information",message:[[{key:"closing_txid",value:a.closing_txid,title:"Closing Transaction ID",width:50,type:p.h.STRING}],[{key:"channel_point",value:a.channel_point,title:"Channel Point",width:100,type:p.h.STRING}],[{key:"remote_alias",value:a.remote_alias,title:"Peer Alias",width:25,type:p.h.STRING},{key:"remote_node_pub",value:a.remote_node_pub,title:"Peer Node Pubkey",width:75,type:p.h.STRING}],[{key:"capacity",value:a.capacity,title:"Capacity",width:25,type:p.h.NUMBER},{key:"local_balance",value:a.local_balance,title:"Local Balance",width:25,type:p.h.NUMBER},{key:"remote_balance",value:a.remote_balance,title:"Remote Balance",width:50,type:p.h.NUMBER}]]}}))}onWaitClosingClick(e){const t=JSON.parse(JSON.stringify(e,["limbo_balance"],2)),n=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),a={};Object.assign(a,t,n),this.store.dispatch(new W.C({data:{type:p.b.INFORMATION,alertTitle:"Wait Closing Channel Information",message:[[{key:"channel_point",value:a.channel_point,title:"Channel Point",width:100,type:p.h.STRING}],[{key:"remote_alias",value:a.remote_alias,title:"Peer Alias",width:25,type:p.h.STRING},{key:"remote_node_pub",value:a.remote_node_pub,title:"Peer Node Pubkey",width:75,type:p.h.STRING}],[{key:"capacity",value:a.capacity,title:"Capacity",width:25,type:p.h.NUMBER},{key:"limbo_balance",value:a.limbo_balance,title:"Limbo Balance",width:25,type:p.h.NUMBER},{key:"local_balance",value:a.local_balance,title:"Local Balance",width:25,type:p.h.NUMBER},{key:"remote_balance",value:a.remote_balance,title:"Remote Balance",width:25,type:p.h.NUMBER}]]}}))}loadOpenChannelsTable(e){e.sort(function(e,t){return e.active===t.active?0:t.active?-1:1}),this.pendingOpenChannelsLength=e.length?e.length:0,this.pendingOpenChannels=new Pt.o([...e]),this.pendingOpenChannels.sort=this.sort,this.pendingOpenChannels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.logger.info(this.pendingOpenChannels)}loadForceClosingChannelsTable(e){e.sort(function(e,t){return e.active===t.active?0:t.active?-1:1}),this.pendingForceClosingChannelsLength=e.length?e.length:0,this.pendingForceClosingChannels=new Pt.o([...e]),this.pendingForceClosingChannels.sort=this.sort,this.pendingForceClosingChannels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.logger.info(this.pendingForceClosingChannels)}loadClosingChannelsTable(e){e.sort(function(e,t){return e.active===t.active?0:t.active?-1:1}),this.pendingClosingChannelsLength=e.length?e.length:0,this.pendingClosingChannels=new Pt.o([...e]),this.pendingClosingChannels.sort=this.sort,this.pendingClosingChannels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.logger.info(this.pendingClosingChannels)}loadWaitClosingChannelsTable(e){e.sort(function(e,t){return e.active===t.active?0:t.active?-1:1}),this.pendingWaitClosingChannelsLength=e.length?e.length:0,this.pendingWaitClosingChannels=new Pt.o([...e]),this.pendingWaitClosingChannels.sort=this.sort,this.pendingWaitClosingChannels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.logger.info(this.pendingWaitClosingChannels)}applyFilter(e){this.selectedFilter=e}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(y.h),i.Pb(x.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-channel-pending-table"]],viewQuery:function(e,t){if(1&e&&i.Pc(Tt.a,!0),2&e){let e;i.vc(e=i.ec())&&(t.sort=e.first)}},decls:120,vars:44,consts:[["fxLayout","column",1,"mb-2"],[1,"page-title"],["displayMode","flat",1,"mt-1"],["mode","indeterminate",4,"ngIf"],["fxLayout","column",1,"flat-expansion-panel"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"ngStyle",4,"matCellDef"],["matColumnDef","commit_fee"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","commit_weight"],["matColumnDef","capacity"],["matColumnDef","actions"],["fxLayoutAlign","end center","class","pl-3 pr-4",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_pending_open"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass",4,"matFooterRowDef"],[4,"matHeaderRowDef"],["fxLayoutAlign","stretch stretch",4,"matRowDef","matRowDefColumns"],[1,"table-container",3,"perfectScrollbar"],["matColumnDef","recovered_balance"],["matColumnDef","limbo_balance"],["fxLayoutAlign","end center","class","pl-4 pr-3",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","pl-4",4,"matCellDef"],["matColumnDef","no_pending_force_closing"],["class","pl-2","mat-sort-header","",4,"matHeaderCellDef"],["class","pl-2",3,"ngStyle",4,"matCellDef"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","no_pending_closing"],["matColumnDef","no_pending_wait_closing"],["mode","indeterminate"],["mat-sort-header",""],[3,"ngStyle"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"pl-3","pr-4"],["fxLayoutAlign","end center",1,"px-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass"],["fxLayoutAlign","stretch stretch"],["fxLayoutAlign","end center",1,"pl-4","pr-3"],["fxLayoutAlign","end center",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","2",3,"click"],["mat-sort-header","",1,"pl-2"],[1,"pl-2",3,"ngStyle"],["mat-stroked-button","","color","primary","type","button","tabindex","3",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"span",1),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Vb(4,"mat-accordion",2),i.Ic(5,ic,1,0,"mat-progress-bar",3),i.Vb(6,"mat-expansion-panel",4),i.Vb(7,"mat-expansion-panel-header"),i.Vb(8,"mat-panel-title"),i.Kc(9),i.Ub(),i.Ub(),i.Vb(10,"div",5),i.Vb(11,"mat-table",6,7),i.Tb(13,8),i.Ic(14,sc,2,0,"mat-header-cell",9),i.Ic(15,lc,2,4,"mat-cell",10),i.Sb(),i.Tb(16,11),i.Ic(17,rc,2,0,"mat-header-cell",12),i.Ic(18,bc,3,3,"mat-cell",13),i.Sb(),i.Tb(19,14),i.Ic(20,uc,2,0,"mat-header-cell",12),i.Ic(21,dc,3,3,"mat-cell",13),i.Sb(),i.Tb(22,15),i.Ic(23,hc,2,0,"mat-header-cell",12),i.Ic(24,mc,3,3,"mat-cell",13),i.Sb(),i.Tb(25,16),i.Ic(26,pc,2,0,"mat-header-cell",17),i.Ic(27,fc,8,0,"mat-cell",18),i.Sb(),i.Tb(28,19),i.Ic(29,yc,2,1,"td",20),i.Sb(),i.Ic(30,xc,1,3,"tr",21),i.Ic(31,wc,1,0,"mat-header-row",22),i.Ic(32,vc,1,0,"mat-row",23),i.Ub(),i.Ub(),i.Ub(),i.Ic(33,Lc,1,0,"mat-progress-bar",3),i.Vb(34,"mat-expansion-panel",4),i.Vb(35,"mat-expansion-panel-header"),i.Vb(36,"mat-panel-title"),i.Kc(37),i.Ub(),i.Ub(),i.Vb(38,"div",24),i.Vb(39,"mat-table",6,7),i.Tb(41,8),i.Ic(42,Uc,2,0,"mat-header-cell",9),i.Ic(43,Vc,2,4,"mat-cell",10),i.Sb(),i.Tb(44,25),i.Ic(45,Sc,2,0,"mat-header-cell",12),i.Ic(46,Dc,3,3,"mat-cell",13),i.Sb(),i.Tb(47,26),i.Ic(48,Ic,2,0,"mat-header-cell",12),i.Ic(49,Fc,3,3,"mat-cell",13),i.Sb(),i.Tb(50,15),i.Ic(51,_c,2,0,"mat-header-cell",12),i.Ic(52,kc,3,3,"mat-cell",13),i.Sb(),i.Tb(53,16),i.Ic(54,Ac,2,0,"mat-header-cell",27),i.Ic(55,Tc,3,0,"mat-cell",28),i.Sb(),i.Tb(56,29),i.Ic(57,Oc,2,1,"td",20),i.Sb(),i.Ic(58,Rc,1,3,"tr",21),i.Ic(59,Kc,1,0,"mat-header-row",22),i.Ic(60,Mc,1,0,"mat-row",23),i.Ub(),i.Ub(),i.Ub(),i.Ic(61,Qc,1,0,"mat-progress-bar",3),i.Vb(62,"mat-expansion-panel",4),i.Vb(63,"mat-expansion-panel-header"),i.Vb(64,"mat-panel-title"),i.Kc(65),i.Ub(),i.Ub(),i.Vb(66,"div",24),i.Vb(67,"mat-table",6,7),i.Tb(69,8),i.Ic(70,zc,2,0,"mat-header-cell",30),i.Ic(71,Ec,2,4,"mat-cell",31),i.Sb(),i.Tb(72,32),i.Ic(73,Nc,2,0,"mat-header-cell",12),i.Ic(74,Gc,3,3,"mat-cell",13),i.Sb(),i.Tb(75,33),i.Ic(76,qc,2,0,"mat-header-cell",12),i.Ic(77,Bc,3,3,"mat-cell",13),i.Sb(),i.Tb(78,15),i.Ic(79,Hc,2,0,"mat-header-cell",12),i.Ic(80,jc,3,3,"mat-cell",13),i.Sb(),i.Tb(81,16),i.Ic(82,Wc,2,0,"mat-header-cell",27),i.Ic(83,$c,3,0,"mat-cell",28),i.Sb(),i.Tb(84,34),i.Ic(85,Jc,2,1,"td",20),i.Sb(),i.Ic(86,Zc,1,3,"tr",21),i.Ic(87,Yc,1,0,"mat-header-row",22),i.Ic(88,el,1,0,"mat-row",23),i.Ub(),i.Ub(),i.Ub(),i.Ic(89,tl,1,0,"mat-progress-bar",3),i.Vb(90,"mat-expansion-panel",4),i.Vb(91,"mat-expansion-panel-header"),i.Vb(92,"mat-panel-title"),i.Kc(93),i.Ub(),i.Ub(),i.Vb(94,"div",24),i.Vb(95,"mat-table",6,7),i.Tb(97,8),i.Ic(98,nl,2,0,"mat-header-cell",30),i.Ic(99,al,2,4,"mat-cell",31),i.Sb(),i.Tb(100,26),i.Ic(101,ol,2,0,"mat-header-cell",12),i.Ic(102,il,3,3,"mat-cell",13),i.Sb(),i.Tb(103,32),i.Ic(104,sl,2,0,"mat-header-cell",12),i.Ic(105,cl,3,3,"mat-cell",13),i.Sb(),i.Tb(106,33),i.Ic(107,ll,2,0,"mat-header-cell",12),i.Ic(108,rl,3,3,"mat-cell",13),i.Sb(),i.Tb(109,15),i.Ic(110,bl,2,0,"mat-header-cell",12),i.Ic(111,ul,3,3,"mat-cell",13),i.Sb(),i.Tb(112,16),i.Ic(113,dl,2,0,"mat-header-cell",27),i.Ic(114,hl,3,0,"mat-cell",28),i.Sb(),i.Tb(115,35),i.Ic(116,pl,2,1,"td",20),i.Sb(),i.Ic(117,gl,1,3,"tr",21),i.Ic(118,yl,1,0,"mat-header-row",22),i.Ic(119,Cl,1,0,"mat-row",23),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(2),i.Nc("Total Limbo Balance: ",i.jc(3,30,t.pendingChannels.total_limbo_balance)," ",null==t.information?null:t.information.smaller_currency_unit,""),i.Db(3),i.oc("ngIf",!0===t.flgLoading[0]),i.Db(4),i.Mc("Pending Open (",t.pendingOpenChannelsLength,")"),i.Db(2),i.oc("dataSource",t.pendingOpenChannels)("ngClass",i.sc(32,xl,"error"===t.flgLoading[0])),i.Db(19),i.oc("matFooterRowDef",i.rc(34,wl)),i.Db(1),i.oc("matHeaderRowDef",t.displayedOpenColumns),i.Db(1),i.oc("matRowDefColumns",t.displayedOpenColumns),i.Db(1),i.oc("ngIf",!0===t.flgLoading[0]),i.Db(4),i.Mc("Pending Force Closing (",t.pendingForceClosingChannelsLength,")"),i.Db(2),i.oc("dataSource",t.pendingForceClosingChannels)("ngClass",i.sc(35,vl,"error"===t.flgLoading[0])),i.Db(19),i.oc("matFooterRowDef",i.rc(37,Ll)),i.Db(1),i.oc("matHeaderRowDef",t.displayedForceClosingColumns),i.Db(1),i.oc("matRowDefColumns",t.displayedForceClosingColumns),i.Db(1),i.oc("ngIf",!0===t.flgLoading[0]),i.Db(4),i.Mc("Pending Closing (",t.pendingClosingChannelsLength,")"),i.Db(2),i.oc("dataSource",t.pendingClosingChannels)("ngClass",i.sc(38,vl,"error"===t.flgLoading[0])),i.Db(19),i.oc("matFooterRowDef",i.rc(40,Ul)),i.Db(1),i.oc("matHeaderRowDef",t.displayedClosingColumns),i.Db(1),i.oc("matRowDefColumns",t.displayedClosingColumns),i.Db(1),i.oc("ngIf",!0===t.flgLoading[0]),i.Db(4),i.Mc("Waiting Close (",t.pendingWaitClosingChannelsLength,")"),i.Db(2),i.oc("dataSource",t.pendingWaitClosingChannels)("ngClass",i.sc(41,vl,"error"===t.flgLoading[0])),i.Db(22),i.oc("matFooterRowDef",i.rc(43,Vl)),i.Db(1),i.oc("matHeaderRowDef",t.displayedWaitClosingColumns),i.Db(1),i.oc("matRowDefColumns",t.displayedWaitClosingColumns))},directives:[w.c,J.a,a.o,J.c,J.e,J.f,w.b,w.a,M.b,Pt.n,Tt.a,a.m,I.a,Pt.c,Pt.i,Pt.b,Pt.e,Pt.g,Pt.k,Pt.m,s.a,Pt.h,Tt.b,Pt.a,a.p,I.b,Rt.a,Rt.c,Kt.m,Pt.d,Pt.f,Pt.j,Pt.l,S.a],pipes:[a.f],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tr.mat-footer-row[_ngcontent-%COMP%] td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom:none}"]}),e})();function Dl(e,t){1&e&&i.Qb(0,"mat-progress-bar",28)}function Il(e,t){1&e&&(i.Vb(0,"th",29),i.Kc(1," Close Type "),i.Ub())}function Fl(e,t){if(1&e&&(i.Vb(0,"td",30),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc();i.oc("matTooltip",n.channelClosureType[e.close_type].tooltip),i.Db(1),i.Mc("",n.channelClosureType[e.close_type].name," ")}}function _l(e,t){1&e&&(i.Vb(0,"th",29),i.Kc(1," Peer "),i.Ub())}const kl=function(e){return{"max-width":e}};function Al(e,t){if(1&e&&(i.Vb(0,"td",31),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc();i.oc("ngStyle",i.sc(2,kl,n.screenSize===n.screenSizeEnum.XS?"10rem":"20rem")),i.Db(1),i.Mc(" ",e.remote_alias," ")}}function Tl(e,t){1&e&&(i.Vb(0,"th",32),i.Kc(1," Capacity "),i.Ub())}function Pl(e,t){if(1&e&&(i.Vb(0,"td",33),i.Vb(1,"span",34),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc(" ",i.jc(3,1,e.capacity)," ")}}function Ol(e,t){1&e&&(i.Vb(0,"th",32),i.Kc(1," Close Height "),i.Ub())}function Rl(e,t){if(1&e&&(i.Vb(0,"td",33),i.Vb(1,"span",34),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc(" ",i.jc(3,1,e.close_height)," ")}}function Kl(e,t){1&e&&(i.Vb(0,"th",32),i.Kc(1," Settled Balance "),i.Ub())}function Ml(e,t){if(1&e&&(i.Vb(0,"td",33),i.Vb(1,"span",34),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc(" ",i.jc(3,1,e.settled_balance)," ")}}function Ql(e,t){if(1&e){const e=i.Wb();i.Vb(0,"th",35),i.Vb(1,"div",36),i.Vb(2,"mat-select",37),i.Qb(3,"mat-select-trigger"),i.Vb(4,"mat-option",38),i.dc("click",function(){return i.zc(e),i.hc().onDownloadCSV()}),i.Kc(5,"Download CSV"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}}function zl(e,t){if(1&e){const e=i.Wb();i.Vb(0,"td",39),i.Vb(1,"span",34),i.Vb(2,"button",40),i.dc("click",function(n){i.zc(e);const a=t.$implicit;return i.hc().onClosedChannelClick(a,n)}),i.Kc(3,"View Info"),i.Ub(),i.Ub(),i.Ub()}}function El(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No closed channels available."),i.Ub())}function Nl(e,t){if(1&e&&(i.Vb(0,"td",41),i.Ic(1,El,2,0,"p",42),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("ngIf",!(null!=e.closedChannels&&e.closedChannels.data)||(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)<1)}}const Gl=function(e){return{"display-none":e}};function ql(e,t){if(1&e&&i.Qb(0,"tr",43),2&e){const e=i.hc();i.oc("ngClass",i.sc(1,Gl,(null==e.closedChannels?null:e.closedChannels.data)&&(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)>0))}}function Bl(e,t){1&e&&i.Qb(0,"tr",44)}function Hl(e,t){1&e&&i.Qb(0,"tr",45)}const jl=function(e){return{"error-border":e}},Wl=function(){return["no_closed_channel"]};let $l=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.store=t,this.actions$=n,this.commonService=a,this.channelClosureType=p.d,this.faHistory=m.r,this.displayedColumns=[],this.closedChannelsData=[],this.flgLoading=[!0],this.flgSticky=!1,this.pageSize=p.n,this.pageSizeOptions=p.o,this.screenSize="",this.screenSizeEnum=p.q,this.unsub=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.q.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","actions"]):this.screenSize===p.q.SM||this.screenSize===p.q.MD?(this.flgSticky=!1,this.displayedColumns=["close_type","remote_alias","settled_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["close_type","remote_alias","capacity","close_height","settled_balance","actions"])}ngOnInit(){this.store.select("lnd").pipe(Object(u.a)(this.unsub[0])).subscribe(e=>{e.effectErrors.forEach(e=>{"FetchChannels/closed"===e.action&&(this.flgLoading[0]="error")}),this.closedChannelsData=e.closedChannels,this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!e.closedChannels),this.logger.info(e)})}ngAfterViewInit(){this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData)}applyFilter(e){this.closedChannels.filter=e.value}onClosedChannelClick(e,t){this.store.dispatch(new W.C({data:{type:p.b.INFORMATION,alertTitle:"Closed Channel Information",message:[[{key:"close_type",value:this.channelClosureType[e.close_type].name,title:"Close Type",width:30,type:p.h.STRING},{key:"settled_balance",value:e.settled_balance,title:"Settled Balance",width:30,type:p.h.NUMBER},{key:"time_locked_balance",value:e.time_locked_balance,title:"Time Locked Balance",width:40,type:p.h.NUMBER}],[{key:"chan_id",value:e.chan_id,title:"Channel ID",width:30},{key:"capacity",value:e.capacity,title:"Capacity",width:30,type:p.h.NUMBER},{key:"close_height",value:e.close_height,title:"Close Height",width:40,type:p.h.NUMBER}],[{key:"remote_alias",value:e.remote_alias,title:"Peer Alias",width:30},{key:"remote_pubkey",value:e.remote_pubkey,title:"Peer Public Key",width:70}],[{key:"channel_point",value:e.channel_point,title:"Channel Point",width:100}],[{key:"closing_tx_hash",value:e.closing_tx_hash,title:"Closing Transaction Hash",width:100,type:p.h.STRING}]]}}))}loadClosedChannelsTable(e){this.closedChannels=new Pt.o([...e]),this.closedChannels.sort=this.sort,this.closedChannels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.closedChannels.paginator=this.paginator,this.logger.info(this.closedChannels)}onDownloadCSV(){this.closedChannels.data&&this.closedChannels.data.length>0&&this.commonService.downloadFile(this.closedChannels.data,"Closed-channels")}ngOnDestroy(){this.unsub.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(y.h),i.Pb(C.a),i.Pb(x.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-channel-closed-table"]],viewQuery:function(e,t){if(1&e&&(i.Pc(Tt.a,!0),i.Pc(At.a,!0)),2&e){let e;i.vc(e=i.ec())&&(t.sort=e.first),i.vc(e=i.ec())&&(t.paginator=e.first)}},features:[i.Cb([{provide:At.b,useValue:Object(p.y)("Channels")}])],decls:33,vars:13,consts:[["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","close_type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"matTooltip",4,"matCellDef"],["matColumnDef","remote_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","close_height"],["matColumnDef","settled_balance"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["matColumnDef","no_closed_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"matTooltip"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Qb(2,"div",2),i.Vb(3,"mat-form-field",3),i.Vb(4,"input",4),i.dc("keyup",function(e){return t.applyFilter(e.target)}),i.Ub(),i.Ub(),i.Ub(),i.Vb(5,"div",5),i.Ic(6,Dl,1,0,"mat-progress-bar",6),i.Vb(7,"table",7,8),i.Tb(9,9),i.Ic(10,Il,2,0,"th",10),i.Ic(11,Fl,2,2,"td",11),i.Sb(),i.Tb(12,12),i.Ic(13,_l,2,0,"th",10),i.Ic(14,Al,2,4,"td",13),i.Sb(),i.Tb(15,14),i.Ic(16,Tl,2,0,"th",15),i.Ic(17,Pl,4,3,"td",16),i.Sb(),i.Tb(18,17),i.Ic(19,Ol,2,0,"th",15),i.Ic(20,Rl,4,3,"td",16),i.Sb(),i.Tb(21,18),i.Ic(22,Kl,2,0,"th",15),i.Ic(23,Ml,4,3,"td",16),i.Sb(),i.Tb(24,19),i.Ic(25,Ql,6,0,"th",20),i.Ic(26,zl,4,0,"td",21),i.Sb(),i.Tb(27,22),i.Ic(28,Nl,2,1,"td",23),i.Sb(),i.Ic(29,ql,1,3,"tr",24),i.Ic(30,Bl,1,0,"tr",25),i.Ic(31,Hl,1,0,"tr",26),i.Ub(),i.Ub(),i.Qb(32,"mat-paginator",27),i.Ub()),2&e&&(i.Db(6),i.oc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.oc("dataSource",t.closedChannels)("ngClass",i.sc(10,jl,"error"===t.flgLoading[0])),i.Db(22),i.oc("matFooterRowDef",i.rc(12,Wl)),i.Db(1),i.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.oc("matRowDefColumns",t.displayedColumns),i.Db(1),i.oc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[w.c,w.b,w.a,O.c,ce.b,M.b,a.o,Pt.n,Tt.a,a.m,I.a,Pt.c,Pt.i,Pt.b,Pt.e,Pt.g,Pt.k,Pt.m,At.a,s.a,Pt.h,Tt.b,Pt.a,R.a,a.p,I.b,Rt.a,Rt.c,Kt.m,S.a,Pt.d,Pt.f,Pt.j,Pt.l],pipes:[a.f],styles:[".mat-column-close_type[_ngcontent-%COMP%]{flex:0 0 16%;min-width:5rem}.mat-column-remote_alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();function Xl(e,t){1&e&&i.Qb(0,"mat-progress-bar",27)}function Jl(e,t){1&e&&(i.Vb(0,"th",28),i.Kc(1,"Amount (Sats)"),i.Ub())}function Zl(e,t){if(1&e&&(i.Vb(0,"span",33),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Mc(" ",i.jc(2,1,null==e?null:e.amount)," ")}}function Yl(e,t){if(1&e&&(i.Vb(0,"span"),i.Ic(1,Zl,3,3,"span",32),i.Ub()),2&e){const e=i.hc().$implicit;i.Db(1),i.oc("ngForOf",null==e?null:e.pending_htlcs)}}function er(e,t){if(1&e&&(i.Vb(0,"td",29),i.Vb(1,"span",30),i.Kc(2),i.Ub(),i.Ic(3,Yl,2,1,"span",31),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc(" Active HTLCs: ",null==e||null==e.pending_htlcs?null:e.pending_htlcs.length," "),i.Db(1),i.oc("ngIf",e.is_expanded)}}function tr(e,t){1&e&&(i.Vb(0,"th",28),i.Kc(1,"Alias/Incoming"),i.Ub())}function nr(e,t){if(1&e&&(i.Vb(0,"span",30),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Mc(" ",null!=e&&e.incoming?"Yes":"No"," ")}}function ar(e,t){if(1&e&&(i.Tb(0),i.Ic(1,nr,2,1,"span",34),i.Sb()),2&e){const e=i.hc().$implicit;i.Db(1),i.oc("ngForOf",null==e?null:e.pending_htlcs)}}function or(e,t){if(1&e&&(i.Vb(0,"td",29),i.Vb(1,"span",30),i.Kc(2),i.Ub(),i.Ic(3,ar,2,1,"ng-container",31),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(null==e?null:e.remote_alias),i.Db(1),i.oc("ngIf",e.is_expanded)}}function ir(e,t){1&e&&(i.Vb(0,"th",35),i.Vb(1,"span",36),i.Kc(2,"Expiration Height"),i.Ub(),i.Ub())}function sr(e,t){if(1&e&&(i.Vb(0,"span",36),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Mc(" ",i.kc(2,1,null==e?null:e.expiration_height,"1.0-0")," ")}}function cr(e,t){if(1&e&&(i.Vb(0,"span"),i.Ic(1,sr,3,4,"span",37),i.Ub()),2&e){const e=i.hc().$implicit;i.Db(1),i.oc("ngForOf",null==e?null:e.pending_htlcs)}}function lr(e,t){if(1&e&&(i.Vb(0,"td",29),i.Vb(1,"span",36),i.Kc(2),i.Ub(),i.Ic(3,cr,2,1,"span",31),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(" "),i.Db(1),i.oc("ngIf",e.is_expanded)}}function rr(e,t){1&e&&(i.Vb(0,"th",38),i.Vb(1,"span",36),i.Kc(2,"Hash Lock"),i.Ub(),i.Ub())}function br(e,t){if(1&e&&(i.Vb(0,"span",36),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Mc(" ",null==e?null:e.hash_lock," ")}}function ur(e,t){if(1&e&&(i.Vb(0,"span"),i.Ic(1,br,2,1,"span",37),i.Ub()),2&e){const e=i.hc().$implicit;i.Db(1),i.oc("ngForOf",null==e?null:e.pending_htlcs)}}function dr(e,t){if(1&e&&(i.Vb(0,"td",39),i.Vb(1,"span",36),i.Kc(2),i.Ub(),i.Ic(3,ur,2,1,"span",31),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(" "),i.Db(1),i.oc("ngIf",e.is_expanded)}}function hr(e,t){if(1&e){const e=i.Wb();i.Vb(0,"th",40),i.Vb(1,"div",41),i.Vb(2,"mat-select",42),i.Qb(3,"mat-select-trigger"),i.Vb(4,"mat-option",43),i.dc("click",function(){return i.zc(e),i.hc().onDownloadCSV()}),i.Kc(5,"Download CSV"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}}function mr(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",45),i.Vb(1,"button",48),i.dc("click",function(){i.zc(e);const n=t.$implicit,a=i.hc(2).$implicit;return i.hc().onHTLCClick(n,a)}),i.Kc(2),i.Ub(),i.Ub()}if(2&e){const e=t.index;i.Db(2),i.Mc("View ",e+1,"")}}function pr(e,t){if(1&e&&(i.Vb(0,"div"),i.Ic(1,mr,3,1,"div",47),i.Ub()),2&e){const e=i.hc().$implicit;i.Db(1),i.oc("ngForOf",null==e?null:e.pending_htlcs)}}function fr(e,t){if(1&e&&(i.Vb(0,"td",44),i.Vb(1,"span",45),i.Vb(2,"button",46),i.dc("click",function(){const e=t.$implicit;return e.is_expanded=!e.is_expanded}),i.Kc(3),i.Ub(),i.Ub(),i.Ic(4,pr,2,1,"div",31),i.Ub()),2&e){const e=t.$implicit;i.Db(3),i.Lc(e.is_expanded?"Hide":"Show"),i.Db(1),i.oc("ngIf",e.is_expanded)}}function gr(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No active htlc available."),i.Ub())}function yr(e,t){if(1&e&&(i.Vb(0,"td",49),i.Ic(1,gr,2,0,"p",31),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("ngIf",!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)}}const Cr=function(e){return{"display-none":e}};function xr(e,t){if(1&e&&i.Qb(0,"tr",50),2&e){const e=i.hc();i.oc("ngClass",i.sc(1,Cr,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function wr(e,t){1&e&&i.Qb(0,"tr",51)}function vr(e,t){1&e&&i.Qb(0,"tr",52)}const Lr=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Ur=function(){return["no_channel"]};let Vr=(()=>{class e{constructor(e,t,n){this.logger=e,this.commonService=t,this.store=n,this.flgLoading=[!0],this.channelsJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.flgSticky=!1,this.pageSize=p.n,this.pageSizeOptions=p.o,this.screenSize="",this.screenSizeEnum=p.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.q.XS?(this.flgSticky=!1,this.displayedColumns=["amount","actions"]):this.screenSize===p.q.SM?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","actions"]):this.screenSize===p.q.MD?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","expiration_height","actions"]):(this.flgSticky=!0,this.displayedColumns=["amount","incoming","expiration_height","hash_lock","actions"])}ngOnInit(){this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{e.effectErrors.forEach(e=>{"FetchChannels/all"===e.action&&(this.flgLoading[0]="error")}),this.channelsJSONArr=e.allChannels&&e.allChannels.length>0?e.allChannels.filter(e=>e.pending_htlcs&&e.pending_htlcs.length>0):[],this.loadHTLCsTable(this.channelsJSONArr),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!this.channelsJSONArr),this.logger.info(e)})}ngAfterViewInit(){this.loadHTLCsTable(this.channelsJSONArr)}onHTLCClick(e,t){this.store.dispatch(new W.C({data:{type:p.b.INFORMATION,alertTitle:"HTLC Information",message:[[{key:"remote_alias",value:t.remote_alias,title:"Alias",width:100,type:p.h.STRING}],[{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:p.h.NUMBER},{key:"incoming",value:e.incoming?"Yes":"No",title:"Incoming",width:50,type:p.h.STRING}],[{key:"expiration_height",value:e.expiration_height,title:"Expiration Height",width:50,type:p.h.NUMBER},{key:"hash_lock",value:e.hash_lock,title:"Hash Lock",width:50,type:p.h.STRING}]]}}))}onChannelClick(e,t){this.store.dispatch(new W.C({data:{channel:e,showCopy:!0,component:ki}}))}applyFilter(e){this.channels.filter=e.value}loadHTLCsTable(e){this.channels=new Pt.o(e?[...e]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,t)=>{switch(t){case"amount":return this.commonService.sortByKey(e.pending_htlcs,t,"number",this.sort.direction),e.pending_htlcs&&e.pending_htlcs.length?e.pending_htlcs.length:null;case"incoming":return this.commonService.sortByKey(e.pending_htlcs,t,"boolean",this.sort.direction),e.remote_alias?e.remote_alias:e.remote_pubkey?e.remote_pubkey:null;case"expiration_height":case"hash_lock":return this.commonService.sortByKey(e.pending_htlcs,t,"number",this.sort.direction),e;default:return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null}},this.channels.paginator=this.paginator,this.channels.filterPredicate=(e,t)=>(e.remote_alias+e.pending_htlcs.map(e=>JSON.stringify(e)+(e.incoming?"yes":"no"))).includes(t.toLowerCase())}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.flattenHTLCs(),"ActiveHTLCs")}flattenHTLCs(){return JSON.parse(JSON.stringify(this.channels.data)).reduce((e,t)=>e.concat(t.pending_htlcs?t.pending_htlcs:t),[])}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(x.a),i.Pb(y.h))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-channel-active-htlcs-table"]],viewQuery:function(e,t){if(1&e&&(i.Pc(Tt.a,!0),i.Pc(At.a,!0)),2&e){let e;i.vc(e=i.ec())&&(t.sort=e.first),i.vc(e=i.ec())&&(t.paginator=e.first)}},features:[i.Cb([{provide:At.b,useValue:Object(p.y)("HTLCs")}])],decls:30,vars:13,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","incoming"],["matColumnDef","expiration_height"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","hash_lock"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pl-3 htlc-row-span",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayoutAlign","start center",1,"htlc-row-span"],[4,"ngIf"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pl-3","htlc-row-span"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"px-2"],["fxLayoutAlign","end center"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Qb(2,"div",2),i.Vb(3,"mat-form-field",3),i.Vb(4,"input",4),i.dc("keyup",function(e){return t.applyFilter(e.target)}),i.Ub(),i.Ub(),i.Ub(),i.Vb(5,"div",5),i.Ic(6,Xl,1,0,"mat-progress-bar",6),i.Vb(7,"table",7,8),i.Tb(9,9),i.Ic(10,Jl,2,0,"th",10),i.Ic(11,er,4,2,"td",11),i.Sb(),i.Tb(12,12),i.Ic(13,tr,2,0,"th",10),i.Ic(14,or,4,2,"td",11),i.Sb(),i.Tb(15,13),i.Ic(16,ir,3,0,"th",14),i.Ic(17,lr,4,2,"td",11),i.Sb(),i.Tb(18,15),i.Ic(19,rr,3,0,"th",16),i.Ic(20,dr,4,2,"td",17),i.Sb(),i.Tb(21,18),i.Ic(22,hr,6,0,"th",19),i.Ic(23,fr,5,2,"td",20),i.Sb(),i.Tb(24,21),i.Ic(25,yr,2,1,"td",22),i.Sb(),i.Ic(26,xr,1,3,"tr",23),i.Ic(27,wr,1,0,"tr",24),i.Ic(28,vr,1,0,"tr",25),i.Ub(),i.Ub(),i.Qb(29,"mat-paginator",26),i.Ub()),2&e&&(i.Db(6),i.oc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.oc("dataSource",t.channels)("ngClass",i.sc(10,Lr,"error"===t.flgLoading[0])),i.Db(19),i.oc("matFooterRowDef",i.rc(12,Ur)),i.Db(1),i.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.oc("matRowDefColumns",t.displayedColumns),i.Db(1),i.oc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[w.c,w.b,w.a,O.c,ce.b,M.b,a.o,Pt.n,Tt.a,a.m,I.a,Pt.c,Pt.i,Pt.b,Pt.e,Pt.g,Pt.k,Pt.m,At.a,s.a,Pt.h,Tt.b,Pt.a,a.n,Rt.a,Rt.c,Kt.m,S.a,Pt.d,Pt.f,Pt.j,Pt.l],pipes:[a.f],styles:[".mat-column-amount[_ngcontent-%COMP%], .mat-column-expiration_height[_ngcontent-%COMP%]{flex:0 0 30%;width:30%}.mat-column-hash_lock[_ngcontent-%COMP%], .mat-column-incoming[_ngcontent-%COMP%]{flex:0 0 25%;width:25%;text-overflow:ellipsis}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}"]}),e})();function Sr(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Wallet password is required."),i.Ub())}let Dr=(()=>{class e{constructor(e){this.store=e,this.walletPassword=""}ngOnInit(){this.walletPassword=""}onUnlockWallet(){if(!this.walletPassword)return!0;this.store.dispatch(new W.F("Unlocking...")),this.store.dispatch(new f.gc({pwd:window.btoa(this.walletPassword)}))}resetData(){this.walletPassword=""}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(y.h))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-unlock-wallet"]],decls:12,vars:2,consts:[["fxLayout","column",1,"padding-gap","mb-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","type","password","placeholder","Password","name","walletPassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","3",3,"click"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"form",1),i.Vb(2,"mat-form-field",2),i.Vb(3,"input",3),i.dc("ngModelChange",function(e){return t.walletPassword=e}),i.Ub(),i.Vb(4,"mat-hint"),i.Kc(5,"Enter Wallet Password"),i.Ub(),i.Ic(6,Sr,2,0,"mat-error",4),i.Ub(),i.Vb(7,"div",5),i.Vb(8,"button",6),i.dc("click",function(){return t.resetData()}),i.Kc(9,"Clear Field"),i.Ub(),i.Vb(10,"button",7),i.dc("click",function(){return t.onUnlockWallet()}),i.Kc(11,"Unlock Wallet"),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(3),i.oc("ngModel",t.walletPassword),i.Db(3),i.oc("ngIf",!t.walletPassword))},directives:[w.c,B.u,B.n,B.o,w.b,O.c,w.a,ce.b,B.c,le.a,B.s,B.m,B.p,O.f,a.o,S.a,O.b],styles:[""]}),e})();var Ir=n("q59W");function Fr(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div"),i.Vb(1,"form",4),i.Vb(2,"div",5),i.Kc(3,"Warning: Your connection is unsecure, it's not safe to generate private keys over this connection.Are you sure you want to proceed?"),i.Ub(),i.Vb(4,"div",6),i.Vb(5,"button",7),i.dc("click",function(){i.zc(e);const t=i.hc();return t.proceed=!1,t.warnRes=!0}),i.Kc(6,"Do Not Proceed"),i.Ub(),i.Vb(7,"button",8),i.dc("click",function(){i.zc(e);const t=i.hc();return t.proceed=!0,t.warnRes=!0}),i.Kc(8,"Proceed"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}}function _r(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",9),i.Vb(1,"div",10),i.Kc(2,"Please re-configure & re-start RTL after securing your LND connction. You can close this window now."),i.Ub(),i.Vb(3,"div",6),i.Vb(4,"button",11),i.dc("click",function(){return i.zc(e),i.hc().warnRes=!1}),i.Kc(5,"Go Back"),i.Ub(),i.Ub(),i.Ub()}}function kr(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Password is required."),i.Ub())}function Ar(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Password must be at least 8 characters in length."),i.Ub())}function Tr(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Confirm password is required."),i.Ub())}function Pr(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Confirm password must be at least 8 characters in length."),i.Ub())}function Or(e,t){1&e&&(i.Vb(0,"div",41),i.Vb(1,"mat-icon",42),i.Kc(2,"cancel"),i.Ub(),i.Kc(3,"Passwords do not match. "),i.Ub())}function Rr(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Cipher seed is required."),i.Ub())}function Kr(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Invalid Cipher. Enter comma separated 24 words cipher seed."),i.Ub())}function Mr(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Passphrase is required."),i.Ub())}function Qr(e,t){1&e&&(i.Vb(0,"mat-icon"),i.Kc(1,"vpn_key"),i.Ub())}function zr(e,t){1&e&&(i.Vb(0,"mat-icon"),i.Kc(1,"swap_calls"),i.Ub())}function Er(e,t){1&e&&(i.Vb(0,"mat-icon"),i.Kc(1,"fingerprint"),i.Ub())}function Nr(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-vertical-stepper",12,13),i.Vb(2,"mat-step",14),i.Vb(3,"form",15),i.Vb(4,"mat-form-field",16),i.Qb(5,"input",17),i.Vb(6,"mat-hint"),i.Kc(7,"Enter Wallet Password"),i.Ub(),i.Ic(8,kr,2,0,"mat-error",1),i.Ic(9,Ar,2,0,"mat-error",1),i.Ub(),i.Vb(10,"mat-form-field",16),i.Qb(11,"input",18),i.Vb(12,"mat-hint"),i.Kc(13,"Confirm Wallet Password"),i.Ub(),i.Ic(14,Tr,2,0,"mat-error",1),i.Ic(15,Pr,2,0,"mat-error",1),i.Ub(),i.Ic(16,Or,4,0,"div",19),i.Vb(17,"div",20),i.Vb(18,"button",21),i.Kc(19,"Next"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Vb(20,"mat-step",22),i.Vb(21,"form",23),i.Vb(22,"div",24),i.Vb(23,"mat-slide-toggle",25),i.Kc(24,"Existing Cipher"),i.Ub(),i.Vb(25,"mat-form-field",26),i.Qb(26,"input",27),i.Vb(27,"mat-hint"),i.Kc(28,"Cipher Seed"),i.Ub(),i.Ic(29,Rr,2,0,"mat-error",1),i.Ic(30,Kr,2,0,"mat-error",1),i.Ub(),i.Ub(),i.Vb(31,"div",28),i.Vb(32,"button",29),i.Kc(33,"Back"),i.Ub(),i.Vb(34,"button",30),i.Kc(35,"Next"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Vb(36,"mat-step",31),i.Vb(37,"form",23),i.Vb(38,"div",24),i.Vb(39,"mat-slide-toggle",32),i.Kc(40,"Existing Passphrase"),i.Ub(),i.Vb(41,"mat-form-field",33),i.Qb(42,"input",34),i.Vb(43,"mat-hint"),i.Kc(44,"Enter Passphrase"),i.Ub(),i.Ic(45,Mr,2,0,"mat-error",1),i.Ub(),i.Ub(),i.Vb(46,"div",28),i.Vb(47,"button",35),i.dc("click",function(){return i.zc(e),i.hc().resetData()}),i.Kc(48,"Clear"),i.Ub(),i.Vb(49,"button",36),i.Kc(50,"Back"),i.Ub(),i.Vb(51,"button",37),i.dc("click",function(){return i.zc(e),i.hc().onInitWallet()}),i.Kc(52,"Initialize Wallet"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ic(53,Qr,2,0,"ng-template",38),i.Ic(54,zr,2,0,"ng-template",39),i.Ic(55,Er,2,0,"ng-template",40),i.Ub()}if(2&e){const e=i.hc();i.oc("linear",!0),i.Db(2),i.oc("stepControl",e.passwordFormGroup),i.Db(1),i.oc("formGroup",e.passwordFormGroup),i.Db(5),i.oc("ngIf",null==e.passwordFormGroup.controls.initWalletPassword.errors?null:e.passwordFormGroup.controls.initWalletPassword.errors.required),i.Db(1),i.oc("ngIf",null==e.passwordFormGroup.controls.initWalletPassword.errors?null:e.passwordFormGroup.controls.initWalletPassword.errors.minlength),i.Db(5),i.oc("ngIf",null==e.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:e.passwordFormGroup.controls.initWalletConfirmPassword.errors.required),i.Db(1),i.oc("ngIf",null==e.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:e.passwordFormGroup.controls.initWalletConfirmPassword.errors.minlength),i.Db(1),i.oc("ngIf",(null==e.passwordFormGroup.errors?null:e.passwordFormGroup.errors.unmatchedPasswords)&&(e.passwordFormGroup.controls.initWalletPassword.touched||e.passwordFormGroup.controls.initWalletPassword.dirty)&&(e.passwordFormGroup.controls.initWalletConfirmPassword.touched||e.passwordFormGroup.controls.initWalletConfirmPassword.dirty)),i.Db(4),i.oc("stepControl",e.cipherFormGroup),i.Db(1),i.oc("formGroup",e.cipherFormGroup),i.Db(2),i.oc("labelPosition","before"),i.Db(6),i.oc("ngIf",null==e.cipherFormGroup.controls.cipherSeed.errors?null:e.cipherFormGroup.controls.cipherSeed.errors.required),i.Db(1),i.oc("ngIf",!(null!=e.cipherFormGroup.controls.cipherSeed.errors&&e.cipherFormGroup.controls.cipherSeed.errors.required)&&(null==e.cipherFormGroup.controls.cipherSeed.errors?null:e.cipherFormGroup.controls.cipherSeed.errors.invalidCipher)),i.Db(6),i.oc("stepControl",e.passphraseFormGroup),i.Db(1),i.oc("formGroup",e.passphraseFormGroup),i.Db(2),i.oc("labelPosition","before"),i.Db(6),i.oc("ngIf",null==e.passphraseFormGroup.controls.passphrase.errors?null:e.passphraseFormGroup.controls.passphrase.errors.required)}}function Gr(e,t){if(1&e&&(i.Vb(0,"span",48),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(e)}}function qr(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div"),i.Vb(1,"form",4),i.Vb(2,"div",43),i.Kc(3,"YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!"),i.Ub(),i.Vb(4,"div",44),i.Ic(5,Gr,2,1,"span",45),i.Ub(),i.Vb(6,"div",46),i.Kc(7,"Wallet initialization is done."),i.Ub(),i.Vb(8,"div",46),i.Kc(9,"The node will be usable only after LND has synced completely with the network."),i.Ub(),i.Vb(10,"div",46),i.Kc(11,"Click continue only after writing down the seed."),i.Ub(),i.Vb(12,"div",6),i.Vb(13,"button",47),i.dc("click",function(){return i.zc(e),i.hc().onGoToHome()}),i.Kc(14,"Go To Home"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.Db(5),i.oc("ngForOf",e.genSeedResponse)}}function Br(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div"),i.Vb(1,"form",4),i.Vb(2,"div",46),i.Kc(3,"Something went wrong! Unable to initialize wallet!"),i.Ub(),i.Vb(4,"div",6),i.Vb(5,"button",49),i.dc("click",function(){return i.zc(e),i.hc().resetData()}),i.Kc(6,"Restart"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}}function Hr(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div"),i.Vb(1,"form",4),i.Vb(2,"div",46),i.Kc(3,"Wallet recovery is done."),i.Ub(),i.Vb(4,"div",46),i.Kc(5,"The node will be usable only after LND has synced completely with the network."),i.Ub(),i.Vb(6,"div",6),i.Vb(7,"button",50),i.dc("click",function(){return i.zc(e),i.hc().onGoToHome()}),i.Kc(8,"Go To Home"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}}const jr=e=>{const t=e.get("initWalletPassword"),n=e.get("initWalletConfirmPassword");return t&&n&&t.value!==n.value?{unmatchedPasswords:!0}:null},Wr=e=>{const t=e.value?e.value.toString().trim().split(","):[];return t&&24!==t.length?{invalidCipher:!0}:null};let $r=(()=>{class e{constructor(e,t,n,a){this.store=e,this.formBuilder=t,this.lndEffects=n,this.router=a,this.insecureLND=!1,this.genSeedResponse=[],this.initWalletResponse="",this.proceed=!0,this.warnRes=!1,this.unsubs=[new b.a,new b.a,new b.a,new b.a,new b.a]}ngOnInit(){this.passwordFormGroup=this.formBuilder.group({initWalletPassword:["",[B.t.required,B.t.minLength(8)]],initWalletConfirmPassword:["",[B.t.required,B.t.minLength(8)]]},{validators:jr}),this.cipherFormGroup=this.formBuilder.group({existingCipher:[!1],cipherSeed:[{value:"",disabled:!0},[Wr]]}),this.passphraseFormGroup=this.formBuilder.group({enterPassphrase:[!1],passphrase:[{value:"",disabled:!0}]}),this.cipherFormGroup.controls.existingCipher.valueChanges.pipe(Object(u.a)(this.unsubs[0])).subscribe(e=>{e?(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.enable()):(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.disable())}),this.passphraseFormGroup.controls.enterPassphrase.valueChanges.pipe(Object(u.a)(this.unsubs[1])).subscribe(e=>{e?(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.enable()):(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.disable())}),this.insecureLND=!window.location.protocol.includes("https:"),this.lndEffects.initWalletRes.pipe(Object(u.a)(this.unsubs[2])).subscribe(e=>{this.initWalletResponse=e}),this.lndEffects.genSeedResponse.pipe(Object(u.a)(this.unsubs[3])).subscribe(e=>{this.genSeedResponse=e,this.store.dispatch(new f.cb(this.passphraseFormGroup.controls.enterPassphrase.value?{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse}))})}onInitWallet(){if(this.passwordFormGroup.invalid||this.cipherFormGroup.invalid||this.passphraseFormGroup.invalid)return!0;if(this.store.dispatch(new W.F("Initializing...")),this.cipherFormGroup.controls.existingCipher.value){const e=this.cipherFormGroup.controls.cipherSeed.value.toString().trim().split(",");this.store.dispatch(new f.cb(this.passphraseFormGroup.controls.enterPassphrase.value?{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:e,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:e}))}else this.store.dispatch(new f.V(this.passphraseFormGroup.controls.enterPassphrase.value?window.btoa(this.passphraseFormGroup.controls.passphrase.value):""))}onGoToHome(){setTimeout(()=>{this.store.dispatch(new W.Z),this.store.dispatch(new f.H({loadPage:"HOME"}))},1e3)}resetData(){this.genSeedResponse=[],this.initWalletResponse=""}ngOnDestroy(){this.unsubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(y.h),i.Pb(B.d),i.Pb(Kn.a),i.Pb(o.g))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-initialize-wallet"]],viewQuery:function(e,t){if(1&e&&i.Pc(X.c,!0),2&e){let e;i.vc(e=i.ec())&&(t.stepper=e.first)}},features:[i.Cb([{provide:Ir.h,useValue:{displayDefaultIndicatorType:!1}}])],decls:7,vars:6,consts:[["fxLayout","column",1,"padding-gap","mb-4"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch",4,"ngIf"],[3,"linear",4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","2",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch"],["fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",3,"click"],[3,"linear"],["stepper",""],["label","Wallet Password","state","password",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-1",3,"formGroup"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Password","name","initWalletPassword","formControlName","initWalletPassword","tabindex","5","required",""],["matInput","","type","password","placeholder","Confirm Password","name","initWalletConfirmPassword","formControlName","initWalletConfirmPassword","tabindex","6","required",""],["class","validation-error-message",4,"ngIf"],["fxLayout","row",1,"my-2"],["mat-flat-button","","color","primary","tabindex","7","type","submit","matStepperNext",""],["label","Cipher","state","cipher",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start",1,"mt-1",3,"formGroup"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch"],["fxFlex","20","tabindex","8","color","primary","formControlName","existingCipher","name","existingCipher",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start",1,"my-1"],["autofocus","","matInput","","type","input","placeholder","Comma separated array of 24 words cipher seed","name","cipherSeed","formControlName","cipherSeed","tabindex","9","required",""],["fxLayout","row",1,"mb-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","10","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","submit","matStepperNext","",1,"mt-1"],["label","Passphrase","state","passphrase",3,"stepControl"],["fxFlex","20","tabindex","10","color","primary","formControlName","enterPassphrase","name","enterPassphrase",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start"],["matInput","","type","input","type","password","placeholder","Passphrase","name","passphrase","formControlName","passphrase","tabindex","12","required",""],["mat-stroked-button","","color","warn","tabindex","13","type","reset",1,"mr-1","mt-1",3,"click"],["mat-stroked-button","","tabindex","14","color","primary","type","button","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","15","type","submit",1,"mt-1",3,"click"],["matStepperIcon","password"],["matStepperIcon","cipher"],["matStepperIcon","passphrase"],[1,"validation-error-message"],[1,"validation-error-icon","red"],["fxFlex","100","fxLayoutAlign","start",1,"blinker"],["fxFlex","40","fxLayout","row wrap",1,"mt-2"],["fxFlex","25","fxLayoutAlign","start","class","genseed-message",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start",1,"mt-2"],["mat-flat-button","","color","primary","type","submit","tabindex","16",3,"click"],["fxFlex","25","fxLayoutAlign","start",1,"genseed-message"],["mat-stroked-button","","color","primary","tabindex","17","type","reset",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","18",3,"click"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Ic(1,Fr,9,0,"div",1),i.Ic(2,_r,6,0,"div",2),i.Ic(3,Nr,56,17,"mat-vertical-stepper",3),i.Ic(4,qr,15,1,"div",1),i.Ic(5,Br,7,0,"div",1),i.Ic(6,Hr,9,0,"div",1),i.Ub()),2&e&&(i.Db(1),i.oc("ngIf",t.insecureLND&&!t.warnRes),i.Db(1),i.oc("ngIf",t.warnRes&&!t.proceed),i.Db(1),i.oc("ngIf",(!t.insecureLND||t.warnRes&&t.proceed)&&t.genSeedResponse.length<=0&&""===t.initWalletResponse),i.Db(1),i.oc("ngIf",t.genSeedResponse.length>0&&""!==t.initWalletResponse),i.Db(1),i.oc("ngIf",t.genSeedResponse.length>0&&""===t.initWalletResponse),i.Db(1),i.oc("ngIf",t.genSeedResponse.length<=0&&""!==t.initWalletResponse))},directives:[w.c,a.o,B.u,B.n,B.o,w.b,w.a,S.a,X.h,X.a,B.h,O.c,ce.b,B.c,B.m,B.g,B.s,O.f,X.f,re.a,X.g,X.d,O.b,D.a,a.n],styles:[""]}),e})(),Xr=(()=>{class e{constructor(){this.faWallet=m.P}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-wallet"]],decls:12,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["label","Unlock"],["label","Initialize"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Qb(1,"fa-icon",1),i.Vb(2,"span",2),i.Kc(3,"Wallet"),i.Ub(),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"mat-card"),i.Vb(6,"mat-card-content",4),i.Vb(7,"mat-tab-group"),i.Vb(8,"mat-tab",5),i.Qb(9,"rtl-unlock-wallet"),i.Ub(),i.Vb(10,"mat-tab",6),i.Qb(11,"rtl-initialize-wallet"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(1),i.oc("icon",t.faWallet))},directives:[w.c,w.b,v.a,U.a,U.b,kt.b,kt.a,Dr,$r],styles:[""]}),e})();function Jr(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",11),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().activeLink=n.link}),i.Kc(1),i.Ub()}if(2&e){const e=t.$implicit,n=i.hc();i.pc("routerLink",e.link),i.oc("active",n.activeLink===e.link),i.Db(1),i.Lc(e.name)}}let Zr=(()=>{class e{constructor(e,t,n){this.logger=e,this.store=t,this.router=n,this.faExchangeAlt=m.n,this.faChartPie=m.g,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){let e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe(Object(u.a)(this.unSubs[0]),Object(d.a)(e=>e instanceof o.f)).subscribe(e=>{let t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link}),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[1])).subscribe(e=>{this.currencyUnits=e.nodeSettings.currencyUnits,this.balances=e.nodeSettings.userPersona===p.w.OPERATOR?[{title:"Local Capacity",dataValue:e.totalLocalBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:e.totalRemoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:e.totalLocalBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:e.totalRemoteBalance,tooltip:"Amount you can receive"}],this.logger.info(e)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(y.h),i.Pb(o.g))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-transactions"]],decls:19,vars:4,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Qb(1,"fa-icon",1),i.Vb(2,"span",2),i.Kc(3,"Lightning Balance"),i.Ub(),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"mat-card"),i.Vb(6,"mat-card-content",4),i.Qb(7,"rtl-currency-unit-converter",5),i.Ub(),i.Ub(),i.Ub(),i.Vb(8,"div",6),i.Qb(9,"fa-icon",1),i.Vb(10,"span",2),i.Kc(11,"Lightning Transactions"),i.Ub(),i.Ub(),i.Vb(12,"div",7),i.Vb(13,"mat-card"),i.Vb(14,"mat-card-content",4),i.Vb(15,"nav",8),i.Ic(16,Jr,2,3,"div",9),i.Ub(),i.Vb(17,"div",10),i.Qb(18,"router-outlet"),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(1),i.oc("icon",t.faChartPie),i.Db(6),i.oc("values",t.balances),i.Db(2),i.oc("icon",t.faExchangeAlt),i.Db(7),i.oc("ngForOf",t.links))},directives:[w.c,w.b,v.a,U.a,U.b,bo.a,kt.e,a.n,w.a,o.l,kt.d,o.h],styles:[""]}),e})();function Yr(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Destination pubkey is required."),i.Ub())}function eb(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Amount is required."),i.Ub())}function tb(e,t){1&e&&i.Qb(0,"mat-progress-bar",37)}function nb(e,t){1&e&&(i.Vb(0,"th",38),i.Kc(1," Hop "),i.Ub())}function ab(e,t){if(1&e&&(i.Vb(0,"td",39),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Mc(" ",null==e?null:e.hop_sequence," ")}}function ob(e,t){1&e&&(i.Vb(0,"th",38),i.Kc(1," Peer "),i.Ub())}const ib=function(e){return{"max-width":e}};function sb(e,t){if(1&e&&(i.Vb(0,"td",40),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc();i.oc("ngStyle",i.sc(2,ib,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),i.Db(1),i.Mc(" ",null==e?null:e.pubkey_alias," ")}}function cb(e,t){1&e&&(i.Vb(0,"th",38),i.Kc(1," Channel "),i.Ub())}function lb(e,t){if(1&e&&(i.Vb(0,"td",39),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Mc(" ",null==e?null:e.chan_id," ")}}function rb(e,t){1&e&&(i.Vb(0,"th",41),i.Kc(1," Capacity (Sats) "),i.Ub())}function bb(e,t){if(1&e&&(i.Vb(0,"td",39),i.Vb(1,"span",42),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc(" ",i.jc(3,1,null==e?null:e.chan_capacity),"")}}function ub(e,t){1&e&&(i.Vb(0,"th",41),i.Kc(1," Amount To Fwd (Sats) "),i.Ub())}function db(e,t){if(1&e&&(i.Vb(0,"td",39),i.Vb(1,"span",42),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc(" ",i.jc(3,1,null==e?null:e.amt_to_forward)," ")}}function hb(e,t){1&e&&(i.Vb(0,"th",41),i.Kc(1," Fee (mSats) "),i.Ub())}function mb(e,t){if(1&e&&(i.Vb(0,"td",39),i.Vb(1,"span",42),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc(" ",i.jc(3,1,null==e?null:e.fee_msat)," ")}}function pb(e,t){1&e&&(i.Vb(0,"th",43),i.Vb(1,"span",42),i.Kc(2,"Actions"),i.Ub(),i.Ub())}function fb(e,t){if(1&e){const e=i.Wb();i.Vb(0,"td",44),i.Vb(1,"button",45),i.dc("click",function(n){i.zc(e);const a=t.$implicit;return i.hc().onHopClick(a,n)}),i.Kc(2,"View Info"),i.Ub(),i.Ub()}}function gb(e,t){1&e&&i.Qb(0,"tr",46)}function yb(e,t){1&e&&i.Qb(0,"tr",47)}const Cb=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}};let xb=(()=>{class e{constructor(e,t,n){this.store=e,this.lndEffects=t,this.commonService=n,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=m.E,this.faExclamationTriangle=m.o,this.screenSize="",this.screenSizeEnum=p.q,this.unSubs=[new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.q.XS?(this.flgSticky=!1,this.displayedColumns=["pubkey_alias","actions"]):this.screenSize===p.q.SM?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","fee_msat","actions"]):this.screenSize===p.q.MD?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"])}ngOnInit(){this.lndEffects.setQueryRoutes.pipe(Object(u.a)(this.unSubs[1])).subscribe(e=>{this.qrHops=new Pt.o([]),this.qrHops.data=[],e.routes&&e.routes[0].hops?(this.flgLoading[0]=!1,this.qrHops=new Pt.o([...e.routes[0].hops]),this.qrHops.data=e.routes[0].hops):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.flgLoading[0]=!0,this.store.dispatch(new f.Y({destPubkey:this.destinationPubkey,amount:this.amount}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1}onHopClick(e,t){this.store.dispatch(new W.C({data:{type:p.b.INFORMATION,alertTitle:"Route Information",message:[[{key:"hop_sequence",value:e.hop_sequence,title:"Sequence",width:30,type:p.h.NUMBER},{key:"amt_to_forward",value:e.amt_to_forward,title:"Amount To Forward (Sats)",width:30,type:p.h.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:40,type:p.h.NUMBER}],[{key:"pubkey_alias",value:e.pubkey_alias,title:"Peer Alias",width:30,type:p.h.STRING},{key:"pub_key",value:e.pub_key,title:"Peer Pubkey",width:70,type:p.h.STRING}],[{key:"expiry",value:e.expiry,title:"Expiry",width:30,type:p.h.NUMBER},{key:"chan_id",value:e.chan_id,title:"Channel ID",width:30,type:p.h.STRING},{key:"chan_capacity",value:e.chan_capacity,title:"Channel Capacity",width:40,type:p.h.NUMBER}]]}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(y.h),i.Pb(Kn.a),i.Pb(x.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-query-routes"]],viewQuery:function(e,t){if(1&e&&i.Pc(Tt.a,!0),2&e){let e;i.vc(e=i.ec())&&(t.sort=e.first)}},decls:51,vars:16,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","hop_sequence"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pubkey_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","chan_id"],["matColumnDef","chan_capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_to_forward_msat"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-cell","",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",0),i.Vb(1,"form",1,2),i.dc("ngSubmit",function(){return i.zc(e),i.wc(2).form.valid&&t.onQueryRoutes()}),i.Vb(3,"div",3),i.Qb(4,"fa-icon",4),i.Vb(5,"span"),i.Kc(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),i.Ub(),i.Ub(),i.Vb(7,"mat-form-field",5),i.Vb(8,"input",6,7),i.dc("ngModelChange",function(e){return t.destinationPubkey=e}),i.Ub(),i.Ic(10,Yr,2,0,"mat-error",8),i.Ub(),i.Vb(11,"mat-form-field",9),i.Vb(12,"input",10),i.dc("ngModelChange",function(e){return t.amount=e}),i.Ub(),i.Ic(13,eb,2,0,"mat-error",8),i.Ub(),i.Vb(14,"div",11),i.Vb(15,"button",12),i.dc("click",function(){return t.resetData()}),i.Kc(16,"Clear"),i.Ub(),i.Vb(17,"button",13),i.Kc(18,"Query Route"),i.Ub(),i.Ub(),i.Ub(),i.Vb(19,"div",14),i.Vb(20,"div",15),i.Qb(21,"fa-icon",16),i.Vb(22,"span",17),i.Kc(23,"Transaction Route"),i.Ub(),i.Ub(),i.Ub(),i.Vb(24,"div",18),i.Ic(25,tb,1,0,"mat-progress-bar",19),i.Vb(26,"table",20,21),i.Tb(28,22),i.Ic(29,nb,2,0,"th",23),i.Ic(30,ab,2,1,"td",24),i.Sb(),i.Tb(31,25),i.Ic(32,ob,2,0,"th",23),i.Ic(33,sb,2,4,"td",26),i.Sb(),i.Tb(34,27),i.Ic(35,cb,2,0,"th",23),i.Ic(36,lb,2,1,"td",24),i.Sb(),i.Tb(37,28),i.Ic(38,rb,2,0,"th",29),i.Ic(39,bb,4,3,"td",24),i.Sb(),i.Tb(40,30),i.Ic(41,ub,2,0,"th",29),i.Ic(42,db,4,3,"td",24),i.Sb(),i.Tb(43,31),i.Ic(44,hb,2,0,"th",29),i.Ic(45,mb,4,3,"td",24),i.Sb(),i.Tb(46,32),i.Ic(47,pb,3,0,"th",33),i.Ic(48,fb,3,0,"td",34),i.Sb(),i.Ic(49,gb,1,0,"tr",35),i.Ic(50,yb,1,0,"tr",36),i.Ub(),i.Ub(),i.Ub()}2&e&&(i.Db(4),i.oc("icon",t.faExclamationTriangle),i.Db(4),i.oc("ngModel",t.destinationPubkey),i.Db(2),i.oc("ngIf",!t.destinationPubkey),i.Db(2),i.oc("ngModel",t.amount)("step",1e3)("min",0),i.Db(1),i.oc("ngIf",!t.amount),i.Db(8),i.oc("icon",t.faRoute),i.Db(4),i.oc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.oc("dataSource",t.qrHops)("ngClass",i.sc(14,Cb,"error"===t.flgLoading[0])),i.Db(23),i.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.oc("matRowDefColumns",t.displayedColumns))},directives:[w.c,w.a,B.u,B.n,B.o,w.b,v.a,O.c,ce.b,B.c,B.s,B.m,B.p,a.o,B.q,Ot.a,S.a,M.b,Pt.n,Tt.a,a.m,I.a,Pt.c,Pt.i,Pt.b,Pt.k,Pt.m,O.b,s.a,Pt.h,Tt.b,Pt.a,a.p,I.b,Pt.j,Pt.l],pipes:[a.f],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();function wb(e,t){1&e&&(i.Vb(0,"th",25),i.Kc(1,"Network"),i.Ub())}function vb(e,t){if(1&e&&(i.Vb(0,"td",26),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Mc(" ",null==e?null:e.network," ")}}function Lb(e,t){1&e&&(i.Vb(0,"th",25),i.Kc(1,"Address"),i.Ub())}function Ub(e,t){if(1&e&&(i.Vb(0,"td",26),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Mc(" ",null==e?null:e.addr," ")}}function Vb(e,t){1&e&&(i.Vb(0,"th",27),i.Vb(1,"span",28),i.Kc(2,"Actions"),i.Ub(),i.Ub())}function Sb(e,t){if(1&e){const e=i.Wb();i.Vb(0,"td",29),i.Vb(1,"span",28),i.Vb(2,"button",30),i.dc("copied",function(t){return i.zc(e),i.hc(2).onCopyNodeURI(t)}),i.Kc(3,"Copy Node URI"),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=t.$implicit,n=i.hc(2);i.Db(2),i.oc("payload",n.lookupResult.node.pub_key+"@"+e.addr)}}function Db(e,t){1&e&&i.Qb(0,"tr",31)}function Ib(e,t){1&e&&i.Qb(0,"tr",32)}const Fb=function(e){return{"background-color":e}};function _b(e,t){if(1&e&&(i.Vb(0,"div",1),i.Qb(1,"mat-divider",2),i.Vb(2,"div",3),i.Vb(3,"h4",4),i.Kc(4,"Pub Key"),i.Ub(),i.Vb(5,"span",5),i.Kc(6),i.Ub(),i.Ub(),i.Qb(7,"mat-divider",6),i.Vb(8,"div",7),i.Vb(9,"div",8),i.Vb(10,"h4",4),i.Kc(11,"Alias"),i.Ub(),i.Vb(12,"span",9),i.Kc(13),i.Vb(14,"span",10),i.Kc(15),i.Ub(),i.Ub(),i.Ub(),i.Vb(16,"div",8),i.Vb(17,"h4",4),i.Kc(18,"Last Update"),i.Ub(),i.Vb(19,"span",9),i.Kc(20),i.Ub(),i.Ub(),i.Ub(),i.Qb(21,"mat-divider",6),i.Vb(22,"div",7),i.Vb(23,"div",8),i.Vb(24,"h4",4),i.Kc(25,"Total Capacity (Sats)"),i.Ub(),i.Vb(26,"span",9),i.Kc(27),i.ic(28,"number"),i.Ub(),i.Ub(),i.Vb(29,"div",8),i.Vb(30,"h4",4),i.Kc(31,"Number of Channels"),i.Ub(),i.Vb(32,"span",9),i.Kc(33),i.ic(34,"number"),i.Ub(),i.Ub(),i.Ub(),i.Qb(35,"mat-divider",6),i.Vb(36,"div",11),i.Vb(37,"h4",12),i.Kc(38,"Addresses"),i.Ub(),i.Vb(39,"div",13),i.Vb(40,"table",14,15),i.Tb(42,16),i.Ic(43,wb,2,0,"th",17),i.Ic(44,vb,2,1,"td",18),i.Sb(),i.Tb(45,19),i.Ic(46,Lb,2,0,"th",17),i.Ic(47,Ub,2,1,"td",18),i.Sb(),i.Tb(48,20),i.Ic(49,Vb,3,0,"th",21),i.Ic(50,Sb,4,1,"td",22),i.Sb(),i.Ic(51,Db,1,0,"tr",23),i.Ic(52,Ib,1,0,"tr",24),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("inset",!0),i.Db(5),i.Lc(e.lookupResult.node.pub_key),i.Db(1),i.oc("inset",!0),i.Db(6),i.Lc(e.lookupResult.node.alias),i.Db(1),i.oc("ngStyle",i.sc(18,Fb,null==e.lookupResult.node?null:e.lookupResult.node.color)),i.Db(1),i.Lc(null==e.lookupResult.node?null:e.lookupResult.node.color),i.Db(5),i.Lc(e.lookupResult.node.last_update_str),i.Db(1),i.oc("inset",!0),i.Db(6),i.Lc(i.jc(28,14,e.lookupResult.total_capacity)),i.Db(6),i.Lc(i.jc(34,16,e.lookupResult.num_channels)),i.Db(2),i.oc("inset",!0),i.Db(5),i.oc("dataSource",e.lookupResult.node.addresses),i.Db(11),i.oc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.oc("matRowDefColumns",e.displayedColumns)}}let kb=(()=>{class e{constructor(e,t){this.logger=e,this.snackBar=t,this.displayedColumns=["network","addr","actions"]}ngOnInit(){}onCopyNodeURI(e){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+e)}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(vi.b))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-node-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start",1,"my-1"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text","w-100"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxLayout","column","fxFlex","50","fxLayoutAlign","end start",1,"my-1"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxLayout","column",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource"],["table",""],["matColumnDef","network"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","addr"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&i.Ic(0,_b,53,20,"div",0),2&e&&i.oc("ngIf",t.lookupResult)},directives:[a.o,w.c,K.a,w.a,w.b,a.p,I.b,M.b,Pt.n,Tt.a,Pt.c,Pt.i,Pt.b,Pt.k,Pt.m,Pt.h,Tt.b,Pt.a,S.a,Li.a,Pt.j,Pt.l],pipes:[a.f],styles:[""]}),e})();function Ab(e,t){1&e&&(i.Vb(0,"h3",16),i.Kc(1,"Node 1"),i.Ub())}function Tb(e,t){1&e&&(i.Vb(0,"h3",16),i.Kc(1,"Node 1 (Your Node)"),i.Ub())}function Pb(e,t){1&e&&(i.Vb(0,"h3",16),i.Kc(1,"Node 2"),i.Ub())}function Ob(e,t){1&e&&(i.Vb(0,"h3",16),i.Kc(1,"Node 2 (Your Node)"),i.Ub())}function Rb(e,t){if(1&e&&(i.Vb(0,"div",1),i.Qb(1,"mat-divider",2),i.Vb(2,"div",3),i.Vb(3,"h4",4),i.Kc(4,"Channel Id"),i.Ub(),i.Vb(5,"span",5),i.Kc(6),i.Ub(),i.Ub(),i.Qb(7,"mat-divider",6),i.Vb(8,"div",3),i.Vb(9,"h4",4),i.Kc(10,"Channel Point"),i.Ub(),i.Vb(11,"span",5),i.Kc(12),i.Ub(),i.Ub(),i.Qb(13,"mat-divider",6),i.Vb(14,"div",7),i.Vb(15,"div",8),i.Vb(16,"h4",4),i.Kc(17,"Last Update"),i.Ub(),i.Vb(18,"span",5),i.Kc(19),i.Ub(),i.Ub(),i.Vb(20,"div",8),i.Vb(21,"h4",4),i.Kc(22,"Capacity (Sats)"),i.Ub(),i.Vb(23,"span",5),i.Kc(24),i.ic(25,"number"),i.Ub(),i.Ub(),i.Ub(),i.Qb(26,"mat-divider",6),i.Vb(27,"div",9),i.Vb(28,"div",10),i.Vb(29,"div",11),i.Ic(30,Ab,2,0,"h3",12),i.Ic(31,Tb,2,0,"h3",12),i.Ub(),i.Qb(32,"mat-divider",13),i.Vb(33,"div",14),i.Vb(34,"h4",4),i.Kc(35,"Pubkey"),i.Ub(),i.Vb(36,"span",5),i.Kc(37),i.Ub(),i.Ub(),i.Qb(38,"mat-divider",13),i.Vb(39,"div",15),i.Vb(40,"h4",4),i.Kc(41,"Time Lock Delta"),i.Ub(),i.Vb(42,"span",5),i.Kc(43),i.Ub(),i.Ub(),i.Qb(44,"mat-divider",13),i.Vb(45,"div",15),i.Vb(46,"h4",4),i.Kc(47,"Min HTLC"),i.Ub(),i.Vb(48,"span",5),i.Kc(49),i.Ub(),i.Ub(),i.Qb(50,"mat-divider",13),i.Vb(51,"div",15),i.Vb(52,"h4",4),i.Kc(53,"Fee Base Msat"),i.Ub(),i.Vb(54,"span",5),i.Kc(55),i.Ub(),i.Ub(),i.Qb(56,"mat-divider",13),i.Vb(57,"div",15),i.Vb(58,"h4",4),i.Kc(59,"Fee Rate Milli Msat"),i.Ub(),i.Vb(60,"span",5),i.Kc(61),i.Ub(),i.Ub(),i.Qb(62,"mat-divider",13),i.Vb(63,"div",15),i.Vb(64,"h4",4),i.Kc(65,"Disabled"),i.Ub(),i.Vb(66,"span",5),i.Kc(67),i.Ub(),i.Ub(),i.Ub(),i.Vb(68,"div",10),i.Vb(69,"div"),i.Ic(70,Pb,2,0,"h3",12),i.Ic(71,Ob,2,0,"h3",12),i.Ub(),i.Qb(72,"mat-divider",13),i.Vb(73,"div",14),i.Vb(74,"h4",4),i.Kc(75,"Pubkey"),i.Ub(),i.Vb(76,"span",5),i.Kc(77),i.Ub(),i.Ub(),i.Qb(78,"mat-divider",13),i.Vb(79,"div",15),i.Vb(80,"h4",4),i.Kc(81,"Time Lock Delta"),i.Ub(),i.Vb(82,"span",5),i.Kc(83),i.Ub(),i.Ub(),i.Qb(84,"mat-divider",13),i.Vb(85,"div",15),i.Vb(86,"h4",4),i.Kc(87,"Min HTLC"),i.Ub(),i.Vb(88,"span",5),i.Kc(89),i.Ub(),i.Ub(),i.Qb(90,"mat-divider",13),i.Vb(91,"div",15),i.Vb(92,"h4",4),i.Kc(93,"Fee Base Msat"),i.Ub(),i.Vb(94,"span",5),i.Kc(95),i.Ub(),i.Ub(),i.Qb(96,"mat-divider",13),i.Vb(97,"div",15),i.Vb(98,"h4",4),i.Kc(99,"Fee Rate Milli Msat"),i.Ub(),i.Vb(100,"span",5),i.Kc(101),i.Ub(),i.Ub(),i.Qb(102,"mat-divider",13),i.Vb(103,"div",15),i.Vb(104,"h4",4),i.Kc(105,"Disabled"),i.Ub(),i.Vb(106,"span",5),i.Kc(107),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("inset",!0),i.Db(5),i.Lc(e.lookupResult.channel_id),i.Db(1),i.oc("inset",!0),i.Db(5),i.Lc(e.lookupResult.chan_point),i.Db(1),i.oc("inset",!0),i.Db(6),i.Lc(e.lookupResult.last_update_str),i.Db(5),i.Lc(i.jc(25,36,e.lookupResult.capacity)),i.Db(2),i.oc("inset",!0),i.Db(4),i.oc("ngIf",!e.node1_match),i.Db(1),i.oc("ngIf",e.node1_match),i.Db(1),i.oc("inset",!0),i.Db(5),i.Lc(e.lookupResult.node1_pub),i.Db(1),i.oc("inset",!0),i.Db(5),i.Lc(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.time_lock_delta),i.Db(1),i.oc("inset",!0),i.Db(5),i.Lc(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.min_htlc),i.Db(1),i.oc("inset",!0),i.Db(5),i.Lc(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.fee_base_msat),i.Db(1),i.oc("inset",!0),i.Db(5),i.Lc(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.fee_rate_milli_msat),i.Db(1),i.oc("inset",!0),i.Db(5),i.Lc(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.disabled),i.Db(3),i.oc("ngIf",!e.node2_match),i.Db(1),i.oc("ngIf",e.node2_match),i.Db(1),i.oc("inset",!0),i.Db(5),i.Lc(e.lookupResult.node2_pub),i.Db(1),i.oc("inset",!0),i.Db(5),i.Lc(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.time_lock_delta),i.Db(1),i.oc("inset",!0),i.Db(5),i.Lc(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.min_htlc),i.Db(1),i.oc("inset",!0),i.Db(5),i.Lc(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.fee_base_msat),i.Db(1),i.oc("inset",!0),i.Db(5),i.Lc(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.fee_rate_milli_msat),i.Db(1),i.oc("inset",!0),i.Db(5),i.Lc(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.disabled)}}let Kb=(()=>{class e{constructor(e){this.store=e,this.node1_match=!1,this.node2_match=!1,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{this.lookupResult.node1_pub===e.information.identity_pubkey&&(this.node1_match=!0),this.lookupResult.node2_pub===e.information.identity_pubkey&&(this.node2_match=!0)})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(y.h))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-channel-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start",1,"my-1"],[1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","50","fxLayoutAlign","end start",1,"my-1"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],[3,"inset"],["fxLayout","column","fxFlex","20",1,"my-1"],["fxLayout","column","fxFlex","10",1,"my-1"],[1,"page-title","font-bold-500"]],template:function(e,t){1&e&&i.Ic(0,Rb,108,38,"div",0),2&e&&i.oc("ngIf",t.lookupResult)},directives:[a.o,w.c,K.a,w.a,w.b],pipes:[a.f],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),e})();const Mb=["form"];function Qb(e,t){if(1&e&&(i.Vb(0,"mat-radio-button",20),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc();i.oc("value",e.id)("checked",n.selectedFieldId===e.id),i.Db(1),i.Mc(" ",e.name," ")}}function zb(e,t){if(1&e&&(i.Vb(0,"mat-error"),i.Kc(1),i.Ub()),2&e){const e=i.hc();i.Db(1),i.Mc("",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder," is required.")}}function Eb(e,t){if(1&e&&(i.Vb(0,"span",27),i.Qb(1,"rtl-node-lookup",28),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.oc("lookupResult",e.lookupValue)}}function Nb(e,t){if(1&e&&(i.Vb(0,"span",27),i.Qb(1,"rtl-channel-lookup",28),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.oc("lookupResult",e.lookupValue)}}function Gb(e,t){1&e&&(i.Vb(0,"span",27),i.Vb(1,"h3"),i.Kc(2,"Error! Unable to find details!"),i.Ub(),i.Ub())}function qb(e,t){if(1&e&&(i.Vb(0,"div",21),i.Vb(1,"div",22),i.Vb(2,"span",23),i.Kc(3),i.Ub(),i.Ub(),i.Vb(4,"div",24),i.Ic(5,Eb,2,1,"span",25),i.Ic(6,Nb,2,1,"span",25),i.Ic(7,Gb,3,0,"span",26),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(3),i.Mc("",e.lookupFields[e.selectedFieldId].name," Details"),i.Db(1),i.oc("ngSwitch",e.selectedFieldId),i.Db(1),i.oc("ngSwitchCase",0),i.Db(1),i.oc("ngSwitchCase",1)}}const Bb=function(e){return{"mt-2":e}};let Hb=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.actions$=a,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Channel ID"}],this.flgLoading=[!0],this.faSearch=m.F,this.screenSize="",this.screenSizeEnum=p.q,this.unSubs=[new b.a],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions$.pipe(Object(u.a)(this.unSubs[0]),Object(d.a)(e=>e.type===f.Gb||e.type===f.m)).subscribe(e=>{e.type===f.Gb&&(this.flgLoading[0]=!0,this.lookupValue=JSON.parse(JSON.stringify(e.payload)),this.flgSetLookupValue=!0,this.logger.info(this.lookupValue)),e.type===f.m&&"Lookup"===e.payload.action&&(this.flgLoading[0]="error")})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.lookupValue={},this.store.dispatch(new W.F("Searching "+this.lookupFields[this.selectedFieldId].name+"...")),this.selectedFieldId){case 0:this.store.dispatch(new f.gb(this.lookupKey.trim()));break;case 1:this.store.dispatch(new f.h(this.lookupKey.trim()))}}onSelectChange(e){this.resetData(),this.selectedFieldId=e.value}resetData(){this.form.resetForm(),this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.flgLoading.forEach((e,t)=>{this.flgLoading[t]=!0})}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(x.a),i.Pb(y.h),i.Pb(C.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-lookups"]],viewQuery:function(e,t){if(1&e&&i.Ec(Mb,!0),2&e){let e;i.vc(e=i.ec())&&(t.form=e.first)}},decls:23,vars:10,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","35","fxFlex.gt-md","25","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","65","fxFlex.gt-md","75","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],[1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[3,"lookupResult"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Qb(2,"fa-icon",2),i.Vb(3,"span",3),i.Kc(4,"Graph Lookups"),i.Ub(),i.Ub(),i.Vb(5,"div",4),i.Vb(6,"mat-card",5),i.Vb(7,"mat-card-content",6),i.Vb(8,"form",7,8),i.Vb(10,"div",9),i.Vb(11,"mat-radio-group",10),i.dc("ngModelChange",function(e){return t.selectedFieldId=e})("change",function(e){return t.onSelectChange(e)}),i.Ic(12,Qb,2,3,"mat-radio-button",11),i.Ub(),i.Ub(),i.Vb(13,"mat-form-field",12),i.Vb(14,"input",13,14),i.dc("change",function(){return t.clearLookupValue()})("ngModelChange",function(e){return t.lookupKey=e}),i.Ub(),i.Ic(16,zb,2,1,"mat-error",15),i.Ub(),i.Vb(17,"div",16),i.Vb(18,"button",17),i.dc("click",function(){return t.resetData()}),i.Kc(19,"Clear"),i.Ub(),i.Vb(20,"button",18),i.dc("click",function(){return t.onLookup()}),i.Kc(21,"Lookup"),i.Ub(),i.Ub(),i.Ub(),i.Ic(22,qb,8,4,"div",19),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(2),i.oc("icon",t.faSearch),i.Db(9),i.oc("ngModel",t.selectedFieldId),i.Db(1),i.oc("ngForOf",t.lookupFields),i.Db(1),i.oc("ngClass",i.sc(8,Bb,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM)),i.Db(1),i.oc("placeholder",(null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder)||"Lookup Key")("ngModel",t.lookupKey),i.Db(2),i.oc("ngIf",!t.lookupKey),i.Db(6),i.oc("ngIf",t.lookupValue&&t.flgSetLookupValue))},directives:[w.c,w.b,v.a,w.a,U.a,U.b,B.u,B.n,B.o,be.b,B.m,B.p,a.n,O.c,a.m,I.a,ce.b,B.c,B.s,a.o,S.a,be.a,O.b,a.q,a.r,a.s,kb,Kb],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),e})();var jb=n("TN/R");function Wb(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Invalid date format."),i.Ub())}function $b(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Invalid date format."),i.Ub())}function Xb(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",27),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().activeLink=n.link}),i.Kc(1),i.Ub()}if(2&e){const e=t.$implicit,n=i.hc();i.pc("routerLink",e.link),i.oc("active",n.activeLink===e.link),i.Db(1),i.Lc(e.name)}}let Jb=(()=>{class e{constructor(e,t){this.store=e,this.router=t,this.faMapSigns=m.w,this.today=new Date(Date.now()),this.lastMonthDay=new Date(this.today.getFullYear(),this.today.getMonth()-1,this.today.getDate()+1,0,0,0),this.yesterday=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate()-1,0,0,0),this.endDate=this.today,this.startDate=this.lastMonthDay,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new b.a,new b.a,new b.a]}ngOnInit(){this.onEventsFetch();let e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe(Object(u.a)(this.unSubs[0]),Object(d.a)(e=>e instanceof o.f)).subscribe(e=>{let t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link})}onEventsFetch(){this.store.dispatch(new f.Yb({})),this.endDate||(this.endDate=this.today),this.startDate||(this.startDate=new Date(this.endDate.getFullYear(),this.endDate.getMonth()-1,this.endDate.getDate()+1,0,0,0)),this.store.dispatch(new f.W({end_time:Math.round(this.endDate.getTime()/1e3).toString(),start_time:Math.round(this.startDate.getTime()/1e3).toString()}))}resetData(){this.endDate=this.today,this.startDate=this.lastMonthDay}ngOnDestroy(){this.resetData(),this.store.dispatch(new f.Yb({})),this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(y.h),i.Pb(o.g))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-routing"]],decls:35,vars:15,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mb-1",3,"ngSubmit"],["routingForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","placeholder","Start Date","name","startDate","tabindex","1",3,"matDatepicker","max","ngModel","ngModelChange"],["strtDate","ngModel"],["matSuffix","",3,"for"],[3,"startAt"],["startDatepicker",""],[4,"ngIf"],["matInput","","placeholder","End Date","name","endDate","tabindex","2",3,"matDatepicker","min","max","ngModel","ngModelChange"],["enDate","ngModel"],["endDatepicker",""],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){if(1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Qb(2,"fa-icon",2),i.Vb(3,"span",3),i.Kc(4,"Routing"),i.Ub(),i.Ub(),i.Vb(5,"div",4),i.Vb(6,"mat-card",5),i.Vb(7,"mat-card-content",6),i.Vb(8,"form",7,8),i.dc("ngSubmit",function(){return t.onEventsFetch()}),i.Vb(10,"div",9),i.Vb(11,"mat-form-field",10),i.Vb(12,"input",11,12),i.dc("ngModelChange",function(e){return t.startDate=e}),i.Ub(),i.Qb(14,"mat-datepicker-toggle",13),i.Qb(15,"mat-datepicker",14,15),i.Ic(17,Wb,2,0,"mat-error",16),i.Ub(),i.Vb(18,"mat-form-field",10),i.Vb(19,"input",17,18),i.dc("ngModelChange",function(e){return t.endDate=e}),i.Ub(),i.Qb(21,"mat-datepicker-toggle",13),i.Qb(22,"mat-datepicker",14,19),i.Ic(24,$b,2,0,"mat-error",16),i.Ub(),i.Ub(),i.Vb(25,"div",20),i.Vb(26,"button",21),i.dc("click",function(){return t.resetData()}),i.Kc(27,"Clear"),i.Ub(),i.Vb(28,"button",22),i.Kc(29,"Fetch Events"),i.Ub(),i.Ub(),i.Ub(),i.Vb(30,"div",23),i.Vb(31,"nav",24),i.Ic(32,Xb,2,3,"div",25),i.Ub(),i.Ub(),i.Vb(33,"div",26),i.Qb(34,"router-outlet"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e){const e=i.wc(13),n=i.wc(16),a=i.wc(20),o=i.wc(23);i.Db(2),i.oc("icon",t.faMapSigns),i.Db(10),i.oc("matDatepicker",n)("max",t.today)("ngModel",t.startDate),i.Db(2),i.oc("for",n),i.Db(1),i.oc("startAt",t.startDate),i.Db(2),i.oc("ngIf",e.errors),i.Db(2),i.oc("matDatepicker",o)("min",t.startDate)("max",t.today)("ngModel",t.endDate),i.Db(2),i.oc("for",o),i.Db(1),i.oc("startAt",t.endDate),i.Db(2),i.oc("ngIf",a.errors),i.Db(8),i.oc("ngForOf",t.links)}},directives:[w.c,w.b,v.a,w.a,U.a,U.b,B.u,B.n,B.o,O.c,ce.b,jb.b,yo.a,B.c,B.m,B.p,jb.d,O.g,jb.a,a.o,Ot.a,S.a,kt.e,a.n,o.l,O.b,kt.d,o.h],styles:[""]}),e})();function Zb(e,t){if(1&e&&(i.Vb(0,"div",5),i.Kc(1),i.Ub()),2&e){const e=i.hc();i.Db(1),i.Lc(e.errorMessage)}}function Yb(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",6),i.Qb(1,"div",7),i.Vb(2,"mat-form-field",8),i.Vb(3,"input",9),i.dc("ngModelChange",function(t){return i.zc(e),i.hc().filterValue=t})("input",function(){return i.zc(e),i.hc().applyFilter()})("keyup",function(){return i.zc(e),i.hc().applyFilter()}),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.Db(3),i.oc("ngModel",e.filterValue)}}function eu(e,t){1&e&&(i.Vb(0,"th",30),i.Kc(1,"Timestamp"),i.Ub())}function tu(e,t){if(1&e&&(i.Vb(0,"td",31),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(e.timestamp_str)}}function nu(e,t){1&e&&(i.Vb(0,"th",30),i.Kc(1,"Inbound Channel"),i.Ub())}function au(e,t){if(1&e&&(i.Vb(0,"td",31),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(e.alias_in)}}function ou(e,t){1&e&&(i.Vb(0,"th",30),i.Kc(1,"Outbound Channel"),i.Ub())}function iu(e,t){if(1&e&&(i.Vb(0,"td",31),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(e.alias_out)}}function su(e,t){1&e&&(i.Vb(0,"th",32),i.Kc(1,"Inbound Amount (Sats)"),i.Ub())}function cu(e,t){if(1&e&&(i.Vb(0,"td",31),i.Vb(1,"span",33),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.jc(3,1,e.amt_in))}}function lu(e,t){1&e&&(i.Vb(0,"th",32),i.Kc(1,"Outbound Amount (Sats)"),i.Ub())}function ru(e,t){if(1&e&&(i.Vb(0,"td",31),i.Vb(1,"span",33),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.jc(3,1,e.amt_out))}}function bu(e,t){1&e&&(i.Vb(0,"th",32),i.Kc(1,"Fee (mSats)"),i.Ub())}function uu(e,t){if(1&e&&(i.Vb(0,"td",31),i.Vb(1,"span",33),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.jc(3,1,e.fee_msat))}}function du(e,t){if(1&e){const e=i.Wb();i.Vb(0,"th",34),i.Vb(1,"div",35),i.Vb(2,"mat-select",36),i.Qb(3,"mat-select-trigger"),i.Vb(4,"mat-option",37),i.dc("click",function(){return i.zc(e),i.hc(2).onDownloadCSV()}),i.Kc(5,"Download CSV"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}}function hu(e,t){if(1&e){const e=i.Wb();i.Vb(0,"td",38),i.Vb(1,"button",39),i.dc("click",function(n){i.zc(e);const a=t.$implicit;return i.hc(2).onForwardingEventClick(a,n)}),i.Kc(2,"View Info"),i.Ub(),i.Ub()}}function mu(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No forwarding event available."),i.Ub())}function pu(e,t){if(1&e&&(i.Vb(0,"td",40),i.Ic(1,mu,2,0,"p",41),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.oc("ngIf",!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)}}const fu=function(e){return{"display-none":e}};function gu(e,t){if(1&e&&i.Qb(0,"tr",42),2&e){const e=i.hc(2);i.oc("ngClass",i.sc(1,fu,(null==e.forwardingHistoryEvents?null:e.forwardingHistoryEvents.data)&&(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)>0))}}function yu(e,t){1&e&&i.Qb(0,"tr",43)}function Cu(e,t){1&e&&i.Qb(0,"tr",44)}const xu=function(){return["no_event"]};function wu(e,t){if(1&e&&(i.Vb(0,"div",10),i.Vb(1,"table",11,12),i.Tb(3,13),i.Ic(4,eu,2,0,"th",14),i.Ic(5,tu,2,1,"td",15),i.Sb(),i.Tb(6,16),i.Ic(7,nu,2,0,"th",14),i.Ic(8,au,2,1,"td",15),i.Sb(),i.Tb(9,17),i.Ic(10,ou,2,0,"th",14),i.Ic(11,iu,2,1,"td",15),i.Sb(),i.Tb(12,18),i.Ic(13,su,2,0,"th",19),i.Ic(14,cu,4,3,"td",15),i.Sb(),i.Tb(15,20),i.Ic(16,lu,2,0,"th",19),i.Ic(17,ru,4,3,"td",15),i.Sb(),i.Tb(18,21),i.Ic(19,bu,2,0,"th",19),i.Ic(20,uu,4,3,"td",15),i.Sb(),i.Tb(21,22),i.Ic(22,du,6,0,"th",23),i.Ic(23,hu,3,0,"td",24),i.Sb(),i.Tb(24,25),i.Ic(25,pu,2,1,"td",26),i.Sb(),i.Ic(26,gu,1,3,"tr",27),i.Ic(27,yu,1,0,"tr",28),i.Ic(28,Cu,1,0,"tr",29),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("dataSource",e.forwardingHistoryEvents),i.Db(25),i.oc("matFooterRowDef",i.rc(5,xu)),i.Db(1),i.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),i.Db(1),i.oc("matRowDefColumns",e.displayedColumns)}}const vu=function(e){return{"error-border":e}};let Lu=(()=>{class e{constructor(e,t,n){this.logger=e,this.commonService=t,this.store=n,this.eventsData=[],this.filterValue="",this.forwardingHistoryData=[],this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.pageSize=p.n,this.pageSizeOptions=p.o,this.screenSize="",this.screenSizeEnum=p.q,this.unSubs=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.q.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","fee_msat","actions"]):this.screenSize===p.q.SM||this.screenSize===p.q.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amt_in","amt_out","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat","actions"])}ngOnInit(){this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{this.eventsData.length<=0&&(this.errorMessage="",e.effectErrors.forEach(e=>{"GetForwardingHistory"===e.action&&(this.errorMessage="object"==typeof e.message?JSON.stringify(e.message):e.message)}),this.forwardingHistoryData=e.forwardingHistory&&e.forwardingHistory.forwarding_events?e.forwardingHistory.forwarding_events:[],this.loadForwardingEventsTable(this.forwardingHistoryData),this.logger.info(e))})}ngAfterViewInit(){this.forwardingHistoryData.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData)}ngOnChanges(e){e.eventsData&&(this.eventsData=e.eventsData.currentValue,this.forwardingHistoryData=this.eventsData,this.loadForwardingEventsTable(this.forwardingHistoryData)),e.filterValue&&this.applyFilter()}onForwardingEventClick(e,t){this.store.dispatch(new W.C({data:{type:p.b.INFORMATION,alertTitle:"Event Information",message:[[{key:"timestamp_str",value:e.timestamp_str,title:"Timestamp",width:25,type:p.h.DATE_TIME},{key:"amt_in",value:e.amt_in,title:"Inbound Amount (Sats)",width:25,type:p.h.NUMBER},{key:"amt_out",value:e.amt_out,title:"Outbound Amount (Sats)",width:25,type:p.h.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:25,type:p.h.NUMBER}],[{key:"alias_in",value:e.alias_in,title:"Inbound Peer Alias",width:25,type:p.h.STRING},{key:"chan_id_in",value:e.chan_id_in,title:"Inbound Channel ID",width:25,type:p.h.STRING},{key:"alias_out",value:e.alias_out,title:"Outbound Peer Alias",width:25,type:p.h.STRING},{key:"chan_id_out",value:e.chan_id_out,title:"Outbound Channel ID",width:25,type:p.h.STRING}]]}}))}loadForwardingEventsTable(e){this.forwardingHistoryEvents=new Pt.o([...e]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.forwardingHistoryEvents.paginator=this.paginator,this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(x.a),i.Pb(y.h))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-forwarding-history"]],viewQuery:function(e,t){if(1&e&&(i.Pc(Tt.a,!0),i.Pc(At.a,!0)),2&e){let e;i.vc(e=i.ec())&&(t.sort=e.first),i.vc(e=i.ec())&&(t.paginator=e.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[i.Cb([{provide:At.b,useValue:Object(p.y)("Events")}]),i.Bb],decls:5,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass"],["class","p-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","padding-gap-x page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[1,"p-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias_in"],["matColumnDef","alias_out"],["matColumnDef","amt_in"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_out"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Ic(1,Zb,2,1,"div",1),i.Ic(2,Yb,4,1,"div",2),i.Ic(3,wu,29,6,"div",3),i.Qb(4,"mat-paginator",4),i.Ub()),2&e&&(i.oc("ngClass",i.sc(7,vu,""!==t.errorMessage)),i.Db(1),i.oc("ngIf",""!==t.errorMessage),i.Db(1),i.oc("ngIf",""===t.errorMessage),i.Db(1),i.oc("ngIf",""===t.errorMessage),i.Db(1),i.oc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[w.c,w.b,a.m,I.a,a.o,At.a,w.a,O.c,ce.b,B.c,B.m,B.p,M.b,Pt.n,Tt.a,Pt.c,Pt.i,Pt.b,Pt.e,Pt.g,Pt.k,Pt.m,Pt.h,Tt.b,Pt.a,Rt.a,Rt.c,Kt.m,S.a,Pt.d,Pt.f,Pt.j,Pt.l],pipes:[a.f],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e})();const Uu=["tableOut"];function Vu(e,t){if(1&e&&(i.Vb(0,"div",3),i.Kc(1),i.Ub()),2&e){const e=i.hc();i.Db(1),i.Lc(e.errorMessage)}}function Su(e,t){1&e&&(i.Vb(0,"th",34),i.Kc(1,"Channel ID"),i.Ub())}const Du=function(e){return{"max-width":e}};function Iu(e,t){if(1&e&&(i.Vb(0,"td",35),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc(2);i.oc("ngStyle",i.sc(2,Du,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),i.Db(1),i.Lc(e.chan_id)}}function Fu(e,t){1&e&&(i.Vb(0,"th",34),i.Kc(1,"Peer Alias"),i.Ub())}function _u(e,t){if(1&e&&(i.Vb(0,"td",35),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc(2);i.oc("ngStyle",i.sc(2,Du,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),i.Db(1),i.Lc(e.alias)}}function ku(e,t){1&e&&(i.Vb(0,"th",36),i.Kc(1,"Events"),i.Ub())}function Au(e,t){if(1&e&&(i.Vb(0,"td",37),i.Vb(1,"span",38),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.jc(3,1,e.events))}}function Tu(e,t){1&e&&(i.Vb(0,"th",36),i.Kc(1,"Total Amount (Sats)"),i.Ub())}function Pu(e,t){if(1&e&&(i.Vb(0,"td",37),i.Vb(1,"span",38),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.jc(3,1,e.total_amount))}}function Ou(e,t){1&e&&(i.Vb(0,"th",39),i.Vb(1,"span",38),i.Kc(2,"Actions"),i.Ub(),i.Ub())}function Ru(e,t){if(1&e){const e=i.Wb();i.Vb(0,"td",40),i.Vb(1,"button",41),i.dc("click",function(n){i.zc(e);const a=t.$implicit;return i.hc(2).onRoutingPeerClick(a,n,"in")}),i.Kc(2,"View Info"),i.Ub(),i.Ub()}}function Ku(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No incoming routing peer available."),i.Ub())}function Mu(e,t){if(1&e&&(i.Vb(0,"td",42),i.Ic(1,Ku,2,0,"p",43),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.oc("ngIf",!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)}}const Qu=function(e){return{"display-none":e}};function zu(e,t){if(1&e&&i.Qb(0,"tr",44),2&e){const e=i.hc(2);i.oc("ngClass",i.sc(1,Qu,(null==e.RoutingPeersIncoming?null:e.RoutingPeersIncoming.data)&&(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)>0))}}function Eu(e,t){1&e&&i.Qb(0,"tr",45)}function Nu(e,t){1&e&&i.Qb(0,"tr",46)}function Gu(e,t){1&e&&(i.Vb(0,"th",34),i.Kc(1,"Channel ID"),i.Ub())}function qu(e,t){if(1&e&&(i.Vb(0,"td",35),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc(2);i.oc("ngStyle",i.sc(2,Du,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),i.Db(1),i.Lc(e.chan_id)}}function Bu(e,t){1&e&&(i.Vb(0,"th",34),i.Kc(1,"Peer Alias"),i.Ub())}function Hu(e,t){if(1&e&&(i.Vb(0,"td",35),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc(2);i.oc("ngStyle",i.sc(2,Du,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),i.Db(1),i.Lc(e.alias)}}function ju(e,t){1&e&&(i.Vb(0,"th",36),i.Kc(1,"Events"),i.Ub())}function Wu(e,t){if(1&e&&(i.Vb(0,"td",37),i.Vb(1,"span",38),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.jc(3,1,e.events))}}function $u(e,t){1&e&&(i.Vb(0,"th",36),i.Kc(1,"Total Amount (Sats)"),i.Ub())}function Xu(e,t){if(1&e&&(i.Vb(0,"td",37),i.Vb(1,"span",38),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.jc(3,1,e.total_amount))}}function Ju(e,t){1&e&&(i.Vb(0,"th",39),i.Vb(1,"span",38),i.Kc(2,"Actions"),i.Ub(),i.Ub())}function Zu(e,t){if(1&e){const e=i.Wb();i.Vb(0,"td",47),i.Vb(1,"button",48),i.dc("click",function(n){i.zc(e);const a=t.$implicit;return i.hc(2).onRoutingPeerClick(a,n,"out")}),i.Kc(2,"View Info"),i.Ub(),i.Ub()}}function Yu(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No outgoing routing peer available."),i.Ub())}function ed(e,t){if(1&e&&(i.Vb(0,"td",42),i.Ic(1,Yu,2,0,"p",43),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.oc("ngIf",!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)}}function td(e,t){if(1&e&&i.Qb(0,"tr",44),2&e){const e=i.hc(2);i.oc("ngClass",i.sc(1,Qu,(null==e.RoutingPeersOutgoing?null:e.RoutingPeersOutgoing.data)&&(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)>0))}}function nd(e,t){1&e&&i.Qb(0,"tr",45)}function ad(e,t){1&e&&i.Qb(0,"tr",46)}const od=function(e,t){return{"mt-2":e,"mt-1":t}},id=function(){return["no_incoming_event"]},sd=function(e){return{"mt-2":e}},cd=function(){return["no_outgoing_event"]};function ld(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",4),i.Vb(1,"div",5),i.Vb(2,"div",6),i.Vb(3,"div",7),i.Kc(4,"Incoming"),i.Ub(),i.Vb(5,"mat-form-field",8),i.Vb(6,"input",9),i.dc("keyup",function(t){return i.zc(e),i.hc().applyIncomingFilter(t.target)}),i.Ub(),i.Ub(),i.Ub(),i.Vb(7,"div",10),i.Vb(8,"table",11,12),i.Tb(10,13),i.Ic(11,Su,2,0,"th",14),i.Ic(12,Iu,2,4,"td",15),i.Sb(),i.Tb(13,16),i.Ic(14,Fu,2,0,"th",14),i.Ic(15,_u,2,4,"td",15),i.Sb(),i.Tb(16,17),i.Ic(17,ku,2,0,"th",18),i.Ic(18,Au,4,3,"td",19),i.Sb(),i.Tb(19,20),i.Ic(20,Tu,2,0,"th",18),i.Ic(21,Pu,4,3,"td",19),i.Sb(),i.Tb(22,21),i.Ic(23,Ou,3,0,"th",22),i.Ic(24,Ru,3,0,"td",23),i.Sb(),i.Tb(25,24),i.Ic(26,Mu,2,1,"td",25),i.Sb(),i.Ic(27,zu,1,3,"tr",26),i.Ic(28,Eu,1,0,"tr",27),i.Ic(29,Nu,1,0,"tr",28),i.Ub(),i.Ub(),i.Ub(),i.Vb(30,"div",5),i.Vb(31,"div",6),i.Vb(32,"div",7),i.Kc(33,"Outgoing"),i.Ub(),i.Vb(34,"mat-form-field",8),i.Vb(35,"input",9),i.dc("keyup",function(t){return i.zc(e),i.hc().applyOutgoingFilter(t.target)}),i.Ub(),i.Ub(),i.Ub(),i.Vb(36,"div",29),i.Vb(37,"table",30,31),i.Tb(39,13),i.Ic(40,Gu,2,0,"th",14),i.Ic(41,qu,2,4,"td",15),i.Sb(),i.Tb(42,16),i.Ic(43,Bu,2,0,"th",14),i.Ic(44,Hu,2,4,"td",15),i.Sb(),i.Tb(45,17),i.Ic(46,ju,2,0,"th",18),i.Ic(47,Wu,4,3,"td",19),i.Sb(),i.Tb(48,20),i.Ic(49,$u,2,0,"th",18),i.Ic(50,Xu,4,3,"td",19),i.Sb(),i.Tb(51,21),i.Ic(52,Ju,3,0,"th",22),i.Ic(53,Zu,3,0,"td",32),i.Sb(),i.Tb(54,33),i.Ic(55,ed,2,1,"td",25),i.Sb(),i.Ic(56,td,1,3,"tr",26),i.Ic(57,nd,1,0,"tr",27),i.Ic(58,ad,1,0,"tr",28),i.Ub(),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.Db(2),i.oc("ngClass",i.tc(12,od,e.screenSize===e.screenSizeEnum.XS,e.screenSize===e.screenSizeEnum.SM)),i.Db(6),i.oc("dataSource",e.RoutingPeersIncoming),i.Db(19),i.oc("matFooterRowDef",i.rc(15,id)),i.Db(1),i.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),i.Db(1),i.oc("matRowDefColumns",e.displayedColumns),i.Db(2),i.oc("ngClass",i.sc(16,sd,e.screenSize!==e.screenSizeEnum.LG)),i.Db(6),i.oc("dataSource",e.RoutingPeersOutgoing),i.Db(19),i.oc("matFooterRowDef",i.rc(18,cd)),i.Db(1),i.oc("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),i.Db(1),i.oc("matRowDefColumns",e.displayedColumns)}}const rd=function(e){return{"error-border":e}};let bd=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.actions$=a,this.routingPeersData=[],this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=p.q,this.unSubs=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.q.XS?(this.flgSticky=!1,this.displayedColumns=["chan_id","events","actions"]):this.screenSize===p.q.SM||this.screenSize===p.q.MD?(this.flgSticky=!1,this.displayedColumns=["chan_id","alias","events","total_amount"]):(this.flgSticky=!0,this.displayedColumns=["chan_id","alias","events","total_amount"])}ngOnInit(){this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",e.effectErrors.forEach(e=>{"GetForwardingHistory"===e.action&&(this.errorMessage="object"==typeof e.message?JSON.stringify(e.message):e.message)}),this.routingPeersData=e.forwardingHistory&&e.forwardingHistory.forwarding_events?e.forwardingHistory.forwarding_events:[],this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(e)})}onRoutingPeerClick(e,t,n){let a=" Routing Information";a="in"===n?"Incoming"+a:"Outgoing"+a,this.store.dispatch(new W.C({data:{type:p.b.INFORMATION,alertTitle:a,message:[[{key:"chan_id",value:e.chan_id,title:"Channel ID",width:50,type:p.h.STRING},{key:"alias",value:e.alias,title:"Peer Alias",width:50,type:p.h.STRING}],[{key:"events",value:e.events,title:"Events",width:50,type:p.h.NUMBER},{key:"total_amount",value:e.total_amount,title:"Total Amount (Sats)",width:50,type:p.h.NUMBER}]]}}))}loadRoutingPeersTable(e){if(e.length>0){const t=this.groupRoutingPeers(e);this.RoutingPeersIncoming=new Pt.o(t[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new Pt.o(t[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new Pt.o([]),this.RoutingPeersOutgoing=new Pt.o([])}groupRoutingPeers(e){const t=[],n=[];return e.forEach(e=>{const a=t.find(t=>t.chan_id===e.chan_id_in),o=n.find(t=>t.chan_id===e.chan_id_out);a?(a.events++,a.total_amount=+a.total_amount+ +e.amt_in):t.push({chan_id:e.chan_id_in,alias:e.alias_in,events:1,total_amount:+e.amt_in}),o?(o.events++,o.total_amount=+o.total_amount+ +e.amt_out):n.push({chan_id:e.chan_id_out,alias:e.alias_out,events:1,total_amount:+e.amt_out})}),[this.commonService.sortDescByKey(t,"total_amount"),this.commonService.sortDescByKey(n,"total_amount")]}applyIncomingFilter(e){this.RoutingPeersIncoming.filter=e.value}applyOutgoingFilter(e){this.RoutingPeersOutgoing.filter=e.value}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(x.a),i.Pb(y.h),i.Pb(C.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-routing-peers"]],viewQuery:function(e,t){if(1&e&&(i.Pc(Tt.a,!0),i.Pc(Uu,!0,Tt.a)),2&e){let e;i.vc(e=i.ec())&&(t.sortIn=e.first),i.vc(e=i.ec())&&(t.sortOut=e.first)}},decls:3,vars:5,consts:[["fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass"],["class","p-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch","class","padding-gap-x page-sub-title-container",4,"ngIf"],[1,"p-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x","page-sub-title-container"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mat-table","","matSort","","fxFlex","100",1,"overflow-auto","incoming-table",3,"dataSource"],["tableIn",""],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_amount"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mat-table","","matSort","","fxFlex","100",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","no_outgoing_event"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],["mat-cell","","fxLayoutAlign","end center",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],["mat-cell","",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","5",3,"click"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Ic(1,Vu,2,1,"div",1),i.Ic(2,ld,59,19,"div",2),i.Ub()),2&e&&(i.oc("ngClass",i.sc(3,rd,""!==t.errorMessage)),i.Db(1),i.oc("ngIf",""!==t.errorMessage),i.Db(1),i.oc("ngIf",""===t.errorMessage))},directives:[w.c,w.b,a.m,I.a,a.o,w.a,O.c,ce.b,M.b,Pt.n,Tt.a,Pt.c,Pt.i,Pt.b,Pt.e,Pt.g,Pt.k,Pt.m,Pt.h,Tt.b,Pt.a,a.p,I.b,S.a,Pt.d,Pt.f,Pt.j,Pt.l],pipes:[a.f],styles:[".mat-column-alias[_ngcontent-%COMP%], .mat-column-chan_id[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();function ud(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",7),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().activeLink=n.link}),i.Kc(1),i.Ub()}if(2&e){const e=t.$implicit,n=i.hc();i.pc("routerLink",e.link),i.oc("active",n.activeLink===e.link),i.Db(1),i.Lc(e.name)}}let dd=(()=>{class e{constructor(e){this.router=e,this.faChartBar=m.f,this.links=[{link:"routingfees",name:"Routing Fees"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){let e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe(Object(u.a)(this.unSubs[0]),Object(d.a)(e=>e instanceof o.f)).subscribe(e=>{let t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(o.g))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-reports"]],decls:10,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Qb(1,"fa-icon",1),i.Vb(2,"span",2),i.Kc(3,"Reports"),i.Ub(),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"mat-card"),i.Vb(6,"mat-card-content",4),i.Vb(7,"nav",5),i.Ic(8,ud,2,3,"div",6),i.Ub(),i.Qb(9,"router-outlet"),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(1),i.oc("icon",t.faChartBar),i.Db(7),i.oc("ngForOf",t.links))},directives:[w.c,w.b,v.a,U.a,U.b,kt.e,a.n,o.l,kt.d,o.h],styles:[""]}),e})();var hd=n("LQLF"),md=n("Lnru");function pd(e,t){if(1&e&&(i.Vb(0,"div",8),i.Kc(1),i.ic(2,"number"),i.ic(3,"number"),i.Ub()),2&e){const e=i.hc();i.oc("@fadeIn",e.events.total_fee_msat),i.Db(1),i.Nc("",i.kc(2,3,e.events.total_fee_msat/1e3||0,"1.0-0")," Sats/",i.jc(3,6,(null==e.events||null==e.events.forwarding_events?null:e.events.forwarding_events.length)||0)," Events")}}function fd(e,t){1&e&&(i.Vb(0,"div",9),i.Kc(1,"No fee report for the selected period"),i.Ub())}function gd(e,t){if(1&e&&(i.Vb(0,"span"),i.Vb(1,"span",12),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Vb(4,"span",12),i.Kc(5),i.ic(6,"number"),i.Ub(),i.Ub()),2&e){const e=t.model;i.Db(2),i.Mc("Events: ",i.jc(3,2,e.extra.totalEvents||0),""),i.Db(3),i.Mc("Fee: ",i.kc(6,4,e.value||0,"1.0-0"),"")}}function yd(e,t){if(1&e){const e=i.Wb();i.Vb(0,"ngx-charts-bar-vertical",10),i.dc("select",function(t){return i.zc(e),i.hc().onChartBarSelected(t)})("mouseup",function(t){return i.zc(e),i.hc().onChartMouseUp(t)}),i.Ic(1,gd,7,7,"ng-template",null,11,i.Jc),i.Ub()}if(2&e){const e=i.hc();i.oc("view",e.view)("results",e.feeReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function Cd(e,t){if(1&e&&i.Qb(0,"rtl-forwarding-history",13),2&e){const e=i.hc();i.oc("eventsData",null==e.events?null:e.events.forwarding_events)("filterValue",e.eventFilterValue)}}let xd=(()=>{class e{constructor(e,t,n){this.dataService=e,this.commonService=t,this.store=n,this.reportPeriod=p.p[0],this.secondsInADay=86400,this.events={},this.eventFilterValue="",this.today=new Date(Date.now()),this.timezoneOffset=60*this.today.getTimezoneOffset(),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.feeReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=p.q,this.unSubs=[new b.a,new b.a]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===p.q.XS||this.screenSize===p.q.SM),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{"COMPLETE"===e.initialAPIResponseStatus[0]&&this.fetchEvents(this.startDate,this.endDate)})}ngAfterViewInit(){const e=this.commonService.getContainerSize();switch(this.screenSize){case p.q.MD:this.screenPaddingX=e.width/10;break;case p.q.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2]}fetchEvents(e,t){const n=(Math.round(e.getTime()/1e3)-this.timezoneOffset).toString(),a=(Math.round(t.getTime()/1e3)-this.timezoneOffset).toString();this.dataService.getForwardingHistory(n,a).pipe(Object(u.a)(this.unSubs[1])).subscribe(t=>{t.forwarding_events&&t.forwarding_events.length?(t.forwarding_events=t.forwarding_events.reverse(),this.events=t,this.feeReportData=this.prepareFeeReport(e)):(this.events={},this.feeReportData=[])})}onChartMouseUp(e){"svg"===e.srcElement.tagName&&e.srcElement.classList.length>0&&"ngx-charts"===e.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(e){this.eventFilterValue=this.reportPeriod===p.p[1]?e.name.toUpperCase()+"/"+this.startDate.getFullYear():e.name.toString().padStart(2,"0")+"/"+p.l[this.startDate.getMonth()].name.toUpperCase()+"/"+this.startDate.getFullYear()}prepareFeeReport(e){const t=Math.round(e.getTime()/1e3)-this.timezoneOffset;let n=[];if(this.reportPeriod===p.p[1]){for(let e=0;e<12;e++)n.push({name:p.l[e].name,value:1e-9,extra:{totalEvents:0}});this.events.forwarding_events.map(e=>{let t=new Date(1e3*(+e.timestamp+this.timezoneOffset)).getMonth();n[t].value=n[t].value+ +e.fee_msat/1e3,n[t].extra.totalEvents=n[t].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +e.fee_msat})}else{for(let t=0;t{let a=Math.floor((+e.timestamp-t)/this.secondsInADay);n[a].value=n[a].value+ +e.fee_msat/1e3,n[a].extra.totalEvents=n[a].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +e.fee_msat})}return n}onSelectionChange(e){const t=e.selDate.getMonth(),n=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===p.p[1]?(this.startDate=new Date(n,0,1,0,0,0),this.endDate=new Date(n,11,31,23,59,59)):(this.startDate=new Date(n,t,1,0,0,0),this.endDate=new Date(n,t,this.getMonthDays(t,n),23,59,59)),this.fetchEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(e,t){return 1===e&&t%4==0?p.l[e].days+1:p.l[e].days}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(Ln.a),i.Pb(x.a),i.Pb(y.h))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-fee-report"]],hostBindings:function(e,t){1&e&&i.dc("mouseup",function(e){return t.onChartMouseUp(e)})},decls:9,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],[3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],[3,"eventsData","filterValue",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"rtl-horizontal-scroller",1),i.dc("stepChanged",function(e){return t.onSelectionChange(e)}),i.Ub(),i.Vb(2,"div",2),i.Ic(3,pd,4,8,"div",3),i.Ic(4,fd,2,0,"div",4),i.Vb(5,"div",5),i.Ic(6,yd,3,11,"ngx-charts-bar-vertical",6),i.Ub(),i.Vb(7,"div",5),i.Ic(8,Cd,1,2,"rtl-forwarding-history",7),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(3),i.oc("ngIf",t.feeReportData.length>0&&t.events.forwarding_events),i.Db(1),i.oc("ngIf",t.feeReportData.length<=0||!t.events.forwarding_events),i.Db(2),i.oc("ngIf",t.feeReportData.length>0&&t.events.forwarding_events),i.Db(2),i.oc("ngIf",t.events&&(null==t.events?null:t.events.forwarding_events)))},directives:[w.c,w.b,w.a,hd.a,a.o,md.b,Lu],pipes:[a.f],styles:[""],data:{animation:[j.a]}}),e})();var wd=n("d4ms");function vd(e,t){if(1&e&&(i.Vb(0,"div",10),i.Kc(1),i.ic(2,"number"),i.ic(3,"number"),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.Nc(" Paid ",i.kc(2,2,e.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-0")," Sats/",i.jc(3,5,e.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function Ld(e,t){if(1&e&&(i.Vb(0,"div",10),i.Kc(1),i.ic(2,"number"),i.ic(3,"number"),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.Nc(" Received ",i.kc(2,2,e.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-0")," Sats/",i.jc(3,5,e.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function Ud(e,t){if(1&e&&(i.Vb(0,"div",8),i.Ic(1,vd,4,7,"div",9),i.Ic(2,Ld,4,7,"div",9),i.Ub()),2&e){const e=i.hc();i.oc("@fadeIn",e.transactionsReportSummary),i.Db(1),i.oc("ngIf",e.transactionsReportSummary.paymentsSelectedPeriod>0),i.Db(1),i.oc("ngIf",e.transactionsReportSummary.invoicesSelectedPeriod)}}function Vd(e,t){1&e&&(i.Vb(0,"div",11),i.Kc(1,"No transactions report for the selected period"),i.Ub())}function Sd(e,t){if(1&e&&(i.Vb(0,"span",14),i.Kc(1),i.ic(2,"number"),i.ic(3,"number"),i.Ub()),2&e){const e=t.model;i.Db(1),i.Oc("",e.name,": ",i.kc(2,4,e.value||0,"1.0-0"),"/# ","Paid"===e.name?"Payments":"Invoices",": ",i.jc(3,7,(null==e.extra?null:e.extra.total)||0),"")}}function Dd(e,t){if(1&e){const e=i.Wb();i.Vb(0,"ngx-charts-bar-vertical-2d",12),i.dc("select",function(t){return i.zc(e),i.hc().onChartBarSelected(t)})("mouseup",function(t){return i.zc(e),i.hc().onChartMouseUp(t)}),i.Ic(1,Sd,4,9,"ng-template",null,13,i.Jc),i.Ub()}if(2&e){const e=i.hc();i.oc("view",e.view)("results",e.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",e.reportPeriod===e.scrollRanges[0]?2:8)}}function Id(e,t){if(1&e&&i.Qb(0,"rtl-transactions-report-table",15),2&e){const e=i.hc();i.oc("dataList",e.transactionsNonZeroReportData)("dataRange",e.reportPeriod)("filterValue",e.transactionFilterValue)}}let Fd=(()=>{class e{constructor(e,t,n){this.dataService=e,this.commonService=t,this.store=n,this.scrollRanges=p.p,this.reportPeriod=p.p[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.timezoneOffset=60*this.today.getTimezoneOffset(),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[],this.transactionsNonZeroReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=p.q,this.unSubs=[new b.a,new b.a]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===p.q.XS||this.screenSize===p.q.SM),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{"COMPLETE"===e.initialAPIResponseStatus[0]&&this.dataService.getTransactionsForReport().pipe(Object(u.a)(this.unSubs[1])).subscribe(e=>{this.payments=e.payments,this.invoices=e.invoices,this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()})})}ngAfterViewInit(){const e=this.commonService.getContainerSize();switch(this.screenSize){case p.q.MD:this.screenPaddingX=e.width/10;break;case p.q.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2]}onChartMouseUp(e){"svg"===e.srcElement.tagName&&e.srcElement.classList.length>0&&"ngx-charts"===e.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(e){this.transactionFilterValue=this.reportPeriod===p.p[1]?e.series.toUpperCase()+"/"+this.startDate.getFullYear():e.series.toString().padStart(2,"0")+"/"+p.l[this.startDate.getMonth()].name.toUpperCase()+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(e,t){const n=Math.round(e.getTime()/1e3)-this.timezoneOffset,a=Math.round(t.getTime()/1e3)-this.timezoneOffset;let o=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};let i=this.payments.filter(e=>"SUCCEEDED"===e.status&&e.creation_date>=n&&e.creation_datee.settled&&+e.creation_date>=n&&+e.creation_date{let t=new Date(1e3*(+e.creation_date+this.timezoneOffset)).getMonth();this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +e.value_msat+ +e.fee_msat,o[t].series[0].value=o[t].series[0].value+(+e.value_msat+ +e.fee_msat)/1e3,o[t].series[0].extra.total=o[t].series[0].extra.total+1}),s.map(e=>{let t=new Date(1e3*(+e.creation_date+this.timezoneOffset)).getMonth();this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +e.amt_paid_msat,o[t].series[1].value=o[t].series[1].value+ +e.amt_paid_msat/1e3,o[t].series[1].extra.total=o[t].series[1].extra.total+1})}else{for(let t=0;t{let t=Math.floor((+e.creation_date-n)/this.secondsInADay);this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +e.value_msat+ +e.fee_msat,o[t].series[0].value=o[t].series[0].value+(+e.value_msat+ +e.fee_msat)/1e3,o[t].series[0].extra.total=o[t].series[0].extra.total+1}),s.map(e=>{let t=Math.floor((+e.creation_date-n)/this.secondsInADay);this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +e.amt_paid_msat,o[t].series[1].value=o[t].series[1].value+ +e.amt_paid_msat/1e3,o[t].series[1].extra.total=o[t].series[1].extra.total+1})}return o}prepareTableData(){return this.transactionsReportData.reduce((e,t)=>t.series[0].value>0||t.series[1].value>0?e.concat({date:t.date,date_str:this.commonService.convertTimestampToDate(t.date.getTime()/1e3-this.timezoneOffset),amount_paid:t.series[0].value,num_payments:t.series[0].extra.total,amount_received:t.series[1].value,num_invoices:t.series[1].extra.total}):e,[])}onSelectionChange(e){const t=e.selDate.getMonth(),n=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===p.p[1]?(this.startDate=new Date(n,0,1,0,0,0),this.endDate=new Date(n,11,31,23,59,59)):(this.startDate=new Date(n,t,1,0,0,0),this.endDate=new Date(n,t,this.getMonthDays(t,n),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(e,t){return 1===e&&t%4==0?p.l[e].days+1:p.l[e].days}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(Ln.a),i.Pb(x.a),i.Pb(y.h))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-transactions-report"]],hostBindings:function(e,t){1&e&&i.dc("mouseup",function(e){return t.onChartMouseUp(e)})},decls:9,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],[3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[3,"dataList","dataRange","filterValue",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"rtl-horizontal-scroller",1),i.dc("stepChanged",function(e){return t.onSelectionChange(e)}),i.Ub(),i.Vb(2,"div",2),i.Ic(3,Ud,3,3,"div",3),i.Ic(4,Vd,2,0,"div",4),i.Vb(5,"div",5),i.Ic(6,Dd,3,13,"ngx-charts-bar-vertical-2d",6),i.Ub(),i.Vb(7,"div",5),i.Ic(8,Id,1,3,"rtl-transactions-report-table",7),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(3),i.oc("ngIf",t.transactionsNonZeroReportData.length>0),i.Db(1),i.oc("ngIf",t.transactionsNonZeroReportData.length<=0),i.Db(2),i.oc("ngIf",t.transactionsNonZeroReportData.length>0),i.Db(2),i.oc("ngIf",t.transactionsNonZeroReportData.length>0))},directives:[w.c,w.b,w.a,hd.a,a.o,md.a,wd.a],pipes:[a.f],styles:[""],data:{animation:[j.a]}}),e})();function _d(e,t){1&e&&i.Qb(0,"mat-progress-bar",25)}function kd(e,t){1&e&&(i.Vb(0,"th",26),i.Kc(1," Transaction ID "),i.Ub())}function Ad(e,t){if(1&e&&(i.Vb(0,"td",27),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(e.outpoint.txid_str)}}function Td(e,t){1&e&&(i.Vb(0,"th",28),i.Kc(1," Output "),i.Ub())}function Pd(e,t){if(1&e&&(i.Vb(0,"td",27),i.Vb(1,"span",29),i.Kc(2),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(e.outpoint.output_index)}}function Od(e,t){1&e&&(i.Vb(0,"th",28),i.Kc(1," Amount (Sats) "),i.Ub())}function Rd(e,t){if(1&e&&(i.Vb(0,"td",27),i.Vb(1,"span",29),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.jc(3,1,e.amount_sat||0))}}function Kd(e,t){1&e&&(i.Vb(0,"th",28),i.Kc(1," Confirmations "),i.Ub())}function Md(e,t){if(1&e&&(i.Vb(0,"td",27),i.Vb(1,"span",29),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.jc(3,1,e.confirmations||0))}}function Qd(e,t){if(1&e){const e=i.Wb();i.Vb(0,"th",30),i.Vb(1,"div",31),i.Vb(2,"mat-select",32),i.Qb(3,"mat-select-trigger"),i.Vb(4,"mat-option",33),i.dc("click",function(){return i.zc(e),i.hc().onDownloadCSV()}),i.Kc(5,"Download CSV"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}}function zd(e,t){if(1&e){const e=i.Wb();i.Vb(0,"td",34),i.Vb(1,"button",35),i.dc("click",function(n){i.zc(e);const a=t.$implicit;return i.hc().onUTXOClick(a,n)}),i.Kc(2,"View Info"),i.Ub(),i.Ub()}}function Ed(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No UTXOs available."),i.Ub())}function Nd(e,t){if(1&e&&(i.Vb(0,"td",36),i.Ic(1,Ed,2,0,"p",37),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("ngIf",!(null!=e.listUTXOs&&e.listUTXOs.data)||(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)<1)}}const Gd=function(e){return{"display-none":e}};function qd(e,t){if(1&e&&i.Qb(0,"tr",38),2&e){const e=i.hc();i.oc("ngClass",i.sc(1,Gd,(null==e.listUTXOs?null:e.listUTXOs.data)&&(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)>0))}}function Bd(e,t){1&e&&i.Qb(0,"tr",39)}function Hd(e,t){1&e&&i.Qb(0,"tr",40)}const jd=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Wd=function(){return["no_utxo"]};let $d=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.actions$=a,this.addressType=p.x,this.faMoneyBillWave=m.x,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=p.n,this.pageSizeOptions=p.o,this.screenSize="",this.screenSizeEnum=p.q,this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.q.XS?(this.flgSticky=!1,this.displayedColumns=["amount_sat","confirmations","actions"]):this.screenSize===p.q.SM?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","amount_sat","actions"]):this.screenSize===p.q.MD?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","amount_sat","confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["tx_id","output","amount_sat","confirmations","actions"])}ngOnChanges(){this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos)}applyFilter(e){this.listUTXOs.filter=e.value}onUTXOClick(e,t){this.store.dispatch(new W.C({data:{type:p.b.INFORMATION,alertTitle:"UTXO Information",message:[[{key:"txid",value:e.outpoint.txid_str,title:"Transaction ID",width:100,type:p.h.STRING}],[{key:"output_index",value:e.outpoint.output_index,title:"Output Index",width:34,type:p.h.NUMBER},{key:"amount_sat",value:e.amount_sat,title:"Amount (Sats)",width:33,type:p.h.NUMBER},{key:"confirmations",value:e.confirmations,title:"Confirmations",width:33,type:p.h.NUMBER}],[{key:"address_type",value:this.addressType[e.address_type].name,title:"Address Type",width:34},{key:"address",value:e.address,title:"Address",width:66}],[{key:"pk_script",value:e.pk_script,title:"PK Script",width:100,type:p.h.STRING}]]}}))}loadUTXOsTable(e){this.listUTXOs=new Pt.o([...e]),this.listUTXOs.filterPredicate=(e,t)=>((e.outpoint.txid_str?e.outpoint.txid_str:"")+(e.outpoint.output_index?e.outpoint.output_index:"")+(e.outpoint.txid_bytes?e.outpoint.txid_bytes:"")+(e.address?e.address:"")+(e.address_type?e.address_type:"")+(e.amount_sat?e.amount_sat:"")+(e.confirmations?e.confirmations:"")+(e.pk_script?e.pk_script:"")).includes(t.toLowerCase()),this.listUTXOs.sortingDataAccessor=(e,t)=>{switch(t){case"tx_id":return e.outpoint.txid_str.toLocaleLowerCase();case"output":return+e.outpoint.output_index;default:return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null}},this.listUTXOs.sort=this.sort,this.listUTXOs.paginator=this.paginator,this.logger.info(this.listUTXOs)}onDownloadCSV(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(x.a),i.Pb(y.h),i.Pb(C.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-on-chain-utxos"]],viewQuery:function(e,t){if(1&e&&(i.Pc(Tt.a,!0),i.Pc(At.a,!0)),2&e){let e;i.vc(e=i.ec())&&(t.sort=e.first),i.vc(e=i.ec())&&(t.paginator=e.first)}},inputs:{utxos:"utxos",errorLoading:"errorLoading"},features:[i.Cb([{provide:At.b,useValue:Object(p.y)("UTXOs")}]),i.Bb],decls:30,vars:13,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","tx_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amount_sat"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_utxo"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"mat-form-field",2),i.Vb(3,"input",3),i.dc("keyup",function(e){return t.applyFilter(e.target)}),i.Ub(),i.Ub(),i.Ub(),i.Vb(4,"div",4),i.Vb(5,"div",5),i.Ic(6,_d,1,0,"mat-progress-bar",6),i.Vb(7,"table",7,8),i.Tb(9,9),i.Ic(10,kd,2,0,"th",10),i.Ic(11,Ad,2,1,"td",11),i.Sb(),i.Tb(12,12),i.Ic(13,Td,2,0,"th",13),i.Ic(14,Pd,3,1,"td",11),i.Sb(),i.Tb(15,14),i.Ic(16,Od,2,0,"th",13),i.Ic(17,Rd,4,3,"td",11),i.Sb(),i.Tb(18,15),i.Ic(19,Kd,2,0,"th",13),i.Ic(20,Md,4,3,"td",11),i.Sb(),i.Tb(21,16),i.Ic(22,Qd,6,0,"th",17),i.Ic(23,zd,3,0,"td",18),i.Sb(),i.Tb(24,19),i.Ic(25,Nd,2,1,"td",20),i.Sb(),i.Ic(26,qd,1,3,"tr",21),i.Ic(27,Bd,1,0,"tr",22),i.Ic(28,Hd,1,0,"tr",23),i.Ub(),i.Qb(29,"mat-paginator",24),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(6),i.oc("ngIf",!0===t.errorLoading),i.Db(1),i.oc("dataSource",t.listUTXOs)("ngClass",i.sc(10,jd,"error"===t.errorLoading)),i.Db(19),i.oc("matFooterRowDef",i.rc(12,Wd)),i.Db(1),i.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.oc("matRowDefColumns",t.displayedColumns),i.Db(1),i.oc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[w.c,w.a,w.b,O.c,ce.b,M.b,a.o,Pt.n,Tt.a,a.m,I.a,Pt.c,Pt.i,Pt.b,Pt.e,Pt.g,Pt.k,Pt.m,At.a,s.a,Pt.h,Tt.b,Pt.a,Rt.a,Rt.c,Kt.m,S.a,Pt.d,Pt.f,Pt.j,Pt.l],pipes:[a.f],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e})();function Xd(e,t){1&e&&i.Qb(0,"mat-progress-bar",26)}function Jd(e,t){1&e&&(i.Vb(0,"th",27),i.Kc(1," Date/Time "),i.Ub())}function Zd(e,t){if(1&e&&(i.Vb(0,"td",28),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(e.time_stamp_str)}}function Yd(e,t){1&e&&(i.Vb(0,"th",29),i.Kc(1," Amount (Sats) "),i.Ub())}function eh(e,t){if(1&e&&(i.Vb(0,"span",32),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=i.hc().$implicit;i.Db(1),i.Lc(i.jc(2,1,e.amount))}}function th(e,t){if(1&e&&(i.Vb(0,"span",33),i.Kc(1),i.ic(2,"number"),i.Ub()),2&e){const e=i.hc().$implicit;i.Db(1),i.Mc("(",i.jc(2,1,-1*e.amount),")")}}function nh(e,t){if(1&e&&(i.Vb(0,"td",28),i.Ic(1,eh,3,3,"span",30),i.Ic(2,th,3,3,"span",31),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.oc("ngIf",e.amount>0||0===e.amount),i.Db(1),i.oc("ngIf",e.amount<0)}}function ah(e,t){1&e&&(i.Vb(0,"th",29),i.Kc(1," Fees (Sats) "),i.Ub())}function oh(e,t){if(1&e&&(i.Vb(0,"td",28),i.Vb(1,"span",32),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.jc(3,1,e.total_fees))}}function ih(e,t){1&e&&(i.Vb(0,"th",29),i.Kc(1," Block Height "),i.Ub())}function sh(e,t){if(1&e&&(i.Vb(0,"td",28),i.Vb(1,"span",32),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.jc(3,1,e.block_height))}}function ch(e,t){1&e&&(i.Vb(0,"th",29),i.Kc(1," Confirmations "),i.Ub())}function lh(e,t){if(1&e&&(i.Vb(0,"td",28),i.Vb(1,"span",32),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc(" ",i.jc(3,1,null==e?null:e.num_confirmations)," ")}}function rh(e,t){if(1&e){const e=i.Wb();i.Vb(0,"th",34),i.Vb(1,"div",35),i.Vb(2,"mat-select",36),i.Qb(3,"mat-select-trigger"),i.Vb(4,"mat-option",37),i.dc("click",function(){return i.zc(e),i.hc().onDownloadCSV()}),i.Kc(5,"Download CSV"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}}function bh(e,t){if(1&e){const e=i.Wb();i.Vb(0,"td",38),i.Vb(1,"button",39),i.dc("click",function(n){i.zc(e);const a=t.$implicit;return i.hc().onTransactionClick(a,n)}),i.Kc(2,"View Info"),i.Ub(),i.Ub()}}function uh(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No transactions available."),i.Ub())}function dh(e,t){if(1&e&&(i.Vb(0,"td",40),i.Ic(1,uh,2,0,"p",41),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("ngIf",!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)}}const hh=function(e){return{"display-none":e}};function mh(e,t){if(1&e&&i.Qb(0,"tr",42),2&e){const e=i.hc();i.oc("ngClass",i.sc(1,hh,(null==e.listTransactions?null:e.listTransactions.data)&&(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)>0))}}function ph(e,t){1&e&&i.Qb(0,"tr",43)}function fh(e,t){1&e&&i.Qb(0,"tr",44)}const gh=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},yh=function(){return["no_transaction"]};let Ch=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.actions$=a,this.faHistory=m.r,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=p.n,this.pageSizeOptions=p.o,this.screenSize="",this.screenSizeEnum=p.q,this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.q.XS?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","actions"]):this.screenSize===p.q.SM?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","num_confirmations","total_fees","actions"]):this.screenSize===p.q.MD?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","total_fees","block_height","num_confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["time_stamp","amount","total_fees","block_height","num_confirmations","actions"])}ngOnChanges(){this.transactions&&this.transactions.length>0&&this.loadTransactionsTable(this.transactions)}applyFilter(e){this.listTransactions.filter=e.value}onTransactionClick(e,t){this.store.dispatch(new W.C({data:{type:p.b.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"block_hash",value:e.block_hash,title:"Block Hash",width:100}],[{key:"tx_hash",value:e.tx_hash,title:"Transaction Hash",width:100}],[{key:"time_stamp_str",value:e.time_stamp_str,title:"Date/Time",width:50,type:p.h.DATE_TIME},{key:"block_height",value:e.block_height,title:"Block Height",width:50,type:p.h.NUMBER}],[{key:"num_confirmations",value:e.num_confirmations,title:"Number of Confirmations",width:34,type:p.h.NUMBER},{key:"total_fees",value:e.total_fees,title:"Total Fees (Sats)",width:33,type:p.h.NUMBER},{key:"amount",value:e.amount,title:"Amount (Sats)",width:33,type:p.h.NUMBER}],[{key:"dest_addresses",value:e.dest_addresses,title:"Destination Addresses",width:100,type:p.h.ARRAY}]],scrollable:e.dest_addresses&&e.dest_addresses.length>5}}))}loadTransactionsTable(e){this.listTransactions=new Pt.o([...e]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.listTransactions.paginator=this.paginator,this.logger.info(this.listTransactions)}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(x.a),i.Pb(y.h),i.Pb(C.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-on-chain-transaction-history"]],viewQuery:function(e,t){if(1&e&&(i.Pc(Tt.a,!0),i.Pc(At.a,!0)),2&e){let e;i.vc(e=i.ec())&&(t.sort=e.first),i.vc(e=i.ec())&&(t.paginator=e.first)}},inputs:{transactions:"transactions",errorLoading:"errorLoading"},features:[i.Cb([{provide:At.b,useValue:Object(p.y)("Transactions")}]),i.Bb],decls:33,vars:13,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","time_stamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_fees"],["matColumnDef","block_height"],["matColumnDef","num_confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"mat-form-field",2),i.Vb(3,"input",3),i.dc("keyup",function(e){return t.applyFilter(e.target)}),i.Ub(),i.Ub(),i.Ub(),i.Vb(4,"div",4),i.Vb(5,"div",5),i.Ic(6,Xd,1,0,"mat-progress-bar",6),i.Vb(7,"table",7,8),i.Tb(9,9),i.Ic(10,Jd,2,0,"th",10),i.Ic(11,Zd,2,1,"td",11),i.Sb(),i.Tb(12,12),i.Ic(13,Yd,2,0,"th",13),i.Ic(14,nh,3,2,"td",11),i.Sb(),i.Tb(15,14),i.Ic(16,ah,2,0,"th",13),i.Ic(17,oh,4,3,"td",11),i.Sb(),i.Tb(18,15),i.Ic(19,ih,2,0,"th",13),i.Ic(20,sh,4,3,"td",11),i.Sb(),i.Tb(21,16),i.Ic(22,ch,2,0,"th",13),i.Ic(23,lh,4,3,"td",11),i.Sb(),i.Tb(24,17),i.Ic(25,rh,6,0,"th",18),i.Ic(26,bh,3,0,"td",19),i.Sb(),i.Tb(27,20),i.Ic(28,dh,2,1,"td",21),i.Sb(),i.Ic(29,mh,1,3,"tr",22),i.Ic(30,ph,1,0,"tr",23),i.Ic(31,fh,1,0,"tr",24),i.Ub(),i.Qb(32,"mat-paginator",25),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(6),i.oc("ngIf",!0===t.errorLoading),i.Db(1),i.oc("dataSource",t.listTransactions)("ngClass",i.sc(10,gh,"error"===t.errorLoading)),i.Db(22),i.oc("matFooterRowDef",i.rc(12,yh)),i.Db(1),i.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.oc("matRowDefColumns",t.displayedColumns),i.Db(1),i.oc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[w.c,w.a,w.b,O.c,ce.b,M.b,a.o,Pt.n,Tt.a,a.m,I.a,Pt.c,Pt.i,Pt.b,Pt.e,Pt.g,Pt.k,Pt.m,At.a,s.a,Pt.h,Tt.b,Pt.a,Rt.a,Rt.c,Kt.m,S.a,Pt.d,Pt.f,Pt.j,Pt.l],pipes:[a.f],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e})();function xh(e,t){if(1&e&&(i.Vb(0,"span",5),i.Kc(1,"UTXOs"),i.Ub()),2&e){const e=i.hc();i.pc("matBadge",e.numUtxos)}}function wh(e,t){if(1&e&&(i.Vb(0,"span",5),i.Kc(1,"Transactions"),i.Ub()),2&e){const e=i.hc();i.pc("matBadge",e.numTransactions)}}let vh=(()=>{class e{constructor(e,t){this.logger=e,this.store=t,this.selectedTableIndex=0,this.selectedTableIndexChange=new i.o,this.transactions=[],this.utxos=[],this.numUtxos=0,this.numTransactions=0,this.flgLoading=[!0,!0],this.unSubs=[new b.a]}ngOnInit(){this.store.dispatch(new f.O),this.store.dispatch(new f.P),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{e.effectErrors.forEach(e=>{"FetchUTXOs"===e.action&&(this.flgLoading[0]="error"),"FetchTransactions"===e.action&&(this.flgLoading[1]="error")}),e.utxos&&e.utxos.length>0&&(this.utxos=e.utxos,this.numUtxos=this.utxos.length),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!e.utxos),e.transactions&&e.transactions.length>0&&(this.transactions=e.transactions,this.numTransactions=this.transactions.length),"error"!==this.flgLoading[1]&&(this.flgLoading[1]=!e.transactions),this.logger.info(e)})}onSelectedIndexChanged(e){this.selectedTableIndexChange.emit(e)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(y.h))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},decls:8,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],[3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["fxLayout","row","fxFlex","100",3,"utxos","errorLoading"],["fxLayout","row","fxFlex","100",3,"transactions","errorLoading"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"mat-tab-group",1),i.dc("selectedIndexChange",function(e){return t.onSelectedIndexChanged(e)}),i.Vb(2,"mat-tab"),i.Ic(3,xh,2,1,"ng-template",2),i.Qb(4,"rtl-on-chain-utxos",3),i.Ub(),i.Vb(5,"mat-tab"),i.Ic(6,wh,2,1,"ng-template",2),i.Qb(7,"rtl-on-chain-transaction-history",4),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(1),i.oc("selectedIndex",t.selectedTableIndex),i.Db(3),i.oc("utxos",t.utxos)("errorLoading",t.flgLoading[0]),i.Db(3),i.oc("transactions",t.transactions)("errorLoading",t.flgLoading[1]))},directives:[w.c,w.a,w.b,kt.b,kt.a,kt.c,$d,Ch,uo.a],styles:[""]}),e})();const Lh=function(e,t){return[e,t]};function Uh(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",12),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().activeLink=n.link}),i.Kc(1),i.Ub()}if(2&e){const e=t.$implicit,n=i.hc();i.oc("active",n.activeLink===e.link)("routerLink",i.tc(3,Lh,e.link,n.selectedTable.name)),i.Db(1),i.Lc(e.name)}}let Vh=(()=>{class e{constructor(e,t){this.store=e,this.router=t,this.selNode={},this.faExchangeAlt=m.n,this.faChartPie=m.g,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"},{link:"sweep",name:"Sweep All"}],this.activeLink=this.links[0].link,this.tables=[{id:0,name:"utxos"},{id:1,name:"trans"}],this.selectedTable=this.tables[0],this.unSubs=[new b.a,new b.a,new b.a,new b.a]}ngOnInit(){let e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.selectedTable=this.tables.find(e=>e.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe(Object(u.a)(this.unSubs[0]),Object(d.a)(e=>e instanceof o.f)).subscribe(e=>{let t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.selectedTable=this.tables.find(t=>t.name===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[1])).subscribe(e=>{this.selNode=e.nodeSettings,this.balances=[{title:"Total Balance",dataValue:e.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:e.blockchainBalance.confirmed_balance},{title:"Unconfirmed",dataValue:e.blockchainBalance.unconfirmed_balance}]})}onSelectedTableIndexChanged(e){this.selectedTable=this.tables.find(t=>t.id===e)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(y.h),i.Pb(o.g))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-on-chain"]],decls:21,vars:5,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100",3,"selectedTableIndex","selectedTableIndexChange"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Qb(1,"fa-icon",1),i.Vb(2,"span",2),i.Kc(3,"On-chain Balance"),i.Ub(),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"mat-card"),i.Vb(6,"mat-card-content",4),i.Qb(7,"rtl-currency-unit-converter",5),i.Ub(),i.Ub(),i.Ub(),i.Vb(8,"div",0),i.Qb(9,"fa-icon",1),i.Vb(10,"span",2),i.Kc(11,"On-chain Transactions"),i.Ub(),i.Ub(),i.Vb(12,"div",6),i.Vb(13,"mat-card"),i.Vb(14,"mat-card-content",4),i.Vb(15,"nav",7),i.Ic(16,Uh,2,6,"div",8),i.Ub(),i.Vb(17,"div",9),i.Qb(18,"router-outlet"),i.Ub(),i.Vb(19,"div",10),i.Vb(20,"rtl-utxo-tables",11),i.dc("selectedTableIndexChange",function(e){return t.onSelectedTableIndexChanged(e)}),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(1),i.oc("icon",t.faChartPie),i.Db(6),i.oc("values",t.balances),i.Db(2),i.oc("icon",t.faExchangeAlt),i.Db(7),i.oc("ngForOf",t.links),i.Db(4),i.oc("selectedTableIndex",t.selectedTable.id))},directives:[w.c,w.b,v.a,U.a,U.b,bo.a,kt.e,a.n,w.a,o.l,vh,kt.d,o.h],styles:[""]}),e})();var Sh=n("Ysfc");function Dh(e,t){if(1&e&&(i.Vb(0,"mat-option",7),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.oc("value",e),i.Db(1),i.Mc(" ",e.addressTp," ")}}let Ih=(()=>{class e{constructor(e,t){this.store=e,this.lndEffects=t,this.addressTypes=p.a,this.selectedAddressType=p.a[0],this.newAddress=""}onGenerateAddress(){this.store.dispatch(new W.F("Getting New Address...")),this.store.dispatch(new f.X(this.selectedAddressType)),this.lndEffects.setNewAddress.pipe(Object(vn.a)(1)).subscribe(e=>{this.newAddress=e,this.store.dispatch(new W.C({width:"58%",data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:Sh.a}}))})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(y.h),i.Pb(Kn.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-on-chain-receive"]],decls:8,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end"],["fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["placeholder","Address Type","name","address_type","tabindex","1",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-2"],["mat-flat-button","","color","primary","tabindex","2",1,"top-minus-15px",3,"click"],[3,"value"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"mat-form-field",2),i.Vb(3,"mat-select",3),i.dc("ngModelChange",function(e){return t.selectedAddressType=e}),i.Ic(4,Dh,2,2,"mat-option",4),i.Ub(),i.Ub(),i.Vb(5,"div",5),i.Vb(6,"button",6),i.dc("click",function(){return t.onGenerateAddress()}),i.Kc(7,"Generate Address"),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(3),i.oc("ngModel",t.selectedAddressType),i.Db(1),i.oc("ngForOf",t.addressTypes))},directives:[w.c,w.b,O.c,w.a,Rt.a,B.m,B.p,a.n,S.a,Kt.m],styles:[""]}),e})();var Fh=n("Cyaj");const _h=["form"],kh=["formSweepAll"],Ah=["stepper"];function Th(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Bitcoin address is required."),i.Ub())}function Ph(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Amount is required."),i.Ub())}function Oh(e,t){if(1&e&&(i.Vb(0,"mat-option",31),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.oc("value",e),i.Db(1),i.Lc(e)}}function Rh(e,t){if(1&e&&(i.Vb(0,"mat-option",31),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.oc("value",e.id),i.Db(1),i.Mc(" ",e.name," ")}}function Kh(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Number of blocks is required."),i.Ub())}function Mh(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-form-field",23),i.Vb(1,"input",32,33),i.dc("ngModelChange",function(t){return i.zc(e),i.hc(2).transactionBlocks=t}),i.Ub(),i.Ic(3,Kh,2,0,"mat-error",14),i.Ub()}if(2&e){const e=i.hc(2);i.Db(1),i.oc("ngModel",e.transactionBlocks)("step",1)("min",0),i.Db(2),i.oc("ngIf",!e.transactionBlocks)}}function Qh(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Fees is required."),i.Ub())}function zh(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-form-field",23),i.Vb(1,"input",34,35),i.dc("ngModelChange",function(t){return i.zc(e),i.hc(2).transactionFees=t}),i.Ub(),i.Ic(3,Qh,2,0,"mat-error",14),i.Ub()}if(2&e){const e=i.hc(2);i.Db(1),i.qc("placeholder","Fees (",null==e.nodeData?null:e.nodeData.smaller_currency_unit,"/Byte)"),i.oc("ngModel",e.transactionFees)("step",1)("min",0),i.Db(2),i.oc("ngIf",!e.transactionFees)}}function Eh(e,t){if(1&e&&(i.Vb(0,"span"),i.Kc(1),i.Ub()),2&e){const e=i.hc(3);i.Db(1),i.Lc(e.sendFundError)}}function Nh(e,t){if(1&e&&(i.Vb(0,"div",36),i.Qb(1,"fa-icon",37),i.Ic(2,Eh,2,1,"span",14),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.oc("icon",e.faExclamationTriangle),i.Db(1),i.oc("ngIf",""!==e.sendFundError)}}function Gh(e,t){if(1&e){const e=i.Wb();i.Vb(0,"form",9,10),i.dc("submit",function(){return i.zc(e),i.hc().onSendFunds()})("reset",function(){return i.zc(e),i.hc().resetData()}),i.Vb(2,"mat-form-field",11),i.Vb(3,"input",12,13),i.dc("ngModelChange",function(t){return i.zc(e),i.hc().transactionAddress=t}),i.Ub(),i.Ic(5,Th,2,0,"mat-error",14),i.Ub(),i.Vb(6,"mat-form-field",15),i.Vb(7,"input",16,17),i.dc("ngModelChange",function(t){return i.zc(e),i.hc().transactionAmount=t}),i.Ub(),i.Vb(9,"span",18),i.Kc(10),i.Ub(),i.Ic(11,Ph,2,0,"mat-error",14),i.Ub(),i.Vb(12,"mat-form-field",19),i.Vb(13,"mat-select",20),i.dc("selectionChange",function(t){return i.zc(e),i.hc().onAmountUnitChange(t)}),i.Ic(14,Oh,2,2,"mat-option",21),i.Ub(),i.Ub(),i.Vb(15,"div",22),i.Vb(16,"mat-form-field",23),i.Vb(17,"mat-select",24),i.dc("valueChange",function(t){return i.zc(e),i.hc().selTransType=t}),i.Ic(18,Rh,2,2,"mat-option",21),i.Ub(),i.Ub(),i.Ic(19,Mh,4,4,"mat-form-field",25),i.Ic(20,zh,4,5,"mat-form-field",25),i.Ub(),i.Qb(21,"div",26),i.Ic(22,Nh,3,2,"div",27),i.Vb(23,"div",28),i.Vb(24,"button",29),i.Kc(25,"Clear Fields"),i.Ub(),i.Vb(26,"button",30),i.Kc(27,"Send Funds"),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.Db(3),i.oc("ngModel",e.transactionAddress),i.Db(2),i.oc("ngIf",!e.transactionAddress),i.Db(2),i.oc("ngModel",e.transactionAmount)("step",100)("min",0),i.Db(3),i.Mc(" ",e.selAmountUnit," "),i.Db(1),i.oc("ngIf",!e.transactionAmount),i.Db(2),i.oc("value",e.selAmountUnit),i.Db(1),i.oc("ngForOf",e.amountUnits),i.Db(3),i.oc("value",e.selTransType),i.Db(1),i.oc("ngForOf",e.transTypes),i.Db(1),i.oc("ngIf","1"==e.selTransType),i.Db(1),i.oc("ngIf","2"==e.selTransType),i.Db(2),i.oc("ngIf",""!==e.sendFundError)}}function qh(e,t){if(1&e&&i.Kc(0),2&e){const e=i.hc(3);i.Lc(e.passwordFormLabel)}}function Bh(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Password is required."),i.Ub())}function Hh(e,t){if(1&e){const e=i.Wb();i.Vb(0,"mat-step",42),i.Vb(1,"form",61),i.Ic(2,qh,1,1,"ng-template",55),i.Vb(3,"div",0),i.Vb(4,"mat-form-field",62),i.Qb(5,"input",63),i.Ic(6,Bh,2,0,"mat-error",14),i.Ub(),i.Ub(),i.Vb(7,"div",64),i.Vb(8,"button",65),i.dc("click",function(){return i.zc(e),i.hc(2).onAuthenticate()}),i.Kc(9,"Confirm"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc(2);i.oc("stepControl",e.passwordFormGroup)("editable",e.flgEditable),i.Db(1),i.oc("formGroup",e.passwordFormGroup),i.Db(5),i.oc("ngIf",null==e.passwordFormGroup.controls.password.errors?null:e.passwordFormGroup.controls.password.errors.required)}}function jh(e,t){if(1&e&&i.Kc(0),2&e){const e=i.hc(2);i.Lc(e.sendFundFormLabel)}}function Wh(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Bitcoin address is required."),i.Ub())}function $h(e,t){if(1&e&&(i.Vb(0,"mat-option",31),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.oc("value",e.id),i.Db(1),i.Mc(" ",e.name," ")}}function Xh(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Number of blocks is required."),i.Ub())}function Jh(e,t){if(1&e&&(i.Vb(0,"mat-form-field",66),i.Qb(1,"input",67),i.Ic(2,Xh,2,0,"mat-error",14),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.oc("step",1)("min",0),i.Db(1),i.oc("ngIf",null==e.sendFundFormGroup.controls.transactionBlocks.errors?null:e.sendFundFormGroup.controls.transactionBlocks.errors.required)}}function Zh(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Fees is required."),i.Ub())}function Yh(e,t){if(1&e&&(i.Vb(0,"mat-form-field",66),i.Qb(1,"input",68),i.Ic(2,Zh,2,0,"mat-error",14),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.qc("placeholder","Fees (",null==e.nodeData?null:e.nodeData.smaller_currency_unit,"/Byte)"),i.oc("step",1)("min",0),i.Db(1),i.oc("ngIf",null==e.sendFundFormGroup.controls.transactionFees.errors?null:e.sendFundFormGroup.controls.transactionFees.errors.required)}}function em(e,t){if(1&e&&i.Kc(0),2&e){const e=i.hc(2);i.Lc(e.confirmFormLabel)}}function tm(e,t){if(1&e&&(i.Vb(0,"span"),i.Kc(1),i.Ub()),2&e){const e=i.hc(3);i.Db(1),i.Lc(e.sendFundError)}}function nm(e,t){if(1&e&&(i.Vb(0,"div",36),i.Qb(1,"fa-icon",37),i.Ic(2,tm,2,1,"span",14),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.oc("icon",e.faExclamationTriangle),i.Db(1),i.oc("ngIf",""!==e.sendFundError)}}function am(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",38),i.Vb(1,"mat-vertical-stepper",39,40),i.dc("selectionChange",function(t){return i.zc(e),i.hc().stepSelectionChanged(t)}),i.Ic(3,Hh,10,4,"mat-step",41),i.Vb(4,"mat-step",42),i.Vb(5,"form",43),i.Ic(6,jh,1,1,"ng-template",44),i.Vb(7,"div",45),i.Vb(8,"mat-form-field",46),i.Qb(9,"input",47),i.Ic(10,Wh,2,0,"mat-error",14),i.Ub(),i.Vb(11,"mat-form-field",48),i.Vb(12,"mat-select",49),i.Ic(13,$h,2,2,"mat-option",21),i.Ub(),i.Ub(),i.Ic(14,Jh,3,3,"mat-form-field",50),i.Ic(15,Yh,3,4,"mat-form-field",50),i.Ub(),i.Vb(16,"div",51),i.Vb(17,"button",52),i.Kc(18,"Next"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Vb(19,"mat-step",53),i.Vb(20,"form",54),i.Ic(21,em,1,1,"ng-template",55),i.Vb(22,"div",38),i.Vb(23,"div",56),i.Qb(24,"fa-icon",57),i.Vb(25,"span"),i.Kc(26,"You are about to sweep all funds from RTL. Are you sure?"),i.Ub(),i.Ub(),i.Ic(27,nm,3,2,"div",27),i.Vb(28,"div",51),i.Vb(29,"button",58),i.dc("click",function(){return i.zc(e),i.hc().onSendFunds()}),i.Kc(30,"Sweep All Funds"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Vb(31,"div",59),i.Vb(32,"button",60),i.Kc(33),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.Db(1),i.oc("linear",!0),i.Db(2),i.oc("ngIf",!e.appConfig.sso.rtlSSO),i.Db(1),i.oc("stepControl",e.sendFundFormGroup)("editable",e.flgEditable),i.Db(1),i.oc("formGroup",e.sendFundFormGroup),i.Db(5),i.oc("ngIf",null==e.sendFundFormGroup.controls.transactionAddress.errors?null:e.sendFundFormGroup.controls.transactionAddress.errors.required),i.Db(3),i.oc("ngForOf",e.transTypes),i.Db(1),i.oc("ngIf","1"==e.sendFundFormGroup.controls.selTransType.value),i.Db(1),i.oc("ngIf","2"==e.sendFundFormGroup.controls.selTransType.value),i.Db(4),i.oc("stepControl",e.confirmFormGroup),i.Db(1),i.oc("formGroup",e.confirmFormGroup),i.Db(4),i.oc("icon",e.faExclamationTriangle),i.Db(3),i.oc("ngIf",""!==e.sendFundError),i.Db(5),i.oc("mat-dialog-close",!1),i.Db(1),i.Lc(e.flgValidated?"Close":"Cancel")}}let om=(()=>{class e{constructor(e,t,n,a,o,i,s,c,l,r){this.dialogRef=e,this.data=t,this.logger=n,this.store=a,this.rtlEffects=o,this.commonService=i,this.decimalPipe=s,this.snackBar=c,this.actions$=l,this.formBuilder=r,this.faExclamationTriangle=m.o,this.sweepAll=!1,this.selNode={},this.addressTypes=[],this.flgLoadingWallet=!0,this.selectedAddress={},this.blockchainBalance={},this.information={},this.newAddress="",this.transactionAddress="",this.transactionAmount=null,this.transactionFees=null,this.transactionBlocks=null,this.transTypes=[{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],this.selTransType="1",this.fiatConversion=!1,this.amountUnits=p.e,this.selAmountUnit=p.e[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=p.f,this.sendFundError="",this.flgValidated=!1,this.flgEditable=!0,this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a]}ngOnInit(){this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[B.t.required]],password:["",[B.t.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",B.t.required],transactionBlocks:[null],transactionFees:[null],selTransType:["1",B.t.required]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.selTransType.valueChanges.pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{"1"===e?(this.sendFundFormGroup.controls.transactionBlocks.setValidators([B.t.required]),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators(null),this.sendFundFormGroup.controls.transactionFees.setValue(null)):(this.sendFundFormGroup.controls.transactionBlocks.setValidators(null),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators([B.t.required]),this.sendFundFormGroup.controls.transactionFees.setValue(null))}),this.store.select("root").pipe(Object(u.a)(this.unSubs[1])).subscribe(e=>{this.fiatConversion=e.selNode.settings.fiatConversion,this.amountUnits=e.selNode.settings.currencyUnits,this.appConfig=e.appConfig,this.nodeData=e.nodeData,this.logger.info(e)}),this.actions$.pipe(Object(u.a)(this.unSubs[2]),Object(d.a)(e=>e.type===f.m||e.type===f.yb)).subscribe(e=>{e.type===f.yb&&(this.store.dispatch(new W.E(this.sweepAll?"All Funds Sent Successfully!":"Fund Sent Successfully!")),this.dialogRef.close()),e.type===f.m&&"SetChannelTransaction"===e.payload.action&&(this.sendFundError=e.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch(new W.t(Fh(this.passwordFormGroup.controls.password.value))),this.rtlEffects.isAuthorizedRes.pipe(Object(vn.a)(1)).subscribe(e=>{"ERROR"!==e?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="";let e=this.transactionAmount?this.transactionAmount:0;this.transactionAmount&&this.selAmountUnit!==p.g.SATS&&this.commonService.convertCurrency(e,this.selAmountUnit===this.amountUnits[2]?p.g.OTHER:this.selAmountUnit,this.amountUnits[2],this.fiatConversion).pipe(Object(u.a)(this.unSubs[3])).subscribe(t=>{e=+this.decimalPipe.transform(t[this.amountUnits[0]],this.currencyUnitFormats[this.amountUnits[0]]).replace(/,/g,"")}),this.store.dispatch(new W.F("Sending Funds..."));const t={amount:e,sendAll:this.sweepAll};this.sweepAll?(t.address=this.sendFundFormGroup.controls.transactionAddress.value,"1"===this.sendFundFormGroup.controls.selTransType.value&&(t.blocks=this.sendFundFormGroup.controls.transactionBlocks.value),"2"===this.sendFundFormGroup.controls.selTransType.value&&(t.fees=this.sendFundFormGroup.controls.transactionFees.value)):(t.address=this.transactionAddress,"1"===this.selTransType&&(t.blocks=this.transactionBlocks),"2"===this.selTransType&&(t.fees=this.transactionFees)),this.store.dispatch(new f.Wb(t))}get invalidValues(){return this.sweepAll?!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||"1"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionBlocks.value||this.sendFundFormGroup.controls.transactionBlocks.value<=0)||"2"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionFees.value||this.sendFundFormGroup.controls.transactionFees.value<=0):!this.transactionAddress||""===this.transactionAddress||!this.transactionAmount||this.transactionAmount<=0||"1"===this.selTransType&&(!this.transactionBlocks||this.transactionBlocks<=0)||"2"===this.selTransType&&(!this.transactionFees||this.transactionFees<=0)}resetData(){this.sendFundError="",this.selTransType="1",this.transactionAddress="",this.transactionBlocks=null,this.transactionFees=null,this.sweepAll||(this.transactionAmount=null)}stepSelectionChanged(e){switch(this.sendFundError="",e.selectedIndex){case 0:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds";break;case 1:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds";break;case 2:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds | Address: "+this.sendFundFormGroup.controls.transactionAddress.value+" | "+this.transTypes[this.sendFundFormGroup.controls.selTransType.value-1].name+("2"===this.sendFundFormGroup.controls.selTransType.value?" ("+this.nodeData.smaller_currency_unit+"/Byte)":"")+": "+("1"===this.sendFundFormGroup.controls.selTransType.value?this.sendFundFormGroup.controls.transactionBlocks.value:this.sendFundFormGroup.controls.transactionFees.value);break;default:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds"}e.selectedIndex{t.transactionAmount=+t.decimalPipe.transform(e[n],t.currencyUnitFormats[n]).replace(/,/g,"")}),this.selAmountUnit=e.value}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(H.f),i.Pb(H.a),i.Pb(g.b),i.Pb(y.h),i.Pb(Rn.a),i.Pb(x.a),i.Pb(a.f),i.Pb(vi.b),i.Pb(C.a),i.Pb(B.d))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-on-chain-send-modal"]],viewQuery:function(e,t){if(1&e&&(i.Ec(_h,!0),i.Pc(kh,!0),i.Pc(Ah,!0)),2&e){let e;i.vc(e=i.ec())&&(t.form=e.first),i.vc(e=i.ec())&&(t.formSweepAll=e.first),i.vc(e=i.ec())&&(t.stepper=e.first)}},decls:12,vars:4,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"mt-5px"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","padding-gap overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["sweepAllBlock",""],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"padding-gap","overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex.gt-sm","55"],["autoFocus","","matInput","","placeholder","Bitcoin Address","tabindex","1","name","address","required","",3,"ngModel","ngModelChange"],["address","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","30"],["matInput","","placeholder","Amount","name","amt","type","number","tabindex","2","required","",3,"ngModel","step","min","ngModelChange"],["amnt","ngModel"],["matSuffix",""],["fxFlex.gt-sm","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","60","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","48"],["tabindex","4",3,"value","valueChange"],["fxFlex","48",4,"ngIf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-flat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","5",3,"ngModel","step","min","ngModelChange"],["blocks","ngModel"],["matInput","","type","number","name","chainFees","required","","tabindex","6",3,"ngModel","placeholder","step","min","ngModelChange"],["fees","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","98","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex.gt-sm","45"],["matInput","","formControlName","transactionAddress","placeholder","Bitcoin Address","tabindex","4","name","address","required",""],["fxFlex.gt-sm","25"],["formControlName","selTransType","tabindex","5"],["fxFlex.gt-sm","25","fxLayoutAlign","start end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","8","type","button","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-stroked-button","","color","primary","tabindex","9","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["fxFlex","100"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",3,"click"],["fxFlex.gt-sm","25","fxLayoutAlign","start end"],["matInput","","formControlName","transactionBlocks","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","6",3,"step","min"],["matInput","","formControlName","transactionFees","type","number","name","chainFees","required","","tabindex","7",3,"placeholder","step","min"]],template:function(e,t){if(1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"mat-card-header",2),i.Vb(3,"div",3),i.Vb(4,"span",4),i.Kc(5),i.Ub(),i.Ub(),i.Vb(6,"button",5),i.Kc(7,"X"),i.Ub(),i.Ub(),i.Vb(8,"mat-card-content",6),i.Ic(9,Gh,28,14,"form",7),i.Ub(),i.Ub(),i.Ub(),i.Ic(10,am,34,15,"ng-template",null,8,i.Jc)),2&e){const e=i.wc(11);i.Db(5),i.Lc(t.sweepAll?"Sweep All Funds":"Send Funds"),i.Db(1),i.oc("mat-dialog-close",!1),i.Db(3),i.oc("ngIf",!t.sweepAll)("ngIfElse",e)}},directives:[w.c,w.a,U.c,w.b,S.a,H.d,U.b,a.o,B.u,B.n,B.o,O.c,ce.b,B.c,le.a,B.s,B.m,B.p,B.q,Ot.a,O.g,Rt.a,a.n,O.b,Kt.m,v.a,X.h,X.a,B.h,X.b,B.g,X.f],styles:[""]}),e})(),im=(()=>{class e{constructor(e,t){this.store=e,this.activatedRoute=t,this.sweepAll=!1,this.unSubs=[new b.a,new b.a]}ngOnInit(){this.activatedRoute.data.pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>this.sweepAll=e.sweepAll)}openSendFundsModal(){this.store.dispatch(new W.C({data:{sweepAll:this.sweepAll,component:om}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(y.h),i.Pb(o.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-on-chain-send"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"button",2),i.dc("click",function(){return t.openSendFundsModal()}),i.Kc(3),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(3),i.Lc(t.sweepAll?"Sweep All":"Send Funds"))},directives:[w.c,w.a,w.b,S.a],styles:[""]}),e})();const sm=function(e){return{"error-border":e}};function cm(e,t){if(1&e&&i.Qb(0,"rtl-node-info",24),2&e){const e=i.hc(3);i.oc("information",e.information)("showColorFieldSeparately",!0)("ngClass",i.sc(3,sm,"error"===e.flgLoading[0]))}}function lm(e,t){if(1&e&&i.Qb(0,"rtl-channel-status-info",25),2&e){const e=i.hc(3);i.oc("channelsStatus",e.channelsStatus)("ngClass",i.sc(2,sm,"error"===e.flgLoading[3]||"error"===e.flgLoading[4]))}}function rm(e,t){if(1&e&&i.Qb(0,"rtl-fee-info",26),2&e){const e=i.hc(3);i.oc("fees",e.fees)("ngClass",i.sc(2,sm,"error"===e.flgLoading[2]))}}function bm(e,t){if(1&e&&(i.Vb(0,"mat-grid-tile",12),i.Vb(1,"div",13),i.Vb(2,"div",14),i.Vb(3,"div",15),i.Qb(4,"fa-icon",16),i.Vb(5,"span"),i.Kc(6),i.Ub(),i.Ub(),i.Ub(),i.Vb(7,"div",17),i.Vb(8,"mat-card",18),i.Vb(9,"mat-card-content",19),i.Vb(10,"div",20),i.Ic(11,cm,1,5,"rtl-node-info",21),i.Ic(12,lm,1,4,"rtl-channel-status-info",22),i.Ic(13,rm,1,4,"rtl-fee-info",23),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.oc("colspan",e.cols)("rowspan",e.rows),i.Db(4),i.oc("icon",e.icon),i.Db(2),i.Lc(e.title),i.Db(4),i.oc("ngSwitch",e.id),i.Db(1),i.oc("ngSwitchCase","node"),i.Db(1),i.oc("ngSwitchCase","status"),i.Db(1),i.oc("ngSwitchCase","fee")}}function um(e,t){if(1&e&&(i.Vb(0,"mat-grid-list",10),i.Ic(1,bm,14,8,"mat-grid-tile",11),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("ngForOf",e.nodeCards)}}function dm(e,t){1&e&&i.Rb(0)}function hm(e,t){if(1&e&&(i.Vb(0,"div",30),i.Ic(1,dm,1,0,"ng-container",31),i.Ub()),2&e){const e=i.hc(2),t=i.wc(9);i.oc("ngClass",i.sc(2,sm,"error"===e.flgLoading[1])),i.Db(1),i.oc("ngTemplateOutlet",t)}}function mm(e,t){1&e&&i.Rb(0)}function pm(e,t){if(1&e&&(i.Vb(0,"div",30),i.Ic(1,mm,1,0,"ng-container",31),i.Ub()),2&e){const e=i.hc(2),t=i.wc(11);i.oc("ngClass",i.sc(2,sm,"error"===e.flgLoading[1])),i.Db(1),i.oc("ngTemplateOutlet",t)}}function fm(e,t){1&e&&i.Rb(0)}function gm(e,t){if(1&e&&(i.Vb(0,"div",30),i.Ic(1,fm,1,0,"ng-container",31),i.Ub()),2&e){const e=i.hc(2),t=i.wc(13);i.oc("ngClass",i.sc(2,sm,"error"===e.flgLoading[1])),i.Db(1),i.oc("ngTemplateOutlet",t)}}function ym(e,t){if(1&e&&(i.Vb(0,"mat-grid-tile",27),i.Vb(1,"mat-card",28),i.Vb(2,"mat-card-content",19),i.Vb(3,"div",20),i.Ic(4,hm,2,4,"div",29),i.Ic(5,pm,2,4,"div",29),i.Ic(6,gm,2,4,"div",29),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.oc("colspan",e.cols)("rowspan",e.rows),i.Db(3),i.oc("ngSwitch",e.id),i.Db(1),i.oc("ngSwitchCase","general"),i.Db(1),i.oc("ngSwitchCase","channels"),i.Db(1),i.oc("ngSwitchCase","degrees")}}function Cm(e,t){if(1&e&&(i.Vb(0,"div",32),i.Vb(1,"div"),i.Vb(2,"h4",33),i.Kc(3,"Network Capacity"),i.Ub(),i.Vb(4,"div",34),i.Kc(5),i.ic(6,"number"),i.Ub(),i.Ub(),i.Vb(7,"div"),i.Vb(8,"h4",33),i.Kc(9,"Number of Nodes"),i.Ub(),i.Vb(10,"div",34),i.Kc(11),i.ic(12,"number"),i.Ub(),i.Ub(),i.Vb(13,"div"),i.Vb(14,"h4",33),i.Kc(15,"Number of Channels"),i.Ub(),i.Vb(16,"span",34),i.Kc(17),i.ic(18,"number"),i.Ub(),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(5),i.Mc("",i.jc(6,3,e.networkInfo.total_network_capacity)," Sats"),i.Db(6),i.Lc(i.jc(12,5,e.networkInfo.num_nodes)),i.Db(6),i.Lc(i.jc(18,7,e.networkInfo.num_channels))}}function xm(e,t){if(1&e&&(i.Vb(0,"div",32),i.Vb(1,"div"),i.Vb(2,"h4",33),i.Kc(3,"Max Channel Size"),i.Ub(),i.Vb(4,"div",34),i.Kc(5),i.ic(6,"number"),i.Ub(),i.Ub(),i.Vb(7,"div"),i.Vb(8,"h4",33),i.Kc(9,"Avg Channel Size"),i.Ub(),i.Vb(10,"div",34),i.Kc(11),i.ic(12,"number"),i.Ub(),i.Ub(),i.Vb(13,"div"),i.Vb(14,"h4",33),i.Kc(15,"Min Channel Size"),i.Ub(),i.Vb(16,"span",34),i.Kc(17),i.ic(18,"number"),i.Ub(),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(5),i.Lc(i.jc(6,3,e.networkInfo.max_channel_size)),i.Db(6),i.Lc(i.jc(12,5,e.networkInfo.avg_channel_size)),i.Db(6),i.Lc(i.jc(18,7,e.networkInfo.min_channel_size))}}function wm(e,t){if(1&e&&(i.Vb(0,"div",32),i.Vb(1,"div"),i.Vb(2,"h4",33),i.Kc(3,"Max Out Degree"),i.Ub(),i.Vb(4,"div",34),i.Kc(5),i.ic(6,"number"),i.Ub(),i.Ub(),i.Vb(7,"div"),i.Vb(8,"h4",33),i.Kc(9,"Avg Out Degree"),i.Ub(),i.Vb(10,"div",34),i.Kc(11),i.ic(12,"number"),i.Ub(),i.Ub(),i.Vb(13,"div",35),i.Qb(14,"h4",33),i.Qb(15,"span",34),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(5),i.Lc(i.jc(6,2,e.networkInfo.max_out_degree)),i.Db(6),i.Lc(i.kc(12,4,e.networkInfo.avg_out_degree,"1.0-2"))}}const vm=function(e){return{"mt-1":e}};let Lm=(()=>{class e{constructor(e,t,n){this.logger=e,this.commonService=t,this.store=n,this.faProjectDiagram=m.B,this.faBolt=m.e,this.faServer=m.G,this.faNetworkWired=m.y,this.selNode={},this.information={},this.channelsStatus={},this.networkInfo={},this.networkCards=[],this.nodeCards=[],this.screenSize="",this.screenSizeEnum=p.q,this.userPersonaEnum=p.w,this.flgLoading=[!0,!0,!0,!0,!0,!0],this.unSubs=[new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.q.XS?(this.networkCards=[{id:"general",cols:3,rows:1},{id:"channels",cols:3,rows:1},{id:"degrees",cols:3,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1}]):(this.networkCards=[{id:"general",cols:1,rows:1},{id:"channels",cols:1,rows:1},{id:"degrees",cols:1,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:1,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:1,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:1,rows:1}])}ngOnInit(){this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{e.effectErrors.forEach(e=>{"FetchInfo"===e.action&&(this.flgLoading[0]="error"),"FetchNetwork"===e.action&&(this.flgLoading[1]="error"),"FetchFees"===e.action&&(this.flgLoading[2]="error"),"FetchChannels/all"===e.action&&(this.flgLoading[3]="error"),"FetchChannels/pending"===e.action&&(this.flgLoading[4]="error")}),this.selNode=e.nodeSettings,this.information=e.information,"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!this.information.identity_pubkey),this.networkInfo=e.networkInfo,"error"!==this.flgLoading[1]&&(this.flgLoading[1]=!this.networkInfo.num_nodes),this.fees=e.fees,"error"!==this.flgLoading[2]&&(this.flgLoading[2]=!this.fees.day_fee_sum),this.channelsStatus={active:{channels:e.numberOfActiveChannels,capacity:e.totalCapacityActive},inactive:{channels:e.numberOfInactiveChannels,capacity:e.totalCapacityInactive},pending:{channels:e.numberOfPendingChannels.open.num_channels,capacity:e.numberOfPendingChannels.open.limbo_balance},closing:{channels:e.numberOfPendingChannels.closing.num_channels+e.numberOfPendingChannels.force_closing.num_channels+e.numberOfPendingChannels.waiting_close.num_channels,capacity:e.numberOfPendingChannels.total_limbo_balance}},e.totalLocalBalance>=0&&e.totalRemoteBalance>=0&&"error"!==this.flgLoading[3]&&(this.flgLoading[3]=!1),e.numberOfPendingChannels&&"error"!==this.flgLoading[4]&&(this.flgLoading[4]=!1),this.logger.info(e)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(x.a),i.Pb(y.h))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-network-info"]],decls:14,vars:6,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","3","rowHeight","330px",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container",3,"ngClass"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","3","rowHeight","250px"],["fxLayout","row",3,"colspan","rowspan",4,"ngFor","ngForOf"],["generalBlock",""],["channelsBlock",""],["degreesBlock",""],["cols","3","rowHeight","330px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","w-96","h-93"],["fxFlex","100",1,"dashboard-card-content"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"fees","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"information","showColorFieldSeparately","ngClass"],["fxFlex","100",3,"channelsStatus","ngClass"],["fxFlex","100",3,"fees","ngClass"],["fxLayout","row",3,"colspan","rowspan"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","h-93"],["fxFlex","100",3,"ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"ngClass"],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Ic(1,um,2,1,"mat-grid-list",1),i.Vb(2,"div",2),i.Qb(3,"fa-icon",3),i.Vb(4,"span",4),i.Kc(5,"Network"),i.Ub(),i.Ub(),i.Vb(6,"mat-grid-list",5),i.Ic(7,ym,7,6,"mat-grid-tile",6),i.Ub(),i.Ub(),i.Ic(8,Cm,19,9,"ng-template",null,7,i.Jc),i.Ic(10,xm,19,9,"ng-template",null,8,i.Jc),i.Ic(12,wm,16,7,"ng-template",null,9,i.Jc)),2&e&&(i.Db(1),i.oc("ngIf",t.selNode.userPersona!==t.userPersonaEnum.OPERATOR),i.Db(1),i.oc("ngClass",i.sc(4,vm,t.screenSize!==t.screenSizeEnum.XS)),i.Db(1),i.oc("icon",t.faProjectDiagram),i.Db(4),i.oc("ngForOf",t.networkCards))},directives:[w.c,w.b,a.o,a.m,I.a,v.a,L.a,a.n,L.c,w.a,U.a,U.b,a.q,a.r,T,q,G,a.t],pipes:[a.f],styles:[""]}),e})();function Um(e,t){1&e&&i.Qb(0,"mat-progress-bar",34)}function Vm(e,t){1&e&&(i.Vb(0,"th",35),i.Kc(1," Initiation Time "),i.Ub())}function Sm(e,t){if(1&e&&(i.Vb(0,"td",36),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(e.initiation_time_str)}}function Dm(e,t){1&e&&(i.Vb(0,"th",35),i.Kc(1," Last Update Time "),i.Ub())}function Im(e,t){if(1&e&&(i.Vb(0,"td",36),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(e.last_update_time_str)}}function Fm(e,t){1&e&&(i.Vb(0,"th",35),i.Kc(1," ID "),i.Ub())}function _m(e,t){if(1&e&&(i.Vb(0,"td",36),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(e.id)}}function km(e,t){1&e&&(i.Vb(0,"th",35),i.Kc(1," ID (Bytes) "),i.Ub())}function Am(e,t){if(1&e&&(i.Vb(0,"td",36),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(e.id_bytes)}}function Tm(e,t){1&e&&(i.Vb(0,"th",35),i.Kc(1," State "),i.Ub())}function Pm(e,t){if(1&e&&(i.Vb(0,"td",36),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc();i.Db(1),i.Lc(n.swapStateEnum[e.state])}}function Om(e,t){1&e&&(i.Vb(0,"th",35),i.Kc(1," HTLC Address "),i.Ub())}function Rm(e,t){if(1&e&&(i.Vb(0,"td",36),i.Kc(1),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.Lc(e.htlc_address)}}function Km(e,t){1&e&&(i.Vb(0,"th",37),i.Kc(1," Amount (Sats) "),i.Ub())}function Mm(e,t){if(1&e&&(i.Vb(0,"td",36),i.Vb(1,"span",38),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.jc(3,1,e.amt))}}function Qm(e,t){1&e&&(i.Vb(0,"th",37),i.Kc(1," Cost Server (Sats) "),i.Ub())}function zm(e,t){if(1&e&&(i.Vb(0,"td",36),i.Vb(1,"span",38),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.jc(3,1,e.cost_server))}}function Em(e,t){1&e&&(i.Vb(0,"th",37),i.Kc(1," Cost Offchain (Sats) "),i.Ub())}function Nm(e,t){if(1&e&&(i.Vb(0,"td",36),i.Vb(1,"span",38),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Lc(i.jc(3,1,e.cost_offchain))}}function Gm(e,t){1&e&&(i.Vb(0,"th",37),i.Kc(1," Cost Onchain (Sats) "),i.Ub())}function qm(e,t){if(1&e&&(i.Vb(0,"td",36),i.Vb(1,"span",38),i.Kc(2),i.ic(3,"number"),i.Ub(),i.Ub()),2&e){const e=t.$implicit;i.Db(2),i.Mc(" ",i.jc(3,1,null==e?null:e.cost_onchain)," ")}}function Bm(e,t){if(1&e){const e=i.Wb();i.Vb(0,"th",39),i.Vb(1,"div",40),i.Vb(2,"mat-select",41),i.Qb(3,"mat-select-trigger"),i.Vb(4,"mat-option",42),i.dc("click",function(){return i.zc(e),i.hc().onDownloadCSV()}),i.Kc(5,"Download CSV"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}}function Hm(e,t){if(1&e){const e=i.Wb();i.Vb(0,"td",43),i.Vb(1,"button",44),i.dc("click",function(n){i.zc(e);const a=t.$implicit;return i.hc().onSwapClick(a,n)}),i.Kc(2,"View Info"),i.Ub(),i.Ub()}}function jm(e,t){if(1&e&&(i.Vb(0,"p"),i.Kc(1),i.Ub()),2&e){const e=i.hc(2);i.Db(1),i.Lc(e.emptyTableMessage)}}function Wm(e,t){if(1&e&&(i.Vb(0,"td",45),i.Ic(1,jm,2,1,"p",46),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("ngIf",!(null!=e.listSwaps&&e.listSwaps.data)||(null==e.listSwaps||null==e.listSwaps.data?null:e.listSwaps.data.length)<1)}}const $m=function(e){return{"display-none":e}};function Xm(e,t){if(1&e&&i.Qb(0,"tr",47),2&e){const e=i.hc();i.oc("ngClass",i.sc(1,$m,(null==e.listSwaps?null:e.listSwaps.data)&&(null==e.listSwaps||null==e.listSwaps.data?null:e.listSwaps.data.length)>0))}}function Jm(e,t){1&e&&i.Qb(0,"tr",48)}function Zm(e,t){1&e&&i.Qb(0,"tr",49)}const Ym=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},ep=function(){return["no_swap"]};let tp=(()=>{class e{constructor(e,t,n,a,o){this.logger=e,this.commonService=t,this.store=n,this.actions$=a,this.loopService=o,this.selectedSwapType=p.s.LOOP_OUT,this.swapStateEnum=p.r,this.faHistory=m.r,this.swapCaption="Loop Out",this.displayedColumns=[],this.storedSwaps=[],this.filteredSwaps=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.flgSticky=!1,this.pageSize=p.n,this.pageSizeOptions=p.o,this.screenSize="",this.screenSizeEnum=p.q,this.unSubs=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.q.XS||this.screenSize===p.q.SM?(this.flgSticky=!1,this.displayedColumns=["state","amt","actions"]):this.screenSize===p.q.MD?(this.flgSticky=!1,this.displayedColumns=["state","initiation_time","amt","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain","actions"])}ngOnInit(){this.store.dispatch(new f.J),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[1])).subscribe(e=>{e.effectErrors.forEach(e=>{"FetchSwaps"===e.action&&(this.flgLoading[0]="error",this.emptyTableMessage="ERROR: "+e.message)}),e.loopSwaps&&(this.storedSwaps=e.loopSwaps,this.filteredSwaps=this.storedSwaps.filter(e=>e.type===this.selectedSwapType),this.filteredSwaps.length>0&&this.loadSwapsTable(this.filteredSwaps)),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!e.loopSwaps),this.logger.info(e)})}ngAfterViewInit(){this.filteredSwaps.length>0&&this.loadSwapsTable(this.filteredSwaps)}ngOnChanges(){this.swapCaption=this.selectedSwapType===p.s.LOOP_IN?"Loop In":"Loop Out",this.emptyTableMessage="No "+this.swapCaption.toLowerCase()+" swaps available.",this.filteredSwaps=this.storedSwaps.filter(e=>e.type===this.selectedSwapType),this.loadSwapsTable(this.filteredSwaps)}applyFilter(e){this.listSwaps.filter=e.value}onSwapClick(e,t){this.loopService.getSwap(e.id_bytes.replace(/\//g,"_").replace(/\+/g,"-")).pipe(Object(u.a)(this.unSubs[2])).subscribe(e=>{this.store.dispatch(new W.C({data:{type:p.b.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:p.r[e.state],title:"Status",width:50,type:p.h.STRING},{key:"amt",value:e.amt,title:"Amount (Sats)",width:50,type:p.h.NUMBER}],[{key:"initiation_time_str",value:e.initiation_time_str,title:"Initiation Time",width:50,type:p.h.DATE_TIME},{key:"last_update_time_str",value:e.last_update_time_str,title:"Last Update Time",width:50,type:p.h.DATE_TIME}],[{key:"cost_server",value:e.cost_server,title:"Server Cost (Sats)",width:33,type:p.h.NUMBER},{key:"cost_offchain",value:e.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:p.h.NUMBER},{key:"cost_onchain",value:e.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:p.h.NUMBER}],[{key:"id_bytes",value:e.id_bytes,title:"ID",width:100,type:p.h.STRING}],[{key:"htlc_address",value:e.htlc_address,title:"HTLC Address",width:100,type:p.h.STRING}]],openedBy:"SWAP"}}))})}loadSwapsTable(e){this.listSwaps=new Pt.o([...e]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.listSwaps.paginator=this.paginator,this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===p.s.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(x.a),i.Pb(y.h),i.Pb(C.a),i.Pb($.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-swaps"]],viewQuery:function(e,t){if(1&e&&(i.Pc(Tt.a,!0),i.Pc(At.a,!0)),2&e){let e;i.vc(e=i.ec())&&(t.sort=e.first),i.vc(e=i.ec())&&(t.paginator=e.first)}},inputs:{selectedSwapType:"selectedSwapType"},features:[i.Cb([{provide:At.b,useValue:Object(p.y)("Swaps")}]),i.Bb],decls:52,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","initiation_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","last_update_time"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","state"],["matColumnDef","htlc_address"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"div",2),i.Qb(3,"fa-icon",3),i.Vb(4,"span",4),i.Kc(5),i.Ub(),i.Ub(),i.Vb(6,"mat-form-field",5),i.Vb(7,"input",6),i.dc("keyup",function(e){return t.applyFilter(e.target)}),i.Ub(),i.Ub(),i.Ub(),i.Vb(8,"div",7),i.Vb(9,"div",8),i.Ic(10,Um,1,0,"mat-progress-bar",9),i.Vb(11,"table",10,11),i.Tb(13,12),i.Ic(14,Vm,2,0,"th",13),i.Ic(15,Sm,2,1,"td",14),i.Sb(),i.Tb(16,15),i.Ic(17,Dm,2,0,"th",13),i.Ic(18,Im,2,1,"td",14),i.Sb(),i.Tb(19,16),i.Ic(20,Fm,2,0,"th",13),i.Ic(21,_m,2,1,"td",14),i.Sb(),i.Tb(22,17),i.Ic(23,km,2,0,"th",13),i.Ic(24,Am,2,1,"td",14),i.Sb(),i.Tb(25,18),i.Ic(26,Tm,2,0,"th",13),i.Ic(27,Pm,2,1,"td",14),i.Sb(),i.Tb(28,19),i.Ic(29,Om,2,0,"th",13),i.Ic(30,Rm,2,1,"td",14),i.Sb(),i.Tb(31,20),i.Ic(32,Km,2,0,"th",21),i.Ic(33,Mm,4,3,"td",14),i.Sb(),i.Tb(34,22),i.Ic(35,Qm,2,0,"th",21),i.Ic(36,zm,4,3,"td",14),i.Sb(),i.Tb(37,23),i.Ic(38,Em,2,0,"th",21),i.Ic(39,Nm,4,3,"td",14),i.Sb(),i.Tb(40,24),i.Ic(41,Gm,2,0,"th",21),i.Ic(42,qm,4,3,"td",14),i.Sb(),i.Tb(43,25),i.Ic(44,Bm,6,0,"th",26),i.Ic(45,Hm,3,0,"td",27),i.Sb(),i.Tb(46,28),i.Ic(47,Wm,2,1,"td",29),i.Sb(),i.Ic(48,Xm,1,3,"tr",30),i.Ic(49,Jm,1,0,"tr",31),i.Ic(50,Zm,1,0,"tr",32),i.Ub(),i.Qb(51,"mat-paginator",33),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(3),i.oc("icon",t.faHistory),i.Db(2),i.Mc("",t.swapCaption," History"),i.Db(5),i.oc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.oc("dataSource",t.listSwaps)("ngClass",i.sc(12,Ym,"error"===t.flgLoading[0])),i.Db(37),i.oc("matFooterRowDef",i.rc(14,ep)),i.Db(1),i.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.oc("matRowDefColumns",t.displayedColumns),i.Db(1),i.oc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[w.c,w.a,w.b,v.a,O.c,ce.b,M.b,a.o,Pt.n,Tt.a,a.m,I.a,Pt.c,Pt.i,Pt.b,Pt.e,Pt.g,Pt.k,Pt.m,At.a,s.a,Pt.h,Tt.b,Pt.a,Rt.a,Rt.c,Kt.m,S.a,Pt.d,Pt.f,Pt.j,Pt.l],pipes:[a.f],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e})(),np=(()=>{class e{constructor(e,t){this.loopService=e,this.store=t,this.faInfinity=m.s,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.swapTypeEnum=p.s,this.selectedSwapType=p.s.LOOP_OUT,this.unSubs=[new b.a,new b.a]}ngOnInit(){}onSelectedIndexChange(e){this.selectedSwapType=1===e?p.s.LOOP_IN:p.s.LOOP_OUT}onLoop(e){this.store.dispatch(new W.F("Getting Terms and Quotes...")),e===p.s.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe(Object(u.a)(this.unSubs[0])).subscribe(t=>{this.store.dispatch(new W.i),this.store.dispatch(new W.C({data:{minQuote:t[0],maxQuote:t[1],direction:e,component:Ct}}))}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe(Object(u.a)(this.unSubs[1])).subscribe(t=>{this.store.dispatch(new W.i),this.store.dispatch(new W.C({data:{minQuote:t[0],maxQuote:t[1],direction:e,component:Ct}}))})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb($.a),i.Pb(y.h))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-loop"]],decls:15,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"selectedIndexChange"],["label","Loop Out"],["mat-flat-button","","color","primary","type","button","tabindex","1",1,"mt-1",3,"click"],["label","Loop In"],["mat-flat-button","","color","primary","type","button","tabindex","2",1,"mt-1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Qb(1,"fa-icon",1),i.Vb(2,"span",2),i.Kc(3,"Loop"),i.Ub(),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"mat-card"),i.Vb(6,"mat-card-content",4),i.Vb(7,"mat-tab-group",5),i.dc("selectedIndexChange",function(e){return t.onSelectedIndexChange(e)}),i.Vb(8,"mat-tab",6),i.Vb(9,"button",7),i.dc("click",function(){return t.onLoop(t.swapTypeEnum.LOOP_OUT)}),i.Kc(10,"Start Loop Out"),i.Ub(),i.Ub(),i.Vb(11,"mat-tab",8),i.Vb(12,"button",9),i.dc("click",function(){return t.onLoop(t.swapTypeEnum.LOOP_IN)}),i.Kc(13,"Start Loop In"),i.Ub(),i.Ub(),i.Ub(),i.Qb(14,"rtl-swaps",10),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(1),i.oc("icon",t.faInfinity),i.Db(13),i.oc("selectedSwapType",t.selectedSwapType))},directives:[w.c,w.b,v.a,U.a,U.b,kt.b,w.a,kt.a,S.a,tp],styles:[".loop-monitor-logs[_ngcontent-%COMP%]{min-height:4rem}"]}),e})();function ap(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",8),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().activeLink=n.link}),i.Kc(1),i.Ub()}if(2&e){const e=t.$implicit,n=i.hc();i.pc("routerLink",e.link),i.oc("active",n.activeLink===e.link),i.Db(1),i.Lc(e.name)}}let op=(()=>{class e{constructor(e){this.router=e,this.faDownload=m.k,this.links=[{link:"bckup",name:"Backup"},{link:"restore",name:"Restore"}],this.activeLink=this.links[0].link,this.unSubs=[new b.a,new b.a]}ngOnInit(){let e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe(Object(u.a)(this.unSubs[0]),Object(d.a)(e=>e instanceof o.f)).subscribe(e=>{let t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(o.g))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-backup"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Qb(1,"fa-icon",1),i.Vb(2,"span",2),i.Kc(3,"Channels Backup"),i.Ub(),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"mat-card"),i.Vb(6,"mat-card-content",4),i.Vb(7,"nav",5),i.Ic(8,ap,2,3,"div",6),i.Ub(),i.Vb(9,"div",7),i.Qb(10,"router-outlet"),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(1),i.oc("icon",t.faDownload),i.Db(7),i.oc("ngForOf",t.links))},directives:[w.c,w.b,v.a,U.a,U.b,kt.e,a.n,w.a,o.l,kt.d,o.h],styles:[""]}),e})();function ip(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",23),i.Vb(1,"h4",24),i.Kc(2),i.Ub(),i.Vb(3,"div",25),i.Vb(4,"button",26),i.dc("click",function(){return i.zc(e),i.hc().onRestoreChannels({})}),i.Kc(5,"Restore All"),i.Ub(),i.Ub(),i.Ub()}if(2&e){const e=i.hc();i.Db(2),i.Mc("Restore folder location: ",e.selNode.channelBackupPath,"/restore")}}function sp(e,t){if(1&e&&(i.Vb(0,"div",27),i.Vb(1,"h4",24),i.Kc(2),i.Ub(),i.Vb(3,"h4",28),i.Kc(4,"All channel backup file not found! To perform channel restoration, channel backup file/s must be placed at the above location."),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(2),i.Mc("Restore folder location: ",e.selNode.channelBackupPath,"/restore")}}function cp(e,t){if(1&e&&(i.Vb(0,"div",27),i.Vb(1,"h4",24),i.Kc(2),i.Ub(),i.Ub()),2&e){const e=i.hc();i.Db(2),i.Mc("Restore folder location: ",e.selNode.channelBackupPath,"/restore")}}function lp(e,t){1&e&&i.Qb(0,"mat-progress-bar",29)}function rp(e,t){1&e&&(i.Vb(0,"th",30),i.Kc(1," Channel Point "),i.Ub())}const bp=function(e){return{"max-width":e}};function up(e,t){if(1&e&&(i.Vb(0,"td",31),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc();i.oc("ngStyle",i.sc(2,bp,n.screenSize===n.screenSizeEnum.XS?"10rem":"45rem")),i.Db(1),i.Lc(null==e?null:e.channel_point)}}function dp(e,t){1&e&&(i.Vb(0,"th",32),i.Vb(1,"span",33),i.Kc(2,"Actions"),i.Ub(),i.Ub())}function hp(e,t){if(1&e){const e=i.Wb();i.Vb(0,"td",34),i.Vb(1,"span",33),i.Vb(2,"button",35),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().onRestoreChannels(n)}),i.Kc(3,"Restore"),i.Ub(),i.Ub(),i.Ub()}}function mp(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No singular channel backups available."),i.Ub())}function pp(e,t){if(1&e&&(i.Vb(0,"td",36),i.Ic(1,mp,2,0,"p",37),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("ngIf",!e.channels||!e.channels.data||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)}}const fp=function(e){return{"display-none":e}};function gp(e,t){if(1&e&&i.Qb(0,"tr",38),2&e){const e=i.hc();i.oc("ngClass",i.sc(1,fp,e.channels&&e.channels.data&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function yp(e,t){1&e&&i.Qb(0,"tr",39)}function Cp(e,t){1&e&&i.Qb(0,"tr",40)}const xp=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},wp=function(){return["no_channel"]};let vp=(()=>{class e{constructor(e,t,n,a){this.logger=e,this.store=t,this.lndEffects=n,this.commonService=a,this.pageSize=p.n,this.pageSizeOptions=p.o,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.allRestoreExists=!1,this.flgLoading=[!0],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=p.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch(new f.pb),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{this.selNode=e.nodeSettings,this.logger.info(e)}),this.lndEffects.setRestoreChannelList.pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{this.allRestoreExists=e.all_restore_exists,this.channelsData=e.files,this.channelsData.length>0&&this.loadRestoreTable(this.channelsData),("error"!==this.flgLoading[0]||e&&e.files)&&(this.flgLoading[0]=!1),this.logger.info(e)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadRestoreTable(this.channelsData)}onRestoreChannels(e){this.store.dispatch(new W.F("Restoring Channels...")),this.store.dispatch(new f.ob({channelPoint:e.channel_point?e.channel_point:"ALL"}))}applyFilter(e){this.channels.filter=e.value}loadRestoreTable(e){this.channels=new Pt.o([...e]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.channels.paginator=this.paginator}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(y.h),i.Pb(Kn.a),i.Pb(x.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-channel-restore-table"]],viewQuery:function(e,t){if(1&e&&(i.Pc(Tt.a,!0),i.Pc(At.a,!0)),2&e){let e;i.vc(e=i.ec())&&(t.sort=e.first),i.vc(e=i.ec())&&(t.paginator=e.first)}},features:[i.Cb([{provide:At.b,useValue:Object(p.y)("Channels")}])],decls:24,vars:16,consts:[["fxLayout","column",1,"mt-2"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","mt-2"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100"],["fxLayout","row",1,"mt-2"],["mat-flat-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap"],["fxFlex","100",1,"mt-1"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell",""],["mat-stroked-button","","color","primary","type","button","tabindex","1",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Ic(1,ip,6,1,"div",1),i.Ic(2,sp,5,1,"div",2),i.Ic(3,cp,3,1,"div",2),i.Vb(4,"div",3),i.Qb(5,"div",4),i.Vb(6,"mat-form-field",5),i.Vb(7,"input",6),i.dc("keyup",function(e){return t.applyFilter(e.target)}),i.Ub(),i.Ub(),i.Ub(),i.Vb(8,"div",7),i.Ic(9,lp,1,0,"mat-progress-bar",8),i.Vb(10,"table",9,10),i.Tb(12,11),i.Ic(13,rp,2,0,"th",12),i.Ic(14,up,2,4,"td",13),i.Sb(),i.Tb(15,14),i.Ic(16,dp,3,0,"th",15),i.Ic(17,hp,4,0,"td",16),i.Sb(),i.Tb(18,17),i.Ic(19,pp,2,1,"td",18),i.Sb(),i.Ic(20,gp,1,3,"tr",19),i.Ic(21,yp,1,0,"tr",20),i.Ic(22,Cp,1,0,"tr",21),i.Ub(),i.Ub(),i.Qb(23,"mat-paginator",22),i.Ub()),2&e&&(i.Db(1),i.oc("ngIf",t.allRestoreExists),i.Db(1),i.oc("ngIf",!t.allRestoreExists&&(!t.channels||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<=0)),i.Db(1),i.oc("ngIf",!t.allRestoreExists&&t.channels&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0),i.Db(6),i.oc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.oc("dataSource",t.channels)("ngClass",i.sc(13,xp,"error"===t.flgLoading[0])),i.Db(10),i.oc("matFooterRowDef",i.rc(15,wp)),i.Db(1),i.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.oc("matRowDefColumns",t.displayedColumns),i.Db(1),i.oc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[w.c,a.o,w.b,w.a,O.c,ce.b,M.b,Pt.n,Tt.a,a.m,I.a,Pt.c,Pt.i,Pt.b,Pt.e,Pt.g,Pt.k,Pt.m,At.a,S.a,s.a,Pt.h,Tt.b,Pt.a,a.p,I.b,Pt.d,Pt.f,Pt.j,Pt.l],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();function Lp(e,t){1&e&&i.Qb(0,"mat-progress-bar",31)}function Up(e,t){1&e&&(i.Vb(0,"th",32),i.Kc(1," Channel Point "),i.Ub())}const Vp=function(e){return{"max-width":e}};function Sp(e,t){if(1&e&&(i.Vb(0,"td",33),i.Kc(1),i.Ub()),2&e){const e=t.$implicit,n=i.hc();i.oc("ngStyle",i.sc(2,Vp,n.screenSize===n.screenSizeEnum.XS?"10rem":"28rem")),i.Db(1),i.Lc(null==e?null:e.channel_point)}}function Dp(e,t){1&e&&(i.Vb(0,"th",34),i.Vb(1,"span",35),i.Kc(2,"Actions"),i.Ub(),i.Ub())}function Ip(e,t){if(1&e){const e=i.Wb();i.Vb(0,"td",36),i.Vb(1,"div",37),i.Vb(2,"mat-select",38),i.Qb(3,"mat-select-trigger"),i.Vb(4,"mat-option",39),i.dc("click",function(n){i.zc(e);const a=t.$implicit;return i.hc().onChannelClick(a,n)}),i.Kc(5,"View Info"),i.Ub(),i.Vb(6,"mat-option",39),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().onBackupChannels(n)}),i.Kc(7,"Backup"),i.Ub(),i.Vb(8,"mat-option",39),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().onDownloadBackup(n)}),i.Kc(9,"Download Backup"),i.Ub(),i.Vb(10,"mat-option",39),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().onVerifyChannels(n)}),i.Kc(11,"Verify"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}}function Fp(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"No channels available."),i.Ub())}function _p(e,t){if(1&e&&(i.Vb(0,"td",40),i.Ic(1,Fp,2,0,"p",41),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("ngIf",!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)}}const kp=function(e){return{"display-none":e}};function Ap(e,t){if(1&e&&i.Qb(0,"tr",42),2&e){const e=i.hc();i.oc("ngClass",i.sc(1,kp,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Tp(e,t){1&e&&i.Qb(0,"tr",43)}function Pp(e,t){1&e&&i.Qb(0,"tr",44)}const Op=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Rp=function(){return["no_channel"]};let Kp=(()=>{class e{constructor(e,t,n,a,o){this.logger=e,this.store=t,this.actions$=n,this.commonService=a,this.rtlEffects=o,this.faInfoCircle=m.t,this.faExclamationTriangle=m.o,this.faArchive=m.c,this.pageSize=p.n,this.pageSizeOptions=p.o,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.flgLoading=[!0],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=p.q,this.unSubs=[new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{this.selNode=e.nodeSettings,e.effectErrors.forEach(e=>{"Fetchchannels"===e.action&&(this.flgLoading[0]="error")}),this.channelsData=e.allChannels,this.channelsData.length>0&&this.loadBackupTable(this.channelsData),"error"!==this.flgLoading[0]&&(this.flgLoading[0]=!1),this.logger.info(e)}),this.actions$.pipe(Object(u.a)(this.unSubs[1]),Object(d.a)(e=>e.type===f.vb||e.type===W.Q)).subscribe(e=>{e.type===f.vb&&(this.selectedChannel=void 0),e.type===W.Q&&(this.commonService.downloadFile(e.payload,"Backup-Channel-"+(this.selectedChannel.channel_point?this.selectedChannel.channel_point:"All"),".bak",".bak"),this.selectedChannel=void 0,this.store.dispatch(new W.i))})}ngAfterViewInit(){this.channelsData.length>0&&this.loadBackupTable(this.channelsData)}onBackupChannels(e){this.store.dispatch(new W.F("Backup Channels...")),this.store.dispatch(new f.d({channelPoint:e.channel_point?e.channel_point:"ALL",showMessage:""}))}onVerifyChannels(e){this.store.dispatch(new W.F("Verify Channels...")),this.store.dispatch(new f.kc({channelPoint:e.channel_point?e.channel_point:"ALL"}))}onDownloadBackup(e){this.selectedChannel=e,this.store.dispatch(new W.F("Downloading Backup File...")),this.store.dispatch(new W.p({channelPoint:e.channel_point?e.channel_point:"all"}))}onChannelClick(e,t){this.store.dispatch(new W.C({data:{channel:e,showCopy:!1,component:ki}}))}applyFilter(e){this.channels.filter=e.value}loadBackupTable(e){this.channels=new Pt.o(e?[...e]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,t)=>e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():e[t]?+e[t]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(e,t)=>((e.active?"active":"inactive")+(e.channel_point?e.channel_point:"")+(e.chan_id?e.chan_id:"")+(e.remote_pubkey?e.remote_pubkey:"")+(e.remote_alias?e.remote_alias:"")+(e.capacity?e.capacity:"")+(e.local_balance?e.local_balance:"")+(e.remote_balance?e.remote_balance:"")+(e.total_satoshis_sent?e.total_satoshis_sent:"")+(e.total_satoshis_received?e.total_satoshis_received:"")+(e.commit_fee?e.commit_fee:"")+(e.private?"private":"public")).includes(t)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(g.b),i.Pb(y.h),i.Pb(C.a),i.Pb(x.a),i.Pb(Rn.a))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-channel-backup-table"]],viewQuery:function(e,t){if(1&e&&(i.Pc(Tt.a,!0),i.Pc(At.a,!0)),2&e){let e;i.vc(e=i.ec())&&(t.sort=e.first),i.vc(e=i.ec())&&(t.paginator=e.first)}},features:[i.Cb([{provide:At.b,useValue:Object(p.y)("Channels")}])],decls:42,vars:17,consts:[["fxLayout","column"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell","","fxLayoutAlign","end center"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"div",2),i.Qb(3,"fa-icon",3),i.Vb(4,"span"),i.Kc(5,"Save your backup files in a redundant location."),i.Ub(),i.Ub(),i.Vb(6,"div",4),i.Qb(7,"fa-icon",3),i.Vb(8,"span"),i.Vb(9,"strong"),i.Kc(10,"Backup Folder Location: "),i.Ub(),i.Kc(11),i.Ub(),i.Ub(),i.Vb(12,"div",5),i.Vb(13,"button",6),i.dc("click",function(){return t.onVerifyChannels({})}),i.Kc(14,"Verify All"),i.Ub(),i.Vb(15,"button",7),i.dc("click",function(){return t.onBackupChannels({})}),i.Kc(16,"Backup All"),i.Ub(),i.Vb(17,"button",8),i.dc("click",function(){return t.onDownloadBackup({})}),i.Kc(18,"Download Backup"),i.Ub(),i.Ub(),i.Ub(),i.Vb(19,"div",9),i.Vb(20,"div",10),i.Qb(21,"fa-icon",11),i.Vb(22,"span",12),i.Kc(23,"Backups"),i.Ub(),i.Ub(),i.Vb(24,"mat-form-field",13),i.Vb(25,"input",14),i.dc("keyup",function(e){return t.applyFilter(e.target)}),i.Ub(),i.Ub(),i.Ub(),i.Vb(26,"div",15),i.Ic(27,Lp,1,0,"mat-progress-bar",16),i.Vb(28,"table",17,18),i.Tb(30,19),i.Ic(31,Up,2,0,"th",20),i.Ic(32,Sp,2,4,"td",21),i.Sb(),i.Tb(33,22),i.Ic(34,Dp,3,0,"th",23),i.Ic(35,Ip,12,0,"td",24),i.Sb(),i.Tb(36,25),i.Ic(37,_p,2,1,"td",26),i.Sb(),i.Ic(38,Ap,1,3,"tr",27),i.Ic(39,Tp,1,0,"tr",28),i.Ic(40,Pp,1,0,"tr",29),i.Ub(),i.Ub(),i.Qb(41,"mat-paginator",30),i.Ub()),2&e&&(i.Db(3),i.oc("icon",t.faExclamationTriangle),i.Db(4),i.oc("icon",t.faInfoCircle),i.Db(4),i.Mc("",t.selNode.channelBackupPath,"."),i.Db(10),i.oc("icon",t.faArchive),i.Db(6),i.oc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.oc("dataSource",t.channels)("ngClass",i.sc(14,Op,"error"===t.flgLoading[0])),i.Db(10),i.oc("matFooterRowDef",i.rc(16,Rp)),i.Db(1),i.oc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.oc("matRowDefColumns",t.displayedColumns),i.Db(1),i.oc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[w.c,w.b,w.a,v.a,S.a,O.c,ce.b,M.b,a.o,Pt.n,Tt.a,a.m,I.a,Pt.c,Pt.i,Pt.b,Pt.e,Pt.g,Pt.k,Pt.m,At.a,s.a,Pt.h,Tt.b,Pt.a,a.p,I.b,Rt.a,Rt.c,Kt.m,Pt.d,Pt.f,Pt.j,Pt.l],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();function Mp(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",8),i.dc("click",function(){i.zc(e);const n=t.$implicit;return i.hc().activeLink=n.link}),i.Kc(1),i.Ub()}if(2&e){const e=t.$implicit,n=i.hc();i.pc("routerLink",e.link),i.oc("active",n.activeLink===e.link),i.Db(1),i.Lc(e.name)}}let Qp=(()=>{class e{constructor(e){this.router=e,this.faUserCheck=m.L,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new b.a,new b.a]}ngOnInit(){let e=this.links.find(e=>this.router.url.includes(e.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe(Object(u.a)(this.unSubs[0]),Object(d.a)(e=>e instanceof o.f)).subscribe(e=>{let t=this.links.find(t=>e.urlAfterRedirects.includes(t.link));this.activeLink=t?t.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(o.g))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-sign-verify-message"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Qb(1,"fa-icon",1),i.Vb(2,"span",2),i.Kc(3,"Sign/Verify Message"),i.Ub(),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"mat-card"),i.Vb(6,"mat-card-content",4),i.Vb(7,"nav",5),i.Ic(8,Mp,2,3,"div",6),i.Ub(),i.Vb(9,"div",7),i.Qb(10,"router-outlet"),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(1),i.oc("icon",t.faUserCheck),i.Db(7),i.oc("ngForOf",t.links))},directives:[w.c,w.b,v.a,U.a,U.b,kt.e,a.n,w.a,o.l,kt.d,o.h],styles:[""]}),e})();function zp(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Message is required."),i.Ub())}let Ep=(()=>{class e{constructor(e,t,n){this.dataService=e,this.snackBar=t,this.logger=n,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new b.a,new b.a]}ngOnInit(){}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{this.signedMessage=this.message,this.signature=e.signature})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(e){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+e)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(Ln.a),i.Pb(vi.b),i.Pb(g.b))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"form",1,2),i.Vb(3,"mat-form-field",3),i.Vb(4,"textarea",4),i.dc("ngModelChange",function(e){return t.message=e})("keyup",function(){return t.onMessageChange()}),i.Ub(),i.Ic(5,zp,2,0,"mat-error",5),i.Ub(),i.Vb(6,"div",6),i.Vb(7,"button",7),i.dc("click",function(){return t.resetData()}),i.Kc(8,"Clear Field"),i.Ub(),i.Vb(9,"button",8),i.dc("click",function(){return t.onSign()}),i.Kc(10,"Sign"),i.Ub(),i.Ub(),i.Qb(11,"mat-divider",9),i.Vb(12,"div",10),i.Vb(13,"p"),i.Kc(14,"Generated Signature"),i.Ub(),i.Ub(),i.Vb(15,"div",11),i.Kc(16),i.Ub(),i.Vb(17,"div",12),i.Vb(18,"button",13),i.dc("copied",function(e){return t.onCopyField(e)}),i.Kc(19,"Copy Signature"),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&e&&(i.Db(4),i.oc("ngModel",t.message),i.Db(1),i.oc("ngIf",!t.message),i.Db(6),i.oc("inset",!0),i.Db(5),i.Lc(t.signature),i.Db(2),i.oc("payload",t.signature))},directives:[w.c,w.a,w.b,B.u,B.n,B.o,O.c,ce.b,B.c,le.a,B.s,B.m,B.p,a.o,S.a,K.a,Li.a,O.b],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();function Np(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Message is required."),i.Ub())}function Gp(e,t){1&e&&(i.Vb(0,"mat-error"),i.Kc(1,"Signature is required."),i.Ub())}function qp(e,t){1&e&&(i.Vb(0,"p",13),i.Vb(1,"mat-icon",14),i.Kc(2,"close"),i.Ub(),i.Kc(3,"Verification failed, please double check message and signature"),i.Ub())}function Bp(e,t){1&e&&(i.Vb(0,"p"),i.Kc(1,"Pubkey Used"),i.Ub())}function Hp(e,t){if(1&e&&(i.Vb(0,"div",20),i.Vb(1,"p"),i.Kc(2),i.Ub(),i.Ub()),2&e){const e=i.hc(2);i.Db(2),i.Lc(null==e.verifyRes?null:e.verifyRes.pubkey)}}function jp(e,t){if(1&e){const e=i.Wb();i.Vb(0,"div",21),i.Vb(1,"button",22),i.dc("copied",function(t){return i.zc(e),i.hc(2).onCopyField(t)}),i.Kc(2,"Copy Pubkey"),i.Ub(),i.Ub()}if(2&e){const e=i.hc(2);i.Db(1),i.oc("payload",null==e.verifyRes?null:e.verifyRes.pubkey)}}function Wp(e,t){if(1&e&&(i.Vb(0,"div",15),i.Qb(1,"mat-divider",16),i.Vb(2,"div",17),i.Ic(3,Bp,2,0,"p",5),i.Ub(),i.Ic(4,Hp,3,1,"div",18),i.Ic(5,jp,3,1,"div",19),i.Ub()),2&e){const e=i.hc();i.Db(1),i.oc("inset",!0),i.Db(2),i.oc("ngIf",e.verifyRes.valid),i.Db(1),i.oc("ngIf",e.verifyRes.valid),i.Db(1),i.oc("ngIf",e.verifyRes.valid)}}let $p=(()=>{class e{constructor(e,t,n){this.dataService=e,this.snackBar=t,this.logger=n,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null},this.unSubs=[new b.a,new b.a]}ngOnInit(){}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe(Object(u.a)(this.unSubs[0])).subscribe(e=>{this.verifyRes=e,this.showVerifyStatus=!0,this.verifiedMessage=this.message,this.verifiedSignature=this.signature})}onChange(){this.verifiedMessage===this.message&&this.verifiedSignature===this.signature||(this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null})}resetData(){this.message="",this.signature="",this.verifyRes=null,this.showVerifyStatus=!1}onCopyField(e){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+e)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(),e.complete()})}}return e.\u0275fac=function(t){return new(t||e)(i.Pb(Ln.a),i.Pb(vi.b),i.Pb(g.b))},e.\u0275cmp=i.Jb({type:e,selectors:[["rtl-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(e,t){1&e&&(i.Vb(0,"div",0),i.Vb(1,"form",1,2),i.Vb(3,"mat-form-field",3),i.Vb(4,"textarea",4),i.dc("ngModelChange",function(e){return t.message=e})("keyup",function(){return t.onChange()}),i.Ub(),i.Ic(5,Np,2,0,"mat-error",5),i.Ub(),i.Vb(6,"mat-form-field",3),i.Vb(7,"input",6,7),i.dc("ngModelChange",function(e){return t.signature=e})("keyup",function(){return t.onChange()}),i.Ub(),i.Ic(9,Gp,2,0,"mat-error",5),i.Ub(),i.Ic(10,qp,4,0,"p",8),i.Vb(11,"div",9),i.Vb(12,"button",10),i.dc("click",function(){return t.resetData()}),i.Kc(13,"Clear Fields"),i.Ub(),i.Vb(14,"button",11),i.dc("click",function(){return t.onVerify()}),i.Kc(15,"Verify"),i.Ub(),i.Ub(),i.Ic(16,Wp,6,4,"div",12),i.Ub(),i.Ub()),2&e&&(i.Db(4),i.oc("ngModel",t.message),i.Db(1),i.oc("ngIf",!t.message),i.Db(2),i.oc("ngModel",t.signature),i.Db(2),i.oc("ngIf",!t.signature),i.Db(1),i.oc("ngIf",t.showVerifyStatus&&!t.verifyRes.valid),i.Db(6),i.oc("ngIf",t.showVerifyStatus&&t.verifyRes.valid))},directives:[w.c,w.a,w.b,B.u,B.n,B.o,O.c,ce.b,B.c,le.a,B.s,B.m,B.p,a.o,S.a,O.b,D.a,K.a,Li.a],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e})();var Xp=n("0dfH"),Jp=n("2h+y");const Zp=o.k.forChild([{path:"",component:r,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:ro,canActivate:[Jp.d]},{path:"wallet",component:Xr,canActivate:[Jp.a]},{path:"onchain",component:Vh,canActivate:[Jp.d],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:Ih,canActivate:[Jp.d]},{path:"send/:selTab",component:im,data:{sweepAll:!1},canActivate:[Jp.d]},{path:"sweep/:selTab",component:im,data:{sweepAll:!0},canActivate:[Jp.d]}]},{path:"connections",component:po,canActivate:[Jp.d],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:wi,canActivate:[Jp.d],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:Ws,canActivate:[Jp.d]},{path:"pending",component:Sl,canActivate:[Jp.d]},{path:"closed",component:$l,canActivate:[Jp.d]},{path:"activehtlcs",component:Vr,canActivate:[Jp.d]}]},{path:"peers",component:fi,data:{sweepAll:!1},canActivate:[Jp.d]}]},{path:"transactions",component:Zr,canActivate:[Jp.d],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:Ma,canActivate:[Jp.d]},{path:"invoices",component:xn,canActivate:[Jp.d]},{path:"queryroutes",component:xb,canActivate:[Jp.d]}]},{path:"messages",component:Qp,canActivate:[Jp.d],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:Ep,canActivate:[Jp.d]},{path:"verify",component:$p,canActivate:[Jp.d]}]},{path:"channelbackup",component:op,canActivate:[Jp.d],children:[{path:"",pathMatch:"full",redirectTo:"bckup"},{path:"bckup",component:Kp,canActivate:[Jp.d]},{path:"restore",component:vp,canActivate:[Jp.d]}]},{path:"routing",component:Jb,canActivate:[Jp.d],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:Lu,canActivate:[Jp.d]},{path:"peers",component:bd,canActivate:[Jp.d]}]},{path:"reports",component:dd,canActivate:[Jp.d],children:[{path:"",pathMatch:"full",redirectTo:"routingfees"},{path:"routingfees",component:xd,canActivate:[Jp.d]},{path:"transactions",component:Fd,canActivate:[Jp.d]}]},{path:"lookups",component:Hb,canActivate:[Jp.d]},{path:"network",component:Lm,canActivate:[Jp.d]},{path:"loop",component:np,canActivate:[Jp.d]},{path:"**",component:Xp.a},{path:"rates",redirectTo:"network"}]}]);var Yp=n("PCNd");let ef=(()=>{class e{}return e.\u0275mod=i.Nb({type:e,bootstrap:[r]}),e.\u0275inj=i.Mb({factory:function(t){return new(t||e)},providers:[Jp.d],imports:[[a.c,Yp.a,Zp]]}),e})()}}]); \ No newline at end of file diff --git a/angular/7.a355238233f02a06308f.js b/angular/7.a355238233f02a06308f.js deleted file mode 100644 index 24f156a7..00000000 --- a/angular/7.a355238233f02a06308f.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{YoDt:function(e,t,n){"use strict";n.r(t),n.d(t,"ECLModule",(function(){return Kr}));var a=n("Ip0R"),i=n("ZYCi"),o=n("CcnG"),c=n("UVSV");function r(e,t){1&e&&o.Rb(0,"mat-progress-bar",2)}function s(e,t){1&e&&o.Rb(0,"router-outlet")}var l=function(){function e(e){var t=this;this.router=e,this.loading=!1,this.router.events.subscribe((function(e){switch(!0){case e instanceof i.e:t.loading=!0;break;case e instanceof i.c:case e instanceof i.b:case e instanceof i.d:t.loading=!1}}))}return e.\u0275fac=function(t){return new(t||e)(o.Qb(i.f))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-root"]],decls:2,vars:2,consts:[["color","primary","mode","indeterminate",4,"ngIf"],[4,"ngIf"],["color","primary","mode","indeterminate"]],template:function(e,t){1&e&&(o.Fc(0,r,1,0,"mat-progress-bar",0),o.Fc(1,s,1,0,"router-outlet",1)),2&e&&(o.pc("ngIf",t.loading),o.Db(1),o.pc("ngIf",!t.loading))},directives:[a.n,c.a,i.k],styles:[""]}),e}(),u=n("K9Ia"),b=n("ny24"),d=n("VnD/"),p=n("twK/"),f=n("wHSu"),m=n("cpEJ"),h=n("7o2P"),g=n("7nzP"),y=n("lF6s"),v=n("yGQT"),x=n("jYNz"),C=n("21Lb"),V=n("Nv++"),w=n("aPcS"),D=n("qLAh"),S=n("zPjY"),W=n("M4kG"),F=n("fPVg"),I=n("hUWP"),L=function(e){return{backgroundColor:e}};function H(e,t){if(1&e&&o.Rb(0,"span",6),2&e){var n=o.ic();o.pc("ngStyle",o.tc(1,L,n.information.color))}}function A(e,t){if(1&e&&(o.Wb(0,"div"),o.Wb(1,"h4",1),o.Hc(2,"Color"),o.Vb(),o.Wb(3,"div",2),o.Rb(4,"span",7),o.Hc(5),o.jc(6,"uppercase"),o.Vb(),o.Vb()),2&e){var n=o.ic();o.Db(4),o.pc("ngStyle",o.tc(4,L,n.information.color)),o.Db(1),o.Jc(" ",o.kc(6,2,n.information.color)," ")}}function R(e,t){if(1&e&&(o.Wb(0,"span",2),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(n)}}var k=function(){function e(e){this.commonService=e,this.chains=[""]}return e.prototype.ngOnChanges=function(){this.chains=[],this.chains.push("Bitcoin "+(this.information.network?this.commonService.titleCase(this.information.network):"Testnet"))},e.\u0275fac=function(t){return new(t||e)(o.Qb(h.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[o.Bb],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div"),o.Wb(2,"h4",1),o.Hc(3,"Alias"),o.Vb(),o.Wb(4,"div",2),o.Hc(5),o.Fc(6,H,1,3,"span",3),o.Vb(),o.Vb(),o.Fc(7,A,7,6,"div",4),o.Wb(8,"div"),o.Wb(9,"h4",1),o.Hc(10,"Implementation"),o.Vb(),o.Wb(11,"div",2),o.Hc(12),o.Vb(),o.Vb(),o.Wb(13,"div"),o.Wb(14,"h4",1),o.Hc(15,"Chain"),o.Vb(),o.Fc(16,R,2,1,"span",5),o.Vb(),o.Vb()),2&e&&(o.Db(5),o.Jc(" ",t.information.alias," "),o.Db(1),o.pc("ngIf",!t.showColorFieldSeparately),o.Db(1),o.pc("ngIf",t.showColorFieldSeparately),o.Db(5),o.Ic(t.information.lnImplementation||t.information.version?t.information.lnImplementation+" "+t.information.version:""),o.Db(4),o.pc("ngForOf",t.chains))},directives:[C.c,C.a,C.b,a.n,a.m,a.o,I.b],pipes:[a.x],styles:[""]}),e}(),O=function(){function e(){this.balances={onchain:0,lightning:0,total:0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-balances-info"]],inputs:{balances:"balances"},decls:21,vars:11,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div"),o.Wb(2,"h4",1),o.Hc(3,"Lightning"),o.Vb(),o.Wb(4,"div",2),o.Hc(5),o.jc(6,"number"),o.Vb(),o.Rb(7,"mat-progress-bar",3),o.Vb(),o.Wb(8,"div"),o.Wb(9,"h4",1),o.Hc(10,"On-chain"),o.Vb(),o.Wb(11,"div",2),o.Hc(12),o.jc(13,"number"),o.Vb(),o.Rb(14,"mat-progress-bar",3),o.Vb(),o.Wb(15,"div"),o.Wb(16,"h4",1),o.Hc(17,"Total"),o.Vb(),o.Wb(18,"div",2),o.Hc(19),o.jc(20,"number"),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(5),o.Jc("",o.kc(6,5,t.balances.lightning)," Sats"),o.Db(2),o.qc("value",t.balances.lightning/t.balances.total*100),o.Db(5),o.Jc("",o.kc(13,7,t.balances.onchain)," Sats"),o.Db(2),o.qc("value",t.balances.onchain/t.balances.total*100),o.Db(5),o.Jc("",o.kc(20,9,t.balances.total)," Sats"))},directives:[C.c,C.a,C.b,c.a],pipes:[a.e],styles:[""]}),e}(),P=n("dlst"),T=n("v/zR"),E=n("FZ+F"),M=n("g2ei");function z(e,t){if(1&e&&(o.Wb(0,"div",17),o.Wb(1,"span",18),o.Hc(2),o.jc(3,"slice"),o.Vb(),o.Wb(4,"div",3),o.Wb(5,"mat-hint",19),o.Wb(6,"strong",5),o.Hc(7,"Local:"),o.Vb(),o.Hc(8),o.jc(9,"number"),o.Vb(),o.Wb(10,"mat-hint",20),o.Rb(11,"fa-icon",21),o.Hc(12),o.jc(13,"number"),o.Vb(),o.Wb(14,"mat-hint",22),o.Wb(15,"strong",5),o.Hc(16,"Remote:"),o.Vb(),o.Hc(17),o.jc(18,"number"),o.Vb(),o.Vb(),o.Rb(19,"mat-progress-bar",23),o.Vb()),2&e){var n=t.$implicit,a=o.ic(2);o.Db(1),o.qc("matTooltip",n.alias||n.shortChannelId),o.qc("matTooltipDisabled",(n.alias||n.shortChannelId).length<26),o.Db(1),o.Kc("",o.mc(3,9,(null==n?null:n.alias)||(null==n?null:n.shortChannelId),0,24),"",((null==n?null:n.alias)||(null==n?null:n.shortChannelId)).length>25?"...":"",""),o.Db(6),o.Jc("",o.lc(9,13,(null==n?null:n.toLocal)||0,"1.0-0")," Sats"),o.Db(3),o.pc("icon",a.faBalanceScale),o.Db(1),o.Jc(" (",o.kc(13,16,(null==n?null:n.balancedness)||0),") "),o.Db(5),o.Jc("",o.lc(18,18,(null==n?null:n.toRemote)||0,"1.0-0")," Sats"),o.Db(2),o.qc("value",n.toLocal&&n.toLocal>0?(n.toLocal-0)/(n.toLocal-0+(n.toRemote-0))*100:0)}}function B(e,t){if(1&e&&(o.Wb(0,"div",15),o.Fc(1,z,20,21,"div",16),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngForOf",n.allChannels)}}function N(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",24),o.Hc(1," No channels available. "),o.Wb(2,"button",25),o.ec("click",(function(){return o.yc(n),o.ic().goToChannels()})),o.Hc(3,"Open Channel"),o.Vb(),o.Vb()}}var q=function(){function e(e){this.router=e,this.faBalanceScale=f.d,this.faDumbbell=f.k,this.sortBy="Balance Score"}return e.prototype.goToChannels=function(){this.router.navigateByUrl("/ecl/peerschannels")},e.\u0275fac=function(t){return new(t||e)(o.Qb(i.f))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy"},decls:26,vars:15,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["perfectScrollbar","",1,"channels-capacity-scroll"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"]],template:function(e,t){if(1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"span",2),o.Hc(3,"Total Capacity"),o.Vb(),o.Wb(4,"div",3),o.Wb(5,"mat-hint",4),o.Wb(6,"strong",5),o.Hc(7,"Local:"),o.Vb(),o.Hc(8),o.jc(9,"number"),o.Vb(),o.Wb(10,"mat-hint",6),o.Rb(11,"fa-icon",7),o.Hc(12),o.jc(13,"number"),o.Vb(),o.Wb(14,"mat-hint",8),o.Wb(15,"strong",5),o.Hc(16,"Remote:"),o.Vb(),o.Hc(17),o.jc(18,"number"),o.Vb(),o.Vb(),o.Rb(19,"mat-progress-bar",9),o.Vb(),o.Wb(20,"div",10),o.Rb(21,"mat-divider",11),o.Vb(),o.Wb(22,"div",12),o.Fc(23,B,2,1,"div",13),o.Vb(),o.Vb(),o.Fc(24,N,4,0,"ng-template",null,14,o.Gc)),2&e){var n=o.wc(25);o.Db(8),o.Jc("",o.lc(9,7,t.channelBalances.localBalance||0,"1.0-0")," Sats"),o.Db(3),o.pc("icon",t.faBalanceScale),o.Db(1),o.Jc(" (",o.kc(13,10,(null==t.channelBalances?null:t.channelBalances.balancedness)||0),") "),o.Db(5),o.Jc("",o.lc(18,12,t.channelBalances.remoteBalance||0,"1.0-0")," Sats"),o.Db(2),o.qc("value",t.channelBalances.localBalance&&t.channelBalances.localBalance>0?(t.channelBalances.localBalance-0)/(t.channelBalances.localBalance-0+(t.channelBalances.remoteBalance-0))*100:0),o.Db(4),o.pc("ngIf",t.allChannels&&(null==t.allChannels?null:t.allChannels.length)>0)("ngIfElse",n)}},directives:[C.c,C.b,C.a,P.f,V.a,T.a,c.a,E.a,M.b,a.n,a.m,W.a],pipes:[a.e,a.v],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),e}(),U=function(){function e(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}return e.prototype.ngOnChanges=function(){if(this.fees.monthly_fee){this.totalFees=[{name:"Monthly",value:this.fees.monthly_fee},{name:"Weekly",value:this.fees.weekly_fee},{name:"Daily ",value:this.fees.daily_fee}];var e=Math.ceil(Math.log(this.fees.monthly_fee+1)/Math.LN10),t=Math.pow(10,e-1);this.maxFeeValue=Math.ceil(this.fees.monthly_fee/t)*t/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-fee-info"]],inputs:{fees:"fees"},features:[o.Bb],decls:38,vars:18,consts:[["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div"),o.Wb(2,"h4",1),o.Hc(3,"Daily"),o.Vb(),o.Wb(4,"div",2),o.Hc(5),o.jc(6,"number"),o.Vb(),o.Vb(),o.Wb(7,"div"),o.Wb(8,"h4",1),o.Hc(9,"Weekly"),o.Vb(),o.Wb(10,"div",2),o.Hc(11),o.jc(12,"number"),o.Vb(),o.Vb(),o.Wb(13,"div"),o.Wb(14,"h4",1),o.Hc(15,"Monthly"),o.Vb(),o.Wb(16,"div",2),o.Hc(17),o.jc(18,"number"),o.Vb(),o.Vb(),o.Vb(),o.Wb(19,"div",0),o.Wb(20,"div"),o.Wb(21,"h4",1),o.Hc(22,"Transactions"),o.Vb(),o.Wb(23,"div",2),o.Hc(24),o.jc(25,"number"),o.Vb(),o.Vb(),o.Wb(26,"div"),o.Wb(27,"h4",1),o.Hc(28,"Transactions"),o.Vb(),o.Wb(29,"div",2),o.Hc(30),o.jc(31,"number"),o.Vb(),o.Vb(),o.Wb(32,"div"),o.Wb(33,"h4",1),o.Hc(34,"Transactions"),o.Vb(),o.Wb(35,"div",2),o.Hc(36),o.jc(37,"number"),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(5),o.Jc("",o.kc(6,6,null==t.fees?null:t.fees.daily_fee)," Sats"),o.Db(6),o.Jc("",o.kc(12,8,null==t.fees?null:t.fees.weekly_fee)," Sats"),o.Db(6),o.Jc("",o.kc(18,10,null==t.fees?null:t.fees.monthly_fee)," Sats"),o.Db(7),o.Ic(o.kc(25,12,null==t.fees?null:t.fees.daily_txs)),o.Db(6),o.Ic(o.kc(31,14,null==t.fees?null:t.fees.weekly_txs)),o.Db(6),o.Ic(o.kc(37,16,null==t.fees?null:t.fees.monthly_txs)))},directives:[C.c,C.a,C.b],pipes:[a.e],styles:[""]}),e}(),j=function(){function e(){this.channelsStatus={}}return e.prototype.ngOnChanges=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus"},features:[o.Bb],decls:41,vars:18,consts:[["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div"),o.Wb(2,"h4",1),o.Hc(3,"Active"),o.Vb(),o.Wb(4,"div",2),o.Rb(5,"span",3),o.Hc(6),o.jc(7,"number"),o.Vb(),o.Vb(),o.Wb(8,"div"),o.Wb(9,"h4",1),o.Hc(10,"Pending"),o.Vb(),o.Wb(11,"div",2),o.Rb(12,"span",4),o.Hc(13),o.jc(14,"number"),o.Vb(),o.Vb(),o.Wb(15,"div"),o.Wb(16,"h4",1),o.Hc(17,"Inactive"),o.Vb(),o.Wb(18,"div",2),o.Rb(19,"span",5),o.Hc(20),o.jc(21,"number"),o.Vb(),o.Vb(),o.Vb(),o.Wb(22,"div",0),o.Wb(23,"div"),o.Wb(24,"h4",1),o.Hc(25,"Capacity"),o.Vb(),o.Wb(26,"div",2),o.Hc(27),o.jc(28,"number"),o.Vb(),o.Vb(),o.Wb(29,"div"),o.Wb(30,"h4",1),o.Hc(31,"Capacity"),o.Vb(),o.Wb(32,"div",2),o.Hc(33),o.jc(34,"number"),o.Vb(),o.Vb(),o.Wb(35,"div"),o.Wb(36,"h4",1),o.Hc(37,"Capacity"),o.Vb(),o.Wb(38,"div",2),o.Hc(39),o.jc(40,"number"),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(6),o.Ic(o.kc(7,6,(null==t.channelsStatus.active?null:t.channelsStatus.active.channels)||0)),o.Db(7),o.Ic(o.kc(14,8,(null==t.channelsStatus.pending?null:t.channelsStatus.pending.channels)||0)),o.Db(7),o.Ic(o.kc(21,10,(null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.channels)||0)),o.Db(7),o.Jc("",o.kc(28,12,(null==t.channelsStatus.active?null:t.channelsStatus.active.capacity)||0)," Sats"),o.Db(6),o.Jc("",o.kc(34,14,(null==t.channelsStatus.pending?null:t.channelsStatus.pending.capacity)||0)," Sats"),o.Db(6),o.Jc("",o.kc(40,16,(null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.capacity)||0)," Sats"))},directives:[C.c,C.a,C.b],pipes:[a.e],styles:[""]}),e}();function Q(e,t){if(1&e&&(o.Wb(0,"mat-hint",17),o.Wb(1,"strong",18),o.Hc(2,"Capacity: "),o.Vb(),o.Hc(3),o.jc(4,"number"),o.Vb()),2&e){var n=o.ic().$implicit;o.Db(3),o.Jc("",o.lc(4,1,n.toRemote||0,"1.0-0")," Sats")}}function _(e,t){if(1&e&&(o.Wb(0,"mat-hint",17),o.Wb(1,"strong",18),o.Hc(2,"Capacity: "),o.Vb(),o.Hc(3),o.jc(4,"number"),o.Vb()),2&e){var n=o.ic().$implicit;o.Db(3),o.Jc("",o.lc(4,1,n.toLocal||0,"1.0-0")," Sats")}}function $(e,t){if(1&e&&o.Rb(0,"mat-progress-bar",19),2&e){var n=o.ic().$implicit,a=o.ic(2);o.qc("value",a.totalLiquidity>0?(n.toRemote-0||0)/a.totalLiquidity*100:0)}}function X(e,t){if(1&e&&o.Rb(0,"mat-progress-bar",19),2&e){var n=o.ic().$implicit,a=o.ic(2);o.qc("value",a.totalLiquidity>0?(n.toLocal-0||0)/a.totalLiquidity*100:0)}}function J(e,t){if(1&e&&(o.Wb(0,"div",12),o.Wb(1,"span",13),o.Hc(2),o.jc(3,"slice"),o.Vb(),o.Wb(4,"div",14),o.Fc(5,Q,5,4,"mat-hint",15),o.Fc(6,_,5,4,"mat-hint",15),o.Vb(),o.Fc(7,$,1,1,"mat-progress-bar",16),o.Fc(8,X,1,1,"mat-progress-bar",16),o.Vb()),2&e){var n=t.$implicit,a=o.ic(2);o.Db(1),o.qc("matTooltip",n.alias||n.shortChannelId),o.qc("matTooltipDisabled",(n.alias||n.shortChannelId).length<26),o.Db(1),o.Kc("",o.mc(3,8,n.alias||n.shortChannelId,0,24),"",(n.alias||n.shortChannelId).length>25?"...":"",""),o.Db(3),o.pc("ngIf","In"===a.direction),o.Db(1),o.pc("ngIf","Out"===a.direction),o.Db(1),o.pc("ngIf","In"===a.direction),o.Db(1),o.pc("ngIf","Out"===a.direction)}}function G(e,t){if(1&e&&(o.Wb(0,"div",10),o.Fc(1,J,9,12,"div",11),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngForOf",n.allChannels)}}function K(e,t){if(1&e){var n=o.Xb();o.Wb(0,"button",22),o.ec("click",(function(){return o.yc(n),o.ic(2).goToChannels()})),o.Hc(1,"Open Channel"),o.Vb()}}function Y(e,t){if(1&e&&(o.Wb(0,"div",20),o.Hc(1," No channels available. "),o.Fc(2,K,2,0,"button",21),o.Vb()),2&e){var n=o.ic();o.Db(2),o.pc("ngIf","Out"===n.direction)}}var Z=function(){function e(e){this.router=e}return e.prototype.goToChannels=function(){this.router.navigateByUrl("/ecl/peerschannels")},e.\u0275fac=function(t){return new(t||e)(o.Qb(i.f))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels"},decls:14,vars:6,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["fxLayout","column","fxFlex.gt-sm","88","fxFlex","84","fxLayoutAlign","start start","perfectScrollbar","",1,"channels-capacity-scroll"],["fxLayout","column","fxFlex","100","class","w-100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["fxLayout","column","fxFlex","100",1,"w-100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","100","fxLayoutAlign","start center","class","font-size-90 color-primary",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"]],template:function(e,t){if(1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"span",2),o.Hc(3,"Total Capacity"),o.Vb(),o.Wb(4,"mat-hint",3),o.Hc(5),o.jc(6,"number"),o.Vb(),o.Rb(7,"mat-progress-bar",4),o.Vb(),o.Wb(8,"div",5),o.Rb(9,"mat-divider",6),o.Vb(),o.Wb(10,"div",7),o.Fc(11,G,2,1,"div",8),o.Vb(),o.Vb(),o.Fc(12,Y,3,1,"ng-template",null,9,o.Gc)),2&e){var n=o.wc(13);o.Db(5),o.Jc("",o.lc(6,3,t.totalLiquidity,"1.0-0")," Sats"),o.Db(6),o.pc("ngIf",t.allChannels&&t.allChannels.length>0)("ngIfElse",n)}},directives:[C.c,C.b,C.a,P.f,c.a,E.a,M.b,a.n,a.m,T.a,W.a],pipes:[a.e,a.v],styles:[""]}),e}(),ee=n("VkXI"),te=n("mrSG"),ne=n("kfqd"),ae=n("BqIw"),ie=n("JeCn"),oe=n("4lrr"),ce=n("/uX3"),re=n("gIcY"),se=n("UTvR"),le=n("O4ig"),ue=n("B0X+"),be=n("8KZq"),de=n("eO+G");function pe(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Description is required."),o.Vb())}function fe(e,t){if(1&e&&(o.Wb(0,"mat-option",25),o.Hc(1),o.jc(2,"titlecase"),o.Vb()),2&e){var n=t.$implicit;o.pc("value",n),o.Db(1),o.Ic(o.kc(2,2,n))}}function me(e,t){if(1&e&&(o.Wb(0,"span"),o.Hc(1),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.Ic(n.invoiceError)}}function he(e,t){if(1&e&&(o.Wb(0,"div",26),o.Rb(1,"fa-icon",27),o.Fc(2,me,2,1,"span",11),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("icon",n.faExclamationTriangle),o.Db(1),o.pc("ngIf",""!==n.invoiceError)}}var ge=function(){function e(e,t,n,a,i,o){this.dialogRef=e,this.data=t,this.store=n,this.decimalPipe=a,this.commonService=i,this.actions$=o,this.faExclamationTriangle=f.n,this.selNode={},this.description="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=g.m,this.timeUnitEnum=g.t,this.timeUnits=g.r,this.selTimeUnit=g.t.SECS,this.invoiceError="",this.unSubs=[new u.a,new u.a,new u.a,new u.a,new u.a]}return e.prototype.ngOnInit=function(){var e=this;this.pageSize=this.data.pageSize,this.store.select("ecl").pipe(Object(b.a)(this.unSubs[0])).subscribe((function(t){e.selNode=t.nodeSettings,e.information=t.information})),this.actions$.pipe(Object(b.a)(this.unSubs[1]),Object(d.a)((function(e){return e.type===y.j||e.type===y.p}))).subscribe((function(t){t.type===y.p&&e.dialogRef.close(),t.type===y.j&&"CreateInvoice"===t.payload.action&&(e.invoiceError=t.payload.message)}))},e.prototype.onAddInvoice=function(e){if(this.invoiceError="",!this.description)return!0;var t,n=this.expiry?this.expiry:3600;this.selTimeUnit!==g.t.SECS&&(n=this.commonService.convertTime(this.expiry,this.selTimeUnit,g.t.SECS)),t=this.invoiceValue?{description:this.description,expireIn:n,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:n},this.store.dispatch(new ce.F("Creating Invoice...")),this.store.dispatch(new y.g(t))},e.prototype.resetData=function(){this.description="",this.invoiceValue=void 0,this.private=!1,this.expiry=void 0,this.invoiceValueHint="",this.selTimeUnit=g.t.SECS,this.invoiceError=""},e.prototype.onInvoiceValueChange=function(){var e=this;this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,g.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(b.a)(this.unSubs[2])).subscribe((function(t){e.invoiceValueHint="= "+t.symbol+e.decimalPipe.transform(t.OTHER,g.f.OTHER)+" "+t.unit})))},e.prototype.onTimeUnitChange=function(e){this.expiry&&this.selTimeUnit!==e.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,e.value)),this.selTimeUnit=e.value},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(oe.f),o.Qb(oe.a),o.Qb(v.h),o.Qb(a.e),o.Qb(h.a),o.Qb(x.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-create-invoices"]],decls:35,vars:14,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"mt-5px"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","2","name","description","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","step","100","min","1","tabindex","3","name","invoiceValue",3,"ngModel","ngModelChange","keyup"],["matSuffix",""],["fxFlex","30"],["matInput","","placeholder","Expiry","type","number","min","1","tabindex","4","name","expiry",3,"ngModel","step","ngModelChange"],["fxFlex","26"],["tabindex","5","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"mat-card-header",2),o.Wb(3,"div",3),o.Wb(4,"span",4),o.Hc(5,"Create Invoice"),o.Vb(),o.Vb(),o.Wb(6,"button",5),o.Hc(7,"X"),o.Vb(),o.Vb(),o.Wb(8,"mat-card-content",6),o.Wb(9,"form",7,8),o.Wb(11,"mat-form-field",9),o.Wb(12,"input",10),o.ec("ngModelChange",(function(e){return t.description=e})),o.Vb(),o.Fc(13,pe,2,0,"mat-error",11),o.Vb(),o.Wb(14,"div",12),o.Wb(15,"mat-form-field",13),o.Wb(16,"input",14),o.ec("ngModelChange",(function(e){return t.invoiceValue=e}))("keyup",(function(){return t.onInvoiceValueChange()})),o.Vb(),o.Wb(17,"span",15),o.Hc(18),o.Vb(),o.Wb(19,"mat-hint"),o.Hc(20),o.Vb(),o.Vb(),o.Wb(21,"mat-form-field",16),o.Wb(22,"input",17),o.ec("ngModelChange",(function(e){return t.expiry=e})),o.Vb(),o.Wb(23,"span",15),o.Hc(24),o.jc(25,"titlecase"),o.Vb(),o.Vb(),o.Wb(26,"mat-form-field",18),o.Wb(27,"mat-select",19),o.ec("selectionChange",(function(e){return t.onTimeUnitChange(e)})),o.Fc(28,fe,3,4,"mat-option",20),o.Vb(),o.Vb(),o.Vb(),o.Fc(29,he,3,2,"div",21),o.Wb(30,"div",22),o.Wb(31,"button",23),o.ec("click",(function(){return t.resetData()})),o.Hc(32,"Clear Field"),o.Vb(),o.Wb(33,"button",24),o.ec("click",(function(){o.yc(n);var e=o.wc(10);return t.onAddInvoice(e)})),o.Hc(34,"Create Invoice"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()}2&e&&(o.Db(6),o.pc("mat-dialog-close",!1),o.Db(6),o.pc("ngModel",t.description),o.Db(1),o.pc("ngIf",!t.description),o.Db(3),o.pc("ngModel",t.invoiceValue),o.Db(2),o.Jc(" ",null==t.information?null:t.information.smaller_currency_unit," "),o.Db(2),o.Ic(t.invoiceValueHint),o.Db(2),o.qc("step",t.selTimeUnit===t.timeUnitEnum.SECS?300:t.selTimeUnit===t.timeUnitEnum.MINS?10:t.selTimeUnit===t.timeUnitEnum.HOURS?2:1),o.pc("ngModel",t.expiry),o.Db(2),o.Jc(" ",o.kc(25,12,t.selTimeUnit)," "),o.Db(3),o.pc("value",t.selTimeUnit),o.Db(1),o.pc("ngForOf",t.timeUnits),o.Db(1),o.pc("ngIf",""!==t.invoiceError))},directives:[C.c,C.a,D.c,C.b,W.a,oe.d,D.b,re.t,re.m,re.n,P.c,se.b,re.b,le.a,re.r,re.l,re.o,a.n,re.p,ue.a,P.g,P.f,be.a,a.m,P.b,de.n,V.a],pipes:[a.w],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}(),ye=n("bdpe"),ve=n("mNcL"),xe=n("X9mX");function Ce(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Description is required."),o.Vb())}function Ve(e,t){if(1&e){var n=o.Xb();o.Wb(0,"form",32,33),o.Wb(2,"mat-form-field",34),o.Wb(3,"input",35),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().description=e})),o.Vb(),o.Fc(4,Ce,2,0,"mat-error",36),o.Vb(),o.Wb(5,"mat-form-field",37),o.Wb(6,"input",38),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().invoiceValue=e}))("keyup",(function(){return o.yc(n),o.ic().onInvoiceValueChange()})),o.Vb(),o.Wb(7,"span",39),o.Hc(8),o.Vb(),o.Wb(9,"mat-hint"),o.Hc(10),o.Vb(),o.Vb(),o.Wb(11,"div",40),o.Wb(12,"button",41),o.ec("click",(function(){return o.yc(n),o.ic().resetData()})),o.Hc(13,"Clear Field"),o.Vb(),o.Wb(14,"button",42),o.ec("click",(function(){o.yc(n);var e=o.wc(1);return o.ic().onAddInvoice(e)})),o.Hc(15,"Create Invoice"),o.Vb(),o.Vb(),o.Vb()}if(2&e){var a=o.ic();o.Db(3),o.pc("ngModel",a.description),o.Db(1),o.pc("ngIf",!a.description),o.Db(2),o.pc("ngModel",a.invoiceValue),o.Db(2),o.Jc(" ",null==a.information?null:a.information.smaller_currency_unit," "),o.Db(2),o.Ic(a.invoiceValueHint)}}function we(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",43),o.Wb(1,"button",44),o.ec("click",(function(){return o.yc(n),o.ic().openCreateInvoiceModal()})),o.Hc(2,"Create Invoice"),o.Vb(),o.Vb()}}function De(e,t){1&e&&o.Rb(0,"mat-progress-bar",45)}function Se(e,t){1&e&&(o.Wb(0,"th",46),o.Hc(1," Date Created "),o.Vb())}var We=function(e){return{"mr-0":e}};function Fe(e,t){if(1&e&&o.Rb(0,"span",51),2&e){var n=o.ic(2);o.pc("ngClass",o.tc(1,We,n.screenSize===n.screenSizeEnum.XS))}}function Ie(e,t){if(1&e&&o.Rb(0,"span",52),2&e){var n=o.ic(2);o.pc("ngClass",o.tc(1,We,n.screenSize===n.screenSizeEnum.XS))}}function Le(e,t){if(1&e&&o.Rb(0,"span",53),2&e){var n=o.ic(2);o.pc("ngClass",o.tc(1,We,n.screenSize===n.screenSizeEnum.XS))}}function He(e,t){if(1&e&&(o.Wb(0,"td",47),o.Fc(1,Fe,1,3,"span",48),o.Fc(2,Ie,1,3,"span",49),o.Fc(3,Le,1,3,"span",50),o.Hc(4),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.pc("ngIf","received"===n.status),o.Db(1),o.pc("ngIf","unpaid"===n.status),o.Db(1),o.pc("ngIf","expired"===n.status||"unknown"===n.status),o.Db(1),o.Jc(" ",n.timestampStr," ")}}function Ae(e,t){1&e&&(o.Wb(0,"th",46),o.Hc(1," Date Settled "),o.Vb())}function Re(e,t){if(1&e&&(o.Wb(0,"td",47),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(n.receivedAtStr||"-")}}function ke(e,t){1&e&&(o.Wb(0,"th",46),o.Hc(1," Description "),o.Vb())}var Oe=function(e){return{"max-width":e}};function Pe(e,t){if(1&e&&(o.Wb(0,"td",47),o.Wb(1,"div",54),o.Wb(2,"span",55),o.Hc(3),o.Vb(),o.Vb(),o.Vb()),2&e){var n=t.$implicit,a=o.ic();o.Db(1),o.pc("ngStyle",o.tc(2,Oe,a.screenSize===a.screenSizeEnum.XS?"10rem":"32rem")),o.Db(2),o.Ic(n.description)}}function Te(e,t){1&e&&(o.Wb(0,"th",56),o.Hc(1," Amount (Sats) "),o.Vb())}function Ee(e,t){if(1&e&&(o.Wb(0,"td",57),o.Wb(1,"span",58),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",n.amount?o.lc(3,1,n.amount,"1.0-0"):"-","")}}function Me(e,t){1&e&&(o.Wb(0,"th",56),o.Hc(1," Amount Settled (Sats) "),o.Vb())}function ze(e,t){if(1&e&&(o.Wb(0,"td",57),o.Wb(1,"span",58),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",n.amountSettled?o.lc(3,1,n.amountSettled,"1.0-0"):"-","")}}function Be(e,t){if(1&e){var n=o.Xb();o.Wb(0,"th",59),o.Wb(1,"div",60),o.Wb(2,"mat-select",61),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",62),o.ec("click",(function(){return o.yc(n),o.ic().onDownloadCSV()})),o.Hc(5,"Download CSV"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}}var Ne=function(e){return{"px-3":e}};function qe(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",63),o.Wb(1,"button",64),o.ec("click",(function(e){o.yc(n);var a=t.$implicit;return o.ic().onInvoiceClick(a,e)})),o.Hc(2,"View Info"),o.Vb(),o.Vb()}if(2&e){var a=o.ic();o.pc("ngClass",o.tc(1,Ne,a.screenSize!==a.screenSizeEnum.XS))}}function Ue(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No invoices available."),o.Vb())}function je(e,t){if(1&e&&(o.Wb(0,"td",65),o.Fc(1,Ue,2,0,"p",36),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngIf",!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)}}var Qe=function(e){return{"display-none":e}};function _e(e,t){if(1&e&&o.Rb(0,"tr",66),2&e){var n=o.ic();o.pc("ngClass",o.tc(1,Qe,(null==n.invoices?null:n.invoices.data)&&(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)>0))}}function $e(e,t){1&e&&o.Rb(0,"tr",67)}function Xe(e,t){if(1&e&&o.Rb(0,"tr",68),2&e){var n=t.$implicit,a=o.ic();o.pc("@newlyAddedRowAnimation",n.label==a.newlyAddedInvoiceMemo&&n.value==a.newlyAddedInvoiceValue&&a.flgAnimate?"added":"notAdded")}}var Je=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Ge=function(){return["no_invoice"]},Ke=function(){function e(e,t,n,a,i){this.logger=e,this.store=t,this.decimalPipe=n,this.commonService=a,this.rtlEffects=i,this.showDetails=!0,this.faHistory=f.q,this.selNode={},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.flgAnimate=!0,this.description="",this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoiceJSONArr=[],this.information={},this.flgLoading=[!0],this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new u.a,new u.a,new u.a,new u.a,new u.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","actions"]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","amountSettled","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","receivedAt","description","amount","amountSettled","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.dispatch(new y.x),this.store.select("ecl").pipe(Object(b.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchInvoices"===t.action&&(e.flgLoading[0]="error")})),e.selNode=t.nodeSettings,e.information=t.information,e.logger.info(t),e.invoiceJSONArr=t.invoices&&t.invoices.length>0?t.invoices:[],e.invoices=new ie.o(t.invoices?[]:Object(te.g)(e.invoiceJSONArr)),e.invoices.data=e.invoiceJSONArr,e.invoices.sort=e.sort,e.invoices.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},e.invoices.paginator=e.paginator,setTimeout((function(){e.flgAnimate=!1}),5e3),e.logger.info(e.invoices),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.invoices)}))},e.prototype.openCreateInvoiceModal=function(){this.store.dispatch(new ce.C({data:{pageSize:this.pageSize,component:ge}}))},e.prototype.onAddInvoice=function(e){if(!this.description)return!0;var t,n=this.expiry?this.expiry:3600;this.flgAnimate=!0,this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue,t=this.invoiceValue?{description:this.description,expireIn:n,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:n},this.store.dispatch(new ce.F("Creating Invoice...")),this.store.dispatch(new y.g(t)),this.resetData()},e.prototype.onInvoiceClick=function(e,t){this.store.dispatch(new ce.C({data:{invoice:e,newlyAdded:!1,component:ye.a}}))},e.prototype.resetData=function(){this.description="",this.invoiceValue=void 0,this.expiry=void 0,this.invoiceValueHint=""},e.prototype.applyFilter=function(e){this.invoices.filter=e},e.prototype.onInvoiceValueChange=function(){var e=this;this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,g.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(b.a)(this.unSubs[1])).subscribe((function(t){e.invoiceValueHint="= "+t.symbol+e.decimalPipe.transform(t.OTHER,g.f.OTHER)+" "+t.unit})))},e.prototype.onDownloadCSV=function(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(v.h),o.Qb(a.e),o.Qb(h.a),o.Qb(xe.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-lightning-invoices"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Dc(ne.a,!0)),2&e&&(o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.paginator=n.first))},inputs:{showDetails:"showDetails"},features:[o.Cb([{provide:ne.b,useValue:Object(g.w)("Invoices")}])],decls:39,vars:19,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","receivedAt"],["matColumnDef","description"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pr-3",4,"matCellDef"],["matColumnDef","amountSettled"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["matInput","","placeholder","Description","tabindex","2","name","description","required","true",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","step","100","min","1","tabindex","3","name","invoiceValue",3,"ngModel","ngModelChange","keyup"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","9","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Received","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Received","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red",3,"ngClass"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pr-3"],["mat-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Fc(1,Ve,16,5,"form",1),o.Fc(2,we,3,0,"div",2),o.Wb(3,"div",3),o.Wb(4,"div",4),o.Wb(5,"div",5),o.Rb(6,"fa-icon",6),o.Wb(7,"span",7),o.Hc(8,"Invoices History"),o.Vb(),o.Vb(),o.Wb(9,"mat-form-field",8),o.Wb(10,"input",9),o.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),o.Vb(),o.Vb(),o.Vb(),o.Wb(11,"div",10),o.Fc(12,De,1,0,"mat-progress-bar",11),o.Wb(13,"table",12,13),o.Ub(15,14),o.Fc(16,Se,2,0,"th",15),o.Fc(17,He,5,4,"td",16),o.Tb(),o.Ub(18,17),o.Fc(19,Ae,2,0,"th",15),o.Fc(20,Re,2,1,"td",16),o.Tb(),o.Ub(21,18),o.Fc(22,ke,2,0,"th",15),o.Fc(23,Pe,4,4,"td",16),o.Tb(),o.Ub(24,19),o.Fc(25,Te,2,0,"th",20),o.Fc(26,Ee,4,4,"td",21),o.Tb(),o.Ub(27,22),o.Fc(28,Me,2,0,"th",20),o.Fc(29,ze,4,4,"td",21),o.Tb(),o.Ub(30,23),o.Fc(31,Be,6,0,"th",24),o.Fc(32,qe,3,3,"td",25),o.Tb(),o.Ub(33,26),o.Fc(34,je,2,1,"td",27),o.Tb(),o.Fc(35,_e,1,3,"tr",28),o.Fc(36,$e,1,0,"tr",29),o.Fc(37,Xe,1,1,"tr",30),o.Vb(),o.Vb(),o.Rb(38,"mat-paginator",31),o.Vb(),o.Vb()),2&e&&(o.Db(1),o.pc("ngIf",!t.showDetails),o.Db(1),o.pc("ngIf",t.showDetails),o.Db(1),o.pc("ngClass",o.tc(14,Qe,!t.showDetails)),o.Db(3),o.pc("icon",t.faHistory),o.Db(6),o.pc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.pc("dataSource",t.invoices)("ngClass",o.tc(16,Je,"error"===t.flgLoading[0])),o.Db(22),o.pc("matFooterRowDef",o.sc(18,Ge)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns),o.Db(1),o.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[C.c,C.a,C.b,a.n,a.l,I.a,V.a,P.c,se.b,M.b,ie.n,ae.a,ie.c,ie.i,ie.b,ie.e,ie.g,ie.k,ie.m,ne.a,re.t,re.m,re.n,re.b,re.r,re.l,re.o,re.p,ue.a,P.g,P.f,W.a,P.b,c.a,ie.h,ae.b,ie.a,T.a,a.o,I.b,be.a,be.c,de.n,ie.d,ie.f,ie.j,ie.l],pipes:[a.e],styles:[".mat-column-description[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"],data:{animation:[ve.a]}}),e}(),Ye=n("VNr4"),Ze=n("t9fZ"),et=n("iiaH"),tt=n("D9sq"),nt=["paymentReq"];function at(e,t){if(1&e&&(o.Wb(0,"mat-hint"),o.Hc(1),o.Vb()),2&e){var n=o.ic();o.Db(1),o.Ic(n.paymentDecodedHint)}}function it(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Payment request is required."),o.Vb())}function ot(e,t){if(1&e&&(o.Wb(0,"mat-error"),o.Hc(1),o.Vb()),2&e){var n=o.ic();o.Db(1),o.Ic(n.paymentDecodedHint)}}function ct(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Payment amount is required."),o.Vb())}function rt(e,t){if(1&e){var n=o.Xb();o.Wb(0,"mat-form-field",9),o.Wb(1,"input",18,19),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().paymentAmount=e}))("change",(function(e){return o.yc(n),o.ic().onAmountChange(e)})),o.Vb(),o.Wb(3,"mat-hint"),o.Hc(4,"It is a zero amount invoice, enter amount to be paid."),o.Vb(),o.Fc(5,ct,2,0,"mat-error",12),o.Vb()}if(2&e){var a=o.ic();o.Db(1),o.pc("ngModel",a.paymentAmount),o.Db(4),o.pc("ngIf",!a.paymentAmount)}}function st(e,t){if(1&e&&(o.Wb(0,"span"),o.Hc(1),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.Ic(n.paymentError)}}function lt(e,t){if(1&e&&(o.Wb(0,"div",20),o.Rb(1,"fa-icon",21),o.Fc(2,st,2,1,"span",12),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("icon",n.faExclamationTriangle),o.Db(1),o.pc("ngIf",""!==n.paymentError)}}var ut=function(){function e(e,t,n,a,i,o,c,r){this.dialogRef=e,this.store=t,this.eclEffects=n,this.logger=a,this.commonService=i,this.decimalPipe=o,this.actions$=c,this.dataService=r,this.faExclamationTriangle=f.n,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=g.i[0],this.feeLimitTypes=g.i,this.paymentError="",this.unSubs=[new u.a,new u.a,new u.a,new u.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("ecl").pipe(Object(b.a)(this.unSubs[0])).subscribe((function(t){e.selNode=t.nodeSettings,e.activeChannels=t.activeChannels,e.logger.info(t)})),this.actions$.pipe(Object(b.a)(this.unSubs[1]),Object(d.a)((function(e){return e.type===y.j||e.type===y.S}))).subscribe((function(t){t.type===y.S&&e.dialogRef.close(),t.type===y.j&&"SendPayment"===t.payload.action&&(delete e.paymentDecoded.amount,e.paymentError=t.payload.message)}))},e.prototype.onSendPayment=function(){var e=this;if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():(this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.paymentReq.control.setErrors(null),this.dataService.decodePayment(this.paymentRequest,!0).pipe(Object(Ze.a)(1)).subscribe((function(t){e.paymentDecoded=t,e.paymentDecoded.timestamp&&!e.paymentDecoded.amount?(e.paymentDecoded.amount=0,e.zeroAmtInvoice=!0,e.paymentDecodedHint="Zero Amount Invoice | Memo: "+e.paymentDecoded.description):(e.zeroAmtInvoice=!1,e.commonService.convertCurrency(+e.paymentDecoded.amount,g.g.SATS,e.selNode.currencyUnits[2],e.selNode.fiatConversion).pipe(Object(b.a)(e.unSubs[2])).subscribe((function(t){e.paymentDecodedHint=e.selNode.fiatConversion?"Sending: "+e.decimalPipe.transform(e.paymentDecoded.amount?e.paymentDecoded.amount:0)+" Sats ("+t.symbol+e.decimalPipe.transform(t.OTHER?t.OTHER:0,g.f.OTHER)+") | Memo: "+e.paymentDecoded.description:"Sending: "+e.decimalPipe.transform(e.paymentDecoded.amount?e.paymentDecoded.amount:0)+" Sats | Memo: "+e.paymentDecoded.description})))}),(function(t){e.logger.error(t),e.paymentDecodedHint="ERROR: "+(t.message?t.message:"string"==typeof t?t:JSON.stringify(t)),e.paymentReq.control.setErrors({decodeError:!0})})))},e.prototype.sendPayment=function(){this.store.dispatch(new ce.F("Sending Payment...")),this.store.dispatch(new y.nb(this.zeroAmtInvoice?{invoice:this.paymentRequest,amountMsat:1e3*this.paymentAmount,fromDialog:!0}:{invoice:this.paymentRequest,fromDialog:!0}))},e.prototype.onPaymentRequestEntry=function(e){var t=this;this.paymentRequest=e,this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.dataService.decodePayment(this.paymentRequest,!0).pipe(Object(Ze.a)(1)).subscribe((function(e){t.paymentDecoded=e,t.paymentDecoded.timestamp&&!t.paymentDecoded.amount?(t.paymentDecoded.amount=0,t.zeroAmtInvoice=!0,t.paymentDecodedHint="Zero Amount Invoice | Memo: "+t.paymentDecoded.description):(t.zeroAmtInvoice=!1,t.commonService.convertCurrency(+t.paymentDecoded.amount,g.g.SATS,t.selNode.currencyUnits[2],t.selNode.fiatConversion).pipe(Object(b.a)(t.unSubs[3])).subscribe((function(e){t.paymentDecodedHint=t.selNode.fiatConversion?"Sending: "+t.decimalPipe.transform(t.paymentDecoded.amount?t.paymentDecoded.amount:0)+" Sats ("+e.symbol+t.decimalPipe.transform(e.OTHER?e.OTHER:0,g.f.OTHER)+") | Memo: "+t.paymentDecoded.description:"Sending: "+t.decimalPipe.transform(t.paymentDecoded.amount?t.paymentDecoded.amount:0)+" Sats | Memo: "+t.paymentDecoded.description})))}),(function(e){t.logger.error(e),t.paymentDecodedHint="ERROR: "+(e.message?e.message:"string"==typeof e?e:JSON.stringify(e)),t.paymentReq.control.setErrors({decodeError:!0})})))},e.prototype.onAmountChange=function(e){delete this.paymentDecoded.amount,this.paymentDecoded.amount=e},e.prototype.resetData=function(){this.paymentDecoded={},this.paymentRequest="",this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=g.i[0],this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(oe.f),o.Qb(v.h),o.Qb(tt.a),o.Qb(m.b),o.Qb(h.a),o.Qb(a.e),o.Qb(x.a),o.Qb(et.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-lightning-send-payments"]],viewQuery:function(e,t){var n;1&e&&o.Dc(nt,!0),2&e&&o.vc(n=o.fc())&&(t.paymentReq=n.first)},decls:24,vars:7,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"mt-5px"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["sendPaymentForm","ngForm"],["fxFlex","100"],["autoFocus","","matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,t){if(1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"mat-card-header",2),o.Wb(3,"div",3),o.Wb(4,"span",4),o.Hc(5,"Send Payment"),o.Vb(),o.Vb(),o.Wb(6,"button",5),o.Hc(7,"X"),o.Vb(),o.Vb(),o.Wb(8,"mat-card-content",6),o.Wb(9,"form",7,8),o.Wb(11,"mat-form-field",9),o.Wb(12,"textarea",10,11),o.ec("ngModelChange",(function(e){return t.onPaymentRequestEntry(e)}))("matTextareaAutosize",(function(){return!0})),o.Vb(),o.Fc(14,at,2,1,"mat-hint",12),o.Fc(15,it,2,0,"mat-error",12),o.Fc(16,ot,2,1,"mat-error",12),o.Vb(),o.Fc(17,rt,6,2,"mat-form-field",13),o.Fc(18,lt,3,2,"div",14),o.Wb(19,"div",15),o.Wb(20,"button",16),o.ec("click",(function(){return t.resetData()})),o.Hc(21,"Clear Fields"),o.Vb(),o.Wb(22,"button",17),o.ec("click",(function(){return t.onSendPayment()})),o.Hc(23,"Send Payment"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e){var n=o.wc(13);o.Db(6),o.pc("mat-dialog-close",!1),o.Db(6),o.pc("ngModel",t.paymentRequest),o.Db(2),o.pc("ngIf",t.paymentRequest&&""!==t.paymentDecodedHint),o.Db(1),o.pc("ngIf",!t.paymentRequest),o.Db(1),o.pc("ngIf",null==n.errors?null:n.errors.decodeError),o.Db(1),o.pc("ngIf",t.zeroAmtInvoice),o.Db(1),o.pc("ngIf",""!==t.paymentError)}},directives:[C.c,C.a,D.c,C.b,W.a,oe.d,D.b,re.t,re.m,re.n,P.c,se.b,re.b,se.d,le.a,re.r,re.l,re.o,a.n,P.f,P.b,V.a],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e}(),bt=n("FqGj"),dt=["scrollContainer"];function pt(e,t){if(1&e&&(o.Wb(0,"div",9),o.Wb(1,"div",15),o.Wb(2,"h4",11),o.Hc(3,"Description"),o.Vb(),o.Wb(4,"span",12),o.Hc(5),o.Vb(),o.Vb(),o.Vb()),2&e){var n=o.ic();o.Db(5),o.Ic(n.description)}}function ft(e,t){1&e&&o.Rb(0,"mat-divider",14)}function mt(e,t){if(1&e){var n=o.Xb();o.Wb(0,"mat-expansion-panel",24),o.ec("opened",(function(){return o.yc(n),o.ic().onExpansionOpen(!0)}))("closed",(function(){return o.yc(n),o.ic().onExpansionOpen(!1)})),o.Wb(1,"mat-expansion-panel-header"),o.Wb(2,"mat-panel-title"),o.Wb(3,"h4",25),o.Hc(4),o.Vb(),o.Wb(5,"h4",26),o.Hc(6),o.jc(7,"number"),o.Vb(),o.Vb(),o.Vb(),o.Wb(8,"div",8),o.Wb(9,"div",9),o.Wb(10,"div",27),o.Wb(11,"h4",11),o.Hc(12,"Fees (mSats)"),o.Vb(),o.Wb(13,"span",12),o.Hc(14),o.jc(15,"number"),o.Vb(),o.Vb(),o.Wb(16,"div",27),o.Wb(17,"h4",11),o.Hc(18,"Date/Time"),o.Vb(),o.Wb(19,"span",12),o.Hc(20),o.Vb(),o.Vb(),o.Vb(),o.Rb(21,"mat-divider",14),o.Wb(22,"div",9),o.Wb(23,"div",15),o.Wb(24,"h4",11),o.Hc(25,"ID"),o.Vb(),o.Wb(26,"span",28),o.Hc(27),o.Vb(),o.Vb(),o.Vb(),o.Rb(28,"mat-divider",14),o.Wb(29,"div",9),o.Wb(30,"div",15),o.Wb(31,"h4",11),o.Hc(32,"To Channel"),o.Vb(),o.Wb(33,"span",28),o.Hc(34),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()}if(2&e){var a=t.$implicit,i=t.index,c=o.ic();o.pc("expanded",c.expansionOpen),o.Db(4),o.Jc("Part ",i+1,""),o.Db(2),o.Jc("",o.kc(7,7,a.amount)," (Sats)"),o.Db(8),o.Ic(o.kc(15,9,a.feesPaid)),o.Db(6),o.Ic(a.timestampStr),o.Db(7),o.Ic(a.id),o.Db(7),o.Ic(a.toChannelAlias)}}var ht=function(){function e(e,t){this.dialogRef=e,this.data=t,this.description=null,this.shouldScroll=!0,this.expansionOpen=!0}return e.prototype.ngOnInit=function(){this.payment=this.data.payment,this.data.sentPaymentInfo.length>0&&this.data.sentPaymentInfo[0].paymentRequest&&this.data.sentPaymentInfo[0].paymentRequest.description&&""!==this.data.sentPaymentInfo[0].paymentRequest.description&&(this.description=this.data.sentPaymentInfo[0].paymentRequest.description)},e.prototype.ngAfterViewChecked=function(){this.shouldScroll=this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")},e.prototype.onScrollDown=function(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+62.6},e.prototype.onExpansionOpen=function(e){this.expansionOpen=e},e.prototype.onClose=function(){this.dialogRef.close(!1)},e.\u0275fac=function(t){return new(t||e)(o.Qb(oe.f),o.Qb(oe.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-payment-information"]],viewQuery:function(e,t){var n;1&e&&o.Dc(dt,!0),2&e&&o.vc(n=o.fc())&&(t.scrollContainer=n.first)},decls:65,vars:12,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"padding-gap-large","pl-3"],["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"],["perfectScrollbar","",1,"mt-5px","mb-0","pr-2","h-40"],["scrollContainer",""],["fxLayout","column"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],["fxFlex","70"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],["class","flat-expansion-panel my-1",3,"expanded","opened","closed",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-1"],["fxLayoutAlign","center center","tabindex","1","mat-stroked-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],[1,"flat-expansion-panel","my-1",3,"expanded","opened","closed"],["fxFlex","30","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","70","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"mat-card-header",2),o.Wb(3,"div",3),o.Wb(4,"span",4),o.Hc(5,"Payment Information"),o.Vb(),o.Vb(),o.Wb(6,"button",5),o.ec("click",(function(){return t.onClose()})),o.Hc(7,"X"),o.Vb(),o.Vb(),o.Wb(8,"mat-card-content",6,7),o.Wb(10,"div",8),o.Wb(11,"div",9),o.Wb(12,"div",10),o.Wb(13,"h4",11),o.Hc(14,"Amount (Sats)"),o.Vb(),o.Wb(15,"span",12),o.Hc(16),o.jc(17,"number"),o.Vb(),o.Vb(),o.Wb(18,"div",13),o.Wb(19,"h4",11),o.Hc(20,"Date/Time"),o.Vb(),o.Wb(21,"span",12),o.Hc(22),o.Vb(),o.Vb(),o.Vb(),o.Rb(23,"mat-divider",14),o.Wb(24,"div",9),o.Wb(25,"div",15),o.Wb(26,"h4",11),o.Hc(27,"ID"),o.Vb(),o.Wb(28,"span",12),o.Hc(29),o.Vb(),o.Vb(),o.Vb(),o.Rb(30,"mat-divider",14),o.Wb(31,"div",9),o.Wb(32,"div",15),o.Wb(33,"h4",11),o.Hc(34,"Payment Hash"),o.Vb(),o.Wb(35,"span",12),o.Hc(36),o.Vb(),o.Vb(),o.Vb(),o.Rb(37,"mat-divider",14),o.Wb(38,"div",9),o.Wb(39,"div",15),o.Wb(40,"h4",11),o.Hc(41,"Payment Preimage"),o.Vb(),o.Wb(42,"span",12),o.Hc(43),o.Vb(),o.Vb(),o.Vb(),o.Rb(44,"mat-divider",14),o.Wb(45,"div",9),o.Wb(46,"div",15),o.Wb(47,"h4",11),o.Hc(48,"Recipient Node"),o.Vb(),o.Wb(49,"span",12),o.Hc(50),o.Vb(),o.Vb(),o.Vb(),o.Rb(51,"mat-divider",14),o.Fc(52,pt,6,1,"div",16),o.Fc(53,ft,1,0,"mat-divider",17),o.Wb(54,"div",9),o.Wb(55,"div",15),o.Wb(56,"mat-accordion"),o.Fc(57,mt,35,11,"mat-expansion-panel",18),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Wb(58,"div",19),o.Wb(59,"button",20),o.ec("click",(function(){return t.onScrollDown()})),o.Wb(60,"mat-icon",21),o.Hc(61,"arrow_downward"),o.Vb(),o.Vb(),o.Vb(),o.Wb(62,"div",22),o.Wb(63,"button",23),o.Hc(64,"OK"),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(16),o.Ic(o.kc(17,10,t.payment.recipientAmount)),o.Db(6),o.Ic(t.payment.firstPartTimestampStr),o.Db(7),o.Ic(t.payment.id),o.Db(7),o.Ic(t.payment.paymentHash),o.Db(7),o.Ic(t.payment.paymentPreimage),o.Db(7),o.Ic(t.payment.recipientNodeAlias),o.Db(2),o.pc("ngIf",t.description),o.Db(1),o.pc("ngIf",t.description),o.Db(4),o.pc("ngForOf",t.payment.parts),o.Db(6),o.pc("mat-dialog-close",!1))},directives:[C.c,C.b,C.a,D.c,W.a,D.b,M.b,E.a,a.n,bt.a,a.m,F.a,oe.d,bt.c,bt.e,bt.f],pipes:[a.e],styles:[""]}),e}(),gt=["sendPaymentForm"];function yt(e,t){if(1&e&&(o.Wb(0,"mat-hint"),o.Hc(1),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.Ic(n.paymentDecodedHint)}}function vt(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Payment request is required."),o.Vb())}function xt(e,t){if(1&e){var n=o.Xb();o.Wb(0,"mat-form-field",40),o.Wb(1,"textarea",41,42),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().onPaymentRequestEntry(e)}))("matTextareaAutosize",(function(){return!0})),o.Vb(),o.Fc(3,yt,2,1,"mat-hint",43),o.Fc(4,vt,2,0,"mat-error",43),o.Vb()}if(2&e){var a=o.ic();o.Db(1),o.pc("ngModel",a.paymentRequest),o.Db(2),o.pc("ngIf",a.paymentRequest&&""!==a.paymentDecodedHint),o.Db(1),o.pc("ngIf",!a.paymentRequest)}}function Ct(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",44),o.Wb(1,"button",45),o.ec("click",(function(){return o.yc(n),o.ic().resetData()})),o.Hc(2,"Clear Field"),o.Vb(),o.Wb(3,"button",46),o.ec("click",(function(){return o.yc(n),o.ic().onSendPayment()})),o.Hc(4,"Send Payment"),o.Vb(),o.Vb()}}function Vt(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",47),o.Wb(1,"button",46),o.ec("click",(function(){return o.yc(n),o.ic().openSendPaymentModal()})),o.Hc(2,"Send Payment"),o.Vb(),o.Vb()}}function wt(e,t){1&e&&o.Rb(0,"mat-progress-bar",48)}function Dt(e,t){1&e&&(o.Wb(0,"th",49),o.Hc(1,"Date/Time"),o.Vb())}function St(e,t){if(1&e&&(o.Wb(0,"td",50),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(null==n?null:n.firstPartTimestampStr)}}function Wt(e,t){1&e&&(o.Wb(0,"th",49),o.Hc(1,"ID"),o.Vb())}var Ft=function(e){return{"max-width":e}};function It(e,t){if(1&e&&(o.Wb(0,"td",50),o.Wb(1,"div",51),o.Wb(2,"span",52),o.Hc(3),o.Vb(),o.Vb(),o.Vb()),2&e){var n=t.$implicit,a=o.ic();o.Db(1),o.pc("ngStyle",o.tc(2,Ft,a.screenSize===a.screenSizeEnum.XS?"10rem":"22rem")),o.Db(2),o.Ic(n.id)}}function Lt(e,t){1&e&&(o.Wb(0,"th",49),o.Hc(1,"Destination"),o.Vb())}function Ht(e,t){if(1&e&&(o.Wb(0,"td",50),o.Wb(1,"div",51),o.Wb(2,"span",52),o.Hc(3),o.Vb(),o.Vb(),o.Vb()),2&e){var n=t.$implicit,a=o.ic();o.Db(1),o.pc("ngStyle",o.tc(2,Ft,a.screenSize===a.screenSizeEnum.XS?"10rem":"22rem")),o.Db(2),o.Ic(n.recipientNodeAlias)}}function At(e,t){1&e&&(o.Wb(0,"th",53),o.Hc(1,"Amount (Sats)"),o.Vb())}function Rt(e,t){if(1&e&&(o.Wb(0,"td",50),o.Wb(1,"span",54),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.kc(3,1,null==n?null:n.recipientAmount))}}function kt(e,t){if(1&e){var n=o.Xb();o.Wb(0,"th",55),o.Wb(1,"div",56),o.Wb(2,"mat-select",57),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",58),o.ec("click",(function(){return o.yc(n),o.ic().onDownloadCSV()})),o.Hc(5,"Download CSV"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}}function Ot(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",59),o.Wb(1,"button",60),o.ec("click",(function(){o.yc(n);var e=t.$implicit;return o.ic().onPaymentClick(e)})),o.Hc(2,"View Info"),o.Vb(),o.Vb()}}function Pt(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No payments available."),o.Vb())}function Tt(e,t){if(1&e&&(o.Wb(0,"td",61),o.Fc(1,Pt,2,0,"p",43),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngIf",!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)}}function Et(e,t){if(1&e&&(o.Wb(0,"span",64),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",n.timestampStr," ")}}function Mt(e,t){if(1&e&&(o.Ub(0),o.Fc(1,Et,2,1,"span",63),o.Tb()),2&e){var n=o.ic().$implicit;o.Db(1),o.pc("ngForOf",null==n?null:n.parts)}}function zt(e,t){if(1&e&&(o.Wb(0,"td",50),o.Wb(1,"span",62),o.Hc(2),o.Vb(),o.Fc(3,Mt,2,1,"ng-container",43),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" Total Attempts: ",null==n||null==n.parts?null:n.parts.length," "),o.Db(1),o.pc("ngIf",n.is_expanded)}}function Bt(e,t){if(1&e&&(o.Wb(0,"span",62),o.Wb(1,"span",65),o.Wb(2,"span",52),o.Hc(3),o.Vb(),o.Vb(),o.Vb()),2&e){var n=t.$implicit,a=o.ic(3);o.Db(1),o.pc("ngStyle",o.tc(2,Ft,a.screenSize===a.screenSizeEnum.XS?"10rem":"22rem")),o.Db(2),o.Ic(n.id)}}function Nt(e,t){if(1&e&&(o.Wb(0,"span"),o.Fc(1,Bt,4,4,"span",66),o.Vb()),2&e){var n=o.ic().$implicit;o.Db(1),o.pc("ngForOf",null==n?null:n.parts)}}function qt(e,t){if(1&e&&(o.Wb(0,"td",50),o.Wb(1,"div",65),o.Wb(2,"span",52),o.Hc(3),o.Vb(),o.Vb(),o.Fc(4,Nt,2,1,"span",43),o.Vb()),2&e){var n=t.$implicit,a=o.ic();o.Db(1),o.pc("ngStyle",o.tc(3,Ft,a.screenSize===a.screenSizeEnum.XS?"10rem":"22rem")),o.Db(2),o.Ic(n.id),o.Db(1),o.pc("ngIf",n.is_expanded)}}function Ut(e,t){if(1&e&&(o.Wb(0,"span",62),o.Wb(1,"span",65),o.Wb(2,"span",52),o.Hc(3),o.Vb(),o.Vb(),o.Vb()),2&e){var n=t.$implicit,a=o.ic(3);o.Db(1),o.pc("ngStyle",o.tc(2,Ft,a.screenSize===a.screenSizeEnum.XS?"10rem":"22rem")),o.Db(2),o.Ic(n.toChannelAlias)}}function jt(e,t){if(1&e&&(o.Wb(0,"span"),o.Fc(1,Ut,4,4,"span",66),o.Vb()),2&e){var n=o.ic().$implicit;o.Db(1),o.pc("ngForOf",null==n?null:n.parts)}}function Qt(e,t){if(1&e&&(o.Wb(0,"td",50),o.Wb(1,"div",65),o.Wb(2,"span",52),o.Hc(3),o.Vb(),o.Vb(),o.Fc(4,jt,2,1,"span",43),o.Vb()),2&e){var n=t.$implicit,a=o.ic();o.Db(1),o.pc("ngStyle",o.tc(3,Ft,a.screenSize===a.screenSizeEnum.XS?"10rem":"22rem")),o.Db(2),o.Ic(null==n?null:n.recipientNodeAlias),o.Db(1),o.pc("ngIf",n.is_expanded)}}function _t(e,t){if(1&e&&(o.Wb(0,"span",67),o.Hc(1),o.jc(2,"number"),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",o.lc(2,1,n.amount,"1.0-0")," ")}}function $t(e,t){if(1&e&&(o.Wb(0,"span"),o.Fc(1,_t,3,4,"span",68),o.Vb()),2&e){var n=o.ic().$implicit;o.Db(1),o.pc("ngForOf",null==n?null:n.parts)}}function Xt(e,t){if(1&e&&(o.Wb(0,"td",50),o.Wb(1,"span",67),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Fc(4,$t,2,1,"span",43),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.lc(3,2,null==n?null:n.recipientAmount,"1.0-0")),o.Db(2),o.pc("ngIf",n.is_expanded)}}function Jt(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",70),o.Wb(1,"button",73),o.ec("click",(function(){o.yc(n);var e=t.$implicit,a=o.ic(2).$implicit;return o.ic().onPartClick(e,a)})),o.Hc(2),o.Vb(),o.Vb()}if(2&e){var a=t.index;o.Db(2),o.Jc("View ",a+1,"")}}function Gt(e,t){if(1&e&&(o.Wb(0,"div"),o.Fc(1,Jt,3,1,"div",72),o.Vb()),2&e){var n=o.ic().$implicit;o.Db(1),o.pc("ngForOf",null==n?null:n.parts)}}function Kt(e,t){if(1&e&&(o.Wb(0,"td",69),o.Wb(1,"span",70),o.Wb(2,"button",71),o.ec("click",(function(){var e=t.$implicit;return e.is_expanded=!e.is_expanded})),o.Hc(3),o.Vb(),o.Vb(),o.Fc(4,Gt,2,1,"div",43),o.Vb()),2&e){var n=t.$implicit;o.Db(3),o.Ic(n.is_expanded?"Hide":"Show"),o.Db(1),o.pc("ngIf",n.is_expanded)}}function Yt(e,t){if(1&e&&o.Rb(0,"tr",74),2&e){var n=t.$implicit,a=o.ic();o.pc("@newlyAddedRowAnimation",n.payment_hash===a.newlyAddedPayment&&a.flgAnimate?"added":"notAdded")}}var Zt=function(e){return{"display-none":e}};function en(e,t){if(1&e&&o.Rb(0,"tr",75),2&e){var n=o.ic();o.pc("ngClass",o.tc(1,Zt,(null==n.payments?null:n.payments.data)&&(null==n.payments||null==n.payments.data?null:n.payments.data.length)>0))}}function tn(e,t){1&e&&o.Rb(0,"tr",76)}function nn(e,t){if(1&e&&o.Rb(0,"tr",74),2&e){var n=t.$implicit,a=o.ic();o.pc("@newlyAddedRowAnimation",n.payment_hash===a.newlyAddedPayment&&a.flgAnimate?"added":"notAdded")}}var an=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},on=function(){return["no_payment"]},cn=function(){function e(e,t,n,a,i,o,c){this.logger=e,this.commonService=t,this.store=n,this.rtlEffects=a,this.eclEffects=i,this.decimalPipe=o,this.dataService=c,this.showDetails=!0,this.faHistory=f.q,this.newlyAddedPayment="",this.flgAnimate=!0,this.selNode={},this.flgLoading=[!0],this.information={},this.paymentJSONArr=[],this.paymentDecoded={},this.displayedColumns=[],this.partColumns=[],this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new u.a,new u.a,new u.a,new u.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["firstPartTimestamp","actions"],this.partColumns=["groupTotal","groupAction"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["firstPartTimestamp","recipientAmount","actions"],this.partColumns=["groupTotal","groupAmount","groupAction"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["firstPartTimestamp","id","recipientAmount","actions"],this.partColumns=["groupTotal","groupId","groupAmount","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["firstPartTimestamp","id","recipientNodeAlias","recipientAmount","actions"],this.partColumns=["groupTotal","groupId","groupChannelAlias","groupAmount","groupAction"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("ecl").pipe(Object(b.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchPayments"===t.action&&(e.flgLoading[0]="error")})),e.information=t.information,e.selNode=t.nodeSettings,t.payments.sent&&t.payments.sent.map((function(e){var n=t.peers.find((function(t){return t.nodeId===e.recipientNodeId}));e.recipientNodeAlias=n?n.alias:e.recipientNodeId,e.parts&&e.parts.map((function(e){var n=t.activeChannels.find((function(t){return t.channelId===e.toChannelId}));e.toChannelAlias=n?n.alias:e.toChannelId}))})),e.paymentJSONArr=t.payments&&t.payments.sent&&t.payments.sent.length>0?t.payments.sent:[],e.payments=new ie.o(Object(te.g)(e.paymentJSONArr)),e.payments.data=e.paymentJSONArr,e.payments.sort=e.sort,e.payments.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},e.payments.paginator=e.paginator,setTimeout((function(){e.flgAnimate=!1}),3e3),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!e.paymentJSONArr),e.logger.info(t)}))},e.prototype.onSendPayment=function(){var e=this;if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe(Object(Ze.a)(1)).subscribe((function(t){e.paymentDecoded=t,e.paymentDecoded.timestamp?(e.paymentDecoded.amount||(e.paymentDecoded.amount=0),e.sendPayment()):e.resetData()}))},e.prototype.sendPayment=function(){var e=this;this.flgAnimate=!0,this.newlyAddedPayment=this.paymentDecoded.paymentHash,this.paymentDecoded.amount&&0!==this.paymentDecoded.amount?(this.store.dispatch(new ce.D({data:{type:g.b.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestampStr",value:this.paymentDecoded.timestampStr,title:"Creation Date",width:50},{key:"amount",value:this.paymentDecoded.amount,title:"Amount (Sats)",width:50,type:g.h.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:g.h.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:50}]]}})),this.rtlEffects.closeConfirm.pipe(Object(Ze.a)(1)).subscribe((function(t){t&&(e.store.dispatch(new ce.F("Sending Payment...")),e.store.dispatch(new y.nb({invoice:e.paymentRequest,fromDialog:!1})),e.resetData())}))):(this.store.dispatch(new ce.D({data:{type:g.b.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestampStr",value:this.paymentDecoded.timestampStr,title:"Creation Date",width:40},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:g.h.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",getInputs:[{placeholder:"Amount (Sats)",inputType:g.h.NUMBER.toLowerCase(),inputValue:"",width:30}]}})),this.rtlEffects.closeConfirm.pipe(Object(Ze.a)(1)).subscribe((function(t){t&&(e.paymentDecoded.amount=t[0].inputValue,e.store.dispatch(new ce.F("Sending Payment...")),e.store.dispatch(new y.nb({invoice:e.paymentRequest,amountMsat:1e3*t[0].inputValue,fromDialog:!1})),e.resetData())})))},e.prototype.onPaymentRequestEntry=function(e){var t=this;this.paymentRequest=e,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe(Object(Ze.a)(1)).subscribe((function(e){t.paymentDecoded=e,t.paymentDecoded.amount?t.commonService.convertCurrency(+t.paymentDecoded.amount,g.g.SATS,t.selNode.currencyUnits[2],t.selNode.fiatConversion).pipe(Object(b.a)(t.unSubs[1])).subscribe((function(e){t.paymentDecodedHint=t.selNode.fiatConversion?"Sending: "+t.decimalPipe.transform(t.paymentDecoded.amount?t.paymentDecoded.amount:0)+" Sats ("+e.symbol+t.decimalPipe.transform(e.OTHER?e.OTHER:0,g.f.OTHER)+") | Memo: "+t.paymentDecoded.description:"Sending: "+t.decimalPipe.transform(t.paymentDecoded.amount?t.paymentDecoded.amount:0)+" Sats | Memo: "+t.paymentDecoded.description})):t.paymentDecodedHint="Zero Amount Invoice | Memo: "+t.paymentDecoded.description}))},e.prototype.openSendPaymentModal=function(){this.store.dispatch(new ce.C({data:{component:ut}}))},e.prototype.resetData=function(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()},e.prototype.is_group=function(e,t){return t.parts&&t.parts.length>1},e.prototype.onPaymentClick=function(e){var t=this;e.paymentHash&&""!==e.paymentHash.trim()?this.dataService.decodePayment(e.paymentHash,!1).pipe(Object(Ze.a)(1)).subscribe((function(n){t.showPaymentView(e,n)}),(function(n){t.showPaymentView(e,[])})):this.showPaymentView(e,[])},e.prototype.showPaymentView=function(e,t){this.store.dispatch(new ce.C({data:{sentPaymentInfo:t,payment:e,component:ht}}))},e.prototype.onPartClick=function(e,t){var n=this;t.paymentHash&&""!==t.paymentHash.trim()?this.dataService.decodePayment(t.paymentHash,!1).pipe(Object(Ze.a)(1)).subscribe((function(a){n.showPartView(e,t,a)}),(function(a){n.showPartView(e,t,[])})):this.showPartView(e,t,[])},e.prototype.showPartView=function(e,t,n){var a=[[{key:"paymentHash",value:t.paymentHash,title:"Payment Hash",width:100,type:g.h.STRING}],[{key:"paymentPreimage",value:t.paymentPreimage,title:"Payment Preimage",width:100,type:g.h.STRING}],[{key:"toChannelId",value:e.toChannelId,title:"Channel",width:100,type:g.h.STRING}],[{key:"id",value:e.id,title:"Part ID",width:50,type:g.h.STRING},{key:"timestampStr",value:e.timestampStr,title:"Time",width:50,type:g.h.DATE_TIME}],[{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:g.h.NUMBER},{key:"feesPaid",value:e.feesPaid,title:"Fee (Sats)",width:50,type:g.h.NUMBER}]];n.length>0&&n[0].paymentRequest&&n[0].paymentRequest.description&&""!==n[0].paymentRequest.description&&a.splice(3,0,[{key:"description",value:n[0].paymentRequest.description,title:"Description",width:100,type:g.h.STRING}]),this.store.dispatch(new ce.C({data:{type:g.b.INFORMATION,alertTitle:"Payment Part Information",message:a}}))},e.prototype.applyFilter=function(e){this.payments.filter=e},e.prototype.onDownloadCSV=function(){var e=this;if(this.payments.data&&this.payments.data.length>0){var t=JSON.parse(JSON.stringify(this.payments.data)),n=t.reduce((function(e,t){return t.paymentHash&&""!==t.paymentHash.trim()&&(e=""===e?t.paymentHash:e+","+t.paymentHash),e}),"");Object(Ye.a)(this.dataService.decodePayments(n).pipe(Object(b.a)(this.unSubs[2])).subscribe((function(n){n.forEach((function(e,n){e.length>0&&e[0].paymentRequest&&e[0].paymentRequest.description&&""!==e[0].paymentRequest.description&&(t[n].description=e[0].paymentRequest.description)}));var a=t.reduce((function(e,t){return e.concat(t)}),[]);e.commonService.downloadFile(a,"Payments")})))}},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(h.a),o.Qb(v.h),o.Qb(xe.a),o.Qb(tt.a),o.Qb(a.e),o.Qb(et.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-lightning-payments"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(gt,!0),o.Dc(ae.a,!0),o.Dc(ne.a,!0)),2&e&&(o.vc(n=o.fc())&&(t.form=n.first),o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.paginator=n.first))},inputs:{showDetails:"showDetails"},features:[o.Cb([{provide:ne.b,useValue:Object(g.w)("Payments")}])],decls:50,vars:22,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100",4,"ngIf"],["fxLayout","row","class","mt-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","firstPartTimestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","recipientNodeAlias"],["matColumnDef","recipientAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupId"],["matColumnDef","groupChannelAlias"],["matColumnDef","groupAmount"],["matColumnDef","groupAction"],["mat-cell","","class","px-3",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"part-row-span"],["fxLayoutAlign","start center","class","part-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"part-row-span","pl-3"],["fxLayoutAlign","start center",1,"ellipsis-parent","part-row-span",3,"ngStyle"],["fxLayoutAlign","start center","class","part-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"part-row-span"],["fxLayoutAlign","end center","class","part-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-3"],["fxLayoutAlign","end start"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-part-expand",3,"click"],["fxLayoutAlign","end start",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-part-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"form",1,2),o.Fc(3,xt,5,3,"mat-form-field",3),o.Fc(4,Ct,5,0,"div",4),o.Fc(5,Vt,3,0,"div",5),o.Vb(),o.Wb(6,"div",6),o.Wb(7,"div",7),o.Wb(8,"div",8),o.Rb(9,"fa-icon",9),o.Wb(10,"span",10),o.Hc(11,"Payments History"),o.Vb(),o.Vb(),o.Wb(12,"mat-form-field",11),o.Wb(13,"input",12),o.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),o.Vb(),o.Vb(),o.Vb(),o.Wb(14,"div",13),o.Fc(15,wt,1,0,"mat-progress-bar",14),o.Wb(16,"table",15,16),o.Ub(18,17),o.Fc(19,Dt,2,0,"th",18),o.Fc(20,St,2,1,"td",19),o.Tb(),o.Ub(21,20),o.Fc(22,Wt,2,0,"th",18),o.Fc(23,It,4,4,"td",19),o.Tb(),o.Ub(24,21),o.Fc(25,Lt,2,0,"th",18),o.Fc(26,Ht,4,4,"td",19),o.Tb(),o.Ub(27,22),o.Fc(28,At,2,0,"th",23),o.Fc(29,Rt,4,3,"td",19),o.Tb(),o.Ub(30,24),o.Fc(31,kt,6,0,"th",25),o.Fc(32,Ot,3,0,"td",26),o.Tb(),o.Ub(33,27),o.Fc(34,Tt,2,1,"td",28),o.Tb(),o.Ub(35,29),o.Fc(36,zt,4,2,"td",19),o.Tb(),o.Ub(37,30),o.Fc(38,qt,5,5,"td",19),o.Tb(),o.Ub(39,31),o.Fc(40,Qt,5,5,"td",19),o.Tb(),o.Ub(41,32),o.Fc(42,Xt,5,5,"td",19),o.Tb(),o.Ub(43,33),o.Fc(44,Kt,5,2,"td",34),o.Tb(),o.Fc(45,Yt,1,1,"tr",35),o.Fc(46,en,1,3,"tr",36),o.Fc(47,tn,1,0,"tr",37),o.Fc(48,nn,1,1,"tr",38),o.Vb(),o.Vb(),o.Rb(49,"mat-paginator",39),o.Vb(),o.Vb()),2&e&&(o.Db(3),o.pc("ngIf",!t.showDetails),o.Db(1),o.pc("ngIf",!t.showDetails),o.Db(1),o.pc("ngIf",t.showDetails),o.Db(1),o.pc("ngClass",o.tc(17,Zt,!t.showDetails)),o.Db(3),o.pc("icon",t.faHistory),o.Db(6),o.pc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.pc("dataSource",t.payments)("ngClass",o.tc(19,an,"error"===t.flgLoading[0])),o.Db(29),o.pc("matRowDefColumns",t.partColumns)("matRowDefWhen",t.is_group),o.Db(1),o.pc("matFooterRowDef",o.sc(21,on)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns),o.Db(1),o.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[C.c,C.a,C.b,re.t,re.m,re.n,a.n,a.l,I.a,V.a,P.c,se.b,M.b,ie.n,ae.a,ie.c,ie.i,ie.b,ie.e,ie.m,ie.g,ie.k,ne.a,re.b,se.d,re.r,re.l,re.o,P.f,P.b,W.a,c.a,ie.h,ae.b,ie.a,a.o,I.b,be.a,be.c,de.n,ie.d,a.m,ie.l,ie.f,ie.j],pipes:[a.e],styles:[".mat-column-groupChannelAlias[_ngcontent-%COMP%], .mat-column-groupId[_ngcontent-%COMP%], .mat-column-id[_ngcontent-%COMP%], .mat-column-recipientNodeAlias[_ngcontent-%COMP%]{padding:0 1rem;flex:0 0 25%;width:25%}.mat-column-groupChannelAlias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-groupId[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-recipientNodeAlias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%], .mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-part-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-part-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.part-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:15rem}"],data:{animation:[ve.a]}}),e}();function rn(e,t){if(1&e&&(o.Wb(0,"button",24),o.Wb(1,"mat-icon"),o.Hc(2,"more_vert"),o.Vb(),o.Vb()),2&e){o.ic();var n=o.wc(9);o.pc("matMenuTriggerFor",n)}}function sn(e,t){if(1&e){var n=o.Xb();o.Wb(0,"button",14),o.ec("click",(function(){return o.yc(n),o.ic(3).onsortChannelsBy()})),o.Hc(1),o.Vb()}if(2&e){var a=o.ic(3);o.Db(1),o.Jc("Sort By ","Balance Score"===a.sortField?"Capacity":"Balance Score","")}}var ln=function(e){return{"error-border":e}};function un(e,t){if(1&e&&o.Rb(0,"rtl-ecl-node-info",25),2&e){var n=o.ic(3);o.pc("information",n.information)("showColorFieldSeparately",!1)("ngClass",o.tc(3,ln,"error"===n.flgLoading[0]))}}function bn(e,t){if(1&e&&o.Rb(0,"rtl-ecl-balances-info",26),2&e){var n=o.ic(3);o.pc("balances",n.balances)("ngClass",o.tc(2,ln,"error"===n.flgLoading[2]))}}function dn(e,t){if(1&e&&o.Rb(0,"rtl-ecl-channel-capacity-info",27),2&e){var n=o.ic(3);o.pc("sortBy",n.sortField)("channelBalances",n.channelBalances)("allChannels",n.allChannelsCapacity)("ngClass",o.tc(4,ln,"error"===n.flgLoading[5]))}}function pn(e,t){if(1&e&&o.Rb(0,"rtl-ecl-fee-info",28),2&e){var n=o.ic(3);o.pc("fees",n.fees)("ngClass",o.tc(2,ln,"error"===n.flgLoading[1]))}}function fn(e,t){if(1&e&&o.Rb(0,"rtl-ecl-channel-status-info",29),2&e){var n=o.ic(3);o.pc("channelsStatus",n.channelsStatus)("ngClass",o.tc(2,ln,"error"===n.flgLoading[0]))}}function mn(e,t){1&e&&(o.Wb(0,"h3"),o.Hc(1,"Error! Unable to find information!"),o.Vb())}function hn(e,t){if(1&e){var n=o.Xb();o.Wb(0,"mat-grid-tile",8),o.Wb(1,"mat-card",9),o.Wb(2,"mat-card-header"),o.Wb(3,"mat-card-title"),o.Rb(4,"fa-icon",10),o.Wb(5,"span"),o.Hc(6),o.Vb(),o.Fc(7,rn,3,1,"button",11),o.Wb(8,"mat-menu",12,13),o.Wb(10,"button",14),o.ec("click",(function(){o.yc(n);var e=t.$implicit;return o.ic(2).onNavigateTo(e.link)})),o.Hc(11),o.Vb(),o.Fc(12,sn,2,1,"button",15),o.Vb(),o.Vb(),o.Vb(),o.Wb(13,"mat-card-content",16),o.Wb(14,"div",17),o.Fc(15,un,1,5,"rtl-ecl-node-info",18),o.Fc(16,bn,1,4,"rtl-ecl-balances-info",19),o.Fc(17,dn,1,6,"rtl-ecl-channel-capacity-info",20),o.Fc(18,pn,1,4,"rtl-ecl-fee-info",21),o.Fc(19,fn,1,4,"rtl-ecl-channel-status-info",22),o.Fc(20,mn,2,0,"h3",23),o.Vb(),o.Vb(),o.Vb(),o.Vb()}if(2&e){var a=t.$implicit;o.pc("colspan",a.cols)("rowspan",a.rows),o.Db(4),o.pc("icon",a.icon),o.Db(2),o.Ic(a.title),o.Db(1),o.pc("ngIf",a.link),o.Db(4),o.Jc("Go To ",a.goTo,""),o.Db(1),o.pc("ngIf","capacity"===a.id),o.Db(2),o.pc("ngSwitch",a.id),o.Db(1),o.pc("ngSwitchCase","node"),o.Db(1),o.pc("ngSwitchCase","balance"),o.Db(1),o.pc("ngSwitchCase","capacity"),o.Db(1),o.pc("ngSwitchCase","fee"),o.Db(1),o.pc("ngSwitchCase","status")}}function gn(e,t){if(1&e&&(o.Wb(0,"div",2),o.Wb(1,"div",3),o.Rb(2,"fa-icon",4),o.Wb(3,"span",5),o.Hc(4),o.Vb(),o.Vb(),o.Wb(5,"mat-grid-list",6),o.Fc(6,hn,21,13,"mat-grid-tile",7),o.Vb(),o.Vb()),2&e){var n=o.ic();o.Db(2),o.pc("icon",n.flgLoading[0]?n.faFrown:n.faSmile),o.Db(2),o.Ic(n.flgLoading[0]?"Error! Please check the server connection.":"Welcome "+n.information.alias+"! Your node is up and running."),o.Db(1),o.pc("rowHeight",n.operatorCardHeight),o.Db(1),o.pc("ngForOf",n.operatorCards)}}function yn(e,t){if(1&e&&(o.Wb(0,"button",24),o.Wb(1,"mat-icon"),o.Hc(2,"more_vert"),o.Vb(),o.Vb()),2&e){o.ic();var n=o.wc(7);o.pc("matMenuTriggerFor",n)}}function vn(e,t){if(1&e){var n=o.Xb();o.Wb(0,"mat-card-header"),o.Wb(1,"mat-card-title"),o.Rb(2,"fa-icon",10),o.Wb(3,"span"),o.Hc(4),o.Vb(),o.Fc(5,yn,3,1,"button",11),o.Wb(6,"mat-menu",12,37),o.Wb(8,"button",14),o.ec("click",(function(){o.yc(n);var e=o.ic().$implicit;return o.ic(2).onNavigateTo(e.link)})),o.Hc(9),o.Vb(),o.Vb(),o.Vb(),o.Vb()}if(2&e){var a=o.ic().$implicit;o.Db(2),o.pc("icon",a.icon),o.Db(2),o.Ic(a.title),o.Db(1),o.pc("ngIf",a.link),o.Db(4),o.Jc("Go To ",a.goTo,"")}}function xn(e,t){if(1&e&&o.Rb(0,"rtl-ecl-node-info",38),2&e){var n=o.ic(3);o.pc("information",n.information)("ngClass",o.tc(2,ln,"error"===n.flgLoading[0]))}}function Cn(e,t){if(1&e&&o.Rb(0,"rtl-ecl-balances-info",26),2&e){var n=o.ic(3);o.pc("balances",n.balances)("ngClass",o.tc(2,ln,"error"===n.flgLoading[2]))}}function Vn(e,t){if(1&e&&o.Rb(0,"rtl-ecl-channel-liquidity-info",39),2&e){var n=o.ic(3);o.pc("direction","In")("totalLiquidity",n.totalInboundLiquidity)("allChannels",n.allInboundChannels)("ngClass",o.tc(4,ln,"error"===n.flgLoading[5]))}}function wn(e,t){if(1&e&&o.Rb(0,"rtl-ecl-channel-liquidity-info",39),2&e){var n=o.ic(3);o.pc("direction","Out")("totalLiquidity",n.totalOutboundLiquidity)("allChannels",n.allOutboundChannels)("ngClass",o.tc(4,ln,"error"===n.flgLoading[5]))}}function Dn(e,t){if(1&e){var n=o.Xb();o.Wb(0,"button",48),o.Wb(1,"mat-icon"),o.Hc(2,"more_vert"),o.Vb(),o.Vb(),o.Wb(3,"mat-menu",12,49),o.Wb(5,"button",14),o.ec("click",(function(){o.yc(n);var e=o.ic(2).$implicit;return o.ic(2).onNavigateTo(e.link)})),o.Hc(6),o.Vb(),o.Vb()}if(2&e){var a=o.wc(4),i=o.ic(2).$implicit;o.pc("matMenuTriggerFor",a),o.Db(6),o.Jc("Go To ",i.goTo,"")}}function Sn(e,t){1&e&&(o.Wb(0,"span",40),o.Wb(1,"mat-tab-group",41),o.Wb(2,"mat-tab",42),o.Rb(3,"rtl-ecl-lightning-invoices",43),o.Vb(),o.Wb(4,"mat-tab",44),o.Rb(5,"rtl-ecl-lightning-payments",45),o.Vb(),o.Wb(6,"mat-tab",46),o.Fc(7,Dn,7,2,"ng-template",47),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(3),o.pc("showDetails",!1),o.Db(2),o.pc("showDetails",!1),o.Db(1),o.pc("disabled",!0))}function Wn(e,t){1&e&&(o.Wb(0,"h3"),o.Hc(1,"Error! Unable to find information!"),o.Vb())}var Fn=function(e){return{"p-24":e}};function In(e,t){if(1&e&&(o.Wb(0,"mat-grid-tile",8),o.Wb(1,"mat-card",31),o.Fc(2,vn,10,4,"mat-card-header",32),o.Wb(3,"mat-card-content",33),o.Wb(4,"div",17),o.Fc(5,xn,1,4,"rtl-ecl-node-info",34),o.Fc(6,Cn,1,4,"rtl-ecl-balances-info",19),o.Fc(7,Vn,1,6,"rtl-ecl-channel-liquidity-info",35),o.Fc(8,wn,1,6,"rtl-ecl-channel-liquidity-info",35),o.Fc(9,Sn,8,3,"span",36),o.Fc(10,Wn,2,0,"h3",23),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.pc("colspan",n.cols)("rowspan",n.rows),o.Db(1),o.pc("ngClass",o.tc(11,Fn,"transactions"!==n.id)),o.Db(1),o.pc("ngIf","transactions"!==n.id),o.Db(1),o.qc("fxFlex","transactions"!==n.id?95:100),o.Db(1),o.pc("ngSwitch",n.id),o.Db(1),o.pc("ngSwitchCase","node"),o.Db(1),o.pc("ngSwitchCase","balance"),o.Db(1),o.pc("ngSwitchCase","inboundLiq"),o.Db(1),o.pc("ngSwitchCase","outboundLiq"),o.Db(1),o.pc("ngSwitchCase","transactions")}}function Ln(e,t){if(1&e&&(o.Wb(0,"div",3),o.Rb(1,"fa-icon",4),o.Wb(2,"span",5),o.Hc(3),o.Vb(),o.Vb(),o.Wb(4,"mat-grid-list",30),o.Fc(5,In,11,13,"mat-grid-tile",7),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("icon",n.faSmile),o.Db(2),o.Jc("Welcome ",n.information.alias,"! Your node is up and running."),o.Db(1),o.pc("rowHeight",n.merchantCardHeight),o.Db(1),o.pc("ngForOf",n.merchantCards)}}var Hn=function(){function e(e,t,n,a,i){this.logger=e,this.store=t,this.actions$=n,this.commonService=a,this.router=i,this.faSmile=p.b,this.faFrown=p.a,this.faAngleDoubleDown=f.a,this.faAngleDoubleUp=f.b,this.faChartPie=f.f,this.faBolt=f.e,this.faServer=f.F,this.faNetworkWired=f.x,this.flgChildInfoUpdated=!1,this.userPersonaEnum=g.u,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:"0"},this.selNode={},this.information={},this.channels=[],this.onchainBalance={},this.balances={onchain:-1,lightning:-1,total:0},this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="330px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.flgLoading=[!0,!0,!0,!0,!0,!0,!0,!0],this.unSubs=[new u.a,new u.a,new u.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goTo:"On-Chain",link:"/ecl/onchain",icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goTo:"Routing",link:"/ecl/routing",icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goTo:"Channels",link:"/ecl/peerschannels",icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goTo:"Channels",link:"/ecl/peerschannels",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/ecl/onchain",icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goTo:"Transactions",link:"/ecl/transactions",title:"",cols:6,rows:4},{id:"inboundLiq",goTo:"Channels",link:"/ecl/peerschannels",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/ecl/peerschannels",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goTo:"On-Chain",link:"/ecl/onchain",icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goTo:"Routing",link:"/ecl/routing",icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goTo:"Channels",link:"/ecl/peerschannels",icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goTo:"Channels",link:"/ecl/peerschannels",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/ecl/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goTo:"Transactions",link:"/ecl/transactions",title:"",cols:3,rows:4},{id:"inboundLiq",goTo:"Channels",link:"/ecl/peerschannels",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/ecl/peerschannels",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCardHeight=(window.screen.height-200)/2+"px",this.merchantCardHeight=(window.screen.height-210)/10+"px",this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goTo:"On-Chain",link:"/ecl/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goTo:"Channels",link:"/ecl/peerschannels",icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goTo:"Routing",link:"/ecl/routing",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goTo:"Channels",link:"/ecl/peerschannels",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/ecl/onchain",icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goTo:"Channels",link:"/ecl/peerschannels",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goTo:"Channels",link:"/ecl/peerschannels",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goTo:"Transactions",link:"/ecl/transactions",title:"",cols:2,rows:5}])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("ecl").pipe(Object(b.a)(this.unSubs[1])).subscribe((function(t){e.flgLoading=[!0,!0,!0,!0,!0,!0,!0,!0],t.effectErrors.forEach((function(t){"FetchInfo"===t.action&&(e.flgLoading[0]="error"),"FetchFees"===t.action&&(e.flgLoading[1]="error"),"FetchChannels"===t.action&&(e.flgLoading[2]="error")})),e.selNode=t.nodeSettings,e.information=t.information,"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!e.information.nodeId),e.fees=t.fees,"error"!==e.flgLoading[1]&&(e.flgLoading[1]=!e.fees.daily_fee),e.channels=t.activeChannels,e.onchainBalance=t.onchainBalance,e.balances.onchain=e.onchainBalance.total,e.balances.lightning=t.lightningBalance.localBalance,e.balances.total=e.balances.lightning+e.balances.onchain,e.balances=Object.assign({},e.balances);var n=t.lightningBalance.localBalance?+t.lightningBalance.localBalance:0,a=t.lightningBalance.remoteBalance?+t.lightningBalance.remoteBalance:0;e.channelBalances={localBalance:n,remoteBalance:a,balancedness:(1-Math.abs((n-a)/(n+a))).toFixed(3)},e.channelsStatus=t.channelsStatus,e.totalInboundLiquidity=0,e.totalOutboundLiquidity=0,e.allChannelsCapacity=JSON.parse(JSON.stringify(e.commonService.sortDescByKey(e.channels,"balancedness"))),e.allInboundChannels=JSON.parse(JSON.stringify(e.commonService.sortDescByKey(e.channels.filter((function(e){return e.toRemote>0})),"toRemote"))),e.allOutboundChannels=JSON.parse(JSON.stringify(e.commonService.sortDescByKey(e.channels.filter((function(e){return e.toLocal>0})),"toLocal"))),e.channels.forEach((function(t){e.totalInboundLiquidity=e.totalInboundLiquidity+Math.ceil(t.toRemote),e.totalOutboundLiquidity=e.totalOutboundLiquidity+Math.floor(t.toLocal)})),"error"!==e.flgLoading[2]&&(e.flgLoading[2]=!e.channels),e.flgChildInfoUpdated=e.balances.lightning>=0&&e.balances.onchain>=0&&e.fees.monthly_fee>=0,e.logger.info(t)})),this.actions$.pipe(Object(b.a)(this.unSubs[2]),Object(d.a)((function(e){return e.type===y.n||e.type===y.X}))).subscribe((function(t){t.type===y.n&&(e.flgChildInfoUpdated=!1),t.type===y.X&&(e.flgChildInfoUpdated=!0)}))},e.prototype.onNavigateTo=function(e){this.router.navigateByUrl(e)},e.prototype.onsortChannelsBy=function(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.channels.sort((function(e,t){var n=+e.toLocal+ +e.toRemote,a=+t.toLocal+ +t.toRemote;return n>a?-1:n0||0===n.amount),o.Db(1),o.pc("ngIf",n.amount<0)}}function Jn(e,t){1&e&&(o.Wb(0,"th",34),o.Hc(1," Fees (Sats) "),o.Vb())}function Gn(e,t){if(1&e&&(o.Wb(0,"td",33),o.Wb(1,"span",37),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.kc(3,1,n.fees))}}function Kn(e,t){1&e&&(o.Wb(0,"th",39),o.Hc(1," Confirmations "),o.Vb())}function Yn(e,t){if(1&e&&(o.Wb(0,"td",40),o.Wb(1,"span",37),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.kc(3,1,null==n?null:n.confirmations)," ")}}function Zn(e,t){1&e&&(o.Wb(0,"th",32),o.Hc(1," Address "),o.Vb())}function ea(e,t){if(1&e&&(o.Wb(0,"td",33),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(n.address)}}function ta(e,t){if(1&e){var n=o.Xb();o.Wb(0,"th",41),o.Wb(1,"div",42),o.Wb(2,"mat-select",43),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",44),o.ec("click",(function(){return o.yc(n),o.ic().onDownloadCSV()})),o.Hc(5,"Download CSV"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}}function na(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",45),o.Wb(1,"button",46),o.ec("click",(function(e){o.yc(n);var a=t.$implicit;return o.ic().onTransactionClick(a,e)})),o.Hc(2,"View Info"),o.Vb(),o.Vb()}}function aa(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No transactions available."),o.Vb())}function ia(e,t){if(1&e&&(o.Wb(0,"td",47),o.Fc(1,aa,2,0,"p",48),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngIf",!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)}}var oa=function(e){return{"display-none":e}};function ca(e,t){if(1&e&&o.Rb(0,"tr",49),2&e){var n=o.ic();o.pc("ngClass",o.tc(1,oa,(null==n.listTransactions?null:n.listTransactions.data)&&(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)>0))}}function ra(e,t){1&e&&o.Rb(0,"tr",50)}function sa(e,t){1&e&&o.Rb(0,"tr",51)}var la=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},ua=function(){return["no_transaction"]},ba=function(){function e(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.actions$=a,this.faHistory=f.q,this.displayedColumns=[],this.flgLoading=[!0],this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unsub=[new u.a,new u.a,new u.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","actions"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","confirmations","fees","actions"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","fees","confirmations","address","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","amount","fees","confirmations","address","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.dispatch(new y.B),this.store.select("ecl").pipe(Object(b.a)(this.unsub[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchTransactions"===t.action&&(e.flgLoading[0]="error")})),t.transactions&&e.loadTransactionsTable(t.transactions),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.transactions),e.logger.info(t)}))},e.prototype.applyFilter=function(e){this.listTransactions.filter=e},e.prototype.onTransactionClick=function(e,t){this.store.dispatch(new ce.C({data:{type:g.b.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"blockHash",value:e.blockHash,title:"Block Hash",width:100}],[{key:"txid",value:e.txid,title:"Transaction ID",width:100}],[{key:"timestampStr",value:e.timestampStr,title:"Date/Time",width:50,type:g.h.DATE_TIME},{key:"confirmations",value:e.confirmations,title:"Number of Confirmations",width:50,type:g.h.NUMBER}],[{key:"fees",value:e.fees,title:"Fees (Sats)",width:50,type:g.h.NUMBER},{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:g.h.NUMBER}],[{key:"address",value:e.address,title:"Address",width:100,type:g.h.STRING}]]}}))},e.prototype.loadTransactionsTable=function(e){this.listTransactions=new ie.o(Object(te.g)(e)),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.listTransactions.paginator=this.paginator,this.logger.info(this.listTransactions)},e.prototype.onDownloadCSV=function(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")},e.prototype.ngOnDestroy=function(){this.unsub.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(h.a),o.Qb(v.h),o.Qb(x.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-on-chain-transaction-history"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Dc(ne.a,!0)),2&e&&(o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.paginator=n.first))},features:[o.Cb([{provide:ne.b,useValue:Object(g.w)("Transactions")}])],decls:37,vars:14,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start"],["perfectScrollbar","","fxFlex","100",1,"table-container"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","fees"],["matColumnDef","confirmations"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pr-2",4,"matHeaderCellDef"],["mat-cell","","class","pr-2",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pr-2"],["mat-cell","",1,"pr-2"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"div",2),o.Rb(3,"fa-icon",3),o.Wb(4,"span",4),o.Hc(5,"Transaction History"),o.Vb(),o.Vb(),o.Wb(6,"mat-form-field",5),o.Wb(7,"input",6),o.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),o.Vb(),o.Vb(),o.Vb(),o.Wb(8,"div",7),o.Wb(9,"div",8),o.Fc(10,qn,1,0,"mat-progress-bar",9),o.Wb(11,"table",10,11),o.Ub(13,12),o.Fc(14,Un,2,0,"th",13),o.Fc(15,jn,2,1,"td",14),o.Tb(),o.Ub(16,15),o.Fc(17,Qn,2,0,"th",16),o.Fc(18,Xn,3,2,"td",14),o.Tb(),o.Ub(19,17),o.Fc(20,Jn,2,0,"th",16),o.Fc(21,Gn,4,3,"td",14),o.Tb(),o.Ub(22,18),o.Fc(23,Kn,2,0,"th",19),o.Fc(24,Yn,4,3,"td",20),o.Tb(),o.Ub(25,21),o.Fc(26,Zn,2,0,"th",13),o.Fc(27,ea,2,1,"td",14),o.Tb(),o.Ub(28,22),o.Fc(29,ta,6,0,"th",23),o.Fc(30,na,3,0,"td",24),o.Tb(),o.Ub(31,25),o.Fc(32,ia,2,1,"td",26),o.Tb(),o.Fc(33,ca,1,3,"tr",27),o.Fc(34,ra,1,0,"tr",28),o.Fc(35,sa,1,0,"tr",29),o.Vb(),o.Rb(36,"mat-paginator",30),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(3),o.pc("icon",t.faHistory),o.Db(7),o.pc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.pc("dataSource",t.listTransactions)("ngClass",o.tc(11,la,"error"===t.flgLoading[0])),o.Db(22),o.pc("matFooterRowDef",o.sc(13,ua)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns),o.Db(1),o.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[C.c,C.b,C.a,V.a,P.c,se.b,M.b,a.n,ie.n,ae.a,a.l,I.a,ie.c,ie.i,ie.b,ie.e,ie.g,ie.k,ie.m,ne.a,c.a,ie.h,ae.b,ie.a,be.a,be.c,de.n,W.a,ie.d,ie.f,ie.j,ie.l],pipes:[a.e],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}(),da=function(){function e(e){this.store=e,this.selNode={},this.faExchangeAlt=f.m,this.faChartPie=f.f,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.unSubs=[new u.a,new u.a,new u.a,new u.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("ecl").pipe(Object(b.a)(this.unSubs[1])).subscribe((function(t){e.selNode=t.nodeSettings,e.balances=[{title:"Total Balance",dataValue:t.onchainBalance.total||0},{title:"Confirmed",dataValue:t.onchainBalance.confirmed},{title:"Unconfirmed",dataValue:t.onchainBalance.unconfirmed}]}))},e.prototype.openSendFundsModal=function(){this.store.dispatch(new ce.C({data:{component:Mn}}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(v.h))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-on-chain"]],decls:26,vars:3,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["label","Receive"],["label","Send"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Rb(1,"fa-icon",1),o.Wb(2,"span",2),o.Hc(3,"On-chain Balance"),o.Vb(),o.Vb(),o.Wb(4,"div",3),o.Wb(5,"mat-card"),o.Wb(6,"mat-card-content",4),o.Rb(7,"rtl-currency-unit-converter",5),o.Vb(),o.Vb(),o.Vb(),o.Wb(8,"div",0),o.Rb(9,"fa-icon",1),o.Wb(10,"span",2),o.Hc(11,"On-chain Transactions"),o.Vb(),o.Vb(),o.Wb(12,"div",6),o.Wb(13,"mat-card"),o.Wb(14,"mat-card-content",4),o.Wb(15,"mat-tab-group"),o.Wb(16,"mat-tab",7),o.Rb(17,"rtl-ecl-on-chain-receive"),o.Vb(),o.Wb(18,"mat-tab",8),o.Wb(19,"div",9),o.Wb(20,"div",10),o.Wb(21,"button",11),o.ec("click",(function(){return t.openSendFundsModal()})),o.Hc(22,"Send Funds"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Wb(23,"div",12),o.Wb(24,"div",10),o.Rb(25,"rtl-ecl-on-chain-transaction-history",13),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(1),o.pc("icon",t.faChartPie),o.Db(6),o.pc("values",t.balances),o.Db(2),o.pc("icon",t.faExchangeAlt))},directives:[C.c,C.b,V.a,D.a,D.b,zn.a,ee.c,ee.a,Nn,C.a,W.a,ba],styles:[""]}),e}(),pa=n("p0Sj"),fa=n("67Y/"),ma=n("ZiY4"),ha=n("hNFU"),ga=n("Ci9w"),ya=["form"];function va(e,t){if(1&e&&(o.Wb(0,"mat-option",24),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.pc("value",n),o.Db(1),o.Ic(n.alias?n.alias:n.id?n.id:"")}}function xa(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Peer alias is required."),o.Vb())}function Ca(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Peer not found in the list."),o.Vb())}function Va(e,t){if(1&e){var n=o.Xb();o.Wb(0,"mat-form-field",18),o.Wb(1,"input",19),o.ec("change",(function(){return o.yc(n),o.ic().onSelectedPeerChanged()})),o.Vb(),o.Wb(2,"mat-autocomplete",20,21),o.ec("optionSelected",(function(){return o.yc(n),o.ic().onSelectedPeerChanged()})),o.Fc(4,va,2,2,"mat-option",22),o.jc(5,"async"),o.Vb(),o.Fc(6,xa,2,0,"mat-error",23),o.Fc(7,Ca,2,0,"mat-error",23),o.Vb()}if(2&e){var a=o.wc(3),i=o.ic();o.Db(1),o.pc("formControl",i.selectedPeer)("matAutocomplete",a),o.Db(1),o.pc("displayWith",i.displayFn),o.Db(2),o.pc("ngForOf",o.kc(5,6,i.filteredPeers)),o.Db(2),o.pc("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.required),o.Db(1),o.pc("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.notfound)}}function wa(e,t){1&e&&o.Sb(0)}function Da(e,t){1&e&&o.Sb(0)}function Sa(e,t){if(1&e&&(o.Wb(0,"span"),o.Hc(1),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.Ic(n.channelConnectionError)}}function Wa(e,t){if(1&e&&(o.Wb(0,"div",25),o.Rb(1,"fa-icon",26),o.Fc(2,Sa,2,1,"span",23),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("icon",n.faExclamationTriangle),o.Db(1),o.pc("ngIf",""!==n.channelConnectionError)}}function Fa(e,t){if(1&e&&(o.Wb(0,"mat-expansion-panel",28),o.Wb(1,"mat-expansion-panel-header"),o.Wb(2,"mat-panel-title"),o.Wb(3,"span"),o.Hc(4,"Peer: \xa0"),o.Vb(),o.Wb(5,"strong",29),o.Hc(6),o.Vb(),o.Vb(),o.Vb(),o.Wb(7,"div",9),o.Wb(8,"div",0),o.Wb(9,"div",18),o.Wb(10,"h4",30),o.Hc(11,"Pubkey"),o.Vb(),o.Wb(12,"span",31),o.Hc(13),o.Vb(),o.Vb(),o.Vb(),o.Rb(14,"mat-divider",32),o.Wb(15,"div",0),o.Wb(16,"div",33),o.Wb(17,"h4",30),o.Hc(18,"Address"),o.Vb(),o.Wb(19,"span",34),o.Hc(20),o.Vb(),o.Vb(),o.Wb(21,"div",33),o.Wb(22,"h4",30),o.Hc(23,"State"),o.Vb(),o.Wb(24,"span",34),o.Hc(25),o.jc(26,"titlecase"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e){var n=o.ic(2);o.Db(6),o.Ic((null==n.peer?null:n.peer.alias)||(null==n.peer?null:n.peer.nodeId)),o.Db(7),o.Ic(n.peer.nodeId),o.Db(7),o.Ic(null==n.peer?null:n.peer.address),o.Db(5),o.Ic(o.kc(26,4,null==n.peer?null:n.peer.state))}}function Ia(e,t){if(1&e&&o.Fc(0,Fa,27,6,"mat-expansion-panel",27),2&e){var n=o.ic();o.pc("ngIf",n.peer)}}function La(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Amount is required."),o.Vb())}function Ha(e,t){if(1&e&&(o.Wb(0,"mat-error"),o.Hc(1),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.Jc("Amount must be less than or equal to ",n.totalBalance,".")}}function Aa(e,t){if(1&e){var n=o.Xb();o.Wb(0,"form",9,8),o.Wb(2,"div",35),o.Wb(3,"mat-form-field",36),o.Wb(4,"input",37,38),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().fundingAmount=e})),o.Vb(),o.Wb(6,"mat-hint"),o.Hc(7),o.jc(8,"number"),o.Vb(),o.Wb(9,"span",39),o.Hc(10),o.Vb(),o.Fc(11,La,2,0,"mat-error",23),o.Fc(12,Ha,2,1,"mat-error",23),o.Vb(),o.Wb(13,"div",40),o.Wb(14,"mat-slide-toggle",41),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().isPrivate=e})),o.Hc(15,"Private Channel"),o.Vb(),o.Vb(),o.Vb(),o.Wb(16,"mat-expansion-panel",42),o.ec("closed",(function(){return o.yc(n),o.ic().onAdvancedPanelToggle(!0)}))("opened",(function(){return o.yc(n),o.ic().onAdvancedPanelToggle(!1)})),o.Wb(17,"mat-expansion-panel-header"),o.Wb(18,"mat-panel-title"),o.Wb(19,"span"),o.Hc(20),o.Vb(),o.Vb(),o.Vb(),o.Wb(21,"div",43),o.Wb(22,"div",35),o.Wb(23,"div",44),o.Wb(24,"mat-form-field",18),o.Wb(25,"input",45,46),o.ec("ngModelChange",(function(e){return o.yc(n),o.ic().feeRate=e})),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()}if(2&e){var a=o.wc(5),i=o.ic();o.Db(4),o.qc("max",i.totalBalance),o.pc("ngModel",i.fundingAmount),o.Db(3),o.Jc("Remaining Bal: ",o.kc(8,9,i.totalBalance-(i.fundingAmount?i.fundingAmount:0)),""),o.Db(3),o.Jc(" ",null==i.information?null:i.information.smaller_currency_unit," "),o.Db(1),o.pc("ngIf",null==a.errors?null:a.errors.required),o.Db(1),o.pc("ngIf",null==a.errors?null:a.errors.max),o.Db(2),o.pc("ngModel",i.isPrivate),o.Db(6),o.Ic(i.advancedTitle),o.Db(5),o.pc("ngModel",i.feeRate)}}var Ra=function(){function e(e,t,n,a){this.dialogRef=e,this.data=t,this.store=n,this.actions$=a,this.selectedPeer=new re.d,this.faExclamationTriangle=f.n,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.feeRate=null,this.unSubs=[new u.a,new u.a]}return e.prototype.ngOnInit=function(){var e=this;this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.alertTitle=this.data.alertTitle,this.peer=this.data.message.peer?this.data.message.peer:null,this.peers=this.data.message.peers&&this.data.message.peers.length?this.data.message.peers:[],this.actions$.pipe(Object(b.a)(this.unSubs[0]),Object(d.a)((function(e){return e.type===y.j||e.type===y.l}))).subscribe((function(t){t.type===y.j&&"SaveNewChannel"===t.payload.action&&(e.channelConnectionError=t.payload.message),t.type===y.l&&e.dialogRef.close()}));var t="",n="";this.sortedPeers=this.peers.sort((function(e,a){return t=e.alias?e.alias.toLowerCase():e.nodeId?e.nodeId.toLowerCase():"",n=a.alias?a.alias.toLowerCase():e.nodeId.toLowerCase(),tn?1:0})),this.filteredPeers=this.selectedPeer.valueChanges.pipe(Object(b.a)(this.unSubs[1]),Object(pa.a)(""),Object(fa.a)((function(e){return"string"==typeof e?e:e.alias?e.alias:e.nodeId})),Object(fa.a)((function(t){return t?e.filterPeers(t):e.sortedPeers.slice()})))},e.prototype.filterPeers=function(e){return this.sortedPeers.filter((function(t){return 0===t.alias.toLowerCase().indexOf(e?e.toLowerCase():"")}))},e.prototype.displayFn=function(e){return e&&e.alias?e.alias:e&&e.nodeId?e.nodeId:""},e.prototype.onSelectedPeerChanged=function(){var e=this;if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.nodeId?this.selectedPeer.value.nodeId:void 0,"string"==typeof this.selectedPeer.value){var t=this.peers.filter((function(t){return t.alias.length===e.selectedPeer.value.length&&0===t.alias.toLowerCase().indexOf(e.selectedPeer.value?e.selectedPeer.value.toLowerCase():"")}));1===t.length&&t[0].nodeId&&(this.selectedPubkey=t[0].nodeId)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)},e.prototype.onClose=function(){this.dialogRef.close(!1)},e.prototype.resetData=function(){this.feeRate=null,this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()},e.prototype.onAdvancedPanelToggle=function(e){this.advancedTitle=e&&this.feeRate&&this.feeRate>0?"Advanced Options | Fee (Sats/Byte): "+this.feeRate:"Advanced Options"},e.prototype.onOpenChannel=function(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0)return!0;this.store.dispatch(new ce.F("Opening Channel...")),this.store.dispatch(new y.kb({nodeId:this.peer&&this.peer.nodeId?this.peer.nodeId:this.selectedPubkey,amount:this.fundingAmount,private:this.isPrivate,feeRate:this.feeRate}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(oe.f),o.Qb(oe.a),o.Qb(v.h),o.Qb(x.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-open-channel"]],viewQuery:function(e,t){var n;1&e&&o.Mc(ya,!0),2&e&&o.vc(n=o.fc())&&(t.form=n.first)},decls:25,vars:5,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["openChannelBlock",""],["fxFlex","100"],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","70","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","step","1000","min","1","tabindex","1","required","","name","amount",3,"ngModel","max","ngModelChange"],["amount","ngModel"],["matSuffix",""],["fxFlex","25","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["matInput","","placeholder","Fee (Sats/Byte)","type","number","name","fee","step","1","min","0","tabindex","7",3,"ngModel","ngModelChange"],["fee","ngModel"]],template:function(e,t){if(1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"mat-card-header",2),o.Wb(3,"div",3),o.Wb(4,"span",4),o.Hc(5),o.Vb(),o.Vb(),o.Wb(6,"button",5),o.ec("click",(function(){return t.onClose()})),o.Hc(7,"X"),o.Vb(),o.Vb(),o.Wb(8,"mat-card-content",6),o.Wb(9,"form",7,8),o.ec("submit",(function(){return t.onOpenChannel()}))("reset",(function(){return t.resetData()})),o.Wb(11,"div",9),o.Fc(12,Va,8,8,"mat-form-field",10),o.Vb(),o.Fc(13,wa,1,0,"ng-container",11),o.Fc(14,Da,1,0,"ng-container",11),o.Fc(15,Wa,3,2,"div",12),o.Wb(16,"div",13),o.Wb(17,"button",14),o.Hc(18,"Clear Fields"),o.Vb(),o.Wb(19,"button",15),o.Hc(20,"Open Channel"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Fc(21,Ia,1,1,"ng-template",null,16,o.Gc),o.Fc(23,Aa,27,11,"ng-template",null,17,o.Gc)),2&e){var n=o.wc(22),a=o.wc(24);o.Db(5),o.Ic(t.alertTitle),o.Db(7),o.pc("ngIf",!t.peer&&t.peers&&t.peers.length>0),o.Db(1),o.pc("ngTemplateOutlet",n),o.Db(1),o.pc("ngTemplateOutlet",a),o.Db(1),o.pc("ngIf",""!==t.channelConnectionError)}},directives:[C.c,C.a,D.c,C.b,W.a,D.b,re.t,re.m,re.n,a.n,a.s,le.a,P.c,se.b,re.b,ma.c,re.r,re.l,re.e,ma.a,a.m,de.n,P.b,V.a,bt.c,bt.e,bt.f,E.a,re.p,ue.a,ha.a,re.o,P.f,P.g,ga.a],pipes:[a.b,a.w,a.e],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),e}(),ka=n("KELG"),Oa=n("dEYt");function Pa(e,t){if(1&e&&(o.Wb(0,"div",11),o.Wb(1,"h4",12),o.Hc(2,"Short Channel ID"),o.Vb(),o.Wb(3,"span",13),o.Hc(4),o.Vb(),o.Vb()),2&e){var n=o.ic();o.Db(4),o.Ic(n.channel.shortChannelId)}}function Ta(e,t){if(1&e&&(o.Wb(0,"div",11),o.Wb(1,"h4",12),o.Hc(2,"State"),o.Vb(),o.Wb(3,"span",16),o.Hc(4),o.jc(5,"titlecase"),o.Vb(),o.Vb()),2&e){var n=o.ic();o.Db(4),o.Ic(o.kc(5,1,n.channel.state))}}function Ea(e,t){if(1&e&&(o.Wb(0,"div"),o.Rb(1,"mat-divider",14),o.Wb(2,"div",9),o.Wb(3,"div",11),o.Wb(4,"h4",12),o.Hc(5,"Base Fee (mSats)"),o.Vb(),o.Wb(6,"span",16),o.Hc(7),o.jc(8,"number"),o.Vb(),o.Vb(),o.Wb(9,"div",11),o.Wb(10,"h4",12),o.Hc(11,"Fee Rate (mSats)"),o.Vb(),o.Wb(12,"span",16),o.Hc(13),o.Vb(),o.Vb(),o.Vb(),o.Rb(14,"mat-divider",14),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("inset",!0),o.Db(6),o.Ic(o.kc(8,4,n.channel.feeBaseMsat)),o.Db(6),o.Ic(n.channel.feeProportionalMillionths),o.Db(1),o.pc("inset",!0)}}function Ma(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"Show Advanced"),o.Vb())}function za(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"Hide Advanced"),o.Vb())}function Ba(e,t){if(1&e){var n=o.Xb();o.Wb(0,"button",22),o.ec("click",(function(){return o.yc(n),o.ic().onShowAdvanced()})),o.Fc(1,Ma,2,0,"p",23),o.Fc(2,za,2,0,"ng-template",null,24,o.Gc),o.Vb()}if(2&e){var a=o.wc(3),i=o.ic();o.Db(1),o.pc("ngIf",!i.showAdvanced)("ngIfElse",a)}}function Na(e,t){if(1&e){var n=o.Xb();o.Wb(0,"button",25),o.ec("copied",(function(e){return o.yc(n),o.ic().onCopyChanID(e)})),o.Hc(1,"Copy Short Channel ID"),o.Vb()}if(2&e){var a=o.ic();o.pc("payload",a.channel.shortChannelId)}}function qa(e,t){if(1&e){var n=o.Xb();o.Wb(0,"button",26),o.ec("copied",(function(e){return o.yc(n),o.ic().onCopyChanID(e)})),o.Hc(1,"Copy Channel ID"),o.Vb()}if(2&e){var a=o.ic();o.pc("payload",a.channel.channelId)}}var Ua=function(e){return{"xs-scroll-y":e}},ja=function(e,t){return{"mt-2":e,"mt-1":t}},Qa=function(){function e(e,t,n,a,i){this.dialogRef=e,this.data=t,this.logger=n,this.commonService=a,this.snackBar=i,this.faReceipt=f.C,this.showAdvanced=!1,this.channelsType="open",this.screenSize="",this.screenSizeEnum=g.o}return e.prototype.ngOnInit=function(){this.channel=this.data.channel,this.channelsType=this.data.channelsType,this.screenSize=this.commonService.getScreenSize()},e.prototype.onClose=function(){this.dialogRef.close(!1)},e.prototype.onShowAdvanced=function(){this.showAdvanced=!this.showAdvanced},e.prototype.onCopyChanID=function(e){this.snackBar.open("open"===this.channelsType?"Short channel ID "+e+" copied.":"Channel ID copied."),this.logger.info("Copied Text: "+e)},e.\u0275fac=function(t){return new(t||e)(o.Qb(oe.f),o.Qb(oe.a),o.Qb(m.b),o.Qb(h.a),o.Qb(ka.b))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-channel-information"]],decls:64,vars:29,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"padding-gap-large","pl-3"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-1"],["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"],[3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50",4,"ngIf"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-stroked-button","","color","primary","type","reset","tabindex","1","class","mr-1",3,"click",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-flat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"mat-card-header",2),o.Wb(3,"div",3),o.Rb(4,"fa-icon",4),o.Wb(5,"span",5),o.Hc(6,"Channel Information"),o.Vb(),o.Vb(),o.Wb(7,"button",6),o.ec("click",(function(){return t.onClose()})),o.Hc(8,"X"),o.Vb(),o.Vb(),o.Wb(9,"mat-card-content",7),o.Wb(10,"div",8),o.Wb(11,"div",9),o.Fc(12,Pa,5,1,"div",10),o.Wb(13,"div",11),o.Wb(14,"h4",12),o.Hc(15,"Peer Alias"),o.Vb(),o.Wb(16,"span",13),o.Hc(17),o.Vb(),o.Vb(),o.Fc(18,Ta,6,3,"div",10),o.Vb(),o.Rb(19,"mat-divider",14),o.Wb(20,"div",9),o.Wb(21,"div",15),o.Wb(22,"h4",12),o.Hc(23,"Channel ID"),o.Vb(),o.Wb(24,"span",13),o.Hc(25),o.Vb(),o.Vb(),o.Vb(),o.Rb(26,"mat-divider",14),o.Wb(27,"div",9),o.Wb(28,"div",15),o.Wb(29,"h4",12),o.Hc(30,"Peer Public Key"),o.Vb(),o.Wb(31,"span",13),o.Hc(32),o.Vb(),o.Vb(),o.Vb(),o.Rb(33,"mat-divider",14),o.Wb(34,"div",9),o.Wb(35,"div",11),o.Wb(36,"h4",12),o.Hc(37,"Local Balance (Sats)"),o.Vb(),o.Wb(38,"span",16),o.Hc(39),o.jc(40,"number"),o.Vb(),o.Vb(),o.Wb(41,"div",11),o.Wb(42,"h4",12),o.Hc(43,"Remote Balance (Sats)"),o.Vb(),o.Wb(44,"span",16),o.Hc(45),o.jc(46,"number"),o.Vb(),o.Vb(),o.Vb(),o.Rb(47,"mat-divider",14),o.Wb(48,"div",9),o.Wb(49,"div",11),o.Wb(50,"h4",12),o.Hc(51,"Private"),o.Vb(),o.Wb(52,"span",16),o.Hc(53),o.Vb(),o.Vb(),o.Wb(54,"div",11),o.Wb(55,"h4",12),o.Hc(56,"Funder"),o.Vb(),o.Wb(57,"span",16),o.Hc(58),o.Vb(),o.Vb(),o.Vb(),o.Fc(59,Ea,15,6,"div",17),o.Wb(60,"div",18),o.Fc(61,Ba,4,2,"button",19),o.Fc(62,Na,2,1,"button",20),o.Fc(63,qa,2,1,"button",21),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(4),o.pc("icon",t.faReceipt),o.Db(5),o.pc("ngClass",o.tc(24,Ua,t.screenSize===t.screenSizeEnum.XS)),o.Db(3),o.pc("ngIf","open"===t.channelsType),o.Db(5),o.Ic(t.channel.alias),o.Db(1),o.pc("ngIf","open"!==t.channelsType),o.Db(1),o.pc("inset",!0),o.Db(6),o.Ic(t.channel.channelId),o.Db(1),o.pc("inset",!0),o.Db(6),o.Ic(t.channel.nodeId),o.Db(1),o.pc("inset",!0),o.Db(6),o.Ic(o.kc(40,20,t.channel.toLocal)),o.Db(6),o.Ic(o.kc(46,22,t.channel.toRemote)),o.Db(2),o.pc("inset",!0),o.Db(6),o.Ic(0===t.channel.channelFlags?"Yes":"No"),o.Db(5),o.Ic(t.channel.isFunder?"Yes":"No"),o.Db(1),o.pc("ngIf",t.showAdvanced&&"open"===t.channelsType),o.Db(1),o.pc("ngClass",o.uc(26,ja,!t.showAdvanced,t.showAdvanced)),o.Db(1),o.pc("ngIf","open"===t.channelsType),o.Db(1),o.pc("ngIf","open"===t.channelsType),o.Db(1),o.pc("ngIf","open"!==t.channelsType))},directives:[C.c,C.b,C.a,D.c,V.a,W.a,D.b,a.l,I.a,a.n,E.a,le.a,Oa.a],pipes:[a.e,a.w],styles:[""]}),e}();function _a(e,t){1&e&&o.Rb(0,"mat-progress-bar",28)}function $a(e,t){1&e&&(o.Wb(0,"th",29),o.Hc(1," Short Channel ID "),o.Vb())}function Xa(e,t){if(1&e&&(o.Wb(0,"span",35),o.Rb(1,"fa-icon",36),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.pc("icon",n.faEyeSlash)}}function Ja(e,t){if(1&e&&(o.Wb(0,"span",37),o.Rb(1,"fa-icon",36),o.Vb()),2&e){var n=o.ic(2);o.Db(1),o.pc("icon",n.faEye)}}var Ga=function(e){return{"max-width":e}};function Ka(e,t){if(1&e&&(o.Wb(0,"td",30),o.Wb(1,"div",31),o.Fc(2,Xa,2,1,"span",32),o.Fc(3,Ja,2,1,"span",33),o.Wb(4,"span",34),o.Hc(5),o.Vb(),o.Vb(),o.Vb()),2&e){var n=t.$implicit,a=o.ic();o.Db(1),o.pc("ngStyle",o.tc(4,Ga,a.screenSize===a.screenSizeEnum.XS?"10rem":"22rem")),o.Db(1),o.pc("ngIf",0===n.channelFlags),o.Db(1),o.pc("ngIf",0!==n.channelFlags),o.Db(2),o.Ic(null==n?null:n.shortChannelId)}}function Ya(e,t){1&e&&(o.Wb(0,"th",29),o.Hc(1," Alias "),o.Vb())}function Za(e,t){if(1&e&&(o.Wb(0,"td",30),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(n.alias)}}function ei(e,t){1&e&&(o.Wb(0,"th",38),o.Hc(1," Local Balance (Sats) "),o.Vb())}function ti(e,t){if(1&e&&(o.Wb(0,"td",30),o.Wb(1,"span",39),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.lc(3,1,null==n?null:n.toLocal,"1.0-0")," ")}}function ni(e,t){1&e&&(o.Wb(0,"th",38),o.Hc(1," Remote Balance (Sats) "),o.Vb())}function ai(e,t){if(1&e&&(o.Wb(0,"td",30),o.Wb(1,"span",39),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.lc(3,1,null==n?null:n.toRemote,"1.0-0")," ")}}function ii(e,t){1&e&&(o.Wb(0,"th",40),o.Hc(1,"Balance Score "),o.Vb())}function oi(e,t){if(1&e&&(o.Wb(0,"td",41),o.Wb(1,"div",42),o.Wb(2,"mat-hint",43),o.Hc(3),o.jc(4,"number"),o.Vb(),o.Vb(),o.Rb(5,"mat-progress-bar",44),o.Vb()),2&e){var n=t.$implicit;o.Db(3),o.Ic(o.kc(4,2,(null==n?null:n.balancedness)||0)),o.Db(2),o.qc("value",n.toLocal&&n.toLocal>0?(n.toLocal-0)/(n.toLocal-0+(n.toRemote-0))*100:0)}}function ci(e,t){if(1&e){var n=o.Xb();o.Wb(0,"th",45),o.Wb(1,"div",46),o.Wb(2,"mat-select",47),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",48),o.ec("click",(function(){return o.yc(n),o.ic().onChannelUpdate("all")})),o.Hc(5,"Update Fee Policy"),o.Vb(),o.Wb(6,"mat-option",48),o.ec("click",(function(){return o.yc(n),o.ic().onDownloadCSV()})),o.Hc(7,"Download CSV"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}}function ri(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",49),o.Wb(1,"div",50),o.Wb(2,"mat-select",51),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",48),o.ec("click",(function(e){o.yc(n);var a=t.$implicit;return o.ic().onChannelClick(a,e)})),o.Hc(5,"View Info"),o.Vb(),o.Wb(6,"mat-option",48),o.ec("click",(function(){o.yc(n);var e=t.$implicit;return o.ic().onChannelUpdate(e)})),o.Hc(7,"Update Fee Policy"),o.Vb(),o.Wb(8,"mat-option",48),o.ec("click",(function(){o.yc(n);var e=t.$implicit;return o.ic().onChannelClose(e,!1)})),o.Hc(9,"Close Channel"),o.Vb(),o.Wb(10,"mat-option",48),o.ec("click",(function(){o.yc(n);var e=t.$implicit;return o.ic().onChannelClose(e,!0)})),o.Hc(11,"Force Close"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}}function si(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No peers connected. Add a peer in order to open a channel."),o.Vb())}function li(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No open channels available."),o.Vb())}function ui(e,t){if(1&e&&(o.Wb(0,"td",52),o.Fc(1,si,2,0,"p",53),o.Fc(2,li,2,0,"p",53),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngIf",n.numPeers<1&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)),o.Db(1),o.pc("ngIf",n.numPeers>0&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1))}}var bi=function(e){return{"display-none":e}};function di(e,t){if(1&e&&o.Rb(0,"tr",54),2&e){var n=o.ic();o.pc("ngClass",o.tc(1,bi,n.numPeers>0&&(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function pi(e,t){1&e&&o.Rb(0,"tr",55)}function fi(e,t){1&e&&o.Rb(0,"tr",56)}var mi=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},hi=function(){return["no_peer"]},gi=function(){function e(e,t,n,a,i){this.logger=e,this.store=t,this.rtlEffects=n,this.eclEffects=a,this.commonService=i,this.faEye=f.o,this.faEyeSlash=f.p,this.totalBalance=0,this.displayedColumns=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=g.j,this.flgLoading=[!0],this.selectedFilter="",this.selFilter="",this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new u.a,new u.a,new u.a,new u.a,new u.a,new u.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["shortChannelId","alias","actions"]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["shortChannelId","alias","toLocal","toRemote","actions"]):(this.flgSticky=!0,this.displayedColumns=["shortChannelId","alias","toLocal","toRemote","balancedness","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("ecl").pipe(Object(b.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchChannels"===t.action&&(e.flgLoading[0]="error")})),e.information=t.information,e.numPeers=t.peers&&t.peers.length?t.peers.length:0,e.totalBalance=t.onchainBalance.total,e.activeChannels=t.activeChannels,e.loadChannelsTable(),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.activeChannels),e.logger.info(t)}))},e.prototype.onChannelUpdate=function(e){var t=this;"all"!==e&&"NORMAL"!==e.state||(this.store.dispatch(new ce.D({data:{type:g.b.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:[],titleMessage:"all"===e?"Update fee policy for selected/all channels":"Update fee policy for Channel: "+e.channelId,flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:e&&e.feeBaseMsat?e.feeBaseMsat:1e3,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:e&&e.feeProportionalMillionths?e.feeProportionalMillionths:100,min:1,width:48}]}})),this.rtlEffects.closeConfirm.pipe(Object(b.a)(this.unSubs[1])).subscribe((function(n){if(n){var a=n[0].inputValue,i=n[1].inputValue,o=null,c="";"all"===e?(t.activeChannels.forEach((function(e){c=c+","+e.channelId})),o={baseFeeMsat:a,feeRate:i,channelIds:c=c.substring(1)}):o={baseFeeMsat:a,feeRate:i,channelId:e.channelId},t.store.dispatch(new ce.F("Updating Channel Policy...")),t.store.dispatch(new y.xb(o))}})),this.applyFilter())},e.prototype.onChannelClose=function(e,t){var n=this;this.store.dispatch(new ce.D({data:{type:g.b.CONFIRM,alertTitle:t?"Force Close Channel":"Close Channel",titleMessage:t?"Force closing channel: "+e.channelId:"Closing channel: "+e.channelId,noBtnText:"Cancel",yesBtnText:t?"Force Close":"Close Channel"}})),this.rtlEffects.closeConfirm.pipe(Object(b.a)(this.unSubs[3])).subscribe((function(a){a&&(n.store.dispatch(new ce.F(t?"Force Closing Channel...":"Closing Channel...")),n.store.dispatch(new y.f({channelId:e.channelId,force:t})))}))},e.prototype.applyFilter=function(){this.selectedFilter=this.selFilter,this.channels.filter=this.selFilter},e.prototype.onChannelClick=function(e,t){this.store.dispatch(new ce.C({data:{channel:e,channelsType:"open",component:Qa}}))},e.prototype.loadChannelsTable=function(){this.activeChannels.sort((function(e,t){return e.alias===t.alias?0:t.alias?1:-1})),this.channels=new ie.o(Object(te.g)(this.activeChannels)),this.channels.sort=this.sort,this.channels.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.channels.paginator=this.paginator,this.logger.info(this.channels)},e.prototype.onDownloadCSV=function(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"ActiveChannels")},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(v.h),o.Qb(xe.a),o.Qb(tt.a),o.Qb(h.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-channel-open-table"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Dc(ne.a,!0)),2&e&&(o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.paginator=n.first))},features:[o.Cb([{provide:ne.b,useValue:Object(g.w)("Channels")}])],decls:33,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","shortChannelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["fxFlex","100","fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Rb(2,"div",2),o.Wb(3,"mat-form-field",3),o.Wb(4,"input",4),o.ec("keyup",(function(){return t.applyFilter()}))("ngModelChange",(function(e){return t.selFilter=e})),o.Vb(),o.Vb(),o.Vb(),o.Wb(5,"div",5),o.Fc(6,_a,1,0,"mat-progress-bar",6),o.Wb(7,"table",7,8),o.Ub(9,9),o.Fc(10,$a,2,0,"th",10),o.Fc(11,Ka,6,6,"td",11),o.Tb(),o.Ub(12,12),o.Fc(13,Ya,2,0,"th",10),o.Fc(14,Za,2,1,"td",11),o.Tb(),o.Ub(15,13),o.Fc(16,ei,2,0,"th",14),o.Fc(17,ti,4,4,"td",11),o.Tb(),o.Ub(18,15),o.Fc(19,ni,2,0,"th",14),o.Fc(20,ai,4,4,"td",11),o.Tb(),o.Ub(21,16),o.Fc(22,ii,2,0,"th",17),o.Fc(23,oi,6,4,"td",18),o.Tb(),o.Ub(24,19),o.Fc(25,ci,8,0,"th",20),o.Fc(26,ri,12,0,"td",21),o.Tb(),o.Ub(27,22),o.Fc(28,ui,3,2,"td",23),o.Tb(),o.Fc(29,di,1,3,"tr",24),o.Fc(30,pi,1,0,"tr",25),o.Fc(31,fi,1,0,"tr",26),o.Vb(),o.Vb(),o.Rb(32,"mat-paginator",27),o.Vb()),2&e&&(o.Db(4),o.pc("ngModel",t.selFilter),o.Db(2),o.pc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.pc("dataSource",t.channels)("ngClass",o.tc(11,mi,"error"===t.flgLoading[0])),o.Db(22),o.pc("matFooterRowDef",o.sc(13,hi)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns),o.Db(1),o.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[C.c,C.b,C.a,P.c,se.b,re.b,re.l,re.o,M.b,a.n,ie.n,ae.a,a.l,I.a,ie.c,ie.i,ie.b,ie.e,ie.g,ie.k,ie.m,ne.a,c.a,ie.h,ae.b,ie.a,a.o,I.b,T.a,V.a,P.f,be.a,be.c,de.n,ie.d,ie.f,ie.j,ie.l],pipes:[a.e],styles:[".mat-column-shortChannelId[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-shortChannelId[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-alias[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;flex:0 0 22%;width:22%}.mat-column-state[_ngcontent-%COMP%], .mat-column-toLocal[_ngcontent-%COMP%], .mat-column-toRemote[_ngcontent-%COMP%]{flex:0 0 15%;width:15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}();function yi(e,t){1&e&&o.Rb(0,"mat-progress-bar",25)}function vi(e,t){1&e&&(o.Wb(0,"th",26),o.Hc(1," State "),o.Vb())}function xi(e,t){if(1&e&&(o.Wb(0,"td",27),o.Hc(1),o.jc(2,"titlecase"),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",o.kc(2,1,null==n?null:n.state),"")}}function Ci(e,t){1&e&&(o.Wb(0,"th",26),o.Hc(1," Alias "),o.Vb())}function Vi(e,t){if(1&e&&(o.Wb(0,"td",27),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(null==n?null:n.alias)}}function wi(e,t){1&e&&(o.Wb(0,"th",28),o.Hc(1," Local Balance (Sats) "),o.Vb())}function Di(e,t){if(1&e&&(o.Wb(0,"td",27),o.Wb(1,"span",29),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.lc(3,1,null==n?null:n.toLocal,"1.0-0")," ")}}function Si(e,t){1&e&&(o.Wb(0,"th",28),o.Hc(1," Remote Balance (Sats) "),o.Vb())}function Wi(e,t){if(1&e&&(o.Wb(0,"td",27),o.Wb(1,"span",29),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.lc(3,1,null==n?null:n.toRemote,"1.0-0")," ")}}function Fi(e,t){if(1&e){var n=o.Xb();o.Wb(0,"th",30),o.Wb(1,"div",31),o.Wb(2,"mat-select",32),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",33),o.ec("click",(function(){return o.yc(n),o.ic().onDownloadCSV()})),o.Hc(5,"Download CSV"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}}function Ii(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",34),o.Wb(1,"button",35),o.ec("click",(function(e){o.yc(n);var a=t.$implicit;return o.ic().onChannelClick(a,e)})),o.Hc(2,"View Info"),o.Vb(),o.Vb()}}function Li(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No pending channels available."),o.Vb())}function Hi(e,t){if(1&e&&(o.Wb(0,"td",36),o.Fc(1,Li,2,0,"p",37),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngIf",!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)}}var Ai=function(e){return{"display-none":e}};function Ri(e,t){if(1&e&&o.Rb(0,"tr",38),2&e){var n=o.ic();o.pc("ngClass",o.tc(1,Ai,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function ki(e,t){1&e&&o.Rb(0,"tr",39)}function Oi(e,t){1&e&&o.Rb(0,"tr",40)}var Pi=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Ti=function(){return["no_channel"]},Ei=function(){function e(e,t,n,a,i){this.logger=e,this.store=t,this.rtlEffects=n,this.eclEffects=a,this.commonService=i,this.totalBalance=0,this.displayedColumns=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=g.j,this.flgLoading=[!0],this.selectedFilter="",this.selFilter="",this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new u.a,new u.a,new u.a,new u.a,new u.a,new u.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["state","alias","actions"]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["state","alias","toLocal","toRemote","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","alias","toLocal","toRemote","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("ecl").pipe(Object(b.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchChannels"===t.action&&(e.flgLoading[0]="error")})),e.information=t.information,e.numPeers=t.peers&&t.peers.length?t.peers.length:0,e.totalBalance=t.onchainBalance.total,e.pendingChannels=t.pendingChannels,e.loadChannelsTable(),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.pendingChannels),e.logger.info(t)}))},e.prototype.applyFilter=function(){this.selectedFilter=this.selFilter,this.channels.filter=this.selFilter},e.prototype.onChannelClick=function(e,t){this.store.dispatch(new ce.C({data:{channel:e,channelsType:"pending",component:Qa}}))},e.prototype.loadChannelsTable=function(){this.pendingChannels.sort((function(e,t){return e.alias===t.alias?0:t.alias?1:-1})),this.channels=new ie.o(Object(te.g)(this.pendingChannels)),this.channels.sort=this.sort,this.channels.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.channels.paginator=this.paginator,this.logger.info(this.channels)},e.prototype.onDownloadCSV=function(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"PendingChannels")},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(v.h),o.Qb(xe.a),o.Qb(tt.a),o.Qb(h.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-channel-pending-table"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Dc(ne.a,!0)),2&e&&(o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.paginator=n.first))},features:[o.Cb([{provide:ne.b,useValue:Object(g.w)("Channels")}])],decls:30,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100"],["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","alias"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Rb(2,"div",2),o.Wb(3,"mat-form-field",3),o.Wb(4,"input",4),o.ec("keyup",(function(){return t.applyFilter()}))("ngModelChange",(function(e){return t.selFilter=e})),o.Vb(),o.Vb(),o.Vb(),o.Wb(5,"div",5),o.Fc(6,yi,1,0,"mat-progress-bar",6),o.Wb(7,"table",7,8),o.Ub(9,9),o.Fc(10,vi,2,0,"th",10),o.Fc(11,xi,3,3,"td",11),o.Tb(),o.Ub(12,12),o.Fc(13,Ci,2,0,"th",10),o.Fc(14,Vi,2,1,"td",11),o.Tb(),o.Ub(15,13),o.Fc(16,wi,2,0,"th",14),o.Fc(17,Di,4,4,"td",11),o.Tb(),o.Ub(18,15),o.Fc(19,Si,2,0,"th",14),o.Fc(20,Wi,4,4,"td",11),o.Tb(),o.Ub(21,16),o.Fc(22,Fi,6,0,"th",17),o.Fc(23,Ii,3,0,"td",18),o.Tb(),o.Ub(24,19),o.Fc(25,Hi,2,1,"td",20),o.Tb(),o.Fc(26,Ri,1,3,"tr",21),o.Fc(27,ki,1,0,"tr",22),o.Fc(28,Oi,1,0,"tr",23),o.Vb(),o.Vb(),o.Rb(29,"mat-paginator",24),o.Vb()),2&e&&(o.Db(4),o.pc("ngModel",t.selFilter),o.Db(2),o.pc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.pc("dataSource",t.channels)("ngClass",o.tc(11,Pi,"error"===t.flgLoading[0])),o.Db(19),o.pc("matFooterRowDef",o.sc(13,Ti)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns),o.Db(1),o.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[C.c,C.b,C.a,P.c,se.b,re.b,re.l,re.o,M.b,a.n,ie.n,ae.a,a.l,I.a,ie.c,ie.i,ie.b,ie.e,ie.g,ie.k,ie.m,ne.a,c.a,ie.h,ae.b,ie.a,be.a,be.c,de.n,W.a,ie.d,ie.f,ie.j,ie.l],pipes:[a.w,a.e],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}();function Mi(e,t){1&e&&o.Rb(0,"mat-progress-bar",25)}function zi(e,t){1&e&&(o.Wb(0,"th",26),o.Hc(1," State "),o.Vb())}function Bi(e,t){if(1&e&&(o.Wb(0,"td",27),o.Hc(1),o.jc(2,"titlecase"),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",o.kc(2,1,null==n?null:n.state),"")}}function Ni(e,t){1&e&&(o.Wb(0,"th",26),o.Hc(1," Alias "),o.Vb())}function qi(e,t){if(1&e&&(o.Wb(0,"td",27),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(null==n?null:n.alias)}}function Ui(e,t){1&e&&(o.Wb(0,"th",28),o.Hc(1," Local Balance (Sats) "),o.Vb())}function ji(e,t){if(1&e&&(o.Wb(0,"td",27),o.Wb(1,"span",29),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.lc(3,1,null==n?null:n.toLocal,"1.0-0")," ")}}function Qi(e,t){1&e&&(o.Wb(0,"th",28),o.Hc(1," Remote Balance (Sats) "),o.Vb())}function _i(e,t){if(1&e&&(o.Wb(0,"td",27),o.Wb(1,"span",29),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Jc(" ",o.lc(3,1,null==n?null:n.toRemote,"1.0-0")," ")}}function $i(e,t){if(1&e){var n=o.Xb();o.Wb(0,"th",30),o.Wb(1,"div",31),o.Wb(2,"mat-select",32),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",33),o.ec("click",(function(){return o.yc(n),o.ic().onDownloadCSV()})),o.Hc(5,"Download CSV"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}}function Xi(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",34),o.Wb(1,"button",35),o.ec("click",(function(e){o.yc(n);var a=t.$implicit;return o.ic().onChannelClick(a,e)})),o.Hc(2,"View Info"),o.Vb(),o.Vb()}}function Ji(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No inactive channels available."),o.Vb())}function Gi(e,t){if(1&e&&(o.Wb(0,"td",36),o.Fc(1,Ji,2,0,"p",37),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngIf",!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)}}var Ki=function(e){return{"display-none":e}};function Yi(e,t){if(1&e&&o.Rb(0,"tr",38),2&e){var n=o.ic();o.pc("ngClass",o.tc(1,Ki,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function Zi(e,t){1&e&&o.Rb(0,"tr",39)}function eo(e,t){1&e&&o.Rb(0,"tr",40)}var to=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},no=function(){return["no_channel"]},ao=function(){function e(e,t,n,a,i){this.logger=e,this.store=t,this.rtlEffects=n,this.eclEffects=a,this.commonService=i,this.totalBalance=0,this.displayedColumns=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=g.j,this.flgLoading=[!0],this.selectedFilter="",this.selFilter="",this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new u.a,new u.a,new u.a,new u.a,new u.a,new u.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["state","alias","actions"]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["state","alias","toLocal","toRemote","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","alias","toLocal","toRemote","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("ecl").pipe(Object(b.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchChannels"===t.action&&(e.flgLoading[0]="error")})),e.information=t.information,e.numPeers=t.peers&&t.peers.length?t.peers.length:0,e.totalBalance=t.onchainBalance.total,e.inactiveChannels=t.inactiveChannels,e.loadChannelsTable(),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.inactiveChannels),e.logger.info(t)}))},e.prototype.applyFilter=function(){this.selectedFilter=this.selFilter,this.channels.filter=this.selFilter},e.prototype.onChannelClick=function(e,t){this.store.dispatch(new ce.C({data:{channel:e,channelsType:"inactive",component:Qa}}))},e.prototype.loadChannelsTable=function(){this.inactiveChannels.sort((function(e,t){return e.alias===t.alias?0:t.alias?1:-1})),this.channels=new ie.o(Object(te.g)(this.inactiveChannels)),this.channels.sort=this.sort,this.channels.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.channels.paginator=this.paginator,this.logger.info(this.channels)},e.prototype.onDownloadCSV=function(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"InactiveChannels")},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(v.h),o.Qb(xe.a),o.Qb(tt.a),o.Qb(h.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-channel-inactive-table"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Dc(ne.a,!0)),2&e&&(o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.paginator=n.first))},features:[o.Cb([{provide:ne.b,useValue:Object(g.w)("Channels")}])],decls:30,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100"],["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","alias"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Rb(2,"div",2),o.Wb(3,"mat-form-field",3),o.Wb(4,"input",4),o.ec("keyup",(function(){return t.applyFilter()}))("ngModelChange",(function(e){return t.selFilter=e})),o.Vb(),o.Vb(),o.Vb(),o.Wb(5,"div",5),o.Fc(6,Mi,1,0,"mat-progress-bar",6),o.Wb(7,"table",7,8),o.Ub(9,9),o.Fc(10,zi,2,0,"th",10),o.Fc(11,Bi,3,3,"td",11),o.Tb(),o.Ub(12,12),o.Fc(13,Ni,2,0,"th",10),o.Fc(14,qi,2,1,"td",11),o.Tb(),o.Ub(15,13),o.Fc(16,Ui,2,0,"th",14),o.Fc(17,ji,4,4,"td",11),o.Tb(),o.Ub(18,15),o.Fc(19,Qi,2,0,"th",14),o.Fc(20,_i,4,4,"td",11),o.Tb(),o.Ub(21,16),o.Fc(22,$i,6,0,"th",17),o.Fc(23,Xi,3,0,"td",18),o.Tb(),o.Ub(24,19),o.Fc(25,Gi,2,1,"td",20),o.Tb(),o.Fc(26,Yi,1,3,"tr",21),o.Fc(27,Zi,1,0,"tr",22),o.Fc(28,eo,1,0,"tr",23),o.Vb(),o.Vb(),o.Rb(29,"mat-paginator",24),o.Vb()),2&e&&(o.Db(4),o.pc("ngModel",t.selFilter),o.Db(2),o.pc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.pc("dataSource",t.channels)("ngClass",o.tc(11,to,"error"===t.flgLoading[0])),o.Db(19),o.pc("matFooterRowDef",o.sc(13,no)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns),o.Db(1),o.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[C.c,C.b,C.a,P.c,se.b,re.b,re.l,re.o,M.b,a.n,ie.n,ae.a,a.l,I.a,ie.c,ie.i,ie.b,ie.e,ie.g,ie.k,ie.m,ne.a,c.a,ie.h,ae.b,ie.a,be.a,be.c,de.n,W.a,ie.d,ie.f,ie.j,ie.l],pipes:[a.w,a.e],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}(),io=n("BId/");function oo(e,t){if(1&e&&(o.Wb(0,"span",2),o.Hc(1,"Open"),o.Vb()),2&e){var n=o.ic();o.qc("matBadge",n.numOfOpenChannels)}}function co(e,t){if(1&e&&(o.Wb(0,"span",2),o.Hc(1,"Pending"),o.Vb()),2&e){var n=o.ic();o.qc("matBadge",n.numOfPendingChannels)}}function ro(e,t){if(1&e&&(o.Wb(0,"span",2),o.Hc(1,"Inactive"),o.Vb()),2&e){var n=o.ic();o.qc("matBadge",n.numOfInactiveChannels)}}var so=function(){function e(e,t){this.logger=e,this.store=t,this.numOfOpenChannels=0,this.numOfPendingChannels=0,this.numOfInactiveChannels=0,this.unSubs=[new u.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("ecl").pipe(Object(b.a)(this.unSubs[0])).subscribe((function(t){e.numOfOpenChannels=t.channelsStatus&&t.channelsStatus.active&&t.channelsStatus.active.channels?t.channelsStatus.active.channels:0,e.numOfPendingChannels=t.channelsStatus&&t.channelsStatus.pending&&t.channelsStatus.pending.channels?t.channelsStatus.pending.channels:0,e.numOfInactiveChannels=t.channelsStatus&&t.channelsStatus.inactive&&t.channelsStatus.inactive.channels?t.channelsStatus.inactive.channels:0,e.logger.info(t)}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(v.h))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-channels-tables"]],decls:11,vars:0,consts:[["fxLayout","column","fxFlex","100",1,"mt-2","bordered-box"],["mat-tab-label",""],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"mat-tab-group"),o.Wb(2,"mat-tab"),o.Fc(3,oo,2,1,"ng-template",1),o.Rb(4,"rtl-ecl-channel-open-table"),o.Vb(),o.Wb(5,"mat-tab"),o.Fc(6,co,2,1,"ng-template",1),o.Rb(7,"rtl-ecl-channel-pending-table"),o.Vb(),o.Wb(8,"mat-tab"),o.Fc(9,ro,2,1,"ng-template",1),o.Rb(10,"rtl-ecl-channel-inactive-table"),o.Vb(),o.Vb(),o.Vb())},directives:[C.c,C.a,ee.c,ee.a,ee.d,gi,Ei,ao,io.a],styles:[""]}),e}(),lo=n("qPmt"),uo=["peersForm"],bo=["stepper"];function po(e,t){if(1&e&&o.Hc(0),2&e){var n=o.ic();o.Ic(n.peerFormLabel)}}function fo(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Address is required."),o.Vb())}function mo(e,t){if(1&e&&(o.Wb(0,"div",34),o.Rb(1,"fa-icon",35),o.Wb(2,"span"),o.Hc(3),o.Vb(),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("icon",n.faExclamationTriangle),o.Db(2),o.Ic(n.peerConnectionError)}}function ho(e,t){if(1&e&&o.Hc(0),2&e){var n=o.ic();o.Ic(n.channelFormLabel)}}function go(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Amount is required."),o.Vb())}function yo(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Amount must be a positive number."),o.Vb())}function vo(e,t){if(1&e&&(o.Wb(0,"mat-error"),o.Hc(1),o.Vb()),2&e){var n=o.ic();o.Db(1),o.Jc("Amount must be less than or equal to ",n.totalBalance,".")}}function xo(e,t){if(1&e&&(o.Wb(0,"div",34),o.Rb(1,"fa-icon",35),o.Wb(2,"span"),o.Hc(3),o.Vb(),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("icon",n.faExclamationTriangle),o.Db(2),o.Ic(n.channelConnectionError)}}var Co=function(){function e(e,t,n,a,i,o,c){this.dialogRef=e,this.data=t,this.store=n,this.eclEffects=a,this.formBuilder=i,this.actions$=o,this.logger=c,this.faExclamationTriangle=f.n,this.peerAddress="",this.totalBalance=0,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.unSubs=[new u.a,new u.a]}return e.prototype.ngOnInit=function(){var e=this;this.totalBalance=this.data.message.balance,this.peerAddress=this.data.message.peer&&this.data.message.peer.nodeId&&this.data.message.peer.address?this.data.message.peer.nodeId+"@"+this.data.message.peer.address:this.data.message.peer&&this.data.message.peer.nodeId&&!this.data.message.peer.address?this.data.message.peer.nodeId:"",this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[re.s.required]],peerAddress:[this.peerAddress,[re.s.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[re.s.required,re.s.min(1),re.s.max(this.totalBalance)]],isPrivate:[!1],feeRate:[null],hiddenAmount:["",[re.s.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.actions$.pipe(Object(b.a)(this.unSubs[1]),Object(d.a)((function(e){return e.type===y.G||e.type===y.l||e.type===y.j}))).subscribe((function(t){t.type===y.G&&(e.logger.info(t.payload),e.flgEditable=!1,e.newlyAddedPeer=t.payload.peer,e.peerFormGroup.controls.hiddenAddress.setValue(e.peerFormGroup.controls.peerAddress.value),e.stepper.next()),t.type===y.l&&e.dialogRef.close(),t.type===y.j&&("SaveNewPeer"===t.payload.action?e.peerConnectionError=t.payload.message:"SaveNewChannel"===t.payload.action&&(e.channelConnectionError=t.payload.message))}))},e.prototype.onConnectPeer=function(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch(new ce.F("Adding Peer...")),this.store.dispatch(new y.lb({id:this.peerFormGroup.controls.peerAddress.value}))},e.prototype.onOpenChannel=function(){if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0)return!0;this.channelConnectionError="",this.store.dispatch(new ce.F("Opening Channel...")),this.store.dispatch(new y.kb({nodeId:this.newlyAddedPeer.nodeId,amount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,feeRate:this.channelFormGroup.controls.feeRate.value}))},e.prototype.onClose=function(){this.dialogRef.close(!1)},e.prototype.stepSelectionChanged=function(e){switch(e.selectedIndex){case 0:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer.nodeId):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer.nodeId):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)";break;default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)"}e.selectedIndex0))}}function Qo(e,t){1&e&&o.Rb(0,"tr",54)}function _o(e,t){if(1&e&&o.Rb(0,"tr",55),2&e){var n=t.$implicit,a=o.ic();o.pc("@newlyAddedRowAnimation",n.pub_key===a.newlyAddedPeer&&a.flgAnimate?"added":"notAdded")}}var $o=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Xo=function(){return["no_peer"]},Jo=function(){function e(e,t,n,a,i,o){this.logger=e,this.store=t,this.rtlEffects=n,this.eclEffects=a,this.actions$=i,this.commonService=o,this.faUsers=f.N,this.newlyAddedPeer="",this.flgAnimate=!0,this.displayedColumns=[],this.peerAddress="",this.information={},this.availableBalance=0,this.flgLoading=[!0],this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new u.a,new u.a,new u.a,new u.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["alias","nodeId","address","actions"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["alias","nodeId","address","channels","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","nodeId","address","channels","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("ecl").pipe(Object(b.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchPeers"===t.action&&(e.flgLoading[0]="error")})),e.information=t.information,e.availableBalance=t.onchainBalance.total||0,e.peers=new ie.o(t.peers?Object(te.g)(t.peers):[]),e.peers.sort=e.sort,e.peers.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},e.peers.paginator=e.paginator,"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!1),setTimeout((function(){e.flgAnimate=!1}),3e3),e.logger.info(t)})),this.actions$.pipe(Object(b.a)(this.unSubs[1]),Object(d.a)((function(e){return e.type===y.gb}))).subscribe((function(t){e.peerAddress=void 0,e.flgAnimate=!0}))},e.prototype.onPeerClick=function(e,t){var n=[[{key:"nodeId",value:e.nodeId,title:"Public Key",width:100}],[{key:"address",value:e.address,title:"Address",width:50},{key:"alias",value:e.alias,title:"Alias",width:50}],[{key:"state",value:this.commonService.titleCase(e.state),title:"State",width:50},{key:"channels",value:e.channels,title:"Channels",width:50}]];this.store.dispatch(new ce.C({data:{type:g.b.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:e.nodeId,message:n}}))},e.prototype.onConnectPeer=function(e){this.store.dispatch(new ce.C({data:{message:{peer:e.nodeId?e:null,information:this.information,balance:this.availableBalance},component:Co}}))},e.prototype.onOpenChannel=function(e){this.store.dispatch(new ce.C({data:{alertTitle:"Open Channel",message:{peer:e,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:Ra}}))},e.prototype.onPeerDetach=function(e){var t=this;this.store.dispatch(e.channels>0?new ce.C({data:{type:g.b.ERROR,alertTitle:"Disconnect Not Allowed",titleMessage:"Channel active with this peer."}}):new ce.D({data:{type:g.b.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(e.alias?e.alias:e.nodeId),noBtnText:"Cancel",yesBtnText:"Disconnect"}})),this.rtlEffects.closeConfirm.pipe(Object(b.a)(this.unSubs[3])).subscribe((function(n){n&&(t.store.dispatch(new ce.F("Disconnecting Peer...")),t.store.dispatch(new y.i({nodeId:e.nodeId})))}))},e.prototype.applyFilter=function(e){this.peers.filter=e},e.prototype.onDownloadCSV=function(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(v.h),o.Qb(xe.a),o.Qb(tt.a),o.Qb(x.a),o.Qb(h.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-peers"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Dc(ne.a,!0)),2&e&&(o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.paginator=n.first))},features:[o.Cb([{provide:ne.b,useValue:Object(g.w)("Peers")}])],decls:42,vars:14,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["peersForm","ngForm"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["fxLayout","row","fxLayoutAlign","start start"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","nodeId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3",3,"ngStyle",4,"matCellDef"],["matColumnDef","state"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","channels"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","",1,"px-3"],["mat-cell","",1,"px-3",3,"ngStyle"],["class","dot green","matTooltip","Connected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Disconnected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Connected","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Disconnected","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-cell",""],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"form",1,2),o.Wb(3,"button",3),o.ec("click",(function(){return t.onConnectPeer({})})),o.Hc(4,"Add Peer"),o.Vb(),o.Vb(),o.Wb(5,"div",4),o.Wb(6,"div",5),o.Wb(7,"div",6),o.Rb(8,"fa-icon",7),o.Wb(9,"span",8),o.Hc(10,"Peers"),o.Vb(),o.Vb(),o.Wb(11,"mat-form-field",9),o.Wb(12,"div",10),o.Wb(13,"input",11),o.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Wb(14,"div",12),o.Fc(15,Vo,1,0,"mat-progress-bar",13),o.Wb(16,"table",14,15),o.Ub(18,16),o.Fc(19,wo,2,0,"th",17),o.Fc(20,So,2,4,"td",18),o.Tb(),o.Ub(21,19),o.Fc(22,Wo,2,0,"th",20),o.Fc(23,Ho,4,6,"td",21),o.Tb(),o.Ub(24,22),o.Fc(25,Ao,2,0,"th",17),o.Fc(26,Ro,2,1,"td",23),o.Tb(),o.Ub(27,24),o.Fc(28,ko,2,0,"th",17),o.Fc(29,Oo,2,1,"td",23),o.Tb(),o.Ub(30,25),o.Fc(31,Po,2,0,"th",17),o.Fc(32,To,2,1,"td",23),o.Tb(),o.Ub(33,26),o.Fc(34,Eo,6,0,"th",27),o.Fc(35,Bo,10,2,"td",28),o.Tb(),o.Ub(36,29),o.Fc(37,qo,2,1,"td",30),o.Tb(),o.Fc(38,jo,1,3,"tr",31),o.Fc(39,Qo,1,0,"tr",32),o.Fc(40,_o,1,1,"tr",33),o.Vb(),o.Vb(),o.Rb(41,"mat-paginator",34),o.Vb(),o.Vb()),2&e&&(o.Db(8),o.pc("icon",t.faUsers),o.Db(7),o.pc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.pc("dataSource",t.peers)("ngClass",o.tc(11,$o,"error"===t.flgLoading[0])),o.Db(22),o.pc("matFooterRowDef",o.sc(13,Xo)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns),o.Db(1),o.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[C.c,C.a,C.b,re.t,re.m,re.n,W.a,V.a,P.c,se.b,M.b,a.n,ie.n,ae.a,a.l,I.a,ie.c,ie.i,ie.b,ie.e,ie.g,ie.k,ie.m,ne.a,c.a,ie.h,ae.b,ie.a,a.o,I.b,T.a,be.a,be.c,de.n,ie.d,ie.f,ie.j,ie.l],styles:[".mat-column-alias[_ngcontent-%COMP%], .mat-column-nodeId[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-nodeId[_ngcontent-%COMP%]{padding-right:2rem}.mat-column-address[_ngcontent-%COMP%]{flex:1 1 15%;width:15%}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"],data:{animation:[ve.a]}}),e}();function Go(e,t){if(1&e&&(o.Wb(0,"span",12),o.Hc(1,"Channels"),o.Vb()),2&e){var n=o.ic();o.qc("matBadge",n.activeChannels)}}function Ko(e,t){if(1&e&&(o.Wb(0,"span",12),o.Hc(1,"Peers"),o.Vb()),2&e){var n=o.ic();o.qc("matBadge",n.activePeers)}}var Yo=function(){function e(e,t){this.store=e,this.actions$=t,this.selNode={},this.information={},this.peers=[],this.totalBalance=0,this.activePeers=0,this.activeChannels=0,this.faUsers=f.N,this.faChartPie=f.f,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.unSubs=[new u.a,new u.a,new u.a,new u.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("ecl").pipe(Object(b.a)(this.unSubs[1])).subscribe((function(t){e.selNode=t.nodeSettings,e.information=t.information,e.peers=t.peers,e.activePeers=t.peers&&t.peers.length?t.peers.length:0,e.activeChannels=t.channelsStatus&&t.channelsStatus.active&&t.channelsStatus.active.channels?t.channelsStatus.active.channels:0,e.totalBalance=t.onchainBalance.total,e.balances=[{title:"Total Balance",dataValue:t.onchainBalance.total||0},{title:"Confirmed",dataValue:t.onchainBalance.confirmed},{title:"Unconfirmed",dataValue:t.onchainBalance.unconfirmed}]}))},e.prototype.onOpenChannel=function(){this.store.dispatch(new ce.C({data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Ra}}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(v.h),o.Qb(x.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-peers-channels"]],decls:26,vars:3,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Rb(1,"fa-icon",1),o.Wb(2,"span",2),o.Hc(3,"On-chain Balance"),o.Vb(),o.Vb(),o.Wb(4,"div",3),o.Wb(5,"mat-card"),o.Wb(6,"mat-card-content",4),o.Rb(7,"rtl-currency-unit-converter",5),o.Vb(),o.Vb(),o.Vb(),o.Wb(8,"div",0),o.Rb(9,"fa-icon",1),o.Wb(10,"span",2),o.Hc(11,"Connections"),o.Vb(),o.Vb(),o.Wb(12,"div",6),o.Wb(13,"mat-card"),o.Wb(14,"mat-card-content",4),o.Wb(15,"mat-tab-group"),o.Wb(16,"mat-tab"),o.Fc(17,Go,2,1,"ng-template",7),o.Wb(18,"div",8),o.Wb(19,"div",9),o.Wb(20,"button",10),o.ec("click",(function(){return t.onOpenChannel()})),o.Hc(21,"Open Channel"),o.Vb(),o.Vb(),o.Rb(22,"rtl-ecl-channels-tables",11),o.Vb(),o.Vb(),o.Wb(23,"mat-tab"),o.Fc(24,Ko,2,1,"ng-template",7),o.Rb(25,"rtl-ecl-peers"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(1),o.pc("icon",t.faChartPie),o.Db(6),o.pc("values",t.balances),o.Db(2),o.pc("icon",t.faUsers))},directives:[C.c,C.b,V.a,D.a,D.b,zn.a,ee.c,ee.a,ee.d,C.a,W.a,so,Jo,io.a],styles:[""]}),e}(),Zo=["queryRoutesForm"];function ec(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Destination Node ID is required."),o.Vb())}function tc(e,t){1&e&&(o.Wb(0,"mat-error"),o.Hc(1,"Amount is required."),o.Vb())}function nc(e,t){1&e&&o.Rb(0,"mat-progress-bar",32)}function ac(e,t){1&e&&(o.Wb(0,"th",33),o.Hc(1," Alias "),o.Vb())}function ic(e,t){if(1&e&&(o.Wb(0,"td",34),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null==n?null:n.alias," ")}}function oc(e,t){1&e&&(o.Wb(0,"th",33),o.Hc(1," ID "),o.Vb())}function cc(e,t){if(1&e&&(o.Wb(0,"td",34),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",null==n?null:n.nodeId," ")}}function rc(e,t){1&e&&(o.Wb(0,"th",35),o.Wb(1,"span",36),o.Hc(2,"Actions"),o.Vb(),o.Vb())}function sc(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",37),o.Wb(1,"button",38),o.ec("click",(function(e){o.yc(n);var a=t.$implicit;return o.ic().onHopClick(a,e)})),o.Hc(2,"View Info"),o.Vb(),o.Vb()}}function lc(e,t){1&e&&o.Rb(0,"tr",39)}function uc(e,t){1&e&&o.Rb(0,"tr",40)}var bc=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},dc=function(){function e(e,t,n){this.store=e,this.eclEffects=t,this.commonService=n,this.nodeId="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=f.D,this.faExclamationTriangle=f.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new u.a,new u.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["alias","nodeId","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","nodeId","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.qrHops=new ie.o([]),this.eclEffects.setQueryRoutes.pipe(Object(b.a)(this.unSubs[1])).subscribe((function(t){e.qrHops.data=[],t?(e.flgLoading[0]=!1,e.qrHops=new ie.o(Object(te.g)(t)),e.qrHops.data=t):e.flgLoading[0]="error",e.qrHops.sort=e.sort,e.qrHops.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]}}))},e.prototype.onQueryRoutes=function(){if(!this.nodeId||!this.amount)return!0;this.qrHops.data=[],this.flgLoading[0]=!0,this.store.dispatch(new y.F({nodeId:this.nodeId,amount:1e3*this.amount}))},e.prototype.resetData=function(){this.nodeId="",this.amount=null,this.flgLoading[0]=!1,this.qrHops.data=[],this.form.resetForm()},e.prototype.onHopClick=function(e,t){this.store.dispatch(new ce.C({data:{type:g.b.INFORMATION,alertTitle:"Route Information",message:[[{key:"alias",value:e.alias,title:"Alias",width:100,type:g.h.STRING}],[{key:"nodeId",value:e.nodeId,title:"Node ID",width:100,type:g.h.STRING}]]}}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(v.h),o.Qb(tt.a),o.Qb(h.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-query-routes"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Mc(Zo,!0)),2&e&&(o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.form=n.first))},decls:40,vars:14,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Node ID","name","nodeId","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","step","1000","min","0","required","",3,"ngModel","ngModelChange"],["destAmount","ngModel"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-sub-title-container","mt-2","mb-1"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["perfectScrollbar","",1,"table-container","mb-6"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","nodeId"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-4","pr-3"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,t){if(1&e){var n=o.Xb();o.Wb(0,"div",0),o.Wb(1,"form",1,2),o.ec("ngSubmit",(function(){return o.yc(n),o.wc(2).form.valid&&t.onQueryRoutes()})),o.Wb(3,"div",3),o.Rb(4,"fa-icon",4),o.Wb(5,"span"),o.Hc(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),o.Vb(),o.Vb(),o.Wb(7,"mat-form-field",5),o.Wb(8,"input",6,7),o.ec("ngModelChange",(function(e){return t.nodeId=e})),o.Vb(),o.Fc(10,ec,2,0,"mat-error",8),o.Vb(),o.Wb(11,"mat-form-field",9),o.Wb(12,"input",10,11),o.ec("ngModelChange",(function(e){return t.amount=e})),o.Vb(),o.Fc(14,tc,2,0,"mat-error",8),o.Vb(),o.Wb(15,"div",12),o.Wb(16,"button",13),o.ec("click",(function(){return t.resetData()})),o.Hc(17,"Clear"),o.Vb(),o.Wb(18,"button",14),o.Hc(19,"Query Route"),o.Vb(),o.Vb(),o.Vb(),o.Wb(20,"div",15),o.Wb(21,"div",16),o.Rb(22,"fa-icon",17),o.Wb(23,"span",18),o.Hc(24,"Transaction Route"),o.Vb(),o.Vb(),o.Vb(),o.Wb(25,"div",19),o.Fc(26,nc,1,0,"mat-progress-bar",20),o.Wb(27,"table",21,22),o.Ub(29,23),o.Fc(30,ac,2,0,"th",24),o.Fc(31,ic,2,1,"td",25),o.Tb(),o.Ub(32,26),o.Fc(33,oc,2,0,"th",24),o.Fc(34,cc,2,1,"td",25),o.Tb(),o.Ub(35,27),o.Fc(36,rc,3,0,"th",28),o.Fc(37,sc,3,0,"td",29),o.Tb(),o.Fc(38,lc,1,0,"tr",30),o.Fc(39,uc,1,0,"tr",31),o.Vb(),o.Vb(),o.Vb()}2&e&&(o.Db(4),o.pc("icon",t.faExclamationTriangle),o.Db(4),o.pc("ngModel",t.nodeId),o.Db(2),o.pc("ngIf",!t.nodeId),o.Db(2),o.pc("ngModel",t.amount),o.Db(2),o.pc("ngIf",!t.amount),o.Db(8),o.pc("icon",t.faRoute),o.Db(4),o.pc("ngIf",!0===t.flgLoading[0]),o.Db(1),o.pc("dataSource",t.qrHops)("ngClass",o.tc(12,bc,"error"===t.flgLoading[0])),o.Db(11),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns))},directives:[C.c,C.a,re.t,re.m,re.n,C.b,V.a,P.c,se.b,re.b,re.r,re.l,re.o,a.n,re.p,ue.a,W.a,M.b,ie.n,ae.a,a.l,I.a,ie.c,ie.i,ie.b,ie.k,ie.m,P.b,c.a,ie.h,ae.b,ie.a,ie.j,ie.l],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e}(),pc=function(){function e(e,t){this.logger=e,this.store=t,this.faExchangeAlt=f.m,this.faChartPie=f.f,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.unSubs=[new u.a,new u.a,new u.a,new u.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("ecl").pipe(Object(b.a)(this.unSubs[0])).subscribe((function(t){e.currencyUnits=t.nodeSettings.currencyUnits,e.balances=t.nodeSettings.userPersona===g.u.OPERATOR?[{title:"Local Capacity",dataValue:t.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:t.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:t.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:t.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}],e.logger.info(t)}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(v.h))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-transactions"]],decls:22,vars:5,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],["fxLayout","column",1,"padding-gap-x"],["label","Payments"],[3,"showDetails"],["label","Invoices"],["label","Query Routes"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Rb(1,"fa-icon",1),o.Wb(2,"span",2),o.Hc(3,"Lightning Balance"),o.Vb(),o.Vb(),o.Wb(4,"div",3),o.Wb(5,"mat-card"),o.Wb(6,"mat-card-content",4),o.Rb(7,"rtl-currency-unit-converter",5),o.Vb(),o.Vb(),o.Vb(),o.Wb(8,"div",6),o.Rb(9,"fa-icon",1),o.Wb(10,"span",2),o.Hc(11,"Lightning Transactions"),o.Vb(),o.Vb(),o.Wb(12,"div",7),o.Wb(13,"mat-card"),o.Wb(14,"mat-card-content",4),o.Wb(15,"mat-tab-group"),o.Wb(16,"mat-tab",8),o.Rb(17,"rtl-ecl-lightning-payments",9),o.Vb(),o.Wb(18,"mat-tab",10),o.Rb(19,"rtl-ecl-lightning-invoices",9),o.Vb(),o.Wb(20,"mat-tab",11),o.Rb(21,"rtl-ecl-query-routes"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(1),o.pc("icon",t.faChartPie),o.Db(6),o.pc("values",t.balances),o.Db(2),o.pc("icon",t.faExchangeAlt),o.Db(8),o.pc("showDetails",!0),o.Db(2),o.pc("showDetails",!0))},directives:[C.c,C.b,V.a,D.a,D.b,zn.a,ee.c,ee.a,cn,Ke,dc],styles:[""]}),e}();function fc(e,t){1&e&&(o.Wb(0,"th",27),o.Hc(1,"Date/Time"),o.Vb())}function mc(e,t){if(1&e&&(o.Wb(0,"td",28),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Ic(null==n?null:n.timestampStr)}}function hc(e,t){1&e&&(o.Wb(0,"th",27),o.Hc(1,"In Channel"),o.Vb())}var gc=function(e){return{"max-width":e}};function yc(e,t){if(1&e&&(o.Wb(0,"td",29),o.Hc(1),o.Vb()),2&e){var n=t.$implicit,a=o.ic();o.pc("ngStyle",o.tc(2,gc,a.screenSize===a.screenSizeEnum.XS?"10rem":"20rem")),o.Db(1),o.Ic(null==n?null:n.fromChannelAlias)}}function vc(e,t){1&e&&(o.Wb(0,"th",27),o.Hc(1,"Out Channel"),o.Vb())}function xc(e,t){if(1&e&&(o.Wb(0,"td",29),o.Hc(1),o.Vb()),2&e){var n=t.$implicit,a=o.ic();o.pc("ngStyle",o.tc(2,gc,a.screenSize===a.screenSizeEnum.XS?"10rem":"20rem")),o.Db(1),o.Ic(null==n?null:n.toChannelAlias)}}function Cc(e,t){1&e&&(o.Wb(0,"th",30),o.Hc(1,"Amount In (Sats)"),o.Vb())}function Vc(e,t){if(1&e&&(o.Wb(0,"td",28),o.Wb(1,"span",31),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.kc(3,1,null==n?null:n.amountIn))}}function wc(e,t){1&e&&(o.Wb(0,"th",30),o.Hc(1,"Amount Out (Sats)"),o.Vb())}function Dc(e,t){if(1&e&&(o.Wb(0,"td",28),o.Wb(1,"span",31),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.kc(3,1,null==n?null:n.amountOut))}}function Sc(e,t){1&e&&(o.Wb(0,"th",30),o.Hc(1,"Fee Earned (Sats)"),o.Vb())}function Wc(e,t){if(1&e&&(o.Wb(0,"td",28),o.Wb(1,"span",31),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.kc(3,1,(null==n?null:n.amountIn)-(null==n?null:n.amountOut)))}}function Fc(e,t){if(1&e){var n=o.Xb();o.Wb(0,"th",32),o.Wb(1,"div",33),o.Wb(2,"mat-select",34),o.Rb(3,"mat-select-trigger"),o.Wb(4,"mat-option",35),o.ec("click",(function(){return o.yc(n),o.ic().onDownloadCSV()})),o.Hc(5,"Download CSV"),o.Vb(),o.Vb(),o.Vb(),o.Vb()}}function Ic(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",36),o.Wb(1,"button",37),o.ec("click",(function(e){o.yc(n);var a=t.$implicit;return o.ic().onForwardingEventClick(a,e)})),o.Hc(2,"View Info"),o.Vb(),o.Vb()}}function Lc(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No forwarding event available."),o.Vb())}function Hc(e,t){if(1&e&&(o.Wb(0,"td",38),o.Fc(1,Lc,2,0,"p",39),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngIf",!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)}}var Ac=function(e){return{"display-none":e}};function Rc(e,t){if(1&e&&o.Rb(0,"tr",40),2&e){var n=o.ic();o.pc("ngClass",o.tc(1,Ac,(null==n.forwardingHistoryEvents?null:n.forwardingHistoryEvents.data)&&(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)>0))}}function kc(e,t){1&e&&o.Rb(0,"tr",41)}function Oc(e,t){1&e&&o.Rb(0,"tr",42)}var Pc=function(){return["no_event"]},Tc=function(){function e(e,t,n){this.logger=e,this.commonService=t,this.store=n,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","amountIn","actions"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["timestamp","amountIn","fee","actions"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amountIn","amountOut","fee","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","fromAlias","toAlias","amountIn","amountOut","fee","actions"])}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(){this.loadForwardingEventsTable(this.successfulEvents)},e.prototype.onForwardingEventClick=function(e,t){this.store.dispatch(new ce.C({data:{type:g.b.INFORMATION,alertTitle:"Event Information",message:[[{key:"paymentHash",value:e.paymentHash,title:"Payment Hash",width:100,type:g.h.STRING}],[{key:"timestampStr",value:e.timestampStr,title:"Date/Time",width:50,type:g.h.DATE_TIME},{key:"fee",value:e.amountIn-e.amountOut,title:"Fee Earned (Sats)",width:50,type:g.h.NUMBER}],[{key:"amountIn",value:e.amountIn,title:"Amount In (Sats)",width:50,type:g.h.NUMBER},{key:"amountOut",value:e.amountOut,title:"Amount Out (Sats)",width:50,type:g.h.NUMBER}],[{key:"fromChannelAlias",value:e.fromChannelAlias,title:"From Channel Alias",width:50,type:g.h.STRING},{key:"fromShortChannelId",value:e.fromShortChannelId,title:"From Short Channel ID",width:50,type:g.h.STRING}],[{key:"fromChannelId",value:e.fromChannelId,title:"From Channel Id",width:100,type:g.h.STRING}],[{key:"toChannelAlias",value:e.toChannelAlias,title:"To Channel Alias",width:50,type:g.h.STRING},{key:"toShortChannelId",value:e.toShortChannelId,title:"To Short Channel ID",width:50,type:g.h.STRING}],[{key:"toChannelId",value:e.toChannelId,title:"To Channel Id",width:100,type:g.h.STRING}]]}}))},e.prototype.loadForwardingEventsTable=function(e){this.forwardingHistoryEvents=new ie.o(Object(te.g)(e)),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.forwardingHistoryEvents.paginator=this.paginator,this.logger.info(this.forwardingHistoryEvents)},e.prototype.onDownloadCSV=function(){this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")},e.prototype.applyFilter=function(e){this.forwardingHistoryEvents.filter=e},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(h.a),o.Qb(v.h))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-forwarding-history"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Dc(ne.a,!0)),2&e&&(o.vc(n=o.fc())&&(t.sort=n.first),o.vc(n=o.fc())&&(t.paginator=n.first))},inputs:{successfulEvents:"successfulEvents"},features:[o.Cb([{provide:ne.b,useValue:Object(g.w)("Events")}]),o.Bb],decls:35,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-large"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAlias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","toAlias"],["matColumnDef","amountIn"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amountOut"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Rb(2,"div",2),o.Wb(3,"mat-form-field",3),o.Wb(4,"input",4),o.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),o.Vb(),o.Vb(),o.Vb(),o.Wb(5,"div",5),o.Wb(6,"table",6,7),o.Ub(8,8),o.Fc(9,fc,2,0,"th",9),o.Fc(10,mc,2,1,"td",10),o.Tb(),o.Ub(11,11),o.Fc(12,hc,2,0,"th",9),o.Fc(13,yc,2,4,"td",12),o.Tb(),o.Ub(14,13),o.Fc(15,vc,2,0,"th",9),o.Fc(16,xc,2,4,"td",12),o.Tb(),o.Ub(17,14),o.Fc(18,Cc,2,0,"th",15),o.Fc(19,Vc,4,3,"td",10),o.Tb(),o.Ub(20,16),o.Fc(21,wc,2,0,"th",15),o.Fc(22,Dc,4,3,"td",10),o.Tb(),o.Ub(23,17),o.Fc(24,Sc,2,0,"th",15),o.Fc(25,Wc,4,3,"td",10),o.Tb(),o.Ub(26,18),o.Fc(27,Fc,6,0,"th",19),o.Fc(28,Ic,3,0,"td",20),o.Tb(),o.Ub(29,21),o.Fc(30,Hc,2,1,"td",22),o.Tb(),o.Fc(31,Rc,1,3,"tr",23),o.Fc(32,kc,1,0,"tr",24),o.Fc(33,Oc,1,0,"tr",25),o.Vb(),o.Vb(),o.Rb(34,"mat-paginator",26),o.Vb()),2&e&&(o.Db(6),o.pc("dataSource",t.forwardingHistoryEvents),o.Db(25),o.pc("matFooterRowDef",o.sc(8,Pc)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns),o.Db(1),o.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[C.c,C.b,C.a,P.c,se.b,M.b,ie.n,ae.a,ie.c,ie.i,ie.b,ie.e,ie.g,ie.k,ie.m,ne.a,ie.h,ae.b,ie.a,a.o,I.b,be.a,be.c,de.n,W.a,ie.d,a.n,ie.f,a.l,I.a,ie.j,ie.l],pipes:[a.e],styles:[".mat-column-fromAlias[_ngcontent-%COMP%]{padding-left:2rem}.mat-column-fromAlias[_ngcontent-%COMP%], .mat-column-toAlias[_ngcontent-%COMP%]{flex:1 1 20%;width:20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-toAlias[_ngcontent-%COMP%]{padding-left:1rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}(),Ec=["tableOut"];function Mc(e,t){1&e&&(o.Wb(0,"th",28),o.Hc(1,"Channel ID"),o.Vb())}var zc=function(e){return{"max-width":e}};function Bc(e,t){if(1&e&&(o.Wb(0,"td",29),o.Hc(1),o.Vb()),2&e){var n=t.$implicit,a=o.ic();o.pc("ngStyle",o.tc(2,zc,a.screenSize===a.screenSizeEnum.XS?"5rem":"10rem")),o.Db(1),o.Ic(n.channelId)}}function Nc(e,t){1&e&&(o.Wb(0,"th",28),o.Hc(1,"Peer Alias"),o.Vb())}function qc(e,t){if(1&e&&(o.Wb(0,"td",29),o.Hc(1),o.Vb()),2&e){var n=t.$implicit,a=o.ic();o.pc("ngStyle",o.tc(2,zc,a.screenSize===a.screenSizeEnum.XS?"5rem":"10rem")),o.Db(1),o.Ic(n.alias)}}function Uc(e,t){1&e&&(o.Wb(0,"th",30),o.Hc(1,"Events"),o.Vb())}function jc(e,t){if(1&e&&(o.Wb(0,"td",31),o.Wb(1,"span",32),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.kc(3,1,n.events))}}function Qc(e,t){1&e&&(o.Wb(0,"th",30),o.Hc(1,"Amount (Sats)"),o.Vb())}function _c(e,t){if(1&e&&(o.Wb(0,"td",31),o.Wb(1,"span",32),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.kc(3,1,n.totalAmount))}}function $c(e,t){1&e&&(o.Wb(0,"th",30),o.Hc(1,"Fee (Sats)"),o.Vb())}function Xc(e,t){if(1&e&&(o.Wb(0,"td",31),o.Wb(1,"span",32),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.kc(3,1,n.totalFee))}}function Jc(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No incoming routing peer available."),o.Vb())}function Gc(e,t){if(1&e&&(o.Wb(0,"td",33),o.Fc(1,Jc,2,0,"p",34),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngIf",!(null!=n.RoutingPeersIncoming&&n.RoutingPeersIncoming.data)||(null==n.RoutingPeersIncoming||null==n.RoutingPeersIncoming.data?null:n.RoutingPeersIncoming.data.length)<1)}}var Kc=function(e){return{"display-none":e}};function Yc(e,t){if(1&e&&o.Rb(0,"tr",35),2&e){var n=o.ic();o.pc("ngClass",o.tc(1,Kc,(null==n.RoutingPeersIncoming?null:n.RoutingPeersIncoming.data)&&(null==n.RoutingPeersIncoming||null==n.RoutingPeersIncoming.data?null:n.RoutingPeersIncoming.data.length)>0))}}function Zc(e,t){1&e&&o.Rb(0,"tr",36)}function er(e,t){1&e&&o.Rb(0,"tr",37)}function tr(e,t){1&e&&(o.Wb(0,"th",28),o.Hc(1,"Channel ID"),o.Vb())}function nr(e,t){if(1&e&&(o.Wb(0,"td",29),o.Hc(1),o.Vb()),2&e){var n=t.$implicit,a=o.ic();o.pc("ngStyle",o.tc(2,zc,a.screenSize===a.screenSizeEnum.XS?"5rem":"10rem")),o.Db(1),o.Ic(n.channelId)}}function ar(e,t){1&e&&(o.Wb(0,"th",28),o.Hc(1,"Peer Alias"),o.Vb())}function ir(e,t){if(1&e&&(o.Wb(0,"td",29),o.Hc(1),o.Vb()),2&e){var n=t.$implicit,a=o.ic();o.pc("ngStyle",o.tc(2,zc,a.screenSize===a.screenSizeEnum.XS?"5rem":"10rem")),o.Db(1),o.Ic(n.alias)}}function or(e,t){1&e&&(o.Wb(0,"th",30),o.Hc(1,"Events"),o.Vb())}function cr(e,t){if(1&e&&(o.Wb(0,"td",31),o.Wb(1,"span",32),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.kc(3,1,n.events))}}function rr(e,t){1&e&&(o.Wb(0,"th",30),o.Hc(1,"Amount (Sats)"),o.Vb())}function sr(e,t){if(1&e&&(o.Wb(0,"td",31),o.Wb(1,"span",32),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.kc(3,1,n.totalAmount))}}function lr(e,t){1&e&&(o.Wb(0,"th",30),o.Hc(1,"Fee (Sats)"),o.Vb())}function ur(e,t){if(1&e&&(o.Wb(0,"td",31),o.Wb(1,"span",32),o.Hc(2),o.jc(3,"number"),o.Vb(),o.Vb()),2&e){var n=t.$implicit;o.Db(2),o.Ic(o.kc(3,1,n.totalFee))}}function br(e,t){1&e&&(o.Wb(0,"p"),o.Hc(1,"No outgoing routing peer available."),o.Vb())}function dr(e,t){if(1&e&&(o.Wb(0,"td",33),o.Fc(1,br,2,0,"p",34),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("ngIf",!(null!=n.RoutingPeersOutgoing&&n.RoutingPeersOutgoing.data)||(null==n.RoutingPeersOutgoing||null==n.RoutingPeersOutgoing.data?null:n.RoutingPeersOutgoing.data.length)<1)}}function pr(e,t){if(1&e&&o.Rb(0,"tr",35),2&e){var n=o.ic();o.pc("ngClass",o.tc(1,Kc,(null==n.RoutingPeersOutgoing?null:n.RoutingPeersOutgoing.data)&&(null==n.RoutingPeersOutgoing||null==n.RoutingPeersOutgoing.data?null:n.RoutingPeersOutgoing.data.length)>0))}}function fr(e,t){1&e&&o.Rb(0,"tr",36)}function mr(e,t){1&e&&o.Rb(0,"tr",37)}var hr=function(e,t){return{"mt-2":e,"mt-1":t}},gr=function(){return["no_incoming_event"]},yr=function(e){return{"mt-2":e}},vr=function(){return["no_outgoing_event"]},xr=function(){function e(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.actions$=a,this.displayedColumns=[],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=g.o,this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["alias","totalFee"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["alias","events","totalFee"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["alias","events","totalAmount","totalFee"]):(this.flgSticky=!0,this.displayedColumns=["channelId","alias","events","totalAmount","totalFee"])}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(){this.loadRoutingPeersTable(this.routingPeersData)},e.prototype.loadRoutingPeersTable=function(e){if(e.length>0){var t=this.groupRoutingPeers(e);this.RoutingPeersIncoming=new ie.o(t[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new ie.o(t[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new ie.o([]),this.RoutingPeersOutgoing=new ie.o([])},e.prototype.groupRoutingPeers=function(e){var t=[],n=[];return e.forEach((function(e){var a=t.find((function(t){return t.channelId===e.fromChannelId})),i=n.find((function(t){return t.channelId===e.toChannelId}));a?(a.events++,a.totalAmount=+a.totalAmount+ +e.amountIn,a.totalFee=e.amountIn-e.amountOut+ +a.totalFee):t.push({channelId:e.fromChannelId,alias:e.fromChannelAlias,events:1,totalAmount:+e.amountIn,totalFee:e.amountIn-e.amountOut}),i?(i.events++,i.totalAmount=+i.totalAmount+ +e.amountOut,i.totalFee=e.amountIn-e.amountOut+ +i.totalFee):n.push({channelId:e.toChannelId,alias:e.toChannelAlias,events:1,totalAmount:+e.amountOut,totalFee:e.amountIn-e.amountOut})})),[this.commonService.sortDescByKey(t,"totalFee"),this.commonService.sortDescByKey(n,"totalFee")]},e.prototype.applyIncomingFilter=function(e){this.RoutingPeersIncoming.filter=e},e.prototype.applyOutgoingFilter=function(e){this.RoutingPeersOutgoing.filter=e},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(h.a),o.Qb(v.h),o.Qb(x.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-routing-peers"]],viewQuery:function(e,t){var n;1&e&&(o.Dc(ae.a,!0),o.Dc(Ec,!0,ae.a)),2&e&&(o.vc(n=o.fc())&&(t.sortIn=n.first),o.vc(n=o.fc())&&(t.sortOut=n.first))},inputs:{routingPeersData:"routingPeersData"},features:[o.Bb],decls:60,vars:19,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-large"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x","page-sub-title-container"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"table-container","w-100"],["mat-table","","matSort","","fxFlex","100",1,"overflow-auto","incoming-table",3,"dataSource"],["tableIn",""],["matColumnDef","channelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","totalAmount"],["matColumnDef","totalFee"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100"],["mat-table","","matSort","","fxFlex","100",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["matColumnDef","no_outgoing_event"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"div",2),o.Wb(3,"div",3),o.Wb(4,"div",4),o.Hc(5,"Incoming"),o.Vb(),o.Wb(6,"mat-form-field",5),o.Wb(7,"input",6),o.ec("keyup",(function(e){return t.applyIncomingFilter(e.target.value)})),o.Vb(),o.Vb(),o.Vb(),o.Wb(8,"div",7),o.Wb(9,"table",8,9),o.Ub(11,10),o.Fc(12,Mc,2,0,"th",11),o.Fc(13,Bc,2,4,"td",12),o.Tb(),o.Ub(14,13),o.Fc(15,Nc,2,0,"th",11),o.Fc(16,qc,2,4,"td",12),o.Tb(),o.Ub(17,14),o.Fc(18,Uc,2,0,"th",15),o.Fc(19,jc,4,3,"td",16),o.Tb(),o.Ub(20,17),o.Fc(21,Qc,2,0,"th",15),o.Fc(22,_c,4,3,"td",16),o.Tb(),o.Ub(23,18),o.Fc(24,$c,2,0,"th",15),o.Fc(25,Xc,4,3,"td",16),o.Tb(),o.Ub(26,19),o.Fc(27,Gc,2,1,"td",20),o.Tb(),o.Fc(28,Yc,1,3,"tr",21),o.Fc(29,Zc,1,0,"tr",22),o.Fc(30,er,1,0,"tr",23),o.Vb(),o.Vb(),o.Vb(),o.Wb(31,"div",2),o.Wb(32,"div",3),o.Wb(33,"div",4),o.Hc(34,"Outgoing"),o.Vb(),o.Wb(35,"mat-form-field",5),o.Wb(36,"input",6),o.ec("keyup",(function(e){return t.applyOutgoingFilter(e.target.value)})),o.Vb(),o.Vb(),o.Vb(),o.Wb(37,"div",24),o.Wb(38,"table",25,26),o.Ub(40,10),o.Fc(41,tr,2,0,"th",11),o.Fc(42,nr,2,4,"td",12),o.Tb(),o.Ub(43,13),o.Fc(44,ar,2,0,"th",11),o.Fc(45,ir,2,4,"td",12),o.Tb(),o.Ub(46,14),o.Fc(47,or,2,0,"th",15),o.Fc(48,cr,4,3,"td",16),o.Tb(),o.Ub(49,17),o.Fc(50,rr,2,0,"th",15),o.Fc(51,sr,4,3,"td",16),o.Tb(),o.Ub(52,18),o.Fc(53,lr,2,0,"th",15),o.Fc(54,ur,4,3,"td",16),o.Tb(),o.Ub(55,27),o.Fc(56,dr,2,1,"td",20),o.Tb(),o.Fc(57,pr,1,3,"tr",21),o.Fc(58,fr,1,0,"tr",22),o.Fc(59,mr,1,0,"tr",23),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(3),o.pc("ngClass",o.uc(12,hr,t.screenSize===t.screenSizeEnum.XS,t.screenSize===t.screenSizeEnum.SM)),o.Db(6),o.pc("dataSource",t.RoutingPeersIncoming),o.Db(19),o.pc("matFooterRowDef",o.sc(15,gr)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns),o.Db(2),o.pc("ngClass",o.tc(16,yr,t.screenSize!==t.screenSizeEnum.LG)),o.Db(6),o.pc("dataSource",t.RoutingPeersOutgoing),o.Db(19),o.pc("matFooterRowDef",o.sc(18,vr)),o.Db(1),o.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),o.Db(1),o.pc("matRowDefColumns",t.displayedColumns))},directives:[C.c,C.b,C.a,a.l,I.a,P.c,se.b,M.b,ie.n,ae.a,ie.c,ie.i,ie.b,ie.e,ie.g,ie.k,ie.m,ie.h,ae.b,ie.a,a.o,I.b,ie.d,a.n,ie.f,ie.j,ie.l],pipes:[a.e],styles:[".mat-column-alias[_ngcontent-%COMP%], .mat-column-channelId[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e}();function Cr(e,t){if(1&e&&(o.Wb(0,"div",14),o.Hc(1),o.Vb()),2&e){var n=o.ic();o.Db(1),o.Ic(n.errorMessage)}}function Vr(e,t){if(1&e&&o.Rb(0,"rtl-ecl-forwarding-history",15),2&e){var n=o.ic();o.pc("successfulEvents",n.events)}}function wr(e,t){if(1&e&&(o.Wb(0,"div",14),o.Hc(1),o.Vb()),2&e){var n=o.ic();o.Db(1),o.Ic(n.errorMessage)}}function Dr(e,t){if(1&e&&o.Rb(0,"rtl-ecl-routing-peers",16),2&e){var n=o.ic();o.pc("routingPeersData",n.events)}}var Sr=function(e){return{"error-border w-100 routing-tabs-block":e,"w-100 routing-tabs-block":!0}},Wr=function(){function e(e,t){this.logger=e,this.store=t,this.faMapSigns=f.v,this.events=[],this.flgLoading=[!0],this.errorMessage="",this.unSubs=[new u.a,new u.a,new u.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("ecl").pipe(Object(b.a)(this.unSubs[0])).subscribe((function(t){e.errorMessage="",t.effectErrors.forEach((function(t){"FetchPayments"===t.action&&(e.flgLoading[0]="error",e.errorMessage="object"==typeof t.message?JSON.stringify(t.message):t.message)})),e.events=t.payments&&t.payments.relayed?t.payments.relayed:[],"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.payments),e.logger.info(t)}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(v.h))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-routing"]],decls:16,vars:8,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","row","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","100"],["label","Forwarding History"],["class","p-2",4,"ngIf"],[3,"successfulEvents",4,"ngIf"],["label","Routing Peers"],[3,"routingPeersData",4,"ngIf"],[1,"p-2"],[3,"successfulEvents"],[3,"routingPeersData"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Rb(2,"fa-icon",2),o.Wb(3,"span",3),o.Hc(4,"Routing"),o.Vb(),o.Vb(),o.Wb(5,"div",4),o.Wb(6,"mat-card",5),o.Wb(7,"mat-card-content",6),o.Wb(8,"div",7),o.Wb(9,"mat-tab-group",8),o.Wb(10,"mat-tab",9),o.Fc(11,Cr,2,1,"div",10),o.Fc(12,Vr,1,1,"rtl-ecl-forwarding-history",11),o.Vb(),o.Wb(13,"mat-tab",12),o.Fc(14,wr,2,1,"div",10),o.Fc(15,Dr,1,1,"rtl-ecl-routing-peers",13),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e&&(o.Db(2),o.pc("icon",t.faMapSigns),o.Db(6),o.pc("ngClass",o.tc(6,Sr,"error"===t.flgLoading[0])),o.Db(3),o.pc("ngIf",""!==t.errorMessage),o.Db(1),o.pc("ngIf",""===t.errorMessage),o.Db(2),o.pc("ngIf",""!==t.errorMessage),o.Db(1),o.pc("ngIf",""===t.errorMessage&&t.events))},directives:[C.c,C.b,V.a,C.a,D.a,D.b,a.l,I.a,ee.c,ee.a,a.n,Tc,xr],styles:[""]}),e}(),Fr=n("I21E");function Ir(e,t){1&e&&(o.Wb(0,"th",24),o.Hc(1,"Address"),o.Vb())}function Lr(e,t){if(1&e&&(o.Wb(0,"td",25),o.Hc(1),o.Vb()),2&e){var n=t.$implicit;o.Db(1),o.Jc(" ",n," ")}}function Hr(e,t){1&e&&(o.Wb(0,"th",26),o.Wb(1,"span",27),o.Hc(2,"Actions"),o.Vb(),o.Vb())}function Ar(e,t){if(1&e){var n=o.Xb();o.Wb(0,"td",28),o.Wb(1,"span",27),o.Wb(2,"button",29),o.ec("copied",(function(e){return o.yc(n),o.ic(2).onCopyNodeURI(e)})),o.Hc(3,"Copy Node URI"),o.Vb(),o.Vb(),o.Vb()}if(2&e){var a=t.$implicit,i=o.ic(2);o.Db(2),o.pc("payload",i.lookupResult.nodeId+"@"+a)}}function Rr(e,t){1&e&&o.Rb(0,"tr",30)}function kr(e,t){1&e&&o.Rb(0,"tr",31)}var Or=function(e){return{"background-color":e}};function Pr(e,t){if(1&e&&(o.Wb(0,"div",1),o.Rb(1,"mat-divider",2),o.Wb(2,"div",3),o.Wb(3,"div",4),o.Wb(4,"h4",5),o.Hc(5,"Pub Key"),o.Vb(),o.Wb(6,"span",6),o.Hc(7),o.Vb(),o.Vb(),o.Vb(),o.Rb(8,"mat-divider",7),o.Wb(9,"div",3),o.Wb(10,"div",4),o.Wb(11,"h4",5),o.Hc(12,"Signature"),o.Vb(),o.Wb(13,"span",8),o.Hc(14),o.Vb(),o.Vb(),o.Vb(),o.Rb(15,"mat-divider",7),o.Wb(16,"div",3),o.Wb(17,"div",9),o.Wb(18,"h4",5),o.Hc(19,"Alias"),o.Vb(),o.Wb(20,"span",8),o.Hc(21),o.Wb(22,"span",10),o.Hc(23),o.Vb(),o.Vb(),o.Vb(),o.Wb(24,"div",9),o.Wb(25,"h4",5),o.Hc(26,"Date/Time"),o.Vb(),o.Wb(27,"span",8),o.Hc(28),o.Vb(),o.Vb(),o.Vb(),o.Wb(29,"div",11),o.Wb(30,"h4",12),o.Hc(31,"Addresses"),o.Vb(),o.Wb(32,"div",13),o.Wb(33,"table",14,15),o.Ub(35,16),o.Fc(36,Ir,2,0,"th",17),o.Fc(37,Lr,2,1,"td",18),o.Tb(),o.Ub(38,19),o.Fc(39,Hr,3,0,"th",20),o.Fc(40,Ar,4,1,"td",21),o.Tb(),o.Fc(41,Rr,1,0,"tr",22),o.Fc(42,kr,1,0,"tr",23),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&e){var n=o.ic();o.Db(1),o.pc("inset",!0),o.Db(6),o.Ic(n.lookupResult.nodeId),o.Db(1),o.pc("inset",!0),o.Db(6),o.Ic(n.lookupResult.signature),o.Db(1),o.pc("inset",!0),o.Db(6),o.Ic(n.lookupResult.alias),o.Db(1),o.pc("ngStyle",o.tc(12,Or,n.lookupResult.rgbColor)),o.Db(1),o.Ic(n.lookupResult.rgbColor?n.lookupResult.rgbColor:""),o.Db(5),o.Ic(n.lookupResult.timestampStr),o.Db(5),o.pc("dataSource",n.addresses),o.Db(8),o.pc("matHeaderRowDef",n.displayedColumns),o.Db(1),o.pc("matRowDefColumns",n.displayedColumns)}}var Tr=function(){function e(e,t){this.logger=e,this.snackBar=t,this.displayedColumns=["address","actions"]}return e.prototype.ngOnInit=function(){this.addresses=new ie.o(this.lookupResult.addresses?Object(te.g)(this.lookupResult.addresses):[]),this.addresses.data=this.lookupResult.addresses?this.lookupResult.addresses:[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]}},e.prototype.onCopyNodeURI=function(e){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+e)},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(ka.b))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-node-lookup"]],viewQuery:function(e,t){var n;1&e&&o.Dc(ae.a,!0),2&e&&o.vc(n=o.fc())&&(t.sort=n.first)},inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text","w-100"],[1,"my-1",3,"inset"],[1,"foreground-secondary-text"],["fxFlex","50"],[1,"ml-2",3,"ngStyle"],["fxLayout","column",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","address"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&o.Fc(0,Pr,43,14,"div",0),2&e&&o.pc("ngIf",t.lookupResult)},directives:[a.n,C.c,E.a,C.a,C.b,a.o,I.b,M.b,ie.n,ae.a,ie.c,ie.i,ie.b,ie.k,ie.m,ie.h,ae.b,ie.a,W.a,Oa.a,ie.j,ie.l],styles:[""]}),e}(),Er=["form"];function Mr(e,t){if(1&e&&(o.Wb(0,"mat-error"),o.Hc(1),o.Vb()),2&e){var n=o.ic();o.Db(1),o.Jc("",null==n.lookupFields[n.selectedFieldId]?null:n.lookupFields[n.selectedFieldId].placeholder," is required.")}}function zr(e,t){if(1&e&&(o.Wb(0,"mat-error"),o.Hc(1),o.Vb()),2&e){var n=o.ic();o.Db(1),o.Jc("Invalid ",null==n.lookupFields[n.selectedFieldId]?null:n.lookupFields[n.selectedFieldId].placeholder,".")}}function Br(e,t){if(1&e&&(o.Wb(0,"div"),o.Rb(1,"rtl-ecl-node-lookup",29),o.Vb()),2&e){var n=o.ic(3);o.Db(1),o.pc("lookupResult",n.nodeLookupValue)}}function Nr(e,t){if(1&e&&(o.Wb(0,"span",27),o.Fc(1,Br,2,1,"div",28),o.Vb()),2&e){var n=o.ic(2),a=o.wc(26);o.Db(1),o.pc("ngIf",""!==n.nodeLookupValue.nodeid)("ngIfElse",a)}}function qr(e,t){1&e&&(o.Wb(0,"span",27),o.Wb(1,"h3"),o.Hc(2,"Error! Unable to find details!"),o.Vb(),o.Vb())}function Ur(e,t){if(1&e&&(o.Wb(0,"div",21),o.Wb(1,"div",22),o.Wb(2,"span",23),o.Hc(3),o.Vb(),o.Vb(),o.Wb(4,"div",24),o.Fc(5,Nr,2,2,"span",25),o.Fc(6,qr,3,0,"span",26),o.Vb(),o.Vb()),2&e){var n=o.ic();o.Db(3),o.Jc("",n.lookupFields[n.selectedFieldId].name," Details"),o.Db(1),o.pc("ngSwitch",n.selectedFieldId),o.Db(1),o.pc("ngSwitchCase",0)}}function jr(e,t){1&e&&(o.Wb(0,"h3"),o.Hc(1,"Error! Unable to find details!"),o.Vb())}var Qr=function(e){return{"mt-2":e}},_r=function(){function e(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.actions$=a,this.lookupKeyCtrl=new re.d,this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Node ID"},{id:1,name:"Channel",placeholder:"Short Channel ID"}],this.flgLoading=[!0],this.faSearch=f.E,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new u.a,new u.a],this.screenSize=this.commonService.getScreenSize()}return e.prototype.ngOnInit=function(){var e=this;this.actions$.pipe(Object(b.a)(this.unSubs[0]),Object(d.a)((function(e){return e.type===y.cb||e.type===y.j}))).subscribe((function(t){if(t.type===y.cb){switch(e.flgLoading[0]=!0,e.selectedFieldId){case 0:e.nodeLookupValue=t.payload[0]?JSON.parse(JSON.stringify(t.payload[0])):{nodeid:""};break;case 1:e.channelLookupValue=t.payload?JSON.parse(JSON.stringify(t.payload)):[]}e.flgSetLookupValue=!0,e.logger.info(e.nodeLookupValue),e.logger.info(e.channelLookupValue)}t.type===y.j&&"Lookup"===t.payload.action&&(e.flgLoading[0]="error")})),this.lookupKeyCtrl.valueChanges.pipe(Object(b.a)(this.unSubs[1])).subscribe((function(t){e.nodeLookupValue={nodeid:""},e.channelLookupValue=[],e.flgSetLookupValue=!1}))},e.prototype.onLookup=function(){if(!this.lookupKeyCtrl.value)return this.lookupKeyCtrl.setErrors({required:!0}),!0;if(this.lookupKeyCtrl.value&&(this.lookupKeyCtrl.value.includes("@")||this.lookupKeyCtrl.value.includes(",")))return this.lookupKeyCtrl.setErrors({invalid:!0}),!0;switch(this.selectedFieldId||(this.selectedFieldId=0),this.flgSetLookupValue=!1,this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.store.dispatch(new ce.F("Searching "+this.lookupFields[this.selectedFieldId].name+"...")),this.selectedFieldId){case 0:this.store.dispatch(new y.I(this.lookupKeyCtrl.value.trim()))}},e.prototype.onSelectChange=function(e){this.resetData(),this.selectedFieldId=e.value},e.prototype.resetData=function(){this.flgSetLookupValue=!1,this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.lookupKeyCtrl.setValue(""),this.lookupKeyCtrl.setErrors(null),this.form.resetForm()},e.prototype.clearLookupValue=function(){this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.flgSetLookupValue=!1},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(o.Qb(m.b),o.Qb(h.a),o.Qb(v.h),o.Qb(x.a))},e.\u0275cmp=o.Kb({type:e,selectors:[["rtl-ecl-lookups"]],viewQuery:function(e,t){var n;1&e&&o.Mc(Er,!0),2&e&&o.vc(n=o.fc())&&(t.form=n.first)},decls:27,vars:10,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","20","fxFlex.gt-md","15","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField"],["checked","",1,"mr-4",3,"value"],["fxFlex","80","fxFlex.gt-md","85","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"formControl","placeholder"],["key",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],["errorBlock",""],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Rb(2,"fa-icon",2),o.Wb(3,"span",3),o.Hc(4,"Graph Lookups"),o.Vb(),o.Vb(),o.Wb(5,"div",4),o.Wb(6,"mat-card",5),o.Wb(7,"mat-card-content",6),o.Wb(8,"form",7,8),o.Wb(10,"div",9),o.Wb(11,"mat-radio-group",10),o.Wb(12,"mat-radio-button",11),o.Hc(13,"Node"),o.Vb(),o.Vb(),o.Vb(),o.Wb(14,"mat-form-field",12),o.Rb(15,"input",13,14),o.Fc(17,Mr,2,1,"mat-error",15),o.Fc(18,zr,2,1,"mat-error",15),o.Vb(),o.Wb(19,"div",16),o.Wb(20,"button",17),o.ec("click",(function(){return t.resetData()})),o.Hc(21,"Clear"),o.Vb(),o.Wb(22,"button",18),o.ec("click",(function(){return t.onLookup()})),o.Hc(23,"Lookup"),o.Vb(),o.Vb(),o.Vb(),o.Fc(24,Ur,7,3,"div",19),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Fc(25,jr,2,0,"ng-template",null,20,o.Gc)),2&e&&(o.Db(2),o.pc("icon",t.faSearch),o.Db(10),o.pc("value",0),o.Db(2),o.pc("ngClass",o.tc(8,Qr,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM)),o.Db(1),o.pc("formControl",t.lookupKeyCtrl)("placeholder",(null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder)||"Lookup Key"),o.Db(2),o.pc("ngIf",null==t.lookupKeyCtrl.errors?null:t.lookupKeyCtrl.errors.required),o.Db(1),o.pc("ngIf",null==t.lookupKeyCtrl.errors?null:t.lookupKeyCtrl.errors.invalid),o.Db(6),o.pc("ngIf",t.flgSetLookupValue))},directives:[C.c,C.b,V.a,C.a,D.a,D.b,re.t,re.m,re.n,Fr.b,Fr.a,P.c,a.l,I.a,se.b,re.b,re.r,re.l,re.e,a.n,W.a,P.b,a.p,a.q,a.r,Tr],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),e}(),$r=n("2h+y"),Xr=n("0dfH"),Jr=i.j.forChild([{path:"",component:l,children:[{path:"home",component:Hn,canActivate:[$r.c]},{path:"onchain",component:da,canActivate:[$r.c]},{path:"peerschannels",component:Yo,canActivate:[$r.c]},{path:"transactions",component:pc,canActivate:[$r.c]},{path:"routing",component:Wr,canActivate:[$r.c]},{path:"lookups",component:_r,canActivate:[$r.c]},{path:"**",component:Xr.a}]}]),Gr=n("PCNd"),Kr=function(){function e(){}return e.\u0275mod=o.Ob({type:e,bootstrap:[l]}),e.\u0275inj=o.Nb({factory:function(t){return new(t||e)},providers:[$r.c],imports:[[a.c,Gr.a,Jr]]}),e}()}}]); \ No newline at end of file diff --git a/angular/8.29ee25c8adea70ea041a.js b/angular/8.29ee25c8adea70ea041a.js deleted file mode 100644 index 811304c5..00000000 --- a/angular/8.29ee25c8adea70ea041a.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{tmAo:function(e,t,n){"use strict";n.r(t),n.d(t,"LNDModule",(function(){return Lf}));var a=n("Ip0R"),o=n("ZYCi"),i=n("CcnG"),r=n("UVSV");function c(e,t){1&e&&i.Rb(0,"mat-progress-bar",2)}function l(e,t){1&e&&i.Rb(0,"router-outlet")}var s=function(){function e(e){var t=this;this.router=e,this.loading=!1,this.router.events.subscribe((function(e){switch(!0){case e instanceof o.e:t.loading=!0;break;case e instanceof o.c:case e instanceof o.b:case e instanceof o.d:t.loading=!1}}))}return e.\u0275fac=function(t){return new(t||e)(i.Qb(o.f))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-lnd-root"]],decls:2,vars:2,consts:[["color","primary","mode","indeterminate",4,"ngIf"],[4,"ngIf"],["color","primary","mode","indeterminate"]],template:function(e,t){1&e&&(i.Fc(0,c,1,0,"mat-progress-bar",0),i.Fc(1,l,1,0,"router-outlet",1)),2&e&&(i.pc("ngIf",t.loading),i.Db(1),i.pc("ngIf",!t.loading))},directives:[a.n,r.a,o.k],styles:[""]}),e}(),b=n("K9Ia"),u=n("ny24"),p=n("VnD/"),d=n("twK/"),m=n("wHSu"),f=n("cpEJ"),h=n("7o2P"),g=n("7nzP"),y=n("MCVq"),C=n("yGQT"),v=n("jYNz"),x=n("21Lb"),w=n("Nv++"),F=n("aPcS"),V=n("hUWP"),W=n("qLAh"),L=n("zPjY"),D=n("M4kG"),S=n("fPVg"),_=function(e){return{backgroundColor:e}};function R(e,t){if(1&e&&i.Rb(0,"span",6),2&e){var n=i.ic();i.pc("ngStyle",i.tc(1,_,n.information.color))}}function k(e,t){if(1&e&&(i.Wb(0,"div"),i.Wb(1,"h4",1),i.Hc(2,"Color"),i.Vb(),i.Wb(3,"div",2),i.Rb(4,"span",7),i.Hc(5),i.jc(6,"uppercase"),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(4),i.pc("ngStyle",i.tc(4,_,n.information.color)),i.Db(1),i.Jc(" ",i.kc(6,2,n.information.color)," ")}}function I(e,t){if(1&e&&(i.Wb(0,"span",2),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(n)}}var H=function(){function e(e){this.commonService=e,this.chains=[""]}return e.prototype.ngOnChanges=function(){var e=this;this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach((function(t){e.chains.push(e.commonService.titleCase(t.chain)+" "+e.commonService.titleCase(t.network))})))},e.\u0275fac=function(t){return new(t||e)(i.Qb(h.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[i.Bb],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"div"),i.Wb(2,"h4",1),i.Hc(3,"Alias"),i.Vb(),i.Wb(4,"div",2),i.Hc(5),i.Fc(6,R,1,3,"span",3),i.Vb(),i.Vb(),i.Fc(7,k,7,6,"div",4),i.Wb(8,"div"),i.Wb(9,"h4",1),i.Hc(10,"Implementation"),i.Vb(),i.Wb(11,"div",2),i.Hc(12),i.Vb(),i.Vb(),i.Wb(13,"div"),i.Wb(14,"h4",1),i.Hc(15,"Chain"),i.Vb(),i.Fc(16,I,2,1,"span",5),i.Vb(),i.Vb()),2&e&&(i.Db(5),i.Jc(" ",t.information.alias," "),i.Db(1),i.pc("ngIf",!t.showColorFieldSeparately),i.Db(1),i.pc("ngIf",t.showColorFieldSeparately),i.Db(5),i.Ic(t.information.lnImplementation||t.information.version?t.information.lnImplementation+" "+t.information.version:""),i.Db(4),i.pc("ngForOf",t.chains))},directives:[x.c,x.a,x.b,a.n,a.m,a.o,V.b],pipes:[a.x],styles:[""]}),e}(),T=function(){function e(){this.balances={onchain:0,lightning:0,total:0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-balances-info"]],inputs:{balances:"balances"},decls:21,vars:11,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"div"),i.Wb(2,"h4",1),i.Hc(3,"Lightning"),i.Vb(),i.Wb(4,"div",2),i.Hc(5),i.jc(6,"number"),i.Vb(),i.Rb(7,"mat-progress-bar",3),i.Vb(),i.Wb(8,"div"),i.Wb(9,"h4",1),i.Hc(10,"On-chain"),i.Vb(),i.Wb(11,"div",2),i.Hc(12),i.jc(13,"number"),i.Vb(),i.Rb(14,"mat-progress-bar",3),i.Vb(),i.Wb(15,"div"),i.Wb(16,"h4",1),i.Hc(17,"Total"),i.Vb(),i.Wb(18,"div",2),i.Hc(19),i.jc(20,"number"),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(5),i.Jc("",i.kc(6,5,t.balances.lightning)," Sats"),i.Db(2),i.qc("value",t.balances.lightning/t.balances.total*100),i.Db(5),i.Jc("",i.kc(13,7,t.balances.onchain)," Sats"),i.Db(2),i.qc("value",t.balances.onchain/t.balances.total*100),i.Db(5),i.Jc("",i.kc(20,9,t.balances.total)," Sats"))},directives:[x.c,x.a,x.b,r.a],pipes:[a.e],styles:[""]}),e}(),A=n("dlst"),O=n("v/zR"),P=n("FZ+F"),M=n("g2ei");function E(e,t){if(1&e&&(i.Wb(0,"div",17),i.Wb(1,"span",18),i.Hc(2),i.jc(3,"slice"),i.Vb(),i.Wb(4,"div",3),i.Wb(5,"mat-hint",19),i.Wb(6,"strong",5),i.Hc(7,"Local:"),i.Vb(),i.Hc(8),i.jc(9,"number"),i.Vb(),i.Wb(10,"mat-hint",20),i.Rb(11,"fa-icon",21),i.Hc(12),i.jc(13,"number"),i.Vb(),i.Wb(14,"mat-hint",22),i.Wb(15,"strong",5),i.Hc(16,"Remote:"),i.Vb(),i.Hc(17),i.jc(18,"number"),i.Vb(),i.Vb(),i.Rb(19,"mat-progress-bar",23),i.Vb()),2&e){var n=t.$implicit,a=i.ic(2);i.Db(1),i.qc("matTooltip",n.remote_alias||n.remote_pubkey),i.qc("matTooltipDisabled",(n.remote_alias||n.remote_pubkey).length<26),i.Db(1),i.Kc("",i.mc(3,9,n.remote_alias||n.remote_pubkey,0,24),"",(n.remote_alias||n.remote_pubkey).length>25?"...":"",""),i.Db(6),i.Jc("",i.kc(9,13,n.local_balance||0)," Sats"),i.Db(3),i.pc("icon",a.faBalanceScale),i.Db(1),i.Jc(" (",i.kc(13,15,n.balancedness||0),") "),i.Db(5),i.Jc("",i.kc(18,17,n.remote_balance||0)," Sats"),i.Db(2),i.qc("value",n.local_balance&&n.local_balance>0?(n.local_balance-0)/(n.local_balance-0+(n.remote_balance-0))*100:0)}}function G(e,t){if(1&e&&(i.Wb(0,"div",15),i.Fc(1,E,20,19,"div",16),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngForOf",n.allChannels)}}function N(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",24),i.Hc(1," No channels available. "),i.Wb(2,"button",25),i.ec("click",(function(){return i.yc(n),i.ic().goToChannels()})),i.Hc(3,"Open Channel"),i.Vb(),i.Vb()}}var z=function(){function e(e){this.router=e,this.faBalanceScale=m.d,this.faDumbbell=m.k,this.sortBy="Balance Score"}return e.prototype.goToChannels=function(){this.router.navigateByUrl("/lnd/peerschannels")},e.\u0275fac=function(t){return new(t||e)(i.Qb(o.f))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy"},decls:26,vars:13,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["perfectScrollbar","",1,"channels-capacity-scroll"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"]],template:function(e,t){if(1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Wb(2,"span",2),i.Hc(3,"Total Capacity"),i.Vb(),i.Wb(4,"div",3),i.Wb(5,"mat-hint",4),i.Wb(6,"strong",5),i.Hc(7,"Local:"),i.Vb(),i.Hc(8),i.jc(9,"number"),i.Vb(),i.Wb(10,"mat-hint",6),i.Rb(11,"fa-icon",7),i.Hc(12),i.jc(13,"number"),i.Vb(),i.Wb(14,"mat-hint",8),i.Wb(15,"strong",5),i.Hc(16,"Remote:"),i.Vb(),i.Hc(17),i.jc(18,"number"),i.Vb(),i.Vb(),i.Rb(19,"mat-progress-bar",9),i.Vb(),i.Wb(20,"div",10),i.Rb(21,"mat-divider",11),i.Vb(),i.Wb(22,"div",12),i.Fc(23,G,2,1,"div",13),i.Vb(),i.Vb(),i.Fc(24,N,4,0,"ng-template",null,14,i.Gc)),2&e){var n=i.wc(25);i.Db(8),i.Jc("",i.kc(9,7,t.channelBalances.localBalance||0)," Sats"),i.Db(3),i.pc("icon",t.faBalanceScale),i.Db(1),i.Jc(" (",i.kc(13,9,(null==t.channelBalances?null:t.channelBalances.balancedness)||0),") "),i.Db(5),i.Jc("",i.kc(18,11,t.channelBalances.remoteBalance||0)," Sats"),i.Db(2),i.qc("value",t.channelBalances.localBalance&&t.channelBalances.localBalance>0?(t.channelBalances.localBalance-0)/(t.channelBalances.localBalance-0+(t.channelBalances.remoteBalance-0))*100:0),i.Db(4),i.pc("ngIf",t.allChannels&&t.allChannels.length>0)("ngIfElse",n)}},directives:[x.c,x.b,x.a,A.f,w.a,O.a,r.a,P.a,M.b,a.n,a.m,D.a],pipes:[a.e,a.v],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),e}(),B=function(){function e(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}return e.prototype.ngOnChanges=function(){if(this.fees.month_fee_sum){this.totalFees=[{name:"Monthly",value:this.fees.month_fee_sum},{name:"Weekly",value:this.fees.week_fee_sum},{name:"Daily ",value:this.fees.day_fee_sum}];var e=Math.ceil(Math.log(this.fees.month_fee_sum+1)/Math.LN10),t=Math.pow(10,e-1);this.maxFeeValue=Math.ceil(this.fees.month_fee_sum/t)*t/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-fee-info"]],inputs:{fees:"fees"},features:[i.Bb],decls:44,vars:18,consts:[["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"],[1,"dashboard-info-title"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"div"),i.Wb(2,"h4",1),i.Hc(3,"Daily"),i.Vb(),i.Wb(4,"div",2),i.Hc(5),i.jc(6,"number"),i.Vb(),i.Vb(),i.Wb(7,"div"),i.Wb(8,"h4",1),i.Hc(9,"Weekly"),i.Vb(),i.Wb(10,"div",2),i.Hc(11),i.jc(12,"number"),i.Vb(),i.Vb(),i.Wb(13,"div"),i.Wb(14,"h4",1),i.Hc(15,"Monthly"),i.Vb(),i.Wb(16,"div",2),i.Hc(17),i.jc(18,"number"),i.Vb(),i.Vb(),i.Wb(19,"div",3),i.Rb(20,"h4",4),i.Rb(21,"span",2),i.Vb(),i.Vb(),i.Wb(22,"div",0),i.Wb(23,"div"),i.Wb(24,"h4",1),i.Hc(25,"Transactions"),i.Vb(),i.Wb(26,"div",2),i.Hc(27),i.jc(28,"number"),i.Vb(),i.Vb(),i.Wb(29,"div"),i.Wb(30,"h4",1),i.Hc(31,"Transactions"),i.Vb(),i.Wb(32,"div",2),i.Hc(33),i.jc(34,"number"),i.Vb(),i.Vb(),i.Wb(35,"div"),i.Wb(36,"h4",1),i.Hc(37,"Transactions"),i.Vb(),i.Wb(38,"div",2),i.Hc(39),i.jc(40,"number"),i.Vb(),i.Vb(),i.Wb(41,"div",3),i.Rb(42,"h4",4),i.Rb(43,"span",2),i.Vb(),i.Vb()),2&e&&(i.Db(5),i.Jc("",i.kc(6,6,null==t.fees?null:t.fees.day_fee_sum)," Sats"),i.Db(6),i.Jc("",i.kc(12,8,null==t.fees?null:t.fees.week_fee_sum)," Sats"),i.Db(6),i.Jc("",i.kc(18,10,null==t.fees?null:t.fees.month_fee_sum)," Sats"),i.Db(10),i.Ic(i.kc(28,12,null==t.fees?null:t.fees.daily_tx_count)),i.Db(6),i.Ic(i.kc(34,14,null==t.fees?null:t.fees.weekly_tx_count)),i.Db(6),i.Ic(i.kc(40,16,null==t.fees?null:t.fees.monthly_tx_count)))},directives:[x.c,x.a,x.b],pipes:[a.e],styles:[""]}),e}(),q=function(){function e(){this.channelsStatus={}}return e.prototype.ngOnChanges=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus"},features:[i.Bb],decls:54,vars:24,consts:[["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],[1,"dot","tiny-dot","red"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"div"),i.Wb(2,"h4",1),i.Hc(3,"Active"),i.Vb(),i.Wb(4,"div",2),i.Rb(5,"span",3),i.Hc(6),i.jc(7,"number"),i.Vb(),i.Vb(),i.Wb(8,"div"),i.Wb(9,"h4",1),i.Hc(10,"Pending"),i.Vb(),i.Wb(11,"div",2),i.Rb(12,"span",4),i.Hc(13),i.jc(14,"number"),i.Vb(),i.Vb(),i.Wb(15,"div"),i.Wb(16,"h4",1),i.Hc(17,"Inactive"),i.Vb(),i.Wb(18,"div",2),i.Rb(19,"span",5),i.Hc(20),i.jc(21,"number"),i.Vb(),i.Vb(),i.Wb(22,"div"),i.Wb(23,"h4",1),i.Hc(24,"Closing"),i.Vb(),i.Wb(25,"div",2),i.Rb(26,"span",6),i.Hc(27),i.jc(28,"number"),i.Vb(),i.Vb(),i.Vb(),i.Wb(29,"div",0),i.Wb(30,"div"),i.Wb(31,"h4",1),i.Hc(32,"Capacity"),i.Vb(),i.Wb(33,"div",2),i.Hc(34),i.jc(35,"number"),i.Vb(),i.Vb(),i.Wb(36,"div"),i.Wb(37,"h4",1),i.Hc(38,"Capacity"),i.Vb(),i.Wb(39,"div",2),i.Hc(40),i.jc(41,"number"),i.Vb(),i.Vb(),i.Wb(42,"div"),i.Wb(43,"h4",1),i.Hc(44,"Capacity"),i.Vb(),i.Wb(45,"div",2),i.Hc(46),i.jc(47,"number"),i.Vb(),i.Vb(),i.Wb(48,"div"),i.Wb(49,"h4",1),i.Hc(50,"Capacity"),i.Vb(),i.Wb(51,"div",2),i.Hc(52),i.jc(53,"number"),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(6),i.Ic(i.kc(7,8,t.channelsStatus.active.channels||0)),i.Db(7),i.Ic(i.kc(14,10,t.channelsStatus.pending.channels||0)),i.Db(7),i.Ic(i.kc(21,12,t.channelsStatus.inactive.channels||0)),i.Db(7),i.Ic(i.kc(28,14,t.channelsStatus.closing.channels||0)),i.Db(7),i.Jc("",i.kc(35,16,t.channelsStatus.active.capacity||0)," Sats"),i.Db(6),i.Jc("",i.kc(41,18,t.channelsStatus.pending.capacity||0)," Sats"),i.Db(6),i.Jc("",i.kc(47,20,t.channelsStatus.inactive.capacity||0)," Sats"),i.Db(6),i.Jc("",i.kc(53,22,t.channelsStatus.closing.capacity||0)," Sats"))},directives:[x.c,x.a,x.b],pipes:[a.e],styles:[""]}),e}(),U=n("gIcY"),j=n("4lrr"),Q=n("ihYY"),X=[Object(Q.n)("opacityAnimation",[Object(Q.m)(":enter",[Object(Q.l)({opacity:0}),Object(Q.e)("1000ms ease-in",Object(Q.l)({opacity:1}))]),Object(Q.m)(":leave",[Object(Q.e)("0ms",Object(Q.l)({opacity:0}))])])],$=n("hBQm"),J=n("/uX3"),Z=n("qPmt"),K=n("FqGj");function Y(e,t){1&e&&i.Sb(0)}function ee(e,t){1&e&&i.Sb(0)}var te=function(e){return{"h-5":e}};function ne(e,t){if(1&e&&(i.Wb(0,"mat-expansion-panel",3),i.Wb(1,"mat-expansion-panel-header"),i.Wb(2,"mat-panel-title"),i.Wb(3,"span",4),i.Hc(4),i.jc(5,"number"),i.Vb(),i.Vb(),i.Vb(),i.Fc(6,ee,1,0,"ng-container",0),i.Vb()),2&e){var n=i.ic(),a=i.wc(4);i.pc("expanded",n.panelExpanded)("ngClass",i.tc(7,te,!n.flgShowPanel)),i.Db(4),i.Kc("Quote for ",n.termCaption," amount (",i.kc(5,5,n.quote.amount)," Sats)"),i.Db(2),i.pc("ngTemplateOutlet",a)}}function ae(e,t){if(1&e&&(i.Wb(0,"div",17),i.Wb(1,"h4",8),i.Hc(2,"Prepay Amount (Sats)"),i.Vb(),i.Wb(3,"span",9),i.Hc(4),i.jc(5,"number"),i.Vb(),i.Vb()),2&e){var n=i.ic(2);i.Db(4),i.Ic(i.kc(5,1,null==n.quote?null:n.quote.prepay_amt_sat))}}function oe(e,t){1&e&&i.Rb(0,"mat-divider",12)}function ie(e,t){if(1&e&&(i.Wb(0,"div",6),i.Wb(1,"div",18),i.Wb(2,"h4",8),i.Hc(3,"Swap Server Node Pubkey"),i.Vb(),i.Wb(4,"span",9),i.Hc(5),i.Vb(),i.Vb(),i.Vb()),2&e){var n=i.ic(2);i.Db(5),i.Ic(null==n.quote?null:n.quote.swap_payment_dest)}}function re(e,t){if(1&e&&(i.Wb(0,"div",5),i.Wb(1,"div",6),i.Wb(2,"div",7),i.Wb(3,"h4",8),i.Hc(4,"Swap Fee (Sats)"),i.Vb(),i.Wb(5,"span",9),i.Hc(6),i.jc(7,"number"),i.Vb(),i.Vb(),i.Wb(8,"div",10),i.Wb(9,"h4",8),i.Hc(10),i.Vb(),i.Wb(11,"span",9),i.Hc(12),i.jc(13,"number"),i.Vb(),i.Vb(),i.Fc(14,ae,6,3,"div",11),i.Vb(),i.Rb(15,"mat-divider",12),i.Wb(16,"div",6),i.Wb(17,"div",13),i.Wb(18,"h4",8),i.Hc(19,"Max Off-chain Swap Routing Fee (Sats)"),i.Vb(),i.Wb(20,"span",9),i.Hc(21),i.jc(22,"number"),i.Vb(),i.Vb(),i.Wb(23,"div",14),i.Wb(24,"h4",8),i.Hc(25,"Max Off-chain Prepay Routing Fee (Sats)"),i.Vb(),i.Wb(26,"span",9),i.Hc(27,"36"),i.Vb(),i.Vb(),i.Vb(),i.Fc(28,oe,1,0,"mat-divider",15),i.Fc(29,ie,6,1,"div",16),i.Vb()),2&e){var n=i.ic();i.Db(2),i.pc("fxFlex",null!=n.quote&&n.quote.prepay_amt_sat?"30":"50"),i.Db(4),i.Ic(i.kc(7,9,null==n.quote?null:n.quote.swap_fee_sat)),i.Db(2),i.pc("fxFlex",null!=n.quote&&n.quote.prepay_amt_sat?"30":"50"),i.Db(2),i.Ic(null!=n.quote&&n.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=n.quote&&n.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""),i.Db(2),i.Ic(i.kc(13,11,null!=n.quote&&n.quote.htlc_sweep_fee_sat?n.quote.htlc_sweep_fee_sat:null!=n.quote&&n.quote.htlc_publish_fee_sat?n.quote.htlc_publish_fee_sat:0)),i.Db(2),i.pc("ngIf",null==n.quote?null:n.quote.prepay_amt_sat),i.Db(7),i.Ic(i.kc(22,13,(null==n.quote?null:n.quote.amount)*((null!=n.quote&&n.quote.off_chain_swap_routing_fee_percentage?null==n.quote?null:n.quote.off_chain_swap_routing_fee_percentage:2)/100))),i.Db(7),i.pc("ngIf",""!==(null==n.quote?null:n.quote.swap_payment_dest)),i.Db(1),i.pc("ngIf",""!==(null==n.quote?null:n.quote.swap_payment_dest))}}var ce=function(){function e(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}return e.prototype.ngOnInit=function(){var e=this;setTimeout((function(){e.flgShowPanel=!0}),1200)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["informationBlock",""],["quoteDetailsBlock",""],["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded","ngClass"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["matTooltip","Estimated fee charged by the loop server for the swap",3,"fxFlex"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],["matTooltip","An estimate of the on-chain fee that needs to be paid to sweep the HTLC",3,"fxFlex"],["fxFlex","40","matTooltip","The part of the swap fee that is requested as a prepayment",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","50","matTooltip","Maximum off-chain fee that may be paid for routing the payment amount to the server"],["fxFlex","50","matTooltip","Maximum off-chain fee that may be paid for routing the pre-payment amount to the server"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxFlex","40","matTooltip","The part of the swap fee that is requested as a prepayment"],["fxFlex","100","matTooltip","The node pubkey, where the swap payments will be sent"]],template:function(e,t){if(1&e&&(i.Fc(0,Y,1,0,"ng-container",0),i.Fc(1,ne,7,9,"ng-template",null,1,i.Gc),i.Fc(3,re,30,15,"ng-template",null,2,i.Gc)),2&e){var n=i.wc(2),a=i.wc(4);i.pc("ngTemplateOutlet",t.showPanel?n:a)}},directives:[a.s,K.c,x.a,a.l,V.a,K.e,K.f,x.b,x.c,O.a,a.n,P.a],pipes:[a.e],styles:[""]}),e}(),le=n("UTvR"),se=n("O4ig"),be=n("Ci9w"),ue=n("I21E");function pe(e,t){1&e&&i.Sb(0)}function de(e,t){if(1&e&&(i.Wb(0,"div",3),i.Wb(1,"span",4),i.Hc(2),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(2),i.Ic("Error: "+(null!=n.loopStatus&&null!=n.loopStatus.error&&null!=n.loopStatus.error.error&&null!=n.loopStatus.error.error.error&&n.loopStatus.error.error.error.error?n.loopStatus.error.error.error.error:null!=n.loopStatus&&null!=n.loopStatus.error&&null!=n.loopStatus.error.error&&n.loopStatus.error.error.error?n.loopStatus.error.error.error:null!=n.loopStatus&&null!=n.loopStatus.error&&n.loopStatus.error.error?n.loopStatus.error.error:null!=n.loopStatus&&n.loopStatus.error?n.loopStatus.error:"Unknown"))}}function me(e,t){if(1&e&&(i.Wb(0,"div",3),i.Wb(1,"div",5),i.Wb(2,"div",6),i.Wb(3,"h4",7),i.Hc(4,"ID"),i.Vb(),i.Wb(5,"span",4),i.Hc(6),i.Vb(),i.Vb(),i.Vb(),i.Rb(7,"mat-divider",8),i.Wb(8,"div",5),i.Wb(9,"div",6),i.Wb(10,"h4",7),i.Hc(11,"HTLC Address"),i.Vb(),i.Wb(12,"span",4),i.Hc(13),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(6),i.Ic(null==n.loopStatus?null:n.loopStatus.id_bytes),i.Db(7),i.Ic(null==n.loopStatus?null:n.loopStatus.htlc_address)}}var fe=function(){function e(){}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Kb({type:e,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,t){if(1&e&&(i.Fc(0,pe,1,0,"ng-container",0),i.Fc(1,de,3,1,"ng-template",null,1,i.Gc),i.Fc(3,me,14,2,"ng-template",null,2,i.Gc)),2&e){var n=i.wc(2),a=i.wc(4);i.pc("ngTemplateOutlet",null!=t.loopStatus&&t.loopStatus.error?n:a)}},directives:[a.s,x.c,x.a,x.b,P.a],styles:[""]}),e}(),he=[Object(Q.n)("sliderAnimation",[Object(Q.k)("*",Object(Q.l)({transform:"translateX(0)"})),Object(Q.m)("void => backward",[Object(Q.l)({transform:"translateX(-100%"}),Object(Q.e)("800ms")]),Object(Q.m)("backward => void",[Object(Q.e)("0ms",Object(Q.l)({transform:"translateX(100%)"}))]),Object(Q.m)("void => forward",[Object(Q.l)({transform:"translateX(100%"}),Object(Q.e)("800ms")]),Object(Q.m)("forward => void",[Object(Q.e)("0ms",Object(Q.l)({transform:"translateX(-100%)"}))])])];function ge(e,t){1&e&&i.Sb(0)}var ye=function(e,t){return{"small-svg":e,"large-svg":t}};function Ce(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",6),i.ec("swipe",(function(e){return i.yc(n),i.ic().onSwipe(e)})),i.hc(),i.Wb(1,"svg",7),i.Wb(2,"desc"),i.Hc(3,"Created with Sketch."),i.Vb(),i.Wb(4,"g",8),i.Wb(5,"g",9),i.Wb(6,"g",10),i.Wb(7,"g",11),i.Rb(8,"circle",12),i.Rb(9,"path",13),i.Vb(),i.Wb(10,"g",14),i.Rb(11,"ellipse",15),i.Rb(12,"ellipse",16),i.Rb(13,"rect",17),i.Rb(14,"rect",18),i.Rb(15,"rect",19),i.Rb(16,"rect",20),i.Rb(17,"rect",21),i.Rb(18,"rect",22),i.Rb(19,"rect",23),i.Rb(20,"rect",24),i.Rb(21,"rect",25),i.Rb(22,"rect",26),i.Rb(23,"rect",27),i.Rb(24,"rect",28),i.Rb(25,"rect",29),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.gc(),i.Wb(26,"div",30),i.Wb(27,"mat-card-title"),i.Hc(28,"Loop Out explained."),i.Vb(),i.Vb(),i.Wb(29,"div",31),i.Wb(30,"mat-card-subtitle",32),i.Hc(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.pc("@sliderAnimation",a.animationDirection),i.Db(1),i.pc("ngClass",i.uc(2,ye,a.screenSize===a.screenSizeEnum.XS,a.screenSize!==a.screenSizeEnum.XS))}}function ve(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",6),i.ec("swipe",(function(e){return i.yc(n),i.ic().onSwipe(e)})),i.hc(),i.Wb(1,"svg",33),i.Wb(2,"desc"),i.Hc(3,"Created with Sketch."),i.Vb(),i.Wb(4,"defs"),i.Wb(5,"linearGradient",34),i.Rb(6,"stop",35),i.Rb(7,"stop",36),i.Rb(8,"stop",37),i.Vb(),i.Vb(),i.Wb(9,"g",8),i.Wb(10,"g",38),i.Wb(11,"g",39),i.Wb(12,"g",40),i.Wb(13,"g",41),i.Wb(14,"g",42),i.Rb(15,"rect",43),i.Rb(16,"rect",44),i.Rb(17,"rect",45),i.Rb(18,"circle",46),i.Rb(19,"rect",47),i.Rb(20,"rect",48),i.Rb(21,"circle",49),i.Rb(22,"rect",50),i.Rb(23,"rect",51),i.Rb(24,"rect",52),i.Rb(25,"rect",53),i.Rb(26,"circle",54),i.Rb(27,"circle",55),i.Vb(),i.Wb(28,"g",56),i.Rb(29,"path",57),i.Rb(30,"rect",58),i.Rb(31,"polygon",59),i.Rb(32,"circle",60),i.Rb(33,"path",61),i.Rb(34,"rect",62),i.Rb(35,"rect",63),i.Rb(36,"rect",64),i.Rb(37,"rect",65),i.Rb(38,"rect",66),i.Rb(39,"rect",67),i.Rb(40,"rect",68),i.Rb(41,"path",69),i.Rb(42,"path",70),i.Vb(),i.Rb(43,"path",71),i.Vb(),i.Vb(),i.Rb(44,"circle",72),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.gc(),i.Wb(45,"div",30),i.Wb(46,"mat-card-title"),i.Hc(47,"Step 1: Deciding to Loop Out"),i.Vb(),i.Vb(),i.Wb(48,"div",31),i.Wb(49,"mat-card-subtitle",32),i.Hc(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.pc("@sliderAnimation",a.animationDirection),i.Db(1),i.pc("ngClass",i.uc(2,ye,a.screenSize===a.screenSizeEnum.XS,a.screenSize!==a.screenSizeEnum.XS))}}function xe(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",6),i.ec("swipe",(function(e){return i.yc(n),i.ic().onSwipe(e)})),i.hc(),i.Wb(1,"svg",73),i.Wb(2,"desc"),i.Hc(3,"Created with Sketch."),i.Vb(),i.Wb(4,"defs"),i.Wb(5,"linearGradient",74),i.Rb(6,"stop",35),i.Rb(7,"stop",36),i.Rb(8,"stop",37),i.Vb(),i.Vb(),i.Wb(9,"g",8),i.Wb(10,"g",75),i.Wb(11,"g",76),i.Rb(12,"circle",77),i.Rb(13,"path",78),i.Wb(14,"g",79),i.Rb(15,"polygon",80),i.Rb(16,"polygon",81),i.Rb(17,"path",82),i.Vb(),i.Wb(18,"g",83),i.Rb(19,"polygon",84),i.Rb(20,"path",85),i.Rb(21,"rect",86),i.Rb(22,"path",87),i.Rb(23,"rect",88),i.Rb(24,"rect",89),i.Rb(25,"rect",90),i.Rb(26,"rect",91),i.Rb(27,"circle",92),i.Rb(28,"path",93),i.Wb(29,"g",94),i.Wb(30,"g",95),i.Rb(31,"g",96),i.Vb(),i.Rb(32,"g",97),i.Vb(),i.Rb(33,"path",98),i.Vb(),i.Wb(34,"g",99),i.Wb(35,"g",41),i.Wb(36,"g",42),i.Rb(37,"rect",43),i.Rb(38,"rect",44),i.Rb(39,"rect",45),i.Rb(40,"circle",46),i.Rb(41,"rect",47),i.Rb(42,"rect",48),i.Rb(43,"circle",49),i.Rb(44,"rect",50),i.Rb(45,"rect",51),i.Rb(46,"rect",52),i.Rb(47,"rect",53),i.Rb(48,"circle",100),i.Rb(49,"circle",54),i.Rb(50,"circle",55),i.Rb(51,"circle",101),i.Vb(),i.Wb(52,"g",56),i.Rb(53,"path",57),i.Rb(54,"rect",102),i.Rb(55,"polygon",103),i.Rb(56,"circle",104),i.Rb(57,"path",61),i.Rb(58,"rect",105),i.Rb(59,"rect",106),i.Rb(60,"rect",107),i.Rb(61,"rect",108),i.Rb(62,"rect",109),i.Rb(63,"rect",110),i.Rb(64,"rect",68),i.Rb(65,"path",69),i.Rb(66,"path",70),i.Vb(),i.Rb(67,"path",111),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.gc(),i.Wb(68,"div",30),i.Wb(69,"mat-card-title"),i.Hc(70,"Step 2: Send lightning payment"),i.Vb(),i.Vb(),i.Wb(71,"div",31),i.Wb(72,"mat-card-subtitle",32),i.Hc(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. "),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.pc("@sliderAnimation",a.animationDirection),i.Db(1),i.pc("ngClass",i.uc(2,ye,a.screenSize===a.screenSizeEnum.XS,a.screenSize!==a.screenSizeEnum.XS))}}function we(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",6),i.ec("swipe",(function(e){return i.yc(n),i.ic().onSwipe(e)})),i.hc(),i.Wb(1,"svg",112),i.Wb(2,"desc"),i.Hc(3,"Created with Sketch."),i.Vb(),i.Wb(4,"g",8),i.Wb(5,"g",113),i.Wb(6,"g",114),i.Wb(7,"g",115),i.Wb(8,"g",116),i.Rb(9,"circle",12),i.Rb(10,"path",117),i.Vb(),i.Wb(11,"g",14),i.Rb(12,"ellipse",118),i.Rb(13,"ellipse",16),i.Rb(14,"rect",17),i.Rb(15,"rect",18),i.Rb(16,"rect",19),i.Rb(17,"rect",20),i.Rb(18,"rect",21),i.Rb(19,"rect",22),i.Rb(20,"rect",23),i.Rb(21,"rect",24),i.Rb(22,"rect",25),i.Rb(23,"rect",26),i.Rb(24,"rect",27),i.Rb(25,"rect",28),i.Rb(26,"rect",29),i.Vb(),i.Vb(),i.Wb(27,"g",119),i.Rb(28,"polygon",80),i.Rb(29,"polygon",120),i.Rb(30,"path",82),i.Vb(),i.Wb(31,"g",121),i.Rb(32,"polygon",84),i.Rb(33,"path",85),i.Rb(34,"rect",86),i.Rb(35,"path",87),i.Rb(36,"rect",88),i.Rb(37,"rect",89),i.Rb(38,"rect",90),i.Rb(39,"rect",91),i.Rb(40,"circle",122),i.Rb(41,"path",93),i.Wb(42,"g",94),i.Wb(43,"g",95),i.Rb(44,"g",96),i.Vb(),i.Rb(45,"g",97),i.Vb(),i.Rb(46,"path",123),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.gc(),i.Wb(47,"div",30),i.Wb(48,"mat-card-title"),i.Hc(49,"Step 3: Receive funds back"),i.Vb(),i.Vb(),i.Wb(50,"div",31),i.Wb(51,"mat-card-subtitle",32),i.Hc(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.pc("@sliderAnimation",a.animationDirection),i.Db(1),i.pc("ngClass",i.uc(2,ye,a.screenSize===a.screenSizeEnum.XS,a.screenSize!==a.screenSizeEnum.XS))}}function Fe(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",6),i.ec("swipe",(function(e){return i.yc(n),i.ic().onSwipe(e)})),i.hc(),i.Wb(1,"svg",124),i.Wb(2,"desc"),i.Hc(3,"Created with Sketch."),i.Vb(),i.Wb(4,"defs"),i.Wb(5,"linearGradient",34),i.Rb(6,"stop",35),i.Rb(7,"stop",36),i.Rb(8,"stop",37),i.Vb(),i.Vb(),i.Wb(9,"g",8),i.Wb(10,"g",125),i.Wb(11,"g",126),i.Wb(12,"g",42),i.Rb(13,"rect",127),i.Rb(14,"rect",128),i.Rb(15,"rect",129),i.Rb(16,"circle",130),i.Rb(17,"rect",131),i.Rb(18,"rect",132),i.Rb(19,"circle",133),i.Rb(20,"rect",134),i.Rb(21,"rect",135),i.Rb(22,"rect",136),i.Rb(23,"rect",137),i.Rb(24,"rect",138),i.Rb(25,"circle",139),i.Rb(26,"circle",140),i.Rb(27,"circle",141),i.Vb(),i.Wb(28,"g",142),i.Wb(29,"g",143),i.Wb(30,"g",144),i.Rb(31,"path",145),i.Rb(32,"rect",146),i.Rb(33,"polygon",147),i.Wb(34,"g",148),i.Rb(35,"path",149),i.Vb(),i.Rb(36,"rect",150),i.Rb(37,"rect",151),i.Rb(38,"rect",152),i.Rb(39,"rect",153),i.Rb(40,"rect",154),i.Rb(41,"rect",155),i.Rb(42,"rect",156),i.Rb(43,"path",157),i.Rb(44,"path",158),i.Vb(),i.Wb(45,"g",159),i.Rb(46,"path",160),i.Rb(47,"path",161),i.Rb(48,"path",162),i.Rb(49,"path",163),i.Rb(50,"path",164),i.Rb(51,"path",165),i.Rb(52,"path",166),i.Rb(53,"path",167),i.Rb(54,"path",168),i.Rb(55,"path",169),i.Rb(56,"path",170),i.Rb(57,"circle",171),i.Rb(58,"circle",172),i.Vb(),i.Rb(59,"path",173),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.gc(),i.Wb(60,"div",30),i.Wb(61,"mat-card-title"),i.Hc(62,"Done!"),i.Vb(),i.Vb(),i.Wb(63,"div",31),i.Wb(64,"mat-card-subtitle",32),i.Hc(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. "),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.pc("@sliderAnimation",a.animationDirection),i.Db(1),i.pc("ngClass",i.uc(2,ye,a.screenSize===a.screenSizeEnum.XS,a.screenSize!==a.screenSizeEnum.XS))}}var Ve=function(){function e(e){this.commonService=e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new i.o,this.screenSize="",this.screenSizeEnum=g.o}return e.prototype.ngOnInit=function(){this.screenSize=this.commonService.getScreenSize()},e.prototype.onSwipe=function(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))},e.\u0275fac=function(t){return new(t||e)(i.Qb(h.a))},e.\u0275cmp=i.Kb({type:e,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,t){if(1&e&&(i.Fc(0,ge,1,0,"ng-container",0),i.Fc(1,Ce,32,5,"ng-template",null,1,i.Gc),i.Fc(3,ve,51,5,"ng-template",null,2,i.Gc),i.Fc(5,xe,74,5,"ng-template",null,3,i.Gc),i.Fc(7,we,53,5,"ng-template",null,4,i.Gc),i.Fc(9,Fe,66,5,"ng-template",null,5,i.Gc)),2&e){var n=i.wc(2),a=i.wc(4),o=i.wc(6),r=i.wc(8),c=i.wc(10);i.pc("ngTemplateOutlet",1===t.stepNumber?n:2===t.stepNumber?a:3===t.stepNumber?o:4===t.stepNumber?r:c)}},directives:[a.s,x.c,x.a,x.b,a.l,V.a,W.f,W.e],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:[he]}}),e}();function We(e,t){1&e&&i.Sb(0)}var Le=function(e,t){return{"small-svg":e,"large-svg":t}};function De(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",6),i.ec("swipe",(function(e){return i.yc(n),i.ic().onSwipe(e)})),i.hc(),i.Wb(1,"svg",7),i.Wb(2,"desc"),i.Hc(3,"Created with Sketch."),i.Vb(),i.Wb(4,"g",8),i.Wb(5,"g",9),i.Wb(6,"g",10),i.Wb(7,"g",11),i.Rb(8,"circle",12),i.Rb(9,"path",13),i.Vb(),i.Wb(10,"g",14),i.Rb(11,"ellipse",15),i.Rb(12,"ellipse",16),i.Rb(13,"rect",17),i.Rb(14,"rect",18),i.Rb(15,"rect",19),i.Rb(16,"rect",20),i.Rb(17,"rect",21),i.Rb(18,"rect",22),i.Rb(19,"rect",23),i.Rb(20,"rect",24),i.Rb(21,"rect",25),i.Rb(22,"rect",26),i.Rb(23,"rect",27),i.Rb(24,"rect",28),i.Rb(25,"rect",29),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.gc(),i.Wb(26,"div",30),i.Wb(27,"mat-card-title"),i.Hc(28,"Loop In explained."),i.Vb(),i.Vb(),i.Wb(29,"div",31),i.Wb(30,"mat-card-subtitle",32),i.Hc(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.pc("@sliderAnimation",a.animationDirection),i.Db(1),i.pc("ngClass",i.uc(2,Le,a.screenSize===a.screenSizeEnum.XS,a.screenSize!==a.screenSizeEnum.XS))}}function Se(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",6),i.ec("swipe",(function(e){return i.yc(n),i.ic().onSwipe(e)})),i.hc(),i.Wb(1,"svg",33),i.Wb(2,"desc"),i.Hc(3,"Created with Sketch."),i.Vb(),i.Wb(4,"defs"),i.Wb(5,"linearGradient",34),i.Rb(6,"stop",35),i.Rb(7,"stop",36),i.Rb(8,"stop",37),i.Vb(),i.Vb(),i.Wb(9,"g",8),i.Wb(10,"g",38),i.Wb(11,"g",39),i.Wb(12,"g",40),i.Rb(13,"rect",41),i.Rb(14,"rect",42),i.Rb(15,"rect",43),i.Rb(16,"circle",44),i.Rb(17,"rect",45),i.Rb(18,"rect",46),i.Rb(19,"circle",47),i.Rb(20,"rect",48),i.Rb(21,"rect",49),i.Rb(22,"rect",50),i.Rb(23,"rect",51),i.Rb(24,"rect",52),i.Rb(25,"circle",53),i.Rb(26,"circle",54),i.Rb(27,"circle",55),i.Vb(),i.Wb(28,"g",56),i.Wb(29,"g",57),i.Wb(30,"g",58),i.Rb(31,"path",59),i.Rb(32,"rect",60),i.Rb(33,"polygon",61),i.Wb(34,"g",62),i.Rb(35,"path",63),i.Vb(),i.Rb(36,"rect",64),i.Rb(37,"rect",65),i.Rb(38,"rect",66),i.Rb(39,"rect",67),i.Rb(40,"rect",68),i.Rb(41,"rect",69),i.Rb(42,"rect",70),i.Rb(43,"path",71),i.Rb(44,"path",72),i.Vb(),i.Wb(45,"g",73),i.Rb(46,"path",74),i.Rb(47,"path",75),i.Rb(48,"path",76),i.Rb(49,"path",77),i.Rb(50,"path",78),i.Rb(51,"path",79),i.Rb(52,"path",80),i.Rb(53,"path",81),i.Rb(54,"path",82),i.Rb(55,"path",83),i.Rb(56,"path",84),i.Rb(57,"circle",85),i.Rb(58,"circle",86),i.Vb(),i.Rb(59,"path",87),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.gc(),i.Wb(60,"div",30),i.Wb(61,"mat-card-title"),i.Hc(62,"Step 1: Deciding to Loop In"),i.Vb(),i.Vb(),i.Wb(63,"div",31),i.Wb(64,"mat-card-subtitle",32),i.Hc(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.pc("@sliderAnimation",a.animationDirection),i.Db(1),i.pc("ngClass",i.uc(2,Le,a.screenSize===a.screenSizeEnum.XS,a.screenSize!==a.screenSizeEnum.XS))}}function _e(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",6),i.ec("swipe",(function(e){return i.yc(n),i.ic().onSwipe(e)})),i.hc(),i.Wb(1,"svg",88),i.Wb(2,"desc"),i.Hc(3,"Created with Sketch."),i.Vb(),i.Wb(4,"defs"),i.Wb(5,"linearGradient",89),i.Rb(6,"stop",35),i.Rb(7,"stop",36),i.Rb(8,"stop",37),i.Vb(),i.Vb(),i.Wb(9,"g",90),i.Wb(10,"g",91),i.Wb(11,"g",92),i.Wb(12,"g",93),i.Wb(13,"g",94),i.Rb(14,"circle",95),i.Rb(15,"path",96),i.Wb(16,"g",97),i.Rb(17,"polygon",98),i.Rb(18,"polygon",99),i.Rb(19,"path",100),i.Vb(),i.Wb(20,"g",101),i.Rb(21,"polygon",102),i.Rb(22,"path",103),i.Rb(23,"rect",104),i.Rb(24,"path",105),i.Rb(25,"rect",106),i.Rb(26,"rect",107),i.Rb(27,"rect",108),i.Rb(28,"rect",109),i.Rb(29,"circle",110),i.Rb(30,"path",111),i.Wb(31,"g",112),i.Wb(32,"g",113),i.Rb(33,"g",114),i.Vb(),i.Rb(34,"g",115),i.Vb(),i.Vb(),i.Vb(),i.Wb(35,"g",116),i.Wb(36,"g",40),i.Rb(37,"rect",117),i.Rb(38,"rect",42),i.Rb(39,"rect",43),i.Rb(40,"circle",118),i.Rb(41,"rect",45),i.Rb(42,"rect",46),i.Rb(43,"circle",119),i.Rb(44,"rect",48),i.Rb(45,"rect",49),i.Rb(46,"rect",50),i.Rb(47,"rect",51),i.Rb(48,"rect",52),i.Rb(49,"circle",120),i.Rb(50,"circle",54),i.Rb(51,"circle",55),i.Rb(52,"circle",121),i.Vb(),i.Wb(53,"g",56),i.Wb(54,"g",57),i.Wb(55,"g",58),i.Rb(56,"path",59),i.Rb(57,"rect",60),i.Rb(58,"polygon",61),i.Wb(59,"g",122),i.Rb(60,"path",63),i.Vb(),i.Rb(61,"rect",123),i.Rb(62,"rect",124),i.Rb(63,"rect",125),i.Rb(64,"rect",126),i.Rb(65,"rect",127),i.Rb(66,"rect",128),i.Rb(67,"rect",129),i.Rb(68,"path",130),i.Rb(69,"path",72),i.Vb(),i.Wb(70,"g",73),i.Rb(71,"path",131),i.Rb(72,"path",132),i.Rb(73,"path",133),i.Rb(74,"path",134),i.Rb(75,"path",135),i.Rb(76,"path",136),i.Rb(77,"path",80),i.Rb(78,"path",81),i.Rb(79,"path",137),i.Rb(80,"path",83),i.Rb(81,"path",138),i.Rb(82,"circle",85),i.Rb(83,"circle",86),i.Vb(),i.Rb(84,"path",139),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Rb(85,"path",140),i.Rb(86,"path",141),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.gc(),i.Wb(87,"div",30),i.Wb(88,"mat-card-title"),i.Hc(89,"Step 2: Send payment out"),i.Vb(),i.Vb(),i.Wb(90,"div",31),i.Wb(91,"mat-card-subtitle",32),i.Hc(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.pc("@sliderAnimation",a.animationDirection),i.Db(1),i.pc("ngClass",i.uc(2,Le,a.screenSize===a.screenSizeEnum.XS,a.screenSize!==a.screenSizeEnum.XS))}}function Re(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",6),i.ec("swipe",(function(e){return i.yc(n),i.ic().onSwipe(e)})),i.hc(),i.Wb(1,"svg",142),i.Wb(2,"desc"),i.Hc(3,"Created with Sketch."),i.Vb(),i.Wb(4,"g",90),i.Wb(5,"g",143),i.Wb(6,"g",144),i.Wb(7,"g"),i.Wb(8,"g",145),i.Wb(9,"g",146),i.Rb(10,"circle",12),i.Rb(11,"path",147),i.Vb(),i.Wb(12,"g",14),i.Rb(13,"ellipse",148),i.Rb(14,"ellipse",16),i.Rb(15,"rect",17),i.Rb(16,"rect",18),i.Rb(17,"rect",19),i.Rb(18,"rect",20),i.Rb(19,"rect",21),i.Rb(20,"rect",22),i.Rb(21,"rect",23),i.Rb(22,"rect",24),i.Rb(23,"rect",25),i.Rb(24,"rect",26),i.Rb(25,"rect",27),i.Rb(26,"rect",28),i.Rb(27,"rect",29),i.Vb(),i.Vb(),i.Wb(28,"g",149),i.Rb(29,"polygon",150),i.Rb(30,"polygon",99),i.Rb(31,"path",151),i.Vb(),i.Wb(32,"g",152),i.Rb(33,"polygon",102),i.Rb(34,"path",103),i.Rb(35,"rect",104),i.Rb(36,"path",105),i.Rb(37,"rect",106),i.Rb(38,"rect",107),i.Rb(39,"rect",108),i.Rb(40,"rect",109),i.Rb(41,"circle",110),i.Rb(42,"path",111),i.Wb(43,"g",112),i.Wb(44,"g",113),i.Rb(45,"g",114),i.Vb(),i.Rb(46,"g",115),i.Vb(),i.Vb(),i.Vb(),i.Rb(47,"path",153),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.gc(),i.Wb(48,"div",30),i.Wb(49,"mat-card-title"),i.Hc(50,"Step 3: Recieve Funds Off-chain"),i.Vb(),i.Vb(),i.Wb(51,"div",31),i.Wb(52,"mat-card-subtitle",32),i.Hc(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.pc("@sliderAnimation",a.animationDirection),i.Db(1),i.pc("ngClass",i.uc(2,Le,a.screenSize===a.screenSizeEnum.XS,a.screenSize!==a.screenSizeEnum.XS))}}function ke(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",6),i.ec("swipe",(function(e){return i.yc(n),i.ic().onSwipe(e)})),i.hc(),i.Wb(1,"svg",154),i.Wb(2,"desc"),i.Hc(3,"Created with Sketch."),i.Vb(),i.Wb(4,"defs"),i.Wb(5,"linearGradient",34),i.Rb(6,"stop",35),i.Rb(7,"stop",36),i.Rb(8,"stop",37),i.Vb(),i.Vb(),i.Wb(9,"g",90),i.Wb(10,"g",155),i.Wb(11,"g",156),i.Wb(12,"g",157),i.Wb(13,"g",158),i.Wb(14,"g",40),i.Rb(15,"rect",159),i.Rb(16,"rect",160),i.Rb(17,"rect",161),i.Rb(18,"circle",162),i.Rb(19,"rect",163),i.Rb(20,"rect",164),i.Rb(21,"circle",165),i.Rb(22,"rect",166),i.Rb(23,"rect",167),i.Rb(24,"rect",168),i.Rb(25,"rect",169),i.Rb(26,"circle",170),i.Rb(27,"circle",171),i.Vb(),i.Wb(28,"g",172),i.Rb(29,"path",173),i.Rb(30,"rect",174),i.Rb(31,"polygon",175),i.Rb(32,"circle",176),i.Rb(33,"path",177),i.Rb(34,"rect",178),i.Rb(35,"rect",179),i.Rb(36,"rect",180),i.Rb(37,"rect",181),i.Rb(38,"rect",182),i.Rb(39,"rect",183),i.Rb(40,"rect",184),i.Rb(41,"path",185),i.Rb(42,"path",186),i.Vb(),i.Rb(43,"path",187),i.Vb(),i.Vb(),i.Rb(44,"circle",188),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.gc(),i.Wb(45,"div",30),i.Wb(46,"mat-card-title"),i.Hc(47,"Done!"),i.Vb(),i.Vb(),i.Wb(48,"div",31),i.Wb(49,"mat-card-subtitle",32),i.Hc(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. "),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.pc("@sliderAnimation",a.animationDirection),i.Db(1),i.pc("ngClass",i.uc(2,Le,a.screenSize===a.screenSizeEnum.XS,a.screenSize!==a.screenSizeEnum.XS))}}var Ie=function(){function e(e){this.commonService=e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new i.o,this.screenSize="",this.screenSizeEnum=g.o}return e.prototype.ngOnInit=function(){this.screenSize=this.commonService.getScreenSize()},e.prototype.onSwipe=function(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))},e.\u0275fac=function(t){return new(t||e)(i.Qb(h.a))},e.\u0275cmp=i.Kb({type:e,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,t){if(1&e&&(i.Fc(0,We,1,0,"ng-container",0),i.Fc(1,De,32,5,"ng-template",null,1,i.Gc),i.Fc(3,Se,66,5,"ng-template",null,2,i.Gc),i.Fc(5,_e,93,5,"ng-template",null,3,i.Gc),i.Fc(7,Re,54,5,"ng-template",null,4,i.Gc),i.Fc(9,ke,51,5,"ng-template",null,5,i.Gc)),2&e){var n=i.wc(2),a=i.wc(4),o=i.wc(6),r=i.wc(8),c=i.wc(10);i.pc("ngTemplateOutlet",1===t.stepNumber?n:2===t.stepNumber?a:3===t.stepNumber?o:4===t.stepNumber?r:c)}},directives:[a.s,x.c,x.a,x.b,a.l,V.a,W.f,W.e],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:[he]}}),e}(),He=["stepper"];function Te(e,t){if(1&e&&(i.Wb(0,"div",47),i.Wb(1,"p",48),i.Wb(2,"strong"),i.Hc(3,"Channel Peer:\xa0"),i.Vb(),i.Hc(4),i.jc(5,"titlecase"),i.Vb(),i.Wb(6,"p",49),i.Wb(7,"strong"),i.Hc(8,"Channel ID:\xa0"),i.Vb(),i.Hc(9),i.Vb(),i.Rb(10,"p",49),i.Vb()),2&e){var n=i.ic(2);i.Db(4),i.Ic(i.kc(5,2,n.channel.remote_alias)),i.Db(5),i.Ic(n.channel.chan_id)}}function Ae(e,t){if(1&e&&i.Hc(0),2&e){var n=i.ic(2);i.Ic(n.inputFormLabel)}}function Oe(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Amount is required."),i.Vb())}function Pe(e,t){if(1&e&&(i.Wb(0,"mat-error"),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.Jc("Amount must be greater than or equal to ",i.kc(2,1,n.minQuote.amount),".")}}function Me(e,t){if(1&e&&(i.Wb(0,"mat-error"),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.Jc("Amount must be less than or equal to ",i.kc(2,1,n.maxQuote.amount),".")}}function Ee(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Confirmation target is required."),i.Vb())}function Ge(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Confirmation target must be a positive number."),i.Vb())}function Ne(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Percentage is required."),i.Vb())}function ze(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Percentage must be a positive number."),i.Vb())}function Be(e,t){if(1&e&&(i.Wb(0,"mat-error"),i.Hc(1),i.Vb()),2&e){var n=i.ic(3);i.Db(1),i.Jc("Percentage must be less than or equal to ",n.maxRoutingFeePercentage,".")}}function qe(e,t){if(1&e&&(i.Wb(0,"mat-form-field",49),i.Rb(1,"input",50),i.Fc(2,Ne,2,0,"mat-error",25),i.Fc(3,ze,2,0,"mat-error",25),i.Fc(4,Be,2,1,"mat-error",25),i.Vb()),2&e){var n=i.ic(2);i.Db(2),i.pc("ngIf",null==n.inputFormGroup.controls.routingFeePercent.errors?null:n.inputFormGroup.controls.routingFeePercent.errors.required),i.Db(1),i.pc("ngIf",null==n.inputFormGroup.controls.routingFeePercent.errors?null:n.inputFormGroup.controls.routingFeePercent.errors.min),i.Db(1),i.pc("ngIf",null==n.inputFormGroup.controls.routingFeePercent.errors?null:n.inputFormGroup.controls.routingFeePercent.errors.max)}}function Ue(e,t){1&e&&(i.Wb(0,"mat-slide-toggle",51),i.Hc(1,"Fast"),i.Vb())}function je(e,t){if(1&e&&i.Hc(0),2&e){var n=i.ic(2);i.Ic(n.quoteFormLabel)}}function Qe(e,t){1&e&&(i.Wb(0,"button",52),i.Hc(1,"Next"),i.Vb())}function Xe(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",53),i.ec("click",(function(){return i.yc(n),i.ic(2).onLoop()})),i.Hc(1),i.Vb()}if(2&e){var a=i.ic(2);i.Db(1),i.Jc("Initiate ",a.loopDirectionCaption,"")}}function $e(e,t){if(1&e&&i.Hc(0),2&e){var n=i.ic(3);i.Ic(n.addressFormLabel)}}function Je(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Address is required."),i.Vb())}function Ze(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-step",16),i.Wb(1,"form",17),i.Fc(2,$e,1,1,"ng-template",18),i.Wb(3,"div",54),i.Wb(4,"mat-radio-group",55),i.ec("change",(function(e){return i.yc(n),i.ic(2).onAddressTypeChange(e)})),i.Wb(5,"mat-radio-button",56),i.Hc(6,"Node Local Address"),i.Vb(),i.Wb(7,"mat-radio-button",57),i.Hc(8,"External Address"),i.Vb(),i.Vb(),i.Wb(9,"mat-form-field",58),i.Rb(10,"input",59),i.Fc(11,Je,2,0,"mat-error",25),i.Vb(),i.Vb(),i.Wb(12,"div",29),i.Wb(13,"button",60),i.ec("click",(function(){return i.yc(n),i.ic(2).onLoop()})),i.Hc(14),i.Vb(),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic(2);i.pc("stepControl",a.addressFormGroup)("editable",a.flgEditable),i.Db(1),i.pc("formGroup",a.addressFormGroup),i.Db(9),i.pc("required","external"===a.addressFormGroup.controls.addressType.value),i.Db(1),i.pc("ngIf",null==a.addressFormGroup.controls.address.errors?null:a.addressFormGroup.controls.address.errors.required),i.Db(3),i.Jc("Initiate ",a.loopDirectionCaption,"")}}function Ke(e,t){if(1&e&&i.Hc(0),2&e){var n=i.ic(2);i.Jc("",n.loopDirectionCaption," Status")}}function Ye(e,t){if(1&e&&(i.Wb(0,"mat-icon",61),i.Hc(1),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.Ic(n.loopStatus&&null!=n.loopStatus&&n.loopStatus.id_bytes?"check":"close")}}function et(e,t){1&e&&i.Rb(0,"div")}function tt(e,t){1&e&&i.Rb(0,"mat-progress-bar",62)}function nt(e,t){if(1&e&&(i.Wb(0,"h4",63),i.Hc(1),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.Ic(n.loopStatus&&n.loopStatus.error?n.loopDirectionCaption+" failed.":n.loopStatus&&n.loopStatus.id_bytes&&n.channel?n.loopDirectionCaption+" request placed successfully. Go to loop to check it's status.":n.loopDirectionCaption+" request placed successfully.")}}function at(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",64),i.ec("click",(function(){return i.yc(n),i.ic(2).goToLoop()})),i.Hc(1,"Check Status"),i.Vb()}}function ot(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",65),i.ec("click",(function(){return i.yc(n),i.ic(2).onRestart()})),i.Hc(1,"Start Again"),i.Vb()}}function it(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",3),i.Wb(1,"div",4),i.Wb(2,"mat-card-header",5),i.Wb(3,"div",6),i.Wb(4,"span",7),i.Hc(5),i.Vb(),i.Vb(),i.Wb(6,"div",8),i.Wb(7,"button",9),i.ec("click",(function(){return i.yc(n),i.ic().showInfo()})),i.Hc(8,"?"),i.Vb(),i.Wb(9,"button",10),i.ec("click",(function(){return i.yc(n),i.ic().onClose()})),i.Hc(10,"X"),i.Vb(),i.Vb(),i.Vb(),i.Wb(11,"mat-card-content",11),i.Wb(12,"div",12),i.Fc(13,Te,11,4,"div",13),i.Wb(14,"mat-vertical-stepper",14,15),i.ec("selectionChange",(function(e){return i.yc(n),i.ic().stepSelectionChanged(e)})),i.Wb(16,"mat-step",16),i.Wb(17,"form",17),i.Fc(18,Ae,1,1,"ng-template",18),i.Wb(19,"div",19),i.Rb(20,"rtl-loop-quote",20),i.Rb(21,"rtl-loop-quote",20),i.Vb(),i.Wb(22,"div",21),i.Wb(23,"mat-form-field",22),i.Rb(24,"input",23),i.Wb(25,"mat-hint"),i.Hc(26),i.jc(27,"number"),i.jc(28,"number"),i.Vb(),i.Wb(29,"span",24),i.Hc(30,"Sats"),i.Vb(),i.Fc(31,Oe,2,0,"mat-error",25),i.Fc(32,Pe,3,3,"mat-error",25),i.Fc(33,Me,3,3,"mat-error",25),i.Vb(),i.Wb(34,"mat-form-field",22),i.Rb(35,"input",26),i.Fc(36,Ee,2,0,"mat-error",25),i.Fc(37,Ge,2,0,"mat-error",25),i.Vb(),i.Fc(38,qe,5,3,"mat-form-field",27),i.Fc(39,Ue,2,0,"mat-slide-toggle",28),i.Vb(),i.Wb(40,"div",29),i.Wb(41,"button",30),i.ec("click",(function(){return i.yc(n),i.ic().onEstimateQuote()})),i.Hc(42,"Estimate Quote"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Wb(43,"mat-step",16),i.Wb(44,"form",17),i.Fc(45,je,1,1,"ng-template",18),i.Rb(46,"rtl-loop-quote",31),i.Wb(47,"div",29),i.Fc(48,Qe,2,0,"button",32),i.Fc(49,Xe,2,1,"button",33),i.Vb(),i.Vb(),i.Vb(),i.Fc(50,Ze,15,6,"mat-step",34),i.Wb(51,"mat-step",35),i.Wb(52,"form",17),i.Fc(53,Ke,1,1,"ng-template",18),i.Wb(54,"div",36),i.Wb(55,"mat-expansion-panel",37),i.Wb(56,"mat-expansion-panel-header"),i.Wb(57,"mat-panel-title"),i.Wb(58,"span",38),i.Hc(59),i.Fc(60,Ye,2,1,"mat-icon",39),i.Vb(),i.Vb(),i.Vb(),i.Fc(61,et,1,0,"div",40),i.Vb(),i.Fc(62,tt,1,0,"mat-progress-bar",41),i.Vb(),i.Fc(63,nt,2,1,"h4",42),i.Wb(64,"div",29),i.Fc(65,at,2,0,"button",43),i.Fc(66,ot,2,0,"button",44),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Wb(67,"div",45),i.Wb(68,"button",46),i.Hc(69,"Close"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic(),o=i.wc(2);i.pc("@opacityAnimation",void 0),i.Db(3),i.pc("fxFlex",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM?"83":"91"),i.Db(2),i.Ic(a.channel?"Channel "+a.loopDirectionCaption:a.loopDirectionCaption),i.Db(1),i.pc("fxFlex",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM?"17":"9"),i.Db(7),i.pc("ngIf",a.channel),i.Db(1),i.pc("linear",!0),i.Db(2),i.pc("stepControl",a.inputFormGroup)("editable",a.flgEditable),i.Db(1),i.pc("formGroup",a.inputFormGroup),i.Db(3),i.pc("quote",a.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),i.Db(1),i.pc("quote",a.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),i.Db(2),i.pc("fxFlex",a.direction===a.swapTypeEnum.LOOP_OUT?"30":"48"),i.Db(3),i.Kc("Range: ",i.kc(27,48,a.minQuote.amount),"-",i.kc(28,50,a.maxQuote.amount),""),i.Db(5),i.pc("ngIf",null==a.inputFormGroup.controls.amount.errors?null:a.inputFormGroup.controls.amount.errors.required),i.Db(1),i.pc("ngIf",null==a.inputFormGroup.controls.amount.errors?null:a.inputFormGroup.controls.amount.errors.min),i.Db(1),i.pc("ngIf",null==a.inputFormGroup.controls.amount.errors?null:a.inputFormGroup.controls.amount.errors.max),i.Db(1),i.pc("fxFlex",a.direction===a.swapTypeEnum.LOOP_OUT?"20":"48"),i.Db(2),i.pc("ngIf",null==a.inputFormGroup.controls.sweepConfTarget.errors?null:a.inputFormGroup.controls.sweepConfTarget.errors.required),i.Db(1),i.pc("ngIf",null==a.inputFormGroup.controls.sweepConfTarget.errors?null:a.inputFormGroup.controls.sweepConfTarget.errors.min),i.Db(1),i.pc("ngIf",a.direction===a.swapTypeEnum.LOOP_OUT),i.Db(1),i.pc("ngIf",a.direction===a.swapTypeEnum.LOOP_OUT),i.Db(4),i.pc("stepControl",a.quoteFormGroup)("editable",a.flgEditable),i.Db(1),i.pc("formGroup",a.quoteFormGroup),i.Db(2),i.pc("quote",a.quote)("showPanel",!1),i.Db(2),i.pc("ngIf",a.direction===a.swapTypeEnum.LOOP_OUT),i.Db(1),i.pc("ngIf",a.direction===a.swapTypeEnum.LOOP_IN),i.Db(1),i.pc("ngIf",a.direction===a.swapTypeEnum.LOOP_OUT),i.Db(1),i.pc("stepControl",a.statusFormGroup),i.Db(1),i.pc("formGroup",a.statusFormGroup),i.Db(3),i.pc("expanded",a.loopStatus),i.Db(4),i.Ic(a.loopStatus?a.loopStatus.id_bytes?a.loopDirectionCaption+" request details":a.loopDirectionCaption+" error details":"Waiting for "+a.loopDirectionCaption+" request..."),i.Db(1),i.pc("ngIf",a.loopStatus),i.Db(1),i.pc("ngIf",!a.loopStatus)("ngIfElse",o),i.Db(1),i.pc("ngIf",!a.loopStatus),i.Db(1),i.pc("ngIf",a.loopStatus),i.Db(2),i.pc("ngIf",a.loopStatus&&a.loopStatus.id_bytes&&a.channel),i.Db(1),i.pc("ngIf",a.loopStatus&&(a.loopStatus.error||!a.loopStatus.id_bytes)),i.Db(2),i.pc("mat-dialog-close",!1)}}function rt(e,t){if(1&e&&i.Rb(0,"rtl-loop-status",66),2&e){var n=i.ic();i.pc("loopStatus",n.loopStatus)}}function ct(e,t){if(1&e){var n=i.Xb();i.Wb(0,"rtl-loop-out-info-graphics",84),i.ec("stepNumberChange",(function(e){return i.yc(n),i.ic(2).stepNumber=e})),i.Vb()}if(2&e){var a=i.ic(2);i.pc("stepNumber",a.stepNumber)("animationDirection",a.animationDirection)}}function lt(e,t){if(1&e){var n=i.Xb();i.Wb(0,"rtl-loop-in-info-graphics",84),i.ec("stepNumberChange",(function(e){return i.yc(n),i.ic(2).stepNumber=e})),i.Vb()}if(2&e){var a=i.ic(2);i.pc("stepNumber",a.stepNumber)("animationDirection",a.animationDirection)}}var st=function(e,t){return{"dot-primary":e,"dot-primary-lighter":t}};function bt(e,t){if(1&e){var n=i.Xb();i.Wb(0,"span",85),i.ec("click",(function(){i.yc(n);var e=t.$implicit;return i.ic(2).onStepChanged(e)})),i.Rb(1,"p",86),i.Vb()}if(2&e){var a=t.$implicit,o=i.ic(2);i.Db(1),i.pc("ngClass",i.uc(1,st,o.stepNumber===a,o.stepNumber!==a))}}function ut(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",87),i.ec("click",(function(){return i.yc(n),i.ic(2).onReadMore()})),i.Hc(1,"Read More"),i.Vb()}}function pt(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",88),i.ec("click",(function(){return i.yc(n),i.ic(2).onStepChanged(4)})),i.Hc(1,"Back"),i.Vb()}}function dt(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",89),i.ec("click",(function(){i.yc(n);var e=i.ic(2);return e.flgShowInfo=!1,e.stepNumber=1})),i.Hc(1,"Close"),i.Vb()}}function mt(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",90),i.ec("click",(function(){i.yc(n);var e=i.ic(2);return e.flgShowInfo=!1,e.stepNumber=1})),i.Hc(1,"Close"),i.Vb()}}function ft(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",91),i.ec("click",(function(){i.yc(n);var e=i.ic(2);return e.onStepChanged(e.stepNumber-1)})),i.Hc(1,"Back"),i.Vb()}}function ht(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",92),i.ec("click",(function(){i.yc(n);var e=i.ic(2);return e.onStepChanged(e.stepNumber+1)})),i.Hc(1,"Next"),i.Vb()}}var gt=function(){return[1,2,3,4,5]};function yt(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",67),i.Wb(1,"div",68),i.Wb(2,"mat-card-header",69),i.Wb(3,"div",70),i.Rb(4,"span",7),i.Vb(),i.Wb(5,"div",71),i.Wb(6,"button",72),i.ec("click",(function(){i.yc(n);var e=i.ic();return e.flgShowInfo=!1,e.stepNumber=1})),i.Hc(7,"X"),i.Vb(),i.Vb(),i.Vb(),i.Wb(8,"mat-card-content",73),i.Fc(9,ct,1,2,"rtl-loop-out-info-graphics",74),i.Fc(10,lt,1,2,"rtl-loop-in-info-graphics",74),i.Vb(),i.Wb(11,"div",75),i.Fc(12,bt,2,4,"span",76),i.Vb(),i.Wb(13,"div",77),i.Fc(14,ut,2,0,"button",78),i.Fc(15,pt,2,0,"button",79),i.Fc(16,dt,2,0,"button",80),i.Fc(17,mt,2,0,"button",81),i.Fc(18,ft,2,0,"button",82),i.Fc(19,ht,2,0,"button",83),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.pc("@opacityAnimation",void 0),i.Db(9),i.pc("ngIf",a.direction===a.swapTypeEnum.LOOP_OUT),i.Db(1),i.pc("ngIf",a.direction===a.swapTypeEnum.LOOP_IN),i.Db(2),i.pc("ngForOf",i.sc(10,gt)),i.Db(2),i.pc("ngIf",5===a.stepNumber),i.Db(1),i.pc("ngIf",5===a.stepNumber),i.Db(1),i.pc("ngIf",5===a.stepNumber),i.Db(1),i.pc("ngIf",a.stepNumber<5),i.Db(1),i.pc("ngIf",a.stepNumber>1&&a.stepNumber<5),i.Db(1),i.pc("ngIf",a.stepNumber<5)}}var Ct=function(){function e(e,t,n,a,o,i,r,c,l){this.dialogRef=e,this.data=t,this.store=n,this.loopService=a,this.formBuilder=o,this.decimalPipe=i,this.logger=r,this.router=c,this.commonService=l,this.faInfoCircle=m.s,this.swapTypeEnum=g.q,this.direction=g.q.LOOP_OUT,this.loopDirectionCaption="Loop out",this.loopStatus=null,this.inputFormLabel="Amount to loop out",this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address",this.maxRoutingFeePercentage=2,this.prepayRoutingFee=36,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=g.o,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){this.screenSize=this.commonService.getScreenSize(),this.channel=this.data.channel,this.minQuote=this.data.minQuote?this.data.minQuote:{},this.maxQuote=this.data.maxQuote?this.data.maxQuote:{},this.direction=this.data.direction,this.loopDirectionCaption=this.direction===g.q.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[U.s.required,U.s.min(this.minQuote.amount),U.s.max(this.maxQuote.amount)]],sweepConfTarget:[6,[U.s.required,U.s.min(1)]],routingFeePercent:[this.maxRoutingFeePercentage,[U.s.required,U.s.min(0),U.s.max(this.maxRoutingFeePercentage)]],fast:[!1,[U.s.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[U.s.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()},e.prototype.ngAfterViewInit=function(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===g.q.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})},e.prototype.onFormValueChanges=function(){var e=this;this.inputFormGroup.valueChanges.pipe(Object(u.a)(this.unSubs[4])).subscribe((function(t){e.inputFormGroup.setErrors({Invalid:!0})})),this.direction===g.q.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe(Object(u.a)(this.unSubs[5])).subscribe((function(t){e.addressFormGroup.setErrors({Invalid:!0})}))},e.prototype.onAddressTypeChange=function(e){"external"===e.value?(this.addressFormGroup.controls.address.setValidators([U.s.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})},e.prototype.onLoop=function(){var e=this;if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===g.q.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0||this.inputFormGroup.controls.routingFeePercent.value>this.maxRoutingFeePercentage)||this.direction===g.q.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===g.q.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+this.quote.swap_fee_sat,+this.quote.htlc_publish_fee_sat,"",!0).pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.loopStatus=t,e.store.dispatch(new y.J),e.flgEditable=!0}),(function(t){e.loopStatus={error:t.error.error?t.error.error:t.error?t.error:t},e.flgEditable=!0,e.logger.error(t)}));else{var t=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),n="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",a=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.loopService.loopOut(this.inputFormGroup.controls.amount.value,this.channel&&this.channel.chan_id?this.channel.chan_id:"",this.inputFormGroup.controls.sweepConfTarget.value,t,+this.quote.htlc_sweep_fee_sat,this.prepayRoutingFee,+this.quote.prepay_amt_sat,+this.quote.swap_fee_sat,a,n).pipe(Object(u.a)(this.unSubs[1])).subscribe((function(t){e.loopStatus=t,e.store.dispatch(new y.J),e.flgEditable=!0}),(function(t){e.loopStatus={error:t.error.error?t.error.error:t.error?t.error:t},e.flgEditable=!0,e.logger.error(t)}))}},e.prototype.onEstimateQuote=function(){var e=this;if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;this.store.dispatch(new J.F("Getting Quotes..."));var t=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===g.q.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,t).pipe(Object(u.a)(this.unSubs[2])).subscribe((function(t){e.store.dispatch(new J.i),e.quote=t,e.quote.off_chain_swap_routing_fee_percentage=e.inputFormGroup.controls.routingFeePercent.value?e.inputFormGroup.controls.routingFeePercent.value:2})):this.loopService.getLoopOutQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,t).pipe(Object(u.a)(this.unSubs[3])).subscribe((function(t){e.store.dispatch(new J.i),e.quote=t,e.quote.off_chain_swap_routing_fee_percentage=e.inputFormGroup.controls.routingFeePercent.value?e.inputFormGroup.controls.routingFeePercent.value:2})),this.stepper.selected.stepControl.setErrors(null),this.stepper.next()},e.prototype.stepSelectionChanged=function(e){switch(e.selectedIndex){case 0:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===g.q.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===g.q.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel=this.quote&&this.quote.swap_fee_sat&&(this.quote.htlc_sweep_fee_sat||this.quote.htlc_publish_fee_sat)&&this.quote.prepay_amt_sat?"Quote confirmed | Estimated Fees: "+this.decimalPipe.transform(+this.quote.swap_fee_sat+ +(this.quote.htlc_sweep_fee_sat?this.quote.htlc_sweep_fee_sat:this.quote.htlc_publish_fee_sat?this.quote.htlc_publish_fee_sat:0))+" Sats":"Quote confirmed",this.addressFormLabel=this.addressFormGroup.controls.addressType.value?"Withdrawal Address | Type: "+this.addressFormGroup.controls.addressType.value:"Withdrawal Address";break;default:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address"}(this.direction===g.q.LOOP_OUT&&1!==e.selectedIndex&&e.selectedIndex0?(n.remote_balance-0||0)/a.totalLiquidity*100:0)}}function Vt(e,t){if(1&e&&i.Rb(0,"mat-progress-bar",23),2&e){var n=i.ic().$implicit,a=i.ic(2);i.qc("value",a.totalLiquidity>0?(n.local_balance-0||0)/a.totalLiquidity*100:0)}}function Wt(e,t){if(1&e&&(i.Wb(0,"div",12),i.Wb(1,"span",13),i.Hc(2),i.jc(3,"slice"),i.Vb(),i.Wb(4,"div",14),i.Fc(5,vt,5,3,"mat-hint",15),i.Fc(6,xt,5,4,"mat-hint",16),i.Fc(7,wt,2,0,"button",17),i.Vb(),i.Fc(8,Ft,1,1,"mat-progress-bar",18),i.Fc(9,Vt,1,1,"mat-progress-bar",18),i.Vb()),2&e){var n=t.$implicit,a=i.ic(2);i.Db(1),i.qc("matTooltip",n.remote_alias||n.remote_pubkey),i.qc("matTooltipDisabled",(n.remote_alias||n.remote_pubkey).length<26),i.Db(1),i.Kc("",i.mc(3,9,n.remote_alias||n.remote_pubkey,0,24),"",(n.remote_alias||n.remote_pubkey).length>25?"...":"",""),i.Db(3),i.pc("ngIf","In"===a.direction),i.Db(1),i.pc("ngIf","Out"===a.direction),i.Db(1),i.pc("ngIf",a.showLoop&&"Out"===a.direction),i.Db(1),i.pc("ngIf","In"===a.direction),i.Db(1),i.pc("ngIf","Out"===a.direction)}}function Lt(e,t){if(1&e&&(i.Wb(0,"div",10),i.Fc(1,Wt,10,13,"div",11),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngForOf",n.allChannels)}}function Dt(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",26),i.ec("click",(function(){return i.yc(n),i.ic(2).goToChannels()})),i.Hc(1,"Open Channel"),i.Vb()}}function St(e,t){if(1&e&&(i.Wb(0,"div",24),i.Hc(1," No channels available. "),i.Fc(2,Dt,2,0,"button",25),i.Vb()),2&e){var n=i.ic();i.Db(2),i.pc("ngIf","Out"===n.direction)}}var _t=function(){function e(e,t,n){this.router=e,this.loopService=t,this.store=n,this.targetConf=6,this.unSubs=[new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.showLoop=!(!t.nodeSettings.swapServerUrl||""===t.nodeSettings.swapServerUrl.trim())}))},e.prototype.goToChannels=function(){this.router.navigateByUrl("/lnd/peerschannels")},e.prototype.onLoopOut=function(e){var t=this;this.store.dispatch(new J.F("Getting Terms and Quotes...")),this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe(Object(u.a)(this.unSubs[1])).subscribe((function(n){t.store.dispatch(new J.i),t.store.dispatch(new J.C({minHeight:"56rem",data:{channel:e,minQuote:n[0],maxQuote:n[1],direction:g.q.LOOP_OUT,component:Ct}}))}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(o.f),i.Qb($.a),i.Qb(C.h))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels"},decls:14,vars:5,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["perfectScrollbar","",1,"channels-capacity-scroll"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["fxLayout","column","fxFlex","100"],["class","mt-2","fxLayout","column","fxLayoutAlign","start stretch",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled"],["fxLayout","row","fxLayoutAlign","space-between stretch",1,"w-100"],["fxFlex","100","fxLayoutAlign","start center","class","font-size-90 color-primary",4,"ngIf"],["fxLayoutAlign","start center","class","font-size-90 color-primary",3,"fxFlex",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center end","class","button-link-dashboard","color","primary","fxFlex","15","mat-button","","aria-label","Loop Out",3,"click",4,"ngIf"],["fxFlex","100","class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["fxLayoutAlign","start center",1,"font-size-90","color-primary",3,"fxFlex"],["fxLayout","column","fxLayoutAlign","center end","color","primary","fxFlex","15","mat-button","","aria-label","Loop Out",1,"button-link-dashboard",3,"click"],["fxFlex","100","mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"]],template:function(e,t){if(1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Wb(2,"span",2),i.Hc(3,"Total Capacity"),i.Vb(),i.Wb(4,"mat-hint",3),i.Hc(5),i.jc(6,"number"),i.Vb(),i.Rb(7,"mat-progress-bar",4),i.Vb(),i.Wb(8,"div",5),i.Rb(9,"mat-divider",6),i.Vb(),i.Wb(10,"div",7),i.Fc(11,Lt,2,1,"div",8),i.Vb(),i.Vb(),i.Fc(12,St,3,1,"ng-template",null,9,i.Gc)),2&e){var n=i.wc(13);i.Db(5),i.Jc("",i.kc(6,3,t.totalLiquidity)," Sats"),i.Db(6),i.pc("ngIf",t.allChannels&&t.allChannels.length>0)("ngIfElse",n)}},directives:[x.c,x.b,x.a,A.f,r.a,P.a,M.b,a.n,a.m,O.a,D.a],pipes:[a.e,a.v],styles:[""]}),e}(),Rt=n("VkXI"),kt=n("mrSG"),It=n("kfqd"),Ht=n("BqIw"),Tt=n("JeCn"),At=n("B0X+"),Ot=n("8KZq"),Pt=n("eO+G");function Mt(e,t){if(1&e&&(i.Wb(0,"mat-option",24),i.Hc(1),i.jc(2,"titlecase"),i.Vb()),2&e){var n=t.$implicit;i.pc("value",n),i.Db(1),i.Ic(i.kc(2,2,n))}}function Et(e,t){if(1&e&&(i.Wb(0,"span"),i.Hc(1),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.Ic(n.invoiceError)}}function Gt(e,t){if(1&e&&(i.Wb(0,"div",25),i.Rb(1,"fa-icon",26),i.Fc(2,Et,2,1,"span",27),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("icon",n.faExclamationTriangle),i.Db(1),i.pc("ngIf",""!==n.invoiceError)}}var Nt=function(){function e(e,t,n,a,o,i){this.dialogRef=e,this.data=t,this.store=n,this.decimalPipe=a,this.commonService=o,this.actions$=i,this.faExclamationTriangle=m.n,this.selNode={},this.memo="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=g.m,this.timeUnitEnum=g.t,this.timeUnits=g.r,this.selTimeUnit=g.t.SECS,this.invoiceError="",this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.pageSize=this.data.pageSize,this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.selNode=t.nodeSettings,e.information=t.information})),this.actions$.pipe(Object(u.a)(this.unSubs[1]),Object(p.a)((function(e){return e.type===y.m||e.type===y.u}))).subscribe((function(t){t.type===y.u&&e.dialogRef.close(),t.type===y.m&&"SaveNewInvoice"===t.payload.action&&(e.invoiceError=t.payload.message)}))},e.prototype.onAddInvoice=function(e){this.invoiceError="";var t=this.expiry?this.expiry:3600;this.selTimeUnit!==g.t.SECS&&(t=this.commonService.convertTime(this.expiry,this.selTimeUnit,g.t.SECS)),this.store.dispatch(new J.F("Adding Invoice...")),this.store.dispatch(new y.Tb({memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:t,pageSize:this.pageSize,openModal:!0}))},e.prototype.resetData=function(){this.memo="",this.invoiceValue=void 0,this.private=!1,this.expiry=void 0,this.invoiceValueHint="",this.selTimeUnit=g.t.SECS,this.invoiceError=""},e.prototype.onInvoiceValueChange=function(){var e=this;this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,g.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(u.a)(this.unSubs[2])).subscribe((function(t){e.invoiceValueHint="= "+t.symbol+e.decimalPipe.transform(t.OTHER,g.f.OTHER)+" "+t.unit})))},e.prototype.onTimeUnitChange=function(e){this.expiry&&this.selTimeUnit!==e.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,e.value)),this.selTimeUnit=e.value},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(j.f),i.Qb(j.a),i.Qb(C.h),i.Qb(a.e),i.Qb(h.a),i.Qb(v.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-create-invoices"]],decls:36,vars:15,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"mt-5px"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","autoFocus","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","50","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","step","100","min","1","tabindex","2","name","invoiceValue",3,"ngModel","ngModelChange","keyup"],["matSuffix",""],["fxFlex","24","fxLayoutAlign","start end"],["matInput","","placeholder","Expiry","type","number","min","1","tabindex","3","name","expiry",3,"ngModel","step","ngModelChange"],["tabindex","4","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","matTooltip","Include routing hints for private channels","name","private",3,"ngModel","matTooltipPosition","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","6",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",0),i.Wb(1,"div",1),i.Wb(2,"mat-card-header",2),i.Wb(3,"div",3),i.Wb(4,"span",4),i.Hc(5,"Create Invoice"),i.Vb(),i.Vb(),i.Wb(6,"button",5),i.Hc(7,"X"),i.Vb(),i.Vb(),i.Wb(8,"mat-card-content",6),i.Wb(9,"form",7,8),i.Wb(11,"mat-form-field",9),i.Wb(12,"input",10),i.ec("ngModelChange",(function(e){return t.memo=e})),i.Vb(),i.Vb(),i.Wb(13,"mat-form-field",11),i.Wb(14,"input",12),i.ec("ngModelChange",(function(e){return t.invoiceValue=e}))("keyup",(function(){return t.onInvoiceValueChange()})),i.Vb(),i.Wb(15,"span",13),i.Hc(16),i.Vb(),i.Wb(17,"mat-hint"),i.Hc(18),i.Vb(),i.Vb(),i.Wb(19,"mat-form-field",14),i.Wb(20,"input",15),i.ec("ngModelChange",(function(e){return t.expiry=e})),i.Vb(),i.Wb(21,"span",13),i.Hc(22),i.jc(23,"titlecase"),i.Vb(),i.Vb(),i.Wb(24,"mat-form-field",14),i.Wb(25,"mat-select",16),i.ec("selectionChange",(function(e){return t.onTimeUnitChange(e)})),i.Fc(26,Mt,3,4,"mat-option",17),i.Vb(),i.Vb(),i.Wb(27,"div",18),i.Wb(28,"mat-slide-toggle",19),i.ec("ngModelChange",(function(e){return t.private=e})),i.Hc(29,"Private Routing Hints"),i.Vb(),i.Vb(),i.Fc(30,Gt,3,2,"div",20),i.Wb(31,"div",21),i.Wb(32,"button",22),i.ec("click",(function(){return t.resetData()})),i.Hc(33,"Clear Field"),i.Vb(),i.Wb(34,"button",23),i.ec("click",(function(){i.yc(n);var e=i.wc(10);return t.onAddInvoice(e)})),i.Hc(35,"Create Invoice"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()}2&e&&(i.Db(6),i.pc("mat-dialog-close",!1),i.Db(6),i.pc("ngModel",t.memo),i.Db(2),i.pc("ngModel",t.invoiceValue),i.Db(2),i.Jc(" ",null==t.information?null:t.information.smaller_currency_unit," "),i.Db(2),i.Ic(t.invoiceValueHint),i.Db(2),i.qc("step",t.selTimeUnit===t.timeUnitEnum.SECS?300:t.selTimeUnit===t.timeUnitEnum.MINS?10:t.selTimeUnit===t.timeUnitEnum.HOURS?2:1),i.pc("ngModel",t.expiry),i.Db(2),i.Jc(" ",i.kc(23,13,t.selTimeUnit)," "),i.Db(3),i.pc("value",t.selTimeUnit),i.Db(1),i.pc("ngForOf",t.timeUnits),i.Db(2),i.pc("ngModel",t.private)("matTooltipPosition","above"),i.Db(2),i.pc("ngIf",""!==t.invoiceError))},directives:[x.c,x.a,W.c,x.b,D.a,j.d,W.b,U.t,U.m,U.n,A.c,le.b,U.b,se.a,U.l,U.o,U.p,At.a,A.g,A.f,Ot.a,a.m,be.a,O.a,a.n,Pt.n,w.a],pipes:[a.w],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}(),zt=n("+zbs"),Bt=n("mNcL");function qt(e,t){if(1&e){var n=i.Xb();i.Wb(0,"form",4,5),i.Wb(2,"mat-form-field",6),i.Wb(3,"input",7),i.ec("ngModelChange",(function(e){return i.yc(n),i.ic().memo=e})),i.Vb(),i.Vb(),i.Wb(4,"mat-form-field",8),i.Wb(5,"input",9),i.ec("ngModelChange",(function(e){return i.yc(n),i.ic().invoiceValue=e}))("keyup",(function(){return i.yc(n),i.ic().onInvoiceValueChange()})),i.Vb(),i.Wb(6,"span",10),i.Hc(7),i.Vb(),i.Wb(8,"mat-hint"),i.Hc(9),i.Vb(),i.Vb(),i.Wb(10,"div",11),i.Wb(11,"button",12),i.ec("click",(function(){return i.yc(n),i.ic().resetData()})),i.Hc(12,"Clear Field"),i.Vb(),i.Wb(13,"button",13),i.ec("click",(function(){i.yc(n);var e=i.wc(1);return i.ic().onAddInvoice(e)})),i.Hc(14,"Create Invoice"),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.Db(3),i.pc("ngModel",a.memo),i.Db(2),i.pc("ngModel",a.invoiceValue),i.Db(2),i.Jc(" ",null==a.information?null:a.information.smaller_currency_unit," "),i.Db(2),i.Ic(a.invoiceValueHint)}}function Ut(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",14),i.Wb(1,"button",15),i.ec("click",(function(){return i.yc(n),i.ic().openCreateInvoiceModal()})),i.Hc(2,"Create Invoice"),i.Vb(),i.Vb()}}function jt(e,t){1&e&&i.Rb(0,"mat-progress-bar",46)}function Qt(e,t){1&e&&(i.Wb(0,"th",47),i.Hc(1," Date Created "),i.Vb())}var Xt=function(e){return{"mr-0":e}};function $t(e,t){if(1&e&&i.Rb(0,"span",51),2&e){var n=i.ic(3);i.pc("ngClass",i.tc(1,Xt,n.screenSize===n.screenSizeEnum.XS))}}function Jt(e,t){if(1&e&&i.Rb(0,"span",52),2&e){var n=i.ic(3);i.pc("ngClass",i.tc(1,Xt,n.screenSize===n.screenSizeEnum.XS))}}function Zt(e,t){if(1&e&&(i.Wb(0,"td",48),i.Fc(1,$t,1,3,"span",49),i.Fc(2,Jt,1,3,"span",50),i.Hc(3),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.pc("ngIf",n.settled),i.Db(1),i.pc("ngIf",!n.settled),i.Db(1),i.Jc(" ",n.creation_date_str,"")}}function Kt(e,t){1&e&&(i.Wb(0,"th",53),i.Hc(1," Date Settled "),i.Vb())}function Yt(e,t){if(1&e&&(i.Wb(0,"td",54),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(n.settle_date_str||"-")}}function en(e,t){1&e&&(i.Wb(0,"th",47),i.Hc(1," Memo "),i.Vb())}var tn=function(e){return{"max-width":e}};function nn(e,t){if(1&e&&(i.Wb(0,"td",48),i.Wb(1,"div",55),i.Wb(2,"span",56),i.Hc(3),i.Vb(),i.Vb(),i.Vb()),2&e){var n=t.$implicit,a=i.ic(2);i.Db(1),i.pc("ngStyle",i.tc(2,tn,a.screenSize===a.screenSizeEnum.XS?"10rem":"22rem")),i.Db(2),i.Ic(n.memo)}}function an(e,t){1&e&&(i.Wb(0,"th",57),i.Hc(1," Amount (Sats) "),i.Vb())}function on(e,t){if(1&e&&(i.Wb(0,"td",48),i.Wb(1,"span",58),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Jc(" ",i.kc(3,1,null==n?null:n.value)," ")}}function rn(e,t){1&e&&(i.Wb(0,"th",57),i.Hc(1," Amount Settled (Sats) "),i.Vb())}function cn(e,t){if(1&e&&(i.Wb(0,"td",48),i.Wb(1,"span",58),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Jc(" ",i.kc(3,1,null==n?null:n.amt_paid_sat)," ")}}function ln(e,t){if(1&e){var n=i.Xb();i.Wb(0,"th",59),i.Wb(1,"div",60),i.Wb(2,"mat-select",61),i.Rb(3,"mat-select-trigger"),i.Wb(4,"mat-option",62),i.ec("click",(function(){return i.yc(n),i.ic(2).onDownloadCSV()})),i.Hc(5,"Download CSV"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}}var sn=function(e){return{"pl-3":e}};function bn(e,t){if(1&e){var n=i.Xb();i.Wb(0,"td",63),i.Wb(1,"button",64),i.ec("click",(function(e){i.yc(n);var a=t.$implicit;return i.ic(2).onInvoiceClick(a,e)})),i.Hc(2,"View Info"),i.Vb(),i.Vb()}if(2&e){var a=i.ic(2);i.pc("ngClass",i.tc(1,sn,a.screenSize!==a.screenSizeEnum.XS))}}function un(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"No invoices available."),i.Vb())}function pn(e,t){if(1&e&&(i.Wb(0,"td",65),i.Fc(1,un,2,0,"p",66),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.pc("ngIf",!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)}}var dn=function(e){return{"display-none":e}};function mn(e,t){if(1&e&&i.Rb(0,"tr",67),2&e){var n=i.ic(2);i.pc("ngClass",i.tc(1,dn,(null==n.invoices?null:n.invoices.data)&&(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)>0))}}function fn(e,t){1&e&&i.Rb(0,"tr",68)}function hn(e,t){if(1&e&&i.Rb(0,"tr",69),2&e){var n=t.$implicit,a=i.ic(2);i.pc("@newlyAddedRowAnimation",n.memo==a.newlyAddedInvoiceMemo&&n.value==a.newlyAddedInvoiceValue&&a.flgAnimate?"added":"notAdded")}}var gn=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},yn=function(){return["no_invoice"]};function Cn(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",16),i.Wb(1,"div",17),i.Wb(2,"div",18),i.Rb(3,"fa-icon",19),i.Wb(4,"span",20),i.Hc(5,"Invoices History"),i.Vb(),i.Vb(),i.Wb(6,"mat-form-field",21),i.Wb(7,"input",22),i.ec("keyup",(function(e){return i.yc(n),i.ic().applyFilter(e.target.value)})),i.Vb(),i.Vb(),i.Vb(),i.Wb(8,"div",23),i.Fc(9,jt,1,0,"mat-progress-bar",24),i.Wb(10,"table",25,26),i.Ub(12,27),i.Fc(13,Qt,2,0,"th",28),i.Fc(14,Zt,4,3,"td",29),i.Tb(),i.Ub(15,30),i.Fc(16,Kt,2,0,"th",31),i.Fc(17,Yt,2,1,"td",32),i.Tb(),i.Ub(18,33),i.Fc(19,en,2,0,"th",28),i.Fc(20,nn,4,4,"td",29),i.Tb(),i.Ub(21,34),i.Fc(22,an,2,0,"th",35),i.Fc(23,on,4,3,"td",29),i.Tb(),i.Ub(24,36),i.Fc(25,rn,2,0,"th",35),i.Fc(26,cn,4,3,"td",29),i.Tb(),i.Ub(27,37),i.Fc(28,ln,6,0,"th",38),i.Fc(29,bn,3,3,"td",39),i.Tb(),i.Ub(30,40),i.Fc(31,pn,2,1,"td",41),i.Tb(),i.Fc(32,mn,1,3,"tr",42),i.Fc(33,fn,1,0,"tr",43),i.Fc(34,hn,1,1,"tr",44),i.Vb(),i.Wb(35,"mat-paginator",45),i.ec("page",(function(e){return i.yc(n),i.ic().onPageChange(e)})),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.Db(3),i.pc("icon",a.faHistory),i.Db(6),i.pc("ngIf",!0===a.flgLoading[0]),i.Db(1),i.pc("dataSource",a.invoices)("ngClass",i.tc(12,gn,"error"===a.flgLoading[0])),i.Db(22),i.pc("matFooterRowDef",i.sc(14,yn)),i.Db(1),i.pc("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),i.Db(1),i.pc("matRowDefColumns",a.displayedColumns),i.Db(1),i.pc("length",a.totalInvoices)("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS)}}var vn=function(){function e(e,t,n,a){this.logger=e,this.store=t,this.decimalPipe=n,this.commonService=a,this.showDetails=!0,this.faHistory=m.q,this.selNode={},this.newlyAddedInvoiceMemo=null,this.newlyAddedInvoiceValue=null,this.flgAnimate=!0,this.memo="",this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.information={},this.flgLoading=[!0],this.flgSticky=!1,this.private=!1,this.expiryStep=100,this.totalInvoices=100,this.pageSize=g.m,this.pageSizeOptions=g.n,this.firstOffset=-1,this.lastOffset=-1,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","actions"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["creation_date","value","actions"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","memo","value","actions"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","settle_date","memo","value","amt_paid_sat","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchInvoices"===t.action&&(e.flgLoading[0]="error")})),e.selNode=t.nodeSettings,e.information=t.information,e.totalInvoices=t.totalInvoices,e.firstOffset=+t.invoices.first_index_offset,e.lastOffset=+t.invoices.last_index_offset,e.logger.info(t),e.loadInvoicesTable(t.invoices.invoices?t.invoices.invoices:[]),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.invoices)}))},e.prototype.onAddInvoice=function(e){var t=this.expiry?this.expiry:3600;this.flgAnimate=!0,this.newlyAddedInvoiceMemo=this.memo,this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch(new J.F("Adding Invoice...")),this.store.dispatch(new y.Tb({memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:t,pageSize:this.pageSize,openModal:!0})),this.resetData()},e.prototype.onInvoiceClick=function(e,t){this.store.dispatch(new J.C({data:{invoice:e,newlyAdded:!1,component:zt.a}}))},e.prototype.loadInvoicesTable=function(e){var t=this;this.invoices=new Tt.o(Object(kt.g)(e)),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},setTimeout((function(){t.flgAnimate=!1}),5e3),this.logger.info(this.invoices)},e.prototype.resetData=function(){this.memo="",this.invoiceValue=void 0,this.private=!1,this.expiry=void 0,this.invoiceValueHint=""},e.prototype.applyFilter=function(e){this.invoices.filter=e},e.prototype.onPageChange=function(e){var t=!0,n=this.firstOffset;e.pageIndex99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,g.g.SATS,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe(Object(u.a)(this.unSubs[1])).subscribe((function(t){e.invoiceValueHint="= "+t.symbol+e.decimalPipe.transform(t.OTHER,g.f.OTHER)+" "+t.unit})))},e.prototype.onDownloadCSV=function(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")},e.prototype.openCreateInvoiceModal=function(){this.store.dispatch(new J.C({data:{pageSize:this.pageSize,component:Nt}}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(C.h),i.Qb(a.e),i.Qb(h.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-lightning-invoices"]],viewQuery:function(e,t){var n;1&e&&i.Dc(Ht.a,!0),2&e&&i.vc(n=i.fc())&&(t.sort=n.first)},inputs:{showDetails:"showDetails"},features:[i.Cb([{provide:It.b,useValue:Object(g.w)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","step","100","min","1","tabindex","2","name","invoiceValue",3,"ngModel","ngModelChange","keyup"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","5",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","tabindex","6","placeholder","Filter",3,"keyup"],["perfectScrollbar","",1,"table-container"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","settle_date"],["mat-header-cell","","mat-sort-header","","class","pl-4",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","memo"],["matColumnDef","value"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_paid_sat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","","class","row-invoices",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unsettled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unsettled","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row","",1,"row-invoices"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Fc(1,qt,15,4,"form",1),i.Fc(2,Ut,3,0,"div",2),i.Fc(3,Cn,36,15,"div",3),i.Vb()),2&e&&(i.Db(1),i.pc("ngIf",!t.showDetails),i.Db(1),i.pc("ngIf",t.showDetails),i.Db(1),i.pc("ngIf",t.showDetails))},directives:[x.c,x.a,x.b,a.n,U.t,U.m,U.n,A.c,le.b,U.b,U.l,U.o,U.p,At.a,A.g,A.f,D.a,w.a,M.b,Tt.n,Ht.a,a.l,V.a,Tt.c,Tt.i,Tt.b,Tt.e,Tt.g,Tt.k,Tt.m,It.a,r.a,Tt.h,Ht.b,Tt.a,O.a,a.o,V.b,Ot.a,Ot.c,Pt.n,Tt.d,Tt.f,Tt.j,Tt.l],pipes:[a.e],styles:[".mat-column-memo[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-memo[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"],data:{animation:[Bt.a]}}),e}(),xn=n("VNr4"),wn=n("t9fZ"),Fn=n("iiaH"),Vn=["paymentReq"];function Wn(e,t){if(1&e&&(i.Wb(0,"mat-hint"),i.Hc(1),i.Vb()),2&e){var n=i.ic();i.Db(1),i.Ic(n.paymentDecodedHint)}}function Ln(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Payment request is required."),i.Vb())}function Dn(e,t){if(1&e&&(i.Wb(0,"mat-error"),i.Hc(1),i.Vb()),2&e){var n=i.ic();i.Db(1),i.Ic(n.paymentDecodedHint)}}function Sn(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Payment amount is required."),i.Vb())}function _n(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-form-field",9),i.Wb(1,"input",28,29),i.ec("ngModelChange",(function(e){return i.yc(n),i.ic().paymentAmount=e}))("change",(function(e){return i.yc(n),i.ic().onAmountChange(e)})),i.Vb(),i.Wb(3,"mat-hint"),i.Hc(4,"It is a zero amount invoice, enter amount to be paid."),i.Vb(),i.Fc(5,Sn,2,0,"mat-error",12),i.Vb()}if(2&e){var a=i.ic();i.Db(1),i.pc("ngModel",a.paymentAmount),i.Db(4),i.pc("ngIf",!a.paymentAmount)}}function Rn(e,t){if(1&e&&(i.Wb(0,"mat-option",30),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.pc("value",n),i.Db(1),i.Jc(" ",n.name," ")}}function kn(e,t){if(1&e&&(i.Wb(0,"mat-error"),i.Hc(1),i.Vb()),2&e){var n=i.ic();i.Db(1),i.Jc("",n.selFeeLimitType.placeholder," is required.")}}function In(e,t){if(1&e&&(i.Wb(0,"mat-option",30),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.pc("value",n),i.Db(1),i.Jc(" ",n.remote_alias||n.chan_id," ")}}function Hn(e,t){if(1&e&&(i.Wb(0,"span"),i.Hc(1),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.Ic(n.paymentError)}}function Tn(e,t){if(1&e&&(i.Wb(0,"div",31),i.Rb(1,"fa-icon",32),i.Fc(2,Hn,2,1,"span",12),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("icon",n.faExclamationTriangle),i.Db(1),i.pc("ngIf",""!==n.paymentError)}}var An=function(){function e(e,t,n,a,o,i,r){this.dialogRef=e,this.store=t,this.logger=n,this.commonService=a,this.decimalPipe=o,this.actions$=i,this.dataService=r,this.faExclamationTriangle=m.n,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.showAdvanced=!1,this.selActiveChannel={},this.activeChannels=[],this.filteredMinAmtActvChannels=[],this.feeLimit=null,this.selFeeLimitType=g.i[0],this.feeLimitTypes=g.i,this.advancedTitle="Advanced Options",this.paymentError="",this.unSubs=[new b.a,new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.selNode=t.nodeSettings,e.activeChannels=t.allChannels.filter((function(e){return e.active})),e.filteredMinAmtActvChannels=e.activeChannels,e.logger.info(t)})),this.actions$.pipe(Object(u.a)(this.unSubs[1]),Object(p.a)((function(e){return e.type===y.m||e.type===y.ub}))).subscribe((function(t){t.type===y.ub&&e.dialogRef.close(),t.type===y.m&&"SendPayment"===t.payload.action&&(delete e.paymentDecoded.num_satoshis,e.paymentError=t.payload.message)}))},e.prototype.onSendPayment=function(){var e=this;if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp_str?this.sendPayment():(this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.paymentReq.control.setErrors(null),this.dataService.decodePayment(this.paymentRequest,!0).pipe(Object(wn.a)(1)).subscribe((function(t){e.selActiveChannel={},e.paymentDecoded=t,e.paymentDecoded.num_msat&&!e.paymentDecoded.num_satoshis&&(e.paymentDecoded.num_satoshis=(+e.paymentDecoded.num_msat/1e3).toString()),e.paymentDecoded.num_satoshis&&""!==e.paymentDecoded.num_satoshis&&"0"!==e.paymentDecoded.num_satoshis?(e.zeroAmtInvoice=!1,e.filteredMinAmtActvChannels=e.activeChannels.filter((function(t){return t.local_balance>=e.paymentDecoded.num_satoshis})),e.selNode.fiatConversion?e.commonService.convertCurrency(+e.paymentDecoded.num_satoshis,g.g.SATS,e.selNode.currencyUnits[2],e.selNode.fiatConversion).pipe(Object(u.a)(e.unSubs[2])).subscribe((function(t){e.paymentDecodedHint="Sending: "+e.decimalPipe.transform(e.paymentDecoded.num_satoshis)+" Sats ("+t.symbol+e.decimalPipe.transform(t.OTHER?t.OTHER:0,g.f.OTHER)+") | Memo: "+(e.paymentDecoded.description?e.paymentDecoded.description:"None")})):e.paymentDecodedHint="Sending: "+e.decimalPipe.transform(e.paymentDecoded.num_satoshis)+" Sats | Memo: "+(e.paymentDecoded.description?e.paymentDecoded.description:"None")):(e.zeroAmtInvoice=!0,e.filteredMinAmtActvChannels=e.activeChannels,e.paymentDecodedHint="Memo: "+(e.paymentDecoded.description?e.paymentDecoded.description:"None"))}),(function(t){e.logger.error(t),e.paymentDecodedHint="ERROR: "+t.message,e.paymentReq.control.setErrors({decodeError:!0})})))},e.prototype.sendPayment=function(){this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.store.dispatch(new J.F("Sending Payment...")),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.zeroAmtInvoice=!1,this.store.dispatch(new y.Vb({paymentReq:this.paymentRequest,paymentDecoded:this.paymentDecoded,zeroAmtInvoice:!1,outgoingChannel:this.selActiveChannel,feeLimitType:this.selFeeLimitType,feeLimit:this.feeLimit,fromDialog:!0}))):(this.zeroAmtInvoice=!0,this.paymentDecoded.num_satoshis=this.paymentAmount,this.store.dispatch(new y.Vb({paymentReq:this.paymentRequest,paymentDecoded:this.paymentDecoded,zeroAmtInvoice:!0,outgoingChannel:this.selActiveChannel,feeLimitType:this.selFeeLimitType,feeLimit:this.feeLimit,fromDialog:!0})))},e.prototype.onAmountChange=function(e){delete this.paymentDecoded.num_satoshis},e.prototype.onPaymentRequestEntry=function(e){var t=this;this.paymentRequest=e,this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.dataService.decodePayment(this.paymentRequest,!0).pipe(Object(wn.a)(1)).subscribe((function(e){t.paymentDecoded=e,t.selActiveChannel={},t.paymentDecoded.num_msat&&!t.paymentDecoded.num_satoshis&&(t.paymentDecoded.num_satoshis=(+t.paymentDecoded.num_msat/1e3).toString()),t.paymentDecoded.num_satoshis&&""!==t.paymentDecoded.num_satoshis&&"0"!==t.paymentDecoded.num_satoshis?(t.zeroAmtInvoice=!1,t.filteredMinAmtActvChannels=t.activeChannels.filter((function(e){return e.local_balance>=t.paymentDecoded.num_satoshis})),t.selNode.fiatConversion?t.commonService.convertCurrency(+t.paymentDecoded.num_satoshis,g.g.SATS,t.selNode.currencyUnits[2],t.selNode.fiatConversion).pipe(Object(u.a)(t.unSubs[2])).subscribe((function(e){t.paymentDecodedHint="Sending: "+t.decimalPipe.transform(t.paymentDecoded.num_satoshis)+" Sats ("+e.symbol+t.decimalPipe.transform(e.OTHER?e.OTHER:0,g.f.OTHER)+") | Memo: "+(t.paymentDecoded.description?t.paymentDecoded.description:"None")})):t.paymentDecodedHint="Sending: "+t.decimalPipe.transform(t.paymentDecoded.num_satoshis)+" Sats | Memo: "+(t.paymentDecoded.description?t.paymentDecoded.description:"None")):(t.zeroAmtInvoice=!0,t.filteredMinAmtActvChannels=t.activeChannels,t.paymentDecodedHint="Memo: "+(t.paymentDecoded.description?t.paymentDecoded.description:"None"))}),(function(e){t.logger.error(e),t.paymentDecodedHint="ERROR: "+e.message,t.paymentReq.control.setErrors({decodeError:!0})})))},e.prototype.onAdvancedPanelToggle=function(e){this.advancedTitle=e?"Advanced Options | "+this.selFeeLimitType.name+("none"===this.selFeeLimitType.id?"":": "+this.feeLimit)+(this.selActiveChannel.remote_alias||this.selActiveChannel.chan_id?" | First Outgoing Channel: "+(this.selActiveChannel.remote_alias?this.selActiveChannel.remote_alias:this.selActiveChannel.chan_id):""):"Advanced Options"},e.prototype.resetData=function(){this.paymentDecoded={},this.paymentRequest="",this.selActiveChannel=null,this.filteredMinAmtActvChannels=this.activeChannels,this.feeLimit=null,this.selFeeLimitType=g.i[0],this.advancedTitle="Advanced Options",this.zeroAmtInvoice=!1,this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint=""},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(j.f),i.Qb(C.h),i.Qb(f.b),i.Qb(h.a),i.Qb(a.e),i.Qb(v.a),i.Qb(Fn.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-lightning-send-payments"]],viewQuery:function(e,t){var n;1&e&&i.Dc(Vn,!0),2&e&&i.vc(n=i.fc())&&(t.paymentReq=n.first)},decls:40,vars:17,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"mt-5px"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["sendPaymentForm","ngForm"],["fxFlex","100"],["autoFocus","","matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxFlex","100","fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","5","Placeholder","Fee Limits",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","26"],["matInput","","type","number","name","feeLimit","step","1","min","0","required","","tabindex","6",3,"ngModel","placeholder","disabled","ngModelChange"],["feeLmt","ngModel"],["fxFlex","40","fxLayoutAlign","start end"],["tabindex","7","placeholder","First Outgoing Channel",3,"value","disabled","valueChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,t){if(1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Wb(2,"mat-card-header",2),i.Wb(3,"div",3),i.Wb(4,"span",4),i.Hc(5,"Send Payment"),i.Vb(),i.Vb(),i.Wb(6,"button",5),i.Hc(7,"X"),i.Vb(),i.Vb(),i.Wb(8,"mat-card-content",6),i.Wb(9,"form",7,8),i.Wb(11,"mat-form-field",9),i.Wb(12,"textarea",10,11),i.ec("ngModelChange",(function(e){return t.onPaymentRequestEntry(e)}))("matTextareaAutosize",(function(){return!0})),i.Vb(),i.Fc(14,Wn,2,1,"mat-hint",12),i.Fc(15,Ln,2,0,"mat-error",12),i.Fc(16,Dn,2,1,"mat-error",12),i.Vb(),i.Fc(17,_n,6,2,"mat-form-field",13),i.Wb(18,"mat-expansion-panel",14),i.ec("closed",(function(){return t.onAdvancedPanelToggle(!0)}))("opened",(function(){return t.onAdvancedPanelToggle(!1)})),i.Wb(19,"mat-expansion-panel-header"),i.Wb(20,"mat-panel-title"),i.Wb(21,"span"),i.Hc(22),i.Vb(),i.Vb(),i.Vb(),i.Wb(23,"div",15),i.Wb(24,"mat-form-field",16),i.Wb(25,"mat-select",17),i.ec("valueChange",(function(e){return t.selFeeLimitType=e})),i.Fc(26,Rn,2,2,"mat-option",18),i.Vb(),i.Vb(),i.Wb(27,"mat-form-field",19),i.Wb(28,"input",20,21),i.ec("ngModelChange",(function(e){return t.feeLimit=e})),i.Vb(),i.Fc(30,kn,2,1,"mat-error",12),i.Vb(),i.Wb(31,"mat-form-field",22),i.Wb(32,"mat-select",23),i.ec("valueChange",(function(e){return t.selActiveChannel=e})),i.Fc(33,In,2,2,"mat-option",18),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Fc(34,Tn,3,2,"div",24),i.Wb(35,"div",25),i.Wb(36,"button",26),i.ec("click",(function(){return t.resetData()})),i.Hc(37,"Clear Fields"),i.Vb(),i.Wb(38,"button",27),i.ec("click",(function(){return t.onSendPayment()})),i.Hc(39,"Send Payment"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e){var n=i.wc(13);i.Db(6),i.pc("mat-dialog-close",!1),i.Db(6),i.pc("ngModel",t.paymentRequest),i.Db(2),i.pc("ngIf",t.paymentRequest&&""!==t.paymentDecodedHint),i.Db(1),i.pc("ngIf",!t.paymentRequest),i.Db(1),i.pc("ngIf",null==n.errors?null:n.errors.decodeError),i.Db(1),i.pc("ngIf",t.zeroAmtInvoice),i.Db(5),i.Ic(t.advancedTitle),i.Db(3),i.pc("value",t.selFeeLimitType),i.Db(1),i.pc("ngForOf",t.feeLimitTypes),i.Db(2),i.pc("ngModel",t.feeLimit)("placeholder",t.selFeeLimitType.placeholder)("disabled",t.selFeeLimitType===t.feeLimitTypes[0]),i.Db(2),i.pc("ngIf",t.selFeeLimitType!==t.feeLimitTypes[0]&&!t.feeLimit),i.Db(2),i.pc("value",t.selActiveChannel)("disabled",t.filteredMinAmtActvChannels&&t.filteredMinAmtActvChannels.length<1),i.Db(1),i.pc("ngForOf",t.filteredMinAmtActvChannels),i.Db(1),i.pc("ngIf",""!==t.paymentError)}},directives:[x.c,x.a,W.c,x.b,D.a,j.d,W.b,U.t,U.m,U.n,A.c,le.b,U.b,le.d,se.a,U.r,U.l,U.o,a.n,K.c,K.e,K.f,Ot.a,a.m,U.p,At.a,A.f,A.b,Pt.n,w.a],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e}(),On=n("F12H"),Pn=n("X9mX"),Mn=["sendPaymentForm"];function En(e,t){if(1&e&&(i.Wb(0,"mat-hint"),i.Hc(1),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.Ic(n.paymentDecodedHint)}}function Gn(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Payment request is required."),i.Vb())}function Nn(e,t){if(1&e){var n=i.Xb();i.Wb(0,"form",40,41),i.Wb(2,"mat-form-field",42),i.Wb(3,"textarea",43,44),i.ec("ngModelChange",(function(e){return i.yc(n),i.ic().onPaymentRequestEntry(e)}))("matTextareaAutosize",(function(){return!0})),i.Vb(),i.Fc(5,En,2,1,"mat-hint",45),i.Fc(6,Gn,2,0,"mat-error",45),i.Vb(),i.Wb(7,"div",46),i.Wb(8,"button",47),i.ec("click",(function(){return i.yc(n),i.ic().resetData()})),i.Hc(9,"Clear Field"),i.Vb(),i.Wb(10,"button",48),i.ec("click",(function(){return i.yc(n),i.ic().onSendPayment()})),i.Hc(11,"Send Payment"),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.Db(3),i.pc("ngModel",a.paymentRequest),i.Db(2),i.pc("ngIf",a.paymentRequest&&""!==a.paymentDecodedHint),i.Db(1),i.pc("ngIf",!a.paymentRequest)}}function zn(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",49),i.Wb(1,"button",50),i.ec("click",(function(){return i.yc(n),i.ic().openSendPaymentModal()})),i.Hc(2,"Send Payment"),i.Vb(),i.Vb()}}function Bn(e,t){1&e&&i.Rb(0,"mat-progress-bar",51)}function qn(e,t){1&e&&(i.Wb(0,"th",52),i.Hc(1,"Creation Date"),i.Vb())}var Un=function(e){return{"mr-0":e}};function jn(e,t){if(1&e&&i.Rb(0,"span",56),2&e){var n=i.ic(2);i.pc("ngClass",i.tc(1,Un,n.screenSize===n.screenSizeEnum.XS))}}function Qn(e,t){if(1&e&&i.Rb(0,"span",57),2&e){var n=i.ic(2);i.pc("ngClass",i.tc(1,Un,n.screenSize===n.screenSizeEnum.XS))}}function Xn(e,t){if(1&e&&(i.Wb(0,"td",53),i.Fc(1,jn,1,3,"span",54),i.Fc(2,Qn,1,3,"span",55),i.Hc(3),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.pc("ngIf","SUCCEEDED"===n.status),i.Db(1),i.pc("ngIf","SUCCEEDED"!==n.status),i.Db(1),i.Jc(" ",null==n?null:n.creation_date_str," ")}}function $n(e,t){1&e&&(i.Wb(0,"th",52),i.Hc(1,"Payment Hash"),i.Vb())}var Jn=function(e){return{"max-width":e}};function Zn(e,t){if(1&e&&(i.Wb(0,"td",58),i.Hc(1),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.pc("ngStyle",i.tc(2,Jn,a.screenSize===a.screenSizeEnum.XS?"10rem":"35rem")),i.Db(1),i.Ic(null==n?null:n.payment_hash)}}function Kn(e,t){1&e&&(i.Wb(0,"th",59),i.Hc(1,"Fee (Sats)"),i.Vb())}function Yn(e,t){if(1&e&&(i.Wb(0,"td",53),i.Wb(1,"span",60),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(i.kc(3,1,null==n?null:n.fee))}}function ea(e,t){1&e&&(i.Wb(0,"th",59),i.Hc(1,"Value (Sats)"),i.Vb())}function ta(e,t){if(1&e&&(i.Wb(0,"td",53),i.Wb(1,"span",60),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(i.kc(3,1,null==n?null:n.value))}}function na(e,t){1&e&&(i.Wb(0,"th",59),i.Hc(1,"#Hops"),i.Vb())}function aa(e,t){if(1&e&&(i.Wb(0,"td",53),i.Wb(1,"span",60),i.Hc(2),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic((null==n||null==n.htlcs[0]||null==n.htlcs[0].route||null==n.htlcs[0].route.hops?null:n.htlcs[0].route.hops.length)||0)}}function oa(e,t){if(1&e){var n=i.Xb();i.Wb(0,"th",61),i.Wb(1,"div",62),i.Wb(2,"mat-select",63),i.Rb(3,"mat-select-trigger"),i.Wb(4,"mat-option",64),i.ec("click",(function(){return i.yc(n),i.ic().onDownloadCSV()})),i.Hc(5,"Download CSV"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}}function ia(e,t){if(1&e){var n=i.Xb();i.Wb(0,"td",65),i.Wb(1,"button",66),i.ec("click",(function(){i.yc(n);var e=t.$implicit;return i.ic().onPaymentClick(e)})),i.Hc(2,"View Info"),i.Vb(),i.Vb()}}function ra(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"No payments available."),i.Vb())}function ca(e,t){if(1&e&&(i.Wb(0,"td",67),i.Fc(1,ra,2,0,"p",45),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngIf",!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)}}function la(e,t){if(1&e&&i.Rb(0,"span",56),2&e){var n=i.ic(2);i.pc("ngClass",i.tc(1,Un,n.screenSize===n.screenSizeEnum.XS))}}function sa(e,t){if(1&e&&i.Rb(0,"span",57),2&e){var n=i.ic(2);i.pc("ngClass",i.tc(1,Un,n.screenSize===n.screenSizeEnum.XS))}}function ba(e,t){if(1&e&&i.Rb(0,"span",56),2&e){var n=i.ic(4);i.pc("ngClass",i.tc(1,Un,n.screenSize===n.screenSizeEnum.XS))}}function ua(e,t){if(1&e&&i.Rb(0,"span",57),2&e){var n=i.ic(4);i.pc("ngClass",i.tc(1,Un,n.screenSize===n.screenSizeEnum.XS))}}function pa(e,t){if(1&e&&(i.Wb(0,"span",70),i.Fc(1,ba,1,3,"span",54),i.Fc(2,ua,1,3,"span",55),i.Hc(3),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.pc("ngIf","SUCCEEDED"===n.status),i.Db(1),i.pc("ngIf","SUCCEEDED"!==n.status),i.Db(1),i.Jc(" ",n.attempt_time_str," ")}}function da(e,t){if(1&e&&(i.Ub(0),i.Fc(1,pa,4,3,"span",69),i.Tb()),2&e){var n=i.ic().$implicit;i.Db(1),i.pc("ngForOf",null==n?null:n.htlcs)}}function ma(e,t){if(1&e&&(i.Wb(0,"td",53),i.Wb(1,"span",68),i.Fc(2,la,1,3,"span",54),i.Fc(3,sa,1,3,"span",55),i.Hc(4),i.Vb(),i.Fc(5,da,2,1,"ng-container",45),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.pc("ngIf","SUCCEEDED"===n.status),i.Db(1),i.pc("ngIf","SUCCEEDED"!==n.status),i.Db(1),i.Jc(" Total Attempts: ",null==n||null==n.htlcs?null:n.htlcs.length," "),i.Db(1),i.pc("ngIf",n.is_expanded)}}function fa(e,t){if(1&e&&(i.Wb(0,"span",68),i.Hc(1),i.Vb()),2&e){var n=t.index;i.Db(1),i.Jc(" HTLC ",n+1," ")}}function ha(e,t){if(1&e&&(i.Wb(0,"span"),i.Fc(1,fa,2,1,"span",71),i.Vb()),2&e){var n=i.ic().$implicit;i.Db(1),i.pc("ngForOf",null==n?null:n.htlcs)}}function ga(e,t){if(1&e&&(i.Wb(0,"td",53),i.Wb(1,"span",68),i.Hc(2),i.Vb(),i.Fc(3,ha,2,1,"span",45),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(null==n?null:n.payment_hash),i.Db(1),i.pc("ngIf",n.is_expanded)}}function ya(e,t){if(1&e&&(i.Wb(0,"span",72),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Jc(" ",i.lc(2,1,null==n.route?null:n.route.total_fees,"1.0-0")," ")}}function Ca(e,t){if(1&e&&(i.Wb(0,"span"),i.Fc(1,ya,3,4,"span",73),i.Vb()),2&e){var n=i.ic().$implicit;i.Db(1),i.pc("ngForOf",null==n?null:n.htlcs)}}function va(e,t){if(1&e&&(i.Wb(0,"td",53),i.Wb(1,"span",72),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Fc(4,Ca,2,1,"span",45),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(i.lc(3,2,null==n?null:n.fee,"1.0-0")),i.Db(2),i.pc("ngIf",n.is_expanded)}}function xa(e,t){if(1&e&&(i.Wb(0,"span",72),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Jc(" ",i.lc(2,1,null==n.route?null:n.route.total_amt,"1.0-0")," ")}}function wa(e,t){if(1&e&&(i.Wb(0,"span"),i.Fc(1,xa,3,4,"span",73),i.Vb()),2&e){var n=i.ic().$implicit;i.Db(1),i.pc("ngForOf",null==n?null:n.htlcs)}}function Fa(e,t){if(1&e&&(i.Wb(0,"td",53),i.Wb(1,"span",72),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Fc(4,wa,2,1,"span",45),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(i.lc(3,2,null==n?null:n.value,"1.0-0")),i.Db(2),i.pc("ngIf",n.is_expanded)}}function Va(e,t){if(1&e&&(i.Wb(0,"span",72),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Jc(" ",i.lc(2,1,(null==n.route||null==n.route.hops?null:n.route.hops.length)||0,"1.0-0")," ")}}function Wa(e,t){if(1&e&&(i.Wb(0,"span"),i.Fc(1,Va,3,4,"span",73),i.Vb()),2&e){var n=i.ic().$implicit;i.Db(1),i.pc("ngForOf",null==n?null:n.htlcs)}}function La(e,t){if(1&e&&(i.Wb(0,"td",53),i.Wb(1,"span",72),i.Hc(2,"-"),i.Vb(),i.Fc(3,Wa,2,1,"span",45),i.Vb()),2&e){var n=t.$implicit;i.Db(3),i.pc("ngIf",n.is_expanded)}}function Da(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",60),i.Wb(1,"button",77),i.ec("click",(function(){i.yc(n);var e=t.$implicit,a=i.ic(2).$implicit;return i.ic().onHTLCClick(e,a)})),i.Hc(2),i.Vb(),i.Vb()}if(2&e){var a=t.index;i.Db(2),i.Jc("View ",a+1,"")}}function Sa(e,t){if(1&e&&(i.Wb(0,"div"),i.Fc(1,Da,3,1,"div",76),i.Vb()),2&e){var n=i.ic().$implicit;i.Db(1),i.pc("ngForOf",null==n?null:n.htlcs)}}function _a(e,t){if(1&e&&(i.Wb(0,"td",74),i.Wb(1,"span",60),i.Wb(2,"button",75),i.ec("click",(function(){var e=t.$implicit;return e.is_expanded=!e.is_expanded})),i.Hc(3),i.Vb(),i.Vb(),i.Fc(4,Sa,2,1,"div",45),i.Vb()),2&e){var n=t.$implicit;i.Db(3),i.Ic(n.is_expanded?"Hide":"Show"),i.Db(1),i.pc("ngIf",n.is_expanded)}}function Ra(e,t){if(1&e&&i.Rb(0,"tr",78),2&e){var n=t.$implicit,a=i.ic();i.pc("@newlyAddedRowAnimation",n.payment_hash===a.newlyAddedPayment&&a.flgAnimate?"added":"notAdded")}}var ka=function(e){return{"display-none":e}};function Ia(e,t){if(1&e&&i.Rb(0,"tr",79),2&e){var n=i.ic();i.pc("ngClass",i.tc(1,ka,(null==n.payments?null:n.payments.data)&&(null==n.payments||null==n.payments.data?null:n.payments.data.length)>0))}}function Ha(e,t){1&e&&i.Rb(0,"tr",80)}function Ta(e,t){if(1&e&&i.Rb(0,"tr",78),2&e){var n=t.$implicit,a=i.ic();i.pc("@newlyAddedRowAnimation",n.payment_hash===a.newlyAddedPayment&&a.flgAnimate?"added":"notAdded")}}var Aa=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Oa=function(){return["no_payment"]},Pa=function(){function e(e,t,n,a,o,i,r,c){this.logger=e,this.commonService=t,this.dataService=n,this.store=a,this.rtlEffects=o,this.lndEffects=i,this.decimalPipe=r,this.actions$=c,this.showDetails=!0,this.faHistory=m.q,this.newlyAddedPayment="",this.flgAnimate=!0,this.selNode={},this.flgLoading=[!0],this.information={},this.peers=[],this.paymentJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","actions"],this.htlcColumns=["groupTotal","groupAction"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["creation_date","value","actions"],this.htlcColumns=["groupTotal","groupValue","groupAction"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","value","actions"],this.htlcColumns=["groupTotal","groupFee","groupValue","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","payment_hash","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupHash","groupFee","groupValue","groupHops","groupAction"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchPayments"===t.action&&(e.flgLoading[0]="error")})),e.information=t.information,e.selNode=t.nodeSettings,e.peers=t.peers,e.paymentJSONArr=t.payments&&t.payments.length>0?t.payments:[],e.payments=new Tt.o(t.payments?[]:Object(kt.g)(e.paymentJSONArr)),e.payments.data=e.paymentJSONArr,e.payments.sort=e.sort,e.payments.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},e.payments.paginator=e.paginator,setTimeout((function(){e.flgAnimate=!1}),3e3),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!e.paymentJSONArr),e.logger.info(t)}))},e.prototype.onSendPayment=function(){var e=this;if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp_str?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe(Object(wn.a)(1)).subscribe((function(t){e.paymentDecoded=t,e.paymentDecoded.timestamp_str?(e.paymentDecoded.num_satoshis=e.paymentDecoded.num_msat&&!e.paymentDecoded.num_satoshis?(+e.paymentDecoded.num_msat/1e3).toString():"0",e.sendPayment()):e.resetData()}))},e.prototype.sendPayment=function(){var e=this;this.flgAnimate=!0,this.newlyAddedPayment=this.paymentDecoded.payment_hash,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.store.dispatch(new J.D({data:{type:g.b.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp_str",value:this.paymentDecoded.timestamp_str,title:"Creation Date",width:50},{key:"num_satoshis",value:this.paymentDecoded.num_satoshis,title:"Amount (Sats)",width:50,type:g.h.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:g.h.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:50}]]}})),this.rtlEffects.closeConfirm.pipe(Object(wn.a)(1)).subscribe((function(t){t&&(e.store.dispatch(new J.F("Sending Payment...")),e.store.dispatch(new y.Vb({paymentReq:e.paymentRequest,paymentDecoded:e.paymentDecoded,zeroAmtInvoice:!1,fromDialog:!1})),e.resetData())}))):(this.store.dispatch(new J.D({data:{type:g.b.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp_str",value:this.paymentDecoded.timestamp_str,title:"Creation Date",width:40},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:g.h.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,getInputs:[{placeholder:"Amount (Sats)",inputType:g.h.NUMBER.toLowerCase(),inputValue:"",width:30}]}})),this.rtlEffects.closeConfirm.pipe(Object(wn.a)(1)).subscribe((function(t){t&&(e.paymentDecoded.num_satoshis=t[0].inputValue,e.store.dispatch(new J.F("Sending Payment...")),e.store.dispatch(new y.Vb({paymentReq:e.paymentRequest,paymentDecoded:e.paymentDecoded,zeroAmtInvoice:!0,fromDialog:!1})),e.resetData())})))},e.prototype.openSendPaymentModal=function(){this.store.dispatch(new J.C({data:{component:An}}))},e.prototype.onPaymentRequestEntry=function(e){var t=this;this.paymentRequest=e,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe(Object(wn.a)(1)).subscribe((function(e){t.paymentDecoded=e,t.paymentDecoded.num_msat&&!t.paymentDecoded.num_satoshis&&(t.paymentDecoded.num_satoshis=(+t.paymentDecoded.num_msat/1e3).toString()),t.paymentDecoded.num_satoshis?t.commonService.convertCurrency(+t.paymentDecoded.num_satoshis,g.g.SATS,t.selNode.currencyUnits[2],t.selNode.fiatConversion).pipe(Object(u.a)(t.unSubs[2])).subscribe((function(e){t.paymentDecodedHint=t.selNode.fiatConversion?"Sending: "+t.decimalPipe.transform(t.paymentDecoded.num_satoshis?t.paymentDecoded.num_satoshis:0)+" Sats ("+e.symbol+t.decimalPipe.transform(e.OTHER?e.OTHER:0,g.f.OTHER)+") | Memo: "+t.paymentDecoded.description:"Sending: "+t.decimalPipe.transform(t.paymentDecoded.num_satoshis?t.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+t.paymentDecoded.description})):t.paymentDecodedHint="Zero Amount Invoice | Memo: "+t.paymentDecoded.description}))},e.prototype.is_group=function(e,t){return t.htlcs&&t.htlcs.length>1},e.prototype.resetData=function(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()},e.prototype.getHopDetails=function(e){var t=this;return e.reduce((function(e,n){var a=t.peers.find((function(e){return e.pub_key===n.pub_key}));return a&&a.alias?e.push("
Channel: "+a.alias.padEnd(20)+"			Amount (Sats): "+t.decimalPipe.transform(n.amt_to_forward)+"
"):t.dataService.getAliasesFromPubkeys(n.pub_key,!1).pipe(Object(u.a)(t.unSubs[1])).subscribe((function(a){e.push("
Channel: "+(a.node&&a.node.alias?a.node.alias.padEnd(20):n.pub_key.substring(0,17)+"...")+"			Amount (Sats): "+t.decimalPipe.transform(n.amt_to_forward)+"
")})),e}),[])},e.prototype.onHTLCClick=function(e,t){var n=this;t.payment_request&&""!==t.payment_request.trim()?this.dataService.decodePayment(t.payment_request,!1).pipe(Object(wn.a)(1)).subscribe((function(a){n.showHTLCView(e,t,a)}),(function(a){n.showHTLCView(e,t,null)})):this.showHTLCView(e,t,null)},e.prototype.showHTLCView=function(e,t,n){var a=[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:g.h.STRING}],[{key:"preimage",value:e.preimage,title:"Preimage",width:100,type:g.h.STRING}],[{key:"payment_request",value:t.payment_request,title:"Payment Request",width:100,type:g.h.STRING}],[{key:"status",value:e.status,title:"Status",width:33,type:g.h.STRING},{key:"attempt_time_str",value:e.attempt_time_str,title:"Attempt Time",width:33,type:g.h.DATE_TIME},{key:"resolve_time_str",value:e.resolve_time_str,title:"Resolve Time",width:34,type:g.h.DATE_TIME}],[{key:"total_amt",value:e.route.total_amt,title:"Amount (Sats)",width:33,type:g.h.NUMBER},{key:"total_fees",value:e.route.total_fees,title:"Fee (Sats)",width:33,type:g.h.NUMBER},{key:"total_time_lock",value:e.route.total_time_lock,title:"Total Time Lock",width:34,type:g.h.NUMBER}],[{key:"hops",value:this.getHopDetails(e.route.hops),title:"Hops",width:100,type:g.h.ARRAY}]];n&&n.description&&""!==n.description&&a.splice(3,0,[{key:"description",value:n.description,title:"Description",width:100,type:g.h.STRING}]),this.store.dispatch(new J.C({data:{type:g.b.INFORMATION,alertTitle:"HTLC Information",message:a,scrollable:e.route&&e.route.hops&&e.route.hops.length>1}}))},e.prototype.onPaymentClick=function(e){var t=this;if(e.htlcs&&e.htlcs[0]&&e.htlcs[0].route&&e.htlcs[0].route.hops&&e.htlcs[0].route.hops.length>0){var n=e.htlcs[0].route.hops.reduce((function(e,t){return""===e?t.pub_key:e+","+t.pub_key}),"");Object(xn.a)(this.dataService.getAliasesFromPubkeys(n,!0).pipe(Object(u.a)(this.unSubs[3])).subscribe((function(n){t.showPaymentView(e,n.reduce((function(e,t){return""===e?t:e+"\n"+t}),""))})))}else this.showPaymentView(e,"")},e.prototype.showPaymentView=function(e,t){var n=this,a=[[{key:"payment_hash",value:e.payment_hash,title:"Payment Hash",width:100,type:g.h.STRING}],[{key:"payment_preimage",value:e.payment_preimage,title:"Payment Preimage",width:100,type:g.h.STRING}],[{key:"payment_request",value:e.payment_request,title:"Payment Request",width:100,type:g.h.STRING}],[{key:"status",value:e.status,title:"Status",width:50,type:g.h.STRING},{key:"creation_date_str",value:e.creation_date_str,title:"Creation Date",width:50,type:g.h.DATE_TIME}],[{key:"value_msat",value:e.value_msat,title:"Value (mSats)",width:50,type:g.h.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:50,type:g.h.NUMBER}],[{key:"path",value:t,title:"Path",width:100,type:g.h.STRING}]];e.payment_request&&""!==e.payment_request.trim()?this.dataService.decodePayment(e.payment_request,!1).pipe(Object(wn.a)(1)).subscribe((function(t){t&&t.description&&""!==t.description&&a.splice(3,0,[{key:"description",value:t.description,title:"Description",width:100,type:g.h.STRING}]),n.openPaymentAlert(a,e.htlcs&&e.htlcs[0]&&e.htlcs[0].route&&e.htlcs[0].route.hops&&e.htlcs[0].route.hops.length>1)})):this.openPaymentAlert(a,!1)},e.prototype.openPaymentAlert=function(e,t){this.store.dispatch(new J.C({data:{type:g.b.INFORMATION,alertTitle:"Payment Information",message:e,scrollable:t}}))},e.prototype.applyFilter=function(e){this.payments.filter=e},e.prototype.onDownloadCSV=function(){var e=this;if(this.payments.data&&this.payments.data.length>0){var t=JSON.parse(JSON.stringify(this.payments.data)),n=t.reduce((function(e,t){return t.payment_request&&""!==t.payment_request.trim()&&(e=""===e?t.payment_request:e+","+t.payment_request),e}),"");Object(xn.a)(this.dataService.decodePayments(n).pipe(Object(u.a)(this.unSubs[4])).subscribe((function(n){var a=0;n.forEach((function(e,n){for(;t[n+a].payment_hash!==e.payment_hash;)a+=1;t[n+a].description=e.description}));var o=t.reduce((function(e,t){return e.concat(t)}),[]);e.commonService.downloadFile(o,"Payments")})))}},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(h.a),i.Qb(Fn.a),i.Qb(C.h),i.Qb(Pn.a),i.Qb(On.a),i.Qb(a.e),i.Qb(v.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-lightning-payments"]],viewQuery:function(e,t){var n;1&e&&(i.Mc(Mn,!0),i.Dc(Ht.a,!0),i.Dc(It.a,!0)),2&e&&(i.vc(n=i.fc())&&(t.form=n.first),i.vc(n=i.fc())&&(t.sort=n.first),i.vc(n=i.fc())&&(t.paginator=n.first))},inputs:{showDetails:"showDetails"},features:[i.Cb([{provide:It.b,useValue:Object(g.w)("Payments")}])],decls:52,vars:21,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","payment_hash"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","fee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","hops"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupHash"],["matColumnDef","groupFee"],["matColumnDef","groupValue"],["matColumnDef","groupHops"],["matColumnDef","groupAction"],["mat-cell","","class","px-3",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Succeeded","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Succeeded","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-3"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Fc(1,Nn,12,3,"form",1),i.Fc(2,zn,3,0,"div",2),i.Wb(3,"div",3),i.Wb(4,"div",4),i.Wb(5,"div",5),i.Rb(6,"fa-icon",6),i.Wb(7,"span",7),i.Hc(8,"Payments History"),i.Vb(),i.Vb(),i.Wb(9,"mat-form-field",8),i.Wb(10,"input",9),i.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),i.Vb(),i.Vb(),i.Vb(),i.Wb(11,"div",10),i.Fc(12,Bn,1,0,"mat-progress-bar",11),i.Wb(13,"table",12,13),i.Ub(15,14),i.Fc(16,qn,2,0,"th",15),i.Fc(17,Xn,4,3,"td",16),i.Tb(),i.Ub(18,17),i.Fc(19,$n,2,0,"th",15),i.Fc(20,Zn,2,4,"td",18),i.Tb(),i.Ub(21,19),i.Fc(22,Kn,2,0,"th",20),i.Fc(23,Yn,4,3,"td",16),i.Tb(),i.Ub(24,21),i.Fc(25,ea,2,0,"th",20),i.Fc(26,ta,4,3,"td",16),i.Tb(),i.Ub(27,22),i.Fc(28,na,2,0,"th",20),i.Fc(29,aa,3,1,"td",16),i.Tb(),i.Ub(30,23),i.Fc(31,oa,6,0,"th",24),i.Fc(32,ia,3,0,"td",25),i.Tb(),i.Ub(33,26),i.Fc(34,ca,2,1,"td",27),i.Tb(),i.Ub(35,28),i.Fc(36,ma,6,4,"td",16),i.Tb(),i.Ub(37,29),i.Fc(38,ga,4,2,"td",16),i.Tb(),i.Ub(39,30),i.Fc(40,va,5,5,"td",16),i.Tb(),i.Ub(41,31),i.Fc(42,Fa,5,5,"td",16),i.Tb(),i.Ub(43,32),i.Fc(44,La,4,1,"td",16),i.Tb(),i.Ub(45,33),i.Fc(46,_a,5,2,"td",34),i.Tb(),i.Fc(47,Ra,1,1,"tr",35),i.Fc(48,Ia,1,3,"tr",36),i.Fc(49,Ha,1,0,"tr",37),i.Fc(50,Ta,1,1,"tr",38),i.Vb(),i.Vb(),i.Rb(51,"mat-paginator",39),i.Vb(),i.Vb()),2&e&&(i.Db(1),i.pc("ngIf",!t.showDetails),i.Db(1),i.pc("ngIf",t.showDetails),i.Db(1),i.pc("ngClass",i.tc(16,ka,!t.showDetails)),i.Db(3),i.pc("icon",t.faHistory),i.Db(6),i.pc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.pc("dataSource",t.payments)("ngClass",i.tc(18,Aa,"error"===t.flgLoading[0])),i.Db(34),i.pc("matRowDefColumns",t.htlcColumns)("matRowDefWhen",t.is_group),i.Db(1),i.pc("matFooterRowDef",i.sc(20,Oa)),i.Db(1),i.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.pc("matRowDefColumns",t.displayedColumns),i.Db(1),i.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[x.c,x.a,x.b,a.n,a.l,V.a,w.a,A.c,le.b,M.b,Tt.n,Ht.a,Tt.c,Tt.i,Tt.b,Tt.e,Tt.m,Tt.g,Tt.k,It.a,U.t,U.m,U.n,U.b,le.d,U.r,U.l,U.o,D.a,A.f,A.b,r.a,Tt.h,Ht.b,Tt.a,O.a,a.o,V.b,Ot.a,Ot.c,Pt.n,Tt.d,a.m,Tt.l,Tt.f,Tt.j],pipes:[a.e],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"],data:{animation:[Bt.a]}}),e}();function Ma(e,t){if(1&e&&(i.Wb(0,"button",24),i.Wb(1,"mat-icon"),i.Hc(2,"more_vert"),i.Vb(),i.Vb()),2&e){i.ic();var n=i.wc(9);i.pc("matMenuTriggerFor",n)}}function Ea(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",14),i.ec("click",(function(){return i.yc(n),i.ic(3).onsortChannelsBy()})),i.Hc(1),i.Vb()}if(2&e){var a=i.ic(3);i.Db(1),i.Jc("Sort By ","Balance Score"===a.sortField?"Capacity":"Balance Score","")}}var Ga=function(e){return{"error-border":e}};function Na(e,t){if(1&e&&i.Rb(0,"rtl-node-info",25),2&e){var n=i.ic(3);i.pc("information",n.information)("showColorFieldSeparately",!1)("ngClass",i.tc(3,Ga,"error"===n.flgLoading[0]))}}function za(e,t){if(1&e&&i.Rb(0,"rtl-balances-info",26),2&e){var n=i.ic(3);i.pc("balances",n.balances)("ngClass",i.tc(2,Ga,"error"===n.flgLoading[2]||"error"===n.flgLoading[3]))}}function Ba(e,t){if(1&e&&i.Rb(0,"rtl-channel-capacity-info",27),2&e){var n=i.ic(3);i.pc("sortBy",n.sortField)("channelBalances",n.channelBalances)("allChannels",n.allChannelsCapacity)("ngClass",i.tc(4,Ga,"error"===n.flgLoading[3]))}}function qa(e,t){if(1&e&&i.Rb(0,"rtl-fee-info",28),2&e){var n=i.ic(3);i.pc("fees",n.fees)("ngClass",i.tc(2,Ga,"error"===n.flgLoading[1]))}}function Ua(e,t){if(1&e&&i.Rb(0,"rtl-channel-status-info",29),2&e){var n=i.ic(3);i.pc("channelsStatus",n.channelsStatus)("ngClass",i.tc(2,Ga,"error"===n.flgLoading[3]||"error"===n.flgLoading[4]))}}function ja(e,t){1&e&&(i.Wb(0,"h3"),i.Hc(1,"Error! Unable to find information!"),i.Vb())}function Qa(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-grid-tile",8),i.Wb(1,"mat-card",9),i.Wb(2,"mat-card-header"),i.Wb(3,"mat-card-title"),i.Rb(4,"fa-icon",10),i.Wb(5,"span"),i.Hc(6),i.Vb(),i.Fc(7,Ma,3,1,"button",11),i.Wb(8,"mat-menu",12,13),i.Wb(10,"button",14),i.ec("click",(function(){i.yc(n);var e=t.$implicit;return i.ic(2).onNavigateTo(e.link)})),i.Hc(11),i.Vb(),i.Fc(12,Ea,2,1,"button",15),i.Vb(),i.Vb(),i.Vb(),i.Wb(13,"mat-card-content",16),i.Wb(14,"div",17),i.Fc(15,Na,1,5,"rtl-node-info",18),i.Fc(16,za,1,4,"rtl-balances-info",19),i.Fc(17,Ba,1,6,"rtl-channel-capacity-info",20),i.Fc(18,qa,1,4,"rtl-fee-info",21),i.Fc(19,Ua,1,4,"rtl-channel-status-info",22),i.Fc(20,ja,2,0,"h3",23),i.Vb(),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=t.$implicit;i.pc("colspan",a.cols)("rowspan",a.rows),i.Db(4),i.pc("icon",a.icon),i.Db(2),i.Ic(a.title),i.Db(1),i.pc("ngIf",a.link),i.Db(4),i.Jc("Go To ",a.goTo,""),i.Db(1),i.pc("ngIf","capacity"===a.id),i.Db(2),i.pc("ngSwitch",a.id),i.Db(1),i.pc("ngSwitchCase","node"),i.Db(1),i.pc("ngSwitchCase","balance"),i.Db(1),i.pc("ngSwitchCase","capacity"),i.Db(1),i.pc("ngSwitchCase","fee"),i.Db(1),i.pc("ngSwitchCase","status")}}var Xa=function(e){return{"mb-6":e}};function $a(e,t){if(1&e&&(i.Wb(0,"div",2),i.Wb(1,"div",3),i.Rb(2,"fa-icon",4),i.Wb(3,"span",5),i.Hc(4),i.Vb(),i.Vb(),i.Wb(5,"mat-grid-list",6),i.Fc(6,Qa,21,13,"mat-grid-tile",7),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(2),i.pc("icon",n.flgLoading[0]?n.faFrown:n.faSmile),i.Db(2),i.Ic(n.flgLoading[0]?"Error! Please check the server connection.":"Welcome "+n.information.alias+"! Your node is up and running."),i.Db(1),i.pc("rowHeight",n.operatorCardHeight)("ngClass",i.tc(5,Xa,n.screenSize===n.screenSizeEnum.XS||n.screenSize===n.screenSizeEnum.SM)),i.Db(1),i.pc("ngForOf",n.operatorCards)}}function Ja(e,t){if(1&e&&(i.Wb(0,"button",24),i.Wb(1,"mat-icon"),i.Hc(2,"more_vert"),i.Vb(),i.Vb()),2&e){i.ic();var n=i.wc(7);i.pc("matMenuTriggerFor",n)}}function Za(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-card-header"),i.Wb(1,"mat-card-title"),i.Rb(2,"fa-icon",10),i.Wb(3,"span"),i.Hc(4),i.Vb(),i.Fc(5,Ja,3,1,"button",11),i.Wb(6,"mat-menu",12,38),i.Wb(8,"button",14),i.ec("click",(function(){i.yc(n);var e=i.ic().$implicit;return i.ic(2).onNavigateTo(e.link)})),i.Hc(9),i.Vb(),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic().$implicit;i.Db(2),i.pc("icon",a.icon),i.Db(2),i.Ic(a.title),i.Db(1),i.pc("ngIf",a.link),i.Db(4),i.Jc("Go To ",a.goTo,"")}}function Ka(e,t){if(1&e&&i.Rb(0,"rtl-node-info",39),2&e){var n=i.ic(3);i.pc("information",n.information)("ngClass",i.tc(2,Ga,"error"===n.flgLoading[0]))}}function Ya(e,t){if(1&e&&i.Rb(0,"rtl-balances-info",26),2&e){var n=i.ic(3);i.pc("balances",n.balances)("ngClass",i.tc(2,Ga,"error"===n.flgLoading[2]||"error"===n.flgLoading[3]))}}function eo(e,t){if(1&e&&i.Rb(0,"rtl-channel-liquidity-info",40),2&e){var n=i.ic(3);i.pc("direction","In")("totalLiquidity",n.totalInboundLiquidity)("allChannels",n.allInboundChannels)("ngClass",i.tc(4,Ga,"error"===n.flgLoading[3]))}}function to(e,t){if(1&e&&i.Rb(0,"rtl-channel-liquidity-info",40),2&e){var n=i.ic(3);i.pc("direction","Out")("totalLiquidity",n.totalOutboundLiquidity)("allChannels",n.allOutboundChannels)("ngClass",i.tc(4,Ga,"error"===n.flgLoading[3]))}}function no(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",49),i.Wb(1,"mat-icon"),i.Hc(2,"more_vert"),i.Vb(),i.Vb(),i.Wb(3,"mat-menu",12,50),i.Wb(5,"button",14),i.ec("click",(function(){i.yc(n);var e=i.ic(2).$implicit;return i.ic(2).onNavigateTo(e.link)})),i.Hc(6),i.Vb(),i.Vb()}if(2&e){var a=i.wc(4),o=i.ic(2).$implicit;i.pc("matMenuTriggerFor",a),i.Db(6),i.Jc("Go To ",o.goTo,"")}}function ao(e,t){1&e&&(i.Wb(0,"span",41),i.Wb(1,"mat-tab-group",42),i.Wb(2,"mat-tab",43),i.Rb(3,"rtl-lightning-invoices",44),i.Vb(),i.Wb(4,"mat-tab",45),i.Rb(5,"rtl-lightning-payments",46),i.Vb(),i.Wb(6,"mat-tab",47),i.Fc(7,no,7,2,"ng-template",48),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(3),i.pc("showDetails",!1),i.Db(2),i.pc("showDetails",!1),i.Db(1),i.pc("disabled",!0))}function oo(e,t){1&e&&(i.Wb(0,"h3"),i.Hc(1,"Error! Unable to find information!"),i.Vb())}var io=function(e){return{"p-24":e}};function ro(e,t){if(1&e&&(i.Wb(0,"mat-grid-tile",8),i.Wb(1,"mat-card",31),i.Fc(2,Za,10,4,"mat-card-header",32),i.Wb(3,"mat-card-content",33),i.Wb(4,"div",34),i.Fc(5,Ka,1,4,"rtl-node-info",35),i.Fc(6,Ya,1,4,"rtl-balances-info",19),i.Fc(7,eo,1,6,"rtl-channel-liquidity-info",36),i.Fc(8,to,1,6,"rtl-channel-liquidity-info",36),i.Fc(9,ao,8,3,"span",37),i.Fc(10,oo,2,0,"h3",23),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.pc("colspan",n.cols)("rowspan",n.rows),i.Db(1),i.pc("ngClass",i.tc(11,io,"transactions"!==n.id)),i.Db(1),i.pc("ngIf","transactions"!==n.id),i.Db(1),i.qc("fxFlex","transactions"!==n.id?95:100),i.Db(1),i.pc("ngSwitch",n.id),i.Db(1),i.pc("ngSwitchCase","node"),i.Db(1),i.pc("ngSwitchCase","balance"),i.Db(1),i.pc("ngSwitchCase","inboundLiq"),i.Db(1),i.pc("ngSwitchCase","outboundLiq"),i.Db(1),i.pc("ngSwitchCase","transactions")}}function co(e,t){if(1&e&&(i.Wb(0,"div",3),i.Rb(1,"fa-icon",4),i.Wb(2,"span",5),i.Hc(3),i.Vb(),i.Vb(),i.Wb(4,"mat-grid-list",30),i.Fc(5,ro,11,13,"mat-grid-tile",7),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("icon",n.faSmile),i.Db(2),i.Jc("Welcome ",n.information.alias,"! Your node is up and running."),i.Db(1),i.pc("rowHeight",n.merchantCardHeight)("ngClass",i.tc(5,Xa,n.screenSize===n.screenSizeEnum.XS||n.screenSize===n.screenSizeEnum.SM)),i.Db(1),i.pc("ngForOf",n.merchantCards)}}var lo=function(){function e(e,t,n,a,o){this.logger=e,this.store=t,this.actions$=n,this.commonService=a,this.router=o,this.faSmile=d.b,this.faFrown=d.a,this.faAngleDoubleDown=m.a,this.faAngleDoubleUp=m.b,this.faChartPie=m.f,this.faBolt=m.e,this.faServer=m.F,this.faNetworkWired=m.x,this.flgChildInfoUpdated=!1,this.userPersonaEnum=g.u,this.activeChannels=0,this.inactiveChannels=0,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:"0"},this.selNode={},this.showLoop=!1,this.information={},this.balances={onchain:-1,lightning:-1,total:0},this.allChannels=[],this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="330px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.screenSizeEnum=g.o,this.flgLoading=[!0,!0,!0,!0,!0,!0,!0,!0],this.unSubs=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goTo:"Routing",link:"/lnd/routing",icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goTo:"Channels",link:"/lnd/peerschannels",icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goTo:"Channels",link:"/lnd/peerschannels",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goTo:"Transactions",link:"/lnd/transactions",title:"",cols:6,rows:6},{id:"inboundLiq",goTo:"Channels",link:"/lnd/peerschannels",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/lnd/peerschannels",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goTo:"Routing",link:"/lnd/routing",icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goTo:"Channels",link:"/lnd/peerschannels",icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goTo:"Channels",link:"/lnd/peerschannels",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goTo:"Transactions",link:"/lnd/transactions",title:"",cols:3,rows:4},{id:"inboundLiq",goTo:"Channels",link:"/lnd/peerschannels",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/lnd/peerschannels",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goTo:"Channels",link:"/lnd/peerschannels",icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goTo:"Routing",link:"/lnd/routing",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goTo:"Channels",link:"/lnd/peerschannels",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/lnd/onchain",icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goTo:"Channels",link:"/lnd/peerschannels",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goTo:"Channels",link:"/lnd/peerschannels",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goTo:"Transactions",link:"/lnd/transactions",title:"",cols:2,rows:5}])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unSubs[1])).subscribe((function(t){e.flgLoading=[!0,!0,!0,!0,!0,!0,!0,!0],t.effectErrors.forEach((function(t){e.flgLoading[0]="FetchInfo"===t.action?"error":e.flgLoading[0],e.flgLoading[1]="FetchFees"===t.action?"error":e.flgLoading[1],e.flgLoading[2]="FetchBalance/channels"===t.action?"error":e.flgLoading[2],e.flgLoading[3]="FetchChannels/all"===t.action?"error":e.flgLoading[3],e.flgLoading[4]="FetchChannels/pending"===t.action?"error":e.flgLoading[4]})),e.flgLoading[0]=!t.information.identity_pubkey&&e.flgLoading[0],e.flgLoading[1]=!t.fees.day_fee_sum&&e.flgLoading[1],e.flgLoading[2]=!(+t.blockchainBalance.total_balance>=0&&t.totalLocalBalance>=0)&&e.flgLoading[2],e.flgLoading[3]=!(t.totalLocalBalance>=0&&t.totalRemoteBalance>=0)&&e.flgLoading[3],e.flgLoading[4]=("error"===e.flgLoading[4]||!t.numberOfPendingChannels)&&e.flgLoading[4],e.selNode=t.nodeSettings,e.showLoop=!(!e.selNode.swapServerUrl||""===e.selNode.swapServerUrl.trim()),e.information=t.information,e.fees=t.fees,e.balances.onchain=+t.blockchainBalance.total_balance>=0?+t.blockchainBalance.total_balance:0;var n=t.totalLocalBalance?+t.totalLocalBalance:0,a=t.totalRemoteBalance?+t.totalRemoteBalance:0;e.channelBalances={localBalance:n,remoteBalance:a,balancedness:(1-Math.abs((n-a)/(n+a))).toFixed(3)},e.balances.lightning=t.totalLocalBalance,e.balances.total=e.balances.lightning+e.balances.onchain,e.balances=Object.assign({},e.balances),e.activeChannels=t.numberOfActiveChannels,e.inactiveChannels=t.numberOfInactiveChannels,e.channelsStatus={active:{channels:t.numberOfActiveChannels,capacity:t.totalCapacityActive},inactive:{channels:t.numberOfInactiveChannels,capacity:t.totalCapacityInactive},pending:{channels:t.numberOfPendingChannels.open.num_channels,capacity:t.numberOfPendingChannels.open.limbo_balance},closing:{channels:t.numberOfPendingChannels.closing.num_channels+t.numberOfPendingChannels.force_closing.num_channels+t.numberOfPendingChannels.waiting_close.num_channels,capacity:t.numberOfPendingChannels.total_limbo_balance}},e.totalInboundLiquidity=0,e.totalOutboundLiquidity=0,e.allChannels=t.allChannels.filter((function(e){return!0===e.active})),e.allChannelsCapacity=JSON.parse(JSON.stringify(e.commonService.sortDescByKey(e.allChannels,"balancedness"))),e.allInboundChannels=JSON.parse(JSON.stringify(e.commonService.sortDescByKey(e.allChannels.filter((function(e){return e.remote_balance>0})),"remote_balance"))),e.allOutboundChannels=JSON.parse(JSON.stringify(e.commonService.sortDescByKey(e.allChannels.filter((function(e){return e.local_balance>0})),"local_balance"))),e.allChannels.forEach((function(t){e.totalInboundLiquidity=e.totalInboundLiquidity+ +t.remote_balance,e.totalOutboundLiquidity=e.totalOutboundLiquidity+ +t.local_balance})),e.flgChildInfoUpdated=e.balances.lightning>=0&&e.balances.onchain>=0&&e.fees.month_fee_sum>=0,e.logger.info(t)})),this.actions$.pipe(Object(u.a)(this.unSubs[2]),Object(p.a)((function(e){return e.type===y.r||e.type===y.Bb}))).subscribe((function(t){t.type===y.r&&(e.flgChildInfoUpdated=!1),t.type===y.Bb&&(e.flgChildInfoUpdated=!0)}))},e.prototype.onNavigateTo=function(e){this.router.navigateByUrl(e)},e.prototype.onsortChannelsBy=function(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort((function(e,t){var n=+e.local_balance+ +e.remote_balance,a=+t.local_balance+ +t.remote_balance;return n>a?-1:nn?1:0})),this.filteredPeers=this.selectedPeer.valueChanges.pipe(Object(u.a)(this.unSubs[1]),Object(so.a)(""),Object(bo.a)((function(e){return"string"==typeof e?e:e.alias?e.alias:e.pub_key})),Object(bo.a)((function(t){return t?e.filterPeers(t):e.sortedPeers.slice()})))},e.prototype.filterPeers=function(e){return this.sortedPeers.filter((function(t){return 0===t.alias.toLowerCase().indexOf(e?e.toLowerCase():"")}))},e.prototype.displayFn=function(e){return e&&e.alias?e.alias:e&&e.pub_key?e.pub_key:""},e.prototype.onSelectedPeerChanged=function(){var e=this;if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.pub_key?this.selectedPeer.value.pub_key:void 0,"string"==typeof this.selectedPeer.value){var t=this.peers.filter((function(t){return t.alias.length===e.selectedPeer.value.length&&0===t.alias.toLowerCase().indexOf(e.selectedPeer.value?e.selectedPeer.value.toLowerCase():"")}));1===t.length&&t[0].pub_key&&(this.selectedPubkey=t[0].pub_key)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)},e.prototype.onClose=function(){this.dialogRef.close(!1)},e.prototype.resetData=function(){this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.spendUnconfirmed=!1,this.selTransType="0",this.transTypeValue="",this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()},e.prototype.onOpenChannel=function(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||("1"===this.selTransType||"2"===this.selTransType)&&!this.transTypeValue)return!0;this.store.dispatch(new J.F("Opening Channel...")),this.store.dispatch(new y.Sb({selectedPeerPubkey:this.peer&&this.peer.pub_key?this.peer.pub_key:this.selectedPubkey,fundingAmount:this.fundingAmount,private:this.isPrivate,transType:this.selTransType,transTypeValue:this.transTypeValue,spendUnconfirmed:this.spendUnconfirmed}))},e.prototype.onAdvancedPanelToggle=function(e){this.advancedTitle=e?"Advanced Options | "+("1"===this.selTransType?"Target Confirmation Blocks: ":"2"===this.selTransType?"Fee (Sats/Byte): ":"Default")+("1"===this.selTransType||"2"===this.selTransType?this.transTypeValue:"")+" | Spend Unconfirmed Output: "+(this.spendUnconfirmed?"Yes":"No"):"Advanced Options"},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(j.f),i.Qb(j.a),i.Qb(C.h),i.Qb(v.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-open-channel"]],viewQuery:function(e,t){var n;1&e&&i.Mc(mo,!0),2&e&&i.vc(n=i.fc())&&(t.form=n.first)},decls:25,vars:5,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["openChannelBlock",""],["fxFlex","100"],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","step","1000","min","1","tabindex","1","required","","name","amount",3,"ngModel","max","ngModelChange"],["amount","ngModel"],["matSuffix",""],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","49"],["tabindex","3",3,"value","valueChange"],["matInput","","type","number","step","1","min","0","tabindex","4","name","transTypeValue",3,"ngModel","required","disabled","placeholder","ngModelChange"],["transTypeVal","ngModel"],["fxFlex","50","fxLayoutAlign","start center"],["tabindex","6","color","primary","name","spendUnconfirmed",3,"ngModel","ngModelChange"]],template:function(e,t){if(1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Wb(2,"mat-card-header",2),i.Wb(3,"div",3),i.Wb(4,"span",4),i.Hc(5),i.Vb(),i.Vb(),i.Wb(6,"button",5),i.ec("click",(function(){return t.onClose()})),i.Hc(7,"X"),i.Vb(),i.Vb(),i.Wb(8,"mat-card-content",6),i.Wb(9,"form",7,8),i.ec("submit",(function(){return t.onOpenChannel()}))("reset",(function(){return t.resetData()})),i.Wb(11,"div",9),i.Fc(12,yo,8,8,"mat-form-field",10),i.Vb(),i.Fc(13,Co,1,0,"ng-container",11),i.Fc(14,vo,1,0,"ng-container",11),i.Fc(15,wo,3,2,"div",12),i.Wb(16,"div",13),i.Wb(17,"button",14),i.Hc(18,"Clear Fields"),i.Vb(),i.Wb(19,"button",15),i.Hc(20,"Open Channel"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Fc(21,Vo,1,1,"ng-template",null,16,i.Gc),i.Fc(23,_o,33,19,"ng-template",null,17,i.Gc)),2&e){var n=i.wc(22),a=i.wc(24);i.Db(5),i.Ic(t.alertTitle),i.Db(7),i.pc("ngIf",!t.peer&&t.peers&&t.peers.length>0),i.Db(1),i.pc("ngTemplateOutlet",n),i.Db(1),i.pc("ngTemplateOutlet",a),i.Db(1),i.pc("ngIf",""!==t.channelConnectionError)}},directives:[x.c,x.a,W.c,x.b,D.a,W.b,U.t,U.m,U.n,a.n,a.s,se.a,A.c,le.b,U.b,uo.c,U.r,U.l,U.e,uo.a,a.m,Pt.n,A.b,w.a,K.c,K.e,K.f,P.a,U.p,At.a,po.a,U.o,A.f,A.g,be.a,Ot.a],pipes:[a.b,a.e],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),e}(),ko=n("qmev"),Io=n("KELG"),Ho=n("dEYt");function To(e,t){if(1&e&&(i.Wb(0,"div"),i.Rb(1,"mat-divider",13),i.Wb(2,"div",9),i.Wb(3,"div",15),i.Wb(4,"h4",11),i.Hc(5,"Commit Fee"),i.Vb(),i.Wb(6,"span",16),i.Hc(7),i.jc(8,"number"),i.Vb(),i.Vb(),i.Wb(9,"div",15),i.Wb(10,"h4",11),i.Hc(11,"Commit Weight"),i.Vb(),i.Wb(12,"span",16),i.Hc(13),i.jc(14,"number"),i.Vb(),i.Vb(),i.Wb(15,"div",15),i.Wb(16,"h4",11),i.Hc(17,"Fee/KW"),i.Vb(),i.Wb(18,"span",16),i.Hc(19),i.jc(20,"number"),i.Vb(),i.Vb(),i.Wb(21,"div",15),i.Wb(22,"h4",11),i.Hc(23,"Static Remote Key"),i.Vb(),i.Wb(24,"span",16),i.Hc(25),i.Vb(),i.Vb(),i.Vb(),i.Rb(26,"mat-divider",13),i.Wb(27,"div",9),i.Wb(28,"div",15),i.Wb(29,"h4",11),i.Hc(30),i.Vb(),i.Wb(31,"span",16),i.Hc(32),i.jc(33,"number"),i.Vb(),i.Vb(),i.Wb(34,"div",15),i.Wb(35,"h4",11),i.Hc(36),i.Vb(),i.Wb(37,"span",16),i.Hc(38),i.jc(39,"number"),i.Vb(),i.Vb(),i.Wb(40,"div",15),i.Wb(41,"h4",11),i.Hc(42,"Unsettled Balance"),i.Vb(),i.Wb(43,"span",16),i.Hc(44),i.jc(45,"number"),i.Vb(),i.Vb(),i.Wb(46,"div",15),i.Wb(47,"h4",11),i.Hc(48,"CSV Delay"),i.Vb(),i.Wb(49,"span",16),i.Hc(50),i.jc(51,"number"),i.Vb(),i.Vb(),i.Vb(),i.Rb(52,"mat-divider",13),i.Wb(53,"div",9),i.Wb(54,"div",15),i.Wb(55,"h4",11),i.Hc(56,"Local Reserve (Sats)"),i.Vb(),i.Wb(57,"span",16),i.Hc(58),i.jc(59,"number"),i.Vb(),i.Vb(),i.Wb(60,"div",15),i.Wb(61,"h4",11),i.Hc(62,"Remote Reserve (Sats)"),i.Vb(),i.Wb(63,"span",16),i.Hc(64),i.jc(65,"number"),i.Vb(),i.Vb(),i.Wb(66,"div",15),i.Wb(67,"h4",11),i.Hc(68,"Lifetime (Seconds)"),i.Vb(),i.Wb(69,"span",16),i.Hc(70),i.jc(71,"number"),i.Vb(),i.Vb(),i.Wb(72,"div",15),i.Wb(73,"h4",11),i.Hc(74,"Pending HTLCs"),i.Vb(),i.Wb(75,"span",16),i.Hc(76),i.jc(77,"number"),i.Vb(),i.Vb(),i.Vb(),i.Rb(78,"mat-divider",13),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("inset",!0),i.Db(6),i.Ic(i.kc(8,18,n.channel.commit_fee)),i.Db(6),i.Ic(i.kc(14,20,n.channel.commit_weight)),i.Db(6),i.Ic(i.kc(20,22,n.channel.fee_per_kw)),i.Db(6),i.Ic(n.channel.static_remote_key?"Yes":"No"),i.Db(1),i.pc("inset",!0),i.Db(4),i.Ic(n.screenSize===n.screenSizeEnum.XS?"Total Sats Sent":"Total Satoshis Sent"),i.Db(2),i.Ic(i.kc(33,24,n.channel.total_satoshis_sent)),i.Db(4),i.Ic(n.screenSize===n.screenSizeEnum.XS?"Total Sats Recv":"Total Satoshis Received"),i.Db(2),i.Ic(i.kc(39,26,n.channel.total_satoshis_received)),i.Db(6),i.Ic(i.kc(45,28,n.channel.unsettled_balance)),i.Db(6),i.Ic(i.kc(51,30,n.channel.csv_delay)),i.Db(2),i.pc("inset",!0),i.Db(6),i.Ic(i.kc(59,32,n.channel.local_chan_reserve_sat)),i.Db(6),i.Ic(i.kc(65,34,n.channel.remote_chan_reserve_sat)),i.Db(6),i.Ic(i.kc(71,36,n.channel.lifetime)),i.Db(6),i.Ic(i.kc(77,38,null==n.channel||null==n.channel.pending_htlcs?null:n.channel.pending_htlcs.length)),i.Db(2),i.pc("inset",!0)}}function Ao(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"Show Advanced"),i.Vb())}function Oo(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"Hide Advanced"),i.Vb())}function Po(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",24),i.ec("copied",(function(e){return i.yc(n),i.ic().onCopyChanID(e)})),i.Hc(1,"Copy Channel ID"),i.Vb()}if(2&e){var a=i.ic();i.pc("payload",a.channel.chan_id)}}function Mo(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",25),i.ec("click",(function(){return i.yc(n),i.ic().onClose()})),i.Hc(1,"OK"),i.Vb()}}var Eo=function(e){return{"xs-scroll-y":e}},Go=function(e,t){return{"mt-2":e,"mt-1":t}},No=function(){function e(e,t,n,a,o){this.dialogRef=e,this.data=t,this.logger=n,this.commonService=a,this.snackBar=o,this.faReceipt=m.C,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=g.o}return e.prototype.ngOnInit=function(){this.channel=this.data.channel,this.showCopy=this.data.showCopy,this.screenSize=this.commonService.getScreenSize()},e.prototype.onClose=function(){this.dialogRef.close(!1)},e.prototype.onShowAdvanced=function(){this.showAdvanced=!this.showAdvanced},e.prototype.onCopyChanID=function(e){this.snackBar.open("Channel ID "+e+" copied."),this.logger.info("Copied Text: "+e)},e.\u0275fac=function(t){return new(t||e)(i.Qb(j.f),i.Qb(j.a),i.Qb(f.b),i.Qb(h.a),i.Qb(Io.b))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-channel-information"]],decls:93,vars:39,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"padding-gap-large","pl-3"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-1"],["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"],[3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","100"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(e,t){if(1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Wb(2,"mat-card-header",2),i.Wb(3,"div",3),i.Rb(4,"fa-icon",4),i.Wb(5,"span",5),i.Hc(6,"Channel Information"),i.Vb(),i.Vb(),i.Wb(7,"button",6),i.ec("click",(function(){return t.onClose()})),i.Hc(8,"X"),i.Vb(),i.Vb(),i.Wb(9,"mat-card-content",7),i.Wb(10,"div",8),i.Wb(11,"div",9),i.Wb(12,"div",10),i.Wb(13,"h4",11),i.Hc(14,"Channel ID"),i.Vb(),i.Wb(15,"span",12),i.Hc(16),i.Vb(),i.Vb(),i.Wb(17,"div",10),i.Wb(18,"h4",11),i.Hc(19,"Peer Alias"),i.Vb(),i.Wb(20,"span",12),i.Hc(21),i.Vb(),i.Vb(),i.Vb(),i.Rb(22,"mat-divider",13),i.Wb(23,"div",9),i.Wb(24,"div",14),i.Wb(25,"h4",11),i.Hc(26,"Channel Point"),i.Vb(),i.Wb(27,"span",12),i.Hc(28),i.Vb(),i.Vb(),i.Vb(),i.Rb(29,"mat-divider",13),i.Wb(30,"div",9),i.Wb(31,"div",14),i.Wb(32,"h4",11),i.Hc(33,"Peer Public Key"),i.Vb(),i.Wb(34,"span",12),i.Hc(35),i.Vb(),i.Vb(),i.Vb(),i.Rb(36,"mat-divider",13),i.Wb(37,"div",9),i.Wb(38,"div",15),i.Wb(39,"h4",11),i.Hc(40,"Local Balance"),i.Vb(),i.Wb(41,"span",16),i.Hc(42),i.jc(43,"number"),i.Vb(),i.Vb(),i.Wb(44,"div",15),i.Wb(45,"h4",11),i.Hc(46,"Remote Balance"),i.Vb(),i.Wb(47,"span",16),i.Hc(48),i.jc(49,"number"),i.Vb(),i.Vb(),i.Wb(50,"div",15),i.Wb(51,"h4",11),i.Hc(52,"Capacity"),i.Vb(),i.Wb(53,"span",16),i.Hc(54),i.jc(55,"number"),i.Vb(),i.Vb(),i.Wb(56,"div",15),i.Wb(57,"h4",11),i.Hc(58,"Uptime (Seconds)"),i.Vb(),i.Wb(59,"span",16),i.Hc(60),i.jc(61,"number"),i.Vb(),i.Vb(),i.Vb(),i.Rb(62,"mat-divider",13),i.Wb(63,"div",9),i.Wb(64,"div",15),i.Wb(65,"h4",11),i.Hc(66,"Active"),i.Vb(),i.Wb(67,"span",16),i.Hc(68),i.Vb(),i.Vb(),i.Wb(69,"div",15),i.Wb(70,"h4",11),i.Hc(71,"Private"),i.Vb(),i.Wb(72,"span",16),i.Hc(73),i.Vb(),i.Vb(),i.Wb(74,"div",15),i.Wb(75,"h4",11),i.Hc(76,"Initiator"),i.Vb(),i.Wb(77,"span",16),i.Hc(78),i.Vb(),i.Vb(),i.Wb(79,"div",15),i.Wb(80,"h4",11),i.Hc(81,"Number of Updates"),i.Vb(),i.Wb(82,"span",16),i.Hc(83),i.jc(84,"number"),i.Vb(),i.Vb(),i.Vb(),i.Fc(85,To,79,40,"div",17),i.Wb(86,"div",18),i.Wb(87,"button",19),i.ec("click",(function(){return t.onShowAdvanced()})),i.Fc(88,Ao,2,0,"p",20),i.Fc(89,Oo,2,0,"ng-template",null,21,i.Gc),i.Vb(),i.Fc(91,Po,2,1,"button",22),i.Fc(92,Mo,2,0,"button",23),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e){var n=i.wc(90);i.Db(4),i.pc("icon",t.faReceipt),i.Db(5),i.pc("ngClass",i.tc(34,Eo,t.screenSize===t.screenSizeEnum.XS)),i.Db(7),i.Ic(t.channel.chan_id),i.Db(5),i.Ic(t.channel.remote_alias),i.Db(1),i.pc("inset",!0),i.Db(6),i.Ic(t.channel.channel_point),i.Db(1),i.pc("inset",!0),i.Db(6),i.Ic(t.channel.remote_pubkey),i.Db(1),i.pc("inset",!0),i.Db(6),i.Ic(i.kc(43,24,t.channel.local_balance)),i.Db(6),i.Ic(i.kc(49,26,t.channel.remote_balance)),i.Db(6),i.Ic(i.kc(55,28,t.channel.capacity)),i.Db(6),i.Ic(i.kc(61,30,t.channel.uptime)),i.Db(2),i.pc("inset",!0),i.Db(6),i.Ic(t.channel.active?"Yes":"No"),i.Db(5),i.Ic(t.channel.private?"Yes":"No"),i.Db(5),i.Ic(t.channel.initiator?"Yes":"No"),i.Db(5),i.Ic(i.kc(84,32,t.channel.num_updates)),i.Db(2),i.pc("ngIf",t.showAdvanced),i.Db(1),i.pc("ngClass",i.uc(36,Go,!t.showAdvanced,t.showAdvanced)),i.Db(2),i.pc("ngIf",!t.showAdvanced)("ngIfElse",n),i.Db(3),i.pc("ngIf",t.showCopy),i.Db(1),i.pc("ngIf",!t.showCopy)}},directives:[x.c,x.b,x.a,W.c,w.a,D.a,W.b,a.l,V.a,P.a,a.n,se.a,Ho.a],pipes:[a.e],styles:[""]}),e}(),zo=["stepper"];function Bo(e,t){if(1&e&&i.Hc(0),2&e){var n=i.ic();i.Ic(n.inputFormLabel)}}function qo(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Amount is required."),i.Vb())}function Uo(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Amount must be a positive number."),i.Vb())}function jo(e,t){if(1&e&&(i.Wb(0,"mat-error"),i.Hc(1),i.Vb()),2&e){var n=i.ic();i.Db(1),i.Jc("Amount must be less than or equal to ",null==n.selChannel?null:n.selChannel.local_balance,".")}}function Qo(e,t){if(1&e&&(i.Wb(0,"mat-option",54),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.pc("value",n),i.Db(1),i.Jc(" ",n.remote_alias||n.chan_id," ")}}function Xo(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Peer is required."),i.Vb())}function $o(e,t){if(1&e&&i.Hc(0),2&e){var n=i.ic();i.Ic(n.feeFormLabel)}}function Jo(e,t){if(1&e&&(i.Wb(0,"mat-option",54),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.pc("value",n),i.Db(1),i.Jc(" ",n.name," ")}}function Zo(e,t){if(1&e&&(i.Wb(0,"mat-error"),i.Hc(1),i.Vb()),2&e){var n=i.ic();i.Db(1),i.Jc("",n.feeFormGroup.controls.selFeeLimitType.value?n.feeFormGroup.controls.selFeeLimitType.value.placeholder:n.feeLimitTypes[0].placeholder," is required.")}}function Ko(e,t){if(1&e&&(i.Wb(0,"mat-error"),i.Hc(1),i.Vb()),2&e){var n=i.ic();i.Db(1),i.Jc("",n.feeFormGroup.controls.selFeeLimitType.value?n.feeFormGroup.controls.selFeeLimitType.value.placeholder:n.feeLimitTypes[0].placeholder," must be a positive number.")}}function Yo(e,t){1&e&&i.Hc(0,"Invoice/Payment")}function ei(e,t){1&e&&(i.Wb(0,"mat-icon",55),i.Hc(1,"check"),i.Vb())}function ti(e,t){1&e&&i.Rb(0,"mat-progress-bar",56)}function ni(e,t){if(1&e&&(i.Wb(0,"mat-icon",55),i.Hc(1),i.Vb()),2&e){var n=i.ic();i.Db(1),i.Ic(null!=n.paymentStatus&&n.paymentStatus.error?"close":"check")}}function ai(e,t){1&e&&i.Rb(0,"div",7)}function oi(e,t){1&e&&i.Rb(0,"mat-progress-bar",56)}function ii(e,t){if(1&e&&(i.Wb(0,"h4",57),i.Hc(1),i.Vb()),2&e){var n=i.ic();i.Db(1),i.Ic(n.paymentStatus&&n.paymentStatus.payment_hash?"Rebalance Successful.":"Rebalance Failed.")}}function ri(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",58),i.ec("click",(function(){return i.yc(n),i.ic().onRestart()})),i.Hc(1,"Start Again"),i.Vb()}}function ci(e,t){1&e&&i.Sb(0)}function li(e,t){if(1&e&&i.Fc(0,ci,1,0,"ng-container",59),2&e){var n=i.ic(),a=i.wc(109),o=i.wc(111);i.pc("ngTemplateOutlet",n.paymentStatus.error?a:o)}}function si(e,t){if(1&e&&(i.Wb(0,"div",7),i.Wb(1,"span",42),i.Hc(2),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(2),i.Ic("Error: "+(n.paymentStatus.error.error.error?n.paymentStatus.error.error.error:n.paymentStatus.error.error?n.paymentStatus.error.error:n.paymentStatus.error?n.paymentStatus.error:"Unknown"))}}function bi(e,t){if(1&e&&(i.Wb(0,"div",7),i.Wb(1,"div",0),i.Wb(2,"div",60),i.Wb(3,"h4",61),i.Hc(4,"Payment Hash"),i.Vb(),i.Wb(5,"span",42),i.Hc(6),i.Vb(),i.Vb(),i.Vb(),i.Rb(7,"mat-divider",62),i.Wb(8,"div",0),i.Wb(9,"div",63),i.Wb(10,"h4",61),i.Hc(11),i.Vb(),i.Wb(12,"span",42),i.Hc(13),i.Vb(),i.Vb(),i.Wb(14,"div",63),i.Wb(15,"h4",61),i.Hc(16,"Number of Hops"),i.Vb(),i.Wb(17,"span",42),i.Hc(18),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(6),i.Ic(n.paymentStatus.payment_hash),i.Db(5),i.Jc("Total Fees (",n.paymentStatus.payment_route.total_fees_msat?"mSats":"Sats",")"),i.Db(2),i.Ic(n.paymentStatus.payment_route.total_fees_msat?n.paymentStatus.payment_route.total_fees_msat:n.paymentStatus.payment_route.total_fees?n.paymentStatus.payment_route.total_fees:0),i.Db(5),i.Ic(n.paymentStatus&&n.paymentStatus.payment_route&&n.paymentStatus.payment_route.hops&&n.paymentStatus.payment_route.hops.length?n.paymentStatus.payment_route.hops.length:0)}}var ui=function(){function e(e,t,n,a,o,i,r){this.dialogRef=e,this.data=t,this.logger=n,this.store=a,this.actions$=o,this.formBuilder=i,this.decimalPipe=r,this.faInfoCircle=m.s,this.invoices={},this.selChannel={},this.activeChannels=[],this.filteredActiveChannels=[],this.feeLimitTypes=[],this.queryRoute={},this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1,this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee",this.flgEditable=!0,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.selChannel=this.data.channel,g.i.forEach((function(t,n){n>0&&e.feeLimitTypes.push(t)})),this.inputFormGroup=this.formBuilder.group({hiddenAmount:["",[U.s.required]],rebalanceAmount:["",[U.s.required,U.s.min(1),U.s.max(this.selChannel.local_balance)]],selRebalancePeer:[null,U.s.required]}),this.feeFormGroup=this.formBuilder.group({selFeeLimitType:[this.feeLimitTypes[0],U.s.required],feeLimit:["",[U.s.required,U.s.min(0)]],hiddenFeeLimit:["",[U.s.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.activeChannels=t.allChannels.filter((function(t){return t.active&&t.remote_balance>=e.inputFormGroup.controls.rebalanceAmount.value&&t.chan_id!==e.selChannel.chan_id})),e.invoices=t.invoices,e.logger.info(t)})),this.actions$.pipe(Object(u.a)(this.unSubs[1]),Object(p.a)((function(e){return e.type===y.Nb||e.type===y.ub||e.type===y.eb}))).subscribe((function(t){t.type===y.Nb&&(e.queryRoute=t.payload),t.type===y.ub&&(e.logger.info(t.payload),e.flgPaymentSent=!0,e.paymentStatus=t.payload,e.flgEditable=!0),t.type===y.eb&&(e.logger.info(t.payload),e.flgInvoiceGenerated=!0,e.sendPayment(t.payload.paymentRequest))}))},e.prototype.onEstimateFee=function(){if(!this.inputFormGroup.controls.selRebalancePeer.value||!this.inputFormGroup.controls.rebalanceAmount.value)return!0;0===this.stepper.selectedIndex&&(this.inputFormGroup.controls.hiddenAmount.setValue(this.inputFormGroup.controls.rebalanceAmount.value),this.stepper.next()),this.queryRoute=null,this.feeFormGroup.reset(),this.feeFormGroup.controls.selFeeLimitType.setValue(this.feeLimitTypes[0]),this.store.dispatch(new y.Y({destPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,amount:this.inputFormGroup.controls.rebalanceAmount.value,outgoingChanId:this.selChannel.chan_id}))},e.prototype.stepSelectionChanged=function(e){switch(e.selectedIndex){case 0:this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel=this.queryRoute&&this.queryRoute.routes&&this.queryRoute.routes.length>0&&(this.queryRoute.routes[0].total_fees_msat||this.queryRoute.routes[0].hops&&this.queryRoute.routes[0].hops.length)?this.feeFormGroup.controls.selFeeLimitType.value.placeholder+": "+this.decimalPipe.transform(this.feeFormGroup.controls.feeLimit.value?this.feeFormGroup.controls.feeLimit.value:0)+" | Hops: "+this.queryRoute.routes[0].hops.length:"Select rebalance fee";break;default:this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee"}e.selectedIndex0&&this.queryRoute.routes[0].total_fees_msat?Math.ceil(+this.queryRoute.routes[0].total_fees_msat/1e3):0)},e.prototype.onRebalance=function(){if(!this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.rebalanceAmount.value<=0||this.inputFormGroup.controls.rebalanceAmount.value>+this.selChannel.local_balance||!this.feeFormGroup.controls.feeLimit.value||this.feeFormGroup.controls.feeLimit.value<0||!this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey)return!0;this.feeFormGroup.controls.hiddenFeeLimit.setValue(this.feeFormGroup.controls.feeLimit.value),this.stepper.next(),this.flgEditable=!1,this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1;var e=this.findUnsettledInvoice();e?(this.flgReusingInvoice=!0,this.sendPayment(e.payment_request)):this.store.dispatch(new y.Tb({memo:"Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats",invoiceValue:this.inputFormGroup.controls.rebalanceAmount.value,private:!1,expiry:3600,pageSize:g.m,openModal:!1}))},e.prototype.findUnsettledInvoice=function(){var e=this;return this.invoices.invoices.find((function(t){return("0"===t.settle_date||""===t.settle_date||!t.settle_date)&&t.memo==="Local-Rebalance-"+e.inputFormGroup.controls.rebalanceAmount.value+"-Sats"&&"CANCELED"!==t.state}))},e.prototype.sendPayment=function(e){this.flgInvoiceGenerated=!0,this.paymentRequest=e,this.store.dispatch(new y.Vb({paymentReq:e,paymentDecoded:{},zeroAmtInvoice:!1,outgoingChannel:this.selChannel,feeLimitType:this.feeFormGroup.controls.selFeeLimitType.value,feeLimit:this.feeFormGroup.controls.feeLimit.value,allowSelfPayment:!0,lastHopPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0}))},e.prototype.filterActiveChannels=function(){var e=this;this.filteredActiveChannels=this.activeChannels.filter((function(t){return t.remote_balance>=e.inputFormGroup.controls.rebalanceAmount.value&&t.chan_id!==e.selChannel.chan_id}))},e.prototype.onClose=function(){this.dialogRef.close(!1)},e.prototype.onRestart=function(){this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1,this.flgEditable=!0,this.stepper.reset(),this.inputFormGroup.reset(),this.feeFormGroup.reset(),this.statusFormGroup.reset()},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(j.f),i.Qb(j.a),i.Qb(f.b),i.Qb(C.h),i.Qb(v.a),i.Qb(U.c),i.Qb(a.e))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-channel-rebalance"]],viewQuery:function(e,t){var n;1&e&&i.Mc(zo,!0),2&e&&i.vc(n=i.fc())&&(t.stepper=n.first)},decls:112,vars:41,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start",1,"padding-gap-x-large"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"mt-5px"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","step","100","tabindex","1","formControlName","rebalanceAmount","required","",3,"change"],["matSuffix",""],[4,"ngIf"],["fxFlex","48","fxLayoutAlign","start end"],["tabindex","2","formControlName","selRebalancePeer","placeholder","Receive from Peer","required",""],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","submit",3,"click"],["matStepLabel","","disabled","true"],["fxFlex","75",1,"alert"],["mat-stroked-button","","type","button","tabindex","4","matTooltip","Re-estimate Fee",1,"h-35px",3,"click"],[1,"mb-5px"],["mat-stroked-button","","type","button","tabindex","5",1,"h-35px",3,"click"],["tabindex","6","formControlName","selFeeLimitType","Placeholder","Fee Limits","required",""],["matInput","","formControlName","feeLimit","type","number","step","1","tabindex","7","required","",3,"placeholder"],["mat-stroked-button","","color","primary","tabindex","8","type","submit",3,"click"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel","mb-2"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[1,"foreground-secondary-text"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayoutAlign","start","class","font-bold-500 mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],[3,"value"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","button",3,"click"],[4,"ngTemplateOutlet"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","50"]],template:function(e,t){if(1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Wb(2,"mat-card-header",2),i.Wb(3,"div",3),i.Wb(4,"span",4),i.Hc(5,"Channel Rebalance"),i.Vb(),i.Vb(),i.Wb(6,"button",5),i.ec("click",(function(){return t.onClose()})),i.Hc(7,"X"),i.Vb(),i.Vb(),i.Wb(8,"mat-card-content",6),i.Wb(9,"div",7),i.Wb(10,"div",8),i.Wb(11,"div",9),i.Rb(12,"fa-icon",10),i.Wb(13,"span"),i.Hc(14,"Circular Rebalance is a payment you make to *yourselves* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner."),i.Vb(),i.Vb(),i.Vb(),i.Wb(15,"div",11),i.Wb(16,"p",12),i.Wb(17,"strong"),i.Hc(18,"Channel Peer:\xa0"),i.Vb(),i.Hc(19),i.jc(20,"titlecase"),i.Vb(),i.Wb(21,"p",13),i.Wb(22,"strong"),i.Hc(23,"Channel ID:\xa0"),i.Vb(),i.Hc(24),i.Vb(),i.Rb(25,"p",13),i.Vb(),i.Wb(26,"mat-vertical-stepper",14,15),i.ec("selectionChange",(function(e){return t.stepSelectionChanged(e)})),i.Wb(28,"mat-step",16),i.Wb(29,"form",17),i.Fc(30,Bo,1,1,"ng-template",18),i.Wb(31,"div",19),i.Wb(32,"mat-form-field",20),i.Wb(33,"input",21),i.ec("change",(function(){return t.filterActiveChannels()})),i.Vb(),i.Wb(34,"mat-hint"),i.Hc(35),i.Vb(),i.Wb(36,"span",22),i.Hc(37,"Sats"),i.Vb(),i.Fc(38,qo,2,0,"mat-error",23),i.Fc(39,Uo,2,0,"mat-error",23),i.Fc(40,jo,2,1,"mat-error",23),i.Vb(),i.Wb(41,"mat-form-field",24),i.Wb(42,"mat-select",25),i.Fc(43,Qo,2,2,"mat-option",26),i.Vb(),i.Fc(44,Xo,2,0,"mat-error",23),i.Vb(),i.Vb(),i.Wb(45,"div",27),i.Wb(46,"button",28),i.ec("click",(function(){return t.onEstimateFee()})),i.Hc(47,"Estimate Fee"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Wb(48,"mat-step",16),i.Wb(49,"form",17),i.Fc(50,$o,1,1,"ng-template",29),i.Wb(51,"div",19),i.Wb(52,"div",19),i.Wb(53,"div",30),i.Rb(54,"fa-icon",10),i.Wb(55,"span"),i.Wb(56,"strong"),i.Hc(57,"Estimated Fee: "),i.Vb(),i.Hc(58),i.Wb(59,"strong"),i.Hc(60,"Number of Hops: "),i.Vb(),i.Hc(61),i.Vb(),i.Vb(),i.Wb(62,"button",31),i.ec("click",(function(){return t.onEstimateFee()})),i.Wb(63,"mat-icon",32),i.Hc(64,"loop"),i.Vb(),i.Vb(),i.Wb(65,"button",33),i.ec("click",(function(){return t.onUseEstimate()})),i.Hc(66,"Use Estimate"),i.Vb(),i.Vb(),i.Wb(67,"div",19),i.Wb(68,"mat-form-field",24),i.Wb(69,"mat-select",34),i.Fc(70,Jo,2,2,"mat-option",26),i.Vb(),i.Vb(),i.Wb(71,"mat-form-field",20),i.Rb(72,"input",35),i.Fc(73,Zo,2,1,"mat-error",23),i.Fc(74,Ko,2,1,"mat-error",23),i.Vb(),i.Vb(),i.Vb(),i.Wb(75,"div",27),i.Wb(76,"button",36),i.ec("click",(function(){return t.onRebalance()})),i.Hc(77,"Rebalance"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Wb(78,"mat-step",37),i.Wb(79,"form",17),i.Fc(80,Yo,1,0,"ng-template",18),i.Wb(81,"div",38),i.Wb(82,"mat-expansion-panel",39),i.Wb(83,"mat-expansion-panel-header"),i.Wb(84,"mat-panel-title"),i.Wb(85,"span",40),i.Hc(86),i.Fc(87,ei,2,0,"mat-icon",41),i.Vb(),i.Vb(),i.Vb(),i.Wb(88,"div",7),i.Wb(89,"span",42),i.Hc(90),i.Vb(),i.Vb(),i.Vb(),i.Fc(91,ti,1,0,"mat-progress-bar",43),i.Wb(92,"mat-expansion-panel",44),i.Wb(93,"mat-expansion-panel-header"),i.Wb(94,"mat-panel-title"),i.Wb(95,"span",40),i.Hc(96),i.Fc(97,ni,2,1,"mat-icon",41),i.Vb(),i.Vb(),i.Vb(),i.Fc(98,ai,1,0,"div",45),i.Vb(),i.Fc(99,oi,1,0,"mat-progress-bar",43),i.Vb(),i.Fc(100,ii,2,1,"h4",46),i.Wb(101,"div",47),i.Fc(102,ri,2,0,"button",48),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Wb(103,"div",49),i.Wb(104,"button",50),i.Hc(105,"Close"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Fc(106,li,1,1,"ng-template",null,51,i.Gc),i.Fc(108,si,3,1,"ng-template",null,52,i.Gc),i.Fc(110,bi,19,4,"ng-template",null,53,i.Gc)),2&e){var n=i.wc(107);i.Db(12),i.pc("icon",t.faInfoCircle),i.Db(7),i.Ic(i.kc(20,39,t.selChannel.remote_alias)),i.Db(5),i.Ic(t.selChannel.chan_id),i.Db(2),i.pc("linear",!0),i.Db(2),i.pc("stepControl",t.inputFormGroup)("editable",t.flgEditable),i.Db(1),i.pc("formGroup",t.inputFormGroup),i.Db(6),i.Kc("(Local Bal: ",null==t.selChannel?null:t.selChannel.local_balance,", Remaining: ",(null==t.selChannel?null:t.selChannel.local_balance)-(t.inputFormGroup.controls.rebalanceAmount.value?t.inputFormGroup.controls.rebalanceAmount.value:0),")"),i.Db(3),i.pc("ngIf",null==t.inputFormGroup.controls.rebalanceAmount.errors?null:t.inputFormGroup.controls.rebalanceAmount.errors.required),i.Db(1),i.pc("ngIf",null==t.inputFormGroup.controls.rebalanceAmount.errors?null:t.inputFormGroup.controls.rebalanceAmount.errors.min),i.Db(1),i.pc("ngIf",null==t.inputFormGroup.controls.rebalanceAmount.errors?null:t.inputFormGroup.controls.rebalanceAmount.errors.max),i.Db(3),i.pc("ngForOf",t.filteredActiveChannels),i.Db(1),i.pc("ngIf",null==t.inputFormGroup.controls.selRebalancePeer.errors?null:t.inputFormGroup.controls.selRebalancePeer.errors.required),i.Db(4),i.pc("stepControl",t.feeFormGroup)("editable",t.flgEditable),i.Db(1),i.pc("formGroup",t.feeFormGroup),i.Db(5),i.pc("icon",t.faInfoCircle),i.Db(4),i.Jc("",t.queryRoute&&t.queryRoute.routes&&t.queryRoute.routes.length>0&&t.queryRoute.routes[0].total_fees_msat?t.queryRoute.routes[0].total_fees_msat:0," mSats | "),i.Db(3),i.Jc("",t.queryRoute&&t.queryRoute.routes&&t.queryRoute.routes.length>0&&t.queryRoute.routes[0].hops&&t.queryRoute.routes[0].hops.length?t.queryRoute.routes[0].hops.length:0," "),i.Db(9),i.pc("ngForOf",t.feeLimitTypes),i.Db(2),i.qc("placeholder",t.feeFormGroup.controls.selFeeLimitType.value?t.feeFormGroup.controls.selFeeLimitType.value.placeholder:t.feeLimitTypes[0].placeholder),i.Db(1),i.pc("ngIf",null==t.feeFormGroup.controls.feeLimit.errors?null:t.feeFormGroup.controls.feeLimit.errors.required),i.Db(1),i.pc("ngIf",null==t.feeFormGroup.controls.feeLimit.errors?null:t.feeFormGroup.controls.feeLimit.errors.min),i.Db(4),i.pc("stepControl",t.statusFormGroup),i.Db(1),i.pc("formGroup",t.statusFormGroup),i.Db(7),i.Ic(t.flgInvoiceGenerated?t.flgReusingInvoice?"Invoice re-used":"Invoice generated":"Generating invoice..."),i.Db(1),i.pc("ngIf",t.flgInvoiceGenerated),i.Db(3),i.Ic(t.paymentRequest),i.Db(1),i.pc("ngIf",!t.flgInvoiceGenerated),i.Db(1),i.pc("expanded",(t.flgInvoiceGenerated||t.flgReusingInvoice)&&t.flgPaymentSent),i.Db(4),i.Ic(t.flgInvoiceGenerated||t.flgPaymentSent?t.flgPaymentSent?null!=t.paymentStatus&&t.paymentStatus.error?"Payment failed":"Payment successful":"Processing payment...":"Payment waiting for Invoice"),i.Db(1),i.pc("ngIf",t.flgPaymentSent),i.Db(1),i.pc("ngIf",!t.paymentStatus)("ngIfElse",n),i.Db(1),i.pc("ngIf",t.flgInvoiceGenerated&&!t.flgPaymentSent),i.Db(1),i.pc("ngIf",t.flgInvoiceGenerated&&t.flgPaymentSent),i.Db(2),i.pc("ngIf",t.paymentStatus&&t.paymentStatus.error),i.Db(2),i.pc("mat-dialog-close",!1)}},directives:[x.c,x.a,W.c,x.b,D.a,W.b,w.a,Z.h,Z.a,U.t,U.m,U.g,Z.b,A.c,le.b,U.p,U.b,se.a,U.l,U.f,U.r,A.f,A.g,a.n,Ot.a,a.m,O.a,S.a,K.c,K.e,K.f,j.d,A.b,Pt.n,r.a,a.s,P.a],pipes:[a.w],styles:[""]}),e}();function pi(e,t){if(1&e&&(i.Wb(0,"div",16),i.Wb(1,"p",17),i.Wb(2,"mat-icon",18),i.Hc(3,"close"),i.Vb(),i.Hc(4),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(4),i.Ic(n.errorMsg)}}function di(e,t){if(1&e&&(i.Wb(0,"div",27),i.Rb(1,"fa-icon",28),i.Wb(2,"span"),i.Hc(3,"Priority/Fee for force closing inactive channels cannot be modified."),i.Vb(),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.pc("icon",n.faInfoCircle)}}function mi(e,t){if(1&e&&(i.Wb(0,"mat-option",29),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.pc("value",n.id),i.Db(1),i.Jc(" ",n.name," ")}}function fi(e,t){1&e&&(i.Wb(0,"mat-form-field",30),i.Rb(1,"input",31),i.Vb())}function hi(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Number of blocks is required."),i.Vb())}function gi(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-form-field",32),i.Wb(1,"input",33,34),i.ec("ngModelChange",(function(e){return i.yc(n),i.ic(2).blocks=e})),i.Vb(),i.Fc(3,hi,2,0,"mat-error",35),i.Vb()}if(2&e){var a=i.ic(2);i.Db(1),i.pc("ngModel",a.blocks),i.Db(2),i.pc("ngIf",!a.blocks)}}function yi(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Fees is required."),i.Vb())}function Ci(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-form-field",32),i.Wb(1,"input",36,37),i.ec("ngModelChange",(function(e){return i.yc(n),i.ic(2).fees=e})),i.Vb(),i.Fc(3,yi,2,0,"mat-error",35),i.Vb()}if(2&e){var a=i.ic(2);i.Db(1),i.pc("ngModel",a.fees),i.Db(2),i.pc("ngIf",!a.fees)}}function vi(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",19),i.Fc(1,di,4,1,"div",20),i.Wb(2,"div",21),i.Wb(3,"mat-form-field",22),i.Wb(4,"mat-select",23),i.ec("valueChange",(function(e){return i.yc(n),i.ic().selTransType=e})),i.Fc(5,mi,2,2,"mat-option",24),i.Vb(),i.Vb(),i.Fc(6,fi,2,0,"mat-form-field",25),i.Fc(7,gi,4,2,"mat-form-field",26),i.Fc(8,Ci,4,2,"mat-form-field",26),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.Db(1),i.pc("ngIf",!a.channelToClose.active),i.Db(3),i.pc("value",a.selTransType)("disabled",!a.channelToClose.active),i.Db(1),i.pc("ngForOf",a.transTypes),i.Db(1),i.pc("ngIf","0"==a.selTransType),i.Db(1),i.pc("ngIf","1"==a.selTransType),i.Db(1),i.pc("ngIf","2"==a.selTransType)}}function xi(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",38),i.ec("click",(function(){return i.yc(n),i.ic().resetData()})),i.Hc(1,"Clear"),i.Vb()}}function wi(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",39),i.ec("click",(function(){return i.yc(n),i.ic().onCloseChannel()})),i.Hc(1),i.Vb()}if(2&e){var a=i.ic();i.Db(1),i.Ic(a.channelToClose.active?"Close Channel":"Force Close")}}function Fi(e,t){if(1&e){var n=i.Xb();i.Wb(0,"button",40),i.ec("click",(function(){return i.yc(n),i.ic().onClose()})),i.Hc(1,"Ok"),i.Vb()}}var Vi=function(){function e(e,t,n,a,o){this.dialogRef=e,this.data=t,this.store=n,this.actions$=a,this.logger=o,this.transTypes=g.s,this.selTransType="0",this.blocks=null,this.fees=null,this.faExclamationTriangle=m.n,this.faInfoCircle=m.s,this.flgPendingHtlcs=!1,this.errorMsg="Please wait for pending HTLCs to settle before attempting channel closure.",this.unSubs=[new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.channelToClose=this.data.channel,this.actions$.pipe(Object(u.a)(this.unSubs[0]),Object(p.a)((function(e){return e.type===y.m||e.type===y.vb}))).subscribe((function(t){if(t.type===y.vb){var n=t.payload.find((function(t){return t.chan_id===e.data.channel.chan_id}));n.pending_htlcs&&n.pending_htlcs.length&&n.pending_htlcs.length>0&&(e.flgPendingHtlcs=!0)}t.type===y.m&&"FetchChannels/all"===t.payload.action&&e.logger.error("Fetching latest channel information failed!\n"+t.payload.message)}))},e.prototype.onCloseChannel=function(){if("1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;var e={channelPoint:this.channelToClose.channel_point,forcibly:!this.channelToClose.active};this.blocks&&(e.targetConf=this.blocks),this.fees&&(e.satPerByte=this.fees),this.store.dispatch(new J.F(this.channelToClose.active?"Closing Channel...":"Force Closing Channel...")),this.store.dispatch(new y.j(e)),this.dialogRef.close(!1)},e.prototype.resetData=function(){this.selTransType="0",this.blocks=null,this.fees=null},e.prototype.onClose=function(){this.dialogRef.close(!1)},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(j.f),i.Qb(j.a),i.Qb(C.h),i.Qb(v.a),i.Qb(f.b))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-close-channel"]],decls:19,vars:7,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","reset","class","mr-1","tabindex","3","default","",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","type","submit","tabindex","4",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click",4,"ngIf"],["fxLayoutAlign","start center"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","48"],["tabindex","1",3,"value","disabled","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48",4,"ngIf"],["fxFlex.gt-sm","48","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"],["fxFlex","48"],["matInput","","placeholder","Default","disabled",""],["fxFlex.gt-sm","48","fxLayoutAlign","start end"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","step","1","min","0","required","","tabindex","2",3,"ngModel","ngModelChange"],["blcks","ngModel"],[4,"ngIf"],["matInput","","placeholder","Fees (Sats/Byte)","type","number","name","fees","step","1","min","0","required","","tabindex","3",3,"ngModel","ngModelChange"],["fee","ngModel"],["mat-stroked-button","","color","primary","type","reset","tabindex","3","default","",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Wb(2,"mat-card-header",2),i.Wb(3,"div",3),i.Wb(4,"span",4),i.Hc(5),i.Vb(),i.Vb(),i.Wb(6,"button",5),i.ec("click",(function(){return t.onClose()})),i.Hc(7,"X"),i.Vb(),i.Vb(),i.Wb(8,"mat-card-content",6),i.Wb(9,"form",7),i.Wb(10,"div",8),i.Wb(11,"p",9),i.Hc(12),i.Vb(),i.Fc(13,pi,5,1,"div",10),i.Fc(14,vi,9,7,"div",11),i.Vb(),i.Wb(15,"div",12),i.Fc(16,xi,2,0,"button",13),i.Fc(17,wi,2,1,"button",14),i.Fc(18,Fi,2,0,"button",15),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(5),i.Ic(t.channelToClose.active?"Close Channel":"Force Close Channel"),i.Db(7),i.Ic(t.channelToClose.active?"Closing channel: "+t.channelToClose.channel_point:"Force closing channel: "+t.channelToClose.channel_point),i.Db(1),i.pc("ngIf",t.flgPendingHtlcs),i.Db(1),i.pc("ngIf",!t.flgPendingHtlcs),i.Db(2),i.pc("ngIf",t.channelToClose.active&&!t.flgPendingHtlcs),i.Db(1),i.pc("ngIf",!t.flgPendingHtlcs),i.Db(1),i.pc("ngIf",t.flgPendingHtlcs))},directives:[x.c,x.a,W.c,x.b,D.a,W.b,U.t,U.m,U.n,a.n,S.a,A.c,Ot.a,a.m,w.a,Pt.n,le.b,U.p,At.a,U.b,U.r,U.l,U.o,A.b],styles:[""]}),e}();function Wi(e,t){1&e&&i.Rb(0,"mat-progress-bar",30)}function Li(e,t){1&e&&(i.Wb(0,"th",31),i.Hc(1," Peer "),i.Vb())}function Di(e,t){1&e&&i.Rb(0,"span",39)}function Si(e,t){1&e&&i.Rb(0,"span",40)}function _i(e,t){if(1&e&&(i.Wb(0,"span",41),i.Rb(1,"fa-icon",42),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.pc("icon",n.faEyeSlash)}}function Ri(e,t){if(1&e&&(i.Wb(0,"span",43),i.Rb(1,"fa-icon",42),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.pc("icon",n.faEye)}}var ki=function(e){return{"max-width":e}};function Ii(e,t){if(1&e&&(i.Wb(0,"td",32),i.Wb(1,"div",33),i.Fc(2,Di,1,0,"span",34),i.Fc(3,Si,1,0,"span",35),i.Fc(4,_i,2,1,"span",36),i.Fc(5,Ri,2,1,"span",37),i.Wb(6,"span",38),i.Hc(7),i.Vb(),i.Vb(),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.Db(1),i.pc("ngStyle",i.tc(6,ki,a.screenSize===a.screenSizeEnum.XS?"10rem":"22rem")),i.Db(1),i.pc("ngIf",n.active),i.Db(1),i.pc("ngIf",!n.active),i.Db(1),i.pc("ngIf",n.private),i.Db(1),i.pc("ngIf",!n.private),i.Db(2),i.Ic(n.remote_alias||n.remote_pubkey)}}function Hi(e,t){if(1&e&&(i.Wb(0,"th",44),i.Hc(1),i.Vb()),2&e){var n=i.ic();i.Db(1),i.Jc("Uptime (",n.timeUnit,")")}}function Ti(e,t){if(1&e&&(i.Wb(0,"td",32),i.Wb(1,"span",45),i.Hc(2),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Jc("",n.uptime_str," ")}}function Ai(e,t){1&e&&(i.Wb(0,"th",44),i.Hc(1,"Sats Sent "),i.Vb())}function Oi(e,t){if(1&e&&(i.Wb(0,"td",32),i.Wb(1,"span",45),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Jc("",i.kc(3,1,n.total_satoshis_sent)," ")}}function Pi(e,t){1&e&&(i.Wb(0,"th",44),i.Hc(1,"Sats Received "),i.Vb())}function Mi(e,t){if(1&e&&(i.Wb(0,"td",32),i.Wb(1,"span",45),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Jc("",i.kc(3,1,n.total_satoshis_received)," ")}}function Ei(e,t){1&e&&(i.Wb(0,"th",44),i.Hc(1,"Local Balance "),i.Vb())}function Gi(e,t){if(1&e&&(i.Wb(0,"td",32),i.Wb(1,"span",45),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Jc("",i.kc(3,1,n.local_balance)," ")}}function Ni(e,t){1&e&&(i.Wb(0,"th",44),i.Hc(1,"Remote Balance "),i.Vb())}function zi(e,t){if(1&e&&(i.Wb(0,"td",32),i.Wb(1,"span",45),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Jc("",i.kc(3,1,n.remote_balance)," ")}}function Bi(e,t){1&e&&(i.Wb(0,"th",46),i.Hc(1,"Balance Score "),i.Vb())}function qi(e,t){if(1&e&&(i.Wb(0,"td",47),i.Wb(1,"div",48),i.Wb(2,"mat-hint",49),i.Hc(3),i.jc(4,"number"),i.Vb(),i.Vb(),i.Rb(5,"mat-progress-bar",50),i.Vb()),2&e){var n=t.$implicit;i.Db(3),i.Ic(i.kc(4,2,n.balancedness||0)),i.Db(2),i.qc("value",n.local_balance&&n.local_balance>0?(n.local_balance-0)/(n.local_balance-0+(n.remote_balance-0))*100:0)}}function Ui(e,t){if(1&e){var n=i.Xb();i.Wb(0,"th",51),i.Wb(1,"div",52),i.Wb(2,"mat-select",53),i.Rb(3,"mat-select-trigger"),i.Wb(4,"mat-option",54),i.ec("click",(function(){return i.yc(n),i.ic().onChannelUpdate("all")})),i.Hc(5,"Update Fee Policy"),i.Vb(),i.Wb(6,"mat-option",54),i.ec("click",(function(){return i.yc(n),i.ic().onDownloadCSV()})),i.Hc(7,"Download CSV"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}}function ji(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-option",54),i.ec("click",(function(){i.yc(n);var e=i.ic().$implicit;return i.ic().onCircularRebalance(e)})),i.Hc(1,"Circular Rebalance"),i.Vb()}}function Qi(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-option",54),i.ec("click",(function(){i.yc(n);var e=i.ic().$implicit;return i.ic().onLoopOut(e)})),i.Hc(1,"Loop Out"),i.Vb()}}function Xi(e,t){if(1&e){var n=i.Xb();i.Wb(0,"td",55),i.Wb(1,"div",56),i.Wb(2,"mat-select",57),i.Rb(3,"mat-select-trigger"),i.Wb(4,"mat-option",54),i.ec("click",(function(e){i.yc(n);var a=t.$implicit;return i.ic().onChannelClick(a,e)})),i.Hc(5,"View Info"),i.Vb(),i.Wb(6,"mat-option",54),i.ec("click",(function(){i.yc(n);var e=t.$implicit;return i.ic().onViewRemotePolicy(e)})),i.Hc(7,"View Remote Fee "),i.Vb(),i.Wb(8,"mat-option",54),i.ec("click",(function(){i.yc(n);var e=t.$implicit;return i.ic().onChannelUpdate(e)})),i.Hc(9,"Update Fee Policy"),i.Vb(),i.Fc(10,ji,2,0,"mat-option",58),i.Fc(11,Qi,2,0,"mat-option",58),i.Wb(12,"mat-option",54),i.ec("click",(function(){i.yc(n);var e=t.$implicit;return i.ic().onChannelClose(e)})),i.Hc(13,"Close Channel"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.Db(10),i.pc("ngIf",a.versionsArr[0]-0>0||a.versionsArr[1]-0>=9),i.Db(1),i.pc("ngIf",a.selNode.swapServerUrl)}}function $i(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"No peers connected. Add a peer in order to open a channel."),i.Vb())}function Ji(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"No channels available."),i.Vb())}function Zi(e,t){if(1&e&&(i.Wb(0,"td",59),i.Fc(1,$i,2,0,"p",60),i.Fc(2,Ji,2,0,"p",60),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngIf",n.numPeers<1&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)),i.Db(1),i.pc("ngIf",n.numPeers>0&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1))}}var Ki=function(e){return{"display-none":e}};function Yi(e,t){if(1&e&&i.Rb(0,"tr",61),2&e){var n=i.ic();i.pc("ngClass",i.tc(1,Ki,n.numPeers>0&&(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function er(e,t){1&e&&i.Rb(0,"tr",62)}function tr(e,t){1&e&&i.Rb(0,"tr",63)}var nr=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},ar=function(){return["no_peer"]},or=function(){function e(e,t,n,a,o,i,r){this.logger=e,this.store=t,this.rtlEffects=n,this.lndEffects=a,this.commonService=o,this.loopService=i,this.decimalPipe=r,this.timeUnit="mins:secs",this.userPersonaEnum=g.u,this.selNode={},this.totalBalance=0,this.displayedColumns=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.flgLoading=[!0],this.selectedFilter="",this.selFilter="",this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.versionsArr=[],this.faEye=m.o,this.faEyeSlash=m.p,this.targetConf=6,this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","actions"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","actions"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["remote_alias","uptime","local_balance","remote_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["remote_alias","uptime","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchChannels/all"===t.action&&(e.flgLoading[0]="error")})),e.selNode=t.nodeSettings,e.information=t.information,e.information&&e.information.version&&(e.versionsArr=e.information.version.split(".")),e.numPeers=t.peers&&t.peers.length?t.peers.length:0,e.totalBalance=+t.blockchainBalance.total_balance,t.allChannels&&e.loadChannelsTable(e.calculateUptime(t.allChannels)),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.allChannels),e.logger.info(t)}))},e.prototype.onViewRemotePolicy=function(e){var t=this;this.store.dispatch(new y.h(e.chan_id.toString()+"/"+this.information.identity_pubkey)),this.lndEffects.setLookup.pipe(Object(wn.a)(1)).subscribe((function(e){if(!e.fee_base_msat&&!e.fee_rate_milli_msat&&!e.time_lock_delta)return!1;t.store.dispatch(new J.C({data:{type:g.b.INFORMATION,alertTitle:"Remote Channel Policy",message:[[{key:"fee_base_msat",value:e.fee_base_msat,title:"Base Fees (mSats)",width:34,type:g.h.NUMBER},{key:"fee_rate_milli_msat",value:e.fee_rate_milli_msat,title:"Fee Rate (milli mSats)",width:33,type:g.h.NUMBER},{key:"time_lock_delta",value:e.time_lock_delta,title:"Time Lock Delta",width:33,type:g.h.NUMBER}]]}}))}))},e.prototype.onCircularRebalance=function(e){this.store.dispatch(new J.C({data:{channel:e,component:ui}}))},e.prototype.onChannelUpdate=function(e){var t=this;"all"===e?(this.store.dispatch(new J.D({data:{type:g.b.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All Channels",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:g.h.NUMBER.toLowerCase(),inputValue:1e3,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:g.h.NUMBER.toLowerCase(),inputValue:1,min:1,width:32},{placeholder:"Time Lock Delta",inputType:g.h.NUMBER.toLowerCase(),inputValue:40,width:32}]}})),this.rtlEffects.closeConfirm.pipe(Object(u.a)(this.unSubs[1])).subscribe((function(e){if(e){var n=e[0].inputValue,a=e[1].inputValue,o=e[2].inputValue;t.store.dispatch(new J.F("Updating Channel Policy...")),t.store.dispatch(new y.hc({baseFeeMsat:n,feeRate:a,timeLockDelta:o,chanPoint:"all"}))}}))):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.store.dispatch(new J.F("Fetching Channel Policy...")),this.store.dispatch(new y.h(e.chan_id.toString())),this.lndEffects.setLookup.pipe(Object(wn.a)(1)).subscribe((function(n){t.myChanPolicy=n.node1_pub===t.information.identity_pubkey?n.node1_policy:n.node2_pub===t.information.identity_pubkey?n.node2_policy:{fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},t.logger.info(t.myChanPolicy),t.store.dispatch(new J.i),t.store.dispatch(new J.D({data:{type:g.b.CONFIRM,alertTitle:"Update Fee Policy",titleMessage:"Update fee policy for channel point: "+e.channel_point,noBtnText:"Cancel",yesBtnText:"Update Channel",message:[],flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:g.h.NUMBER.toLowerCase(),inputValue:""===t.myChanPolicy.fee_base_msat?0:t.myChanPolicy.fee_base_msat,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:g.h.NUMBER.toLowerCase(),inputValue:t.myChanPolicy.fee_rate_milli_msat,min:1,width:32},{placeholder:"Time Lock Delta",inputType:g.h.NUMBER.toLowerCase(),inputValue:t.myChanPolicy.time_lock_delta,width:32}]}}))})),this.rtlEffects.closeConfirm.pipe(Object(u.a)(this.unSubs[2])).subscribe((function(n){if(n){var a=n[0].inputValue,o=n[1].inputValue,i=n[2].inputValue;t.store.dispatch(new J.F("Updating Channel Policy...")),t.store.dispatch(new y.hc({baseFeeMsat:a,feeRate:o,timeLockDelta:i,chanPoint:e.channel_point}))}}))),this.applyFilter()},e.prototype.onChannelClose=function(e){e.active&&this.store.dispatch(new y.C),this.store.dispatch(new J.C({width:"70%",data:{channel:e,component:Vi}}))},e.prototype.applyFilter=function(){this.selectedFilter=this.selFilter,this.channels.filter=this.selFilter},e.prototype.onChannelClick=function(e,t){this.store.dispatch(new J.C({data:{channel:e,showCopy:!0,component:No}}))},e.prototype.loadChannelsTable=function(e){e.sort((function(e,t){return e.active===t.active?0:t.active?1:-1})),this.channels=new Tt.o(Object(kt.g)(e)),this.channels.filterPredicate=function(e,t){return((e.active?"active":"inactive")+(e.chan_id?e.chan_id:"")+(e.remote_pubkey?e.remote_pubkey:"")+(e.remote_alias?e.remote_alias:"")+(e.capacity?e.capacity:"")+(e.local_balance?e.local_balance:"")+(e.remote_balance?e.remote_balance:"")+(e.total_satoshis_sent?e.total_satoshis_sent:"")+(e.total_satoshis_received?e.total_satoshis_received:"")+(e.commit_fee?e.commit_fee:"")+(e.private?"private":"public")).includes(t)},this.channels.sort=this.sort,this.channels.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.channels.paginator=this.paginator,this.logger.info(this.channels)},e.prototype.calculateUptime=function(e){var t=this,n=60,a=1,o=0;switch(e.forEach((function(e){e.uptime&&+e.uptime>o&&(o=+e.uptime)})),!0){case o<3600:this.timeUnit="Mins:Secs",n=60,a=1;break;case o>=3600&&o<86400:this.timeUnit="Hrs:Mins",n=3600,a=60;break;case o>=86400&&o<31536e3:this.timeUnit="Days:Hrs",n=86400,a=3600;break;case o>31536e3:this.timeUnit="Yrs:Days",n=31536e3,a=86400;break;default:this.timeUnit="Mins:Secs",n=60,a=1}return e.forEach((function(e){e.uptime_str=e.uptime?t.decimalPipe.transform(Math.floor(+e.uptime/n),"2.0-0")+":"+t.decimalPipe.transform(Math.round(+e.uptime%n/a),"2.0-0"):"---"})),e},e.prototype.onLoopOut=function(e){var t=this;this.store.dispatch(new J.F("Getting Terms and Quotes...")),this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe(Object(u.a)(this.unSubs[0])).subscribe((function(n){t.store.dispatch(new J.i),t.store.dispatch(new J.C({minHeight:"56rem",data:{channel:e,minQuote:n[0],maxQuote:n[1],direction:g.q.LOOP_OUT,component:Ct}}))}))},e.prototype.onDownloadCSV=function(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(C.h),i.Qb(Pn.a),i.Qb(On.a),i.Qb(h.a),i.Qb($.a),i.Qb(a.e))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-channel-open-table"]],viewQuery:function(e,t){var n;1&e&&(i.Dc(Ht.a,!0),i.Dc(It.a,!0)),2&e&&(i.vc(n=i.fc())&&(t.sort=n.first),i.vc(n=i.fc())&&(t.paginator=n.first))},features:[i.Cb([{provide:It.b,useValue:Object(g.w)("Channels")}])],decls:39,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","uptime"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-2",4,"matHeaderCellDef"],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","dot green","matTooltip","Active","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltip","Inactive","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","yellow"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-2"],["mat-cell","",1,"pl-2"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["fxFlex","100","fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Rb(2,"div",2),i.Wb(3,"mat-form-field",3),i.Wb(4,"input",4),i.ec("keyup",(function(){return t.applyFilter()}))("ngModelChange",(function(e){return t.selFilter=e})),i.Vb(),i.Vb(),i.Vb(),i.Wb(5,"div",5),i.Fc(6,Wi,1,0,"mat-progress-bar",6),i.Wb(7,"table",7,8),i.Ub(9,9),i.Fc(10,Li,2,0,"th",10),i.Fc(11,Ii,8,8,"td",11),i.Tb(),i.Ub(12,12),i.Fc(13,Hi,2,1,"th",13),i.Fc(14,Ti,3,1,"td",11),i.Tb(),i.Ub(15,14),i.Fc(16,Ai,2,0,"th",13),i.Fc(17,Oi,4,3,"td",11),i.Tb(),i.Ub(18,15),i.Fc(19,Pi,2,0,"th",13),i.Fc(20,Mi,4,3,"td",11),i.Tb(),i.Ub(21,16),i.Fc(22,Ei,2,0,"th",13),i.Fc(23,Gi,4,3,"td",11),i.Tb(),i.Ub(24,17),i.Fc(25,Ni,2,0,"th",13),i.Fc(26,zi,4,3,"td",11),i.Tb(),i.Ub(27,18),i.Fc(28,Bi,2,0,"th",19),i.Fc(29,qi,6,4,"td",20),i.Tb(),i.Ub(30,21),i.Fc(31,Ui,8,0,"th",22),i.Fc(32,Xi,14,2,"td",23),i.Tb(),i.Ub(33,24),i.Fc(34,Zi,3,2,"td",25),i.Tb(),i.Fc(35,Yi,1,3,"tr",26),i.Fc(36,er,1,0,"tr",27),i.Fc(37,tr,1,0,"tr",28),i.Vb(),i.Vb(),i.Rb(38,"mat-paginator",29),i.Vb()),2&e&&(i.Db(4),i.pc("ngModel",t.selFilter),i.Db(2),i.pc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.pc("dataSource",t.channels)("ngClass",i.tc(11,nr,"error"===t.flgLoading[0])),i.Db(28),i.pc("matFooterRowDef",i.sc(13,ar)),i.Db(1),i.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.pc("matRowDefColumns",t.displayedColumns),i.Db(1),i.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[x.c,x.b,x.a,A.c,le.b,U.b,U.l,U.o,M.b,a.n,Tt.n,Ht.a,a.l,V.a,Tt.c,Tt.i,Tt.b,Tt.e,Tt.g,Tt.k,Tt.m,It.a,r.a,Tt.h,Ht.b,Tt.a,a.o,V.b,O.a,w.a,A.f,Ot.a,Ot.c,Pt.n,Tt.d,Tt.f,Tt.j,Tt.l],pipes:[a.e],styles:[".mat-column-remote_alias[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-remote_alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:2rem;flex:0 0 20%;width:20%}.mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-uptime[_ngcontent-%COMP%]{flex:0 0 10%;width:10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}(),ir=["outputIdx"];function rr(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Index for change output is required."),i.Vb())}function cr(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Invalid index value."),i.Vb())}function lr(e,t){if(1&e&&(i.Wb(0,"mat-option",28),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.pc("value",n.id),i.Db(1),i.Jc(" ",n.name," ")}}function sr(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Number of blocks is required."),i.Vb())}function br(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-form-field",16),i.Wb(1,"input",29,30),i.ec("ngModelChange",(function(e){return i.yc(n),i.ic().blocks=e})),i.Vb(),i.Fc(3,sr,2,0,"mat-error",19),i.Vb()}if(2&e){var a=i.ic();i.Db(1),i.pc("ngModel",a.blocks),i.Db(2),i.pc("ngIf",!a.blocks)}}function ur(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Fees is required."),i.Vb())}function pr(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-form-field",16),i.Wb(1,"input",31,32),i.ec("ngModelChange",(function(e){return i.yc(n),i.ic().fees=e})),i.Vb(),i.Fc(3,ur,2,0,"mat-error",19),i.Vb()}if(2&e){var a=i.ic();i.Db(1),i.pc("ngModel",a.fees),i.Db(2),i.pc("ngIf",!a.fees)}}function dr(e,t){if(1&e&&(i.Wb(0,"div",33),i.Rb(1,"fa-icon",12),i.Wb(2,"span"),i.Hc(3),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("icon",n.faExclamationTriangle),i.Db(2),i.Ic(n.bumpFeeError)}}var mr=function(){function e(e,t,n,a){this.dialogRef=e,this.data=t,this.store=n,this.dataService=a,this.transTypes=Object(kt.g)(g.s),this.selTransType="1",this.blocks=null,this.fees=null,this.outputIndex=null,this.faInfoCircle=m.s,this.faExclamationTriangle=m.n,this.bumpFeeError="",this.unSubs=[new b.a,new b.a]}return Object.defineProperty(e.prototype,"payReq",{set:function(e){e&&(this.outputIdx=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.transTypes=this.transTypes.splice(1),this.bumpFeeChannel=this.data.pendingChannel;var e=this.bumpFeeChannel.channel&&this.bumpFeeChannel.channel.channel_point?this.bumpFeeChannel.channel.channel_point.split(":"):[];this.bumpFeeChannel.channel.txid_str=e[0]?e[0]:this.bumpFeeChannel.channel&&this.bumpFeeChannel.channel.channel_point?this.bumpFeeChannel.channel.channel_point:"",this.bumpFeeChannel.channel.output_index=e[1]?+e[1]:null},e.prototype.onBumpFee=function(){var e=this;return this.outputIndex===this.bumpFeeChannel.channel.output_index?(this.outputIdx.control.setErrors({pendingChannelOutputIndex:!0}),!0):!this.outputIndex&&0!==this.outputIndex||!("1"!==this.selTransType||this.blocks&&0!==this.blocks)||!("2"!==this.selTransType||this.fees&&0!==this.fees)||void this.dataService.bumpFee(this.bumpFeeChannel.channel.txid_str,this.outputIndex,this.blocks,this.fees).pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.dialogRef.close(!1)}),(function(t){console.error(t),e.bumpFeeError=t.message?t.message:t}))},e.prototype.resetData=function(){this.bumpFeeError="",this.selTransType="1",this.blocks=null,this.fees=null,this.outputIdx.control.setErrors(null)},e.prototype.onClose=function(){this.dialogRef.close(!1)},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(j.f),i.Qb(j.a),i.Qb(C.h),i.Qb(Fn.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-bump-fee"]],viewQuery:function(e,t){var n;1&e&&i.Mc(ir,!0),2&e&&i.vc(n=i.fc())&&(t.payReq=n.first)},decls:47,vars:11,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],[1,"pl-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","32","fxLayoutAlign","start end"],["matInput","","placeholder","Index for Change Output","type","number","step","1","min","0","tabindex","1","required","","name","outputIdx",3,"ngModel","ngModelChange"],["outputIdx","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","32"],["tabindex","2",3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex.gt-sm","32","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","reset","tabindex","5","default","",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","6",3,"click"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","step","1","min","0","required","","tabindex","3",3,"ngModel","ngModelChange"],["blcks","ngModel"],["matInput","","placeholder","Fees (Sats/Byte)","type","number","name","fees","step","1","min","0","required","","tabindex","4",3,"ngModel","ngModelChange"],["fee","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(e,t){if(1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Wb(2,"mat-card-header",2),i.Wb(3,"div",3),i.Wb(4,"span",4),i.Hc(5,"Bump Fee"),i.Vb(),i.Vb(),i.Wb(6,"button",5),i.ec("click",(function(){return t.onClose()})),i.Hc(7,"X"),i.Vb(),i.Vb(),i.Wb(8,"mat-card-content",6),i.Wb(9,"form",7),i.Wb(10,"div",8),i.Wb(11,"p",9),i.Hc(12),i.Vb(),i.Wb(13,"div",10),i.Wb(14,"div",11),i.Rb(15,"fa-icon",12),i.Wb(16,"span",13),i.Hc(17,"Bumping fee on pending open channels is an advanced feature, attempt it only if you are familiar with the functionality of Bitcoin transactions. "),i.Wb(18,"div"),i.Hc(19,"Before attempting fee bump ensure the following:"),i.Vb(),i.Wb(20,"div",14),i.Hc(21,"1: Use a Bitcoin block explorer to ensure that channel opening transaction is not confirmed."),i.Vb(),i.Wb(22,"div",14),i.Hc(23,"2: The channel opening transaction must have a sizable change output, which can be spent further. The fee cannot be bumped without the change output."),i.Vb(),i.Wb(24,"div",14),i.Hc(25,"3: Find the index value of the change output via a block explorer."),i.Vb(),i.Wb(26,"div",14),i.Hc(27,"4: Enter the index value of the change output in the form below and the desired fee rate."),i.Vb(),i.Wb(28,"div",14),i.Hc(29,"5: Upon successful fee bump, use your block explorer to track the child transaction in the mempool, which should be linked with the change output transaction."),i.Vb(),i.Vb(),i.Vb(),i.Wb(30,"div",15),i.Wb(31,"mat-form-field",16),i.Wb(32,"input",17,18),i.ec("ngModelChange",(function(e){return t.outputIndex=e})),i.Vb(),i.Fc(34,rr,2,0,"mat-error",19),i.Fc(35,cr,2,0,"mat-error",19),i.Vb(),i.Wb(36,"mat-form-field",20),i.Wb(37,"mat-select",21),i.ec("valueChange",(function(e){return t.selTransType=e}))("selectionChange",(function(){return t.blocks=null,t.fees=null})),i.Fc(38,lr,2,2,"mat-option",22),i.Vb(),i.Vb(),i.Fc(39,br,4,2,"mat-form-field",23),i.Fc(40,pr,4,2,"mat-form-field",23),i.Vb(),i.Fc(41,dr,4,2,"div",24),i.Vb(),i.Vb(),i.Wb(42,"div",25),i.Wb(43,"button",26),i.ec("click",(function(){return t.resetData()})),i.Hc(44,"Clear"),i.Vb(),i.Wb(45,"button",27),i.ec("click",(function(){return t.onBumpFee()})),i.Hc(46),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e){var n=i.wc(33);i.Db(12),i.Jc("Bump fee for channel point: ",null==t.bumpFeeChannel||null==t.bumpFeeChannel.channel?null:t.bumpFeeChannel.channel.channel_point,""),i.Db(3),i.pc("icon",t.faInfoCircle),i.Db(17),i.pc("ngModel",t.outputIndex),i.Db(2),i.pc("ngIf",null==n.errors?null:n.errors.required),i.Db(1),i.pc("ngIf",null==n.errors?null:n.errors.pendingChannelOutputIndex),i.Db(2),i.pc("value",t.selTransType),i.Db(1),i.pc("ngForOf",t.transTypes),i.Db(1),i.pc("ngIf","1"==t.selTransType),i.Db(1),i.pc("ngIf","2"==t.selTransType),i.Db(1),i.pc("ngIf",""!==t.bumpFeeError),i.Db(5),i.Ic(""!==t.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[x.c,x.a,W.c,x.b,D.a,W.b,U.t,U.m,U.n,w.a,A.c,le.b,U.p,At.a,U.b,U.r,U.l,U.o,a.n,Ot.a,a.m,A.b,Pt.n],styles:[""]}),e}();function fr(e,t){1&e&&i.Rb(0,"mat-progress-bar",36)}function hr(e,t){1&e&&(i.Wb(0,"mat-header-cell",37),i.Hc(1," Peer "),i.Vb())}var gr=function(e){return{"max-width":e}};function yr(e,t){if(1&e&&(i.Wb(0,"mat-cell",38),i.Hc(1),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.pc("ngStyle",i.tc(2,gr,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),i.Db(1),i.Ic(n.channel.remote_alias)}}function Cr(e,t){1&e&&(i.Wb(0,"mat-header-cell",39),i.Hc(1,"Commit Fee (Sats) "),i.Vb())}function vr(e,t){if(1&e&&(i.Wb(0,"mat-cell",40),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(i.kc(2,1,n.commit_fee))}}function xr(e,t){1&e&&(i.Wb(0,"mat-header-cell",39),i.Hc(1,"Commit Weight "),i.Vb())}function wr(e,t){if(1&e&&(i.Wb(0,"mat-cell",40),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(i.kc(2,1,n.commit_weight))}}function Fr(e,t){1&e&&(i.Wb(0,"mat-header-cell",39),i.Hc(1,"Capacity (Sats)"),i.Vb())}function Vr(e,t){if(1&e&&(i.Wb(0,"mat-cell",40),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(i.kc(2,1,n.channel.capacity))}}function Wr(e,t){1&e&&(i.Wb(0,"mat-header-cell",41),i.Hc(1,"Actions"),i.Vb())}function Lr(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-cell",42),i.Wb(1,"div",43),i.Wb(2,"mat-select",44),i.Rb(3,"mat-select-trigger"),i.Wb(4,"mat-option",45),i.ec("click",(function(){i.yc(n);var e=t.$implicit;return i.ic().onOpenClick(e)})),i.Hc(5,"View Info"),i.Vb(),i.Wb(6,"mat-option",45),i.ec("click",(function(){i.yc(n);var e=t.$implicit;return i.ic().onBumpFee(e)})),i.Hc(7,"Bump Fee"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}}function Dr(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"No pending channels."),i.Vb())}function Sr(e,t){if(1&e&&(i.Wb(0,"td",46),i.Fc(1,Dr,2,0,"p",47),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngIf",!n.pendingOpenChannels||!(null!=n.pendingOpenChannels&&n.pendingOpenChannels.data)||(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)<1)}}var _r=function(e){return{"display-none":e}};function Rr(e,t){if(1&e&&i.Rb(0,"tr",48),2&e){var n=i.ic();i.pc("ngClass",i.tc(1,_r,n.pendingOpenChannels&&(null==n.pendingOpenChannels?null:n.pendingOpenChannels.data)&&(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)>0))}}function kr(e,t){1&e&&i.Rb(0,"mat-header-row")}function Ir(e,t){1&e&&i.Rb(0,"mat-row",49)}function Hr(e,t){1&e&&i.Rb(0,"mat-progress-bar",36)}function Tr(e,t){1&e&&(i.Wb(0,"mat-header-cell",37),i.Hc(1," Peer "),i.Vb())}function Ar(e,t){if(1&e&&(i.Wb(0,"mat-cell",38),i.Hc(1),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.pc("ngStyle",i.tc(2,gr,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),i.Db(1),i.Ic(n.channel.remote_alias)}}function Or(e,t){1&e&&(i.Wb(0,"mat-header-cell",39),i.Hc(1,"Recovered Balance (Sats) "),i.Vb())}function Pr(e,t){if(1&e&&(i.Wb(0,"mat-cell",40),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(i.kc(2,1,n.recovered_balance))}}function Mr(e,t){1&e&&(i.Wb(0,"mat-header-cell",39),i.Hc(1,"Limbo Balance (Sats) "),i.Vb())}function Er(e,t){if(1&e&&(i.Wb(0,"mat-cell",40),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(i.kc(2,1,n.limbo_balance))}}function Gr(e,t){1&e&&(i.Wb(0,"mat-header-cell",39),i.Hc(1,"Capacity (Sats) "),i.Vb())}function Nr(e,t){if(1&e&&(i.Wb(0,"mat-cell",40),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(i.kc(2,1,n.channel.capacity))}}function zr(e,t){1&e&&(i.Wb(0,"mat-header-cell",50),i.Hc(1,"Actions"),i.Vb())}function Br(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-cell",51),i.Wb(1,"button",52),i.ec("click",(function(){i.yc(n);var e=t.$implicit;return i.ic().onForceClosingClick(e)})),i.Hc(2,"View Info"),i.Vb(),i.Vb()}}function qr(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"No pending channels."),i.Vb())}function Ur(e,t){if(1&e&&(i.Wb(0,"td",46),i.Fc(1,qr,2,0,"p",47),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngIf",!n.pendingForceClosingChannels||!(null!=n.pendingForceClosingChannels&&n.pendingForceClosingChannels.data)||(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)<1)}}function jr(e,t){if(1&e&&i.Rb(0,"tr",48),2&e){var n=i.ic();i.pc("ngClass",i.tc(1,_r,n.pendingForceClosingChannels&&(null==n.pendingForceClosingChannels?null:n.pendingForceClosingChannels.data)&&(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)>0))}}function Qr(e,t){1&e&&i.Rb(0,"mat-header-row")}function Xr(e,t){1&e&&i.Rb(0,"mat-row",49)}function $r(e,t){1&e&&i.Rb(0,"mat-progress-bar",36)}function Jr(e,t){1&e&&(i.Wb(0,"mat-header-cell",53),i.Hc(1," Peer "),i.Vb())}function Zr(e,t){if(1&e&&(i.Wb(0,"mat-cell",54),i.Hc(1),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.pc("ngStyle",i.tc(2,gr,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),i.Db(1),i.Ic(n.channel.remote_alias)}}function Kr(e,t){1&e&&(i.Wb(0,"mat-header-cell",39),i.Hc(1," Local Balance (Sats) "),i.Vb())}function Yr(e,t){if(1&e&&(i.Wb(0,"mat-cell",40),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(i.kc(2,1,n.channel.local_balance))}}function ec(e,t){1&e&&(i.Wb(0,"mat-header-cell",39),i.Hc(1," Remote Balance (Sats) "),i.Vb())}function tc(e,t){if(1&e&&(i.Wb(0,"mat-cell",40),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(i.kc(2,1,n.channel.remote_balance))}}function nc(e,t){1&e&&(i.Wb(0,"mat-header-cell",39),i.Hc(1," Capacity (Sats) "),i.Vb())}function ac(e,t){if(1&e&&(i.Wb(0,"mat-cell",40),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(i.kc(2,1,n.channel.capacity))}}function oc(e,t){1&e&&(i.Wb(0,"mat-header-cell",50),i.Hc(1,"Actions"),i.Vb())}function ic(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-cell",51),i.Wb(1,"button",55),i.ec("click",(function(){i.yc(n);var e=t.$implicit;return i.ic().onClosingClick(e)})),i.Hc(2,"View Info"),i.Vb(),i.Vb()}}function rc(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"No pending channels."),i.Vb())}function cc(e,t){if(1&e&&(i.Wb(0,"td",46),i.Fc(1,rc,2,0,"p",47),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngIf",!n.pendingClosingChannels||!(null!=n.pendingClosingChannels&&n.pendingClosingChannels.data)||(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)<1)}}function lc(e,t){if(1&e&&i.Rb(0,"tr",48),2&e){var n=i.ic();i.pc("ngClass",i.tc(1,_r,n.pendingClosingChannels&&(null==n.pendingClosingChannels?null:n.pendingClosingChannels.data)&&(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)>0))}}function sc(e,t){1&e&&i.Rb(0,"mat-header-row")}function bc(e,t){1&e&&i.Rb(0,"mat-row",49)}function uc(e,t){1&e&&i.Rb(0,"mat-progress-bar",36)}function pc(e,t){1&e&&(i.Wb(0,"mat-header-cell",53),i.Hc(1," Peer "),i.Vb())}function dc(e,t){if(1&e&&(i.Wb(0,"mat-cell",54),i.Hc(1),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.pc("ngStyle",i.tc(2,gr,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),i.Db(1),i.Ic(n.channel.remote_alias)}}function mc(e,t){1&e&&(i.Wb(0,"mat-header-cell",39),i.Hc(1," Limbo Balance (Sats) "),i.Vb())}function fc(e,t){if(1&e&&(i.Wb(0,"mat-cell",40),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Jc("",i.kc(2,1,n.limbo_balance)," ")}}function hc(e,t){1&e&&(i.Wb(0,"mat-header-cell",39),i.Hc(1," Local Balance (Sats) "),i.Vb())}function gc(e,t){if(1&e&&(i.Wb(0,"mat-cell",40),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(i.kc(2,1,n.channel.local_balance))}}function yc(e,t){1&e&&(i.Wb(0,"mat-header-cell",39),i.Hc(1," Remote Balance (Sats) "),i.Vb())}function Cc(e,t){if(1&e&&(i.Wb(0,"mat-cell",40),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(i.kc(2,1,n.channel.remote_balance))}}function vc(e,t){1&e&&(i.Wb(0,"mat-header-cell",39),i.Hc(1," Capacity (Sats) "),i.Vb())}function xc(e,t){if(1&e&&(i.Wb(0,"mat-cell",40),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(i.kc(2,1,n.channel.capacity))}}function wc(e,t){1&e&&(i.Wb(0,"mat-header-cell",50),i.Hc(1,"Actions"),i.Vb())}function Fc(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-cell",51),i.Wb(1,"button",56),i.ec("click",(function(){i.yc(n);var e=t.$implicit;return i.ic().onWaitClosingClick(e)})),i.Hc(2,"View Info"),i.Vb(),i.Vb()}}function Vc(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"No pending channels."),i.Vb())}function Wc(e,t){if(1&e&&(i.Wb(0,"td",46),i.Fc(1,Vc,2,0,"p",47),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngIf",!n.pendingWaitClosingChannels||!(null!=n.pendingWaitClosingChannels&&n.pendingWaitClosingChannels.data)||(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)<1)}}var Lc=function(e){return{"py-0":!0,"display-none":e}};function Dc(e,t){if(1&e&&i.Rb(0,"tr",48),2&e){var n=i.ic();i.pc("ngClass",i.tc(1,Lc,n.pendingWaitClosingChannels&&(null==n.pendingWaitClosingChannels?null:n.pendingWaitClosingChannels.data)&&(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)>0))}}function Sc(e,t){1&e&&i.Rb(0,"mat-header-row")}function _c(e,t){1&e&&i.Rb(0,"mat-row",49)}var Rc=function(e){return{"w-100 error-border bordered-box":e,"bordered-box w-100":!0}},kc=function(){return["no_pending_open"]},Ic=function(e){return{"error-border bordered-box":e,"bordered-box":!0}},Hc=function(){return["no_pending_force_closing"]},Tc=function(){return["no_pending_closing"]},Ac=function(){return["no_pending_wait_closing"]},Oc=function(){function e(e,t,n){this.logger=e,this.store=t,this.commonService=n,this.selNode={},this.selectedFilter=0,this.information={},this.pendingChannels={},this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.pendingOpenChannelsLength=0,this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.pendingForceClosingChannelsLength=0,this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.pendingClosingChannelsLength=0,this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"],this.pendingWaitClosingChannelsLength=0,this.flgLoading=[!0],this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.displayedOpenColumns=["remote_alias","actions"],this.displayedForceClosingColumns=["remote_alias","actions"],this.displayedClosingColumns=["remote_alias","actions"],this.displayedWaitClosingColumns=["remote_alias","actions"]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.displayedOpenColumns=["remote_alias","commit_fee","actions"],this.displayedForceClosingColumns=["remote_alias","limbo_balance","actions"],this.displayedClosingColumns=["remote_alias","remote_balance","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","actions"]):(this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchChannels/pending"===t.action&&(e.flgLoading[0]="error")})),e.selNode=t.nodeSettings,e.information=t.information,e.pendingChannels=t.pendingChannels,e.pendingChannels.total_limbo_balance&&(e.flgLoading[1]=!1),e.pendingChannels.pending_open_channels&&e.loadOpenChannelsTable(e.pendingChannels.pending_open_channels),e.pendingChannels.pending_force_closing_channels&&e.loadForceClosingChannelsTable(e.pendingChannels.pending_force_closing_channels),e.pendingChannels.pending_closing_channels&&e.loadClosingChannelsTable(e.pendingChannels.pending_closing_channels),e.pendingChannels.waiting_close_channels&&e.loadWaitClosingChannelsTable(e.pendingChannels.waiting_close_channels),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!e.information.identity_pubkey),e.logger.info(t)}))},e.prototype.onOpenClick=function(e){var t=JSON.parse(JSON.stringify(e,["commit_weight","confirmation_height","fee_per_kw","commit_fee"],2)),n=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),a={};Object.assign(a,t,n),this.store.dispatch(new J.C({data:{type:g.b.INFORMATION,alertTitle:"Opening Channel Information",message:[[{key:"channel_point",value:a.channel_point,title:"Channel Point",width:100,type:g.h.STRING}],[{key:"remote_alias",value:a.remote_alias,title:"Peer Alias",width:25,type:g.h.STRING},{key:"remote_node_pub",value:a.remote_node_pub,title:"Peer Node Pubkey",width:75,type:g.h.STRING}],[{key:"capacity",value:a.capacity,title:"Capacity",width:25,type:g.h.NUMBER},{key:"confirmation_height",value:a.confirmation_height,title:"Confirmation Height",width:25,type:g.h.NUMBER},{key:"local_balance",value:a.local_balance,title:"Local Balance",width:25,type:g.h.NUMBER},{key:"remote_balance",value:a.remote_balance,title:"Remote Balance",width:25,type:g.h.NUMBER}],[{key:"fee_per_kw",value:a.fee_per_kw,title:"Fee/KW",width:25,type:g.h.NUMBER},{key:"commit_weight",value:a.commit_weight,title:"Commit Weight",width:25,type:g.h.NUMBER},{key:"commit_fee",value:a.commit_fee,title:"Commit Fee",width:50,type:g.h.NUMBER}]]}}))},e.prototype.onBumpFee=function(e){this.store.dispatch(new J.C({data:{pendingChannel:e,component:mr}}))},e.prototype.onForceClosingClick=function(e){var t=JSON.parse(JSON.stringify(e,["closing_txid","limbo_balance","maturity_height","blocks_til_maturity","recovered_balance"],2)),n=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),a={};Object.assign(a,t,n),this.store.dispatch(new J.C({data:{type:g.b.INFORMATION,alertTitle:"Force Closing Channel Information",message:[[{key:"closing_txid",value:a.closing_txid,title:"Closing Transaction ID",width:100,type:g.h.STRING}],[{key:"channel_point",value:a.channel_point,title:"Channel Point",width:100,type:g.h.STRING}],[{key:"remote_alias",value:a.remote_alias,title:"Peer Alias",width:25,type:g.h.STRING},{key:"remote_node_pub",value:a.remote_node_pub,title:"Peer Node Pubkey",width:75,type:g.h.STRING}],[{key:"capacity",value:a.capacity,title:"Capacity",width:25,type:g.h.NUMBER},{key:"limbo_balance",value:a.limbo_balance,title:"Limbo Balance",width:25,type:g.h.NUMBER},{key:"local_balance",value:a.local_balance,title:"Local Balance",width:25,type:g.h.NUMBER},{key:"remote_balance",value:a.remote_balance,title:"Remote Balance",width:25,type:g.h.NUMBER}],[{key:"maturity_height",value:a.maturity_height,title:"Maturity Height",width:25,type:g.h.NUMBER},{key:"blocks_til_maturity",value:a.blocks_til_maturity,title:"Blocks Till Maturity",width:25,type:g.h.NUMBER},{key:"recovered_balance",value:a.recovered_balance,title:"Recovered Balance",width:50,type:g.h.NUMBER}]]}}))},e.prototype.onClosingClick=function(e){var t=JSON.parse(JSON.stringify(e,["closing_txid"],2)),n=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),a={};Object.assign(a,t,n),this.store.dispatch(new J.C({data:{type:g.b.INFORMATION,alertTitle:"Closing Channel Information",message:[[{key:"closing_txid",value:a.closing_txid,title:"Closing Transaction ID",width:50,type:g.h.STRING}],[{key:"channel_point",value:a.channel_point,title:"Channel Point",width:100,type:g.h.STRING}],[{key:"remote_alias",value:a.remote_alias,title:"Peer Alias",width:25,type:g.h.STRING},{key:"remote_node_pub",value:a.remote_node_pub,title:"Peer Node Pubkey",width:75,type:g.h.STRING}],[{key:"capacity",value:a.capacity,title:"Capacity",width:25,type:g.h.NUMBER},{key:"local_balance",value:a.local_balance,title:"Local Balance",width:25,type:g.h.NUMBER},{key:"remote_balance",value:a.remote_balance,title:"Remote Balance",width:50,type:g.h.NUMBER}]]}}))},e.prototype.onWaitClosingClick=function(e){var t=JSON.parse(JSON.stringify(e,["limbo_balance"],2)),n=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),a={};Object.assign(a,t,n),this.store.dispatch(new J.C({data:{type:g.b.INFORMATION,alertTitle:"Wait Closing Channel Information",message:[[{key:"channel_point",value:a.channel_point,title:"Channel Point",width:100,type:g.h.STRING}],[{key:"remote_alias",value:a.remote_alias,title:"Peer Alias",width:25,type:g.h.STRING},{key:"remote_node_pub",value:a.remote_node_pub,title:"Peer Node Pubkey",width:75,type:g.h.STRING}],[{key:"capacity",value:a.capacity,title:"Capacity",width:25,type:g.h.NUMBER},{key:"limbo_balance",value:a.limbo_balance,title:"Limbo Balance",width:25,type:g.h.NUMBER},{key:"local_balance",value:a.local_balance,title:"Local Balance",width:25,type:g.h.NUMBER},{key:"remote_balance",value:a.remote_balance,title:"Remote Balance",width:25,type:g.h.NUMBER}]]}}))},e.prototype.loadOpenChannelsTable=function(e){e.sort((function(e,t){return e.active===t.active?0:t.active?-1:1})),this.pendingOpenChannelsLength=e.length?e.length:0,this.pendingOpenChannels=new Tt.o(Object(kt.g)(e)),this.pendingOpenChannels.sort=this.sort,this.pendingOpenChannels.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.logger.info(this.pendingOpenChannels)},e.prototype.loadForceClosingChannelsTable=function(e){e.sort((function(e,t){return e.active===t.active?0:t.active?-1:1})),this.pendingForceClosingChannelsLength=e.length?e.length:0,this.pendingForceClosingChannels=new Tt.o(Object(kt.g)(e)),this.pendingForceClosingChannels.sort=this.sort,this.pendingForceClosingChannels.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.logger.info(this.pendingForceClosingChannels)},e.prototype.loadClosingChannelsTable=function(e){e.sort((function(e,t){return e.active===t.active?0:t.active?-1:1})),this.pendingClosingChannelsLength=e.length?e.length:0,this.pendingClosingChannels=new Tt.o(Object(kt.g)(e)),this.pendingClosingChannels.sort=this.sort,this.pendingClosingChannels.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.logger.info(this.pendingClosingChannels)},e.prototype.loadWaitClosingChannelsTable=function(e){e.sort((function(e,t){return e.active===t.active?0:t.active?-1:1})),this.pendingWaitClosingChannelsLength=e.length?e.length:0,this.pendingWaitClosingChannels=new Tt.o(Object(kt.g)(e)),this.pendingWaitClosingChannels.sort=this.sort,this.pendingWaitClosingChannels.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.logger.info(this.pendingWaitClosingChannels)},e.prototype.applyFilter=function(e){this.selectedFilter=e},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(C.h),i.Qb(h.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-channel-pending-table"]],viewQuery:function(e,t){var n;1&e&&i.Dc(Ht.a,!0),2&e&&i.vc(n=i.fc())&&(t.sort=n.first)},decls:120,vars:44,consts:[["fxLayout","column",1,"mb-2"],[1,"page-title"],["displayMode","flat",1,"mt-1"],["mode","indeterminate",4,"ngIf"],["fxLayout","column",1,"flat-expansion-panel"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container"],["matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"ngStyle",4,"matCellDef"],["matColumnDef","commit_fee"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","commit_weight"],["matColumnDef","capacity"],["matColumnDef","actions"],["fxLayoutAlign","end center","class","pl-3 pr-4",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_pending_open"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass",4,"matFooterRowDef"],[4,"matHeaderRowDef"],["fxLayoutAlign","stretch stretch",4,"matRowDef","matRowDefColumns"],["perfectScrollbar","",1,"table-container"],["matColumnDef","recovered_balance"],["matColumnDef","limbo_balance"],["fxLayoutAlign","end center","class","pl-4 pr-3",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","pl-4",4,"matCellDef"],["matColumnDef","no_pending_force_closing"],["class","pl-2","mat-sort-header","",4,"matHeaderCellDef"],["class","pl-2",3,"ngStyle",4,"matCellDef"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","no_pending_closing"],["matColumnDef","no_pending_wait_closing"],["mode","indeterminate"],["mat-sort-header",""],[3,"ngStyle"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"pl-3","pr-4"],["fxLayoutAlign","end center",1,"px-3"],["fxFlex","100","fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass"],["fxLayoutAlign","stretch stretch"],["fxLayoutAlign","end center",1,"pl-4","pr-3"],["fxLayoutAlign","end center",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","2",3,"click"],["mat-sort-header","",1,"pl-2"],[1,"pl-2",3,"ngStyle"],["mat-stroked-button","","color","primary","type","button","tabindex","3",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"span",1),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Wb(4,"mat-accordion",2),i.Fc(5,fr,1,0,"mat-progress-bar",3),i.Wb(6,"mat-expansion-panel",4),i.Wb(7,"mat-expansion-panel-header"),i.Wb(8,"mat-panel-title"),i.Hc(9),i.Vb(),i.Vb(),i.Wb(10,"div",5),i.Wb(11,"mat-table",6,7),i.Ub(13,8),i.Fc(14,hr,2,0,"mat-header-cell",9),i.Fc(15,yr,2,4,"mat-cell",10),i.Tb(),i.Ub(16,11),i.Fc(17,Cr,2,0,"mat-header-cell",12),i.Fc(18,vr,3,3,"mat-cell",13),i.Tb(),i.Ub(19,14),i.Fc(20,xr,2,0,"mat-header-cell",12),i.Fc(21,wr,3,3,"mat-cell",13),i.Tb(),i.Ub(22,15),i.Fc(23,Fr,2,0,"mat-header-cell",12),i.Fc(24,Vr,3,3,"mat-cell",13),i.Tb(),i.Ub(25,16),i.Fc(26,Wr,2,0,"mat-header-cell",17),i.Fc(27,Lr,8,0,"mat-cell",18),i.Tb(),i.Ub(28,19),i.Fc(29,Sr,2,1,"td",20),i.Tb(),i.Fc(30,Rr,1,3,"tr",21),i.Fc(31,kr,1,0,"mat-header-row",22),i.Fc(32,Ir,1,0,"mat-row",23),i.Vb(),i.Vb(),i.Vb(),i.Fc(33,Hr,1,0,"mat-progress-bar",3),i.Wb(34,"mat-expansion-panel",4),i.Wb(35,"mat-expansion-panel-header"),i.Wb(36,"mat-panel-title"),i.Hc(37),i.Vb(),i.Vb(),i.Wb(38,"div",24),i.Wb(39,"mat-table",6,7),i.Ub(41,8),i.Fc(42,Tr,2,0,"mat-header-cell",9),i.Fc(43,Ar,2,4,"mat-cell",10),i.Tb(),i.Ub(44,25),i.Fc(45,Or,2,0,"mat-header-cell",12),i.Fc(46,Pr,3,3,"mat-cell",13),i.Tb(),i.Ub(47,26),i.Fc(48,Mr,2,0,"mat-header-cell",12),i.Fc(49,Er,3,3,"mat-cell",13),i.Tb(),i.Ub(50,15),i.Fc(51,Gr,2,0,"mat-header-cell",12),i.Fc(52,Nr,3,3,"mat-cell",13),i.Tb(),i.Ub(53,16),i.Fc(54,zr,2,0,"mat-header-cell",27),i.Fc(55,Br,3,0,"mat-cell",28),i.Tb(),i.Ub(56,29),i.Fc(57,Ur,2,1,"td",20),i.Tb(),i.Fc(58,jr,1,3,"tr",21),i.Fc(59,Qr,1,0,"mat-header-row",22),i.Fc(60,Xr,1,0,"mat-row",23),i.Vb(),i.Vb(),i.Vb(),i.Fc(61,$r,1,0,"mat-progress-bar",3),i.Wb(62,"mat-expansion-panel",4),i.Wb(63,"mat-expansion-panel-header"),i.Wb(64,"mat-panel-title"),i.Hc(65),i.Vb(),i.Vb(),i.Wb(66,"div",24),i.Wb(67,"mat-table",6,7),i.Ub(69,8),i.Fc(70,Jr,2,0,"mat-header-cell",30),i.Fc(71,Zr,2,4,"mat-cell",31),i.Tb(),i.Ub(72,32),i.Fc(73,Kr,2,0,"mat-header-cell",12),i.Fc(74,Yr,3,3,"mat-cell",13),i.Tb(),i.Ub(75,33),i.Fc(76,ec,2,0,"mat-header-cell",12),i.Fc(77,tc,3,3,"mat-cell",13),i.Tb(),i.Ub(78,15),i.Fc(79,nc,2,0,"mat-header-cell",12),i.Fc(80,ac,3,3,"mat-cell",13),i.Tb(),i.Ub(81,16),i.Fc(82,oc,2,0,"mat-header-cell",27),i.Fc(83,ic,3,0,"mat-cell",28),i.Tb(),i.Ub(84,34),i.Fc(85,cc,2,1,"td",20),i.Tb(),i.Fc(86,lc,1,3,"tr",21),i.Fc(87,sc,1,0,"mat-header-row",22),i.Fc(88,bc,1,0,"mat-row",23),i.Vb(),i.Vb(),i.Vb(),i.Fc(89,uc,1,0,"mat-progress-bar",3),i.Wb(90,"mat-expansion-panel",4),i.Wb(91,"mat-expansion-panel-header"),i.Wb(92,"mat-panel-title"),i.Hc(93),i.Vb(),i.Vb(),i.Wb(94,"div",24),i.Wb(95,"mat-table",6,7),i.Ub(97,8),i.Fc(98,pc,2,0,"mat-header-cell",30),i.Fc(99,dc,2,4,"mat-cell",31),i.Tb(),i.Ub(100,26),i.Fc(101,mc,2,0,"mat-header-cell",12),i.Fc(102,fc,3,3,"mat-cell",13),i.Tb(),i.Ub(103,32),i.Fc(104,hc,2,0,"mat-header-cell",12),i.Fc(105,gc,3,3,"mat-cell",13),i.Tb(),i.Ub(106,33),i.Fc(107,yc,2,0,"mat-header-cell",12),i.Fc(108,Cc,3,3,"mat-cell",13),i.Tb(),i.Ub(109,15),i.Fc(110,vc,2,0,"mat-header-cell",12),i.Fc(111,xc,3,3,"mat-cell",13),i.Tb(),i.Ub(112,16),i.Fc(113,wc,2,0,"mat-header-cell",27),i.Fc(114,Fc,3,0,"mat-cell",28),i.Tb(),i.Ub(115,35),i.Fc(116,Wc,2,1,"td",20),i.Tb(),i.Fc(117,Dc,1,3,"tr",21),i.Fc(118,Sc,1,0,"mat-header-row",22),i.Fc(119,_c,1,0,"mat-row",23),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(2),i.Kc("Total Limbo Balance: ",i.kc(3,30,t.pendingChannels.total_limbo_balance)," ",null==t.information?null:t.information.smaller_currency_unit,""),i.Db(3),i.pc("ngIf",!0===t.flgLoading[0]),i.Db(4),i.Jc("Pending Open (",t.pendingOpenChannelsLength,")"),i.Db(2),i.pc("dataSource",t.pendingOpenChannels)("ngClass",i.tc(32,Rc,"error"===t.flgLoading[0])),i.Db(19),i.pc("matFooterRowDef",i.sc(34,kc)),i.Db(1),i.pc("matHeaderRowDef",t.displayedOpenColumns),i.Db(1),i.pc("matRowDefColumns",t.displayedOpenColumns),i.Db(1),i.pc("ngIf",!0===t.flgLoading[0]),i.Db(4),i.Jc("Pending Force Closing (",t.pendingForceClosingChannelsLength,")"),i.Db(2),i.pc("dataSource",t.pendingForceClosingChannels)("ngClass",i.tc(35,Ic,"error"===t.flgLoading[0])),i.Db(19),i.pc("matFooterRowDef",i.sc(37,Hc)),i.Db(1),i.pc("matHeaderRowDef",t.displayedForceClosingColumns),i.Db(1),i.pc("matRowDefColumns",t.displayedForceClosingColumns),i.Db(1),i.pc("ngIf",!0===t.flgLoading[0]),i.Db(4),i.Jc("Pending Closing (",t.pendingClosingChannelsLength,")"),i.Db(2),i.pc("dataSource",t.pendingClosingChannels)("ngClass",i.tc(38,Ic,"error"===t.flgLoading[0])),i.Db(19),i.pc("matFooterRowDef",i.sc(40,Tc)),i.Db(1),i.pc("matHeaderRowDef",t.displayedClosingColumns),i.Db(1),i.pc("matRowDefColumns",t.displayedClosingColumns),i.Db(1),i.pc("ngIf",!0===t.flgLoading[0]),i.Db(4),i.Jc("Waiting Close (",t.pendingWaitClosingChannelsLength,")"),i.Db(2),i.pc("dataSource",t.pendingWaitClosingChannels)("ngClass",i.tc(41,Ic,"error"===t.flgLoading[0])),i.Db(22),i.pc("matFooterRowDef",i.sc(43,Ac)),i.Db(1),i.pc("matHeaderRowDef",t.displayedWaitClosingColumns),i.Db(1),i.pc("matRowDefColumns",t.displayedWaitClosingColumns))},directives:[x.c,K.a,a.n,K.c,K.e,K.f,M.b,x.b,x.a,Tt.n,Ht.a,a.l,V.a,Tt.c,Tt.i,Tt.b,Tt.e,Tt.g,Tt.k,Tt.m,r.a,Tt.h,Ht.b,Tt.a,a.o,V.b,Ot.a,Ot.c,Pt.n,Tt.d,Tt.f,Tt.j,Tt.l,D.a],pipes:[a.e],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tr.mat-footer-row[_ngcontent-%COMP%] td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom:none}"]}),e}();function Pc(e,t){1&e&&i.Rb(0,"mat-progress-bar",28)}function Mc(e,t){1&e&&(i.Wb(0,"th",29),i.Hc(1," Close Type "),i.Vb())}function Ec(e,t){if(1&e&&(i.Wb(0,"td",30),i.Hc(1),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.pc("matTooltip",a.channelClosureType[n.close_type].tooltip),i.Db(1),i.Jc("",a.channelClosureType[n.close_type].name," ")}}function Gc(e,t){1&e&&(i.Wb(0,"th",29),i.Hc(1," Peer "),i.Vb())}var Nc=function(e){return{"max-width":e}};function zc(e,t){if(1&e&&(i.Wb(0,"td",31),i.Hc(1),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.pc("ngStyle",i.tc(2,Nc,a.screenSize===a.screenSizeEnum.XS?"10rem":"20rem")),i.Db(1),i.Jc(" ",n.remote_alias," ")}}function Bc(e,t){1&e&&(i.Wb(0,"th",32),i.Hc(1," Capacity "),i.Vb())}function qc(e,t){if(1&e&&(i.Wb(0,"td",33),i.Wb(1,"span",34),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Jc(" ",i.kc(3,1,n.capacity)," ")}}function Uc(e,t){1&e&&(i.Wb(0,"th",32),i.Hc(1," Close Height "),i.Vb())}function jc(e,t){if(1&e&&(i.Wb(0,"td",33),i.Wb(1,"span",34),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Jc(" ",i.kc(3,1,n.close_height)," ")}}function Qc(e,t){1&e&&(i.Wb(0,"th",32),i.Hc(1," Settled Balance "),i.Vb())}function Xc(e,t){if(1&e&&(i.Wb(0,"td",33),i.Wb(1,"span",34),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Jc(" ",i.kc(3,1,n.settled_balance)," ")}}function $c(e,t){if(1&e){var n=i.Xb();i.Wb(0,"th",35),i.Wb(1,"div",36),i.Wb(2,"mat-select",37),i.Rb(3,"mat-select-trigger"),i.Wb(4,"mat-option",38),i.ec("click",(function(){return i.yc(n),i.ic().onDownloadCSV()})),i.Hc(5,"Download CSV"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}}function Jc(e,t){if(1&e){var n=i.Xb();i.Wb(0,"td",39),i.Wb(1,"span",34),i.Wb(2,"button",40),i.ec("click",(function(e){i.yc(n);var a=t.$implicit;return i.ic().onClosedChannelClick(a,e)})),i.Hc(3,"View Info"),i.Vb(),i.Vb(),i.Vb()}}function Zc(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"No closed channels available."),i.Vb())}function Kc(e,t){if(1&e&&(i.Wb(0,"td",41),i.Fc(1,Zc,2,0,"p",42),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngIf",!(null!=n.closedChannels&&n.closedChannels.data)||(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)<1)}}var Yc=function(e){return{"display-none":e}};function el(e,t){if(1&e&&i.Rb(0,"tr",43),2&e){var n=i.ic();i.pc("ngClass",i.tc(1,Yc,(null==n.closedChannels?null:n.closedChannels.data)&&(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)>0))}}function tl(e,t){1&e&&i.Rb(0,"tr",44)}function nl(e,t){1&e&&i.Rb(0,"tr",45)}var al=function(e){return{"error-border":e}},ol=function(){return["no_closed_channel"]},il=function(){function e(e,t,n,a){this.logger=e,this.store=t,this.actions$=n,this.commonService=a,this.channelClosureType=g.d,this.faHistory=m.q,this.displayedColumns=[],this.flgLoading=[!0],this.selectedFilter="",this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unsub=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","actions"]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["close_type","remote_alias","settled_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["close_type","remote_alias","capacity","close_height","settled_balance","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unsub[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchChannels/closed"===t.action&&(e.flgLoading[0]="error")})),t.closedChannels&&e.loadClosedChannelsTable(t.closedChannels),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.closedChannels),e.logger.info(t)}))},e.prototype.applyFilter=function(e){this.selectedFilter=e,this.closedChannels.filter=e},e.prototype.onClosedChannelClick=function(e,t){this.store.dispatch(new J.C({data:{type:g.b.INFORMATION,alertTitle:"Closed Channel Information",message:[[{key:"close_type",value:this.channelClosureType[e.close_type].name,title:"Close Type",width:30,type:g.h.STRING},{key:"settled_balance",value:e.settled_balance,title:"Settled Balance",width:30,type:g.h.NUMBER},{key:"time_locked_balance",value:e.time_locked_balance,title:"Time Locked Balance",width:40,type:g.h.NUMBER}],[{key:"chan_id",value:e.chan_id,title:"Channel ID",width:30},{key:"capacity",value:e.capacity,title:"Capacity",width:30,type:g.h.NUMBER},{key:"close_height",value:e.close_height,title:"Close Height",width:40,type:g.h.NUMBER}],[{key:"remote_alias",value:e.remote_alias,title:"Peer Alias",width:30},{key:"remote_pubkey",value:e.remote_pubkey,title:"Peer Public Key",width:70}],[{key:"channel_point",value:e.channel_point,title:"Channel Point",width:100}],[{key:"closing_tx_hash",value:e.closing_tx_hash,title:"Closing Transaction Hash",width:100,type:g.h.STRING}]]}}))},e.prototype.loadClosedChannelsTable=function(e){this.closedChannels=new Tt.o(Object(kt.g)(e)),this.closedChannels.sort=this.sort,this.closedChannels.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.closedChannels.paginator=this.paginator,this.logger.info(this.closedChannels)},e.prototype.resetData=function(){this.selectedFilter=""},e.prototype.onDownloadCSV=function(){this.closedChannels.data&&this.closedChannels.data.length>0&&this.commonService.downloadFile(this.closedChannels.data,"Closed-channels")},e.prototype.ngOnDestroy=function(){this.unsub.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(C.h),i.Qb(v.a),i.Qb(h.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-channel-closed-table"]],viewQuery:function(e,t){var n;1&e&&(i.Dc(Ht.a,!0),i.Dc(It.a,!0)),2&e&&(i.vc(n=i.fc())&&(t.sort=n.first),i.vc(n=i.fc())&&(t.paginator=n.first))},features:[i.Cb([{provide:It.b,useValue:Object(g.w)("Channels")}])],decls:33,vars:13,consts:[["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","close_type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"matTooltip",4,"matCellDef"],["matColumnDef","remote_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","close_height"],["matColumnDef","settled_balance"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["matColumnDef","no_closed_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"matTooltip"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Rb(2,"div",2),i.Wb(3,"mat-form-field",3),i.Wb(4,"input",4),i.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),i.Vb(),i.Vb(),i.Vb(),i.Wb(5,"div",5),i.Fc(6,Pc,1,0,"mat-progress-bar",6),i.Wb(7,"table",7,8),i.Ub(9,9),i.Fc(10,Mc,2,0,"th",10),i.Fc(11,Ec,2,2,"td",11),i.Tb(),i.Ub(12,12),i.Fc(13,Gc,2,0,"th",10),i.Fc(14,zc,2,4,"td",13),i.Tb(),i.Ub(15,14),i.Fc(16,Bc,2,0,"th",15),i.Fc(17,qc,4,3,"td",16),i.Tb(),i.Ub(18,17),i.Fc(19,Uc,2,0,"th",15),i.Fc(20,jc,4,3,"td",16),i.Tb(),i.Ub(21,18),i.Fc(22,Qc,2,0,"th",15),i.Fc(23,Xc,4,3,"td",16),i.Tb(),i.Ub(24,19),i.Fc(25,$c,6,0,"th",20),i.Fc(26,Jc,4,0,"td",21),i.Tb(),i.Ub(27,22),i.Fc(28,Kc,2,1,"td",23),i.Tb(),i.Fc(29,el,1,3,"tr",24),i.Fc(30,tl,1,0,"tr",25),i.Fc(31,nl,1,0,"tr",26),i.Vb(),i.Vb(),i.Rb(32,"mat-paginator",27),i.Vb()),2&e&&(i.Db(6),i.pc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.pc("dataSource",t.closedChannels)("ngClass",i.tc(10,al,"error"===t.flgLoading[0])),i.Db(22),i.pc("matFooterRowDef",i.sc(12,ol)),i.Db(1),i.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.pc("matRowDefColumns",t.displayedColumns),i.Db(1),i.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[x.c,x.b,x.a,A.c,le.b,M.b,a.n,Tt.n,Ht.a,a.l,V.a,Tt.c,Tt.i,Tt.b,Tt.e,Tt.g,Tt.k,Tt.m,It.a,r.a,Tt.h,Ht.b,Tt.a,O.a,a.o,V.b,Ot.a,Ot.c,Pt.n,D.a,Tt.d,Tt.f,Tt.j,Tt.l],pipes:[a.e],styles:[".mat-column-close_type[_ngcontent-%COMP%]{flex:0 0 16%;min-width:5rem}.mat-column-remote_alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e}();function rl(e,t){1&e&&i.Rb(0,"mat-progress-bar",27)}function cl(e,t){1&e&&(i.Wb(0,"th",28),i.Hc(1,"Amount (Sats)"),i.Vb())}function ll(e,t){if(1&e&&(i.Wb(0,"span",33),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Jc(" ",i.kc(2,1,null==n?null:n.amount)," ")}}function sl(e,t){if(1&e&&(i.Wb(0,"span"),i.Fc(1,ll,3,3,"span",32),i.Vb()),2&e){var n=i.ic().$implicit;i.Db(1),i.pc("ngForOf",null==n?null:n.pending_htlcs)}}function bl(e,t){if(1&e&&(i.Wb(0,"td",29),i.Wb(1,"span",30),i.Hc(2),i.Vb(),i.Fc(3,sl,2,1,"span",31),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Jc(" Active HTLCs: ",null==n||null==n.pending_htlcs?null:n.pending_htlcs.length," "),i.Db(1),i.pc("ngIf",n.is_expanded)}}function ul(e,t){1&e&&(i.Wb(0,"th",28),i.Hc(1,"Alias/Incoming"),i.Vb())}function pl(e,t){if(1&e&&(i.Wb(0,"span",30),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Jc(" ",null!=n&&n.incoming?"Yes":"No"," ")}}function dl(e,t){if(1&e&&(i.Ub(0),i.Fc(1,pl,2,1,"span",34),i.Tb()),2&e){var n=i.ic().$implicit;i.Db(1),i.pc("ngForOf",null==n?null:n.pending_htlcs)}}function ml(e,t){if(1&e&&(i.Wb(0,"td",29),i.Wb(1,"span",30),i.Hc(2),i.Vb(),i.Fc(3,dl,2,1,"ng-container",31),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(null==n?null:n.remote_alias),i.Db(1),i.pc("ngIf",n.is_expanded)}}function fl(e,t){1&e&&(i.Wb(0,"th",35),i.Wb(1,"span",36),i.Hc(2,"Expiration Height"),i.Vb(),i.Vb())}function hl(e,t){if(1&e&&(i.Wb(0,"span",36),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Jc(" ",i.lc(2,1,null==n?null:n.expiration_height,"1.0-0")," ")}}function gl(e,t){if(1&e&&(i.Wb(0,"span"),i.Fc(1,hl,3,4,"span",37),i.Vb()),2&e){var n=i.ic().$implicit;i.Db(1),i.pc("ngForOf",null==n?null:n.pending_htlcs)}}function yl(e,t){if(1&e&&(i.Wb(0,"td",29),i.Wb(1,"span",36),i.Hc(2),i.Vb(),i.Fc(3,gl,2,1,"span",31),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(" "),i.Db(1),i.pc("ngIf",n.is_expanded)}}function Cl(e,t){1&e&&(i.Wb(0,"th",38),i.Hc(1,"Hash Lock"),i.Vb())}function vl(e,t){if(1&e&&(i.Wb(0,"span",30),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Jc(" ",null==n?null:n.hash_lock," ")}}function xl(e,t){if(1&e&&(i.Wb(0,"span"),i.Fc(1,vl,2,1,"span",34),i.Vb()),2&e){var n=i.ic().$implicit;i.Db(1),i.pc("ngForOf",null==n?null:n.pending_htlcs)}}function wl(e,t){if(1&e&&(i.Wb(0,"td",39),i.Wb(1,"span",30),i.Hc(2),i.Vb(),i.Fc(3,xl,2,1,"span",31),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(" "),i.Db(1),i.pc("ngIf",n.is_expanded)}}function Fl(e,t){if(1&e){var n=i.Xb();i.Wb(0,"th",40),i.Wb(1,"div",41),i.Wb(2,"mat-select",42),i.Rb(3,"mat-select-trigger"),i.Wb(4,"mat-option",43),i.ec("click",(function(){return i.yc(n),i.ic().onDownloadCSV()})),i.Hc(5,"Download CSV"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}}function Vl(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",45),i.Wb(1,"button",48),i.ec("click",(function(){i.yc(n);var e=t.$implicit,a=i.ic(2).$implicit;return i.ic().onHTLCClick(e,a)})),i.Hc(2),i.Vb(),i.Vb()}if(2&e){var a=t.index;i.Db(2),i.Jc("View ",a+1,"")}}function Wl(e,t){if(1&e&&(i.Wb(0,"div"),i.Fc(1,Vl,3,1,"div",47),i.Vb()),2&e){var n=i.ic().$implicit;i.Db(1),i.pc("ngForOf",null==n?null:n.pending_htlcs)}}function Ll(e,t){if(1&e&&(i.Wb(0,"td",44),i.Wb(1,"span",45),i.Wb(2,"button",46),i.ec("click",(function(){var e=t.$implicit;return e.is_expanded=!e.is_expanded})),i.Hc(3),i.Vb(),i.Vb(),i.Fc(4,Wl,2,1,"div",31),i.Vb()),2&e){var n=t.$implicit;i.Db(3),i.Ic(n.is_expanded?"Hide":"Show"),i.Db(1),i.pc("ngIf",n.is_expanded)}}function Dl(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"No active htlc available."),i.Vb())}function Sl(e,t){if(1&e&&(i.Wb(0,"td",49),i.Fc(1,Dl,2,0,"p",31),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngIf",!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)}}var _l=function(e){return{"display-none":e}};function Rl(e,t){if(1&e&&i.Rb(0,"tr",50),2&e){var n=i.ic();i.pc("ngClass",i.tc(1,_l,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function kl(e,t){1&e&&i.Rb(0,"tr",51)}function Il(e,t){1&e&&i.Rb(0,"tr",52)}var Hl=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Tl=function(){return["no_channel"]},Al=function(){function e(e,t,n){this.logger=e,this.commonService=t,this.store=n,this.flgLoading=[!0],this.channelsJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["amount","actions"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","actions"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","expiration_height","actions"]):(this.flgSticky=!0,this.displayedColumns=["amount","incoming","expiration_height","hash_lock","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchChannels/all"===t.action&&(e.flgLoading[0]="error")})),e.channelsJSONArr=t.allChannels&&t.allChannels.length>0?t.allChannels.filter((function(e){if(e.pending_htlcs&&e.pending_htlcs.length>0)return e})):[],e.channels=new Tt.o(t.allChannels?[]:Object(kt.g)(e.channelsJSONArr)),e.channels.data=e.channelsJSONArr,e.channels.sort=e.sort,e.channels.sortingDataAccessor=function(e,t){return"amount"===t&&e.pending_htlcs&&e.pending_htlcs.length?e.pending_htlcs.length:"incoming"===t?e.remote_alias.toLocaleLowerCase():e},e.channels.paginator=e.paginator,e.channels.filterPredicate=function(e,t){return(e.remote_alias+e.pending_htlcs.map((function(e){return JSON.stringify(e)+(e.incoming?"yes":"no")}))).includes(t.toLowerCase())},"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!e.channelsJSONArr),e.logger.info(t)}))},e.prototype.onHTLCClick=function(e,t){this.store.dispatch(new J.C({data:{type:g.b.INFORMATION,alertTitle:"HTLC Information",message:[[{key:"remote_alias",value:t.remote_alias,title:"Alias",width:100,type:g.h.STRING}],[{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:g.h.NUMBER},{key:"incoming",value:e.incoming?"Yes":"No",title:"Incoming",width:50,type:g.h.STRING}],[{key:"expiration_height",value:e.expiration_height,title:"Expiration Height",width:50,type:g.h.NUMBER},{key:"hash_lock",value:e.hash_lock,title:"Hash Lock",width:50,type:g.h.STRING}]]}}))},e.prototype.onChannelClick=function(e,t){this.store.dispatch(new J.C({data:{channel:e,showCopy:!0,component:No}}))},e.prototype.applyFilter=function(e){this.channels.filter=e},e.prototype.onDownloadCSV=function(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.flattenHTLCs(),"ActiveHTLCs")},e.prototype.flattenHTLCs=function(){return JSON.parse(JSON.stringify(this.channels.data)).reduce((function(e,t){return e.concat(t.pending_htlcs?t.pending_htlcs:t)}),[])},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(h.a),i.Qb(C.h))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-channel-active-htlcs-table"]],viewQuery:function(e,t){var n;1&e&&(i.Dc(Ht.a,!0),i.Dc(It.a,!0)),2&e&&(i.vc(n=i.fc())&&(t.sort=n.first),i.vc(n=i.fc())&&(t.paginator=n.first))},features:[i.Cb([{provide:It.b,useValue:Object(g.w)("HTLCs")}])],decls:30,vars:13,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","incoming"],["matColumnDef","expiration_height"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","hash_lock"],["mat-header-cell","","class","pl-3 htlc-row-span",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1 pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-1 pr-3",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayoutAlign","start center",1,"htlc-row-span"],[4,"ngIf"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell",""],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","",1,"pl-3","htlc-row-span"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"pl-1","pr-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"pl-1","pr-3"],["fxLayoutAlign","end center"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Rb(2,"div",2),i.Wb(3,"mat-form-field",3),i.Wb(4,"input",4),i.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),i.Vb(),i.Vb(),i.Vb(),i.Wb(5,"div",5),i.Fc(6,rl,1,0,"mat-progress-bar",6),i.Wb(7,"table",7,8),i.Ub(9,9),i.Fc(10,cl,2,0,"th",10),i.Fc(11,bl,4,2,"td",11),i.Tb(),i.Ub(12,12),i.Fc(13,ul,2,0,"th",10),i.Fc(14,ml,4,2,"td",11),i.Tb(),i.Ub(15,13),i.Fc(16,fl,3,0,"th",14),i.Fc(17,yl,4,2,"td",11),i.Tb(),i.Ub(18,15),i.Fc(19,Cl,2,0,"th",16),i.Fc(20,wl,4,2,"td",17),i.Tb(),i.Ub(21,18),i.Fc(22,Fl,6,0,"th",19),i.Fc(23,Ll,5,2,"td",20),i.Tb(),i.Ub(24,21),i.Fc(25,Sl,2,1,"td",22),i.Tb(),i.Fc(26,Rl,1,3,"tr",23),i.Fc(27,kl,1,0,"tr",24),i.Fc(28,Il,1,0,"tr",25),i.Vb(),i.Vb(),i.Rb(29,"mat-paginator",26),i.Vb()),2&e&&(i.Db(6),i.pc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.pc("dataSource",t.channels)("ngClass",i.tc(10,Hl,"error"===t.flgLoading[0])),i.Db(19),i.pc("matFooterRowDef",i.sc(12,Tl)),i.Db(1),i.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.pc("matRowDefColumns",t.displayedColumns),i.Db(1),i.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[x.c,x.b,x.a,A.c,le.b,M.b,a.n,Tt.n,Ht.a,a.l,V.a,Tt.c,Tt.i,Tt.b,Tt.e,Tt.g,Tt.k,Tt.m,It.a,r.a,Tt.h,Ht.b,Tt.a,a.m,Ot.a,Ot.c,Pt.n,D.a,Tt.d,Tt.f,Tt.j,Tt.l],pipes:[a.e],styles:[".mat-column-amount[_ngcontent-%COMP%], .mat-column-expiration_height[_ngcontent-%COMP%]{width:15%}.mat-column-hash_lock[_ngcontent-%COMP%], .mat-column-incoming[_ngcontent-%COMP%]{flex:0 0 25%;width:25%;text-overflow:ellipsis}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}"]}),e}(),Ol=n("BId/");function Pl(e,t){if(1&e&&(i.Wb(0,"span",2),i.Hc(1,"Open"),i.Vb()),2&e){var n=i.ic();i.qc("matBadge",n.numOpenChannels)}}function Ml(e,t){if(1&e&&(i.Wb(0,"span",2),i.Hc(1,"Pending"),i.Vb()),2&e){var n=i.ic();i.qc("matBadge",n.numPendingChannels)}}function El(e,t){if(1&e&&(i.Wb(0,"span",2),i.Hc(1,"Closed"),i.Vb()),2&e){var n=i.ic();i.qc("matBadge",n.numClosedChannels)}}function Gl(e,t){if(1&e&&(i.Wb(0,"span",2),i.Hc(1,"Active HTLCs"),i.Vb()),2&e){var n=i.ic();i.qc("matBadge",n.numActiveHTLCs)}}var Nl=function(){function e(e,t){this.logger=e,this.store=t,this.numOpenChannels=0,this.numPendingChannels=0,this.numClosedChannels=0,this.numActiveHTLCs=0,this.unSubs=[new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.numOpenChannels=t.allChannels&&t.allChannels.length?t.allChannels.length:0,e.numPendingChannels=t.numberOfPendingChannels.total_channels?t.numberOfPendingChannels.total_channels:0,e.numClosedChannels=t.closedChannels&&t.closedChannels.length?t.closedChannels.length:0,e.numActiveHTLCs=t.allChannels.reduce((function(e,t){return e+(t.pending_htlcs&&t.pending_htlcs.length>0?t.pending_htlcs.length:0)}),0),e.logger.info(t)}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(C.h))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-channels-tables"]],decls:14,vars:0,consts:[["fxLayout","column","fxFlex","100",1,"mt-2","bordered-box"],["mat-tab-label",""],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"mat-tab-group"),i.Wb(2,"mat-tab"),i.Fc(3,Pl,2,1,"ng-template",1),i.Rb(4,"rtl-channel-open-table"),i.Vb(),i.Wb(5,"mat-tab"),i.Fc(6,Ml,2,1,"ng-template",1),i.Rb(7,"rtl-channel-pending-table"),i.Vb(),i.Wb(8,"mat-tab"),i.Fc(9,El,2,1,"ng-template",1),i.Rb(10,"rtl-channel-closed-table"),i.Vb(),i.Wb(11,"mat-tab"),i.Fc(12,Gl,2,1,"ng-template",1),i.Rb(13,"rtl-channel-active-htlcs-table"),i.Vb(),i.Vb(),i.Vb())},directives:[x.c,x.a,Rt.c,Rt.a,Rt.d,or,Oc,il,Al,Ol.a],styles:[""]}),e}(),zl=["peersForm"],Bl=["stepper"];function ql(e,t){if(1&e&&i.Hc(0),2&e){var n=i.ic();i.Ic(n.peerFormLabel)}}function Ul(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Address is required."),i.Vb())}function jl(e,t){if(1&e&&(i.Wb(0,"div",38),i.Rb(1,"fa-icon",39),i.Wb(2,"span"),i.Hc(3),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("icon",n.faExclamationTriangle),i.Db(2),i.Ic(n.peerConnectionError)}}function Ql(e,t){if(1&e&&i.Hc(0),2&e){var n=i.ic();i.Ic(n.channelFormLabel)}}function Xl(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Amount is required."),i.Vb())}function $l(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Amount must be a positive number."),i.Vb())}function Jl(e,t){if(1&e&&(i.Wb(0,"mat-error"),i.Hc(1),i.Vb()),2&e){var n=i.ic();i.Db(1),i.Jc("Amount must be less than or equal to ",n.totalBalance,".")}}function Zl(e,t){if(1&e&&(i.Wb(0,"mat-option",40),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.pc("value",n.id),i.Db(1),i.Jc(" ",n.name," ")}}function Kl(e,t){if(1&e&&(i.Wb(0,"mat-error"),i.Hc(1),i.Vb()),2&e){var n=i.ic();i.Db(1),i.Jc("","0"===n.channelFormGroup.controls.selTransType.value?"Default":"1"===n.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/Byte)"," is required.")}}function Yl(e,t){if(1&e&&(i.Wb(0,"div",38),i.Rb(1,"fa-icon",39),i.Wb(2,"span"),i.Hc(3),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("icon",n.faExclamationTriangle),i.Db(2),i.Ic(n.channelConnectionError)}}var es=function(){function e(e,t,n,a,o,i,r){this.dialogRef=e,this.data=t,this.store=n,this.lndEffects=a,this.formBuilder=o,this.actions$=i,this.logger=r,this.faExclamationTriangle=m.n,this.peerAddress="",this.totalBalance=0,this.transTypes=g.s,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.unSubs=[new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.totalBalance=this.data.message.balance,this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[U.s.required]],peerAddress:["",[U.s.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[U.s.required,U.s.min(1),U.s.max(this.totalBalance)]],isPrivate:[!1],selTransType:[g.s[0].id],transTypeValue:[{value:"",disabled:!0}],spendUnconfirmed:[!1],hiddenAmount:["",[U.s.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.selTransType.valueChanges.pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t===g.s[0].id?(e.channelFormGroup.controls.transTypeValue.setValue(""),e.channelFormGroup.controls.transTypeValue.disable(),e.channelFormGroup.controls.transTypeValue.setValidators(null),e.channelFormGroup.controls.transTypeValue.setErrors(null)):(e.channelFormGroup.controls.transTypeValue.setValue(""),e.channelFormGroup.controls.transTypeValue.enable(),e.channelFormGroup.controls.transTypeValue.setValidators([U.s.required]))})),this.actions$.pipe(Object(u.a)(this.unSubs[1]),Object(p.a)((function(e){return e.type===y.db||e.type===y.z||e.type===y.m}))).subscribe((function(t){t.type===y.db&&(e.logger.info(t.payload),e.flgEditable=!1,e.newlyAddedPeer=t.payload.peer,e.peerFormGroup.controls.hiddenAddress.setValue(e.peerFormGroup.controls.peerAddress.value),e.stepper.next()),t.type===y.z&&e.dialogRef.close(),t.type===y.m&&("SaveNewPeer"===t.payload.action||"FetchGraphNode"===t.payload.action?e.peerConnectionError=t.payload.message:"SaveNewChannel"===t.payload.action&&(e.channelConnectionError=t.payload.message))}))},e.prototype.onConnectPeer=function(){var e=this;if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="";var t=this.peerFormGroup.controls.peerAddress.value.search("@"),n="",a="";t>-1?(n=this.peerFormGroup.controls.peerAddress.value.substring(0,t),a=this.peerFormGroup.controls.peerAddress.value.substring(t+1),this.connectPeerWithParams(n,a)):(this.store.dispatch(new J.F("Getting Node Address...")),this.store.dispatch(new y.G({pubkey:this.peerFormGroup.controls.peerAddress.value})),this.lndEffects.setGraphNode.pipe(Object(wn.a)(1)).subscribe((function(t){e.store.dispatch(new J.i),e.connectPeerWithParams(e.peerFormGroup.controls.peerAddress.value,a=t.node.addresses&&t.node.addresses[0].addr?t.node.addresses[0].addr:"")})))},e.prototype.connectPeerWithParams=function(e,t){this.store.dispatch(new J.F("Adding Peer...")),this.store.dispatch(new y.Ub({pubkey:e,host:t,perm:!1}))},e.prototype.onOpenChannel=function(){if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||"1"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value||"2"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value)return!0;this.channelConnectionError="",this.store.dispatch(new J.F("Opening Channel...")),this.store.dispatch(new y.Sb({selectedPeerPubkey:this.newlyAddedPeer.pub_key,fundingAmount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,transType:this.channelFormGroup.controls.selTransType.value,transTypeValue:this.channelFormGroup.controls.transTypeValue.value,spendUnconfirmed:this.channelFormGroup.controls.spendUnconfirmed.value}))},e.prototype.onClose=function(){this.dialogRef.close(!1)},e.prototype.stepSelectionChanged=function(e){switch(e.selectedIndex){case 0:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+this.newlyAddedPeer.alias:"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+this.newlyAddedPeer.alias:"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)";break;default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)"}e.selectedIndex0))}}function Cs(e,t){1&e&&i.Rb(0,"tr",48)}function vs(e,t){1&e&&i.Rb(0,"tr",49)}var xs=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},ws=function(){return["no_peer"]},Fs=function(){function e(e,t,n,a,o,i){this.logger=e,this.store=t,this.rtlEffects=n,this.lndEffects=a,this.actions$=o,this.commonService=i,this.availableBalance=0,this.faUsers=m.N,this.displayedColumns=[],this.information={},this.flgLoading=[!0],this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","actions"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","ping_time","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","pub_key","sat_sent","sat_recv","ping_time","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchPeers"===t.action&&(e.flgLoading[0]="error")})),e.information=t.information,e.availableBalance=t.blockchainBalance.total_balance||0,e.peers=new Tt.o([]),e.peers.data=[],t.peers&&(e.peers=new Tt.o(Object(kt.g)(t.peers)),e.peers.data=t.peers),e.peers.sort=e.sort,e.peers.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},e.peers.paginator=e.paginator,"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!1),e.logger.info(t)}))},e.prototype.onPeerClick=function(e,t){this.store.dispatch(new J.C({data:{type:g.b.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:e.pub_key,message:[[{key:"pub_key",value:e.pub_key,title:"Public Key",width:100}],[{key:"address",value:e.address,title:"Address",width:100}],[{key:"alias",value:e.alias,title:"Alias",width:40},{key:"inbound",value:e.inbound?"True":"False",title:"Inbound",width:30},{key:"ping_time",value:e.ping_time,title:"Ping Time",width:30,type:g.h.NUMBER}],[{key:"sat_sent",value:e.sat_sent,title:"Satoshis Sent",width:50,type:g.h.NUMBER},{key:"sat_recv",value:e.sat_recv,title:"Satoshis Received",width:50,type:g.h.NUMBER}],[{key:"bytes_sent",value:e.bytes_sent,title:"Bytes Sent",width:50,type:g.h.NUMBER},{key:"bytes_recv",value:e.bytes_recv,title:"Bytes Received",width:50,type:g.h.NUMBER}]]}}))},e.prototype.onConnectPeer=function(){this.store.dispatch(new J.C({data:{message:{peer:null,information:this.information,balance:this.availableBalance},component:es}}))},e.prototype.onOpenChannel=function(e){this.store.dispatch(new J.C({data:{alertTitle:"Open Channel",message:{peer:e,information:this.information,balance:this.availableBalance},component:Ro}}))},e.prototype.onPeerDetach=function(e){var t=this;this.store.dispatch(new J.D({data:{type:g.b.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(e.alias?e.alias:e.pub_key),noBtnText:"Cancel",yesBtnText:"Disconnect"}})),this.rtlEffects.closeConfirm.pipe(Object(u.a)(this.unSubs[3])).subscribe((function(n){n&&(t.store.dispatch(new J.F("Disconnecting Peer...")),t.store.dispatch(new y.l({pubkey:e.pub_key})))}))},e.prototype.applyFilter=function(e){this.peers.filter=e},e.prototype.onDownloadCSV=function(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(C.h),i.Qb(Pn.a),i.Qb(On.a),i.Qb(v.a),i.Qb(h.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-peers"]],viewQuery:function(e,t){var n;1&e&&(i.Dc(Ht.a,!0),i.Dc(It.a,!0)),2&e&&(i.vc(n=i.fc())&&(t.sort=n.first),i.vc(n=i.fc())&&(t.paginator=n.first))},features:[i.Cb([{provide:It.b,useValue:Object(g.w)("Peers")}])],decls:41,vars:14,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","mt-1"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["fxLayout","row","fxLayoutAlign","start start"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","pub_key"],["matColumnDef","sat_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","sat_recv"],["matColumnDef","ping_time"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["fxFlex","100",1,"bordered-box","table-actions-select"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Wb(2,"button",2),i.ec("click",(function(){return t.onConnectPeer()})),i.Hc(3,"Add Peer"),i.Vb(),i.Vb(),i.Wb(4,"div",3),i.Wb(5,"div",4),i.Wb(6,"div",5),i.Rb(7,"fa-icon",6),i.Wb(8,"span",7),i.Hc(9,"Connected Peers"),i.Vb(),i.Vb(),i.Wb(10,"mat-form-field",8),i.Wb(11,"div",9),i.Wb(12,"input",10),i.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Wb(13,"div",11),i.Fc(14,ts,1,0,"mat-progress-bar",12),i.Wb(15,"table",13,14),i.Ub(17,15),i.Fc(18,ns,2,0,"th",16),i.Fc(19,os,2,4,"td",17),i.Tb(),i.Ub(20,18),i.Fc(21,is,2,0,"th",16),i.Fc(22,rs,2,4,"td",17),i.Tb(),i.Ub(23,19),i.Fc(24,cs,2,0,"th",20),i.Fc(25,ls,4,3,"td",21),i.Tb(),i.Ub(26,22),i.Fc(27,ss,2,0,"th",20),i.Fc(28,bs,4,3,"td",21),i.Tb(),i.Ub(29,23),i.Fc(30,us,2,0,"th",20),i.Fc(31,ps,4,3,"td",21),i.Tb(),i.Ub(32,24),i.Fc(33,ds,6,0,"th",25),i.Fc(34,ms,10,0,"td",26),i.Tb(),i.Ub(35,27),i.Fc(36,hs,2,1,"td",28),i.Tb(),i.Fc(37,ys,1,3,"tr",29),i.Fc(38,Cs,1,0,"tr",30),i.Fc(39,vs,1,0,"tr",31),i.Vb(),i.Vb(),i.Rb(40,"mat-paginator",32),i.Vb(),i.Vb()),2&e&&(i.Db(7),i.pc("icon",t.faUsers),i.Db(7),i.pc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.pc("dataSource",t.peers)("ngClass",i.tc(11,xs,"error"===t.flgLoading[0])),i.Db(22),i.pc("matFooterRowDef",i.sc(13,ws)),i.Db(1),i.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.pc("matRowDefColumns",t.displayedColumns),i.Db(1),i.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[x.c,x.a,x.b,D.a,w.a,A.c,le.b,M.b,a.n,Tt.n,Ht.a,a.l,V.a,Tt.c,Tt.i,Tt.b,Tt.e,Tt.g,Tt.k,Tt.m,It.a,r.a,Tt.h,Ht.b,Tt.a,a.o,V.b,Ot.a,Ot.c,Pt.n,Tt.d,Tt.f,Tt.j,Tt.l],pipes:[a.e],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%}.mat-column-alias[_ngcontent-%COMP%], .mat-column-pub_key[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-pub_key[_ngcontent-%COMP%]{flex:1 1 35%;padding-left:2rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem;flex:1 1 10%}.mat-column-ping_time[_ngcontent-%COMP%], .mat-column-sat_recv[_ngcontent-%COMP%], .mat-column-sat_sent[_ngcontent-%COMP%]{flex:1 1 13%;width:13%}"]}),e}();function Vs(e,t){if(1&e&&(i.Wb(0,"span",12),i.Hc(1,"Channels"),i.Vb()),2&e){var n=i.ic();i.qc("matBadge",n.activeChannels)}}function Ws(e,t){if(1&e&&(i.Wb(0,"span",12),i.Hc(1,"Peers"),i.Vb()),2&e){var n=i.ic();i.qc("matBadge",n.activePeers)}}var Ls=function(){function e(e,t){this.store=e,this.logger=t,this.selNode={},this.activePeers=0,this.activeChannels=0,this.faUsers=m.N,this.faChartPie=m.f,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.peers=[],this.information={},this.totalBalance=0,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unSubs[1])).subscribe((function(t){e.selNode=t.nodeSettings,e.activePeers=t.peers&&t.peers.length?t.peers.length:0,e.activeChannels=t.numberOfActiveChannels,e.balances=[{title:"Total Balance",dataValue:t.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:t.blockchainBalance.confirmed_balance},{title:"Unconfirmed",dataValue:t.blockchainBalance.unconfirmed_balance}],e.information=t.information,e.totalBalance=+t.blockchainBalance.total_balance,e.peers=t.peers,e.peers.forEach((function(e){e.alias&&""!==e.alias||(e.alias=e.pub_key.substring(0,15)+"...")})),e.logger.info(t)}))},e.prototype.onOpenChannel=function(){this.store.dispatch(new J.C({data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Ro}}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(C.h),i.Qb(f.b))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-peers-channels"]],decls:26,vars:3,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Rb(1,"fa-icon",1),i.Wb(2,"span",2),i.Hc(3,"On-chain Balance"),i.Vb(),i.Vb(),i.Wb(4,"div",3),i.Wb(5,"mat-card"),i.Wb(6,"mat-card-content",4),i.Rb(7,"rtl-currency-unit-converter",5),i.Vb(),i.Vb(),i.Vb(),i.Wb(8,"div",0),i.Rb(9,"fa-icon",1),i.Wb(10,"span",2),i.Hc(11,"Connections"),i.Vb(),i.Vb(),i.Wb(12,"div",6),i.Wb(13,"mat-card"),i.Wb(14,"mat-card-content",4),i.Wb(15,"mat-tab-group"),i.Wb(16,"mat-tab"),i.Fc(17,Vs,2,1,"ng-template",7),i.Wb(18,"div",8),i.Wb(19,"div",9),i.Wb(20,"button",10),i.ec("click",(function(){return t.onOpenChannel()})),i.Hc(21,"Open Channel"),i.Vb(),i.Vb(),i.Rb(22,"rtl-channels-tables",11),i.Vb(),i.Vb(),i.Wb(23,"mat-tab"),i.Fc(24,Ws,2,1,"ng-template",7),i.Rb(25,"rtl-peers"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(1),i.pc("icon",t.faChartPie),i.Db(6),i.pc("values",t.balances),i.Db(2),i.pc("icon",t.faUsers))},directives:[x.c,x.b,w.a,W.a,W.b,ko.a,Rt.c,Rt.a,Rt.d,x.a,D.a,Nl,Fs,Ol.a],styles:[""]}),e}();function Ds(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Wallet password is required."),i.Vb())}var Ss=function(){function e(e){this.store=e,this.walletPassword=""}return e.prototype.ngOnInit=function(){this.walletPassword=""},e.prototype.onUnlockWallet=function(){if(!this.walletPassword)return!0;this.store.dispatch(new J.F("Unlocking...")),this.store.dispatch(new y.gc({pwd:window.btoa(this.walletPassword)}))},e.prototype.resetData=function(){this.walletPassword=""},e.\u0275fac=function(t){return new(t||e)(i.Qb(C.h))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-unlock-wallet"]],decls:12,vars:2,consts:[["fxLayout","column",1,"padding-gap","mb-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","type","password","placeholder","Password","name","walletPassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","3",3,"click"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"form",1),i.Wb(2,"mat-form-field",2),i.Wb(3,"input",3),i.ec("ngModelChange",(function(e){return t.walletPassword=e})),i.Vb(),i.Wb(4,"mat-hint"),i.Hc(5,"Enter Wallet Password"),i.Vb(),i.Fc(6,Ds,2,0,"mat-error",4),i.Vb(),i.Wb(7,"div",5),i.Wb(8,"button",6),i.ec("click",(function(){return t.resetData()})),i.Hc(9,"Clear Field"),i.Vb(),i.Wb(10,"button",7),i.ec("click",(function(){return t.onUnlockWallet()})),i.Hc(11,"Unlock Wallet"),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(3),i.pc("ngModel",t.walletPassword),i.Db(3),i.pc("ngIf",!t.walletPassword))},directives:[x.c,U.t,U.m,U.n,x.b,A.c,x.a,le.b,U.b,se.a,U.r,U.l,U.o,A.f,a.n,D.a,A.b],styles:[""]}),e}(),_s=n("0OUw");function Rs(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div"),i.Wb(1,"form",4),i.Wb(2,"div",5),i.Hc(3,"Warning: Your connection is unsecure, it's not safe to generate private keys over this connection.Are you sure you want to proceed?"),i.Vb(),i.Wb(4,"div",6),i.Wb(5,"button",7),i.ec("click",(function(){i.yc(n);var e=i.ic();return e.proceed=!1,e.warnRes=!0})),i.Hc(6,"Do Not Proceed"),i.Vb(),i.Wb(7,"button",8),i.ec("click",(function(){i.yc(n);var e=i.ic();return e.proceed=!0,e.warnRes=!0})),i.Hc(8,"Proceed"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}}function ks(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",9),i.Wb(1,"div",10),i.Hc(2,"Please re-configure & re-start RTL after securing your LND connction. You can close this window now."),i.Vb(),i.Wb(3,"div",6),i.Wb(4,"button",11),i.ec("click",(function(){return i.yc(n),i.ic().warnRes=!1})),i.Hc(5,"Go Back"),i.Vb(),i.Vb(),i.Vb()}}function Is(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Password is required."),i.Vb())}function Hs(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Password must be at least 8 characters in length."),i.Vb())}function Ts(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Confirm password is required."),i.Vb())}function As(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Confirm password must be at least 8 characters in length."),i.Vb())}function Os(e,t){1&e&&(i.Wb(0,"div",41),i.Wb(1,"mat-icon",42),i.Hc(2,"cancel"),i.Vb(),i.Hc(3,"Passwords do not match. "),i.Vb())}function Ps(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Cipher seed is required."),i.Vb())}function Ms(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Invalid Cipher. Enter comma separated 24 words cipher seed."),i.Vb())}function Es(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Passphrase is required."),i.Vb())}function Gs(e,t){1&e&&(i.Wb(0,"mat-icon"),i.Hc(1,"vpn_key"),i.Vb())}function Ns(e,t){1&e&&(i.Wb(0,"mat-icon"),i.Hc(1,"swap_calls"),i.Vb())}function zs(e,t){1&e&&(i.Wb(0,"mat-icon"),i.Hc(1,"fingerprint"),i.Vb())}function Bs(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-vertical-stepper",12,13),i.Wb(2,"mat-step",14),i.Wb(3,"form",15),i.Wb(4,"mat-form-field",16),i.Rb(5,"input",17),i.Wb(6,"mat-hint"),i.Hc(7,"Enter Wallet Password"),i.Vb(),i.Fc(8,Is,2,0,"mat-error",1),i.Fc(9,Hs,2,0,"mat-error",1),i.Vb(),i.Wb(10,"mat-form-field",16),i.Rb(11,"input",18),i.Wb(12,"mat-hint"),i.Hc(13,"Confirm Wallet Password"),i.Vb(),i.Fc(14,Ts,2,0,"mat-error",1),i.Fc(15,As,2,0,"mat-error",1),i.Vb(),i.Fc(16,Os,4,0,"div",19),i.Wb(17,"div",20),i.Wb(18,"button",21),i.Hc(19,"Next"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Wb(20,"mat-step",22),i.Wb(21,"form",23),i.Wb(22,"div",24),i.Wb(23,"mat-slide-toggle",25),i.Hc(24,"Existing Cipher"),i.Vb(),i.Wb(25,"mat-form-field",26),i.Rb(26,"input",27),i.Wb(27,"mat-hint"),i.Hc(28,"Cipher Seed"),i.Vb(),i.Fc(29,Ps,2,0,"mat-error",1),i.Fc(30,Ms,2,0,"mat-error",1),i.Vb(),i.Vb(),i.Wb(31,"div",28),i.Wb(32,"button",29),i.Hc(33,"Back"),i.Vb(),i.Wb(34,"button",30),i.Hc(35,"Next"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Wb(36,"mat-step",31),i.Wb(37,"form",23),i.Wb(38,"div",24),i.Wb(39,"mat-slide-toggle",32),i.Hc(40,"Existing Passphrase"),i.Vb(),i.Wb(41,"mat-form-field",33),i.Rb(42,"input",34),i.Wb(43,"mat-hint"),i.Hc(44,"Enter Passphrase"),i.Vb(),i.Fc(45,Es,2,0,"mat-error",1),i.Vb(),i.Vb(),i.Wb(46,"div",28),i.Wb(47,"button",35),i.ec("click",(function(){return i.yc(n),i.ic().resetData()})),i.Hc(48,"Clear"),i.Vb(),i.Wb(49,"button",36),i.Hc(50,"Back"),i.Vb(),i.Wb(51,"button",37),i.ec("click",(function(){return i.yc(n),i.ic().onInitWallet()})),i.Hc(52,"Initialize Wallet"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Fc(53,Gs,2,0,"ng-template",38),i.Fc(54,Ns,2,0,"ng-template",39),i.Fc(55,zs,2,0,"ng-template",40),i.Vb()}if(2&e){var a=i.ic();i.pc("linear",!0),i.Db(2),i.pc("stepControl",a.passwordFormGroup),i.Db(1),i.pc("formGroup",a.passwordFormGroup),i.Db(5),i.pc("ngIf",null==a.passwordFormGroup.controls.initWalletPassword.errors?null:a.passwordFormGroup.controls.initWalletPassword.errors.required),i.Db(1),i.pc("ngIf",null==a.passwordFormGroup.controls.initWalletPassword.errors?null:a.passwordFormGroup.controls.initWalletPassword.errors.minlength),i.Db(5),i.pc("ngIf",null==a.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:a.passwordFormGroup.controls.initWalletConfirmPassword.errors.required),i.Db(1),i.pc("ngIf",null==a.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:a.passwordFormGroup.controls.initWalletConfirmPassword.errors.minlength),i.Db(1),i.pc("ngIf",(null==a.passwordFormGroup.errors?null:a.passwordFormGroup.errors.unmatchedPasswords)&&(a.passwordFormGroup.controls.initWalletPassword.touched||a.passwordFormGroup.controls.initWalletPassword.dirty)&&(a.passwordFormGroup.controls.initWalletConfirmPassword.touched||a.passwordFormGroup.controls.initWalletConfirmPassword.dirty)),i.Db(4),i.pc("stepControl",a.cipherFormGroup),i.Db(1),i.pc("formGroup",a.cipherFormGroup),i.Db(2),i.pc("labelPosition","before"),i.Db(6),i.pc("ngIf",null==a.cipherFormGroup.controls.cipherSeed.errors?null:a.cipherFormGroup.controls.cipherSeed.errors.required),i.Db(1),i.pc("ngIf",!(null!=a.cipherFormGroup.controls.cipherSeed.errors&&a.cipherFormGroup.controls.cipherSeed.errors.required)&&(null==a.cipherFormGroup.controls.cipherSeed.errors?null:a.cipherFormGroup.controls.cipherSeed.errors.invalidCipher)),i.Db(6),i.pc("stepControl",a.passphraseFormGroup),i.Db(1),i.pc("formGroup",a.passphraseFormGroup),i.Db(2),i.pc("labelPosition","before"),i.Db(6),i.pc("ngIf",null==a.passphraseFormGroup.controls.passphrase.errors?null:a.passphraseFormGroup.controls.passphrase.errors.required)}}function qs(e,t){if(1&e&&(i.Wb(0,"span",48),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(n)}}function Us(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div"),i.Wb(1,"form",4),i.Wb(2,"div",43),i.Hc(3,"YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!"),i.Vb(),i.Wb(4,"div",44),i.Fc(5,qs,2,1,"span",45),i.Vb(),i.Wb(6,"div",46),i.Hc(7,"Wallet initialization is done."),i.Vb(),i.Wb(8,"div",46),i.Hc(9,"The node will be usable only after LND has synced completely with the network."),i.Vb(),i.Wb(10,"div",46),i.Hc(11,"Click continue only after writing down the seed."),i.Vb(),i.Wb(12,"div",6),i.Wb(13,"button",47),i.ec("click",(function(){return i.yc(n),i.ic().onGoToHome()})),i.Hc(14,"Go To Home"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.Db(5),i.pc("ngForOf",a.genSeedResponse)}}function js(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div"),i.Wb(1,"form",4),i.Wb(2,"div",46),i.Hc(3,"Something went wrong! Unable to initialize wallet!"),i.Vb(),i.Wb(4,"div",6),i.Wb(5,"button",49),i.ec("click",(function(){return i.yc(n),i.ic().resetData()})),i.Hc(6,"Restart"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}}function Qs(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div"),i.Wb(1,"form",4),i.Wb(2,"div",46),i.Hc(3,"Wallet recovery is done."),i.Vb(),i.Wb(4,"div",46),i.Hc(5,"The node will be usable only after LND has synced completely with the network."),i.Vb(),i.Wb(6,"div",6),i.Wb(7,"button",50),i.ec("click",(function(){return i.yc(n),i.ic().onGoToHome()})),i.Hc(8,"Go To Home"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}}var Xs=function(e){var t=e.get("initWalletPassword"),n=e.get("initWalletConfirmPassword");return t&&n&&t.value!==n.value?{unmatchedPasswords:!0}:null},$s=function(e){var t=e.value?e.value.toString().trim().split(","):[];return t&&24!==t.length?{invalidCipher:!0}:null},Js=function(){function e(e,t,n,a){this.store=e,this.formBuilder=t,this.lndEffects=n,this.router=a,this.insecureLND=!1,this.genSeedResponse=[],this.initWalletResponse="",this.proceed=!0,this.warnRes=!1,this.unsubs=[new b.a,new b.a,new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.passwordFormGroup=this.formBuilder.group({initWalletPassword:["",[U.s.required,U.s.minLength(8)]],initWalletConfirmPassword:["",[U.s.required,U.s.minLength(8)]]},{validators:Xs}),this.cipherFormGroup=this.formBuilder.group({existingCipher:[!1],cipherSeed:[{value:"",disabled:!0},[$s]]}),this.passphraseFormGroup=this.formBuilder.group({enterPassphrase:[!1],passphrase:[{value:"",disabled:!0}]}),this.cipherFormGroup.controls.existingCipher.valueChanges.pipe(Object(u.a)(this.unsubs[0])).subscribe((function(t){t?(e.cipherFormGroup.controls.cipherSeed.setValue(""),e.cipherFormGroup.controls.cipherSeed.enable()):(e.cipherFormGroup.controls.cipherSeed.setValue(""),e.cipherFormGroup.controls.cipherSeed.disable())})),this.passphraseFormGroup.controls.enterPassphrase.valueChanges.pipe(Object(u.a)(this.unsubs[1])).subscribe((function(t){t?(e.passphraseFormGroup.controls.passphrase.setValue(""),e.passphraseFormGroup.controls.passphrase.enable()):(e.passphraseFormGroup.controls.passphrase.setValue(""),e.passphraseFormGroup.controls.passphrase.disable())})),this.insecureLND=!window.location.protocol.includes("https:"),this.lndEffects.initWalletRes.pipe(Object(u.a)(this.unsubs[2])).subscribe((function(t){e.initWalletResponse=t})),this.lndEffects.genSeedResponse.pipe(Object(u.a)(this.unsubs[3])).subscribe((function(t){e.genSeedResponse=t,e.store.dispatch(new y.cb(e.passphraseFormGroup.controls.enterPassphrase.value?{pwd:window.btoa(e.passwordFormGroup.controls.initWalletPassword.value),cipher:e.genSeedResponse,passphrase:window.btoa(e.passphraseFormGroup.controls.passphrase.value)}:{pwd:window.btoa(e.passwordFormGroup.controls.initWalletPassword.value),cipher:e.genSeedResponse}))}))},e.prototype.onInitWallet=function(){if(this.passwordFormGroup.invalid||this.cipherFormGroup.invalid||this.passphraseFormGroup.invalid)return!0;if(this.store.dispatch(new J.F("Initializing...")),this.cipherFormGroup.controls.existingCipher.value){var e=this.cipherFormGroup.controls.cipherSeed.value.toString().trim().split(",");this.store.dispatch(new y.cb(this.passphraseFormGroup.controls.enterPassphrase.value?{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:e,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:e}))}else this.store.dispatch(new y.V(this.passphraseFormGroup.controls.enterPassphrase.value?window.btoa(this.passphraseFormGroup.controls.passphrase.value):""))},e.prototype.onGoToHome=function(){var e=this;setTimeout((function(){e.store.dispatch(new J.Z),e.store.dispatch(new y.H({loadPage:"HOME"}))}),1e3)},e.prototype.resetData=function(){this.genSeedResponse=[],this.initWalletResponse=""},e.prototype.ngOnDestroy=function(){this.unsubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(C.h),i.Qb(U.c),i.Qb(On.a),i.Qb(o.f))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-initialize-wallet"]],viewQuery:function(e,t){var n;1&e&&i.Dc(Z.c,!0),2&e&&i.vc(n=i.fc())&&(t.stepper=n.first)},features:[i.Cb([{provide:_s.h,useValue:{displayDefaultIndicatorType:!1}}])],decls:7,vars:6,consts:[["fxLayout","column",1,"padding-gap","mb-4"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch",4,"ngIf"],[3,"linear",4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","2",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch"],["fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",3,"click"],[3,"linear"],["stepper",""],["label","Wallet Password","state","password",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-1",3,"formGroup"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Password","name","initWalletPassword","formControlName","initWalletPassword","tabindex","5","required",""],["matInput","","type","password","placeholder","Confirm Password","name","initWalletConfirmPassword","formControlName","initWalletConfirmPassword","tabindex","6","required",""],["class","validation-error-message",4,"ngIf"],["fxLayout","row",1,"my-2"],["mat-flat-button","","color","primary","tabindex","7","type","submit","matStepperNext",""],["label","Cipher","state","cipher",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start",1,"mt-1",3,"formGroup"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch"],["fxFlex","20","tabindex","8","color","primary","formControlName","existingCipher","name","existingCipher",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start",1,"my-1"],["autofocus","","matInput","","type","input","placeholder","Comma separated array of 24 words cipher seed","name","cipherSeed","formControlName","cipherSeed","tabindex","9","required",""],["fxLayout","row",1,"mb-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","10","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","submit","matStepperNext","",1,"mt-1"],["label","Passphrase","state","passphrase",3,"stepControl"],["fxFlex","20","tabindex","10","color","primary","formControlName","enterPassphrase","name","enterPassphrase",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start"],["matInput","","type","input","type","password","placeholder","Passphrase","name","passphrase","formControlName","passphrase","tabindex","12","required",""],["mat-stroked-button","","color","warn","tabindex","13","type","reset",1,"mr-1","mt-1",3,"click"],["mat-stroked-button","","tabindex","14","color","primary","type","button","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","15","type","submit",1,"mt-1",3,"click"],["matStepperIcon","password"],["matStepperIcon","cipher"],["matStepperIcon","passphrase"],[1,"validation-error-message"],[1,"validation-error-icon","red"],["fxFlex","100","fxLayoutAlign","start",1,"blinker"],["fxFlex","40","fxLayout","row wrap",1,"mt-2"],["fxFlex","25","fxLayoutAlign","start","class","genseed-message",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start",1,"mt-2"],["mat-flat-button","","color","primary","type","submit","tabindex","16",3,"click"],["fxFlex","25","fxLayoutAlign","start",1,"genseed-message"],["mat-stroked-button","","color","primary","tabindex","17","type","reset",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","18",3,"click"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Fc(1,Rs,9,0,"div",1),i.Fc(2,ks,6,0,"div",2),i.Fc(3,Bs,56,17,"mat-vertical-stepper",3),i.Fc(4,Us,15,1,"div",1),i.Fc(5,js,7,0,"div",1),i.Fc(6,Qs,9,0,"div",1),i.Vb()),2&e&&(i.Db(1),i.pc("ngIf",t.insecureLND&&!t.warnRes),i.Db(1),i.pc("ngIf",t.warnRes&&!t.proceed),i.Db(1),i.pc("ngIf",(!t.insecureLND||t.warnRes&&t.proceed)&&t.genSeedResponse.length<=0&&""===t.initWalletResponse),i.Db(1),i.pc("ngIf",t.genSeedResponse.length>0&&""!==t.initWalletResponse),i.Db(1),i.pc("ngIf",t.genSeedResponse.length>0&&""===t.initWalletResponse),i.Db(1),i.pc("ngIf",t.genSeedResponse.length<=0&&""!==t.initWalletResponse))},directives:[x.c,a.n,U.t,U.m,U.n,x.b,x.a,D.a,Z.h,Z.a,U.g,A.c,le.b,U.b,U.l,U.f,U.r,A.f,Z.f,be.a,Z.g,Z.d,A.b,S.a,a.m],styles:[""]}),e}(),Zs=function(){function e(){this.faWallet=m.O}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-wallet"]],decls:12,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["label","Unlock"],["label","Initialize"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Rb(1,"fa-icon",1),i.Wb(2,"span",2),i.Hc(3,"Wallet"),i.Vb(),i.Vb(),i.Wb(4,"div",3),i.Wb(5,"mat-card"),i.Wb(6,"mat-card-content",4),i.Wb(7,"mat-tab-group"),i.Wb(8,"mat-tab",5),i.Rb(9,"rtl-unlock-wallet"),i.Vb(),i.Wb(10,"mat-tab",6),i.Rb(11,"rtl-initialize-wallet"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(1),i.pc("icon",t.faWallet))},directives:[x.c,x.b,w.a,W.a,W.b,Rt.c,Rt.a,Ss,Js],styles:[""]}),e}();function Ks(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Destination pubkey is required."),i.Vb())}function Ys(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Amount is required."),i.Vb())}function eb(e,t){1&e&&i.Rb(0,"mat-progress-bar",38)}function tb(e,t){1&e&&(i.Wb(0,"th",39),i.Hc(1," Hop "),i.Vb())}function nb(e,t){if(1&e&&(i.Wb(0,"td",40),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Jc(" ",null==n?null:n.hop_sequence," ")}}function ab(e,t){1&e&&(i.Wb(0,"th",39),i.Hc(1," Peer "),i.Vb())}var ob=function(e){return{"max-width":e}};function ib(e,t){if(1&e&&(i.Wb(0,"td",41),i.Hc(1),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.pc("ngStyle",i.tc(2,ob,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),i.Db(1),i.Jc(" ",null==n?null:n.pubkey_alias," ")}}function rb(e,t){1&e&&(i.Wb(0,"th",39),i.Hc(1," Channel "),i.Vb())}function cb(e,t){if(1&e&&(i.Wb(0,"td",40),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Jc(" ",null==n?null:n.chan_id," ")}}function lb(e,t){1&e&&(i.Wb(0,"th",42),i.Hc(1," Capacity (Sats) "),i.Vb())}function sb(e,t){if(1&e&&(i.Wb(0,"td",40),i.Wb(1,"span",43),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Jc(" ",i.kc(3,1,null==n?null:n.chan_capacity),"")}}function bb(e,t){1&e&&(i.Wb(0,"th",42),i.Hc(1," Amount To Fwd (Sats) "),i.Vb())}function ub(e,t){if(1&e&&(i.Wb(0,"td",40),i.Wb(1,"span",43),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Jc(" ",i.kc(3,1,null==n?null:n.amt_to_forward)," ")}}function pb(e,t){1&e&&(i.Wb(0,"th",42),i.Hc(1," Fee (mSats) "),i.Vb())}function db(e,t){if(1&e&&(i.Wb(0,"td",40),i.Wb(1,"span",43),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Jc(" ",i.kc(3,1,null==n?null:n.fee_msat)," ")}}function mb(e,t){1&e&&(i.Wb(0,"th",44),i.Wb(1,"span",43),i.Hc(2,"Actions"),i.Vb(),i.Vb())}function fb(e,t){if(1&e){var n=i.Xb();i.Wb(0,"td",45),i.Wb(1,"button",46),i.ec("click",(function(e){i.yc(n);var a=t.$implicit;return i.ic().onHopClick(a,e)})),i.Hc(2,"View Info"),i.Vb(),i.Vb()}}function hb(e,t){1&e&&i.Rb(0,"tr",47)}function gb(e,t){1&e&&i.Rb(0,"tr",48)}var yb=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Cb=function(){function e(e,t,n){this.store=e,this.lndEffects=t,this.commonService=n,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=m.D,this.faExclamationTriangle=m.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["pubkey_alias","actions"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","fee_msat","actions"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.lndEffects.setQueryRoutes.pipe(Object(u.a)(this.unSubs[1])).subscribe((function(t){e.qrHops=new Tt.o([]),e.qrHops.data=[],t.routes&&t.routes[0].hops?(e.flgLoading[0]=!1,e.qrHops=new Tt.o(Object(kt.g)(t.routes[0].hops)),e.qrHops.data=t.routes[0].hops):e.flgLoading[0]="error",e.qrHops.sort=e.sort,e.qrHops.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]}}))},e.prototype.onQueryRoutes=function(){if(!this.destinationPubkey||!this.amount)return!0;this.flgLoading[0]=!0,this.store.dispatch(new y.Y({destPubkey:this.destinationPubkey,amount:this.amount}))},e.prototype.resetData=function(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1},e.prototype.onHopClick=function(e,t){this.store.dispatch(new J.C({data:{type:g.b.INFORMATION,alertTitle:"Route Information",message:[[{key:"hop_sequence",value:e.hop_sequence,title:"Sequence",width:30,type:g.h.NUMBER},{key:"amt_to_forward",value:e.amt_to_forward,title:"Amount To Forward (Sats)",width:30,type:g.h.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:40,type:g.h.NUMBER}],[{key:"pubkey_alias",value:e.pubkey_alias,title:"Peer Alias",width:30,type:g.h.STRING},{key:"pub_key",value:e.pub_key,title:"Peer Pubkey",width:70,type:g.h.STRING}],[{key:"expiry",value:e.expiry,title:"Expiry",width:30,type:g.h.NUMBER},{key:"chan_id",value:e.chan_id,title:"Channel ID",width:30,type:g.h.STRING},{key:"chan_capacity",value:e.chan_capacity,title:"Channel Capacity",width:40,type:g.h.NUMBER}]]}}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(C.h),i.Qb(On.a),i.Qb(h.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-query-routes"]],viewQuery:function(e,t){var n;1&e&&i.Dc(Ht.a,!0),2&e&&i.vc(n=i.fc())&&(t.sort=n.first)},decls:52,vars:14,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","step","1000","min","0","required","",3,"ngModel","ngModelChange"],["destAmount","ngModel"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-sub-title-container","mt-2","mb-1"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["perfectScrollbar","",1,"table-container","mb-6"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","hop_sequence"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pubkey_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","chan_id"],["matColumnDef","chan_capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_to_forward_msat"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-cell","",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",0),i.Wb(1,"form",1,2),i.ec("ngSubmit",(function(){return i.yc(n),i.wc(2).form.valid&&t.onQueryRoutes()})),i.Wb(3,"div",3),i.Rb(4,"fa-icon",4),i.Wb(5,"span"),i.Hc(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),i.Vb(),i.Vb(),i.Wb(7,"mat-form-field",5),i.Wb(8,"input",6,7),i.ec("ngModelChange",(function(e){return t.destinationPubkey=e})),i.Vb(),i.Fc(10,Ks,2,0,"mat-error",8),i.Vb(),i.Wb(11,"mat-form-field",9),i.Wb(12,"input",10,11),i.ec("ngModelChange",(function(e){return t.amount=e})),i.Vb(),i.Fc(14,Ys,2,0,"mat-error",8),i.Vb(),i.Wb(15,"div",12),i.Wb(16,"button",13),i.ec("click",(function(){return t.resetData()})),i.Hc(17,"Clear"),i.Vb(),i.Wb(18,"button",14),i.Hc(19,"Query Route"),i.Vb(),i.Vb(),i.Vb(),i.Wb(20,"div",15),i.Wb(21,"div",16),i.Rb(22,"fa-icon",17),i.Wb(23,"span",18),i.Hc(24,"Transaction Route"),i.Vb(),i.Vb(),i.Vb(),i.Wb(25,"div",19),i.Fc(26,eb,1,0,"mat-progress-bar",20),i.Wb(27,"table",21,22),i.Ub(29,23),i.Fc(30,tb,2,0,"th",24),i.Fc(31,nb,2,1,"td",25),i.Tb(),i.Ub(32,26),i.Fc(33,ab,2,0,"th",24),i.Fc(34,ib,2,4,"td",27),i.Tb(),i.Ub(35,28),i.Fc(36,rb,2,0,"th",24),i.Fc(37,cb,2,1,"td",25),i.Tb(),i.Ub(38,29),i.Fc(39,lb,2,0,"th",30),i.Fc(40,sb,4,3,"td",25),i.Tb(),i.Ub(41,31),i.Fc(42,bb,2,0,"th",30),i.Fc(43,ub,4,3,"td",25),i.Tb(),i.Ub(44,32),i.Fc(45,pb,2,0,"th",30),i.Fc(46,db,4,3,"td",25),i.Tb(),i.Ub(47,33),i.Fc(48,mb,3,0,"th",34),i.Fc(49,fb,3,0,"td",35),i.Tb(),i.Fc(50,hb,1,0,"tr",36),i.Fc(51,gb,1,0,"tr",37),i.Vb(),i.Vb(),i.Vb()}2&e&&(i.Db(4),i.pc("icon",t.faExclamationTriangle),i.Db(4),i.pc("ngModel",t.destinationPubkey),i.Db(2),i.pc("ngIf",!t.destinationPubkey),i.Db(2),i.pc("ngModel",t.amount),i.Db(2),i.pc("ngIf",!t.amount),i.Db(8),i.pc("icon",t.faRoute),i.Db(4),i.pc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.pc("dataSource",t.qrHops)("ngClass",i.tc(12,yb,"error"===t.flgLoading[0])),i.Db(23),i.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.pc("matRowDefColumns",t.displayedColumns))},directives:[x.c,x.a,U.t,U.m,U.n,x.b,w.a,A.c,le.b,U.b,U.r,U.l,U.o,a.n,U.p,At.a,D.a,M.b,Tt.n,Ht.a,a.l,V.a,Tt.c,Tt.i,Tt.b,Tt.k,Tt.m,A.b,r.a,Tt.h,Ht.b,Tt.a,a.o,V.b,Tt.j,Tt.l],pipes:[a.e],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e}(),vb=function(){function e(e,t){this.logger=e,this.store=t,this.faExchangeAlt=m.m,this.faChartPie=m.f,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.unSubs=[new b.a,new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.currencyUnits=t.nodeSettings.currencyUnits,e.balances=t.nodeSettings.userPersona===g.u.OPERATOR?[{title:"Local Capacity",dataValue:t.totalLocalBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:t.totalRemoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:t.totalLocalBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:t.totalRemoteBalance,tooltip:"Amount you can receive"}],e.logger.info(t)}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(C.h))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-transactions"]],decls:22,vars:5,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],["fxLayout","column",1,"padding-gap-x"],["label","Payments"],[3,"showDetails"],["label","Invoices"],["label","Query Routes"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Rb(1,"fa-icon",1),i.Wb(2,"span",2),i.Hc(3,"Lightning Balance"),i.Vb(),i.Vb(),i.Wb(4,"div",3),i.Wb(5,"mat-card"),i.Wb(6,"mat-card-content",4),i.Rb(7,"rtl-currency-unit-converter",5),i.Vb(),i.Vb(),i.Vb(),i.Wb(8,"div",6),i.Rb(9,"fa-icon",1),i.Wb(10,"span",2),i.Hc(11,"Lightning Transactions"),i.Vb(),i.Vb(),i.Wb(12,"div",7),i.Wb(13,"mat-card"),i.Wb(14,"mat-card-content",4),i.Wb(15,"mat-tab-group"),i.Wb(16,"mat-tab",8),i.Rb(17,"rtl-lightning-payments",9),i.Vb(),i.Wb(18,"mat-tab",10),i.Rb(19,"rtl-lightning-invoices",9),i.Vb(),i.Wb(20,"mat-tab",11),i.Rb(21,"rtl-query-routes"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(1),i.pc("icon",t.faChartPie),i.Db(6),i.pc("values",t.balances),i.Db(2),i.pc("icon",t.faExchangeAlt),i.Db(8),i.pc("showDetails",!0),i.Db(2),i.pc("showDetails",!0))},directives:[x.c,x.b,w.a,W.a,W.b,ko.a,Rt.c,Rt.a,Pa,vn,Cb],styles:[""]}),e}();function xb(e,t){1&e&&(i.Wb(0,"th",25),i.Hc(1,"Network"),i.Vb())}function wb(e,t){if(1&e&&(i.Wb(0,"td",26),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Jc(" ",null==n?null:n.network," ")}}function Fb(e,t){1&e&&(i.Wb(0,"th",25),i.Hc(1,"Address"),i.Vb())}function Vb(e,t){if(1&e&&(i.Wb(0,"td",26),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Jc(" ",null==n?null:n.addr," ")}}function Wb(e,t){1&e&&(i.Wb(0,"th",27),i.Wb(1,"span",28),i.Hc(2,"Actions"),i.Vb(),i.Vb())}function Lb(e,t){if(1&e){var n=i.Xb();i.Wb(0,"td",29),i.Wb(1,"span",28),i.Wb(2,"button",30),i.ec("copied",(function(e){return i.yc(n),i.ic(2).onCopyNodeURI(e)})),i.Hc(3,"Copy Node URI"),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=t.$implicit,o=i.ic(2);i.Db(2),i.pc("payload",o.lookupResult.node.pub_key+"@"+a.addr)}}function Db(e,t){1&e&&i.Rb(0,"tr",31)}function Sb(e,t){1&e&&i.Rb(0,"tr",32)}var _b=function(e){return{"background-color":e}};function Rb(e,t){if(1&e&&(i.Wb(0,"div",1),i.Rb(1,"mat-divider",2),i.Wb(2,"div",3),i.Wb(3,"h4",4),i.Hc(4,"Pub Key"),i.Vb(),i.Wb(5,"span",5),i.Hc(6),i.Vb(),i.Vb(),i.Rb(7,"mat-divider",6),i.Wb(8,"div",7),i.Wb(9,"div",8),i.Wb(10,"h4",4),i.Hc(11,"Alias"),i.Vb(),i.Wb(12,"span",9),i.Hc(13),i.Wb(14,"span",10),i.Hc(15),i.Vb(),i.Vb(),i.Vb(),i.Wb(16,"div",8),i.Wb(17,"h4",4),i.Hc(18,"Last Update"),i.Vb(),i.Wb(19,"span",9),i.Hc(20),i.Vb(),i.Vb(),i.Vb(),i.Rb(21,"mat-divider",6),i.Wb(22,"div",7),i.Wb(23,"div",8),i.Wb(24,"h4",4),i.Hc(25,"Total Capacity (Sats)"),i.Vb(),i.Wb(26,"span",9),i.Hc(27),i.jc(28,"number"),i.Vb(),i.Vb(),i.Wb(29,"div",8),i.Wb(30,"h4",4),i.Hc(31,"Number of Channels"),i.Vb(),i.Wb(32,"span",9),i.Hc(33),i.jc(34,"number"),i.Vb(),i.Vb(),i.Vb(),i.Rb(35,"mat-divider",6),i.Wb(36,"div",11),i.Wb(37,"h4",12),i.Hc(38,"Addresses"),i.Vb(),i.Wb(39,"div",13),i.Wb(40,"table",14,15),i.Ub(42,16),i.Fc(43,xb,2,0,"th",17),i.Fc(44,wb,2,1,"td",18),i.Tb(),i.Ub(45,19),i.Fc(46,Fb,2,0,"th",17),i.Fc(47,Vb,2,1,"td",18),i.Tb(),i.Ub(48,20),i.Fc(49,Wb,3,0,"th",21),i.Fc(50,Lb,4,1,"td",22),i.Tb(),i.Fc(51,Db,1,0,"tr",23),i.Fc(52,Sb,1,0,"tr",24),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("inset",!0),i.Db(5),i.Ic(n.lookupResult.node.pub_key),i.Db(1),i.pc("inset",!0),i.Db(6),i.Ic(n.lookupResult.node.alias),i.Db(1),i.pc("ngStyle",i.tc(18,_b,null==n.lookupResult.node?null:n.lookupResult.node.color)),i.Db(1),i.Ic(null==n.lookupResult.node?null:n.lookupResult.node.color),i.Db(5),i.Ic(n.lookupResult.node.last_update_str),i.Db(1),i.pc("inset",!0),i.Db(6),i.Ic(i.kc(28,14,n.lookupResult.total_capacity)),i.Db(6),i.Ic(i.kc(34,16,n.lookupResult.num_channels)),i.Db(2),i.pc("inset",!0),i.Db(5),i.pc("dataSource",n.lookupResult.node.addresses),i.Db(11),i.pc("matHeaderRowDef",n.displayedColumns),i.Db(1),i.pc("matRowDefColumns",n.displayedColumns)}}var kb=function(){function e(e,t){this.logger=e,this.snackBar=t,this.displayedColumns=["network","addr","actions"]}return e.prototype.ngOnInit=function(){},e.prototype.onCopyNodeURI=function(e){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+e)},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(Io.b))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-node-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start",1,"my-1"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text","w-100"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxLayout","column","fxFlex","50","fxLayoutAlign","end start",1,"my-1"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxLayout","column",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container"],["mat-table","","matSort","",3,"dataSource"],["table",""],["matColumnDef","network"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","addr"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&i.Fc(0,Rb,53,20,"div",0),2&e&&i.pc("ngIf",t.lookupResult)},directives:[a.n,x.c,P.a,x.a,x.b,a.o,V.b,M.b,Tt.n,Ht.a,Tt.c,Tt.i,Tt.b,Tt.k,Tt.m,Tt.h,Ht.b,Tt.a,D.a,Ho.a,Tt.j,Tt.l],pipes:[a.e],styles:[""]}),e}();function Ib(e,t){1&e&&(i.Wb(0,"h3",16),i.Hc(1,"Node 1"),i.Vb())}function Hb(e,t){1&e&&(i.Wb(0,"h3",16),i.Hc(1,"Node 1 (Your Node)"),i.Vb())}function Tb(e,t){1&e&&(i.Wb(0,"h3",16),i.Hc(1,"Node 2"),i.Vb())}function Ab(e,t){1&e&&(i.Wb(0,"h3",16),i.Hc(1,"Node 2 (Your Node)"),i.Vb())}function Ob(e,t){if(1&e&&(i.Wb(0,"div",1),i.Rb(1,"mat-divider",2),i.Wb(2,"div",3),i.Wb(3,"h4",4),i.Hc(4,"Channel Id"),i.Vb(),i.Wb(5,"span",5),i.Hc(6),i.Vb(),i.Vb(),i.Rb(7,"mat-divider",6),i.Wb(8,"div",3),i.Wb(9,"h4",4),i.Hc(10,"Channel Point"),i.Vb(),i.Wb(11,"span",5),i.Hc(12),i.Vb(),i.Vb(),i.Rb(13,"mat-divider",6),i.Wb(14,"div",7),i.Wb(15,"div",8),i.Wb(16,"h4",4),i.Hc(17,"Last Update"),i.Vb(),i.Wb(18,"span",5),i.Hc(19),i.Vb(),i.Vb(),i.Wb(20,"div",8),i.Wb(21,"h4",4),i.Hc(22,"Capacity (Sats)"),i.Vb(),i.Wb(23,"span",5),i.Hc(24),i.jc(25,"number"),i.Vb(),i.Vb(),i.Vb(),i.Rb(26,"mat-divider",6),i.Wb(27,"div",9),i.Wb(28,"div",10),i.Wb(29,"div",11),i.Fc(30,Ib,2,0,"h3",12),i.Fc(31,Hb,2,0,"h3",12),i.Vb(),i.Rb(32,"mat-divider",13),i.Wb(33,"div",14),i.Wb(34,"h4",4),i.Hc(35,"Pubkey"),i.Vb(),i.Wb(36,"span",5),i.Hc(37),i.Vb(),i.Vb(),i.Rb(38,"mat-divider",13),i.Wb(39,"div",15),i.Wb(40,"h4",4),i.Hc(41,"Time Lock Delta"),i.Vb(),i.Wb(42,"span",5),i.Hc(43),i.Vb(),i.Vb(),i.Rb(44,"mat-divider",13),i.Wb(45,"div",15),i.Wb(46,"h4",4),i.Hc(47,"Min HTLC"),i.Vb(),i.Wb(48,"span",5),i.Hc(49),i.Vb(),i.Vb(),i.Rb(50,"mat-divider",13),i.Wb(51,"div",15),i.Wb(52,"h4",4),i.Hc(53,"Fee Base Msat"),i.Vb(),i.Wb(54,"span",5),i.Hc(55),i.Vb(),i.Vb(),i.Rb(56,"mat-divider",13),i.Wb(57,"div",15),i.Wb(58,"h4",4),i.Hc(59,"Fee Rate Milli Msat"),i.Vb(),i.Wb(60,"span",5),i.Hc(61),i.Vb(),i.Vb(),i.Rb(62,"mat-divider",13),i.Wb(63,"div",15),i.Wb(64,"h4",4),i.Hc(65,"Disabled"),i.Vb(),i.Wb(66,"span",5),i.Hc(67),i.Vb(),i.Vb(),i.Vb(),i.Wb(68,"div",10),i.Wb(69,"div"),i.Fc(70,Tb,2,0,"h3",12),i.Fc(71,Ab,2,0,"h3",12),i.Vb(),i.Rb(72,"mat-divider",13),i.Wb(73,"div",14),i.Wb(74,"h4",4),i.Hc(75,"Pubkey"),i.Vb(),i.Wb(76,"span",5),i.Hc(77),i.Vb(),i.Vb(),i.Rb(78,"mat-divider",13),i.Wb(79,"div",15),i.Wb(80,"h4",4),i.Hc(81,"Time Lock Delta"),i.Vb(),i.Wb(82,"span",5),i.Hc(83),i.Vb(),i.Vb(),i.Rb(84,"mat-divider",13),i.Wb(85,"div",15),i.Wb(86,"h4",4),i.Hc(87,"Min HTLC"),i.Vb(),i.Wb(88,"span",5),i.Hc(89),i.Vb(),i.Vb(),i.Rb(90,"mat-divider",13),i.Wb(91,"div",15),i.Wb(92,"h4",4),i.Hc(93,"Fee Base Msat"),i.Vb(),i.Wb(94,"span",5),i.Hc(95),i.Vb(),i.Vb(),i.Rb(96,"mat-divider",13),i.Wb(97,"div",15),i.Wb(98,"h4",4),i.Hc(99,"Fee Rate Milli Msat"),i.Vb(),i.Wb(100,"span",5),i.Hc(101),i.Vb(),i.Vb(),i.Rb(102,"mat-divider",13),i.Wb(103,"div",15),i.Wb(104,"h4",4),i.Hc(105,"Disabled"),i.Vb(),i.Wb(106,"span",5),i.Hc(107),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("inset",!0),i.Db(5),i.Ic(n.lookupResult.channel_id),i.Db(1),i.pc("inset",!0),i.Db(5),i.Ic(n.lookupResult.chan_point),i.Db(1),i.pc("inset",!0),i.Db(6),i.Ic(n.lookupResult.last_update_str),i.Db(5),i.Ic(i.kc(25,36,n.lookupResult.capacity)),i.Db(2),i.pc("inset",!0),i.Db(4),i.pc("ngIf",!n.node1_match),i.Db(1),i.pc("ngIf",n.node1_match),i.Db(1),i.pc("inset",!0),i.Db(5),i.Ic(n.lookupResult.node1_pub),i.Db(1),i.pc("inset",!0),i.Db(5),i.Ic(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.time_lock_delta),i.Db(1),i.pc("inset",!0),i.Db(5),i.Ic(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.min_htlc),i.Db(1),i.pc("inset",!0),i.Db(5),i.Ic(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.fee_base_msat),i.Db(1),i.pc("inset",!0),i.Db(5),i.Ic(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.fee_rate_milli_msat),i.Db(1),i.pc("inset",!0),i.Db(5),i.Ic(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.disabled),i.Db(3),i.pc("ngIf",!n.node2_match),i.Db(1),i.pc("ngIf",n.node2_match),i.Db(1),i.pc("inset",!0),i.Db(5),i.Ic(n.lookupResult.node2_pub),i.Db(1),i.pc("inset",!0),i.Db(5),i.Ic(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.time_lock_delta),i.Db(1),i.pc("inset",!0),i.Db(5),i.Ic(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.min_htlc),i.Db(1),i.pc("inset",!0),i.Db(5),i.Ic(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.fee_base_msat),i.Db(1),i.pc("inset",!0),i.Db(5),i.Ic(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.fee_rate_milli_msat),i.Db(1),i.pc("inset",!0),i.Db(5),i.Ic(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.disabled)}}var Pb=function(){function e(e){this.store=e,this.node1_match=!1,this.node2_match=!1,this.unSubs=[new b.a,new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.lookupResult.node1_pub===t.information.identity_pubkey&&(e.node1_match=!0),e.lookupResult.node2_pub===t.information.identity_pubkey&&(e.node2_match=!0)}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(C.h))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-channel-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start",1,"my-1"],[1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","50","fxLayoutAlign","end start",1,"my-1"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],[3,"inset"],["fxLayout","column","fxFlex","20",1,"my-1"],["fxLayout","column","fxFlex","10",1,"my-1"],[1,"page-title","font-bold-500"]],template:function(e,t){1&e&&i.Fc(0,Ob,108,38,"div",0),2&e&&i.pc("ngIf",t.lookupResult)},directives:[a.n,x.c,P.a,x.a,x.b],pipes:[a.e],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),e}(),Mb=["form"];function Eb(e,t){if(1&e&&(i.Wb(0,"mat-radio-button",20),i.Hc(1),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.pc("value",n.id)("checked",a.selectedFieldId===n.id),i.Db(1),i.Jc(" ",n.name," ")}}function Gb(e,t){if(1&e&&(i.Wb(0,"mat-error"),i.Hc(1),i.Vb()),2&e){var n=i.ic();i.Db(1),i.Jc("",null==n.lookupFields[n.selectedFieldId]?null:n.lookupFields[n.selectedFieldId].placeholder," is required.")}}function Nb(e,t){if(1&e&&(i.Wb(0,"span",27),i.Rb(1,"rtl-node-lookup",28),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.pc("lookupResult",n.lookupValue)}}function zb(e,t){if(1&e&&(i.Wb(0,"span",27),i.Rb(1,"rtl-channel-lookup",28),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.pc("lookupResult",n.lookupValue)}}function Bb(e,t){1&e&&(i.Wb(0,"span",27),i.Wb(1,"h3"),i.Hc(2,"Error! Unable to find details!"),i.Vb(),i.Vb())}function qb(e,t){if(1&e&&(i.Wb(0,"div",21),i.Wb(1,"div",22),i.Wb(2,"span",23),i.Hc(3),i.Vb(),i.Vb(),i.Wb(4,"div",24),i.Fc(5,Nb,2,1,"span",25),i.Fc(6,zb,2,1,"span",25),i.Fc(7,Bb,3,0,"span",26),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(3),i.Jc("",n.lookupFields[n.selectedFieldId].name," Details"),i.Db(1),i.pc("ngSwitch",n.selectedFieldId),i.Db(1),i.pc("ngSwitchCase",0),i.Db(1),i.pc("ngSwitchCase",1)}}var Ub=function(e){return{"mt-2":e}},jb=function(){function e(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.actions$=a,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Channel ID"}],this.flgLoading=[!0],this.faSearch=m.E,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a],this.screenSize=this.commonService.getScreenSize()}return e.prototype.ngOnInit=function(){var e=this;this.actions$.pipe(Object(u.a)(this.unSubs[0]),Object(p.a)((function(e){return e.type===y.Gb||e.type===y.m}))).subscribe((function(t){t.type===y.Gb&&(e.flgLoading[0]=!0,e.lookupValue=JSON.parse(JSON.stringify(t.payload)),e.flgSetLookupValue=!0,e.logger.info(e.lookupValue)),t.type===y.m&&"Lookup"===t.payload.action&&(e.flgLoading[0]="error")}))},e.prototype.onLookup=function(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.lookupValue={},this.store.dispatch(new J.F("Searching "+this.lookupFields[this.selectedFieldId].name+"...")),this.selectedFieldId){case 0:this.store.dispatch(new y.gb(this.lookupKey.trim()));break;case 1:this.store.dispatch(new y.h(this.lookupKey.trim()))}},e.prototype.onSelectChange=function(e){this.resetData(),this.selectedFieldId=e.value},e.prototype.resetData=function(){var e=this;this.form.resetForm(),this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.flgLoading.forEach((function(t,n){e.flgLoading[n]=!0}))},e.prototype.clearLookupValue=function(){this.lookupValue={},this.flgSetLookupValue=!1},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(h.a),i.Qb(C.h),i.Qb(v.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-lookups"]],viewQuery:function(e,t){var n;1&e&&i.Mc(Mb,!0),2&e&&i.vc(n=i.fc())&&(t.form=n.first)},decls:23,vars:10,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","35","fxFlex.gt-md","25","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","65","fxFlex.gt-md","75","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],[1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[3,"lookupResult"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Rb(2,"fa-icon",2),i.Wb(3,"span",3),i.Hc(4,"Graph Lookups"),i.Vb(),i.Vb(),i.Wb(5,"div",4),i.Wb(6,"mat-card",5),i.Wb(7,"mat-card-content",6),i.Wb(8,"form",7,8),i.Wb(10,"div",9),i.Wb(11,"mat-radio-group",10),i.ec("ngModelChange",(function(e){return t.selectedFieldId=e}))("change",(function(e){return t.onSelectChange(e)})),i.Fc(12,Eb,2,3,"mat-radio-button",11),i.Vb(),i.Vb(),i.Wb(13,"mat-form-field",12),i.Wb(14,"input",13,14),i.ec("change",(function(){return t.clearLookupValue()}))("ngModelChange",(function(e){return t.lookupKey=e})),i.Vb(),i.Fc(16,Gb,2,1,"mat-error",15),i.Vb(),i.Wb(17,"div",16),i.Wb(18,"button",17),i.ec("click",(function(){return t.resetData()})),i.Hc(19,"Clear"),i.Vb(),i.Wb(20,"button",18),i.ec("click",(function(){return t.onLookup()})),i.Hc(21,"Lookup"),i.Vb(),i.Vb(),i.Vb(),i.Fc(22,qb,8,4,"div",19),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(2),i.pc("icon",t.faSearch),i.Db(9),i.pc("ngModel",t.selectedFieldId),i.Db(1),i.pc("ngForOf",t.lookupFields),i.Db(1),i.pc("ngClass",i.tc(8,Ub,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM)),i.Db(1),i.pc("placeholder",(null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder)||"Lookup Key")("ngModel",t.lookupKey),i.Db(2),i.pc("ngIf",!t.lookupKey),i.Db(6),i.pc("ngIf",t.lookupValue&&t.flgSetLookupValue))},directives:[x.c,x.b,w.a,x.a,W.a,W.b,U.t,U.m,U.n,ue.b,U.l,U.o,a.m,A.c,a.l,V.a,le.b,U.b,U.r,a.n,D.a,ue.a,A.b,a.p,a.q,a.r,kb,Pb],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),e}(),Qb=n("PwdT");function Xb(e,t){1&e&&(i.Wb(0,"th",26),i.Hc(1,"Timestamp"),i.Vb())}function $b(e,t){if(1&e&&(i.Wb(0,"td",27),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(n.timestamp_str)}}function Jb(e,t){1&e&&(i.Wb(0,"th",26),i.Hc(1,"Inbound Channel"),i.Vb())}function Zb(e,t){if(1&e&&(i.Wb(0,"td",27),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(n.alias_in)}}function Kb(e,t){1&e&&(i.Wb(0,"th",26),i.Hc(1,"Outbound Channel"),i.Vb())}function Yb(e,t){if(1&e&&(i.Wb(0,"td",27),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(n.alias_out)}}function eu(e,t){1&e&&(i.Wb(0,"th",28),i.Hc(1,"Inbound Amount (Sats)"),i.Vb())}function tu(e,t){if(1&e&&(i.Wb(0,"td",27),i.Wb(1,"span",29),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(i.kc(3,1,n.amt_in))}}function nu(e,t){1&e&&(i.Wb(0,"th",28),i.Hc(1,"Outbound Amount (Sats)"),i.Vb())}function au(e,t){if(1&e&&(i.Wb(0,"td",27),i.Wb(1,"span",29),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(i.kc(3,1,n.amt_out))}}function ou(e,t){1&e&&(i.Wb(0,"th",28),i.Hc(1,"Fee (mSats)"),i.Vb())}function iu(e,t){if(1&e&&(i.Wb(0,"td",27),i.Wb(1,"span",29),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(i.kc(3,1,n.fee_msat))}}function ru(e,t){if(1&e){var n=i.Xb();i.Wb(0,"th",30),i.Wb(1,"div",31),i.Wb(2,"mat-select",32),i.Rb(3,"mat-select-trigger"),i.Wb(4,"mat-option",33),i.ec("click",(function(){return i.yc(n),i.ic().onDownloadCSV()})),i.Hc(5,"Download CSV"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}}function cu(e,t){if(1&e){var n=i.Xb();i.Wb(0,"td",34),i.Wb(1,"button",35),i.ec("click",(function(e){i.yc(n);var a=t.$implicit;return i.ic().onForwardingEventClick(a,e)})),i.Hc(2,"View Info"),i.Vb(),i.Vb()}}function lu(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"No forwarding event available."),i.Vb())}function su(e,t){if(1&e&&(i.Wb(0,"td",36),i.Fc(1,lu,2,0,"p",37),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngIf",!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)}}var bu=function(e){return{"display-none":e}};function uu(e,t){if(1&e&&i.Rb(0,"tr",38),2&e){var n=i.ic();i.pc("ngClass",i.tc(1,bu,(null==n.forwardingHistoryEvents?null:n.forwardingHistoryEvents.data)&&(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)>0))}}function pu(e,t){1&e&&i.Rb(0,"tr",39)}function du(e,t){1&e&&i.Rb(0,"tr",40)}var mu=function(){return["no_event"]},fu=function(){function e(e,t,n){this.logger=e,this.commonService=t,this.store=n,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","fee_msat","actions"]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amt_in","amt_out","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat","actions"])}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(){this.loadForwardingEventsTable(this.forwardingHistoryData)},e.prototype.onForwardingEventClick=function(e,t){this.store.dispatch(new J.C({data:{type:g.b.INFORMATION,alertTitle:"Event Information",message:[[{key:"timestamp_str",value:e.timestamp_str,title:"Timestamp",width:25,type:g.h.DATE_TIME},{key:"amt_in",value:e.amt_in,title:"Inbound Amount (Sats)",width:25,type:g.h.NUMBER},{key:"amt_out",value:e.amt_out,title:"Outbound Amount (Sats)",width:25,type:g.h.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:25,type:g.h.NUMBER}],[{key:"alias_in",value:e.alias_in,title:"Inbound Peer Alias",width:25,type:g.h.STRING},{key:"chan_id_in",value:e.chan_id_in,title:"Inbound Channel ID",width:25,type:g.h.STRING},{key:"alias_out",value:e.alias_out,title:"Outbound Peer Alias",width:25,type:g.h.STRING},{key:"chan_id_out",value:e.chan_id_out,title:"Outbound Channel ID",width:25,type:g.h.STRING}]]}}))},e.prototype.loadForwardingEventsTable=function(e){this.forwardingHistoryEvents=new Tt.o(Object(kt.g)(e)),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.forwardingHistoryEvents.paginator=this.paginator,this.logger.info(this.forwardingHistoryEvents)},e.prototype.onDownloadCSV=function(){this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")},e.prototype.applyFilter=function(e){this.forwardingHistoryEvents.filter=e},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(h.a),i.Qb(C.h))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-forwarding-history"]],viewQuery:function(e,t){var n;1&e&&(i.Dc(Ht.a,!0),i.Dc(It.a,!0)),2&e&&(i.vc(n=i.fc())&&(t.sort=n.first),i.vc(n=i.fc())&&(t.paginator=n.first))},inputs:{forwardingHistoryData:"forwardingHistoryData"},features:[i.Cb([{provide:It.b,useValue:Object(g.w)("Events")}]),i.Bb],decls:35,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias_in"],["matColumnDef","alias_out"],["matColumnDef","amt_in"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_out"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Rb(2,"div",2),i.Wb(3,"mat-form-field",3),i.Wb(4,"input",4),i.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),i.Vb(),i.Vb(),i.Vb(),i.Wb(5,"div",5),i.Wb(6,"table",6,7),i.Ub(8,8),i.Fc(9,Xb,2,0,"th",9),i.Fc(10,$b,2,1,"td",10),i.Tb(),i.Ub(11,11),i.Fc(12,Jb,2,0,"th",9),i.Fc(13,Zb,2,1,"td",10),i.Tb(),i.Ub(14,12),i.Fc(15,Kb,2,0,"th",9),i.Fc(16,Yb,2,1,"td",10),i.Tb(),i.Ub(17,13),i.Fc(18,eu,2,0,"th",14),i.Fc(19,tu,4,3,"td",10),i.Tb(),i.Ub(20,15),i.Fc(21,nu,2,0,"th",14),i.Fc(22,au,4,3,"td",10),i.Tb(),i.Ub(23,16),i.Fc(24,ou,2,0,"th",14),i.Fc(25,iu,4,3,"td",10),i.Tb(),i.Ub(26,17),i.Fc(27,ru,6,0,"th",18),i.Fc(28,cu,3,0,"td",19),i.Tb(),i.Ub(29,20),i.Fc(30,su,2,1,"td",21),i.Tb(),i.Fc(31,uu,1,3,"tr",22),i.Fc(32,pu,1,0,"tr",23),i.Fc(33,du,1,0,"tr",24),i.Vb(),i.Vb(),i.Rb(34,"mat-paginator",25),i.Vb()),2&e&&(i.Db(6),i.pc("dataSource",t.forwardingHistoryEvents),i.Db(25),i.pc("matFooterRowDef",i.sc(8,mu)),i.Db(1),i.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.pc("matRowDefColumns",t.displayedColumns),i.Db(1),i.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[x.c,x.b,x.a,A.c,le.b,M.b,Tt.n,Ht.a,Tt.c,Tt.i,Tt.b,Tt.e,Tt.g,Tt.k,Tt.m,It.a,Tt.h,Ht.b,Tt.a,Ot.a,Ot.c,Pt.n,D.a,Tt.d,a.n,Tt.f,a.l,V.a,Tt.j,Tt.l],pipes:[a.e],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}(),hu=["tableOut"];function gu(e,t){1&e&&(i.Wb(0,"th",30),i.Hc(1,"Channel ID"),i.Vb())}var yu=function(e){return{"max-width":e}};function Cu(e,t){if(1&e&&(i.Wb(0,"td",31),i.Hc(1),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.pc("ngStyle",i.tc(2,yu,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),i.Db(1),i.Ic(n.chan_id)}}function vu(e,t){1&e&&(i.Wb(0,"th",30),i.Hc(1,"Peer Alias"),i.Vb())}function xu(e,t){if(1&e&&(i.Wb(0,"td",31),i.Hc(1),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.pc("ngStyle",i.tc(2,yu,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),i.Db(1),i.Ic(n.alias)}}function wu(e,t){1&e&&(i.Wb(0,"th",32),i.Hc(1,"Events"),i.Vb())}function Fu(e,t){if(1&e&&(i.Wb(0,"td",33),i.Wb(1,"span",34),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(i.kc(3,1,n.events))}}function Vu(e,t){1&e&&(i.Wb(0,"th",32),i.Hc(1,"Total Amount (Sats)"),i.Vb())}function Wu(e,t){if(1&e&&(i.Wb(0,"td",33),i.Wb(1,"span",34),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(i.kc(3,1,n.total_amount))}}function Lu(e,t){1&e&&(i.Wb(0,"th",35),i.Wb(1,"span",34),i.Hc(2,"Actions"),i.Vb(),i.Vb())}function Du(e,t){if(1&e){var n=i.Xb();i.Wb(0,"td",36),i.Wb(1,"button",37),i.ec("click",(function(e){i.yc(n);var a=t.$implicit;return i.ic().onRoutingPeerClick(a,e,"in")})),i.Hc(2,"View Info"),i.Vb(),i.Vb()}}function Su(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"No incoming routing peer available."),i.Vb())}function _u(e,t){if(1&e&&(i.Wb(0,"td",38),i.Fc(1,Su,2,0,"p",39),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngIf",!(null!=n.RoutingPeersIncoming&&n.RoutingPeersIncoming.data)||(null==n.RoutingPeersIncoming||null==n.RoutingPeersIncoming.data?null:n.RoutingPeersIncoming.data.length)<1)}}var Ru=function(e){return{"display-none":e}};function ku(e,t){if(1&e&&i.Rb(0,"tr",40),2&e){var n=i.ic();i.pc("ngClass",i.tc(1,Ru,(null==n.RoutingPeersIncoming?null:n.RoutingPeersIncoming.data)&&(null==n.RoutingPeersIncoming||null==n.RoutingPeersIncoming.data?null:n.RoutingPeersIncoming.data.length)>0))}}function Iu(e,t){1&e&&i.Rb(0,"tr",41)}function Hu(e,t){1&e&&i.Rb(0,"tr",42)}function Tu(e,t){1&e&&(i.Wb(0,"th",30),i.Hc(1,"Channel ID"),i.Vb())}function Au(e,t){if(1&e&&(i.Wb(0,"td",31),i.Hc(1),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.pc("ngStyle",i.tc(2,yu,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),i.Db(1),i.Ic(n.chan_id)}}function Ou(e,t){1&e&&(i.Wb(0,"th",30),i.Hc(1,"Peer Alias"),i.Vb())}function Pu(e,t){if(1&e&&(i.Wb(0,"td",31),i.Hc(1),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.pc("ngStyle",i.tc(2,yu,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),i.Db(1),i.Ic(n.alias)}}function Mu(e,t){1&e&&(i.Wb(0,"th",32),i.Hc(1,"Events"),i.Vb())}function Eu(e,t){if(1&e&&(i.Wb(0,"td",33),i.Wb(1,"span",34),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(i.kc(3,1,n.events))}}function Gu(e,t){1&e&&(i.Wb(0,"th",32),i.Hc(1,"Total Amount (Sats)"),i.Vb())}function Nu(e,t){if(1&e&&(i.Wb(0,"td",33),i.Wb(1,"span",34),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(i.kc(3,1,n.total_amount))}}function zu(e,t){1&e&&(i.Wb(0,"th",35),i.Wb(1,"span",34),i.Hc(2,"Actions"),i.Vb(),i.Vb())}function Bu(e,t){if(1&e){var n=i.Xb();i.Wb(0,"td",36),i.Wb(1,"button",43),i.ec("click",(function(e){i.yc(n);var a=t.$implicit;return i.ic().onRoutingPeerClick(a,e,"out")})),i.Hc(2,"View Info"),i.Vb(),i.Vb()}}function qu(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"No outgoing routing peer available."),i.Vb())}function Uu(e,t){if(1&e&&(i.Wb(0,"td",38),i.Fc(1,qu,2,0,"p",39),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngIf",!(null!=n.RoutingPeersOutgoing&&n.RoutingPeersOutgoing.data)||(null==n.RoutingPeersOutgoing||null==n.RoutingPeersOutgoing.data?null:n.RoutingPeersOutgoing.data.length)<1)}}function ju(e,t){if(1&e&&i.Rb(0,"tr",40),2&e){var n=i.ic();i.pc("ngClass",i.tc(1,Ru,(null==n.RoutingPeersOutgoing?null:n.RoutingPeersOutgoing.data)&&(null==n.RoutingPeersOutgoing||null==n.RoutingPeersOutgoing.data?null:n.RoutingPeersOutgoing.data.length)>0))}}function Qu(e,t){1&e&&i.Rb(0,"tr",41)}function Xu(e,t){1&e&&i.Rb(0,"tr",42)}var $u=function(e,t){return{"mt-2":e,"mt-1":t}},Ju=function(){return["no_incoming_event"]},Zu=function(e){return{"mt-2":e}},Ku=function(){return["no_outgoing_event"]},Yu=function(){function e(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.actions$=a,this.displayedColumns=[],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=g.o,this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["chan_id","events","actions"]):this.screenSize===g.o.SM||this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["chan_id","alias","events","total_amount"]):(this.flgSticky=!0,this.displayedColumns=["chan_id","alias","events","total_amount"])}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(){this.loadRoutingPeersTable(this.routingPeersData)},e.prototype.onRoutingPeerClick=function(e,t,n){var a=" Routing Information";this.store.dispatch(new J.C({data:{type:g.b.INFORMATION,alertTitle:a="in"===n?"Incoming"+a:"Outgoing"+a,message:[[{key:"chan_id",value:e.chan_id,title:"Channel ID",width:50,type:g.h.STRING},{key:"alias",value:e.alias,title:"Peer Alias",width:50,type:g.h.STRING}],[{key:"events",value:e.events,title:"Events",width:50,type:g.h.NUMBER},{key:"total_amount",value:e.total_amount,title:"Total Amount (Sats)",width:50,type:g.h.NUMBER}]]}}))},e.prototype.loadRoutingPeersTable=function(e){if(e.length>0){var t=this.groupRoutingPeers(e);this.RoutingPeersIncoming=new Tt.o(t[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new Tt.o(t[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new Tt.o([]),this.RoutingPeersOutgoing=new Tt.o([])},e.prototype.groupRoutingPeers=function(e){var t=[],n=[];return e.forEach((function(e){var a=t.find((function(t){return t.chan_id===e.chan_id_in})),o=n.find((function(t){return t.chan_id===e.chan_id_out}));a?(a.events++,a.total_amount=+a.total_amount+ +e.amt_in):t.push({chan_id:e.chan_id_in,alias:e.alias_in,events:1,total_amount:+e.amt_in}),o?(o.events++,o.total_amount=+o.total_amount+ +e.amt_out):n.push({chan_id:e.chan_id_out,alias:e.alias_out,events:1,total_amount:+e.amt_out})})),[this.commonService.sortDescByKey(t,"total_amount"),this.commonService.sortDescByKey(n,"total_amount")]},e.prototype.applyIncomingFilter=function(e){this.RoutingPeersIncoming.filter=e},e.prototype.applyOutgoingFilter=function(e){this.RoutingPeersOutgoing.filter=e},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(h.a),i.Qb(C.h),i.Qb(v.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-routing-peers"]],viewQuery:function(e,t){var n;1&e&&(i.Dc(Ht.a,!0),i.Dc(hu,!0,Ht.a)),2&e&&(i.vc(n=i.fc())&&(t.sortIn=n.first),i.vc(n=i.fc())&&(t.sortOut=n.first))},inputs:{routingPeersData:"routingPeersData"},features:[i.Bb],decls:60,vars:19,consts:[["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x","page-sub-title-container"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"table-container","w-100"],["mat-table","","matSort","","fxFlex","100",1,"overflow-auto","incoming-table",3,"dataSource"],["tableIn",""],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_amount"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100"],["mat-table","","matSort","","fxFlex","100",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["matColumnDef","no_outgoing_event"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],["mat-cell","",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],["mat-stroked-button","","color","primary","type","button","tabindex","5",3,"click"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Wb(2,"div",2),i.Wb(3,"div",3),i.Wb(4,"div",4),i.Hc(5,"Incoming"),i.Vb(),i.Wb(6,"mat-form-field",5),i.Wb(7,"input",6),i.ec("keyup",(function(e){return t.applyIncomingFilter(e.target.value)})),i.Vb(),i.Vb(),i.Vb(),i.Wb(8,"div",7),i.Wb(9,"table",8,9),i.Ub(11,10),i.Fc(12,gu,2,0,"th",11),i.Fc(13,Cu,2,4,"td",12),i.Tb(),i.Ub(14,13),i.Fc(15,vu,2,0,"th",11),i.Fc(16,xu,2,4,"td",12),i.Tb(),i.Ub(17,14),i.Fc(18,wu,2,0,"th",15),i.Fc(19,Fu,4,3,"td",16),i.Tb(),i.Ub(20,17),i.Fc(21,Vu,2,0,"th",15),i.Fc(22,Wu,4,3,"td",16),i.Tb(),i.Ub(23,18),i.Fc(24,Lu,3,0,"th",19),i.Fc(25,Du,3,0,"td",20),i.Tb(),i.Ub(26,21),i.Fc(27,_u,2,1,"td",22),i.Tb(),i.Fc(28,ku,1,3,"tr",23),i.Fc(29,Iu,1,0,"tr",24),i.Fc(30,Hu,1,0,"tr",25),i.Vb(),i.Vb(),i.Vb(),i.Wb(31,"div",2),i.Wb(32,"div",3),i.Wb(33,"div",4),i.Hc(34,"Outgoing"),i.Vb(),i.Wb(35,"mat-form-field",5),i.Wb(36,"input",6),i.ec("keyup",(function(e){return t.applyOutgoingFilter(e.target.value)})),i.Vb(),i.Vb(),i.Vb(),i.Wb(37,"div",26),i.Wb(38,"table",27,28),i.Ub(40,10),i.Fc(41,Tu,2,0,"th",11),i.Fc(42,Au,2,4,"td",12),i.Tb(),i.Ub(43,13),i.Fc(44,Ou,2,0,"th",11),i.Fc(45,Pu,2,4,"td",12),i.Tb(),i.Ub(46,14),i.Fc(47,Mu,2,0,"th",15),i.Fc(48,Eu,4,3,"td",16),i.Tb(),i.Ub(49,17),i.Fc(50,Gu,2,0,"th",15),i.Fc(51,Nu,4,3,"td",16),i.Tb(),i.Ub(52,18),i.Fc(53,zu,3,0,"th",19),i.Fc(54,Bu,3,0,"td",20),i.Tb(),i.Ub(55,29),i.Fc(56,Uu,2,1,"td",22),i.Tb(),i.Fc(57,ju,1,3,"tr",23),i.Fc(58,Qu,1,0,"tr",24),i.Fc(59,Xu,1,0,"tr",25),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(3),i.pc("ngClass",i.uc(12,$u,t.screenSize===t.screenSizeEnum.XS,t.screenSize===t.screenSizeEnum.SM)),i.Db(6),i.pc("dataSource",t.RoutingPeersIncoming),i.Db(19),i.pc("matFooterRowDef",i.sc(15,Ju)),i.Db(1),i.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.pc("matRowDefColumns",t.displayedColumns),i.Db(2),i.pc("ngClass",i.tc(16,Zu,t.screenSize!==t.screenSizeEnum.LG)),i.Db(6),i.pc("dataSource",t.RoutingPeersOutgoing),i.Db(19),i.pc("matFooterRowDef",i.sc(18,Ku)),i.Db(1),i.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.pc("matRowDefColumns",t.displayedColumns))},directives:[x.c,x.b,x.a,a.l,V.a,A.c,le.b,M.b,Tt.n,Ht.a,Tt.c,Tt.i,Tt.b,Tt.e,Tt.g,Tt.k,Tt.m,Tt.h,Ht.b,Tt.a,a.o,V.b,D.a,Tt.d,a.n,Tt.f,Tt.j,Tt.l],pipes:[a.e],styles:[".mat-column-alias[_ngcontent-%COMP%], .mat-column-chan_id[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e}();function ep(e,t){if(1&e&&(i.Wb(0,"div",29),i.Hc(1),i.Vb()),2&e){var n=i.ic();i.Db(1),i.Ic(n.errorMessage)}}function tp(e,t){if(1&e&&i.Rb(0,"rtl-forwarding-history",30),2&e){var n=i.ic();i.pc("forwardingHistoryData",n.eventsData)}}function np(e,t){if(1&e&&(i.Wb(0,"div",29),i.Hc(1),i.Vb()),2&e){var n=i.ic();i.Db(1),i.Ic(n.errorMessage)}}function ap(e,t){if(1&e&&i.Rb(0,"rtl-routing-peers",31),2&e){var n=i.ic();i.pc("routingPeersData",n.eventsData)}}var op=function(e){return{"error-border w-100 routing-tabs-block":e,"w-100 routing-tabs-block":!0}},ip=function(){function e(e,t,n){this.logger=e,this.store=t,this.actions$=n,this.faMapSigns=m.v,this.lastOffsetIndex=0,this.eventsData=[],this.today=new Date(Date.now()),this.lastMonthDay=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate()-30,this.today.getHours(),this.today.getMinutes(),this.today.getSeconds()),this.yesterday=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate()-1,this.today.getHours(),this.today.getMinutes(),this.today.getSeconds()),this.endDate=this.today,this.startDate=this.lastMonthDay,this.flgLoading=[!0],this.errorMessage="",this.unSubs=[new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.onEventsFetch(),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.errorMessage="",t.effectErrors.forEach((function(t){"GetForwardingHistory"===t.action&&(e.flgLoading[0]="error",e.errorMessage="object"==typeof t.message?JSON.stringify(t.message):t.message)})),t.forwardingHistory&&t.forwardingHistory.forwarding_events?(e.lastOffsetIndex=t.forwardingHistory.last_offset_index,e.eventsData=t.forwardingHistory.forwarding_events):(e.lastOffsetIndex=0,e.eventsData=[]),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.forwardingHistory),e.logger.info(t)}))},e.prototype.onEventsFetch=function(){this.endDate||(this.endDate=new Date),this.startDate||(this.startDate=new Date(this.endDate.getFullYear(),this.endDate.getMonth(),this.endDate.getDate()-30)),this.store.dispatch(new y.W({end_time:Math.round(this.endDate.getTime()/1e3).toString(),start_time:Math.round(this.startDate.getTime()/1e3).toString()}))},e.prototype.resetData=function(){this.endDate=this.today,this.startDate=this.lastMonthDay,this.lastOffsetIndex=0},e.prototype.ngOnDestroy=function(){this.resetData(),this.store.dispatch(new y.Yb({})),this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(C.h),i.Qb(v.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-routing"]],decls:36,vars:18,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mb-1",3,"ngSubmit"],["routingForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","placeholder","Start Date","name","startDate","tabindex","1",3,"matDatepicker","max","ngModel","ngModelChange"],["strtDate","ngModel"],["matSuffix","",3,"for"],[3,"startAt"],["startDatepicker",""],["matInput","","placeholder","End Date","name","endDate","tabindex","2",3,"matDatepicker","max","ngModel","ngModelChange"],["enDate","ngModel"],["endDatepicker",""],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","100"],["label","Forwarding History"],["class","p-2",4,"ngIf"],[3,"forwardingHistoryData",4,"ngIf"],["label","Routing Peers"],[3,"routingPeersData",4,"ngIf"],[1,"p-2"],[3,"forwardingHistoryData"],[3,"routingPeersData"]],template:function(e,t){if(1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Rb(2,"fa-icon",2),i.Wb(3,"span",3),i.Hc(4,"Routing"),i.Vb(),i.Vb(),i.Wb(5,"div",4),i.Wb(6,"mat-card",5),i.Wb(7,"mat-card-content",6),i.Wb(8,"form",7,8),i.ec("ngSubmit",(function(){return t.onEventsFetch()})),i.Wb(10,"div",9),i.Wb(11,"mat-form-field",10),i.Wb(12,"input",11,12),i.ec("ngModelChange",(function(e){return t.startDate=e})),i.Vb(),i.Rb(14,"mat-datepicker-toggle",13),i.Rb(15,"mat-datepicker",14,15),i.Vb(),i.Wb(17,"mat-form-field",10),i.Wb(18,"input",16,17),i.ec("ngModelChange",(function(e){return t.endDate=e})),i.Vb(),i.Rb(20,"mat-datepicker-toggle",13),i.Rb(21,"mat-datepicker",14,18),i.Vb(),i.Vb(),i.Wb(23,"div",19),i.Wb(24,"button",20),i.ec("click",(function(){return t.resetData()})),i.Hc(25,"Clear"),i.Vb(),i.Wb(26,"button",21),i.Hc(27,"Fetch Events"),i.Vb(),i.Vb(),i.Vb(),i.Wb(28,"div",22),i.Wb(29,"mat-tab-group",23),i.Wb(30,"mat-tab",24),i.Fc(31,ep,2,1,"div",25),i.Fc(32,tp,1,1,"rtl-forwarding-history",26),i.Vb(),i.Wb(33,"mat-tab",27),i.Fc(34,np,2,1,"div",25),i.Fc(35,ap,1,1,"rtl-routing-peers",28),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e){var n=i.wc(16),a=i.wc(22);i.Db(2),i.pc("icon",t.faMapSigns),i.Db(10),i.pc("matDatepicker",n)("max",t.yesterday)("ngModel",t.startDate),i.Db(2),i.pc("for",n),i.Db(1),i.pc("startAt",t.startDate),i.Db(3),i.pc("matDatepicker",a)("max",t.today)("ngModel",t.endDate),i.Db(2),i.pc("for",a),i.Db(1),i.pc("startAt",t.endDate),i.Db(7),i.pc("ngClass",i.tc(16,op,"error"===t.flgLoading[0])),i.Db(3),i.pc("ngIf",""!==t.errorMessage),i.Db(1),i.pc("ngIf",""===t.errorMessage&&t.eventsData),i.Db(2),i.pc("ngIf",""!==t.errorMessage),i.Db(1),i.pc("ngIf",""===t.errorMessage&&t.eventsData)}},directives:[x.c,x.b,w.a,x.a,W.a,W.b,U.t,U.m,U.n,A.c,le.b,Qb.b,po.a,U.b,U.l,U.o,Qb.d,A.g,Qb.a,D.a,a.l,V.a,Rt.c,Rt.a,a.n,fu,Yu],styles:[""]}),e}(),rp=n("Cyaj"),cp=["form"],lp=["formSweepAll"],sp=["stepper"];function bp(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Bitcoin address is required."),i.Vb())}function up(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Amount is required."),i.Vb())}function pp(e,t){if(1&e&&(i.Wb(0,"mat-option",31),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.pc("value",n),i.Db(1),i.Ic(n)}}function dp(e,t){if(1&e&&(i.Wb(0,"mat-option",31),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.pc("value",n.id),i.Db(1),i.Jc(" ",n.name," ")}}function mp(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Number of blocks is required."),i.Vb())}function fp(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-form-field",23),i.Wb(1,"input",32,33),i.ec("ngModelChange",(function(e){return i.yc(n),i.ic(2).transactionBlocks=e})),i.Vb(),i.Fc(3,mp,2,0,"mat-error",14),i.Vb()}if(2&e){var a=i.ic(2);i.Db(1),i.pc("ngModel",a.transactionBlocks),i.Db(2),i.pc("ngIf",!a.transactionBlocks)}}function hp(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Fees is required."),i.Vb())}function gp(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-form-field",23),i.Wb(1,"input",34,35),i.ec("ngModelChange",(function(e){return i.yc(n),i.ic(2).transactionFees=e})),i.Vb(),i.Fc(3,hp,2,0,"mat-error",14),i.Vb()}if(2&e){var a=i.ic(2);i.Db(1),i.rc("placeholder","Fees (",null==a.nodeData?null:a.nodeData.smaller_currency_unit,"/Byte)"),i.pc("ngModel",a.transactionFees),i.Db(2),i.pc("ngIf",!a.transactionFees)}}function yp(e,t){if(1&e&&(i.Wb(0,"span"),i.Hc(1),i.Vb()),2&e){var n=i.ic(3);i.Db(1),i.Ic(n.sendFundError)}}function Cp(e,t){if(1&e&&(i.Wb(0,"div",36),i.Rb(1,"fa-icon",37),i.Fc(2,yp,2,1,"span",14),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.pc("icon",n.faExclamationTriangle),i.Db(1),i.pc("ngIf",""!==n.sendFundError)}}function vp(e,t){if(1&e){var n=i.Xb();i.Wb(0,"form",9,10),i.ec("submit",(function(){return i.yc(n),i.ic().onSendFunds()}))("reset",(function(){return i.yc(n),i.ic().resetData()})),i.Wb(2,"mat-form-field",11),i.Wb(3,"input",12,13),i.ec("ngModelChange",(function(e){return i.yc(n),i.ic().transactionAddress=e})),i.Vb(),i.Fc(5,bp,2,0,"mat-error",14),i.Vb(),i.Wb(6,"mat-form-field",15),i.Wb(7,"input",16,17),i.ec("ngModelChange",(function(e){return i.yc(n),i.ic().transactionAmount=e})),i.Vb(),i.Wb(9,"span",18),i.Hc(10),i.Vb(),i.Fc(11,up,2,0,"mat-error",14),i.Vb(),i.Wb(12,"mat-form-field",19),i.Wb(13,"mat-select",20),i.ec("selectionChange",(function(e){return i.yc(n),i.ic().onAmountUnitChange(e)})),i.Fc(14,pp,2,2,"mat-option",21),i.Vb(),i.Vb(),i.Wb(15,"div",22),i.Wb(16,"mat-form-field",23),i.Wb(17,"mat-select",24),i.ec("valueChange",(function(e){return i.yc(n),i.ic().selTransType=e})),i.Fc(18,dp,2,2,"mat-option",21),i.Vb(),i.Vb(),i.Fc(19,fp,4,2,"mat-form-field",25),i.Fc(20,gp,4,3,"mat-form-field",25),i.Vb(),i.Rb(21,"div",26),i.Fc(22,Cp,3,2,"div",27),i.Wb(23,"div",28),i.Wb(24,"button",29),i.Hc(25,"Clear Fields"),i.Vb(),i.Wb(26,"button",30),i.Hc(27,"Send Funds"),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.Db(3),i.pc("ngModel",a.transactionAddress),i.Db(2),i.pc("ngIf",!a.transactionAddress),i.Db(2),i.pc("ngModel",a.transactionAmount),i.Db(3),i.Jc(" ",a.selAmountUnit," "),i.Db(1),i.pc("ngIf",!a.transactionAmount),i.Db(2),i.pc("value",a.selAmountUnit),i.Db(1),i.pc("ngForOf",a.amountUnits),i.Db(3),i.pc("value",a.selTransType),i.Db(1),i.pc("ngForOf",a.transTypes),i.Db(1),i.pc("ngIf","1"==a.selTransType),i.Db(1),i.pc("ngIf","2"==a.selTransType),i.Db(2),i.pc("ngIf",""!==a.sendFundError)}}function xp(e,t){if(1&e&&i.Hc(0),2&e){var n=i.ic(3);i.Ic(n.passwordFormLabel)}}function wp(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Password is required."),i.Vb())}function Fp(e,t){if(1&e){var n=i.Xb();i.Wb(0,"mat-step",42),i.Wb(1,"form",61),i.Fc(2,xp,1,1,"ng-template",55),i.Wb(3,"div",0),i.Wb(4,"mat-form-field",62),i.Rb(5,"input",63),i.Fc(6,wp,2,0,"mat-error",14),i.Vb(),i.Vb(),i.Wb(7,"div",64),i.Wb(8,"button",65),i.ec("click",(function(){return i.yc(n),i.ic(2).onAuthenticate()})),i.Hc(9,"Confirm"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic(2);i.pc("stepControl",a.passwordFormGroup)("editable",a.flgEditable),i.Db(1),i.pc("formGroup",a.passwordFormGroup),i.Db(5),i.pc("ngIf",null==a.passwordFormGroup.controls.password.errors?null:a.passwordFormGroup.controls.password.errors.required)}}function Vp(e,t){if(1&e&&i.Hc(0),2&e){var n=i.ic(2);i.Ic(n.sendFundFormLabel)}}function Wp(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Bitcoin address is required."),i.Vb())}function Lp(e,t){if(1&e&&(i.Wb(0,"mat-option",31),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.pc("value",n.id),i.Db(1),i.Jc(" ",n.name," ")}}function Dp(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Number of blocks is required."),i.Vb())}function Sp(e,t){if(1&e&&(i.Wb(0,"mat-form-field",66),i.Rb(1,"input",67),i.Fc(2,Dp,2,0,"mat-error",14),i.Vb()),2&e){var n=i.ic(2);i.Db(2),i.pc("ngIf",null==n.sendFundFormGroup.controls.transactionBlocks.errors?null:n.sendFundFormGroup.controls.transactionBlocks.errors.required)}}function _p(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Fees is required."),i.Vb())}function Rp(e,t){if(1&e&&(i.Wb(0,"mat-form-field",66),i.Rb(1,"input",68),i.Fc(2,_p,2,0,"mat-error",14),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.rc("placeholder","Fees (",null==n.nodeData?null:n.nodeData.smaller_currency_unit,"/Byte)"),i.Db(1),i.pc("ngIf",null==n.sendFundFormGroup.controls.transactionFees.errors?null:n.sendFundFormGroup.controls.transactionFees.errors.required)}}function kp(e,t){if(1&e&&i.Hc(0),2&e){var n=i.ic(2);i.Ic(n.confirmFormLabel)}}function Ip(e,t){if(1&e&&(i.Wb(0,"span"),i.Hc(1),i.Vb()),2&e){var n=i.ic(3);i.Db(1),i.Ic(n.sendFundError)}}function Hp(e,t){if(1&e&&(i.Wb(0,"div",36),i.Rb(1,"fa-icon",37),i.Fc(2,Ip,2,1,"span",14),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.pc("icon",n.faExclamationTriangle),i.Db(1),i.pc("ngIf",""!==n.sendFundError)}}function Tp(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",38),i.Wb(1,"mat-vertical-stepper",39,40),i.ec("selectionChange",(function(e){return i.yc(n),i.ic().stepSelectionChanged(e)})),i.Fc(3,Fp,10,4,"mat-step",41),i.Wb(4,"mat-step",42),i.Wb(5,"form",43),i.Fc(6,Vp,1,1,"ng-template",44),i.Wb(7,"div",45),i.Wb(8,"mat-form-field",46),i.Rb(9,"input",47),i.Fc(10,Wp,2,0,"mat-error",14),i.Vb(),i.Wb(11,"mat-form-field",48),i.Wb(12,"mat-select",49),i.Fc(13,Lp,2,2,"mat-option",21),i.Vb(),i.Vb(),i.Fc(14,Sp,3,1,"mat-form-field",50),i.Fc(15,Rp,3,2,"mat-form-field",50),i.Vb(),i.Wb(16,"div",51),i.Wb(17,"button",52),i.Hc(18,"Next"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Wb(19,"mat-step",53),i.Wb(20,"form",54),i.Fc(21,kp,1,1,"ng-template",55),i.Wb(22,"div",38),i.Wb(23,"div",56),i.Rb(24,"fa-icon",57),i.Wb(25,"span"),i.Hc(26,"You are about to sweep all funds from RTL. Are you sure?"),i.Vb(),i.Vb(),i.Fc(27,Hp,3,2,"div",27),i.Wb(28,"div",51),i.Wb(29,"button",58),i.ec("click",(function(){return i.yc(n),i.ic().onSendFunds()})),i.Hc(30,"Sweep All Funds"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Wb(31,"div",59),i.Wb(32,"button",60),i.Hc(33),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.Db(1),i.pc("linear",!0),i.Db(2),i.pc("ngIf",!a.appConfig.sso.rtlSSO),i.Db(1),i.pc("stepControl",a.sendFundFormGroup)("editable",a.flgEditable),i.Db(1),i.pc("formGroup",a.sendFundFormGroup),i.Db(5),i.pc("ngIf",null==a.sendFundFormGroup.controls.transactionAddress.errors?null:a.sendFundFormGroup.controls.transactionAddress.errors.required),i.Db(3),i.pc("ngForOf",a.transTypes),i.Db(1),i.pc("ngIf","1"==a.sendFundFormGroup.controls.selTransType.value),i.Db(1),i.pc("ngIf","2"==a.sendFundFormGroup.controls.selTransType.value),i.Db(4),i.pc("stepControl",a.confirmFormGroup),i.Db(1),i.pc("formGroup",a.confirmFormGroup),i.Db(4),i.pc("icon",a.faExclamationTriangle),i.Db(3),i.pc("ngIf",""!==a.sendFundError),i.Db(5),i.pc("mat-dialog-close",!1),i.Db(1),i.Ic(a.flgValidated?"Close":"Cancel")}}var Ap=function(){function e(e,t,n,a,o,i,r,c,l,s){this.dialogRef=e,this.data=t,this.logger=n,this.store=a,this.rtlEffects=o,this.commonService=i,this.decimalPipe=r,this.snackBar=c,this.actions$=l,this.formBuilder=s,this.faExclamationTriangle=m.n,this.sweepAll=!1,this.selNode={},this.addressTypes=[],this.flgLoadingWallet=!0,this.selectedAddress={},this.blockchainBalance={},this.information={},this.newAddress="",this.transactionAddress="",this.transactionAmount=null,this.transactionFees=null,this.transactionBlocks=null,this.transTypes=[{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],this.selTransType="1",this.fiatConversion=!1,this.amountUnits=g.e,this.selAmountUnit=g.e[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=g.f,this.sendFundError="",this.flgValidated=!1,this.flgEditable=!0,this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.unSubs=[new b.a,new b.a,new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[U.s.required]],password:["",[U.s.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",U.s.required],transactionBlocks:[null],transactionFees:[null],selTransType:["1",U.s.required]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.selTransType.valueChanges.pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){"1"===t?(e.sendFundFormGroup.controls.transactionBlocks.setValidators([U.s.required]),e.sendFundFormGroup.controls.transactionBlocks.setValue(null),e.sendFundFormGroup.controls.transactionFees.setValidators(null),e.sendFundFormGroup.controls.transactionFees.setValue(null)):(e.sendFundFormGroup.controls.transactionBlocks.setValidators(null),e.sendFundFormGroup.controls.transactionBlocks.setValue(null),e.sendFundFormGroup.controls.transactionFees.setValidators([U.s.required]),e.sendFundFormGroup.controls.transactionFees.setValue(null))})),this.store.select("root").pipe(Object(u.a)(this.unSubs[1])).subscribe((function(t){e.fiatConversion=t.selNode.settings.fiatConversion,e.amountUnits=t.selNode.settings.currencyUnits,e.appConfig=t.appConfig,e.nodeData=t.nodeData,e.logger.info(t)})),this.actions$.pipe(Object(u.a)(this.unSubs[2]),Object(p.a)((function(e){return e.type===y.m||e.type===y.yb}))).subscribe((function(t){t.type===y.yb&&(e.store.dispatch(new J.E(e.sweepAll?"All Funds Sent Successfully!":"Fund Sent Successfully!")),e.dialogRef.close()),t.type===y.m&&"SetChannelTransaction"===t.payload.action&&(e.sendFundError=t.payload.message)}))},e.prototype.onAuthenticate=function(){var e=this;if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch(new J.t(rp(this.passwordFormGroup.controls.password.value))),this.rtlEffects.isAuthorizedRes.pipe(Object(wn.a)(1)).subscribe((function(t){"ERROR"!==t?(e.passwordFormGroup.controls.hiddenPassword.setValue(e.passwordFormGroup.controls.password.value),e.stepper.next()):(e.dialogRef.close(),e.snackBar.open("Unauthorized User. Logging out from RTL."))}))},e.prototype.onSendFunds=function(){var e=this;if(this.invalidValues)return!0;this.sendFundError="";var t=this.transactionAmount?this.transactionAmount:0;this.transactionAmount&&this.selAmountUnit!==g.g.SATS&&this.commonService.convertCurrency(t,this.selAmountUnit===this.amountUnits[2]?g.g.OTHER:this.selAmountUnit,this.amountUnits[2],this.fiatConversion).pipe(Object(u.a)(this.unSubs[3])).subscribe((function(n){t=+e.decimalPipe.transform(n[e.amountUnits[0]],e.currencyUnitFormats[e.amountUnits[0]]).replace(/,/g,"")})),this.store.dispatch(new J.F("Sending Funds..."));var n={amount:t,sendAll:this.sweepAll};this.sweepAll?(n.address=this.sendFundFormGroup.controls.transactionAddress.value,"1"===this.sendFundFormGroup.controls.selTransType.value&&(n.blocks=this.sendFundFormGroup.controls.transactionBlocks.value),"2"===this.sendFundFormGroup.controls.selTransType.value&&(n.fees=this.sendFundFormGroup.controls.transactionFees.value)):(n.address=this.transactionAddress,"1"===this.selTransType&&(n.blocks=this.transactionBlocks),"2"===this.selTransType&&(n.fees=this.transactionFees)),this.store.dispatch(new y.Wb(n))},Object.defineProperty(e.prototype,"invalidValues",{get:function(){return this.sweepAll?!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||"1"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionBlocks.value||this.sendFundFormGroup.controls.transactionBlocks.value<=0)||"2"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionFees.value||this.sendFundFormGroup.controls.transactionFees.value<=0):!this.transactionAddress||""===this.transactionAddress||!this.transactionAmount||this.transactionAmount<=0||"1"===this.selTransType&&(!this.transactionBlocks||this.transactionBlocks<=0)||"2"===this.selTransType&&(!this.transactionFees||this.transactionFees<=0)},enumerable:!0,configurable:!0}),e.prototype.resetData=function(){this.sendFundError="",this.selTransType="1",this.transactionAddress="",this.transactionBlocks=null,this.transactionFees=null,this.sweepAll||(this.transactionAmount=null)},e.prototype.stepSelectionChanged=function(e){switch(this.sendFundError="",e.selectedIndex){case 0:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds";break;case 1:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds";break;case 2:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds | Address: "+this.sendFundFormGroup.controls.transactionAddress.value+" | "+this.transTypes[this.sendFundFormGroup.controls.selTransType.value-1].name+("2"===this.sendFundFormGroup.controls.selTransType.value?" ("+this.nodeData.smaller_currency_unit+"/Byte)":"")+": "+("1"===this.sendFundFormGroup.controls.selTransType.value?this.sendFundFormGroup.controls.transactionBlocks.value:this.sendFundFormGroup.controls.transactionFees.value);break;default:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds"}e.selectedIndex0))}}function ed(e,t){1&e&&i.Rb(0,"tr",40)}function td(e,t){1&e&&i.Rb(0,"tr",41)}var nd=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},ad=function(){return["no_utxo"]},od=function(){function e(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.actions$=a,this.addressType=g.v,this.faMoneyBillWave=m.w,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["amount_sat","confirmations","actions"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","amount_sat","actions"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","amount_sat","confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["tx_id","output","amount_sat","confirmations","actions"])}return e.prototype.ngOnChanges=function(){this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos)},e.prototype.applyFilter=function(e){this.listUTXOs.filter=e},e.prototype.onUTXOClick=function(e,t){this.store.dispatch(new J.C({data:{type:g.b.INFORMATION,alertTitle:"UTXO Information",message:[[{key:"txid",value:e.outpoint.txid_str,title:"Transaction ID",width:100,type:g.h.STRING}],[{key:"output_index",value:e.outpoint.output_index,title:"Output Index",width:34,type:g.h.NUMBER},{key:"amount_sat",value:e.amount_sat,title:"Amount (Sats)",width:33,type:g.h.NUMBER},{key:"confirmations",value:e.confirmations,title:"Confirmations",width:33,type:g.h.NUMBER}],[{key:"address_type",value:this.addressType[e.address_type].name,title:"Address Type",width:34},{key:"address",value:e.address,title:"Address",width:66}],[{key:"pk_script",value:e.pk_script,title:"PK Script",width:100,type:g.h.STRING}]]}}))},e.prototype.loadUTXOsTable=function(e){this.listUTXOs=new Tt.o(Object(kt.g)(e)),this.listUTXOs.filterPredicate=function(e,t){return((e.outpoint.txid_str?e.outpoint.txid_str:"")+(e.outpoint.output_index?e.outpoint.output_index:"")+(e.outpoint.txid_bytes?e.outpoint.txid_bytes:"")+(e.address?e.address:"")+(e.address_type?e.address_type:"")+(e.amount_sat?e.amount_sat:"")+(e.confirmations?e.confirmations:"")+(e.pk_script?e.pk_script:"")).includes(t.toLowerCase())},this.listUTXOs.sort=this.sort,this.listUTXOs.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.listUTXOs.paginator=this.paginator,this.logger.info(this.listUTXOs)},e.prototype.onDownloadCSV=function(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(h.a),i.Qb(C.h),i.Qb(v.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-on-chain-utxos"]],viewQuery:function(e,t){var n;1&e&&(i.Dc(Ht.a,!0),i.Dc(It.a,!0)),2&e&&(i.vc(n=i.fc())&&(t.sort=n.first),i.vc(n=i.fc())&&(t.paginator=n.first))},inputs:{utxos:"utxos",errorLoading:"errorLoading"},features:[i.Cb([{provide:It.b,useValue:Object(g.w)("UTXOs")}]),i.Bb],decls:31,vars:13,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start"],["perfectScrollbar","","fxFlex","100",1,"table-container"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","tx_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","output"],["matColumnDef","amount_sat"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_utxo"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Rb(2,"div",2),i.Wb(3,"mat-form-field",3),i.Wb(4,"input",4),i.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),i.Vb(),i.Vb(),i.Vb(),i.Wb(5,"div",5),i.Wb(6,"div",6),i.Fc(7,Ep,1,0,"mat-progress-bar",7),i.Wb(8,"table",8,9),i.Ub(10,10),i.Fc(11,Gp,2,0,"th",11),i.Fc(12,Np,2,1,"td",12),i.Tb(),i.Ub(13,13),i.Fc(14,zp,2,0,"th",11),i.Fc(15,Bp,2,1,"td",12),i.Tb(),i.Ub(16,14),i.Fc(17,qp,2,0,"th",15),i.Fc(18,Up,4,3,"td",12),i.Tb(),i.Ub(19,16),i.Fc(20,jp,2,0,"th",15),i.Fc(21,Qp,4,3,"td",12),i.Tb(),i.Ub(22,17),i.Fc(23,Xp,6,0,"th",18),i.Fc(24,$p,3,0,"td",19),i.Tb(),i.Ub(25,20),i.Fc(26,Zp,2,1,"td",21),i.Tb(),i.Fc(27,Yp,1,3,"tr",22),i.Fc(28,ed,1,0,"tr",23),i.Fc(29,td,1,0,"tr",24),i.Vb(),i.Rb(30,"mat-paginator",25),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(7),i.pc("ngIf",!0===t.errorLoading),i.Db(1),i.pc("dataSource",t.listUTXOs)("ngClass",i.tc(10,nd,"error"===t.errorLoading)),i.Db(19),i.pc("matFooterRowDef",i.sc(12,ad)),i.Db(1),i.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.pc("matRowDefColumns",t.displayedColumns),i.Db(1),i.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[x.c,x.b,x.a,A.c,le.b,M.b,a.n,Tt.n,Ht.a,a.l,V.a,Tt.c,Tt.i,Tt.b,Tt.e,Tt.g,Tt.k,Tt.m,It.a,r.a,Tt.h,Ht.b,Tt.a,Ot.a,Ot.c,Pt.n,D.a,Tt.d,Tt.f,Tt.j,Tt.l],pipes:[a.e],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}();function id(e,t){1&e&&i.Rb(0,"mat-progress-bar",27)}function rd(e,t){1&e&&(i.Wb(0,"th",28),i.Hc(1," Date/Time "),i.Vb())}function cd(e,t){if(1&e&&(i.Wb(0,"td",29),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(n.time_stamp_str)}}function ld(e,t){1&e&&(i.Wb(0,"th",30),i.Hc(1," Amount (Sats) "),i.Vb())}function sd(e,t){if(1&e&&(i.Wb(0,"span",33),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=i.ic().$implicit;i.Db(1),i.Ic(i.kc(2,1,n.amount))}}function bd(e,t){if(1&e&&(i.Wb(0,"span",34),i.Hc(1),i.jc(2,"number"),i.Vb()),2&e){var n=i.ic().$implicit;i.Db(1),i.Jc("(",i.kc(2,1,-1*n.amount),")")}}function ud(e,t){if(1&e&&(i.Wb(0,"td",29),i.Fc(1,sd,3,3,"span",31),i.Fc(2,bd,3,3,"span",32),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.pc("ngIf",n.amount>0||0===n.amount),i.Db(1),i.pc("ngIf",n.amount<0)}}function pd(e,t){1&e&&(i.Wb(0,"th",30),i.Hc(1," Fees (Sats) "),i.Vb())}function dd(e,t){if(1&e&&(i.Wb(0,"td",29),i.Wb(1,"span",33),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(i.kc(3,1,n.total_fees))}}function md(e,t){1&e&&(i.Wb(0,"th",30),i.Hc(1," Block Height "),i.Vb())}function fd(e,t){if(1&e&&(i.Wb(0,"td",29),i.Wb(1,"span",33),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(i.kc(3,1,n.block_height))}}function hd(e,t){1&e&&(i.Wb(0,"th",30),i.Hc(1," Confirmations "),i.Vb())}function gd(e,t){if(1&e&&(i.Wb(0,"td",29),i.Wb(1,"span",33),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Jc(" ",i.kc(3,1,null==n?null:n.num_confirmations)," ")}}function yd(e,t){if(1&e){var n=i.Xb();i.Wb(0,"th",35),i.Wb(1,"div",36),i.Wb(2,"mat-select",37),i.Rb(3,"mat-select-trigger"),i.Wb(4,"mat-option",38),i.ec("click",(function(){return i.yc(n),i.ic().onDownloadCSV()})),i.Hc(5,"Download CSV"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}}function Cd(e,t){if(1&e){var n=i.Xb();i.Wb(0,"td",39),i.Wb(1,"button",40),i.ec("click",(function(e){i.yc(n);var a=t.$implicit;return i.ic().onTransactionClick(a,e)})),i.Hc(2,"View Info"),i.Vb(),i.Vb()}}function vd(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"No transactions available."),i.Vb())}function xd(e,t){if(1&e&&(i.Wb(0,"td",41),i.Fc(1,vd,2,0,"p",42),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngIf",!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)}}var wd=function(e){return{"display-none":e}};function Fd(e,t){if(1&e&&i.Rb(0,"tr",43),2&e){var n=i.ic();i.pc("ngClass",i.tc(1,wd,(null==n.listTransactions?null:n.listTransactions.data)&&(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)>0))}}function Vd(e,t){1&e&&i.Rb(0,"tr",44)}function Wd(e,t){1&e&&i.Rb(0,"tr",45)}var Ld=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Dd=function(){return["no_transaction"]},Sd=function(){function e(e,t,n,a){this.logger=e,this.commonService=t,this.store=n,this.actions$=a,this.faHistory=m.q,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","actions"]):this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","num_confirmations","total_fees","actions"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","total_fees","block_height","num_confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["time_stamp","amount","total_fees","block_height","num_confirmations","actions"])}return e.prototype.ngOnChanges=function(){this.transactions&&this.transactions.length>0&&this.loadTransactionsTable(this.transactions)},e.prototype.applyFilter=function(e){this.listTransactions.filter=e},e.prototype.onTransactionClick=function(e,t){this.store.dispatch(new J.C({data:{type:g.b.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"block_hash",value:e.block_hash,title:"Block Hash",width:100}],[{key:"tx_hash",value:e.tx_hash,title:"Transaction Hash",width:100}],[{key:"time_stamp_str",value:e.time_stamp_str,title:"Date/Time",width:50,type:g.h.DATE_TIME},{key:"block_height",value:e.block_height,title:"Block Height",width:50,type:g.h.NUMBER}],[{key:"num_confirmations",value:e.num_confirmations,title:"Number of Confirmations",width:34,type:g.h.NUMBER},{key:"total_fees",value:e.total_fees,title:"Total Fees (Sats)",width:33,type:g.h.NUMBER},{key:"amount",value:e.amount,title:"Amount (Sats)",width:33,type:g.h.NUMBER}],[{key:"dest_addresses",value:e.dest_addresses,title:"Destination Addresses",width:100,type:g.h.ARRAY}]],scrollable:e.dest_addresses&&e.dest_addresses.length>5}}))},e.prototype.loadTransactionsTable=function(e){this.listTransactions=new Tt.o(Object(kt.g)(e)),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.listTransactions.paginator=this.paginator,this.logger.info(this.listTransactions)},e.prototype.onDownloadCSV=function(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(h.a),i.Qb(C.h),i.Qb(v.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-on-chain-transaction-history"]],viewQuery:function(e,t){var n;1&e&&(i.Dc(Ht.a,!0),i.Dc(It.a,!0)),2&e&&(i.vc(n=i.fc())&&(t.sort=n.first),i.vc(n=i.fc())&&(t.paginator=n.first))},inputs:{transactions:"transactions",errorLoading:"errorLoading"},features:[i.Cb([{provide:It.b,useValue:Object(g.w)("Transactions")}]),i.Bb],decls:34,vars:13,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start start"],["perfectScrollbar","","fxFlex","100",1,"table-container"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","time_stamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_fees"],["matColumnDef","block_height"],["matColumnDef","num_confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Rb(2,"div",2),i.Wb(3,"mat-form-field",3),i.Wb(4,"input",4),i.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),i.Vb(),i.Vb(),i.Vb(),i.Wb(5,"div",5),i.Wb(6,"div",6),i.Fc(7,id,1,0,"mat-progress-bar",7),i.Wb(8,"table",8,9),i.Ub(10,10),i.Fc(11,rd,2,0,"th",11),i.Fc(12,cd,2,1,"td",12),i.Tb(),i.Ub(13,13),i.Fc(14,ld,2,0,"th",14),i.Fc(15,ud,3,2,"td",12),i.Tb(),i.Ub(16,15),i.Fc(17,pd,2,0,"th",14),i.Fc(18,dd,4,3,"td",12),i.Tb(),i.Ub(19,16),i.Fc(20,md,2,0,"th",14),i.Fc(21,fd,4,3,"td",12),i.Tb(),i.Ub(22,17),i.Fc(23,hd,2,0,"th",14),i.Fc(24,gd,4,3,"td",12),i.Tb(),i.Ub(25,18),i.Fc(26,yd,6,0,"th",19),i.Fc(27,Cd,3,0,"td",20),i.Tb(),i.Ub(28,21),i.Fc(29,xd,2,1,"td",22),i.Tb(),i.Fc(30,Fd,1,3,"tr",23),i.Fc(31,Vd,1,0,"tr",24),i.Fc(32,Wd,1,0,"tr",25),i.Vb(),i.Rb(33,"mat-paginator",26),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(7),i.pc("ngIf",!0===t.errorLoading),i.Db(1),i.pc("dataSource",t.listTransactions)("ngClass",i.tc(10,Ld,"error"===t.errorLoading)),i.Db(22),i.pc("matFooterRowDef",i.sc(12,Dd)),i.Db(1),i.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.pc("matRowDefColumns",t.displayedColumns),i.Db(1),i.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[x.c,x.b,x.a,A.c,le.b,M.b,a.n,Tt.n,Ht.a,a.l,V.a,Tt.c,Tt.i,Tt.b,Tt.e,Tt.g,Tt.k,Tt.m,It.a,r.a,Tt.h,Ht.b,Tt.a,Ot.a,Ot.c,Pt.n,D.a,Tt.d,Tt.f,Tt.j,Tt.l],pipes:[a.e],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}();function _d(e,t){if(1&e&&(i.Wb(0,"span",4),i.Hc(1,"UTXOs"),i.Vb()),2&e){var n=i.ic();i.qc("matBadge",n.numUtxos)}}function Rd(e,t){if(1&e&&(i.Wb(0,"span",4),i.Hc(1,"Transactions"),i.Vb()),2&e){var n=i.ic();i.qc("matBadge",n.numTransactions)}}var kd=function(){function e(e,t){this.logger=e,this.store=t,this.transactions=[],this.utxos=[],this.numUtxos=0,this.numTransactions=0,this.flgLoading=[!0,!0],this.unSubs=[new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.dispatch(new y.O),this.store.dispatch(new y.P),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchUTXOs"===t.action&&(e.flgLoading[0]="error"),"FetchTransactions"===t.action&&(e.flgLoading[1]="error")})),t.utxos&&t.utxos.length>0&&(e.utxos=t.utxos,e.numUtxos=e.utxos.length),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.utxos),t.transactions&&t.transactions.length>0&&(e.transactions=t.transactions,e.numTransactions=e.transactions.length),"error"!==e.flgLoading[1]&&(e.flgLoading[1]=!t.transactions),e.logger.info(t)}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(C.h))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-utxo-tables"]],decls:8,vars:4,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],["mat-tab-label",""],["fxLayout","row","fxFlex","100",3,"utxos","errorLoading"],["fxLayout","row","fxFlex","100",3,"transactions","errorLoading"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"mat-tab-group"),i.Wb(2,"mat-tab"),i.Fc(3,_d,2,1,"ng-template",1),i.Rb(4,"rtl-on-chain-utxos",2),i.Vb(),i.Wb(5,"mat-tab"),i.Fc(6,Rd,2,1,"ng-template",1),i.Rb(7,"rtl-on-chain-transaction-history",3),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(4),i.pc("utxos",t.utxos)("errorLoading",t.flgLoading[0]),i.Db(3),i.pc("transactions",t.transactions)("errorLoading",t.flgLoading[1]))},directives:[x.c,x.a,x.b,Rt.c,Rt.a,Rt.d,od,Sd,Ol.a],styles:[""]}),e}(),Id=function(){function e(e){this.store=e,this.selNode={},this.faExchangeAlt=m.m,this.faChartPie=m.f,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.unSubs=[new b.a,new b.a,new b.a,new b.a]}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unSubs[1])).subscribe((function(t){e.selNode=t.nodeSettings,e.balances=[{title:"Total Balance",dataValue:t.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:t.blockchainBalance.confirmed_balance},{title:"Unconfirmed",dataValue:t.blockchainBalance.unconfirmed_balance}]}))},e.prototype.openSendFundsModal=function(e){this.store.dispatch(new J.C({data:{sweepAll:e,component:Ap}}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(C.h))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-on-chain"]],decls:30,vars:3,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["label","Receive"],["label","Send"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["label","Sweep All"],["mat-flat-button","","color","primary","type","button","tabindex","3",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Rb(1,"fa-icon",1),i.Wb(2,"span",2),i.Hc(3,"On-chain Balance"),i.Vb(),i.Vb(),i.Wb(4,"div",3),i.Wb(5,"mat-card"),i.Wb(6,"mat-card-content",4),i.Rb(7,"rtl-currency-unit-converter",5),i.Vb(),i.Vb(),i.Vb(),i.Wb(8,"div",0),i.Rb(9,"fa-icon",1),i.Wb(10,"span",2),i.Hc(11,"On-chain Transactions"),i.Vb(),i.Vb(),i.Wb(12,"div",6),i.Wb(13,"mat-card"),i.Wb(14,"mat-card-content",4),i.Wb(15,"mat-tab-group"),i.Wb(16,"mat-tab",7),i.Rb(17,"rtl-on-chain-receive"),i.Vb(),i.Wb(18,"mat-tab",8),i.Wb(19,"div",9),i.Wb(20,"div",10),i.Wb(21,"button",11),i.ec("click",(function(){return t.openSendFundsModal(!1)})),i.Hc(22,"Send Funds"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Wb(23,"mat-tab",12),i.Wb(24,"div",9),i.Wb(25,"div",10),i.Wb(26,"button",13),i.ec("click",(function(){return t.openSendFundsModal(!0)})),i.Hc(27,"Sweep All"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Wb(28,"div",14),i.Rb(29,"rtl-utxo-tables",15),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(1),i.pc("icon",t.faChartPie),i.Db(6),i.pc("values",t.balances),i.Db(2),i.pc("icon",t.faExchangeAlt))},directives:[x.c,x.b,w.a,W.a,W.b,ko.a,Rt.c,Rt.a,Mp,x.a,D.a,kd],styles:[""]}),e}(),Hd=function(e){return{"error-border":e}};function Td(e,t){if(1&e&&i.Rb(0,"rtl-node-info",24),2&e){var n=i.ic(3);i.pc("information",n.information)("showColorFieldSeparately",!0)("ngClass",i.tc(3,Hd,"error"===n.flgLoading[0]))}}function Ad(e,t){if(1&e&&i.Rb(0,"rtl-channel-status-info",25),2&e){var n=i.ic(3);i.pc("channelsStatus",n.channelsStatus)("ngClass",i.tc(2,Hd,"error"===n.flgLoading[3]||"error"===n.flgLoading[4]))}}function Od(e,t){if(1&e&&i.Rb(0,"rtl-fee-info",26),2&e){var n=i.ic(3);i.pc("fees",n.fees)("ngClass",i.tc(2,Hd,"error"===n.flgLoading[2]))}}function Pd(e,t){if(1&e&&(i.Wb(0,"mat-grid-tile",12),i.Wb(1,"div",13),i.Wb(2,"div",14),i.Wb(3,"div",15),i.Rb(4,"fa-icon",16),i.Wb(5,"span"),i.Hc(6),i.Vb(),i.Vb(),i.Vb(),i.Wb(7,"div",17),i.Wb(8,"mat-card",18),i.Wb(9,"mat-card-content",19),i.Wb(10,"div",20),i.Fc(11,Td,1,5,"rtl-node-info",21),i.Fc(12,Ad,1,4,"rtl-channel-status-info",22),i.Fc(13,Od,1,4,"rtl-fee-info",23),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.pc("colspan",n.cols)("rowspan",n.rows),i.Db(4),i.pc("icon",n.icon),i.Db(2),i.Ic(n.title),i.Db(4),i.pc("ngSwitch",n.id),i.Db(1),i.pc("ngSwitchCase","node"),i.Db(1),i.pc("ngSwitchCase","status"),i.Db(1),i.pc("ngSwitchCase","fee")}}function Md(e,t){if(1&e&&(i.Wb(0,"mat-grid-list",10),i.Fc(1,Pd,14,8,"mat-grid-tile",11),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngForOf",n.nodeCards)}}function Ed(e,t){1&e&&i.Sb(0)}function Gd(e,t){if(1&e&&(i.Wb(0,"div",30),i.Fc(1,Ed,1,0,"ng-container",31),i.Vb()),2&e){var n=i.ic(2),a=i.wc(9);i.pc("ngClass",i.tc(2,Hd,"error"===n.flgLoading[1])),i.Db(1),i.pc("ngTemplateOutlet",a)}}function Nd(e,t){1&e&&i.Sb(0)}function zd(e,t){if(1&e&&(i.Wb(0,"div",30),i.Fc(1,Nd,1,0,"ng-container",31),i.Vb()),2&e){var n=i.ic(2),a=i.wc(11);i.pc("ngClass",i.tc(2,Hd,"error"===n.flgLoading[1])),i.Db(1),i.pc("ngTemplateOutlet",a)}}function Bd(e,t){1&e&&i.Sb(0)}function qd(e,t){if(1&e&&(i.Wb(0,"div",30),i.Fc(1,Bd,1,0,"ng-container",31),i.Vb()),2&e){var n=i.ic(2),a=i.wc(13);i.pc("ngClass",i.tc(2,Hd,"error"===n.flgLoading[1])),i.Db(1),i.pc("ngTemplateOutlet",a)}}function Ud(e,t){if(1&e&&(i.Wb(0,"mat-grid-tile",27),i.Wb(1,"mat-card",28),i.Wb(2,"mat-card-content",19),i.Wb(3,"div",20),i.Fc(4,Gd,2,4,"div",29),i.Fc(5,zd,2,4,"div",29),i.Fc(6,qd,2,4,"div",29),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.pc("colspan",n.cols)("rowspan",n.rows),i.Db(3),i.pc("ngSwitch",n.id),i.Db(1),i.pc("ngSwitchCase","general"),i.Db(1),i.pc("ngSwitchCase","channels"),i.Db(1),i.pc("ngSwitchCase","degrees")}}function jd(e,t){if(1&e&&(i.Wb(0,"div",32),i.Wb(1,"div"),i.Wb(2,"h4",33),i.Hc(3,"Network Capacity"),i.Vb(),i.Wb(4,"div",34),i.Hc(5),i.jc(6,"number"),i.Vb(),i.Vb(),i.Wb(7,"div"),i.Wb(8,"h4",33),i.Hc(9,"Number of Nodes"),i.Vb(),i.Wb(10,"div",34),i.Hc(11),i.jc(12,"number"),i.Vb(),i.Vb(),i.Wb(13,"div"),i.Wb(14,"h4",33),i.Hc(15,"Number of Channels"),i.Vb(),i.Wb(16,"span",34),i.Hc(17),i.jc(18,"number"),i.Vb(),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(5),i.Jc("",i.kc(6,3,n.networkInfo.total_network_capacity)," Sats"),i.Db(6),i.Ic(i.kc(12,5,n.networkInfo.num_nodes)),i.Db(6),i.Ic(i.kc(18,7,n.networkInfo.num_channels))}}function Qd(e,t){if(1&e&&(i.Wb(0,"div",32),i.Wb(1,"div"),i.Wb(2,"h4",33),i.Hc(3,"Max Channel Size"),i.Vb(),i.Wb(4,"div",34),i.Hc(5),i.jc(6,"number"),i.Vb(),i.Vb(),i.Wb(7,"div"),i.Wb(8,"h4",33),i.Hc(9,"Avg Channel Size"),i.Vb(),i.Wb(10,"div",34),i.Hc(11),i.jc(12,"number"),i.Vb(),i.Vb(),i.Wb(13,"div"),i.Wb(14,"h4",33),i.Hc(15,"Min Channel Size"),i.Vb(),i.Wb(16,"span",34),i.Hc(17),i.jc(18,"number"),i.Vb(),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(5),i.Ic(i.kc(6,3,n.networkInfo.max_channel_size)),i.Db(6),i.Ic(i.kc(12,5,n.networkInfo.avg_channel_size)),i.Db(6),i.Ic(i.kc(18,7,n.networkInfo.min_channel_size))}}function Xd(e,t){if(1&e&&(i.Wb(0,"div",32),i.Wb(1,"div"),i.Wb(2,"h4",33),i.Hc(3,"Max Out Degree"),i.Vb(),i.Wb(4,"div",34),i.Hc(5),i.jc(6,"number"),i.Vb(),i.Vb(),i.Wb(7,"div"),i.Wb(8,"h4",33),i.Hc(9,"Avg Out Degree"),i.Vb(),i.Wb(10,"div",34),i.Hc(11),i.jc(12,"number"),i.Vb(),i.Vb(),i.Wb(13,"div",35),i.Rb(14,"h4",33),i.Rb(15,"span",34),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(5),i.Ic(i.kc(6,2,n.networkInfo.max_out_degree)),i.Db(6),i.Ic(i.lc(12,4,n.networkInfo.avg_out_degree,"1.0-2"))}}var $d=function(e){return{"mt-1":e}},Jd=function(){function e(e,t,n){this.logger=e,this.commonService=t,this.store=n,this.faProjectDiagram=m.A,this.faBolt=m.e,this.faServer=m.F,this.faNetworkWired=m.x,this.selNode={},this.information={},this.channelsStatus={},this.networkInfo={},this.networkCards=[],this.nodeCards=[],this.screenSize="",this.screenSizeEnum=g.o,this.userPersonaEnum=g.u,this.flgLoading=[!0,!0,!0,!0,!0,!0],this.unSubs=[new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS?(this.networkCards=[{id:"general",cols:3,rows:1},{id:"channels",cols:3,rows:1},{id:"degrees",cols:3,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1}]):(this.networkCards=[{id:"general",cols:1,rows:1},{id:"channels",cols:1,rows:1},{id:"degrees",cols:1,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:1,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:1,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:1,rows:1}])}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchInfo"===t.action&&(e.flgLoading[0]="error"),"FetchNetwork"===t.action&&(e.flgLoading[1]="error"),"FetchFees"===t.action&&(e.flgLoading[2]="error"),"FetchChannels/all"===t.action&&(e.flgLoading[3]="error"),"FetchChannels/pending"===t.action&&(e.flgLoading[4]="error")})),e.selNode=t.nodeSettings,e.information=t.information,"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!e.information.identity_pubkey),e.networkInfo=t.networkInfo,"error"!==e.flgLoading[1]&&(e.flgLoading[1]=!e.networkInfo.num_nodes),e.fees=t.fees,"error"!==e.flgLoading[2]&&(e.flgLoading[2]=!e.fees.day_fee_sum),e.channelsStatus={active:{channels:t.numberOfActiveChannels,capacity:t.totalCapacityActive},inactive:{channels:t.numberOfInactiveChannels,capacity:t.totalCapacityInactive},pending:{channels:t.numberOfPendingChannels.open.num_channels,capacity:t.numberOfPendingChannels.open.limbo_balance},closing:{channels:t.numberOfPendingChannels.closing.num_channels+t.numberOfPendingChannels.force_closing.num_channels+t.numberOfPendingChannels.waiting_close.num_channels,capacity:t.numberOfPendingChannels.total_limbo_balance}},t.totalLocalBalance>=0&&t.totalRemoteBalance>=0&&"error"!==e.flgLoading[3]&&(e.flgLoading[3]=!1),t.numberOfPendingChannels&&"error"!==e.flgLoading[4]&&(e.flgLoading[4]=!1),e.logger.info(t)}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(h.a),i.Qb(C.h))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-network-info"]],decls:14,vars:6,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","3","rowHeight","330px",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end",1,"padding-gap-x","page-title-container",3,"ngClass"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","3","rowHeight","250px"],["fxLayout","row",3,"colspan","rowspan",4,"ngFor","ngForOf"],["generalBlock",""],["channelsBlock",""],["degreesBlock",""],["cols","3","rowHeight","330px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x","page-title-container"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","p-24","w-96","h-93"],["fxFlex","100",1,"dashboard-card-content"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"fees","ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"information","showColorFieldSeparately","ngClass"],["fxFlex","100",3,"channelsStatus","ngClass"],["fxFlex","100",3,"fees","ngClass"],["fxLayout","row",3,"colspan","rowspan"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","p-24","h-93"],["fxFlex","100",3,"ngClass",4,"ngSwitchCase"],["fxFlex","100",3,"ngClass"],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Fc(1,Md,2,1,"mat-grid-list",1),i.Wb(2,"div",2),i.Rb(3,"fa-icon",3),i.Wb(4,"span",4),i.Hc(5,"Network"),i.Vb(),i.Vb(),i.Wb(6,"mat-grid-list",5),i.Fc(7,Ud,7,6,"mat-grid-tile",6),i.Vb(),i.Vb(),i.Fc(8,jd,19,9,"ng-template",null,7,i.Gc),i.Fc(10,Qd,19,9,"ng-template",null,8,i.Gc),i.Fc(12,Xd,16,7,"ng-template",null,9,i.Gc)),2&e&&(i.Db(1),i.pc("ngIf",t.selNode.userPersona!==t.userPersonaEnum.OPERATOR),i.Db(1),i.pc("ngClass",i.tc(4,$d,t.screenSize!==t.screenSizeEnum.XS)),i.Db(1),i.pc("icon",t.faProjectDiagram),i.Db(4),i.pc("ngForOf",t.networkCards))},directives:[x.c,x.b,a.n,a.l,V.a,w.a,F.a,a.m,F.c,x.a,W.a,W.b,a.p,a.q,H,q,B,a.s],pipes:[a.e],styles:[""]}),e}();function Zd(e,t){1&e&&i.Rb(0,"mat-progress-bar",34)}function Kd(e,t){1&e&&(i.Wb(0,"th",35),i.Hc(1," Initiation Time "),i.Vb())}function Yd(e,t){if(1&e&&(i.Wb(0,"td",36),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(n.initiation_time_str)}}function em(e,t){1&e&&(i.Wb(0,"th",35),i.Hc(1," Last Update Time "),i.Vb())}function tm(e,t){if(1&e&&(i.Wb(0,"td",36),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(n.last_update_time_str)}}function nm(e,t){1&e&&(i.Wb(0,"th",35),i.Hc(1," ID "),i.Vb())}function am(e,t){if(1&e&&(i.Wb(0,"td",36),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(n.id)}}function om(e,t){1&e&&(i.Wb(0,"th",35),i.Hc(1," ID (Bytes) "),i.Vb())}function im(e,t){if(1&e&&(i.Wb(0,"td",36),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(n.id_bytes)}}function rm(e,t){1&e&&(i.Wb(0,"th",35),i.Hc(1," State "),i.Vb())}function cm(e,t){if(1&e&&(i.Wb(0,"td",36),i.Hc(1),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.Db(1),i.Ic(a.swapStateEnum[n.state])}}function lm(e,t){1&e&&(i.Wb(0,"th",35),i.Hc(1," HTLC Address "),i.Vb())}function sm(e,t){if(1&e&&(i.Wb(0,"td",36),i.Hc(1),i.Vb()),2&e){var n=t.$implicit;i.Db(1),i.Ic(n.htlc_address)}}function bm(e,t){1&e&&(i.Wb(0,"th",37),i.Hc(1," Amount (Sats) "),i.Vb())}function um(e,t){if(1&e&&(i.Wb(0,"td",36),i.Wb(1,"span",38),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(i.kc(3,1,n.amt))}}function pm(e,t){1&e&&(i.Wb(0,"th",37),i.Hc(1," Cost Server (Sats) "),i.Vb())}function dm(e,t){if(1&e&&(i.Wb(0,"td",36),i.Wb(1,"span",38),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(i.kc(3,1,n.cost_server))}}function mm(e,t){1&e&&(i.Wb(0,"th",37),i.Hc(1," Cost Offchain (Sats) "),i.Vb())}function fm(e,t){if(1&e&&(i.Wb(0,"td",36),i.Wb(1,"span",38),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Ic(i.kc(3,1,n.cost_offchain))}}function hm(e,t){1&e&&(i.Wb(0,"th",37),i.Hc(1," Cost Onchain (Sats) "),i.Vb())}function gm(e,t){if(1&e&&(i.Wb(0,"td",36),i.Wb(1,"span",38),i.Hc(2),i.jc(3,"number"),i.Vb(),i.Vb()),2&e){var n=t.$implicit;i.Db(2),i.Jc(" ",i.kc(3,1,null==n?null:n.cost_onchain)," ")}}function ym(e,t){if(1&e){var n=i.Xb();i.Wb(0,"th",39),i.Wb(1,"div",40),i.Wb(2,"mat-select",41),i.Rb(3,"mat-select-trigger"),i.Wb(4,"mat-option",42),i.ec("click",(function(){return i.yc(n),i.ic().onDownloadCSV()})),i.Hc(5,"Download CSV"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}}function Cm(e,t){if(1&e){var n=i.Xb();i.Wb(0,"td",43),i.Wb(1,"button",44),i.ec("click",(function(e){i.yc(n);var a=t.$implicit;return i.ic().onSwapClick(a,e)})),i.Hc(2,"View Info"),i.Vb(),i.Vb()}}function vm(e,t){if(1&e&&(i.Wb(0,"p"),i.Hc(1),i.Vb()),2&e){var n=i.ic(2);i.Db(1),i.Ic(n.emptyTableMessage)}}function xm(e,t){if(1&e&&(i.Wb(0,"td",45),i.Fc(1,vm,2,1,"p",46),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngIf",!(null!=n.listSwaps&&n.listSwaps.data)||(null==n.listSwaps||null==n.listSwaps.data?null:n.listSwaps.data.length)<1)}}var wm=function(e){return{"display-none":e}};function Fm(e,t){if(1&e&&i.Rb(0,"tr",47),2&e){var n=i.ic();i.pc("ngClass",i.tc(1,wm,(null==n.listSwaps?null:n.listSwaps.data)&&(null==n.listSwaps||null==n.listSwaps.data?null:n.listSwaps.data.length)>0))}}function Vm(e,t){1&e&&i.Rb(0,"tr",48)}function Wm(e,t){1&e&&i.Rb(0,"tr",49)}var Lm=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Dm=function(){return["no_swap"]},Sm=function(){function e(e,t,n,a,o){this.logger=e,this.commonService=t,this.store=n,this.actions$=a,this.loopService=o,this.selectedSwapType=g.q.LOOP_OUT,this.swapStateEnum=g.p,this.faHistory=m.q,this.swapCaption="Loop Out",this.displayedColumns=[],this.storedSwaps=[],this.filteredSwaps=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.flgSticky=!1,this.pageSize=g.m,this.pageSizeOptions=g.n,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize(),this.screenSize===g.o.XS||this.screenSize===g.o.SM?(this.flgSticky=!1,this.displayedColumns=["state","amt","actions"]):this.screenSize===g.o.MD?(this.flgSticky=!1,this.displayedColumns=["state","initiation_time","amt","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain","actions"])}return e.prototype.ngOnInit=function(){var e=this;this.store.dispatch(new y.J),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[1])).subscribe((function(t){t.effectErrors.forEach((function(t){"FetchSwaps"===t.action&&(e.flgLoading[0]="error",e.emptyTableMessage="ERROR: "+t.message)})),t.loopSwaps&&(e.storedSwaps=t.loopSwaps,e.filteredSwaps=e.storedSwaps.filter((function(t){return t.type===e.selectedSwapType})),e.loadSwapsTable(e.filteredSwaps)),"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!t.loopSwaps),e.logger.info(t)}))},e.prototype.ngOnChanges=function(){var e=this;this.swapCaption=this.selectedSwapType===g.q.LOOP_IN?"Loop In":"Loop Out",this.emptyTableMessage="No "+this.swapCaption.toLowerCase()+" swaps available.",this.filteredSwaps=this.storedSwaps.filter((function(t){return t.type===e.selectedSwapType})),this.loadSwapsTable(this.filteredSwaps)},e.prototype.applyFilter=function(e){this.listSwaps.filter=e},e.prototype.onSwapClick=function(e,t){var n=this;this.loopService.getSwap(e.id_bytes.replace(/\//g,"_").replace(/\+/g,"-")).pipe(Object(u.a)(this.unSubs[2])).subscribe((function(e){n.store.dispatch(new J.C({data:{type:g.b.INFORMATION,alertTitle:n.swapCaption+" Status",message:[[{key:"state",value:g.p[e.state],title:"Status",width:50,type:g.h.STRING},{key:"amt",value:e.amt,title:"Amount (Sats)",width:50,type:g.h.NUMBER}],[{key:"initiation_time_str",value:e.initiation_time_str,title:"Initiation Time",width:50,type:g.h.DATE_TIME},{key:"last_update_time_str",value:e.last_update_time_str,title:"Last Update Time",width:50,type:g.h.DATE_TIME}],[{key:"cost_server",value:e.cost_server,title:"Server Cost (Sats)",width:33,type:g.h.NUMBER},{key:"cost_offchain",value:e.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:g.h.NUMBER},{key:"cost_onchain",value:e.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:g.h.NUMBER}],[{key:"id_bytes",value:e.id_bytes,title:"ID",width:100,type:g.h.STRING}],[{key:"htlc_address",value:e.htlc_address,title:"HTLC Address",width:100,type:g.h.STRING}]],openedBy:"SWAP"}}))}))},e.prototype.loadSwapsTable=function(e){this.listSwaps=new Tt.o(Object(kt.g)(e)),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},this.listSwaps.paginator=this.paginator,this.logger.info(this.listSwaps)},e.prototype.onDownloadCSV=function(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===g.q.LOOP_IN?"Loop in":"Loop out")},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(h.a),i.Qb(C.h),i.Qb(v.a),i.Qb($.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-swaps"]],viewQuery:function(e,t){var n;1&e&&(i.Dc(Ht.a,!0),i.Dc(It.a,!0)),2&e&&(i.vc(n=i.fc())&&(t.sort=n.first),i.vc(n=i.fc())&&(t.paginator=n.first))},inputs:{selectedSwapType:"selectedSwapType"},features:[i.Cb([{provide:It.b,useValue:Object(g.w)("Swaps")}]),i.Bb],decls:52,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["perfectScrollbar","","fxFlex","100",1,"table-container"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","initiation_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","last_update_time"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","state"],["matColumnDef","htlc_address"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Wb(2,"div",2),i.Rb(3,"fa-icon",3),i.Wb(4,"span",4),i.Hc(5),i.Vb(),i.Vb(),i.Wb(6,"mat-form-field",5),i.Wb(7,"input",6),i.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),i.Vb(),i.Vb(),i.Vb(),i.Wb(8,"div",7),i.Wb(9,"div",8),i.Fc(10,Zd,1,0,"mat-progress-bar",9),i.Wb(11,"table",10,11),i.Ub(13,12),i.Fc(14,Kd,2,0,"th",13),i.Fc(15,Yd,2,1,"td",14),i.Tb(),i.Ub(16,15),i.Fc(17,em,2,0,"th",13),i.Fc(18,tm,2,1,"td",14),i.Tb(),i.Ub(19,16),i.Fc(20,nm,2,0,"th",13),i.Fc(21,am,2,1,"td",14),i.Tb(),i.Ub(22,17),i.Fc(23,om,2,0,"th",13),i.Fc(24,im,2,1,"td",14),i.Tb(),i.Ub(25,18),i.Fc(26,rm,2,0,"th",13),i.Fc(27,cm,2,1,"td",14),i.Tb(),i.Ub(28,19),i.Fc(29,lm,2,0,"th",13),i.Fc(30,sm,2,1,"td",14),i.Tb(),i.Ub(31,20),i.Fc(32,bm,2,0,"th",21),i.Fc(33,um,4,3,"td",14),i.Tb(),i.Ub(34,22),i.Fc(35,pm,2,0,"th",21),i.Fc(36,dm,4,3,"td",14),i.Tb(),i.Ub(37,23),i.Fc(38,mm,2,0,"th",21),i.Fc(39,fm,4,3,"td",14),i.Tb(),i.Ub(40,24),i.Fc(41,hm,2,0,"th",21),i.Fc(42,gm,4,3,"td",14),i.Tb(),i.Ub(43,25),i.Fc(44,ym,6,0,"th",26),i.Fc(45,Cm,3,0,"td",27),i.Tb(),i.Ub(46,28),i.Fc(47,xm,2,1,"td",29),i.Tb(),i.Fc(48,Fm,1,3,"tr",30),i.Fc(49,Vm,1,0,"tr",31),i.Fc(50,Wm,1,0,"tr",32),i.Vb(),i.Rb(51,"mat-paginator",33),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(3),i.pc("icon",t.faHistory),i.Db(2),i.Jc("",t.swapCaption," History"),i.Db(5),i.pc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.pc("dataSource",t.listSwaps)("ngClass",i.tc(12,Lm,"error"===t.flgLoading[0])),i.Db(37),i.pc("matFooterRowDef",i.sc(14,Dm)),i.Db(1),i.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.pc("matRowDefColumns",t.displayedColumns),i.Db(1),i.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[x.c,x.a,x.b,w.a,A.c,le.b,M.b,a.n,Tt.n,Ht.a,a.l,V.a,Tt.c,Tt.i,Tt.b,Tt.e,Tt.g,Tt.k,Tt.m,It.a,r.a,Tt.h,Ht.b,Tt.a,Ot.a,Ot.c,Pt.n,D.a,Tt.d,Tt.f,Tt.j,Tt.l],pipes:[a.e],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),e}(),_m=function(){function e(e,t){this.loopService=e,this.store=t,this.faInfinity=m.r,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.swapTypeEnum=g.q,this.selectedSwapType=g.q.LOOP_OUT,this.unSubs=[new b.a,new b.a]}return e.prototype.ngOnInit=function(){},e.prototype.onSelectedIndexChange=function(e){this.selectedSwapType=1===e?g.q.LOOP_IN:g.q.LOOP_OUT},e.prototype.onLoop=function(e){var t=this;this.store.dispatch(new J.F("Getting Terms and Quotes...")),e===g.q.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe(Object(u.a)(this.unSubs[0])).subscribe((function(n){t.store.dispatch(new J.i),t.store.dispatch(new J.C({data:{minQuote:n[0],maxQuote:n[1],direction:e,component:Ct}}))})):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe(Object(u.a)(this.unSubs[1])).subscribe((function(n){t.store.dispatch(new J.i),t.store.dispatch(new J.C({data:{minQuote:n[0],maxQuote:n[1],direction:e,component:Ct}}))}))},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb($.a),i.Qb(C.h))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-loop"]],decls:15,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"selectedIndexChange"],["label","Loop Out"],["mat-flat-button","","color","primary","type","button","tabindex","1",1,"mt-1",3,"click"],["label","Loop In"],["mat-flat-button","","color","primary","type","button","tabindex","2",1,"mt-1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Rb(1,"fa-icon",1),i.Wb(2,"span",2),i.Hc(3,"Loop"),i.Vb(),i.Vb(),i.Wb(4,"div",3),i.Wb(5,"mat-card"),i.Wb(6,"mat-card-content",4),i.Wb(7,"mat-tab-group",5),i.ec("selectedIndexChange",(function(e){return t.onSelectedIndexChange(e)})),i.Wb(8,"mat-tab",6),i.Wb(9,"button",7),i.ec("click",(function(){return t.onLoop(t.swapTypeEnum.LOOP_OUT)})),i.Hc(10,"Start Loop Out"),i.Vb(),i.Vb(),i.Wb(11,"mat-tab",8),i.Wb(12,"button",9),i.ec("click",(function(){return t.onLoop(t.swapTypeEnum.LOOP_IN)})),i.Hc(13,"Start Loop In"),i.Vb(),i.Vb(),i.Vb(),i.Rb(14,"rtl-swaps",10),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(1),i.pc("icon",t.faInfinity),i.Db(13),i.pc("selectedSwapType",t.selectedSwapType))},directives:[x.c,x.b,w.a,W.a,W.b,Rt.c,x.a,Rt.a,D.a,Sm],styles:[".loop-monitor-logs[_ngcontent-%COMP%]{min-height:4rem}"]}),e}();function Rm(e,t){1&e&&i.Rb(0,"mat-progress-bar",31)}function km(e,t){1&e&&(i.Wb(0,"th",32),i.Hc(1," Channel Point "),i.Vb())}var Im=function(e){return{"max-width":e}};function Hm(e,t){if(1&e&&(i.Wb(0,"td",33),i.Hc(1),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.pc("ngStyle",i.tc(2,Im,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),i.Db(1),i.Ic(null==n?null:n.channel_point)}}function Tm(e,t){1&e&&(i.Wb(0,"th",34),i.Wb(1,"span",35),i.Hc(2,"Actions"),i.Vb(),i.Vb())}function Am(e,t){if(1&e){var n=i.Xb();i.Wb(0,"td",36),i.Wb(1,"div",37),i.Wb(2,"mat-select",38),i.Rb(3,"mat-select-trigger"),i.Wb(4,"mat-option",39),i.ec("click",(function(e){i.yc(n);var a=t.$implicit;return i.ic().onChannelClick(a,e)})),i.Hc(5,"View Info"),i.Vb(),i.Wb(6,"mat-option",39),i.ec("click",(function(){i.yc(n);var e=t.$implicit;return i.ic().onBackupChannels(e)})),i.Hc(7,"Backup"),i.Vb(),i.Wb(8,"mat-option",39),i.ec("click",(function(){i.yc(n);var e=t.$implicit;return i.ic().onDownloadBackup(e)})),i.Hc(9,"Download Backup"),i.Vb(),i.Wb(10,"mat-option",39),i.ec("click",(function(){i.yc(n);var e=t.$implicit;return i.ic().onVerifyChannels(e)})),i.Hc(11,"Verify"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}}function Om(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"No channels available."),i.Vb())}function Pm(e,t){if(1&e&&(i.Wb(0,"td",40),i.Fc(1,Om,2,0,"p",41),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngIf",!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)}}var Mm=function(e){return{"display-none":e}};function Em(e,t){if(1&e&&i.Rb(0,"tr",42),2&e){var n=i.ic();i.pc("ngClass",i.tc(1,Mm,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function Gm(e,t){1&e&&i.Rb(0,"tr",43)}function Nm(e,t){1&e&&i.Rb(0,"tr",44)}var zm=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},Bm=function(){return["no_channel"]},qm=function(){function e(e,t,n,a,o){this.logger=e,this.store=t,this.actions$=n,this.commonService=a,this.rtlEffects=o,this.faInfoCircle=m.s,this.faExclamationTriangle=m.n,this.faArchive=m.c,this.pageSize=g.m,this.pageSizeOptions=g.n,this.selNode={},this.displayedColumns=["channel_point","actions"],this.flgLoading=[!0],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize()}return e.prototype.ngOnInit=function(){var e=this;this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.selNode=t.nodeSettings,t.effectErrors.forEach((function(t){"Fetchchannels"===t.action&&(e.flgLoading[0]="error")})),e.channels=new Tt.o([]),e.channels.data=[],t.allChannels&&(e.channels=new Tt.o(Object(kt.g)(t.allChannels)),e.channels.data=t.allChannels),e.channels.sort=e.sort,e.channels.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},e.channels.paginator=e.paginator,e.channels.filterPredicate=function(e,t){return((e.active?"active":"inactive")+(e.channel_point?e.channel_point:"")+(e.chan_id?e.chan_id:"")+(e.remote_pubkey?e.remote_pubkey:"")+(e.remote_alias?e.remote_alias:"")+(e.capacity?e.capacity:"")+(e.local_balance?e.local_balance:"")+(e.remote_balance?e.remote_balance:"")+(e.total_satoshis_sent?e.total_satoshis_sent:"")+(e.total_satoshis_received?e.total_satoshis_received:"")+(e.commit_fee?e.commit_fee:"")+(e.private?"private":"public")).includes(t)},"error"!==e.flgLoading[0]&&(e.flgLoading[0]=!1),e.logger.info(t)})),this.actions$.pipe(Object(u.a)(this.unSubs[1]),Object(p.a)((function(e){return e.type===y.vb||e.type===J.Q}))).subscribe((function(t){t.type===y.vb&&(e.selectedChannel=void 0),t.type===J.Q&&(e.commonService.downloadFile(t.payload,"Backup-Channel-"+(e.selectedChannel.channel_point?e.selectedChannel.channel_point:"All"),".bak",".bak"),e.selectedChannel=void 0,e.store.dispatch(new J.i))}))},e.prototype.onBackupChannels=function(e){this.store.dispatch(new J.F("Backup Channels...")),this.store.dispatch(new y.d({channelPoint:e.channel_point?e.channel_point:"ALL",showMessage:""}))},e.prototype.onVerifyChannels=function(e){this.store.dispatch(new J.F("Verify Channels...")),this.store.dispatch(new y.kc({channelPoint:e.channel_point?e.channel_point:"ALL"}))},e.prototype.onDownloadBackup=function(e){this.selectedChannel=e,this.store.dispatch(new J.F("Downloading Backup File...")),this.store.dispatch(new J.p({channelPoint:e.channel_point?e.channel_point:"ALL"}))},e.prototype.onChannelClick=function(e,t){this.store.dispatch(new J.C({data:{channel:e,showCopy:!1,component:No}}))},e.prototype.applyFilter=function(e){this.channels.filter=e},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(C.h),i.Qb(v.a),i.Qb(h.a),i.Qb(Pn.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-channel-backup-table"]],viewQuery:function(e,t){var n;1&e&&(i.Dc(Ht.a,!0),i.Dc(It.a,!0)),2&e&&(i.vc(n=i.fc())&&(t.sort=n.first),i.vc(n=i.fc())&&(t.paginator=n.first))},features:[i.Cb([{provide:It.b,useValue:Object(g.w)("Channels")}])],decls:42,vars:17,consts:[["fxLayout","column"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell","","fxLayoutAlign","end center"],["fxFlex","30",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Wb(2,"div",2),i.Rb(3,"fa-icon",3),i.Wb(4,"span"),i.Hc(5,"Save your backup files in a redundant location."),i.Vb(),i.Vb(),i.Wb(6,"div",4),i.Rb(7,"fa-icon",3),i.Wb(8,"span"),i.Wb(9,"strong"),i.Hc(10,"Backup Folder Location: "),i.Vb(),i.Hc(11),i.Vb(),i.Vb(),i.Wb(12,"div",5),i.Wb(13,"button",6),i.ec("click",(function(){return t.onVerifyChannels({})})),i.Hc(14,"Verify All"),i.Vb(),i.Wb(15,"button",7),i.ec("click",(function(){return t.onBackupChannels({})})),i.Hc(16,"Backup All"),i.Vb(),i.Wb(17,"button",8),i.ec("click",(function(){return t.onDownloadBackup({})})),i.Hc(18,"Download Backup"),i.Vb(),i.Vb(),i.Vb(),i.Wb(19,"div",9),i.Wb(20,"div",10),i.Rb(21,"fa-icon",11),i.Wb(22,"span",12),i.Hc(23,"Backups"),i.Vb(),i.Vb(),i.Wb(24,"mat-form-field",13),i.Wb(25,"input",14),i.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),i.Vb(),i.Vb(),i.Vb(),i.Wb(26,"div",15),i.Fc(27,Rm,1,0,"mat-progress-bar",16),i.Wb(28,"table",17,18),i.Ub(30,19),i.Fc(31,km,2,0,"th",20),i.Fc(32,Hm,2,4,"td",21),i.Tb(),i.Ub(33,22),i.Fc(34,Tm,3,0,"th",23),i.Fc(35,Am,12,0,"td",24),i.Tb(),i.Ub(36,25),i.Fc(37,Pm,2,1,"td",26),i.Tb(),i.Fc(38,Em,1,3,"tr",27),i.Fc(39,Gm,1,0,"tr",28),i.Fc(40,Nm,1,0,"tr",29),i.Vb(),i.Vb(),i.Rb(41,"mat-paginator",30),i.Vb()),2&e&&(i.Db(3),i.pc("icon",t.faExclamationTriangle),i.Db(4),i.pc("icon",t.faInfoCircle),i.Db(4),i.Jc("",t.selNode.channelBackupPath,"."),i.Db(10),i.pc("icon",t.faArchive),i.Db(6),i.pc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.pc("dataSource",t.channels)("ngClass",i.tc(14,zm,"error"===t.flgLoading[0])),i.Db(10),i.pc("matFooterRowDef",i.sc(16,Bm)),i.Db(1),i.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.pc("matRowDefColumns",t.displayedColumns),i.Db(1),i.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[x.c,x.b,x.a,w.a,D.a,A.c,le.b,M.b,a.n,Tt.n,Ht.a,a.l,V.a,Tt.c,Tt.i,Tt.b,Tt.e,Tt.g,Tt.k,Tt.m,It.a,r.a,Tt.h,Ht.b,Tt.a,a.o,V.b,Ot.a,Ot.c,Pt.n,Tt.d,Tt.f,Tt.j,Tt.l],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e}();function Um(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",23),i.Wb(1,"h4",24),i.Hc(2),i.Vb(),i.Wb(3,"div",25),i.Wb(4,"button",26),i.ec("click",(function(){return i.yc(n),i.ic().onRestoreChannels({})})),i.Hc(5,"Restore All"),i.Vb(),i.Vb(),i.Vb()}if(2&e){var a=i.ic();i.Db(2),i.Jc("Restore folder location: ",a.selNode.channelBackupPath,"/restore")}}function jm(e,t){if(1&e&&(i.Wb(0,"div",27),i.Wb(1,"h4",24),i.Hc(2),i.Vb(),i.Wb(3,"h4",28),i.Hc(4,"All channel backup file not found! To perform channel restoration, channel backup file/s must be placed at the above location."),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(2),i.Jc("Restore folder location: ",n.selNode.channelBackupPath,"/restore")}}function Qm(e,t){if(1&e&&(i.Wb(0,"div",27),i.Wb(1,"h4",24),i.Hc(2),i.Vb(),i.Vb()),2&e){var n=i.ic();i.Db(2),i.Jc("Restore folder location: ",n.selNode.channelBackupPath,"/restore")}}function Xm(e,t){1&e&&i.Rb(0,"mat-progress-bar",29)}function $m(e,t){1&e&&(i.Wb(0,"th",30),i.Hc(1," Channel Point "),i.Vb())}var Jm=function(e){return{"max-width":e}};function Zm(e,t){if(1&e&&(i.Wb(0,"td",31),i.Hc(1),i.Vb()),2&e){var n=t.$implicit,a=i.ic();i.pc("ngStyle",i.tc(2,Jm,a.screenSize===a.screenSizeEnum.XS?"10rem":"45rem")),i.Db(1),i.Ic(null==n?null:n.channel_point)}}function Km(e,t){1&e&&(i.Wb(0,"th",32),i.Wb(1,"span",33),i.Hc(2,"Actions"),i.Vb(),i.Vb())}function Ym(e,t){if(1&e){var n=i.Xb();i.Wb(0,"td",34),i.Wb(1,"span",33),i.Wb(2,"button",35),i.ec("click",(function(){i.yc(n);var e=t.$implicit;return i.ic().onRestoreChannels(e)})),i.Hc(3,"Restore"),i.Vb(),i.Vb(),i.Vb()}}function ef(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"No singular channel backups available."),i.Vb())}function tf(e,t){if(1&e&&(i.Wb(0,"td",36),i.Fc(1,ef,2,0,"p",37),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("ngIf",!n.channels||!n.channels.data||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)}}var nf=function(e){return{"display-none":e}};function af(e,t){if(1&e&&i.Rb(0,"tr",38),2&e){var n=i.ic();i.pc("ngClass",i.tc(1,nf,n.channels&&n.channels.data&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function of(e,t){1&e&&i.Rb(0,"tr",39)}function rf(e,t){1&e&&i.Rb(0,"tr",40)}var cf=function(e){return{"overflow-auto error-border":e,"overflow-auto":!0}},lf=function(){return["no_channel"]},sf=function(){function e(e,t,n,a){this.logger=e,this.store=t,this.lndEffects=n,this.commonService=a,this.pageSize=g.m,this.pageSizeOptions=g.n,this.selNode={},this.displayedColumns=["channel_point","actions"],this.allRestoreExists=!1,this.flgLoading=[!0],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=g.o,this.unSubs=[new b.a,new b.a,new b.a,new b.a],this.screenSize=this.commonService.getScreenSize()}return e.prototype.ngOnInit=function(){var e=this;this.store.dispatch(new y.pb),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.selNode=t.nodeSettings,e.logger.info(t)})),this.lndEffects.setRestoreChannelList.pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.allRestoreExists=t.all_restore_exists,e.channels=new Tt.o(Object(kt.g)(t.files)),e.channels.data=t.files,e.channels.sort=e.sort,e.channels.sortingDataAccessor=function(e,t){return e[t]&&isNaN(e[t])?e[t].toLocaleLowerCase():+e[t]},e.channels.paginator=e.paginator,("error"!==e.flgLoading[0]||t&&t.files)&&(e.flgLoading[0]=!1),e.logger.info(t)}))},e.prototype.onRestoreChannels=function(e){this.store.dispatch(new J.F("Restoring Channels...")),this.store.dispatch(new y.ob({channelPoint:e.channel_point?e.channel_point:"ALL"}))},e.prototype.applyFilter=function(e){this.channels.filter=e},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(f.b),i.Qb(C.h),i.Qb(On.a),i.Qb(h.a))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-channel-restore-table"]],viewQuery:function(e,t){var n;1&e&&(i.Dc(Ht.a,!0),i.Dc(It.a,!0)),2&e&&(i.vc(n=i.fc())&&(t.sort=n.first),i.vc(n=i.fc())&&(t.paginator=n.first))},features:[i.Cb([{provide:It.b,useValue:Object(g.w)("Channels")}])],decls:24,vars:16,consts:[["fxLayout","column",1,"mt-2"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"padding-gap-x","page-sub-title-container","mt-2"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"keyup"],["perfectScrollbar","","fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-4",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100"],["fxLayout","row",1,"mt-2"],["mat-flat-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap"],["fxFlex","100",1,"mt-1"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell",""],["mat-stroked-button","","color","primary","type","button","tabindex","1",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Fc(1,Um,6,1,"div",1),i.Fc(2,jm,5,1,"div",2),i.Fc(3,Qm,3,1,"div",2),i.Wb(4,"div",3),i.Rb(5,"div",4),i.Wb(6,"mat-form-field",5),i.Wb(7,"input",6),i.ec("keyup",(function(e){return t.applyFilter(e.target.value)})),i.Vb(),i.Vb(),i.Vb(),i.Wb(8,"div",7),i.Fc(9,Xm,1,0,"mat-progress-bar",8),i.Wb(10,"table",9,10),i.Ub(12,11),i.Fc(13,$m,2,0,"th",12),i.Fc(14,Zm,2,4,"td",13),i.Tb(),i.Ub(15,14),i.Fc(16,Km,3,0,"th",15),i.Fc(17,Ym,4,0,"td",16),i.Tb(),i.Ub(18,17),i.Fc(19,tf,2,1,"td",18),i.Tb(),i.Fc(20,af,1,3,"tr",19),i.Fc(21,of,1,0,"tr",20),i.Fc(22,rf,1,0,"tr",21),i.Vb(),i.Vb(),i.Rb(23,"mat-paginator",22),i.Vb()),2&e&&(i.Db(1),i.pc("ngIf",t.allRestoreExists),i.Db(1),i.pc("ngIf",!t.allRestoreExists&&(!t.channels||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<=0)),i.Db(1),i.pc("ngIf",!t.allRestoreExists&&t.channels&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0),i.Db(6),i.pc("ngIf",!0===t.flgLoading[0]),i.Db(1),i.pc("dataSource",t.channels)("ngClass",i.tc(13,cf,"error"===t.flgLoading[0])),i.Db(10),i.pc("matFooterRowDef",i.sc(15,lf)),i.Db(1),i.pc("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),i.Db(1),i.pc("matRowDefColumns",t.displayedColumns),i.Db(1),i.pc("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS))},directives:[x.c,a.n,x.b,x.a,A.c,le.b,M.b,Tt.n,Ht.a,a.l,V.a,Tt.c,Tt.i,Tt.b,Tt.e,Tt.g,Tt.k,Tt.m,It.a,D.a,r.a,Tt.h,Ht.b,Tt.a,a.o,V.b,Tt.d,Tt.f,Tt.j,Tt.l],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e}(),bf=function(){function e(){this.faDownload=m.j}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-backup"]],decls:12,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["label","Backup"],["label","Restore"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Rb(1,"fa-icon",1),i.Wb(2,"span",2),i.Hc(3,"Channels Backup"),i.Vb(),i.Vb(),i.Wb(4,"div",3),i.Wb(5,"mat-card"),i.Wb(6,"mat-card-content",4),i.Wb(7,"mat-tab-group"),i.Wb(8,"mat-tab",5),i.Rb(9,"rtl-channel-backup-table"),i.Vb(),i.Wb(10,"mat-tab",6),i.Rb(11,"rtl-channel-restore-table"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(1),i.pc("icon",t.faDownload))},directives:[x.c,x.b,w.a,W.a,W.b,Rt.c,Rt.a,qm,sf],styles:[""]}),e}();function uf(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Message is required."),i.Vb())}var pf=function(){function e(e,t,n){this.dataService=e,this.snackBar=t,this.logger=n,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new b.a,new b.a]}return e.prototype.ngOnInit=function(){},e.prototype.onSign=function(){var e=this;if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.signedMessage=e.message,e.signature=t.signature}))},e.prototype.onMessageChange=function(){this.signedMessage!==this.message&&(this.signature="")},e.prototype.onCopyField=function(e){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+e)},e.prototype.resetData=function(){this.message="",this.signature="",this.signedMessage=""},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(Fn.a),i.Qb(Io.b),i.Qb(f.b))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"form",1,2),i.Wb(3,"mat-form-field",3),i.Wb(4,"textarea",4),i.ec("ngModelChange",(function(e){return t.message=e}))("keyup",(function(){return t.onMessageChange()})),i.Vb(),i.Fc(5,uf,2,0,"mat-error",5),i.Vb(),i.Wb(6,"div",6),i.Wb(7,"button",7),i.ec("click",(function(){return t.resetData()})),i.Hc(8,"Clear Field"),i.Vb(),i.Wb(9,"button",8),i.ec("click",(function(){return t.onSign()})),i.Hc(10,"Sign"),i.Vb(),i.Vb(),i.Rb(11,"mat-divider",9),i.Wb(12,"div",10),i.Wb(13,"p"),i.Hc(14,"Generated Signature"),i.Vb(),i.Vb(),i.Wb(15,"div",11),i.Hc(16),i.Vb(),i.Wb(17,"div",12),i.Wb(18,"button",13),i.ec("copied",(function(e){return t.onCopyField(e)})),i.Hc(19,"Copy Signature"),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(4),i.pc("ngModel",t.message),i.Db(1),i.pc("ngIf",!t.message),i.Db(6),i.pc("inset",!0),i.Db(5),i.Ic(t.signature),i.Db(2),i.pc("payload",t.signature))},directives:[x.c,x.a,x.b,U.t,U.m,U.n,A.c,le.b,U.b,se.a,U.r,U.l,U.o,a.n,D.a,P.a,Ho.a,A.b],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e}();function df(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Message is required."),i.Vb())}function mf(e,t){1&e&&(i.Wb(0,"mat-error"),i.Hc(1,"Signature is required."),i.Vb())}function ff(e,t){1&e&&(i.Wb(0,"p",13),i.Wb(1,"mat-icon",14),i.Hc(2,"close"),i.Vb(),i.Hc(3,"Verification failed, please double check message and signature"),i.Vb())}function hf(e,t){1&e&&(i.Wb(0,"p"),i.Hc(1,"Pubkey Used"),i.Vb())}function gf(e,t){if(1&e&&(i.Wb(0,"div",20),i.Wb(1,"p"),i.Hc(2),i.Vb(),i.Vb()),2&e){var n=i.ic(2);i.Db(2),i.Ic(null==n.verifyRes?null:n.verifyRes.pubkey)}}function yf(e,t){if(1&e){var n=i.Xb();i.Wb(0,"div",21),i.Wb(1,"button",22),i.ec("copied",(function(e){return i.yc(n),i.ic(2).onCopyField(e)})),i.Hc(2,"Copy Pubkey"),i.Vb(),i.Vb()}if(2&e){var a=i.ic(2);i.Db(1),i.pc("payload",null==a.verifyRes?null:a.verifyRes.pubkey)}}function Cf(e,t){if(1&e&&(i.Wb(0,"div",15),i.Rb(1,"mat-divider",16),i.Wb(2,"div",17),i.Fc(3,hf,2,0,"p",5),i.Vb(),i.Fc(4,gf,3,1,"div",18),i.Fc(5,yf,3,1,"div",19),i.Vb()),2&e){var n=i.ic();i.Db(1),i.pc("inset",!0),i.Db(2),i.pc("ngIf",n.verifyRes.valid),i.Db(1),i.pc("ngIf",n.verifyRes.valid),i.Db(1),i.pc("ngIf",n.verifyRes.valid)}}var vf=function(){function e(e,t,n){this.dataService=e,this.snackBar=t,this.logger=n,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null},this.unSubs=[new b.a,new b.a]}return e.prototype.ngOnInit=function(){},e.prototype.onVerify=function(){var e=this;if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){e.verifyRes=t,e.showVerifyStatus=!0,e.verifiedMessage=e.message,e.verifiedSignature=e.signature}))},e.prototype.onChange=function(){this.verifiedMessage===this.message&&this.verifiedSignature===this.signature||(this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null})},e.prototype.resetData=function(){this.message="",this.signature="",this.verifyRes=null,this.showVerifyStatus=!1},e.prototype.onCopyField=function(e){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+e)},e.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(e){e.next(),e.complete()}))},e.\u0275fac=function(t){return new(t||e)(i.Qb(Fn.a),i.Qb(Io.b),i.Qb(f.b))},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Wb(1,"form",1,2),i.Wb(3,"mat-form-field",3),i.Wb(4,"textarea",4),i.ec("ngModelChange",(function(e){return t.message=e}))("keyup",(function(){return t.onChange()})),i.Vb(),i.Fc(5,df,2,0,"mat-error",5),i.Vb(),i.Wb(6,"mat-form-field",3),i.Wb(7,"input",6,7),i.ec("ngModelChange",(function(e){return t.signature=e}))("keyup",(function(){return t.onChange()})),i.Vb(),i.Fc(9,mf,2,0,"mat-error",5),i.Vb(),i.Fc(10,ff,4,0,"p",8),i.Wb(11,"div",9),i.Wb(12,"button",10),i.ec("click",(function(){return t.resetData()})),i.Hc(13,"Clear Fields"),i.Vb(),i.Wb(14,"button",11),i.ec("click",(function(){return t.onVerify()})),i.Hc(15,"Verify"),i.Vb(),i.Vb(),i.Fc(16,Cf,6,4,"div",12),i.Vb(),i.Vb()),2&e&&(i.Db(4),i.pc("ngModel",t.message),i.Db(1),i.pc("ngIf",!t.message),i.Db(2),i.pc("ngModel",t.signature),i.Db(2),i.pc("ngIf",!t.signature),i.Db(1),i.pc("ngIf",t.showVerifyStatus&&!t.verifyRes.valid),i.Db(6),i.pc("ngIf",t.showVerifyStatus&&t.verifyRes.valid))},directives:[x.c,x.a,x.b,U.t,U.m,U.n,A.c,le.b,U.b,se.a,U.r,U.l,U.o,a.n,D.a,A.b,S.a,P.a,Ho.a],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),e}(),xf=function(){function e(){this.faUserCheck=m.K}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Kb({type:e,selectors:[["rtl-sign-verify-message"]],decls:12,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["label","Sign"],["label","Verify"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Rb(1,"fa-icon",1),i.Wb(2,"span",2),i.Hc(3,"Sign/Verify Message"),i.Vb(),i.Vb(),i.Wb(4,"div",3),i.Wb(5,"mat-card"),i.Wb(6,"mat-card-content",4),i.Wb(7,"mat-tab-group"),i.Wb(8,"mat-tab",5),i.Rb(9,"rtl-sign"),i.Vb(),i.Wb(10,"mat-tab",6),i.Rb(11,"rtl-verify"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&e&&(i.Db(1),i.pc("icon",t.faUserCheck))},directives:[x.c,x.b,w.a,W.a,W.b,Rt.c,Rt.a,pf,vf],styles:[""]}),e}(),wf=n("0dfH"),Ff=n("2h+y"),Vf=o.j.forChild([{path:"",component:s,children:[{path:"wallet",component:Zs,canActivate:[Ff.a]},{path:"home",component:lo,canActivate:[Ff.d]},{path:"onchain",component:Id,canActivate:[Ff.d]},{path:"peerschannels",component:Ls,canActivate:[Ff.d]},{path:"transactions",component:vb,canActivate:[Ff.d]},{path:"signverify",component:xf,canActivate:[Ff.d]},{path:"backup",component:bf,canActivate:[Ff.d]},{path:"routing",component:ip,canActivate:[Ff.d]},{path:"lookups",component:jb,canActivate:[Ff.d]},{path:"network",component:Jd,canActivate:[Ff.d]},{path:"loop",component:_m,canActivate:[Ff.d]},{path:"**",component:wf.a},{path:"rates",redirectTo:"network"}]}]),Wf=n("PCNd"),Lf=function(){function e(){}return e.\u0275mod=i.Ob({type:e,bootstrap:[s]}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)},providers:[Ff.d],imports:[[a.c,Wf.a,Vf]]}),e}()}}]); \ No newline at end of file diff --git a/angular/index.html b/angular/index.html index 6b04545c..1f13377e 100644 --- a/angular/index.html +++ b/angular/index.html @@ -12,8 +12,8 @@ - + - + diff --git a/angular/main.6b2c66a7af14112dcd7f.js b/angular/main.6b2c66a7af14112dcd7f.js deleted file mode 100644 index ce5ddbb3..00000000 --- a/angular/main.6b2c66a7af14112dcd7f.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+tJ4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(t){return function(e){for(var n=0,i=t.length;n0),c.Db(1),c.pc("ngIf",n.invoice.htlcs&&n.invoice.htlcs.length>0)}}function P(t,e){if(1&t){var n=c.Xb();c.Wb(0,"div",48),c.Wb(1,"button",49),c.ec("click",(function(){return c.yc(n),c.ic().onScrollDown()})),c.Wb(2,"mat-icon",50),c.Hc(3,"arrow_downward"),c.Vb(),c.Vb(),c.Vb()}}function L(t,e){1&t&&(c.Wb(0,"p"),c.Hc(1,"Show Advanced"),c.Vb())}function F(t,e){1&t&&(c.Wb(0,"p"),c.Hc(1,"Hide Advanced"),c.Vb())}var N=function(t){return{"display-none":t}},M=function(t){return{"xs-scroll-y":t}},V=function(t){return{"h-46":t}},B=function(){function t(t,e,n,i,o){this.dialogRef=t,this.data=e,this.logger=n,this.commonService=i,this.snackBar=o,this.faReceipt=r.C,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.o,this.flgOpened=!1}return Object.defineProperty(t.prototype,"container",{set:function(t){t&&(this.scrollContainer=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.o.XS&&(this.qrWidth=220)},t.prototype.onClose=function(){this.dialogRef.close(!1)},t.prototype.onShowAdvanced=function(){this.showAdvanced=!this.showAdvanced,this.flgOpened=!1},t.prototype.onScrollDown=function(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+60},t.prototype.onExpansionClosed=function(){this.flgOpened=!1,this.scrollContainer.nativeElement.scrollTop=0},t.prototype.onCopyPayment=function(t){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+t)},t.\u0275fac=function(e){return new(e||t)(c.Qb(i.f),c.Qb(i.a),c.Qb(o.b),c.Qb(a.a),c.Qb(u.b))},t.\u0275cmp=c.Kb({type:t,selectors:[["rtl-invoice-information"]],viewQuery:function(t,e){var n;1&t&&c.Mc(x,!0),2&t&&c.vc(n=c.fc())&&(e.container=n.first)},decls:58,vars:41,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxLayout","column","fxFlex","65",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-2"],["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"],[3,"ngClass"],["fxLayout","column"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap",3,"ngClass"],["perfectScrollbar","",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",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"]],template:function(t,e){if(1&t&&(c.Wb(0,"div",0),c.Wb(1,"div",1),c.Rb(2,"qrcode",2),c.Vb(),c.Wb(3,"div",3),c.Wb(4,"mat-card-header",4),c.Wb(5,"div",5),c.Rb(6,"fa-icon",6),c.Wb(7,"span",7),c.Hc(8),c.Vb(),c.Vb(),c.Wb(9,"button",8),c.ec("click",(function(){return e.onClose()})),c.Hc(10,"X"),c.Vb(),c.Vb(),c.Wb(11,"mat-card-content",9),c.Wb(12,"div",10),c.Wb(13,"div",11),c.Rb(14,"qrcode",2),c.Vb(),c.Wb(15,"div",12,13),c.Wb(17,"div",14),c.Wb(18,"div",15),c.Wb(19,"h4",16),c.Hc(20),c.Vb(),c.Wb(21,"span",17),c.Hc(22),c.jc(23,"number"),c.Fc(24,E,2,0,"ng-container",18),c.Vb(),c.Vb(),c.Wb(25,"div",15),c.Wb(26,"h4",16),c.Hc(27,"Memo"),c.Vb(),c.Wb(28,"span",17),c.Hc(29),c.Vb(),c.Vb(),c.Vb(),c.Rb(30,"mat-divider",19),c.Wb(31,"div",14),c.Wb(32,"div",15),c.Wb(33,"h4",16),c.Hc(34,"Date Created"),c.Vb(),c.Wb(35,"span",17),c.Hc(36),c.Vb(),c.Vb(),c.Wb(37,"div",15),c.Wb(38,"h4",16),c.Hc(39,"Date Settled"),c.Vb(),c.Wb(40,"span",17),c.Hc(41),c.Vb(),c.Vb(),c.Vb(),c.Rb(42,"mat-divider",19),c.Wb(43,"div",14),c.Wb(44,"div",20),c.Wb(45,"h4",16),c.Hc(46,"Payment Request"),c.Vb(),c.Wb(47,"span",21),c.Hc(48),c.Vb(),c.Vb(),c.Vb(),c.Fc(49,R,28,9,"div",18),c.Vb(),c.Vb(),c.Vb(),c.Fc(50,P,4,0,"div",22),c.Wb(51,"div",23),c.Wb(52,"button",24),c.ec("click",(function(){return e.onShowAdvanced()})),c.Fc(53,L,2,0,"p",25),c.Fc(54,F,2,0,"ng-template",null,26,c.Gc),c.Vb(),c.Wb(56,"button",27),c.ec("copied",(function(t){return e.onCopyPayment(t)})),c.Hc(57),c.Vb(),c.Vb(),c.Vb(),c.Vb()),2&t){var n=c.wc(55);c.Db(1),c.pc("ngClass",c.tc(33,N,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),c.Db(1),c.pc("qrdata",e.invoice.payment_request)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),c.Db(4),c.pc("icon",e.faReceipt),c.Db(2),c.Ic(e.screenSize===e.screenSizeEnum.XS?e.newlyAdded?"Created":"Invoice":e.newlyAdded?"Invoice Created":"Invoice Information"),c.Db(3),c.pc("ngClass",c.tc(35,M,e.screenSize===e.screenSizeEnum.XS)),c.Db(2),c.pc("ngClass",c.tc(37,N,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),c.Db(1),c.pc("qrdata",e.invoice.payment_request)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),c.Db(1),c.pc("ngClass",c.tc(39,V,e.invoice.htlcs&&e.invoice.htlcs.length>0&&e.showAdvanced)),c.Db(5),c.Ic(e.screenSize===e.screenSizeEnum.XS?"Amount":"Amount Requested"),c.Db(2),c.Jc("",c.kc(23,31,e.invoice.value||0)," Sats"),c.Db(2),c.pc("ngIf",!e.invoice.value),c.Db(5),c.Ic(e.invoice.memo),c.Db(1),c.pc("inset",!0),c.Db(6),c.Ic(e.invoice.creation_date_str),c.Db(5),c.Ic(e.invoice.settle_date_str||"-"),c.Db(1),c.pc("inset",!0),c.Db(6),c.Ic(e.invoice.payment_request),c.Db(1),c.pc("ngIf",e.showAdvanced),c.Db(1),c.pc("ngIf",e.invoice.htlcs&&e.invoice.htlcs.length>0&&e.showAdvanced&&e.flgOpened),c.Db(3),c.pc("ngIf",!e.showAdvanced)("ngIfElse",n),c.Db(3),c.pc("payload",e.invoice.payment_request),c.Db(1),c.Ic(e.screenSize===e.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}},directives:[l.c,l.b,l.a,p.l,h.a,d.a,f.c,m.a,b.a,f.b,g.b,p.n,y.a,v.a,_.a,w.c,w.e,w.f,p.m,O.a,C.a],pipes:[p.e],styles:[""]}),t}()},"/21U":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("isby");function r(t){return!Object(i.a)(t)&&t-parseFloat(t)+1>=0}},"/PH2":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("mrSG"),r=n("MGBS"),o=n("zotm");function a(){for(var t=[],e=0;e0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(r.a)},"/WYv":function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return i}))},"/uX3":function(t,e,n){"use strict";n.d(e,"bb",(function(){return i})),n.d(e,"Y",(function(){return r})),n.d(e,"I",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"j",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"A",(function(){return u})),n.d(e,"B",(function(){return l})),n.d(e,"e",(function(){return p})),n.d(e,"y",(function(){return h})),n.d(e,"b",(function(){return d})),n.d(e,"z",(function(){return f})),n.d(e,"d",(function(){return m})),n.d(e,"R",(function(){return b})),n.d(e,"l",(function(){return g})),n.d(e,"P",(function(){return y})),n.d(e,"n",(function(){return v})),n.d(e,"N",(function(){return _})),n.d(e,"L",(function(){return w})),n.d(e,"W",(function(){return O})),n.d(e,"O",(function(){return C})),n.d(e,"M",(function(){return x})),n.d(e,"r",(function(){return E})),n.d(e,"s",(function(){return S})),n.d(e,"u",(function(){return A})),n.d(e,"ab",(function(){return k})),n.d(e,"v",(function(){return D})),n.d(e,"G",(function(){return j})),n.d(e,"H",(function(){return I})),n.d(e,"m",(function(){return T})),n.d(e,"Q",(function(){return R})),n.d(e,"f",(function(){return P})),n.d(e,"k",(function(){return L})),n.d(e,"g",(function(){return F})),n.d(e,"E",(function(){return N})),n.d(e,"F",(function(){return M})),n.d(e,"i",(function(){return V})),n.d(e,"C",(function(){return B})),n.d(e,"D",(function(){return H})),n.d(e,"h",(function(){return W})),n.d(e,"V",(function(){return z})),n.d(e,"o",(function(){return U})),n.d(e,"Z",(function(){return Q})),n.d(e,"K",(function(){return Y})),n.d(e,"q",(function(){return G})),n.d(e,"S",(function(){return q})),n.d(e,"X",(function(){return K})),n.d(e,"U",(function(){return X})),n.d(e,"T",(function(){return Z})),n.d(e,"x",(function(){return $})),n.d(e,"J",(function(){return J})),n.d(e,"t",(function(){return tt})),n.d(e,"w",(function(){return et})),n.d(e,"cb",(function(){return nt})),n.d(e,"p",(function(){return it}));var i="VOID",r="UPDATE_SELECTED_NODE_OPTIONS",o="RESET_ROOT_STORE",a="CLEAR_EFFECT_ERROR_ROOT",s="EFFECT_ERROR_ROOT",c="CLOSE_ALL_DIALOGS",u="OPEN_SNACKBAR",l="OPEN_SPINNER",p="CLOSE_SPINNER",h="OPEN_ALERT",d="CLOSE_ALERT",f="OPEN_CONFIRMATION",m="CLOSE_CONFIRMATION",b="SHOW_PUBKEY",g="FETCH_CONFIG",y="SHOW_CONFIG",v="FETCH_RTL_CONFIG",_="SET_RTL_CONFIG",w="SAVE_SETTINGS",O="TWO_FA_SAVE_SETTINGS",C="SET_SELECTED_NODE",x="SET_NODE_DATA",E="IS_AUTHORIZED",S="IS_AUTHORIZED_RES",A="LOGIN",k="VERIFY_TWO_FA",D="LOGOUT",j="RESET_PASSWORD",I="RESET_PASSWORD_RES",T="FETCH_FILE",R="SHOW_FILE",P=function(){return function(t){this.payload=t,this.type=a}}(),L=function(){return function(t){this.payload=t,this.type=s}}(),F=function(){return function(){this.type=c}}(),N=function(){return function(t){this.payload=t,this.type=u}}(),M=function(){return function(t){this.payload=t,this.type=l}}(),V=function(){return function(){this.type=p}}(),B=function(){return function(t){this.payload=t,this.type=h}}(),H=function(){return function(t){this.payload=t,this.type=f}}(),W=function(){return function(t){this.payload=t,this.type=m}}(),z=function(){return function(){this.type=b}}(),U=function(){return function(t){this.payload=t,this.type=g}}(),Q=function(){return function(){this.type=r}}(),Y=function(){return function(t){this.payload=t,this.type=o}}(),G=function(){return function(){this.type=v}}(),q=function(){return function(t){this.payload=t,this.type=w}}(),K=function(){return function(t){this.payload=t,this.type=O}}(),X=function(){return function(t){this.payload=t,this.type=C}}(),Z=function(){return function(t){this.payload=t,this.type=x}}(),$=function(){return function(){this.type=D}}(),J=function(){return function(t){this.payload=t,this.type=j}}(),tt=function(){return function(t){this.payload=t,this.type=E}}(),et=function(){return function(t){this.payload=t,this.type=A}}(),nt=function(){return function(t){this.payload=t,this.type=k}}(),it=function(){return function(t){this.payload=t,this.type=T}}()},0:function(t,e,n){t.exports=n("zUnb")},"0/uQ":function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n("6blF"),r=n("Fxb1"),o=n("pugT"),a=n("xTla"),s=n("JF+6"),c=n("En8+"),u=n("/WYv"),l=n("2ePl");function p(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[a.a]}(t))return function(t,e){return new i.a((function(n){var i=new o.a;return i.add(e.schedule((function(){var r=t[a.a]();i.add(r.subscribe({next:function(t){i.add(e.schedule((function(){return n.next(t)})))},error:function(t){i.add(e.schedule((function(){return n.error(t)})))},complete:function(){i.add(e.schedule((function(){return n.complete()})))}}))}))),i}))}(t,e);if(Object(u.a)(t))return function(t,e){return new i.a((function(n){var i=new o.a;return i.add(e.schedule((function(){return t.then((function(t){i.add(e.schedule((function(){n.next(t),i.add(e.schedule((function(){return n.complete()})))})))}),(function(t){i.add(e.schedule((function(){return n.error(t)})))}))}))),i}))}(t,e);if(Object(l.a)(t))return Object(s.a)(t,e);if(function(t){return t&&"function"==typeof t[c.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.a((function(n){var i,r=new o.a;return r.add((function(){i&&"function"==typeof i.return&&i.return()})),r.add(e.schedule((function(){i=t[c.a](),r.add(e.schedule((function(){if(!n.closed){var t,e;try{var r=i.next();t=r.value,e=r.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}})))}))),r}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.a?t:new i.a(Object(r.a)(t))}},"0FX9":function(t,e,n){var i=n("Z92M"),r=n("qmMu"),o=n("QUaw"),a=n("QAZZ");function s(t,e,n,o,a){var s=[].slice.call(arguments,1),c=s.length,u="function"==typeof s[c-1];if(!u&&!i())throw new Error("Callback required as last argument");if(!u){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=e,e=o=void 0):2!==c||e.getContext||(o=n,n=e,e=void 0),new Promise((function(i,a){try{var s=r.create(n,o);i(t(s,e,o))}catch(c){a(c)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(a=n,n=e,e=o=void 0):3===c&&(e.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=n,n=e,e=void 0));try{var l=r.create(n,o);a(null,t(l,e,o))}catch(p){a(p)}}e.create=r.create,e.toCanvas=s.bind(null,o.render),e.toDataURL=s.bind(null,o.renderToDataURL),e.toString=s.bind(null,(function(t,e,n){return a.render(t,n)}))},"0OUw":function(t,e,n){"use strict";n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return m})),n.d(e,"c",(function(){return b})),n.d(e,"d",(function(){return _})),n.d(e,"e",(function(){return C})),n.d(e,"f",(function(){return w})),n.d(e,"g",(function(){return O})),n.d(e,"h",(function(){return y}));var i=n("m47I"),r=n("HHjO"),o=n("349r"),a=n("ScIB"),s=n("Ip0R"),c=n("CcnG"),u=n("K9Ia"),l=n("F/XL"),p=n("p0Sj"),h=n("ny24");function d(t,e){1&t&&c.nc(0)}var f=["*"],m=function(){function t(t){this._elementRef=t}return t.prototype.focus=function(){this._elementRef.nativeElement.focus()},t.\u0275fac=function(e){return new(e||t)(c.Qb(c.l))},t.\u0275dir=c.Lb({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t}(),b=function(){function t(t){this.template=t}return t.\u0275fac=function(e){return new(e||t)(c.Qb(c.M))},t.\u0275dir=c.Lb({type:t,selectors:[["","cdkStepLabel",""]]}),t}(),g=0,y=new c.r("STEPPER_GLOBAL_OPTIONS"),v=function(){function t(t,e){this._stepper=t,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}return Object.defineProperty(t.prototype,"editable",{get:function(){return this._editable},set:function(t){this._editable=Object(o.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optional",{get:function(){return this._optional},set:function(t){this._optional=Object(o.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completed",{get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(t){this._completedOverride=Object(o.c)(t)},enumerable:!0,configurable:!0}),t.prototype._getDefaultCompleted=function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted},Object.defineProperty(t.prototype,"hasError",{get:function(){return null==this._customError?this._getDefaultError():this._customError},set:function(t){this._customError=Object(o.c)(t)},enumerable:!0,configurable:!0}),t.prototype._getDefaultError=function(){return this.stepControl&&this.stepControl.invalid&&this.interacted},t.prototype.select=function(){this._stepper.selected=this},t.prototype.reset=function(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()},t.prototype.ngOnChanges=function(){this._stepper._stateChanged()},t.\u0275fac=function(e){return new(e||t)(c.Qb(Object(c.V)((function(){return _}))),c.Qb(y,8))},t.\u0275cmp=c.Kb({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,n){var i;1&t&&c.Jb(n,b,!0),2&t&&c.vc(i=c.fc())&&(e.stepLabel=i.first)},viewQuery:function(t,e){var n;1&t&&c.Dc(c.M,!0),2&t&&c.vc(n=c.fc())&&(e.content=n.first)},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},exportAs:["cdkStep"],features:[c.Bb],ngContentSelectors:f,decls:1,vars:0,template:function(t,e){1&t&&(c.oc(),c.Fc(0,d,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t}(),_=function(){function t(t,e,n,i){this._dir=t,this._changeDetectorRef=e,this._elementRef=n,this._destroyed=new u.a,this._linear=!1,this._selectedIndex=0,this.selectionChange=new c.o,this._orientation="horizontal",this._groupId=g++,this._document=i}return Object.defineProperty(t.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linear",{get:function(){return this._linear},set:function(t){this._linear=Object(o.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){var e=Object(o.f)(t);if(this.steps){if(e<0||e>this.steps.length-1)throw Error("cdkStepper: Cannot assign out-of-bounds value to `selectedIndex`.");this._selectedIndex!=e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(t)}else this._selectedIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0},set:function(t){this.selectedIndex=this.steps?this.steps.toArray().indexOf(t):-1},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;this._keyManager=new i.g(this._stepHeader).withWrap().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(l.a)()).pipe(Object(p.a)(this._layoutDirection()),Object(h.a)(this._destroyed)).subscribe((function(e){return t._keyManager.withHorizontalOrientation(e)})),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.pipe(Object(h.a)(this._destroyed)).subscribe((function(){t.selected||(t._selectedIndex=Math.max(t._selectedIndex-1,0))}))},t.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},t.prototype.next=function(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)},t.prototype.previous=function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)},t.prototype.reset=function(){this._updateSelectedItemIndex(0),this.steps.forEach((function(t){return t.reset()})),this._stateChanged()},t.prototype._getStepLabelId=function(t){return"cdk-step-label-"+this._groupId+"-"+t},t.prototype._getStepContentId=function(t){return"cdk-step-content-"+this._groupId+"-"+t},t.prototype._stateChanged=function(){this._changeDetectorRef.markForCheck()},t.prototype._getAnimationDirection=function(t){var e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"},t.prototype._getIndicatorType=function(t,e){void 0===e&&(e="number");var n=this.steps.toArray()[t],i=this._isCurrentStep(t);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,i):this._getGuidelineLogic(n,i,e)},t.prototype._getDefaultIndicatorLogic=function(t,e){return t._showError&&t.hasError&&!e?"error":!t.completed||e?"number":t.editable?"edit":"done"},t.prototype._getGuidelineLogic=function(t,e,n){return void 0===n&&(n="number"),t._showError&&t.hasError&&!e?"error":t.completed&&!e?"done":t.completed&&e?n:t.editable&&e?"edit":n},t.prototype._isCurrentStep=function(t){return this._selectedIndex===t},t.prototype._getFocusIndex=function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex},t.prototype._updateSelectedItemIndex=function(t){var e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()},t.prototype._onKeydown=function(t){var e=Object(a.q)(t),n=t.keyCode,i=this._keyManager;null==i.activeItemIndex||e||n!==a.l&&n!==a.d?n===a.f?(i.setFirstItemActive(),t.preventDefault()):n===a.c?(i.setLastItemActive(),t.preventDefault()):i.onKeydown(t):(this.selectedIndex=i.activeItemIndex,t.preventDefault())},t.prototype._anyControlsInvalidOrPending=function(t){var e=this.steps.toArray();return e[this._selectedIndex].interacted=!0,!!(this._linear&&t>=0)&&e.slice(0,t).some((function(t){var e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}))},t.prototype._layoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},t.prototype._containsFocus=function(){if(!this._document||!this._elementRef)return!1;var t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)},t.\u0275fac=function(e){return new(e||t)(c.Qb(r.b,8),c.Qb(c.h),c.Qb(c.l),c.Qb(s.d))},t.\u0275dir=c.Lb({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(t,e,n){var i;1&t&&(c.Jb(n,v,!0),c.Jb(n,m,!0)),2&t&&(c.vc(i=c.fc())&&(e._steps=i),c.vc(i=c.fc())&&(e._stepHeader=i))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),t}(),w=function(){function t(t){this._stepper=t,this.type="submit"}return t.prototype._handleClick=function(){this._stepper.next()},t.\u0275fac=function(e){return new(e||t)(c.Qb(_))},t.\u0275dir=c.Lb({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&c.ec("click",(function(){return e._handleClick()})),2&t&&c.Zb("type",e.type)},inputs:{type:"type"}}),t}(),O=function(){function t(t){this._stepper=t,this.type="button"}return t.prototype._handleClick=function(){this._stepper.previous()},t.\u0275fac=function(e){return new(e||t)(c.Qb(_))},t.\u0275dir=c.Lb({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&c.ec("click",(function(){return e._handleClick()})),2&t&&c.Zb("type",e.type)},inputs:{type:"type"}}),t}(),C=function(){function t(){}return t.\u0275mod=c.Ob({type:t}),t.\u0275inj=c.Nb({factory:function(e){return new(e||t)},imports:[[r.a]]}),t}()},"0dfH":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("wHSu"),r=n("CcnG"),o=n("ZYCi"),a=n("21Lb"),s=n("Nv++"),c=n("qLAh"),u=n("M4kG"),l=function(){function t(t){this.router=t,this.faTimes=i.H}return t.prototype.goToHelp=function(){this.router.navigate(["/help"])},t.\u0275fac=function(e){return new(e||t)(r.Qb(o.f))},t.\u0275cmp=r.Kb({type:t,selectors:[["rtl-not-found"]],decls:13,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(t,e){1&t&&(r.Wb(0,"div",0),r.Rb(1,"fa-icon",1),r.Wb(2,"span",2),r.Hc(3,"Page Not Found"),r.Vb(),r.Vb(),r.Wb(4,"div",3),r.Wb(5,"mat-card"),r.Wb(6,"mat-card-content",4),r.Wb(7,"div",5),r.Wb(8,"div",6),r.Hc(9,"This page does not exist!"),r.Vb(),r.Wb(10,"span",7),r.Wb(11,"button",8),r.ec("click",(function(){return e.goToHelp()})),r.Hc(12,"Go To Help"),r.Vb(),r.Vb(),r.Vb(),r.Vb(),r.Vb(),r.Vb()),2&t&&(r.Db(1),r.pc("icon",e.faTimes))},directives:[a.c,a.b,s.a,c.a,c.b,a.a,u.a],encapsulation:2}),t}()},"0mNj":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("mrSG"),r=n("FFOo");function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.total))},t}(),s=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return i.c(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(r.a)},"0zd0":function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n("T1DM"),r=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}(),o=n("mrSG"),a=n("VGuC"),s=n("MGBS"),c=n("zotm"),u=function(){function t(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),l=function(t){function e(e,n,i,r,o){var a=t.call(this,e)||this;return a.absoluteTimeout=n,a.waitFor=i,a.withObservable=r,a.scheduler=o,a.action=null,a.scheduleTimeout(),a}return o.c(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(Object(c.a)(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},e}(s.a),p=n("XlPw");function h(t,e){return void 0===e&&(e=i.a),function(t,e,n){return void 0===n&&(n=i.a),function(i){var r=Object(a.a)(t),o=r?+t-n.now():Math.abs(t);return i.lift(new u(o,r,e,n))}}(t,Object(p.a)(new r),e)}},"15JJ":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("mrSG"),r=n("MGBS"),o=n("rPjj"),a=n("zotm"),s=n("67Y/"),c=n("0/uQ");function u(t,e){return"function"==typeof e?function(n){return n.pipe(u((function(n,i){return Object(c.a)(t(n,i)).pipe(Object(s.a)((function(t,r){return e(n,t,i,r)})))})))}:function(e){return e.lift(new l(t))}}var l=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.project))},t}(),p=function(t){function e(e,n){var i=t.call(this,e)||this;return i.project=n,i.index=0,i}return i.c(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new o.a(this,e,n),s=this.destination;s.add(r),this.innerSubscription=Object(a.a)(this,t,void 0,void 0,r),this.innerSubscription!==r&&s.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},e}(r.a)},"1QD2":function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return x})),n.d(e,"c",(function(){return O})),n.d(e,"d",(function(){return k})),n.d(e,"e",(function(){return C})),n.d(e,"f",(function(){return _})),n.d(e,"g",(function(){return y})),n.d(e,"h",(function(){return S})),n.d(e,"i",(function(){return A})),n.d(e,"j",(function(){return b}));var i=n("mrSG"),r=n("e9QY"),o=n("zrt+"),a=n("K9Ia"),s=n("26FU"),c=n("F/XL"),u=n("t9fZ"),l=n("VnD/"),p=n("ny24"),h=n("CcnG"),d=n("349r"),f=n("m47I"),m=n("HHjO"),b=function(t){function e(e){var n=t.call(this)||this;return n.getChildren=e,n}return Object(i.c)(e,t),e.prototype.expandAll=function(){var t,e=this;this.expansionModel.clear();var n=this.dataNodes.reduce((function(t,n){return Object(i.f)(t,e.getDescendants(n),[n])}),[]);(t=this.expansionModel).select.apply(t,Object(i.f)(n))},e.prototype.getDescendants=function(t){var e=[];return this._getDescendants(e,t),e.splice(1)},e.prototype._getDescendants=function(t,e){var n=this;t.push(e);var r=this.getChildren(e);Array.isArray(r)?r.forEach((function(e){return n._getDescendants(t,e)})):Object(o.a)(r)&&r.pipe(Object(u.a)(1),Object(l.a)(Boolean)).subscribe((function(e){var r,o;try{for(var a=Object(i.h)(e),s=a.next();!s.done;s=a.next())n._getDescendants(t,s.value)}catch(c){r={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}}))},e}(function(){function t(){this.expansionModel=new r.c(!0)}return t.prototype.toggle=function(t){this.expansionModel.toggle(t)},t.prototype.expand=function(t){this.expansionModel.select(t)},t.prototype.collapse=function(t){this.expansionModel.deselect(t)},t.prototype.isExpanded=function(t){return this.expansionModel.isSelected(t)},t.prototype.toggleDescendants=function(t){this.expansionModel.isSelected(t)?this.collapseDescendants(t):this.expandDescendants(t)},t.prototype.collapseAll=function(){this.expansionModel.clear()},t.prototype.expandDescendants=function(t){var e,n=[t];n.push.apply(n,Object(i.f)(this.getDescendants(t))),(e=this.expansionModel).select.apply(e,Object(i.f)(n))},t.prototype.collapseDescendants=function(t){var e,n=[t];n.push.apply(n,Object(i.f)(this.getDescendants(t))),(e=this.expansionModel).deselect.apply(e,Object(i.f)(n))},t}()),g=new h.r("CDK_TREE_NODE_OUTLET_NODE"),y=function(){function t(t,e){this.viewContainer=t,this._node=e}return t.\u0275fac=function(e){return new(e||t)(h.Qb(h.P),h.Qb(g,8))},t.\u0275dir=h.Lb({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t}(),v=function(){return function(t){this.$implicit=t}}(),_=function(){function t(t){this.template=t}return t.\u0275fac=function(e){return new(e||t)(h.Qb(h.M))},t.\u0275dir=h.Lb({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t}();function w(){return Error("Could not find functions for nested/flat tree in tree control.")}var O=function(){function t(t,e){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new a.a,this._levels=new Map,this.viewChange=new s.a({start:0,end:Number.MAX_VALUE})}return Object.defineProperty(t.prototype,"dataSource",{get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){if(this._dataDiffer=this._differs.find([]).create(this.trackBy),!this.treeControl)throw Error("Could not find a tree control for the tree.")},t.prototype.ngOnDestroy=function(){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)},t.prototype.ngAfterContentChecked=function(){var t=this._nodeDefs.filter((function(t){return!t.when}));if(t.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()},t.prototype._switchDataSource=function(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()},t.prototype._observeRenderChanges=function(){var t,e=this;if(Object(r.e)(this._dataSource)?t=this._dataSource.connect(this):Object(o.a)(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=Object(c.a)(this._dataSource)),!t)throw Error("A valid data source must be provided.");this._dataSubscription=t.pipe(Object(p.a)(this._onDestroy)).subscribe((function(t){return e.renderNodeChanges(t)}))},t.prototype.renderNodeChanges=function(t,e,n,i){var r=this;void 0===e&&(e=this._dataDiffer),void 0===n&&(n=this._nodeOutlet.viewContainer);var o=e.diff(t);o&&(o.forEachOperation((function(e,o,a){if(null==e.previousIndex)r.insertNode(t[a],a,n,i);else if(null==a)n.remove(o),r._levels.delete(e.item);else{var s=n.get(o);n.move(s,a)}})),this._changeDetectorRef.detectChanges())},t.prototype._getNodeDef=function(t,e){if(1===this._nodeDefs.length)return this._nodeDefs.first;var n=this._nodeDefs.find((function(n){return n.when&&n.when(e,t)}))||this._defaultNodeDef;if(!n)throw Error("Could not find a matching node definition for the provided node data.");return n},t.prototype.insertNode=function(t,e,n,i){var r=this._getNodeDef(t,e),o=new v(t);o.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==i&&this._levels.has(i)?this._levels.get(i)+1:0,this._levels.set(t,o.level),(n||this._nodeOutlet.viewContainer).createEmbeddedView(r.template,o,e),C.mostRecentTreeNode&&(C.mostRecentTreeNode.data=t)},t.\u0275fac=function(e){return new(e||t)(h.Qb(h.t),h.Qb(h.h))},t.\u0275cmp=h.Kb({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,n){var i;1&t&&h.Jb(n,_,!0),2&t&&h.vc(i=h.fc())&&(e._nodeDefs=i)},viewQuery:function(t,e){var n;1&t&&h.Dc(y,!0),2&t&&h.vc(n=h.fc())&&(e._nodeOutlet=n.first)},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&h.Sb(0,0)},directives:[y],encapsulation:2}),t}(),C=function(){function t(e,n){this._elementRef=e,this._tree=n,this._destroyed=new a.a,this._dataChanges=new a.a,this.role="treeitem",t.mostRecentTreeNode=this}return Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this._tree.treeControl.isExpanded(this._data)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"level",{get:function(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):0},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()},t.prototype.focus=function(){this._elementRef.nativeElement.focus()},t.prototype._setRoleFromData=function(){var t=this;if(this._tree.treeControl.isExpandable)this.role=this._tree.treeControl.isExpandable(this._data)?"group":"treeitem";else{if(!this._tree.treeControl.getChildren)throw w();var e=this._tree.treeControl.getChildren(this._data);Array.isArray(e)?this._setRoleFromChildren(e):Object(o.a)(e)&&e.pipe(Object(p.a)(this._destroyed)).subscribe((function(e){return t._setRoleFromChildren(e)}))}},t.prototype._setRoleFromChildren=function(t){this.role=t&&t.length?"group":"treeitem"},t.mostRecentTreeNode=null,t.\u0275fac=function(e){return new(e||t)(h.Qb(h.l),h.Qb(O))},t.\u0275dir=h.Lb({type:t,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:3,hostBindings:function(t,e){2&t&&h.Eb("aria-expanded",e.isExpanded)("aria-level","treeitem"===e.role?e.level:null)("role",e.role)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t}(),x=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r._elementRef=e,r._tree=n,r._differs=i,r}return Object(i.c)(e,t),e.prototype.ngAfterContentInit=function(){var t=this;if(this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),!this._tree.treeControl.getChildren)throw w();var e=this._tree.treeControl.getChildren(this.data);Array.isArray(e)?this.updateChildrenNodes(e):Object(o.a)(e)&&e.pipe(Object(p.a)(this._destroyed)).subscribe((function(e){return t.updateChildrenNodes(e)})),this.nodeOutlet.changes.pipe(Object(p.a)(this._destroyed)).subscribe((function(){return t.updateChildrenNodes()}))},e.prototype.ngOnDestroy=function(){this._clear(),t.prototype.ngOnDestroy.call(this)},e.prototype.updateChildrenNodes=function(t){var e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])},e.prototype._clear=function(){var t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))},e.prototype._getNodeOutlet=function(){var t=this,e=this.nodeOutlet;return e&&e.find((function(e){return!e._node||e._node===t}))},e.\u0275fac=function(t){return new(t||e)(h.Qb(h.l),h.Qb(O),h.Qb(h.t))},e.\u0275dir=h.Lb({type:e,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,n){var i;1&t&&h.Jb(n,y,!0),2&t&&h.vc(i=h.fc())&&(e.nodeOutlet=i)},hostAttrs:[1,"cdk-tree-node","cdk-nested-tree-node"],hostVars:2,hostBindings:function(t,e){2&t&&h.Eb("aria-expanded",e.isExpanded)("role",e.role)},exportAs:["cdkNestedTreeNode"],features:[h.Cb([{provide:C,useExisting:e},{provide:g,useExisting:e}]),h.Ab]}),e}(C),E=/([A-Za-z%]+)$/,S=function(){function t(t,e,n,i,r){var o=this;this._treeNode=t,this._tree=e,this._element=i,this._dir=r,this._destroyed=new a.a,this.indentUnits="px",this._indent=40,this._setPadding(),r&&r.change.pipe(Object(p.a)(this._destroyed)).subscribe((function(){return o._setPadding(!0)})),t._dataChanges.subscribe((function(){return o._setPadding()}))}return Object.defineProperty(t.prototype,"level",{get:function(){return this._level},set:function(t){this._level=Object(d.f)(t,null),this._setPadding()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this._indent},set:function(t){var e=t,n="px";if("string"==typeof t){var i=t.split(E);e=i[0],n=i[1]||n}this.indentUnits=n,this._indent=Object(d.f)(e),this._setPadding()},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},t.prototype._paddingIndent=function(){var t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?""+e*this._indent+this.indentUnits:null},t.prototype._setPadding=function(t){void 0===t&&(t=!1);var e=this._paddingIndent();if(e!==this._currentPadding||t){var n=this._element.nativeElement,i=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",r="paddingLeft"===i?"paddingRight":"paddingLeft";n.style[i]=e||"",n.style[r]="",this._currentPadding=e}},t.\u0275fac=function(e){return new(e||t)(h.Qb(C),h.Qb(O),h.Qb(h.F),h.Qb(h.l),h.Qb(m.b,8))},t.\u0275dir=h.Lb({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t}(),A=function(){function t(t,e){this._tree=t,this._treeNode=e,this._recursive=!1}return Object.defineProperty(t.prototype,"recursive",{get:function(){return this._recursive},set:function(t){this._recursive=Object(d.c)(t)},enumerable:!0,configurable:!0}),t.prototype._toggle=function(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()},t.\u0275fac=function(e){return new(e||t)(h.Qb(O),h.Qb(C))},t.\u0275dir=h.Lb({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&h.ec("click",(function(t){return e._toggle(t)}))},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t}(),k=function(){function t(){}return t.\u0275mod=h.Ob({type:t}),t.\u0275inj=h.Nb({factory:function(e){return new(e||t)},providers:[f.h,_]}),t}()},"1sBl":function(t,e,n){var i=n("e/Dd").getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];for(var e=Math.floor(t/7)+2,n=i(t),r=145===n?26:2*Math.ceil((n-13)/(2*e-2)),o=[n-7],a=1;a-1}function p(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(i.c)(e,t),e.prototype.buildStyles=function(t){return void 0===(e=(i=u(t))[1])&&(e=null),void 0===(n=i[2])&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":i[0],"flex-wrap":e||null};var e,n,i},e.\u0275prov=Object(r.Mb)({factory:function(){return new e},token:e,providedIn:"root"}),e.\u0275fac=function(t){return n(t||e)};var n=r.Yb(e);return e}(o.h),d=["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"],f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=d,e}Object(i.c)(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=r.Lb({type:e,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:[r.Ab]});var n=r.Yb(e);return e}(function(t){function e(e,n,i,r){var o=t.call(this,e,i,n,r)||this;return o.DIRECTIVE_KEY="layout",o.styleCache=m,o.init(),o}return Object(i.c)(e,t),e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(o.i),r.Qb(h),r.Qb(o.f))},e.\u0275dir=r.Lb({type:e,features:[r.Ab]}),e}(o.b)),m=new Map;function b(t){for(var e=[],n=1;n-1?"column":"row",s=l(a)?"max-width":"max-height",c=l(a)?"min-width":"min-height",u=String(o).indexOf("calc")>-1,p=u||"auto"===o,h=String(o).indexOf("%")>-1&&!u,d=String(o).indexOf("px")>-1||String(o).indexOf("rem")>-1||String(o).indexOf("em")>-1||String(o).indexOf("vw")>-1||String(o).indexOf("vh")>-1,f=u||d;r="0"==r?0:r;var m=!(i="0"==i?0:i)&&!r,g={},y={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(o||""){case"":o="row"===a?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":i=0,o="auto";break;case"grow":o="100%";break;case"noshrink":r=0,o="auto";break;case"auto":break;case"none":i=0,r=0,o="auto";break;default:f||h||isNaN(o)||(o+="%"),"0%"===o&&(f=!0),"0px"===o&&(o="0%"),g=b(y,u?{"flex-grow":i,"flex-shrink":r,"flex-basis":f?o:"100%"}:{flex:i+" "+r+" "+(f?o:"100%")})}return g.flex||g["flex-grow"]||(g=b(y,u?{"flex-grow":i,"flex-shrink":r,"flex-basis":o}:{flex:i+" "+r+" "+o})),"0%"!==o&&"0px"!==o&&"0.000000001px"!==o&&"auto"!==o&&(g[c]=m||f&&i?o:null,g[s]=m||!p&&r?o:null),g[c]||g[s]?e.hasWrap&&(g[u?"flex-basis":"flex"]=g[s]?u?g[s]:i+" "+r+" "+g[s]:u?g[c]:i+" "+r+" "+g[c]):g=b(y,u?{"flex-grow":i,"flex-shrink":r,"flex-basis":o}:{flex:i+" "+r+" "+o}),b(g,{"box-sizing":"border-box"})},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(o.e))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(r.ac(o.e))},e}(o.h),y=["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"],v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=y,e}Object(i.c)(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=r.Lb({type:e,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:[r.Ab]});var n=r.Yb(e);return e}(function(t){function e(e,n,i,r,o){var a=t.call(this,e,r,n,o)||this;return a.layoutConfig=i,a.marshal=o,a.DIRECTIVE_KEY="flex",a.direction=void 0,a.wrap=void 0,a.flexGrow="1",a.flexShrink="1",a.init(),a}return Object(i.c)(e,t),Object.defineProperty(e.prototype,"shrink",{get:function(){return this.flexShrink},set:function(t){this.flexShrink=t||"1",this.triggerReflow()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"grow",{get:function(){return this.flexGrow},set:function(t){this.flexGrow=t||"1",this.triggerReflow()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Object(s.a)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Object(s.a)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))},e.prototype.onLayoutChange=function(t){var e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()},e.prototype.updateWithValue=function(t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));var e=this.direction,n=e.startsWith("row"),i=this.wrap;n&&i?this.styleCache=O:n&&!i?this.styleCache=_:!n&&i?this.styleCache=C:n||i||(this.styleCache=w);var r=String(t).replace(";",""),a=Object(o.j)(r,this.flexGrow,this.flexShrink);this.addStyles(a.join(" "),{direction:e,hasWrap:i})},e.prototype.triggerReflow=function(){var t=this.activatedValue;if(void 0!==t){var e=Object(o.j)(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}},e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(o.i),r.Qb(o.e),r.Qb(g),r.Qb(o.f))},e.\u0275dir=r.Lb({type:e,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[r.Ab]}),e}(o.b)),_=new Map,w=new Map,O=new Map,C=new Map,x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(i.c)(e,t),e.prototype.buildStyles=function(t,e){var n={},i=t.split(" "),r=i[1];switch(i[0]){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(r){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return b(n,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===r?l(e.layout)?null:"100%":null,"max-height":"stretch"===r&&l(e.layout)?"100%":null})},e.\u0275prov=Object(r.Mb)({factory:function(){return new e},token:e,providedIn:"root"}),e.\u0275fac=function(t){return n(t||e)};var n=r.Yb(e);return e}(o.h),E=["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"],S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=E,e}Object(i.c)(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=r.Lb({type:e,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:[r.Ab]});var n=r.Yb(e);return e}(function(t){function e(e,n,i,r){var o=t.call(this,e,i,n,r)||this;return o.DIRECTIVE_KEY="layout-align",o.layout="row",o.inline=!1,o.init(),o.marshal.trackValue(o.nativeElement,"layout").pipe(Object(s.a)(o.destroySubject)).subscribe(o.onLayoutChange.bind(o)),o}return Object(i.c)(e,t),e.prototype.updateWithValue=function(t){var e=this.layout||"row",n=this.inline;"row"===e&&n?this.styleCache=I:"row"!==e||n?"row-reverse"===e&&n?this.styleCache=R:"row-reverse"!==e||n?"column"===e&&n?this.styleCache=T:"column"!==e||n?"column-reverse"===e&&n?this.styleCache=P:"column-reverse"!==e||n||(this.styleCache=j):this.styleCache=k:this.styleCache=D:this.styleCache=A,this.addStyles(t,{layout:e,inline:n})},e.prototype.onLayoutChange=function(t){var e=this,n=t.value.split(" ");this.layout=n[0],this.inline=t.value.includes("inline"),c.find((function(t){return t===e.layout}))||(this.layout="row"),this.triggerUpdate()},e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(o.i),r.Qb(x),r.Qb(o.f))},e.\u0275dir=r.Lb({type:e,features:[r.Ab]}),e}(o.b)),A=new Map,k=new Map,D=new Map,j=new Map,I=new Map,T=new Map,R=new Map,P=new Map,L=function(){function t(){}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[o.c,a.a]]}),t}()},"26FU":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("mrSG"),r=n("K9Ia"),o=n("8g8A"),a=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return i.c(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(r.a)},"2Bdj":function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,"a",(function(){return i}))},"2WpN":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("mrSG"),r=n("FFOo"),o=n("pugT");function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.callback))},t}(),c=function(t){function e(e,n){var i=t.call(this,e)||this;return i.add(new o.a(n)),i}return i.c(e,t),e}(r.a)},"2ePl":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},"2h+y":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return c}));var i=n("mZtN"),r=n("CcnG"),o=function(){function t(t){this.sessionService=t}return t.prototype.canActivate=function(){return!!this.sessionService.getItem("token")},t.\u0275fac=function(e){return new(e||t)(r.ac(i.a))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t}(),a=function(){function t(t){this.sessionService=t}return t.prototype.canActivate=function(){return!!this.sessionService.getItem("lndUnlocked")},t.\u0275fac=function(e){return new(e||t)(r.ac(i.a))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t}(),s=function(){function t(t){this.sessionService=t}return t.prototype.canActivate=function(){return!0},t.\u0275fac=function(e){return new(e||t)(r.ac(i.a))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t}(),c=function(){function t(t){this.sessionService=t}return t.prototype.canActivate=function(){return!0},t.\u0275fac=function(e){return new(e||t)(r.ac(i.a))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t}()},"349r":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return o}));var i=n("CcnG");function r(t){return null!=t&&""+t!="false"}function o(t,e){return void 0===e&&(e=0),a(t)?Number(t):e}function a(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function s(t){return Array.isArray(t)?t:[t]}function c(t){return null==t?"":"string"==typeof t?t:t+"px"}function u(t){return t instanceof i.l?t.nativeElement:t}},"3X7Y":function(t,e,n){var i=n("u/Db");function r(t){this.mode=i.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){var e,n,i;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),i=parseInt(n,10),t.put(i,10);var r=this.data.length-e;r>0&&(n=this.data.substr(e),i=parseInt(n,10),t.put(i,3*r+1))},t.exports=r},"3fWJ":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},"49sm":function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},"4lrr":function(t,e,n){"use strict";n.d(e,"a",(function(){return S})),n.d(e,"b",(function(){return A})),n.d(e,"c",(function(){return j})),n.d(e,"d",(function(){return I})),n.d(e,"e",(function(){return T})),n.d(e,"f",(function(){return E}));var i=n("MQZC"),r=n("UM4T"),o=n("CcnG"),a=n("eO+G"),s=n("mrSG"),c=n("HHjO"),u=n("Ip0R"),l=n("K9Ia"),p=n("lYZG"),h=n("F/XL"),d=n("VnD/"),f=n("t9fZ"),m=n("p0Sj"),b=n("ihYY"),g=n("ScIB"),y=n("m47I");function v(t,e){}var _=function(){return function(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}(),w={dialogContainer:Object(b.n)("dialogContainer",[Object(b.k)("void, exit",Object(b.l)({opacity:0,transform:"scale(0.7)"})),Object(b.k)("enter",Object(b.l)({transform:"none"})),Object(b.m)("* => enter",Object(b.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(b.l)({transform:"none",opacity:1}))),Object(b.m)("* => void, * => exit",Object(b.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(b.l)({opacity:0})))])};function O(){throw Error("Attempting to attach dialog content after content is already attached")}var C=function(t){function e(e,n,i,r,a){var s=t.call(this)||this;return s._elementRef=e,s._focusTrapFactory=n,s._changeDetectorRef=i,s._config=a,s._elementFocusedBeforeDialogWasOpened=null,s._state="enter",s._animationStateChanged=new o.o,s.attachDomPortal=function(t){return s._portalOutlet.hasAttached()&&O(),s._setupFocusTrap(),s._portalOutlet.attachDomPortal(t)},s._ariaLabelledBy=a.ariaLabelledBy||null,s._document=r,s}return Object(s.c)(e,t),e.prototype.attachComponentPortal=function(t){return this._portalOutlet.hasAttached()&&O(),this._setupFocusTrap(),this._portalOutlet.attachComponentPortal(t)},e.prototype.attachTemplatePortal=function(t){return this._portalOutlet.hasAttached()&&O(),this._setupFocusTrap(),this._portalOutlet.attachTemplatePortal(t)},e.prototype._recaptureFocus=function(){this._containsFocus()||this._focusTrap.focusInitialElement()||this._elementRef.nativeElement.focus()},e.prototype._trapFocus=function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()},e.prototype._restoreFocus=function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()},e.prototype._setupFocusTrap=function(){var t=this;this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return t._elementRef.nativeElement.focus()})))},e.prototype._containsFocus=function(){var t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)},e.prototype._onAnimationDone=function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)},e.prototype._onAnimationStart=function(t){this._animationStateChanged.emit(t)},e.prototype._startExitAnimation=function(){this._state="exit",this._changeDetectorRef.markForCheck()},e.\u0275fac=function(t){return new(t||e)(o.Qb(o.l),o.Qb(y.i),o.Qb(o.h),o.Qb(u.d,8),o.Qb(_))},e.\u0275cmp=o.Kb({type:e,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var n;1&t&&o.Dc(r.c,!0),2&t&&o.vc(n=o.fc())&&(e._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&o.Ib("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(o.Eb("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),o.Lc("@dialogContainer",e._state))},features:[o.Ab],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&o.Fc(0,v,0,0,"ng-template",0)},directives:[r.c],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;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[w.dialogContainer]}}),e}(r.a),x=0,E=function(){function t(t,e,n){var i=this;void 0===n&&(n="mat-dialog-"+x++),this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new l.a,this._afterClosed=new l.a,this._beforeClosed=new l.a,this._state=0,e._id=n,e._animationStateChanged.pipe(Object(d.a)((function(t){return"done"===t.phaseName&&"enter"===t.toState})),Object(f.a)(1)).subscribe((function(){i._afterOpened.next(),i._afterOpened.complete()})),e._animationStateChanged.pipe(Object(d.a)((function(t){return"done"===t.phaseName&&"exit"===t.toState})),Object(f.a)(1)).subscribe((function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()})),t.detachments().subscribe((function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()})),t.keydownEvents().pipe(Object(d.a)((function(t){return t.keyCode===g.e&&!i.disableClose&&!Object(g.q)(t)}))).subscribe((function(t){t.preventDefault(),i.close()})),t.backdropClick().subscribe((function(){i.disableClose?i._containerInstance._recaptureFocus():i.close()}))}return t.prototype.close=function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Object(d.a)((function(t){return"start"===t.phaseName})),Object(f.a)(1)).subscribe((function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout((function(){return e._finishDialogClose()}),n.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1},t.prototype.afterOpened=function(){return this._afterOpened.asObservable()},t.prototype.afterClosed=function(){return this._afterClosed.asObservable()},t.prototype.beforeClosed=function(){return this._beforeClosed.asObservable()},t.prototype.backdropClick=function(){return this._overlayRef.backdropClick()},t.prototype.keydownEvents=function(){return this._overlayRef.keydownEvents()},t.prototype.updatePosition=function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this},t.prototype.updateSize=function(t,e){return void 0===t&&(t=""),void 0===e&&(e=""),this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this},t.prototype.addPanelClass=function(t){return this._overlayRef.addPanelClass(t),this},t.prototype.removePanelClass=function(t){return this._overlayRef.removePanelClass(t),this},t.prototype.getState=function(){return this._state},t.prototype._finishDialogClose=function(){this._state=2,this._overlayRef.dispose()},t.prototype._getPositionStrategy=function(){return this._overlayRef.getConfig().positionStrategy},t}(),S=new o.r("MatDialogData"),A=new o.r("mat-dialog-default-options"),k=new o.r("mat-dialog-scroll-strategy"),D={provide:k,deps:[i.c],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},j=function(){function t(t,e,n,i,r,o,a){var s=this;this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.a,this._afterOpenedAtThisLevel=new l.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(p.a)((function(){return s.openDialogs.length?s._afterAllClosed:s._afterAllClosed.pipe(Object(m.a)(void 0))})),this._scrollStrategy=r}return Object.defineProperty(t.prototype,"openDialogs",{get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"afterOpened",{get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_afterAllClosed",{get:function(){var t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!0,configurable:!0}),t.prototype.open=function(t,e){var n=this;if((e=function(t,e){return Object(s.a)(Object(s.a)({},e),t)}(e,this._defaultOptions||new _)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'+e.id+'" exists already. The dialog id must be unique.');var i=this._createOverlay(e),r=this._attachDialogContainer(i,e),o=this._attachDialogContent(t,r,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe((function(){return n._removeOpenDialog(o)})),this.afterOpened.next(o),o},t.prototype.closeAll=function(){this._closeDialogs(this.openDialogs)},t.prototype.getDialogById=function(t){return this.openDialogs.find((function(e){return e.id===t}))},t.prototype.ngOnDestroy=function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()},t.prototype._createOverlay=function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)},t.prototype._getOverlayConfig=function(t){var e=new i.d({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e},t.prototype._attachDialogContainer=function(t,e){var n=o.s.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:_,useValue:e}]}),i=new r.d(C,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance},t.prototype._attachDialogContent=function(t,e,n,i){var a=new E(n,e,i.id);if(t instanceof o.M)e.attachTemplatePortal(new r.i(t,null,{$implicit:i.data,dialogRef:a}));else{var s=this._createInjector(i,a,e),c=e.attachComponentPortal(new r.d(t,i.viewContainerRef,s));a.componentInstance=c.instance}return a.updateSize(i.width,i.height).updatePosition(i.position),a},t.prototype._createInjector=function(t,e,n){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:C,useValue:n},{provide:S,useValue:t.data},{provide:E,useValue:e}];return!t.direction||i&&i.get(c.b,null)||r.push({provide:c.b,useValue:{value:t.direction,change:Object(h.a)()}}),o.s.create({parent:i||this._injector,providers:r})},t.prototype._removeOpenDialog=function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},t.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}},t.prototype._closeDialogs=function(t){for(var e=t.length;e--;)t[e].close()},t.\u0275fac=function(e){return new(e||t)(o.ac(i.c),o.ac(o.s),o.ac(u.i,8),o.ac(A,8),o.ac(k),o.ac(t,12),o.ac(i.e))},t.\u0275prov=o.Mb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),I=function(){function t(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.type="button"}return t.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=function(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find((function(t){return t.id===n.id})):null}(this._elementRef,this._dialog.openDialogs))},t.prototype.ngOnChanges=function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)},t.\u0275fac=function(e){return new(e||t)(o.Qb(E,8),o.Qb(o.l),o.Qb(j))},t.\u0275dir=o.Lb({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&o.ec("click",(function(){return e.dialogRef.close(e.dialogResult)})),2&t&&o.Eb("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[o.Bb]}),t}(),T=function(){function t(){}return t.\u0275mod=o.Ob({type:t}),t.\u0275inj=o.Nb({factory:function(e){return new(e||t)},providers:[j,D],imports:[[i.f,r.h,a.i],a.i]}),t}()},"4r19":function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var i=n("4lrr"),r=n("wHSu"),o=n("cpEJ"),a=n("7o2P"),s=n("7nzP"),c=n("CcnG"),u=n("KELG"),l=n("21Lb"),p=n("Ip0R"),h=n("hUWP"),d=n("bwdU"),f=n("qLAh"),m=n("Nv++"),b=n("M4kG"),g=n("FZ+F"),y=n("O4ig"),v=n("dEYt");function _(t,e){if(1&t&&(c.Wb(0,"div",13),c.Wb(1,"div",26),c.Rb(2,"fa-icon",27),c.Wb(3,"span"),c.Hc(4),c.Vb(),c.Vb(),c.Vb()),2&t){var n=c.ic();c.Db(2),c.pc("icon",n.faExclamationTriangle),c.Db(2),c.Ic(n.invoice.warning_capacity)}}function w(t,e){1&t&&(c.Ub(0),c.Hc(1," (zero amount) "),c.Tb())}function O(t,e){if(1&t&&(c.Wb(0,"div"),c.Rb(1,"mat-divider",18),c.Wb(2,"div",13),c.Wb(3,"div",19),c.Wb(4,"h4",15),c.Hc(5,"Payment Hash"),c.Vb(),c.Wb(6,"span",20),c.Hc(7),c.Vb(),c.Vb(),c.Vb(),c.Rb(8,"mat-divider",18),c.Wb(9,"div",13),c.Wb(10,"div",14),c.Wb(11,"h4",15),c.Hc(12,"Status"),c.Vb(),c.Wb(13,"span",20),c.Hc(14),c.jc(15,"titlecase"),c.Vb(),c.Vb(),c.Wb(16,"div",14),c.Wb(17,"h4",15),c.Hc(18,"Label"),c.Vb(),c.Wb(19,"span",20),c.Hc(20),c.Vb(),c.Vb(),c.Vb(),c.Rb(21,"mat-divider",18),c.Wb(22,"div",13),c.Wb(23,"div",14),c.Wb(24,"h4",15),c.Hc(25,"Amount Received"),c.Vb(),c.Wb(26,"span",20),c.Hc(27),c.jc(28,"number"),c.Vb(),c.Vb(),c.Wb(29,"div",14),c.Wb(30,"h4",15),c.Hc(31,"Date Settled"),c.Vb(),c.Wb(32,"span",16),c.Hc(33),c.Vb(),c.Vb(),c.Vb(),c.Rb(34,"mat-divider",18),c.Vb()),2&t){var n=c.ic();c.Db(7),c.Ic(n.invoice.payment_hash),c.Db(7),c.Ic(c.kc(15,6,n.invoice.status)),c.Db(6),c.Ic(n.invoice.label),c.Db(7),c.Kc("",c.kc(28,8,n.invoice.msatoshi_received/1e3)," ",n.invoice.msatoshi_received?"Sats":"",""),c.Db(6),c.Ic(n.invoice.paid_at_str||"-")}}function C(t,e){1&t&&(c.Wb(0,"p"),c.Hc(1,"Show Advanced"),c.Vb())}function x(t,e){1&t&&(c.Wb(0,"p"),c.Hc(1,"Hide Advanced"),c.Vb())}var E=function(t){return{"display-none":t}},S=function(t){return{"xs-scroll-y":t}},A=function(t,e){return{"mt-2":t,"mt-1":e}},k=function(){function t(t,e,n,i,o){this.dialogRef=t,this.data=e,this.logger=n,this.commonService=i,this.snackBar=o,this.faReceipt=r.C,this.faExclamationTriangle=r.n,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.o}return t.prototype.ngOnInit=function(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.o.XS&&(this.qrWidth=220)},t.prototype.onClose=function(){this.dialogRef.close(!1)},t.prototype.onShowAdvanced=function(){this.showAdvanced=!this.showAdvanced},t.prototype.onCopyPayment=function(t){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+t)},t.\u0275fac=function(e){return new(e||t)(c.Qb(i.f),c.Qb(i.a),c.Qb(o.b),c.Qb(a.a),c.Qb(u.b))},t.\u0275cmp=c.Kb({type:t,selectors:[["rtl-cl-invoice-information"]],decls:51,vars:38,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","65",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-1"],["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"],[3,"ngClass"],["fxLayout","column"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,e){if(1&t&&(c.Wb(0,"div",0),c.Wb(1,"div",1),c.Rb(2,"qrcode",2),c.Vb(),c.Wb(3,"div",3),c.Wb(4,"mat-card-header",4),c.Wb(5,"div",5),c.Rb(6,"fa-icon",6),c.Wb(7,"span",7),c.Hc(8),c.Vb(),c.Vb(),c.Wb(9,"button",8),c.ec("click",(function(){return e.onClose()})),c.Hc(10,"X"),c.Vb(),c.Vb(),c.Wb(11,"mat-card-content",9),c.Wb(12,"div",10),c.Wb(13,"div",11),c.Rb(14,"qrcode",2),c.Vb(),c.Fc(15,_,5,2,"div",12),c.Wb(16,"div",13),c.Wb(17,"div",14),c.Wb(18,"h4",15),c.Hc(19),c.Vb(),c.Wb(20,"span",16),c.Hc(21),c.jc(22,"number"),c.Fc(23,w,2,0,"ng-container",17),c.Vb(),c.Vb(),c.Wb(24,"div",14),c.Wb(25,"h4",15),c.Hc(26,"Date Expiry"),c.Vb(),c.Wb(27,"span",16),c.Hc(28),c.Vb(),c.Vb(),c.Vb(),c.Rb(29,"mat-divider",18),c.Wb(30,"div",13),c.Wb(31,"div",19),c.Wb(32,"h4",15),c.Hc(33,"Description"),c.Vb(),c.Wb(34,"span",16),c.Hc(35),c.Vb(),c.Vb(),c.Vb(),c.Rb(36,"mat-divider",18),c.Wb(37,"div",13),c.Wb(38,"div",19),c.Wb(39,"h4",15),c.Hc(40,"Invoice"),c.Vb(),c.Wb(41,"span",20),c.Hc(42),c.Vb(),c.Vb(),c.Vb(),c.Fc(43,O,35,10,"div",17),c.Wb(44,"div",21),c.Wb(45,"button",22),c.ec("click",(function(){return e.onShowAdvanced()})),c.Fc(46,C,2,0,"p",23),c.Fc(47,x,2,0,"ng-template",null,24,c.Gc),c.Vb(),c.Wb(49,"button",25),c.ec("copied",(function(t){return e.onCopyPayment(t)})),c.Hc(50,"Copy Invoice"),c.Vb(),c.Vb(),c.Vb(),c.Vb(),c.Vb(),c.Vb()),2&t){var n=c.wc(48);c.Db(1),c.pc("ngClass",c.tc(29,E,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),c.Db(1),c.pc("qrdata",e.invoice.bolt11)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),c.Db(4),c.pc("icon",e.faReceipt),c.Db(2),c.Ic(e.screenSize===e.screenSizeEnum.XS?e.newlyAdded?"Created":"Invoice":e.newlyAdded?"Invoice Created":"Invoice Information"),c.Db(3),c.pc("ngClass",c.tc(31,S,e.screenSize===e.screenSizeEnum.XS)),c.Db(2),c.pc("ngClass",c.tc(33,E,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),c.Db(1),c.pc("qrdata",e.invoice.bolt11)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),c.Db(1),c.pc("ngIf",e.invoice.warning_capacity),c.Db(4),c.Ic(e.screenSize===e.screenSizeEnum.XS?"Amount":"Amount Requested"),c.Db(2),c.Jc("",c.kc(22,27,e.invoice.msatoshi/1e3||0)," Sats"),c.Db(2),c.pc("ngIf",!e.invoice.msatoshi),c.Db(5),c.Ic(e.invoice.expires_at_str),c.Db(7),c.Ic(e.invoice.description||"-"),c.Db(7),c.Ic(e.invoice.bolt11),c.Db(1),c.pc("ngIf",e.showAdvanced),c.Db(1),c.pc("ngClass",c.uc(35,A,!e.showAdvanced,e.showAdvanced)),c.Db(2),c.pc("ngIf",!e.showAdvanced)("ngIfElse",n),c.Db(3),c.pc("payload",e.invoice.bolt11)}},directives:[l.c,l.b,l.a,p.l,h.a,d.a,f.c,m.a,b.a,f.b,p.n,g.a,y.a,v.a],pipes:[p.e,p.w],styles:[""]}),t}()},"60iU":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("G5J1"),r=n("F/XL"),o=n("XlPw"),a=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Object(r.a)(this.value);case"E":return Object(o.a)(this.error);case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},"67Y/":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("mrSG"),r=n("FFOo");function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.project=n,r.count=0,r.thisArg=i||r,r}return i.c(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(r.a)},"6ahw":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("iLxQ"),r=n("DKTb"),o={closed:!0,next:function(t){},error:function(t){if(i.a.useDeprecatedSynchronousErrorHandling)throw t;Object(r.a)(t)},complete:function(){}}},"6blF":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("FFOo"),r=n("L/V9"),o=n("6ahw"),a=n("xTla"),s=n("y3By"),c=n("iLxQ"),u=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var a=this.operator,s=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[r.a])return t[r.a]()}return t||e||n?new i.a(t,e,n):new i.a(o.a)}(t,e,n);if(s.add(a?a.call(s,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t.destination;if(t.closed||t.isStopped)return!1;t=e&&e instanceof i.a?e:null}return!0}(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=l(e))((function(e,i){var r;r=n.subscribe((function(e){try{t(e)}catch(n){i(n),r&&r.unsubscribe()}}),i,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;er?-1:ir?1:0}))},t.prototype.camelCase=function(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(function(t,e){return 0==e?t.toLowerCase():t.toUpperCase()})).replace(/\s+/g,"")},t.prototype.titleCase=function(t){return t.charAt(0).toUpperCase()+t.substring(1).toLowerCase()},t.prototype.convertCurrency=function(t,e,n,a){var s=this,c=(new Date).valueOf();return a&&n?this.conversionData.data&&this.conversionData.last_fetched&&c+i[0]||+n[0]==+i[0]&&+n[1]>+i[1]||+n[0]==+i[0]&&+n[1]==+i[1]&&+n[2]>=+i[2]},t.\u0275fac=function(e){return new(e||t)(c.ac(a.a))},t.\u0275prov=c.Mb({token:t,factory:t.\u0275fac}),t}()},"8KZq":function(t,e,n){"use strict";n.d(e,"a",(function(){return Q})),n.d(e,"b",(function(){return Y})),n.d(e,"c",(function(){return U}));var i=n("MQZC"),r=n("Ip0R"),o=n("CcnG"),a=n("eO+G"),s=n("dlst"),c=n("tzrX"),u=n("mrSG"),l=n("m47I"),p=n("349r"),h=n("e9QY"),d=n("ScIB"),f=n("K9Ia"),m=n("lYZG"),b=n("p0ib"),g=n("p0Sj"),y=n("15JJ"),v=n("t9fZ"),_=n("VnD/"),w=n("67Y/"),O=n("ad02"),C=n("ny24"),x=n("ihYY"),E=n("HHjO"),S=n("gIcY"),A=["trigger"],k=["panel"];function D(t,e){if(1&t&&(o.Wb(0,"span",8),o.Hc(1),o.Vb()),2&t){var n=o.ic();o.Db(1),o.Ic(n.placeholder||"\xa0")}}function j(t,e){if(1&t&&(o.Wb(0,"span"),o.Hc(1),o.Vb()),2&t){var n=o.ic(2);o.Db(1),o.Ic(n.triggerValue||"\xa0")}}function I(t,e){1&t&&o.nc(0,0,["*ngSwitchCase","true"])}function T(t,e){if(1&t&&(o.Wb(0,"span",9),o.Fc(1,j,2,1,"span",10),o.Fc(2,I,1,0,void 0,11),o.Vb()),2&t){var n=o.ic();o.pc("ngSwitch",!!n.customTrigger),o.Db(2),o.pc("ngSwitchCase",!0)}}function R(t,e){if(1&t){var n=o.Xb();o.Wb(0,"div",12),o.Wb(1,"div",13,14),o.ec("@transformPanel.done",(function(t){return o.yc(n),o.ic()._panelDoneAnimatingStream.next(t.toState)}))("keydown",(function(t){return o.yc(n),o.ic()._handleKeydown(t)})),o.nc(3,1),o.Vb(),o.Vb()}if(2&t){var i=o.ic();o.pc("@transformPanelWrap",void 0),o.Db(1),o.Gb("mat-select-panel ",i._getPanelTheme(),""),o.Ec("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),o.pc("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),o.Eb("id",i.id+"-panel")}}var P=[[["mat-select-trigger"]],"*"],L=["mat-select-trigger","*"],F={transformPanelWrap:Object(x.n)("transformPanelWrap",[Object(x.m)("* => void",Object(x.i)("@transformPanel",[Object(x.f)()],{optional:!0}))]),transformPanel:Object(x.n)("transformPanel",[Object(x.k)("void",Object(x.l)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Object(x.k)("showing",Object(x.l)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Object(x.k)("showing-multiple",Object(x.l)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Object(x.m)("void => *",Object(x.e)("120ms cubic-bezier(0, 0, 0.2, 1)")),Object(x.m)("* => void",Object(x.e)("100ms 25ms linear",Object(x.l)({opacity:0})))])},N=0,M=new o.r("mat-select-scroll-strategy"),V=new o.r("MAT_SELECT_CONFIG"),B={provide:M,deps:[i.c],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},H=function(){return function(t,e){this.source=t,this.value=e}}(),W=function(){return function(t,e,n,i,r){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}(),z=Object(a.y)(Object(a.C)(Object(a.z)(Object(a.A)(W)))),U=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Lb({type:t,selectors:[["mat-select-trigger"]]}),t}(),Q=function(t){function e(e,n,i,r,a,s,c,l,p,h,d,O,C,x){var E=t.call(this,a,r,c,l,h)||this;return E._viewportRuler=e,E._changeDetectorRef=n,E._ngZone=i,E._dir=s,E._parentFormField=p,E.ngControl=h,E._liveAnnouncer=C,E._panelOpen=!1,E._required=!1,E._scrollTop=0,E._multiple=!1,E._compareWith=function(t,e){return t===e},E._uid="mat-select-"+N++,E._destroy=new f.a,E._triggerFontSize=0,E._onChange=function(){},E._onTouched=function(){},E._optionIds="",E._transformOrigin="top",E._panelDoneAnimatingStream=new f.a,E._offsetY=0,E._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],E._disableOptionCentering=!1,E._focused=!1,E.controlType="mat-select",E.ariaLabel="",E.optionSelectionChanges=Object(m.a)((function(){var t=E.options;return t?t.changes.pipe(Object(g.a)(t),Object(y.a)((function(){return b.a.apply(void 0,Object(u.f)(t.map((function(t){return t.onSelectionChange}))))}))):E._ngZone.onStable.asObservable().pipe(Object(v.a)(1),Object(y.a)((function(){return E.optionSelectionChanges})))})),E.openedChange=new o.o,E._openedStream=E.openedChange.pipe(Object(_.a)((function(t){return t})),Object(w.a)((function(){}))),E._closedStream=E.openedChange.pipe(Object(_.a)((function(t){return!t})),Object(w.a)((function(){}))),E.selectionChange=new o.o,E.valueChange=new o.o,E.ngControl&&(E.ngControl.valueAccessor=E),E._scrollStrategyFactory=O,E._scrollStrategy=E._scrollStrategyFactory(),E.tabIndex=parseInt(d)||0,E.id=E.id,x&&(null!=x.disableOptionCentering&&(E.disableOptionCentering=x.disableOptionCentering),null!=x.typeaheadDebounceInterval&&(E.typeaheadDebounceInterval=x.typeaheadDebounceInterval)),E}return Object(u.c)(e,t),Object.defineProperty(e.prototype,"focused",{get:function(){return this._focused||this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Object(p.c)(t),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Object(p.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableOptionCentering",{get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=Object(p.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compareWith",{get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){t!==this._value&&(this.writeValue(t),this._value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"typeaheadDebounceInterval",{get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=Object(p.f)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._selectionModel=new h.c(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(O.a)(),Object(C.a)(this._destroy)).subscribe((function(){t.panelOpen?(t._scrollTop=0,t.openedChange.emit(!0)):(t.openedChange.emit(!1),t.overlayDir.offsetX=0,t._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(Object(C.a)(this._destroy)).subscribe((function(){t._panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())}))},e.prototype.ngAfterContentInit=function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe(Object(C.a)(this._destroy)).subscribe((function(t){t.added.forEach((function(t){return t.select()})),t.removed.forEach((function(t){return t.deselect()}))})),this.options.changes.pipe(Object(g.a)(null),Object(C.a)(this._destroy)).subscribe((function(){t._resetOptions(),t._initializeSelection()}))},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},e.prototype.ngOnChanges=function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)},e.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},e.prototype.toggle=function(){this.panelOpen?this.close():this.open()},e.prototype.open=function(){var t=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Object(v.a)(1)).subscribe((function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize=t._triggerFontSize+"px")})))},e.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},e.prototype.writeValue=function(t){this.options&&this._setSelectionByValue(t)},e.prototype.registerOnChange=function(t){this._onChange=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(e.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map((function(t){return t.viewValue}));return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!0,configurable:!0}),e.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},e.prototype._handleKeydown=function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))},e.prototype._handleClosedKeydown=function(t){var e=t.keyCode,n=e===d.b||e===d.n||e===d.g||e===d.k,i=e===d.d||e===d.l,r=this._keyManager;if(!r.isTyping()&&i&&!Object(d.q)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;e===d.f||e===d.c?(e===d.f?r.setFirstItemActive():r.setLastItemActive(),t.preventDefault()):r.onKeydown(t);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}},e.prototype._handleOpenKeydown=function(t){var e=this._keyManager,n=t.keyCode,i=n===d.b||n===d.n,r=e.isTyping();if(n===d.f||n===d.c)t.preventDefault(),n===d.f?e.setFirstItemActive():e.setLastItemActive();else if(i&&t.altKey)t.preventDefault(),this.close();else if(r||n!==d.d&&n!==d.l||!e.activeItem||Object(d.q)(t))if(!r&&this._multiple&&n===d.a&&t.ctrlKey){t.preventDefault();var o=this.options.some((function(t){return!t.disabled&&!t.selected}));this.options.forEach((function(t){t.disabled||(o?t.select():t.deselect())}))}else{var a=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==a&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()},e.prototype._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())},e.prototype._onBlur=function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},e.prototype._onAttached=function(){var t=this;this.overlayDir.positionChange.pipe(Object(v.a)(1)).subscribe((function(){t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop}))},e.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(e.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!0,configurable:!0}),e.prototype._initializeSelection=function(){var t=this;Promise.resolve().then((function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()}))},e.prototype._setSelectionByValue=function(t){var e=this;if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach((function(t){return e._selectValue(t)})),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(t);n?this._keyManager.setActiveItem(n):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()},e.prototype._selectValue=function(t){var e=this,n=this.options.find((function(n){try{return null!=n.value&&e._compareWith(n.value,t)}catch(i){return Object(o.X)()&&console.warn(i),!1}}));return n&&this._selectionModel.select(n),n},e.prototype._initKeyManager=function(){var t=this;this._keyManager=new l.b(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(C.a)(this._destroy)).subscribe((function(){t.panelOpen&&(!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close())})),this._keyManager.change.pipe(Object(C.a)(this._destroy)).subscribe((function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()}))},e.prototype._resetOptions=function(){var t=this,e=Object(b.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(C.a)(e)).subscribe((function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())})),b.a.apply(void 0,Object(u.f)(this.options.map((function(t){return t._stateChanges})))).pipe(Object(C.a)(e)).subscribe((function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})),this._setOptionIds()},e.prototype._onSelect=function(t,e){var n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()},e.prototype._sortValues=function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort((function(n,i){return t.sortComparator?t.sortComparator(n,i,e):e.indexOf(n)-e.indexOf(i)})),this.stateChanges.next()}},e.prototype._propagateChanges=function(t){var e;e=this.multiple?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new H(this,e)),this._changeDetectorRef.markForCheck()},e.prototype._setOptionIds=function(){this._optionIds=this.options.map((function(t){return t.id})).join(" ")},e.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))},e.prototype._scrollActiveOptionIntoView=function(){var t=this._keyManager.activeItemIndex||0,e=Object(a.v)(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=Object(a.w)(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)},e.prototype.focus=function(t){this._elementRef.nativeElement.focus(t)},e.prototype._getOptionIndex=function(t){return this.options.reduce((function(e,n,i){return void 0!==e?e:t===n?i:void 0}),void 0)},e.prototype._calculateOverlayPosition=function(){var t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n,r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=Object(a.v)(r,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(r,o,i),this._offsetY=this._calculateOverlayOffsetY(r,o,i),this._checkOverlayWithinViewport(i)},e.prototype._calculateOverlayScroll=function(t,e,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)},e.prototype._getAriaLabel=function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},e.prototype._getAriaLabelledby=function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null},e.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},e.prototype._calculateOverlayOffsetX=function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)t=40;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}i||(t*=-1);var a=0-(e.left+t-(i?r:0)),s=e.right+t-n.width+(i?0:r);a>0?t+=a+8:s>0&&(t-=s+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()},e.prototype._calculateOverlayOffsetY=function(t,e,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this._disableOptionCentering?0:(i=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):e-r/2,Math.round(-1*i-o))},e.prototype._checkOverlayWithinViewport=function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,t):this._transformOrigin=this._getOriginBasedOnOption()},e.prototype._adjustPanelUp=function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},e.prototype._adjustPanelDown=function(t,e,n){var i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},e.prototype._getOriginBasedOnOption=function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-e+t/2)+"px 0px"},e.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},e.prototype._getItemHeight=function(){return 3*this._triggerFontSize},e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(o.Qb(c.e),o.Qb(o.h),o.Qb(o.A),o.Qb(a.d),o.Qb(o.l),o.Qb(E.b,8),o.Qb(S.n,8),o.Qb(S.g,8),o.Qb(s.a,8),o.Qb(S.k,10),o.bc("tabindex"),o.Qb(M),o.Qb(l.k),o.Qb(V,8))},e.\u0275cmp=o.Kb({type:e,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(o.Jb(n,U,!0),o.Jb(n,a.n,!0),o.Jb(n,a.m,!0)),2&t&&(o.vc(i=o.fc())&&(e.customTrigger=i.first),o.vc(i=o.fc())&&(e.options=i),o.vc(i=o.fc())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(o.Mc(A,!0),o.Mc(k,!0),o.Mc(i.a,!0)),2&t&&(o.vc(n=o.fc())&&(e.trigger=n.first),o.vc(n=o.fc())&&(e.panel=n.first),o.vc(n=o.fc())&&(e.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&o.ec("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(o.Eb("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),o.Hb("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",id:"id",panelClass:"panelClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[o.Cb([{provide:s.d,useExisting:e},{provide:a.g,useExisting:e}]),o.Ab,o.Bb],ngContentSelectors:L,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",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,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(o.oc(P),o.Wb(0,"div",0,1),o.ec("click",(function(){return e.toggle()})),o.Wb(3,"div",2),o.Fc(4,D,2,1,"span",3),o.Fc(5,T,3,2,"span",4),o.Vb(),o.Wb(6,"div",5),o.Rb(7,"div",6),o.Vb(),o.Vb(),o.Fc(8,R,4,11,"ng-template",7),o.ec("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){var n=o.wc(1);o.Db(3),o.pc("ngSwitch",e.empty),o.Db(1),o.pc("ngSwitchCase",!0),o.Db(1),o.pc("ngSwitchCase",!1),o.Db(3),o.pc("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.b,r.p,r.q,i.a,r.r,r.l],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[F.transformPanelWrap,F.transformPanel]},changeDetection:0}),e}(z),Y=function(){function t(){}return t.\u0275mod=o.Ob({type:t}),t.\u0275inj=o.Nb({factory:function(e){return new(e||t)},providers:[B],imports:[[r.c,i.f,a.o,a.i],c.b,s.e,a.o,a.i]}),t}()},"8g8A":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},"9Z1F":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("mrSG"),r=n("MGBS"),o=n("rPjj"),a=n("zotm");function s(t){return function(e){var n=new c(t),i=e.lift(n);return n.caught=i}}var c=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.selector=n,r.caught=i,r}return i.c(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(s){return void t.prototype.error.call(this,s)}this._unsubscribeAndRecycle();var i=new o.a(this,void 0,void 0);this.add(i);var r=Object(a.a)(this,n,void 0,void 0,i);r!==i&&this.add(r)}},e}(r.a)},A5yv:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return StoreDevtoolsModule}));var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("mrSG"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("CcnG"),_ngrx_store__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("yGQT"),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("G5J1"),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("6blF"),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("F/XL"),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("p0ib"),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("zo3G"),rxjs__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("S5bw"),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("S1nX"),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("VnD/"),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("67Y/"),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("Phjn"),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("0zd0"),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("Gi3i"),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("9Z1F"),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("t9fZ"),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("ny24"),rxjs_operators__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("15JJ"),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("0mNj"),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("mZXl"),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("/PH2"),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("dC0D"),StoreDevtoolsConfig=function(){return function(){this.maxAge=!1}}(),STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.r("@ngrx/devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.r("@ngrx/devtools Initial Config");function noMonitor(){return null}var DEFAULT_NAME="NgRx Store DevTools";function createConfig(t){var e={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},n="function"==typeof t?t():t,i=Object.assign({},e,{features:n.features||!!n.logOnly&&{pause:!0,export:!0,test:!0}||e.features},n);if(i.maxAge&&i.maxAge<2)throw new Error("Devtools 'maxAge' cannot be less than 2, got "+i.maxAge);return i}var 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",PerformAction=function(){return function(t,e){if(this.action=t,this.timestamp=e,this.type=PERFORM_ACTION,void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}(),Refresh=function(){return function(){this.type=REFRESH}}(),Reset=function(){return function(t){this.timestamp=t,this.type=RESET}}(),Rollback=function(){return function(t){this.timestamp=t,this.type=ROLLBACK}}(),Commit=function(){return function(t){this.timestamp=t,this.type=COMMIT}}(),Sweep=function(){return function(){this.type=SWEEP}}(),ToggleAction=function(){return function(t){this.id=t,this.type=TOGGLE_ACTION}}(),SetActionsActive=function(){return function(t,e,n){void 0===n&&(n=!0),this.start=t,this.end=e,this.active=n,this.type=SET_ACTIONS_ACTIVE}}(),JumpToState=function(){return function(t){this.index=t,this.type=JUMP_TO_STATE}}(),JumpToAction=function(){return function(t){this.actionId=t,this.type=JUMP_TO_ACTION}}(),ImportState=function(){return function(t){this.nextLiftedState=t,this.type=IMPORT_STATE}}(),LockChanges=function(){return function(t){this.status=t,this.type=LOCK_CHANGES}}(),PauseRecording=function(){return function(t){this.status=t,this.type=PAUSE_RECORDING}}(),DevtoolsDispatcher=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(tslib__WEBPACK_IMPORTED_MODULE_0__.c)(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Mb({token:e,factory:function(t){return e.\u0275fac(t)}});var n=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yb(e);return e}(_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.a);function difference(t,e){return t.filter((function(t){return e.indexOf(t)<0}))}function unliftState(t){var e=t.computedStates,n=t.currentStateIndex;return n>=e.length?e[e.length-1].state:e[n].state}function unliftAction(t){return t.actionsById[t.nextActionId-1]}function liftAction(t){return new PerformAction(t,+Date.now())}function sanitizeActions(t,e){return Object.keys(e).reduce((function(n,i){var r=Number(i);return n[r]=sanitizeAction(t,e[r],r),n}),{})}function sanitizeAction(t,e,n){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},e),{action:t(e.action,n)})}function sanitizeStates(t,e){return e.map((function(e,n){return{state:sanitizeState(t,e.state,n),error:e.error}}))}function sanitizeState(t,e,n){return t(e,n)}function shouldFilterActions(t){return t.predicate||t.actionsSafelist||t.actionsBlocklist}function filterLiftedState(t,e,n,i){var r=[],o={},a=[];return t.stagedActionIds.forEach((function(s,c){var u=t.actionsById[s];u&&(c&&isActionFiltered(t.computedStates[c],u,e,n,i)||(o[s]=u,r.push(s),a.push(t.computedStates[c])))})),Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},t),{stagedActionIds:r,actionsById:o,computedStates:a})}function isActionFiltered(t,e,n,i,r){var o=n&&!n(t,e.action),a=i&&!e.action.type.match(i.map((function(t){return escapeRegExp(t)})).join("|")),s=r&&e.action.type.match(r.map((function(t){return escapeRegExp(t)})).join("|"));return o||a||s}function escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.r("Redux Devtools Extension"),DevtoolsExtension=function(){function DevtoolsExtension(t,e,n){this.config=e,this.dispatcher=n,this.devtoolsExtension=t,this.createActionStreams()}return DevtoolsExtension.prototype.notify=function(t,e){var n=this;if(this.devtoolsExtension)if(t.type===PERFORM_ACTION){if(e.isLocked||e.isPaused)return;var i=unliftState(e);if(shouldFilterActions(this.config)&&isActionFiltered(i,t,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;var r=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,i,e.currentStateIndex):i,o=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,t,e.nextActionId):t;this.sendToReduxDevtools((function(){return n.extensionConnection.send(o,r)}))}else{var a=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},e),{stagedActionIds:e.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,e.actionsById):e.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,e.computedStates):e.computedStates});this.sendToReduxDevtools((function(){return n.devtoolsExtension.send(null,a,n.getExtensionConfig(n.config))}))}},DevtoolsExtension.prototype.createChangesObservable=function(){var t=this;return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_4__.a((function(e){var n=t.devtoolsExtension.connect(t.getExtensionConfig(t.config));return t.extensionConnection=n,n.init(),n.subscribe((function(t){return e.next(t)})),n.unsubscribe})):Object(rxjs__WEBPACK_IMPORTED_MODULE_3__.b)()},DevtoolsExtension.prototype.createActionStreams=function(){var t=this,e=this.createChangesObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)()),n=e.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)((function(t){return t.type===ExtensionActionTypes.START}))),i=e.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)((function(t){return t.type===ExtensionActionTypes.STOP}))),r=e.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)((function(t){return t.type===ExtensionActionTypes.DISPATCH})),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)((function(e){return t.unwrapAction(e.payload)})),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a)((function(e){return e.type===IMPORT_STATE?t.dispatcher.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)((function(t){return t.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.l})),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)((function(){return e})),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)((function(){return Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(e)})),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(1)):Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(e)}))),o=e.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)((function(t){return t.type===ExtensionActionTypes.ACTION})),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)((function(e){return t.unwrapAction(e.payload)}))).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(i)),a=r.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(i));this.start$=n.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(i)),this.actions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)((function(){return o}))),this.liftedActions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)((function(){return a})))},DevtoolsExtension.prototype.unwrapAction=function(action){return"string"==typeof action?eval("("+action+")"):action},DevtoolsExtension.prototype.getExtensionConfig=function(t){var e={name:t.name,features:t.features,serialize:t.serialize};return!1!==t.maxAge&&(e.maxAge=t.maxAge),e},DevtoolsExtension.prototype.sendToReduxDevtools=function(t){try{t()}catch(e){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",e)}},DevtoolsExtension.\u0275fac=function(t){return new(t||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.ac(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ac(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ac(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Mb({token:DevtoolsExtension,factory:function(t){return DevtoolsExtension.\u0275fac(t)}}),DevtoolsExtension}(),INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.b},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(t,e,n,i,r){if(i)return{state:n,error:"Interrupted by an error up the chain"};var o,a=n;try{a=t(n,e)}catch(s){o=s.toString(),r.handleError(s.stack||s)}return{state:a,error:o}}function recomputeStates(t,e,n,i,r,o,a,s,c){if(e>=t.length&&t.length===o.length)return t;for(var u=t.slice(0,e),l=o.length-(c?1:0),p=e;p-1?f:computeNextEntry(n,d,m,b,s);u.push(g)}return c&&u.push(t[t.length-1]),u}function liftInitialState(t,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:t,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(t,e,n,i,r){return void 0===r&&(r={}),function(o){return function(a,s){var c,u=a||e,l=u.monitorState,p=u.actionsById,h=u.nextActionId,d=u.stagedActionIds,f=u.skippedActionIds,m=u.committedState,b=u.currentStateIndex,g=u.computedStates,y=u.isLocked,v=u.isPaused;function _(t){for(var e=t,n=d.slice(1,e+1),i=0;ie?b-e:0}function w(){p={0:liftAction(INIT_ACTION)},h=1,d=[0],f=[],m=g[b].state,b=0,g=[]}a||(p=Object.create(p));var O=0;switch(s.type){case LOCK_CHANGES:y=s.status,O=1/0;break;case PAUSE_RECORDING:(v=s.status)?(d=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.f)(d,[h]),p[h]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),h++,O=d.length-1,g=g.concat(g[g.length-1]),b===d.length-2&&b++,O=1/0):w();break;case RESET:p={0:liftAction(INIT_ACTION)},h=1,d=[0],f=[],m=t,b=0,g=[];break;case COMMIT:w();break;case ROLLBACK:p={0:liftAction(INIT_ACTION)},h=1,d=[0],f=[],b=0,g=[];break;case TOGGLE_ACTION:var C=s.id,x=f.indexOf(C);f=-1===x?Object(tslib__WEBPACK_IMPORTED_MODULE_0__.f)([C],f):f.filter((function(t){return t!==C})),O=d.indexOf(C);break;case SET_ACTIONS_ACTIVE:for(var E=s.start,S=s.end,A=s.active,k=[],D=E;Dr.maxAge&&(g=recomputeStates(g,O,o,m,p,d,f,n,v),_(d.length-r.maxAge),O=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_2__.l:g.filter((function(t){return t.error})).length>0?(O=0,r.maxAge&&d.length>r.maxAge&&(g=recomputeStates(g,O,o,m,p,d,f,n,v),_(d.length-r.maxAge),O=1/0)):(v||y||(b===d.length-1&&b++,I=h++,p[I]=new PerformAction(s,+Date.now()),d=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.f)(d,[I]),g=recomputeStates(g,O=d.length-1,o,m,p,d,f,n,v)),g=g.map((function(t){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},t),{state:o(t.state,RECOMPUTE_ACTION)})})),b=d.length-1,r.maxAge&&d.length>r.maxAge&&_(d.length-r.maxAge),O=1/0);break;default:O=1/0}return g=recomputeStates(g,O,o,m,p,d,f,n,v),{monitorState:l=i(l,s),actionsById:p,nextActionId:h,stagedActionIds:d,skippedActionIds:f,committedState:m,currentStateIndex:b,computedStates:g,isLocked:y,isPaused:v}}}}var StoreDevtools=function(){function t(t,e,n,i,r,o,a,s){var c=this,u=liftInitialState(a,s.monitor),l=liftReducerWith(a,u,o,s.monitor,s),p=Object(rxjs__WEBPACK_IMPORTED_MODULE_6__.a)(Object(rxjs__WEBPACK_IMPORTED_MODULE_6__.a)(e.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.a)(1)),i.actions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(liftAction)),t,i.liftedActions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.b)(rxjs__WEBPACK_IMPORTED_MODULE_7__.a)),h=n.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(l)),d=new rxjs__WEBPACK_IMPORTED_MODULE_8__.a(1),f=p.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.a)(h),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.a)((function(t,e){var n=t.state,r=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.e)(e,2),o=r[0],a=(0,r[1])(n,o);return o.type!==PERFORM_ACTION&&shouldFilterActions(s)&&(a=filterLiftedState(a,s.predicate,s.actionsSafelist,s.actionsBlocklist)),i.notify(o,a),{state:a,action:o}}),{state:u,action:null})).subscribe((function(t){var e=t.action;d.next(t.state),e.type===PERFORM_ACTION&&r.next(e.action)})),m=i.start$.subscribe((function(){c.refresh()})),b=d.asObservable(),g=b.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(unliftState));this.extensionStartSubscription=m,this.stateSubscription=f,this.dispatcher=t,this.liftedState=b,this.state=g}return t.prototype.dispatch=function(t){this.dispatcher.next(t)},t.prototype.next=function(t){this.dispatcher.next(t)},t.prototype.error=function(t){},t.prototype.complete=function(){},t.prototype.performAction=function(t){this.dispatch(new PerformAction(t,+Date.now()))},t.prototype.refresh=function(){this.dispatch(new Refresh)},t.prototype.reset=function(){this.dispatch(new Reset(+Date.now()))},t.prototype.rollback=function(){this.dispatch(new Rollback(+Date.now()))},t.prototype.commit=function(){this.dispatch(new Commit(+Date.now()))},t.prototype.sweep=function(){this.dispatch(new Sweep)},t.prototype.toggleAction=function(t){this.dispatch(new ToggleAction(t))},t.prototype.jumpToAction=function(t){this.dispatch(new JumpToAction(t))},t.prototype.jumpToState=function(t){this.dispatch(new JumpToState(t))},t.prototype.importState=function(t){this.dispatch(new ImportState(t))},t.prototype.lockChanges=function(t){this.dispatch(new LockChanges(t))},t.prototype.pauseRecording=function(t){this.dispatch(new PauseRecording(t))},t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.ac(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ac(_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.a),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ac(_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.e),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ac(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ac(_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.f),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ac(_angular_core__WEBPACK_IMPORTED_MODULE_1__.n),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ac(_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.c),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ac(STORE_DEVTOOLS_CONFIG))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Mb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.r("Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(t,e){return Boolean(t)||e.monitor!==noMonitor}function createReduxDevtoolsExtension(){return"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null}function createStateObservable(t){return t.state}var StoreDevtoolsModule=function(){function t(){}var e;return e=t,t.instrument=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:t},{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_2__.g,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.d,useExisting:DevtoolsDispatcher}]}},t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Ob({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Nb({factory:function(e){return new(e||t)}}),t}()},ALDU:function(t,e,n){"use strict";n.d(e,"a",(function(){return W})),n.d(e,"b",(function(){return z})),n.d(e,"c",(function(){return H})),n.d(e,"d",(function(){return U}));var i=n("BAGj"),r=n("tzrX"),o=n("Ip0R"),a=n("CcnG"),s=n("eO+G"),c=n("mrSG"),u=n("349r"),l=n("ScIB"),p=n("K9Ia"),h=n("bne5"),d=n("p0ib"),f=n("VnD/"),m=n("ny24"),b=n("ad02"),g=n("67Y/"),y=n("t9fZ"),v=n("p0Sj"),_=n("Gi3i"),w=n("ihYY"),O=n("wFw1"),C=n("m47I"),x=n("HHjO"),E=["*"];function S(t,e){if(1&t){var n=a.Xb();a.Wb(0,"div",2),a.ec("click",(function(){return a.yc(n),a.ic()._onBackdropClicked()})),a.Vb()}if(2&t){var i=a.ic();a.Hb("mat-drawer-shown",i._isShowingBackdrop())}}function A(t,e){1&t&&(a.Wb(0,"mat-drawer-content"),a.nc(1,2),a.Vb())}var k=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],D=["mat-drawer","mat-drawer-content","*"];function j(t,e){if(1&t){var n=a.Xb();a.Wb(0,"div",2),a.ec("click",(function(){return a.yc(n),a.ic()._onBackdropClicked()})),a.Vb()}if(2&t){var i=a.ic();a.Hb("mat-drawer-shown",i._isShowingBackdrop())}}function I(t,e){1&t&&(a.Wb(0,"mat-sidenav-content",3),a.nc(1,2),a.Vb())}var T=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],R=["mat-sidenav","mat-sidenav-content","*"],P={transformDrawer:Object(w.n)("transform",[Object(w.k)("open, open-instant",Object(w.l)({transform:"none",visibility:"visible"})),Object(w.k)("void",Object(w.l)({"box-shadow":"none",visibility:"hidden"})),Object(w.m)("void => open-instant",Object(w.e)("0ms")),Object(w.m)("void <=> open, open-instant => void",Object(w.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function L(t){throw Error("A drawer was already declared for 'position=\""+t+"\"'")}var F=new a.r("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),N=new a.r("MAT_DRAWER_CONTAINER"),M=function(t){function e(e,n,i,r,o){var a=t.call(this,i,r,o)||this;return a._changeDetectorRef=e,a._container=n,a}return Object(c.c)(e,t),e.prototype.ngAfterContentInit=function(){var t=this;this._container._contentMarginChanges.subscribe((function(){t._changeDetectorRef.markForCheck()}))},e.\u0275fac=function(t){return new(t||e)(a.Qb(a.h),a.Qb(Object(a.V)((function(){return B}))),a.Qb(a.l),a.Qb(r.c),a.Qb(a.A))},e.\u0275cmp=a.Kb({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.Ec("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.Ab],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(a.oc(),a.nc(0))},encapsulation:2,changeDetection:0}),e}(r.a),V=function(){function t(t,e,n,i,r,o,s){var c=this;this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=i,this._ngZone=r,this._doc=o,this._container=s,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new p.a,this._animationEnd=new p.a,this._animationState="void",this.openedChange=new a.o(!0),this._destroyed=new p.a,this.onPositionChanged=new a.o,this._modeChanged=new p.a,this.openedChange.subscribe((function(t){t?(c._doc&&(c._elementFocusedBeforeDrawerWasOpened=c._doc.activeElement),c._takeFocus()):c._restoreFocus()})),this._ngZone.runOutsideAngular((function(){Object(h.a)(c._elementRef.nativeElement,"keydown").pipe(Object(f.a)((function(t){return t.keyCode===l.e&&!c.disableClose&&!Object(l.q)(t)})),Object(m.a)(c._destroyed)).subscribe((function(t){return c._ngZone.run((function(){c.close(),t.stopPropagation(),t.preventDefault()}))}))})),this._animationEnd.pipe(Object(b.a)((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){var e=t.fromState,n=t.toState;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&c.openedChange.emit(c._opened)}))}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableClose",{get:function(){return this._disableClose},set:function(t){this._disableClose=Object(u.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoFocus",{get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=Object(u.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opened",{get:function(){return this._opened},set:function(t){this.toggle(Object(u.c)(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_openedStream",{get:function(){return this.openedChange.pipe(Object(f.a)((function(t){return t})),Object(g.a)((function(){})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openedStart",{get:function(){return this._animationStarted.pipe(Object(f.a)((function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")})),Object(g.a)((function(){})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_closedStream",{get:function(){return this.openedChange.pipe(Object(f.a)((function(t){return!t})),Object(g.a)((function(){})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closedStart",{get:function(){return this._animationStarted.pipe(Object(f.a)((function(t){return t.fromState!==t.toState&&"void"===t.toState})),Object(g.a)((function(){})))},enumerable:!0,configurable:!0}),t.prototype._takeFocus=function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then((function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()}))},t.prototype._restoreFocus=function(){if(this.autoFocus){var t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}},t.prototype.ngAfterContentInit=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()},t.prototype.ngAfterContentChecked=function(){this._platform.isBrowser&&(this._enableAnimations=!0)},t.prototype.ngOnDestroy=function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()},t.prototype.open=function(t){return this.toggle(!0,t)},t.prototype.close=function(){return this.toggle(!1)},t.prototype.toggle=function(t,e){var n=this;return void 0===t&&(t=!this.opened),void 0===e&&(e="program"),this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=e):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise((function(t){n.openedChange.pipe(Object(y.a)(1)).subscribe((function(e){return t(e?"open":"close")}))}))},Object.defineProperty(t.prototype,"_width",{get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0},enumerable:!0,configurable:!0}),t.prototype._updateFocusTrapState=function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)},t.prototype._animationStartListener=function(t){this._animationStarted.next(t)},t.prototype._animationDoneListener=function(t){this._animationEnd.next(t)},t.\u0275fac=function(e){return new(e||t)(a.Qb(a.l),a.Qb(C.i),a.Qb(C.h),a.Qb(i.a),a.Qb(a.A),a.Qb(o.d,8),a.Qb(N,8))},t.\u0275cmp=a.Kb({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&a.Ib("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(a.Eb("align",null),a.Lc("@transform",e._animationState),a.Hb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:E,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.oc(),a.Wb(0,"div",0),a.nc(1),a.Vb())},encapsulation:2,data:{animation:[P.transformDrawer]},changeDetection:0}),t}(),B=function(){function t(t,e,n,i,r,o,s){var c=this;void 0===o&&(o=!1),this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=i,this._animationMode=s,this._drawers=new a.E,this.backdropClick=new a.o,this._destroyed=new p.a,this._doCheckSubject=new p.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new p.a,t&&t.change.pipe(Object(m.a)(this._destroyed)).subscribe((function(){c._validateDrawers(),c.updateContentMargins()})),r.change().pipe(Object(m.a)(this._destroyed)).subscribe((function(){return c.updateContentMargins()})),this._autosize=o}return Object.defineProperty(t.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autosize",{get:function(){return this._autosize},set:function(t){this._autosize=Object(u.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:Object(u.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollable",{get:function(){return this._userContent||this._content},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._allDrawers.changes.pipe(Object(v.a)(this._allDrawers),Object(m.a)(this._destroyed)).subscribe((function(e){t._drawers.reset(e.filter((function(e){return!e._container||e._container===t}))),t._drawers.notifyOnChanges()})),this._drawers.changes.pipe(Object(v.a)(null)).subscribe((function(){t._validateDrawers(),t._drawers.forEach((function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)})),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()})),this._doCheckSubject.pipe(Object(_.a)(10),Object(m.a)(this._destroyed)).subscribe((function(){return t.updateContentMargins()}))},t.prototype.ngOnDestroy=function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()},t.prototype.open=function(){this._drawers.forEach((function(t){return t.open()}))},t.prototype.close=function(){this._drawers.forEach((function(t){return t.close()}))},t.prototype.updateContentMargins=function(){var t=this,e=0,n=0;if(this._left&&this._left.opened&&("side"==this._left.mode?e+=this._left._width:"push"==this._left.mode&&(e+=i=this._left._width,n-=i)),this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._width;else if("push"==this._right.mode){var i;n+=i=this._right._width,e-=i}n=n||null,(e=e||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:e,right:n},this._ngZone.run((function(){return t._contentMarginChanges.next(t._contentMargins)})))},t.prototype.ngDoCheck=function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular((function(){return t._doCheckSubject.next()}))},t.prototype._watchDrawerToggle=function(t){var e=this;t._animationStarted.pipe(Object(f.a)((function(t){return t.fromState!==t.toState})),Object(m.a)(this._drawers.changes)).subscribe((function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()})),"side"!==t.mode&&t.openedChange.pipe(Object(m.a)(this._drawers.changes)).subscribe((function(){return e._setContainerClass(t.opened)}))},t.prototype._watchDrawerPosition=function(t){var e=this;t&&t.onPositionChanged.pipe(Object(m.a)(this._drawers.changes)).subscribe((function(){e._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(y.a)(1)).subscribe((function(){e._validateDrawers()}))}))},t.prototype._watchDrawerMode=function(t){var e=this;t&&t._modeChanged.pipe(Object(m.a)(Object(d.a)(this._drawers.changes,this._destroyed))).subscribe((function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()}))},t.prototype._setContainerClass=function(t){var e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)},t.prototype._validateDrawers=function(){var t=this;this._start=this._end=null,this._drawers.forEach((function(e){"end"==e.position?(null!=t._end&&L("end"),t._end=e):(null!=t._start&&L("start"),t._start=e)})),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)},t.prototype._isPushed=function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode},t.prototype._onBackdropClicked=function(){this.backdropClick.emit(),this._closeModalDrawer()},t.prototype._closeModalDrawer=function(){var t=this;[this._start,this._end].filter((function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)})).forEach((function(t){return t.close()}))},t.prototype._isShowingBackdrop=function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)},t.prototype._canHaveBackdrop=function(t){return"side"!==t.mode||!!this._backdropOverride},t.prototype._isDrawerOpen=function(t){return null!=t&&t.opened},t.\u0275fac=function(e){return new(e||t)(a.Qb(x.b,8),a.Qb(a.l),a.Qb(a.A),a.Qb(a.h),a.Qb(r.e),a.Qb(F),a.Qb(O.a,8))},t.\u0275cmp=a.Kb({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){var i;1&t&&(a.Jb(n,M,!0),a.Jb(n,V,!0)),2&t&&(a.vc(i=a.fc())&&(e._content=i.first),a.vc(i=a.fc())&&(e._allDrawers=i))},viewQuery:function(t,e){var n;1&t&&a.Mc(M,!0),2&t&&a.vc(n=a.fc())&&(e._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.Hb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.Cb([{provide:N,useExisting:t}])],ngContentSelectors:D,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(a.oc(k),a.Fc(0,S,1,2,"div",0),a.nc(1),a.nc(2,1),a.Fc(3,A,2,0,"mat-drawer-content",1)),2&t&&(a.pc("ngIf",e.hasBackdrop),a.Db(3),a.pc("ngIf",!e._content))},directives:[o.n,M],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),t}(),H=function(t){function e(e,n,i,r,o){return t.call(this,e,n,i,r,o)||this}return Object(c.c)(e,t),e.\u0275fac=function(t){return new(t||e)(a.Qb(a.h),a.Qb(Object(a.V)((function(){return z}))),a.Qb(a.l),a.Qb(r.c),a.Qb(a.A))},e.\u0275cmp=a.Kb({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.Ec("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.Ab],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(a.oc(),a.nc(0))},encapsulation:2,changeDetection:0}),e}(M),W=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}Object(c.c)(e,t),Object.defineProperty(e.prototype,"fixedInViewport",{get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=Object(u.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedTopGap",{get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=Object(u.f)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedBottomGap",{get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=Object(u.f)(t)},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return n(t||e)},e.\u0275cmp=a.Kb({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(a.Eb("align",null),a.Ec("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),a.Hb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[a.Ab],ngContentSelectors:E,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.oc(),a.Wb(0,"div",0),a.nc(1),a.Vb())},encapsulation:2,data:{animation:[P.transformDrawer]},changeDetection:0});var n=a.Yb(e);return e}(V),z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(c.c)(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275cmp=a.Kb({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){var i;1&t&&(a.Jb(n,H,!0),a.Jb(n,W,!0)),2&t&&(a.vc(i=a.fc())&&(e._content=i.first),a.vc(i=a.fc())&&(e._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.Hb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[a.Cb([{provide:N,useExisting:e}]),a.Ab],ngContentSelectors:R,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(a.oc(T),a.Fc(0,j,1,2,"div",0),a.nc(1),a.nc(2,1),a.Fc(3,I,2,0,"mat-sidenav-content",1)),2&t&&(a.pc("ngIf",e.hasBackdrop),a.Db(3),a.pc("ngIf",!e._content))},directives:[o.n,H,r.a],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0});var n=a.Yb(e);return e}(B),U=function(){function t(){}return t.\u0275mod=a.Ob({type:t}),t.\u0275inj=a.Nb({factory:function(e){return new(e||t)},imports:[[o.c,s.i,i.b,r.b],r.b,s.i]}),t}()},AZa5:function(t,e,n){var i=n("Wogr"),r=n("u/Db");function o(t){this.mode=r.BYTE,this.data=new i(t)}o.getBitsLength=function(t){return 8*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){for(var e=0,n=this.data.length;e0,this._updateTextContent()}},e.prototype.ngOnDestroy=function(){var t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))},e.prototype.getBadgeElement=function(){return this._badgeElement},e.prototype._updateTextContent=function(){return this._badgeElement?this._badgeElement.textContent=this.content:this._badgeElement=this._createBadgeElement(),this._badgeElement},e.prototype._createBadgeElement=function(){var t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id","mat-badge-content-"+this._id),t.classList.add("mat-badge-content"),t.textContent=this.content,"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){t.classList.add("mat-badge-active")}))})):t.classList.add("mat-badge-active"),t},e.prototype._updateHostAriaDescription=function(t,e){var n=this._updateTextContent();e&&this._ariaDescriber.removeDescription(n,e),t&&this._ariaDescriber.describe(n,t)},e.prototype._setColor=function(t){t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-badge-"+this._color),t&&this._elementRef.nativeElement.classList.add("mat-badge-"+t))},e.prototype._clearExistingBadges=function(t){for(var e=this._elementRef.nativeElement,n=e.children.length;n--;){var i=e.children[n];i.classList.contains(t)&&e.removeChild(i)}},e.\u0275fac=function(t){return new(t||e)(i.Qb(i.A),i.Qb(i.l),i.Qb(o.c),i.Qb(i.F),i.Qb(c.a,8))},e.\u0275dir=i.Lb({type:e,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&i.Hb("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],position:["matBadgePosition","position"],content:["matBadge","content"],size:["matBadgeSize","size"]},features:[i.Ab,i.Bb]}),e}(Object(r.z)(l)),h=function(){function t(){}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},imports:[[o.a,r.i],r.i]}),t}()},BqIw:function(t,e,n){"use strict";n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return O})),n.d(e,"c",(function(){return C}));var i=n("CcnG"),r=n("mrSG"),o=n("349r"),a=n("eO+G"),s=n("K9Ia"),c=n("p0ib"),u=n("ihYY"),l=n("Ip0R"),p=n("m47I"),h=["mat-sort-header",""];function d(t,e){if(1&t){var n=i.Xb();i.Wb(0,"div",3),i.ec("@arrowPosition.start",(function(){return i.yc(n),i.ic()._disableViewStateAnimation=!0}))("@arrowPosition.done",(function(){return i.yc(n),i.ic()._disableViewStateAnimation=!1})),i.Rb(1,"div",4),i.Wb(2,"div",5),i.Rb(3,"div",6),i.Rb(4,"div",7),i.Rb(5,"div",8),i.Vb(),i.Vb()}if(2&t){var r=i.ic();i.pc("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),i.Db(2),i.pc("@indicator",r._getArrowDirectionState()),i.Db(1),i.pc("@leftPointer",r._getArrowDirectionState()),i.Db(1),i.pc("@rightPointer",r._getArrowDirectionState())}}var f=["*"],m=function(){return function(){}}(),b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.sortables=new Map,e._stateChanges=new s.a,e.start="asc",e._direction="",e.sortChange=new i.o,e}Object(r.c)(e,t),Object.defineProperty(e.prototype,"direction",{get:function(){return this._direction},set:function(t){if(Object(i.X)()&&t&&"asc"!==t&&"desc"!==t)throw function(t){return Error(t+" is not a valid sort direction ('asc' or 'desc').")}(t);this._direction=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableClear",{get:function(){return this._disableClear},set:function(t){this._disableClear=Object(o.c)(t)},enumerable:!0,configurable:!0}),e.prototype.register=function(t){if(!t.id)throw Error("MatSortHeader must be provided with a unique id.");if(this.sortables.has(t.id))throw Error("Cannot have two MatSortables with the same id ("+t.id+").");this.sortables.set(t.id,t)},e.prototype.deregister=function(t){this.sortables.delete(t.id)},e.prototype.sort=function(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})},e.prototype.getNextSortDirection=function(t){if(!t)return"";var e,n,i=(e=null!=t.disableClear?t.disableClear:this.disableClear,n=["asc","desc"],"desc"==(t.start||this.start)&&n.reverse(),e||n.push(""),n),r=i.indexOf(this.direction)+1;return r>=i.length&&(r=0),i[r]},e.prototype.ngOnInit=function(){this._markInitialized()},e.prototype.ngOnChanges=function(){this._stateChanges.next()},e.prototype.ngOnDestroy=function(){this._stateChanges.complete()},e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=i.Lb({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"],start:["matSortStart","start"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.Ab,i.Bb]});var n=i.Yb(e);return e}(Object(a.B)(Object(a.z)(m))),g=a.b.ENTERING+" "+a.a.STANDARD_CURVE,y={indicator:Object(u.n)("indicator",[Object(u.k)("active-asc, asc",Object(u.l)({transform:"translateY(0px)"})),Object(u.k)("active-desc, desc",Object(u.l)({transform:"translateY(10px)"})),Object(u.m)("active-asc <=> active-desc",Object(u.e)(g))]),leftPointer:Object(u.n)("leftPointer",[Object(u.k)("active-asc, asc",Object(u.l)({transform:"rotate(-45deg)"})),Object(u.k)("active-desc, desc",Object(u.l)({transform:"rotate(45deg)"})),Object(u.m)("active-asc <=> active-desc",Object(u.e)(g))]),rightPointer:Object(u.n)("rightPointer",[Object(u.k)("active-asc, asc",Object(u.l)({transform:"rotate(45deg)"})),Object(u.k)("active-desc, desc",Object(u.l)({transform:"rotate(-45deg)"})),Object(u.m)("active-asc <=> active-desc",Object(u.e)(g))]),arrowOpacity:Object(u.n)("arrowOpacity",[Object(u.k)("desc-to-active, asc-to-active, active",Object(u.l)({opacity:1})),Object(u.k)("desc-to-hint, asc-to-hint, hint",Object(u.l)({opacity:.54})),Object(u.k)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Object(u.l)({opacity:0})),Object(u.m)("* => asc, * => desc, * => active, * => hint, * => void",Object(u.e)("0ms")),Object(u.m)("* <=> *",Object(u.e)(g))]),arrowPosition:Object(u.n)("arrowPosition",[Object(u.m)("* => desc-to-hint, * => desc-to-active",Object(u.e)(g,Object(u.h)([Object(u.l)({transform:"translateY(-25%)"}),Object(u.l)({transform:"translateY(0)"})]))),Object(u.m)("* => hint-to-desc, * => active-to-desc",Object(u.e)(g,Object(u.h)([Object(u.l)({transform:"translateY(0)"}),Object(u.l)({transform:"translateY(25%)"})]))),Object(u.m)("* => asc-to-hint, * => asc-to-active",Object(u.e)(g,Object(u.h)([Object(u.l)({transform:"translateY(25%)"}),Object(u.l)({transform:"translateY(0)"})]))),Object(u.m)("* => hint-to-asc, * => active-to-asc",Object(u.e)(g,Object(u.h)([Object(u.l)({transform:"translateY(0)"}),Object(u.l)({transform:"translateY(-25%)"})]))),Object(u.k)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Object(u.l)({transform:"translateY(0)"})),Object(u.k)("hint-to-desc, active-to-desc, desc",Object(u.l)({transform:"translateY(-25%)"})),Object(u.k)("hint-to-asc, active-to-asc, asc",Object(u.l)({transform:"translateY(25%)"}))]),allowChildren:Object(u.n)("allowChildren",[Object(u.m)("* <=> *",[Object(u.i)("@*",Object(u.f)(),{optional:!0})])])},v=function(){function t(){this.changes=new s.a,this.sortButtonLabel=function(t){return"Change sorting for "+t}}return t.\u0275prov=Object(i.Mb)({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),_={provide:v,deps:[[new i.B,new i.K,v]],useFactory:function(t){return t||new v}},w=function(){return function(){}}(),O=function(t){function e(e,n,i,r,o,a){var s=t.call(this)||this;if(s._intl=e,s._sort=i,s._columnDef=r,s._focusMonitor=o,s._elementRef=a,s._showIndicatorHint=!1,s._arrowDirection="",s._disableViewStateAnimation=!1,s.arrowPosition="after",!i)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return s._rerenderSubscription=Object(c.a)(i.sortChange,i._stateChanges,e.changes).subscribe((function(){s._isSorted()&&s._updateArrowDirection(),!s._isSorted()&&s._viewState&&"active"===s._viewState.toState&&(s._disableViewStateAnimation=!1,s._setAnimationTransitionState({fromState:"active",toState:s._arrowDirection})),n.markForCheck()})),o&&a&&o.monitor(a,!0).subscribe((function(t){return s._setIndicatorHintVisible(!!t)})),s}return Object(r.c)(e,t),Object.defineProperty(e.prototype,"disableClear",{get:function(){return this._disableClear},set:function(t){this._disableClear=Object(o.c)(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)},e.prototype.ngOnDestroy=function(){this._focusMonitor&&this._elementRef&&this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()},e.prototype._setIndicatorHintVisible=function(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))},e.prototype._setAnimationTransitionState=function(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})},e.prototype._handleClick=function(){if(!this._isDisabled()){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}},e.prototype._isSorted=function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)},e.prototype._getArrowDirectionState=function(){return(this._isSorted()?"active-":"")+this._arrowDirection},e.prototype._getArrowViewState=function(){var t=this._viewState.fromState;return(t?t+"-to-":"")+this._viewState.toState},e.prototype._updateArrowDirection=function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start},e.prototype._isDisabled=function(){return this._sort.disabled||this.disabled},e.prototype._getAriaSortAttribute=function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":null},e.prototype._renderArrow=function(){return!this._isDisabled()||this._isSorted()},e.\u0275fac=function(t){return new(t||e)(i.Qb(v),i.Qb(i.h),i.Qb(b,8),i.Qb("MAT_SORT_HEADER_COLUMN_DEF",8),i.Qb(p.h),i.Qb(i.l))},e.\u0275cmp=i.Kb({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&i.ec("click",(function(){return e._handleClick()}))("mouseenter",(function(){return e._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return e._setIndicatorHintVisible(!1)})),2&t&&(i.Eb("aria-sort",e._getAriaSortAttribute()),i.Hb("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",disableClear:"disableClear",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start"},exportAs:["matSortHeader"],features:[i.Ab],attrs:h,ngContentSelectors:f,decls:4,vars:7,consts:[[1,"mat-sort-header-container"],["type","button",1,"mat-sort-header-button","mat-focus-indicator"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(i.oc(),i.Wb(0,"div",0),i.Wb(1,"button",1),i.nc(2),i.Vb(),i.Fc(3,d,6,6,"div",2),i.Vb()),2&t&&(i.Hb("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),i.Db(1),i.Eb("disabled",e._isDisabled()||null)("aria-label",e._intl.sortButtonLabel(e.id)),i.Db(2),i.pc("ngIf",e._renderArrow()))},directives:[l.n],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor;position:relative}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-button,[mat-sort-header].cdk-program-focused .mat-sort-header-button{border-bottom:solid 1px currentColor}.mat-sort-header-button::-moz-focus-inner{border:0}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[y.indicator,y.leftPointer,y.rightPointer,y.arrowOpacity,y.arrowPosition,y.allowChildren]},changeDetection:0}),e}(Object(a.z)(w)),C=function(){function t(){}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},providers:[_],imports:[[l.c]]}),t}()},CS9Q:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("mrSG"),r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),o=function(t){function e(n,i){void 0===i&&(i=r.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():i()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return i.c(e,t),e.prototype.schedule=function(n,i,r){return void 0===i&&(i=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,i,r):t.prototype.schedule.call(this,n,i,r)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(r)},CcnG:function(t,e,n){"use strict";n.d(e,"a",(function(){return Io})),n.d(e,"b",(function(){return $c})),n.d(e,"c",(function(){return Gc})),n.d(e,"d",(function(){return Qc})),n.d(e,"e",(function(){return Yc})),n.d(e,"f",(function(){return Uu})),n.d(e,"g",(function(){return Ru})),n.d(e,"h",(function(){return fo})),n.d(e,"i",(function(){return uu})),n.d(e,"j",(function(){return ms})),n.d(e,"k",(function(){return eu})),n.d(e,"l",(function(){return bs})),n.d(e,"m",(function(){return Bu})),n.d(e,"n",(function(){return Sn})),n.d(e,"o",(function(){return wc})),n.d(e,"p",(function(){return X})),n.d(e,"q",(function(){return h})),n.d(e,"r",(function(){return K})),n.d(e,"s",(function(){return jo})),n.d(e,"t",(function(){return Ls})),n.d(e,"u",(function(){return Fs})),n.d(e,"v",(function(){return tu})),n.d(e,"w",(function(){return lt})),n.d(e,"x",(function(){return Lu})),n.d(e,"y",(function(){return ut})),n.d(e,"z",(function(){return ku})),n.d(e,"A",(function(){return du})),n.d(e,"B",(function(){return d})),n.d(e,"C",(function(){return Zc})),n.d(e,"D",(function(){return Xc})),n.d(e,"E",(function(){return Cc})),n.d(e,"F",(function(){return _s})),n.d(e,"G",(function(){return ys})),n.d(e,"H",(function(){return vs})),n.d(e,"I",(function(){return Os})),n.d(e,"J",(function(){return di})),n.d(e,"K",(function(){return m})),n.d(e,"L",(function(){return Mu})),n.d(e,"M",(function(){return Bs})),n.d(e,"N",(function(){return wu})),n.d(e,"O",(function(){return Cs})),n.d(e,"P",(function(){return Ws})),n.d(e,"Q",(function(){return vt})),n.d(e,"R",(function(){return Vo})),n.d(e,"S",(function(){return Du})),n.d(e,"T",(function(){return _})),n.d(e,"U",(function(){return Un})),n.d(e,"V",(function(){return R})),n.d(e,"W",(function(){return ot})),n.d(e,"X",(function(){return zn})),n.d(e,"Y",(function(){return Wu})),n.d(e,"Z",(function(){return Cu})),n.d(e,"ab",(function(){return Jc})),n.d(e,"bb",(function(){return bo})),n.d(e,"cb",(function(){return rc})),n.d(e,"db",(function(){return pi})),n.d(e,"eb",(function(){return bi})),n.d(e,"fb",(function(){return qn})),n.d(e,"gb",(function(){return Pn})),n.d(e,"hb",(function(){return Fn})),n.d(e,"ib",(function(){return Bn})),n.d(e,"jb",(function(){return Mn})),n.d(e,"kb",(function(){return Nn})),n.d(e,"lb",(function(){return Vn})),n.d(e,"mb",(function(){return tc})),n.d(e,"nb",(function(){return Hu})),n.d(e,"ob",(function(){return ec})),n.d(e,"pb",(function(){return nc})),n.d(e,"qb",(function(){return Ln})),n.d(e,"rb",(function(){return H})),n.d(e,"sb",(function(){return Bo})),n.d(e,"tb",(function(){return ca})),n.d(e,"ub",(function(){return sa})),n.d(e,"vb",(function(){return Mo})),n.d(e,"wb",(function(){return Js})),n.d(e,"xb",(function(){return zt})),n.d(e,"yb",(function(){return j})),n.d(e,"zb",(function(){return Rn})),n.d(e,"Ab",(function(){return Ka})),n.d(e,"Bb",(function(){return es})),n.d(e,"Cb",(function(){return ps})),n.d(e,"Db",(function(){return Vi})),n.d(e,"Eb",(function(){return Qo})),n.d(e,"Fb",(function(){return Da})),n.d(e,"Gb",(function(){return Qa})),n.d(e,"Hb",(function(){return ka})),n.d(e,"Ib",(function(){return la})),n.d(e,"Jb",(function(){return Fc})),n.d(e,"Kb",(function(){return Ct})),n.d(e,"Lb",(function(){return jt})),n.d(e,"Mb",(function(){return v})),n.d(e,"Nb",(function(){return w})),n.d(e,"Ob",(function(){return At})),n.d(e,"Pb",(function(){return It})),n.d(e,"Qb",(function(){return Ko})),n.d(e,"Rb",(function(){return na})),n.d(e,"Sb",(function(){return oa})),n.d(e,"Tb",(function(){return ra})),n.d(e,"Ub",(function(){return ia})),n.d(e,"Vb",(function(){return ea})),n.d(e,"Wb",(function(){return ta})),n.d(e,"Xb",(function(){return aa})),n.d(e,"Yb",(function(){return On})),n.d(e,"Zb",(function(){return Ya})),n.d(e,"ac",(function(){return rt})),n.d(e,"bc",(function(){return Xo})),n.d(e,"cc",(function(){return Uc})),n.d(e,"dc",(function(){return Zo})),n.d(e,"ec",(function(){return ua})),n.d(e,"fc",(function(){return Vc})),n.d(e,"gc",(function(){return Fe})),n.d(e,"hc",(function(){return Le})),n.d(e,"ic",(function(){return fa})),n.d(e,"jc",(function(){return mc})),n.d(e,"kc",(function(){return bc})),n.d(e,"lc",(function(){return gc})),n.d(e,"mc",(function(){return yc})),n.d(e,"nc",(function(){return ga})),n.d(e,"oc",(function(){return ba})),n.d(e,"pc",(function(){return $o})),n.d(e,"qc",(function(){return ya})),n.d(e,"rc",(function(){return va})),n.d(e,"sc",(function(){return uc})),n.d(e,"tc",(function(){return lc})),n.d(e,"uc",(function(){return pc})),n.d(e,"vc",(function(){return Tc})),n.d(e,"wc",(function(){return qo})),n.d(e,"xc",(function(){return nn})),n.d(e,"yc",(function(){return ue})),n.d(e,"zc",(function(){return gi})),n.d(e,"Ac",(function(){return yi})),n.d(e,"Bc",(function(){return kt})),n.d(e,"Cc",(function(){return Nc})),n.d(e,"Dc",(function(){return Rc})),n.d(e,"Ec",(function(){return Aa})),n.d(e,"Fc",(function(){return Go})),n.d(e,"Gc",(function(){return zc})),n.d(e,"Hc",(function(){return Ha})),n.d(e,"Ic",(function(){return Wa})),n.d(e,"Jc",(function(){return za})),n.d(e,"Kc",(function(){return Ua})),n.d(e,"Lc",(function(){return Ga})),n.d(e,"Mc",(function(){return Pc}));var i=n("mrSG"),r=n("pugT"),o=n("K9Ia"),a=n("6blF"),s=n("p0ib"),c=n("S1nX");function u(t){return{toString:t}.toString()}var l="__parameters__";function p(t,e,n){return u((function(){var r=function(t){return function(){for(var e=[],n=0;n=t.length?t.push(n):t.splice(e,0,n)}function dt(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ft(t,e){for(var n=[],i=0;i=0?t[1|i]=n:function(t,e,n,i){var r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i=~i,e,n),i}function bt(t,e){var n=gt(t,e);if(n>=0)return t[1|n]}function gt(t,e){return function(t,e,n){for(var i=0,r=t.length>>1;r!==i;){var o=i+(r-i>>1),a=t[o<<1];if(e===a)return o<<1;a>e?r=o:i=o+1}return~(r<<1)}(t,e)}var yt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),vt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),_t={},wt=[],Ot=0;function Ct(t){return u((function(){var e=t.type,n=e.prototype,i={},r={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===yt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||wt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||vt.Emulated,id:"c",styles:t.styles||wt,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,a=t.features,s=t.pipes;return r.id+=Ot++,r.inputs=Dt(t.inputs,i),r.outputs=Dt(t.outputs),a&&a.forEach((function(t){return t(r)})),r.directiveDefs=o?function(){return("function"==typeof o?o():o).map(xt)}:null,r.pipeDefs=s?function(){return("function"==typeof s?s():s).map(Et)}:null,r}))}function xt(t){return Tt(t)||function(t){return t[z]||null}(t)}function Et(t){return function(t){return t[U]||null}(t)}var St={};function At(t){var e={type:t.type,bootstrap:t.bootstrap||wt,declarations:t.declarations||wt,imports:t.imports||wt,exports:t.exports||wt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&u((function(){St[t.id]=t.type})),e}function kt(t,e){return u((function(){var n=Pt(t,!0);n.declarations=e.declarations||wt,n.imports=e.imports||wt,n.exports=e.exports||wt}))}function Dt(t,e){if(null==t)return _t;var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,e&&(e[r]=o)}return n}var jt=Ct;function It(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Tt(t){return t[W]||null}function Rt(t,e){return t.hasOwnProperty(G)?t[G]:null}function Pt(t,e){var n=t[Q]||null;if(!n&&!0===e)throw new Error("Type "+j(t)+" does not have '\u0275mod' property.");return n}function Lt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ft(t){return Array.isArray(t)&&!0===t[1]}function Nt(t){return 0!=(8&t.flags)}function Mt(t){return 2==(2&t.flags)}function Vt(t){return 1==(1&t.flags)}function Bt(t){return null!==t.template}function Ht(t){return 0!=(512&t[2])}var Wt=void 0;function zt(t){Wt=t}function Ut(){return void 0!==Wt?Wt:"undefined"!=typeof document?document:void 0}function Qt(t){return!!t.listen}var Yt={createRenderer:function(t,e){return Ut()}};function Gt(t){for(;Array.isArray(t);)t=t[0];return t}function qt(t,e){return Gt(e[t+20])}function Kt(t,e){return Gt(e[t.index])}function Xt(t,e){return t.data[e+20]}function Zt(t,e){return t[e+20]}function $t(t,e){var n=e[t];return Lt(n)?n:n[0]}function Jt(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function te(t){return 4==(4&t[2])}function ee(t){return 128==(128&t[2])}function ne(t,e){return null===t||null==e?null:t[e]}function ie(t){t[18]=0}function re(t,e){t[5]+=e;for(var n=t,i=t[3];null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}var oe={lFrame:ke(null),bindingsEnabled:!0,checkNoChangesMode:!1};function ae(){return oe.bindingsEnabled}function se(){return oe.lFrame.lView}function ce(){return oe.lFrame.tView}function ue(t){oe.lFrame.contextLView=t}function le(){return oe.lFrame.previousOrParentTNode}function pe(t,e){oe.lFrame.previousOrParentTNode=t,oe.lFrame.isParent=e}function he(){return oe.lFrame.isParent}function de(){oe.lFrame.isParent=!1}function fe(){return oe.checkNoChangesMode}function me(t){oe.checkNoChangesMode=t}function be(){var t=oe.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ge(){return oe.lFrame.bindingIndex}function ye(){return oe.lFrame.bindingIndex++}function ve(t){var e=oe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function _e(t,e){var n=oe.lFrame;n.bindingIndex=n.bindingRootIndex=t,we(e)}function we(t){oe.lFrame.currentDirectiveIndex=t}function Oe(t){var e=oe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Ce(){return oe.lFrame.currentQueryIndex}function xe(t){oe.lFrame.currentQueryIndex=t}function Ee(t,e){var n=Ae();oe.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function Se(t,e){var n=Ae(),i=t[1];oe.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function Ae(){var t=oe.lFrame,e=null===t?null:t.child;return null===e?ke(t):e}function ke(t){var e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function De(){var t=oe.lFrame;return oe.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}var je=De;function Ie(){var t=De();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Te(){return oe.lFrame.selectedIndex}function Re(t){oe.lFrame.selectedIndex=t}function Pe(){var t=oe.lFrame;return Xt(t.tView,t.selectedIndex)}function Le(){oe.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Fe(){oe.lFrame.currentNamespace=null}function Ne(t,e){for(var n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e&&(t[2]+=2048,o.call(a)):o.call(a)}var ze=function(){return function(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}();function Ue(t,e,n){for(var i=Qt(t),r=0;re){a=o-1;break}}}for(;o>16}function $e(t,e){for(var n=Ze(t),i=e;n>0;)i=i[15],n--;return i}function Je(t){return"string"==typeof t?t:null==t?"":""+t}function tn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Je(t)}var en=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(H)}();function nn(t){return{name:"body",target:t.ownerDocument.body}}function rn(t){return t instanceof Function?t():t}var on=!0;function an(t){var e=on;return on=t,e}var sn=0;function cn(t,e){var n=ln(t,e);if(-1!==n)return n;var i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,un(i.data,t),un(e,null),un(i.blueprint,null));var r=pn(t,e),o=t.injectorIndex;if(Ke(r))for(var a=Xe(r),s=$e(r,e),c=s[1].data,u=0;u<8;u++)e[o+u]=s[a+u]|c[a+u];return e[o+8]=r,o}function un(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ln(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function pn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[6],i=1;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function hn(t,e,n){!function(t,e,n){var i="string"!=typeof n?n[q]:n.charCodeAt(0)||0;null==i&&(i=n[q]=sn++);var r=255&i,o=1<0?255&e:e}(n);if("function"==typeof o){Ee(e,t);try{var a=o();if(null!=a||i&b.Optional)return a;throw new Error("No provider for "+tn(n)+"!")}finally{je()}}else if("number"==typeof o){if(-1===o)return new _n(t,e);var s=null,c=ln(t,e),u=-1,l=i&b.Host?e[16][6]:null;for((-1===c||i&b.SkipSelf)&&(u=-1===c?pn(t,e):e[c+8],vn(i,!1)?(s=e[1],c=Xe(u),e=$e(u,e)):c=-1);-1!==c;){u=e[c+8];var p=e[1];if(yn(o,c,p.data)){var h=mn(c,e,n,s,i,l);if(h!==fn)return h}vn(i,e[1].data[c+8]===l)&&yn(o,c,e)?(s=p,c=Xe(u),e=$e(u,e)):c=-1}}}if(i&b.Optional&&void 0===r&&(r=null),0==(i&(b.Self|b.Host))){var d=e[9],f=nt(void 0);try{return d?d.get(n,r,i&b.Optional):at(n,r,i&b.Optional)}finally{nt(f)}}if(i&b.Optional)return r;throw new Error("NodeInjector: NOT_FOUND ["+tn(n)+"]")}var fn={};function mn(t,e,n,i,r,o){var a=e[1],s=a.data[t+8],c=bn(s,a,n,null==i?Mt(s)&&on:i!=a&&3===s.type,r&b.Host&&o===s);return null!==c?gn(e,a,c,s):fn}function bn(t,e,n,i,r){for(var o=t.providerIndexes,a=e.data,s=65535&o,c=t.directiveStart,u=o>>16,l=r?s+u:t.directiveEnd,p=i?s:s+u;p=c&&h.type===n)return p}if(r){var d=a[c];if(d&&Bt(d)&&d.type===n)return c}return null}function gn(t,e,n,i){var r=t[n],o=e.data;if(r instanceof ze){var a=r;if(a.resolving)throw new Error("Circular dep for "+tn(o[n]));var s=an(a.canSeeViewProviders);a.resolving=!0;var c=void 0;a.injectImpl&&(c=nt(a.injectImpl)),Ee(t,i);try{r=t[n]=a.factory(void 0,o,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){var i=e.onChanges,r=e.onInit,o=e.doCheck;i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)),r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{a.injectImpl&&nt(c),an(s),a.resolving=!1,je()}}return r}function yn(t,e,n){var i=64&t,r=32&t;return!!((128&t?i?r?n[e+7]:n[e+6]:r?n[e+5]:n[e+4]:i?r?n[e+3]:n[e+2]:r?n[e+1]:n[e])&1<',!e.querySelector||e.querySelector("svg")?(e.innerHTML='

',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(i){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;var n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();ni.hasOwnProperty(e)&&!$n.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(li(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),ci=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ui=/([^\#-~ |!])/g;function li(t){return t.replace(/&/g,"&").replace(ci,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(ui,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}function pi(t,e){var n=null;try{Zn=Zn||new Qn(t);var i=e?String(e):"";n=Zn.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=Zn.getInertBodyElement(i)}while(i!==o);var a=new si,s=a.sanitizeChildren(hi(n)||n);return zn()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var c=hi(n)||n;c.firstChild;)c.removeChild(c.firstChild)}}function hi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var di=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),fi=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),mi=/^url\(([^)]+)\)$/;function bi(t){if(!(t=String(t).trim()))return"";var e=t.match(mi);return e&&qn(e[1])===e[1]||t.match(fi)&&function(t){for(var e=!0,n=!0,i=0;io?"":r[l+1].toLowerCase();var h=8&i?p:null;if(h&&-1!==Ci(h,u,0)||2&i&&u!==p){if(ki(i))return!1;a=!0}}}}else{if(!a&&!ki(i)&&!ki(c))return!1;if(a&&ki(c))continue;a=!1,i=c|1&i}}return ki(i)||a}function ki(t){return 0==(1&t)}function Di(t,e,n,i){if(null===e)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||ki(a)||(e+=Ti(o,r),r=""),i=a,o=o||!ki(i);n++}return""!==r&&(e+=Ti(o,r)),e}var Pi={};function Li(t){var e=t[3];return Ft(e)?e[3]:e}function Fi(t){return Mi(t[13])}function Ni(t){return Mi(t[4])}function Mi(t){for(;null!==t&&!Ft(t);)t=t[4];return t}function Vi(t){Bi(ce(),se(),Te()+t,fe())}function Bi(t,e,n,i){if(!i)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&Me(e,r,n)}else{var o=t.preOrderHooks;null!==o&&Ve(e,o,0,n)}Re(n)}function Hi(t,e){return t<<17|e<<2}function Wi(t){return t>>17&32767}function zi(t){return 2|t}function Ui(t){return(131068&t)>>2}function Qi(t,e){return-131069&t|e<<2}function Yi(t){return 1|t}function Gi(t,e){var n=t.contentQueries;if(null!==n)for(var i=0;i20&&Bi(t,e,0,fe()),n(i,r)}finally{Re(o)}}function er(t,e,n){if(Nt(e))for(var i=e.directiveEnd,r=e.directiveStart;r0&&function t(e){for(var n=Fi(e);null!==n;n=Ni(n))for(var i=10;i0&&t(r)}var a=e[1].components;if(null!==a)for(i=0;i0&&t(s)}}(n)}}function Cr(t,e){var n=$t(e,t),i=n[1];!function(t,e){for(var n=e.length;n0&&(t[n-1][4]=i[4]);var o=dt(t,10+e);Vr(i[1],i,!1,null);var a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Wr(t,e){if(!(256&e[2])){var n=e[11];Qt(n)&&n.destroyNode&&to(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return Ur(t[1],t);for(;e;){var n=null;if(Lt(e))n=e[13];else{var i=e[10];i&&(n=i)}if(!n){for(;e&&!e[4]&&e!==t;)Lt(e)&&Ur(e[1],e),e=zr(e,t);null===e&&(e=t),Lt(e)&&Ur(e[1],e),n=e&&e[4]}e=n}}(e)}}function zr(t,e){var n;return Lt(t)&&(n=t[6])&&2===n.type?Fr(n,t):t[3]===e?null:t[3]}function Ur(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var i=0;i=0?i[s]():i[-s].unsubscribe(),r+=2}else n[r].call(i[n[r+1]]);e[7]=null}}(t,e);var n=e[6];n&&3===n.type&&Qt(e[11])&&e[11].destroy();var i=e[17];if(null!==i&&Ft(e[3])){i!==e[3]&&Br(i,e);var r=e[19];null!==r&&r.detachView(t)}}}function Qr(t,e,n){for(var i=e.parent;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){var r=n[6];return 2===r.type?Nr(r,n):n[0]}if(e&&5===e.type&&4&e.flags)return Kt(e,n).parentNode;if(2&i.flags){var o=t.data,a=o[o[i.index].directiveStart].encapsulation;if(a!==vt.ShadowDom&&a!==vt.Native)return null}return Kt(i,n)}function Yr(t,e,n,i){Qt(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function Gr(t,e,n){Qt(t)?t.appendChild(e,n):e.appendChild(n)}function qr(t,e,n,i){null!==i?Yr(t,e,n,i):Gr(t,e,n)}function Kr(t,e){return Qt(t)?t.parentNode(e):e.parentNode}function Xr(t,e){if(2===t.type){var n=Fr(t,e);return null===n?null:$r(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?Kt(t,e):null}function Zr(t,e,n,i){var r=Qr(t,i,e);if(null!=r){var o=e[11],a=Xr(i.parent||e[6],e);if(Array.isArray(n))for(var s=0;s-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Wr(this._lView[1],this._lView)},t.prototype.onDestroy=function(t){var e,n,i;e=this._lView[1],i=t,jr(n=this._lView).push(i),e.firstCreatePass&&Ir(e).push(n[7].length-1,null)},t.prototype.markForCheck=function(){Er(this._cdRefInjectingView||this._lView)},t.prototype.detach=function(){this._lView[2]&=-129},t.prototype.reattach=function(){this._lView[2]|=128},t.prototype.detectChanges=function(){Sr(this._lView[1],this._lView,this.context)},t.prototype.checkNoChanges=function(){!function(t,e,n){me(!0);try{Sr(t,e,n)}finally{me(!1)}}(this._lView[1],this._lView,this.context)},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){var t;this._appRef=null,to(this._lView[1],t=this._lView,t[11],2,null,null)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t}(),co=function(t){function e(e){var n=t.call(this,e)||this;return n._view=e,n}return Object(i.c)(e,t),e.prototype.detectChanges=function(){Ar(this._view)},e.prototype.checkNoChanges=function(){!function(t){me(!0);try{Ar(t)}finally{me(!1)}}(this._view)},Object.defineProperty(e.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),e}(so);function uo(t,e,n){return ro||(ro=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e}(t)),new ro(Kt(e,n))}function lo(t,e,n,r){return oo||(oo=function(t){function e(e,n,i){var r=t.call(this)||this;return r._declarationView=e,r._declarationTContainer=n,r.elementRef=i,r}return Object(i.c)(e,t),e.prototype.createEmbeddedView=function(t){var e=this._declarationTContainer.tViews,n=Ki(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];var i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Zi(e,n,t),new so(n)},e}(t)),0===n.type?new oo(r,n,uo(e,n,r)):null}function po(t,e,n,r){var o;ao||(ao=function(t){function n(e,n,i){var r=t.call(this)||this;return r._lContainer=e,r._hostTNode=n,r._hostView=i,r}return Object(i.c)(n,t),Object.defineProperty(n.prototype,"element",{get:function(){return uo(e,this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"injector",{get:function(){return new _n(this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentInjector",{get:function(){var t=pn(this._hostTNode,this._hostView),e=$e(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var i=n.parent.injectorIndex,r=n.parent;null!=r.parent&&i==r.parent.injectorIndex;)r=r.parent;return r}for(var o=Ze(t),a=e,s=e[6];o>1;)s=(a=a[15])[6],o--;return s}(t,this._hostView,this._hostTNode);return Ke(t)&&null!=n?new _n(n,e):new _n(null,this._hostView)},enumerable:!0,configurable:!0}),n.prototype.clear=function(){for(;this.length>0;)this.remove(this.length-1)},n.prototype.get=function(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null},Object.defineProperty(n.prototype,"length",{get:function(){return this._lContainer.length-10},enumerable:!0,configurable:!0}),n.prototype.createEmbeddedView=function(t,e,n){var i=t.createEmbeddedView(e||{});return this.insert(i,n),i},n.prototype.createComponent=function(t,e,n,i,r){var o=n||this.parentInjector;if(!r&&null==t.ngModule&&o){var a=o.get(ut,null);a&&(r=a)}var s=t.create(o,i,void 0,r);return this.insert(s.hostView,e),s},n.prototype.insert=function(t,e){var n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ft(n[3])){var r=this.indexOf(t);if(-1!==r)this.detach(r);else{var o=n[3],a=new ao(o,o[6],o[3]);a.detach(a.indexOf(t))}}var s=this._adjustIndex(e);return function(t,e,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=e),i ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):j(s)))}r="{"+o.join(", ")+"}"}return n+(i?"("+i+")":"")+"["+r+"]: "+t.replace($,"\n ")}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{et(r)}},t.prototype._resolveInjectorDefTypes=function(){var t=this;this.injectorDefTypes.forEach((function(e){return t.get(e)}))},t.prototype.toString=function(){var t=[];return this.records.forEach((function(e,n){return t.push(j(n))})),"R3Injector["+t.join(", ")+"]"},t.prototype.assertNotDestroyed=function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e,n){var i=this;if(!(t=P(t)))return!1;var r=x(t),o=null==r&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=x(o)),null==r)return!1;if(null!=r.imports&&!s){var c;n.push(a);try{pt(r.imports,(function(t){i.processInjectorType(t,e,n)&&(void 0===c&&(c=[]),c.push(t))}))}finally{}if(void 0!==c)for(var u=function(t){var e=c[t],n=e.ngModule,r=e.providers;pt(r,(function(t){return i.processProvider(t,n,r||vo)}))},l=0;l0){var n=ft(e,"?");throw new Error("Can't resolve all parameters for "+j(t)+": ("+n.join(", ")+").")}var i=function(t){var e=t&&(t[E]||t[k]||t[A]&&t[A]());if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'+n+'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "'+n+'" class.'),e}return null}(t);return null!==i?function(){return i.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function Eo(t,e,n){var r,o=void 0;if(ko(t)){var a=P(t);return Rt(a)||xo(a)}if(Ao(t))o=function(){return P(t.useValue)};else if((r=t)&&r.useFactory)o=function(){return t.useFactory.apply(t,Object(i.f)(st(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))o=function(){return rt(P(t.useExisting))};else{var s=P(t&&(t.useClass||t.provide));if(s||function(t,e,n){var i="";throw t&&e&&(i=" - only instances of Provider and Type are allowed, got: ["+e.map((function(t){return t==n?"?"+n+"?":"..."})).join(", ")+"]"),new Error("Invalid provider for the NgModule '"+j(t)+"'"+i)}(e,n,t),!function(t){return!!t.deps}(t))return Rt(s)||xo(s);o=function(){return new(s.bind.apply(s,Object(i.f)([void 0],st(t.deps))))}}return o}function So(t,e,n){return void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function Ao(t){return null!==t&&"object"==typeof t&&J in t}function ko(t){return"function"==typeof t}var Do=function(t,e,n){return function(t,e,n,i){void 0===e&&(e=null),void 0===n&&(n=null);var r=Oo(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)},jo=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?Do(t,e,""):Do(t.providers,t.parent,t.name||"")},t.THROW_IF_NOT_FOUND=Z,t.NULL=new ct,t.\u0275prov=v({token:t,providedIn:"any",factory:function(){return rt(X)}}),t.__NG_ELEMENT_ID__=-1,t}(),Io=new K("AnalyzeForEntryComponents"),To=new Map,Ro=new Set;function Po(t){return"string"==typeof t?t:t.text()}function Lo(t,e,n){var i=n?t.styles:null,r=n?t.classes:null,o=0;if(null!==e)for(var a=0;ac?s[c]:null}"string"==typeof a&&(o+=2)}return null}(t,e,r,i.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,p=!1;else{o=da(i,e,o,!1);var y=n.listen(d.name||f,r,o);l.push(o,y),u&&u.push(r,b,m,m+1)}}else o=da(i,e,o,!0),f.addEventListener(r,o,a),l.push(o),u&&u.push(r,b,m,a)}var v,_=i.outputs;if(p&&null!==_&&(v=_[r])){var w=v.length;if(w)for(var O=0;O0;)e=e[15],t--;return e}(t,oe.lFrame.contextLView))[8]}(t)}function ma(t,e){for(var n=null,i=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),r=0;r=0}var Ca={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function xa(t){return t.substring(Ca.key,Ca.keyEnd)}function Ea(t,e){var n=Ca.textEnd;return n===e?-1:(e=Ca.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Ca.key=e,n),Sa(t,e,n))}function Sa(t,e,n){for(;e=0;n=Ea(e,n))mt(t,xa(e),!0)}function Ia(t,e,n,i){var r,o=se(),a=ce(),s=ve(2);if(a.firstUpdatePass&&Pa(a,t,s,i),e!==Pi&&zo(o,s,e)){var c=void 0;null==n&&(c=null===(r=oe.lFrame)?null:r.currentSanitizer)&&(n=c),Na(a,a.data[Te()+20],o,o[11],t,o[s+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=j(Rn(t)))),t}(e,n),i,s)}}function Ta(t,e,n,i){var r=ce(),o=ve(2);r.firstUpdatePass&&Pa(r,null,o,i);var a=se();if(n!==Pi&&zo(a,o,n)){var s=r.data[Te()+20];if(Ba(s,i)&&!Ra(r,o)){var c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(n=I(c,n||"")),Jo(r,s,a,n,i)}else!function(t,e,n,i,r,o,a,s){r===Pi&&(r=_a);for(var c=0,u=0,l=0=t.expandoStartIndex}function Pa(t,e,n,i){var r=t.data;if(null===r[n+1]){var o=r[Te()+20],a=Ra(t,n);Ba(o,i)&&null===e&&!a&&(e=!1),e=function(t,e,n,i){var r=Oe(t),o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=Fa(n=La(null,t,e,n,i),e.attrs,i),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==r)if(n=La(r,t,e,n,i),null===o){var s=function(t,e,n){var i=n?e.classBindings:e.styleBindings;if(0!==Ui(i))return t[Wi(i)]}(t,e,i);void 0!==s&&Array.isArray(s)&&function(t,e,n,i){t[Wi(n?e.classBindings:e.styleBindings)]=i}(t,e,i,s=Fa(s=La(null,t,e,s[1],i),e.attrs,i))}else o=function(t,e,n){for(var i=void 0,r=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(l=!0):u=n,r)if(0!==c){var p=Wi(t[s+1]);t[i+1]=Hi(p,s),0!==p&&(t[p+1]=Qi(t[p+1],i)),t[s+1]=131071&t[s+1]|i<<17}else t[i+1]=Hi(s,0),0!==s&&(t[s+1]=Qi(t[s+1],i)),s=i;else t[i+1]=Hi(c,0),0===s?s=i:t[c+1]=Qi(t[c+1],i),c=i;l&&(t[i+1]=zi(t[i+1])),wa(t,u,i,!0),wa(t,u,i,!1),function(t,e,n,i,r){var o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&>(o,e)>=0&&(n[i+1]=Yi(n[i+1]))}(e,u,t,i,o),a=Hi(s,c),o?e.classBindings=a:e.styleBindings=a}(r,o,e,n,a,i)}}function La(t,e,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var c=t[r],u=Array.isArray(c),l=u?c[1]:c,p=null===l,h=n[r+1];h===Pi&&(h=p?_a:void 0);var d=p?bt(h,i):l===i?h:void 0;if(u&&!Va(d)&&(d=bt(c,i)),Va(d)&&(s=d,a))return s;var f=t[r+1];r=a?Wi(f):Ui(f)}if(null!==e){var m=o?e.residualClasses:e.residualStyles;null!=m&&(s=bt(m,i))}return s}function Va(t){return void 0!==t}function Ba(t,e){return 0!=(t.flags&(e?16:32))}function Ha(t,e){void 0===e&&(e="");var n=se(),i=ce(),r=t+20,o=i.firstCreatePass?Xi(i,n[6],t,3,null,null):i.data[r],a=n[r]=function(t,e){return Qt(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Zr(i,n,a,o),pe(o,!1)}function Wa(t){return za("",t,""),Wa}function za(t,e,n){var i=se(),r=Yo(i,t,e,n);return r!==Pi&&Lr(i,Te(),r),za}function Ua(t,e,n,i,r){var o=se(),a=function(t,e,n,i,r,o){var a=Uo(t,ge(),n,r);return ve(2),a?e+Je(n)+i+Je(r)+o:Pi}(o,t,e,n,i,r);return a!==Pi&&Lr(o,Te(),a),Ua}function Qa(t,e,n){Ta(mt,ja,Yo(se(),t,e,n),!0)}function Ya(t,e,n){var i=se();return zo(i,ye(),e)&&cr(ce(),Pe(),i,t,e,i[11],n,!0),Ya}function Ga(t,e,n){var i=se();if(zo(i,ye(),e)){var r=ce(),o=Pe();cr(r,o,i,t,e,Tr(Oe(r.data),o,i),n,!0)}return Ga}function qa(t,e){var n=Jt(t)[1],i=n.data.length-1;Ne(n,{directiveStart:i,directiveEnd:i+1})}function Ka(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,i=[t];e;){var r=void 0;if(Bt(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);var o=t;o.inputs=Xa(t.inputs),o.declaredInputs=Xa(t.declaredInputs),o.outputs=Xa(t.outputs);var a=r.hostBindings;a&&Ja(t,a);var s=r.viewQuery,c=r.contentQueries;if(s&&Za(t,s),c&&$a(t,c),y(t.inputs,r.inputs),y(t.declaredInputs,r.declaredInputs),y(t.outputs,r.outputs),Bt(r)&&r.data.animation){var u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}o.afterContentChecked=o.afterContentChecked||r.afterContentChecked,o.afterContentInit=t.afterContentInit||r.afterContentInit,o.afterViewChecked=t.afterViewChecked||r.afterViewChecked,o.afterViewInit=t.afterViewInit||r.afterViewInit,o.doCheck=t.doCheck||r.doCheck,o.onDestroy=t.onDestroy||r.onDestroy,o.onInit=t.onInit||r.onInit}var l=r.features;if(l)for(var p=0;p=0;i--){var r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Ge(r.hostAttrs,n=Ge(n,r.hostAttrs))}}(i)}function Xa(t){return t===_t?{}:t===wt?[]:t}function Za(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,i){e(t,i),n(t,i)}:e}function $a(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,i,r){e(t,i,r),n(t,i,r)}:e}function Ja(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,i){e(t,i),n(t,i)}:e}var ts=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function es(t){t.type.prototype.ngOnChanges&&(t.setInput=ns,t.onChanges=function(){var t=is(this),e=t&&t.current;if(e){var n=t.previous;if(n===_t)t.previous=e;else for(var i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}})}function ns(t,e,n,i){var r=is(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:_t,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],c=a[s];o[s]=new ts(c&&c.currentValue,e,a===_t),t[i]=e}function is(t){return t.__ngSimpleChanges__||null}function rs(t,e,n,i,r){if(t=P(t),Array.isArray(t))for(var o=0;o>16;if(ko(t)||!t.multi){var f=new ze(u,r,Ko),m=ss(c,e,r?p:p+d,h);-1===m?(hn(cn(l,s),a,c),os(a,t,e.length),e.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=65536),n.push(f),s.push(f)):(n[m]=f,s[m]=f)}else{var b=ss(c,e,p+d,h),g=ss(c,e,p,p+d),y=g>=0&&n[g];r&&!y||!r&&!(b>=0&&n[b])?(hn(cn(l,s),a,c),f=function(t,e,n,i,r){var o=new ze(t,n,Ko);return o.multi=[],o.index=e,o.componentProviders=0,as(o,r,i&&!n),o}(r?us:cs,n.length,r,i,u),!r&&y&&(n[g].providerFactory=f),os(a,t,e.length,0),e.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=65536),n.push(f),s.push(f)):os(a,t,b>-1?b:g,as(n[r?g:b],u,!r&&i)),!r&&i&&y&&n[g].componentProviders++}}}function os(t,e,n,i){var r=ko(e);if(r||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function as(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ss(t,e,n,i){for(var r=n;r0&&io(u,p,_.join(" "))}if(o=Xt(m,0),void 0!==e)for(var w=o.projection=[],O=0;O null != "+e+" <=Actual]")}(n,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}var ac=new Map,sc=function(t){function e(e,n){var i=t.call(this)||this;i._parent=n,i._bootstrapComponents=[],i.injector=i,i.destroyCbs=[],i.componentFactoryResolver=new Qs(i);var r=Pt(e),o=e[Y]||null;return o&&oc(o),i._bootstrapComponents=rn(r.bootstrap),i._r3Injector=Oo(e,n,[{provide:ut,useValue:i},{provide:ms,useValue:i.componentFactoryResolver}],j(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return Object(i.c)(e,t),e.prototype.get=function(t,e,n){return void 0===e&&(e=jo.THROW_IF_NOT_FOUND),void 0===n&&(n=b.Default),t===jo||t===ut||t===X?this:this._r3Injector.get(t,e,n)},e.prototype.destroy=function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(ut),cc=function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,null!==Pt(e)&&function t(e){if(null!==e.\u0275mod.id){var n=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for "+t+" - "+j(e)+" vs "+j(e.name))})(n,ac.get(n),e),ac.set(n,e)}var i=e.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach((function(e){return t(e)}))}(e),n}return Object(i.c)(e,t),e.prototype.create=function(t){return new sc(this.moduleType,t)},e}(lt);function uc(t,e,n){var i=be()+t,r=se();return r[i]===Pi?Wo(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function lc(t,e,n,i){return dc(se(),be(),t,e,n,i)}function pc(t,e,n,i,r){return fc(se(),be(),t,e,n,i,r)}function hc(t,e){var n=t[e];return n===Pi?void 0:n}function dc(t,e,n,i,r,o){var a=e+n;return zo(t,a,r)?Wo(t,a+1,o?i.call(o,r):i(r)):hc(t,a+1)}function fc(t,e,n,i,r,o,a){var s=e+n;return Uo(t,s,r,o)?Wo(t,s+2,a?i.call(a,r,o):i(r,o)):hc(t,s+2)}function mc(t,e){var n,i=ce(),r=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var i=e[n];if(t===i.name)return i}throw new Error("The pipe '"+t+"' could not be found!")}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=Rt(n.type)),a=nt(Ko),s=an(!1),c=o();return an(s),nt(a),function(t,e,n,i){var r=n+20;r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=i}(i,se(),t,c),c}function bc(t,e,n){var i=se(),r=Zt(i,t);return _c(i,vc(i,t)?dc(i,be(),e,r.transform,n,r):r.transform(n))}function gc(t,e,n,i){var r=se(),o=Zt(r,t);return _c(r,vc(r,t)?fc(r,be(),e,o.transform,n,i,o):o.transform(n,i))}function yc(t,e,n,i,r){var o=se(),a=Zt(o,t);return _c(o,vc(o,t)?function(t,e,n,i,r,o,a,s){var c=e+n;return function(t,e,n,i,r){var o=Uo(t,e,n,i);return zo(t,e+2,r)||o}(t,c,r,o,a)?Wo(t,c+3,s?i.call(s,r,o,a):i(r,o,a)):hc(t,c+3)}(o,be(),e,a.transform,n,i,r,a):a.transform(n,i,r))}function vc(t,e){return t[1].data[e+20].pure}function _c(t,e){return Vo.isWrapped(e)&&(e=Vo.unwrap(e),t[ge()]=Pi),e}var wc=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return Object(i.c)(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,i){var o,a=function(t){return null},s=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(a=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},n&&(a=this.__isAsync?function(t){setTimeout((function(){return n(t)}))}:function(t){n(t)}),i&&(s=this.__isAsync?function(){setTimeout((function(){return i()}))}:function(){i()}));var c=t.prototype.subscribe.call(this,o,a,s);return e instanceof r.a&&e.add(c),c},e}(o.a);function Oc(){return this._results[No()]()}var Cc=function(){function t(){this.dirty=!0,this._results=[],this.changes=new wc,this.length=0;var e=No(),n=t.prototype;n[e]||(n[e]=Oc)}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e,n){void 0===n&&(n=e);for(var i=0;i0)r.push(s[c/2]);else{for(var l=a[c+1],p=n[-u],h=10;h0&&(r=setTimeout((function(){i._callbacks=i._callbacks.filter((function(t){return t.timeoutId!==r})),t(i._didWork,i.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t.\u0275fac=function(e){return new(e||t)(rt(du))},t.\u0275prov=v({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Ou=function(){function t(){this._applications=new Map,Eu.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Eu.findTestabilityInTree(this,t,e)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function Cu(t){Eu=t}var xu,Eu=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Su=function(t,e,n){var r=t.get(lu,[]).concat(e),o=new cc(n);if(0===To.size)return Promise.resolve(o);var a,s,c=(a=r.map((function(t){return t.providers})),s=[],a.forEach((function(t){return t&&s.push.apply(s,Object(i.f)(t))})),s);if(0===c.length)return Promise.resolve(o);var u=function(){var t=H.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),l=jo.create({providers:c}).get(u.ResourceLoader);return function(t){var e=[],n=new Map;function i(t){var e=n.get(t);if(!e){var i=function(t){return Promise.resolve(l.get(t))}(t);n.set(t,e=i.then(Po))}return e}return To.forEach((function(t,n){var r=[];t.templateUrl&&r.push(i(t.templateUrl).then((function(e){t.template=e})));var o=t.styleUrls,a=t.styles||(t.styles=[]),s=t.styles.length;o&&o.forEach((function(e,n){a.push(""),r.push(i(e).then((function(i){a[s+n]=i,o.splice(o.indexOf(e),1),0==o.length&&(t.styleUrls=void 0)})))}));var c=Promise.all(r).then((function(){return function(t){Ro.delete(t)}(n)}));e.push(c)})),To=new Map,Promise.all(e).then((function(){}))}().then((function(){return o}))},Au=new K("AllowMultipleToken"),ku=function(){return function(t,e){this.name=t,this.token=e}}();function Du(t,e,n){void 0===n&&(n=[]);var i="Platform: "+e,r=new K(i);return function(e){void 0===e&&(e=[]);var o=ju();if(!o||o.injector.get(Au,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{var a=n.concat(e).concat({provide:r,useValue:!0},{provide:bo,useValue:"platform"});!function(t){if(xu&&!xu.destroyed&&!xu.injector.get(Au,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");xu=t.get(Iu);var e=t.get(Xc,null);e&&e.forEach((function(t){return t()}))}(jo.create({providers:a,name:i}))}return function(t){var e=ju();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function ju(){return xu&&!xu.destroyed?xu:null}var Iu=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,i,r=this,o=(i=e&&e.ngZoneEventCoalescing||!1,"noop"===(n=e?e.ngZone:void 0)?new _u:("zone.js"===n?void 0:n)||new du({enableLongStackTrace:zn(),shouldCoalesceEventChangeDetection:i})),a=[{provide:du,useValue:o}];return o.run((function(){var e=jo.create({providers:a,parent:r.injector,name:t.moduleType.name}),n=t.create(e),i=n.injector.get(Sn,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Pu(r._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(t){i.handleError(t)}})})),function(t,e,i){try{var o=((a=n.injector.get(Yc)).runInitializers(),a.donePromise.then((function(){return oc(n.injector.get(tu,"en-US")||"en-US"),r._moduleDoBootstrap(n),n})));return sa(o)?o.catch((function(n){throw e.runOutsideAngular((function(){return t.handleError(n)})),n})):o}catch(s){throw e.runOutsideAngular((function(){return t.handleError(s)})),s}var a}(i,o)}))},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var i=Tu({},e);return Su(this.injector,i,t).then((function(t){return n.bootstrapModuleFactory(t,i)}))},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Ru);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((function(t){return e.bootstrap(t)}));else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+j(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(t){return t.destroy()})),this._destroyListeners.forEach((function(t){return t()})),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)(rt(jo))},t.\u0275prov=v({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function Tu(t,e){return Array.isArray(e)?e.reduce(Tu,t):Object(i.a)(Object(i.a)({},t),e)}var Ru=function(){function t(t,e,n,i,r,o){var u=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=zn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run((function(){u.tick()}))}});var l=new a.a((function(t){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular((function(){t.next(u._stable),t.complete()}))})),p=new a.a((function(t){var e;u._zone.runOutsideAngular((function(){e=u._zone.onStable.subscribe((function(){du.assertNotInAngularZone(),hu((function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,t.next(!0))}))}))}));var n=u._zone.onUnstable.subscribe((function(){du.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),n.unsubscribe()}}));this.isStable=Object(s.a)(l,p.pipe(Object(c.a)()))}return t.prototype.bootstrap=function(t,e){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof ds?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(ut),o=n.create(jo.NULL,[],e||n.selector,r);o.onDestroy((function(){i._unloadComponent(o)}));var a=o.injector.get(wu,null);return a&&o.injector.get(Ou).registerApplication(o.location.nativeElement,a),this._loadComponent(o),zn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var t,e,n,r,o=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;try{for(var a=Object(i.h)(this._views),s=a.next();!s.done;s=a.next())s.value.detectChanges()}catch(l){t={error:l}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}if(this._enforceNoNewChanges)try{for(var c=Object(i.h)(this._views),u=c.next();!u.done;u=c.next())u.value.checkNoChanges()}catch(p){n={error:p}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}catch(h){this._zone.runOutsideAngular((function(){return o._exceptionHandler.handleError(h)}))}finally{this._runningTick=!1}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Pu(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get($c,[]).concat(this._bootstrapListeners).forEach((function(e){return e(t)}))},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Pu(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach((function(t){return t.destroy()}))},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)(rt(du),rt(Jc),rt(jo),rt(Sn),rt(ms),rt(Yc))},t.\u0275prov=v({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function Pu(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Lu=function(){return function(){}}(),Fu=function(){return function(){}}(),Nu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Mu=function(){function t(t,e){this._compiler=t,this._config=e||Nu}return t.prototype.load=function(t){return this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=Object(i.e)(t.split("#"),2),o=r[0],a=r[1];return void 0===a&&(a="default"),n("crnd")(o).then((function(t){return t[a]})).then((function(t){return Vu(t,o,a)})).then((function(t){return e._compiler.compileModuleAsync(t)}))},t.prototype.loadFactory=function(t){var e=Object(i.e)(t.split("#"),2),r=e[0],o=e[1],a="NgFactory";return void 0===o&&(o="default",a=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then((function(t){return t[o+a]})).then((function(t){return Vu(t,r,o)}))},t.\u0275fac=function(e){return new(e||t)(rt(uu),rt(Fu,8))},t.\u0275prov=v({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function Vu(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var Bu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e}(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e}(fo)),Hu=function(t){return null},Wu=Du(null,"core",[{provide:Zc,useValue:"unknown"},{provide:Iu,deps:[jo]},{provide:Ou,deps:[]},{provide:Jc,deps:[]}]),zu=[{provide:Ru,useClass:Ru,deps:[du,Jc,jo,Sn,ms,Yc]},{provide:Gs,deps:[du],useFactory:function(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:Yc,useClass:Yc,deps:[[new d,Qc]]},{provide:uu,useClass:uu,deps:[]},qc,{provide:Ls,useFactory:function(){return Ms},deps:[]},{provide:Fs,useFactory:function(){return Vs},deps:[]},{provide:tu,useFactory:function(t){return oc(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new h(tu),new d,new m]]},{provide:eu,useValue:"USD"}],Uu=function(){function t(t){}return t.\u0275mod=At({type:t}),t.\u0275inj=w({factory:function(e){return new(e||t)(rt(Ru))},providers:zu}),t}()},Ci9w:function(t,e,n){"use strict";n.d(e,"a",(function(){return O})),n.d(e,"b",(function(){return x}));var i=n("Qbxm"),r=n("CcnG"),o=n("eO+G"),a=n("mrSG"),s=n("349r"),c=n("gIcY"),u=n("wFw1"),l=n("m47I"),p=n("HHjO"),h=["thumbContainer"],d=["toggleBar"],f=["input"],m=function(){return{enterDuration:150}},b=["*"],g=new r.r("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),y=0,v={provide:c.j,useExisting:Object(r.V)((function(){return O})),multi:!0},_=function(){return function(t,e){this.source=t,this.checked=e}}(),w=function(){return function(t){this._elementRef=t}}(),O=function(t){function e(e,n,i,o,a,s,c,u){var l=t.call(this,e)||this;return l._focusMonitor=n,l._changeDetectorRef=i,l.defaults=s,l._animationMode=c,l._onChange=function(t){},l._onTouched=function(){},l._uniqueId="mat-slide-toggle-"+ ++y,l._required=!1,l._checked=!1,l.name=null,l.id=l._uniqueId,l.labelPosition="after",l.ariaLabel=null,l.ariaLabelledby=null,l.change=new r.o,l.toggleChange=new r.o,l.dragChange=new r.o,l.tabIndex=parseInt(o)||0,l}return Object(a.c)(e,t),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Object(s.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(t){this._checked=Object(s.c)(t),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){"keyboard"===e||"program"===e?t._inputElement.nativeElement.focus():e||Promise.resolve().then((function(){return t._onTouched()}))}))},e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)},e.prototype._onChangeEvent=function(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())},e.prototype._onInputClick=function(t){t.stopPropagation()},e.prototype.writeValue=function(t){this.checked=!!t},e.prototype.registerOnChange=function(t){this._onChange=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck()},e.prototype.focus=function(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)},e.prototype.toggle=function(){this.checked=!this.checked,this._onChange(this.checked)},e.prototype._emitChangeEvent=function(){this._onChange(this.checked),this.change.emit(new _(this,this.checked))},e.prototype._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()},e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(l.h),r.Qb(r.h),r.bc("tabindex"),r.Qb(r.A),r.Qb(g),r.Qb(u.a,8),r.Qb(p.b,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var n;1&t&&(r.Mc(h,!0),r.Mc(d,!0),r.Mc(f,!0)),2&t&&(r.vc(n=r.fc())&&(e._thumbEl=n.first),r.vc(n=r.fc())&&(e._thumbBarEl=n.first),r.vc(n=r.fc())&&(e._inputElement=n.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Zb("id",e.id),r.Eb("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),r.Hb("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",required:"required",checked:"checked",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},outputs:{change:"change",toggleChange:"toggleChange",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[r.Cb([v]),r.Ab],ngContentSelectors:b,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(r.oc(),r.Wb(0,"label",0,1),r.Wb(2,"div",2,3),r.Wb(4,"input",4,5),r.ec("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),r.Vb(),r.Wb(6,"div",6,7),r.Rb(8,"div",8),r.Wb(9,"div",9),r.Rb(10,"div",10),r.Vb(),r.Vb(),r.Vb(),r.Wb(11,"span",11,12),r.ec("cdkObserveContent",(function(){return e._onLabelTextChange()})),r.Wb(13,"span",13),r.Hc(14,"\xa0"),r.Vb(),r.nc(15),r.Vb(),r.Vb()),2&t){var n=r.wc(1),i=r.wc(12);r.Eb("for",e.inputId),r.Db(2),r.Hb("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),r.Db(2),r.pc("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),r.Eb("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),r.Db(5),r.pc("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r.sc(17,m))}},directives:[o.s,i.a],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),e}(Object(o.C)(Object(o.x)(Object(o.y)(Object(o.z)(w)),"accent"))),C=function(){function t(){}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)}}),t}(),x=function(){function t(){}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[C,o.t,o.i,i.c],C,o.i]}),t}()},Cyaj:function(t,e,n){!function(e){"use strict";var i={};t.exports?(i.bytesToHex=n("bCQu").bytesToHex,i.convertString=n("Qi+P"),t.exports=s):(i.bytesToHex=e.convertHex.bytesToHex,i.convertString=e.convertString,e.sha256=s);var r=[];!function(){function t(t){for(var e=Math.sqrt(t),n=2;n<=e;n++)if(!(t%n))return!1;return!0}function e(t){return 4294967296*(t-(0|t))|0}for(var n=2,i=0;i<64;)t(n)&&(r[i]=e(Math.pow(n,1/3)),i++),n++}();var o=[],a=function(t,e,n){for(var i=t[0],a=t[1],s=t[2],c=t[3],u=t[4],l=t[5],p=t[6],h=t[7],d=0;d<64;d++){if(d<16)o[d]=0|e[n+d];else{var f=o[d-15],m=o[d-2];o[d]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+o[d-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+o[d-16]}var b=i&a^i&s^a&s,g=h+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&l^~u&p)+r[d]+o[d];h=p,p=l,l=u,u=c+g|0,c=s,s=a,a=i,i=g+(((i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22))+b)|0}t[0]=t[0]+i|0,t[1]=t[1]+a|0,t[2]=t[2]+s|0,t[3]=t[3]+c|0,t[4]=t[4]+u|0,t[5]=t[5]+l|0,t[6]=t[6]+p|0,t[7]=t[7]+h|0};function s(t,e){t.constructor===String&&(t=i.convertString.UTF8.stringToBytes(t));var n=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],r=function(t){for(var e=[],n=0,i=0;n>>5]|=t[n]<<24-i%32;return e}(t),o=8*t.length;r[o>>5]|=128<<24-o%32,r[15+(o+64>>9<<4)]=o;for(var s=0;s>>5]>>>24-n%32&255);return e}(n);return e&&e.asBytes?c:e&&e.asString?i.convertString.bytesToString(c):i.bytesToHex(c)}s.x2=function(t,e){return s(s(t,{asBytes:!0}),e)}}(this)},D9sq:function(t,e,n){"use strict";n.d(e,"a",(function(){return E}));var i=n("mrSG"),r=n("jYNz"),o=n("K9Ia"),a=n("F/XL"),s=n("/PH2"),c=n("psW0"),u=n("ny24"),l=n("67Y/"),p=n("9Z1F"),h=n("AytR"),d=n("V8Fa"),f=n("lF6s"),m=n("/uX3"),b=n("bdpe"),g=n("CcnG"),y=n("t/Na"),v=n("yGQT"),_=n("mZtN"),w=n("cpEJ"),O=n("7o2P"),C=n("ZYCi"),x=n("Ip0R"),E=function(){function t(t,e,n,i,d,g,y,v){var _=this;this.actions$=t,this.httpClient=e,this.store=n,this.sessionService=i,this.logger=d,this.commonService=g,this.router=y,this.location=v,this.CHILD_API_URL=h.a+"/ecl",this.unSubs=[new o.a,new o.a],this.infoFetchECL=this.actions$.pipe(Object(r.d)(f.o),Object(s.a)(this.store.select("root")),Object(c.a)((function(t){var e=t[0];return _.store.dispatch(new f.e("FetchInfo")),_.httpClient.get(_.CHILD_API_URL+h.b.GETINFO_API).pipe(Object(u.a)(_.actions$.pipe(Object(r.d)(m.O))),Object(l.a)((function(t){return _.logger.info(t),_.initializeRemainingData(t,e.payload.loadPage),{type:f.Z,payload:t||{}}})),Object(p.a)((function(t){return _.router.navigate(["/error"],{state:{errorCode:t.error&&t.error.error&&t.error.error.message&&t.error.error.message.code?t.error.error.message.code:t.error&&t.error.error&&t.error.error.code?t.error.error.code:t.status?t.status:"",errorMessage:(t.error&&t.error.message?t.error.message+" ":"")+(t.error&&t.error.error&&t.error.error.error&&"string"==typeof t.error.error.error?t.error.error.error:t.error&&t.error.error&&t.error.error.errno&&"string"==typeof t.error.error.errno?t.error.error.errno:t.error&&t.error.error&&"string"==typeof t.error.error?t.error.error:t.error&&"string"==typeof t.error?t.error:"Unknown Error")}}),_.handleErrorWithoutAlert("FetchInfo","Fetching Node Info Failed.",t),Object(a.a)({type:m.bb})})))}))),this.fetchFees=this.actions$.pipe(Object(r.d)(f.n),Object(c.a)((function(t){return _.store.dispatch(new f.e("FetchFees")),_.httpClient.get(_.CHILD_API_URL+h.b.FEES_API+"/fees").pipe(Object(l.a)((function(t){return _.logger.info(t),{type:f.X,payload:t||{}}}),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchFees","Fetching Fees Failed.",t),Object(a.a)({type:m.bb})}))))}))),this.fetchPayments=this.actions$.pipe(Object(r.d)(f.r),Object(c.a)((function(t){return _.store.dispatch(new f.e("FetchPayments")),_.httpClient.get(_.CHILD_API_URL+h.b.FEES_API+"/payments").pipe(Object(l.a)((function(t){return _.logger.info(t),{type:f.fb,payload:t||{}}}),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchPayments","Fetching Payments Failed.",t),Object(a.a)({type:m.bb})}))))}))),this.channelsFetch=this.actions$.pipe(Object(r.d)(f.l),Object(c.a)((function(t){return _.store.dispatch(new f.e("FetchChannels")),_.httpClient.get(_.CHILD_API_URL+h.b.CHANNELS_API).pipe(Object(l.a)((function(e){return _.logger.info(e),_.store.dispatch(new f.pb(e&&e.activeChannels.length>0?e.activeChannels:[])),_.store.dispatch(new f.ub(e&&e.pendingChannels.length>0?e.pendingChannels:[])),_.store.dispatch(new f.rb(e&&e.inactiveChannels.length>0?e.inactiveChannels:[])),_.store.dispatch(new f.sb(e.lightningBalances)),t.payload.fetchPayments&&_.store.dispatch(new f.z),{type:f.U,payload:e.channelStatus}}),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchChannels","Fetching Channels Failed.",t),Object(a.a)({type:m.bb})}))))}))),this.channelStatsFetch=this.actions$.pipe(Object(r.d)(f.m),Object(c.a)((function(t){return _.store.dispatch(new f.e("FetchChannelStats")),_.httpClient.get(_.CHILD_API_URL+h.b.CHANNELS_API+"/stats").pipe(Object(l.a)((function(t){return _.logger.info(t),{type:f.V,payload:t&&t.length>0?t:[]}}),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchChannelStats","Fetching Channel Stats Failed.",t),Object(a.a)({type:m.bb})}))))}))),this.fetchOnchainBalance=this.actions$.pipe(Object(r.d)(f.q),Object(c.a)((function(t){return _.store.dispatch(new f.e("FetchOnchainBalance")),_.httpClient.get(_.CHILD_API_URL+h.b.ON_CHAIN_API+"/balance")})),Object(l.a)((function(t){return _.logger.info(t),{type:f.eb,payload:t||{}}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchOnchainBalance","Fetching Onchain Balances Failed.",t),Object(a.a)({type:m.bb})}))),this.peersFetch=this.actions$.pipe(Object(r.d)(f.s),Object(c.a)((function(t){return _.store.dispatch(new f.e("FetchPeers")),_.httpClient.get(_.CHILD_API_URL+h.b.PEERS_API).pipe(Object(l.a)((function(t){return _.logger.info(t),{type:f.gb,payload:t&&t.length?t:[]}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchPeers","Fetching Peers Failed.",t),Object(a.a)({type:m.bb})})))}))),this.getNewAddress=this.actions$.pipe(Object(r.d)(f.C),Object(c.a)((function(t){return _.httpClient.get(_.CHILD_API_URL+h.b.ON_CHAIN_API).pipe(Object(l.a)((function(t){return _.logger.info(t),_.store.dispatch(new m.i),{type:f.db,payload:t}})),Object(p.a)((function(t){return _.handleErrorWithAlert("ERROR","Generate New Address Failed",_.CHILD_API_URL+h.b.ON_CHAIN_API,t),Object(a.a)({type:m.bb})})))}))),this.setNewAddress=this.actions$.pipe(Object(r.d)(f.db),Object(l.a)((function(t){return _.logger.info(t.payload),t.payload}))),this.saveNewPeer=this.actions$.pipe(Object(r.d)(f.O),Object(s.a)(this.store.select("ecl")),Object(c.a)((function(t){var e=t[0];return _.store.dispatch(new f.e("SaveNewPeer")),_.httpClient.post(_.CHILD_API_URL+h.b.PEERS_API+(e.payload.id.includes("@")?"?uri=":"?nodeId=")+e.payload.id,{}).pipe(Object(l.a)((function(t){return _.logger.info(t),_.store.dispatch(new m.i),_.store.dispatch(new f.tb(t&&t.length?t:[])),{type:f.G,payload:{peer:t[0]}}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("SaveNewPeer","Peer Connection Failed.",t),Object(a.a)({type:m.bb})})))}))),this.detachPeer=this.actions$.pipe(Object(r.d)(f.h),Object(c.a)((function(t){return _.httpClient.delete(_.CHILD_API_URL+h.b.PEERS_API+"/"+t.payload.nodeId).pipe(Object(l.a)((function(e){return _.logger.info(e),_.store.dispatch(new m.i),_.store.dispatch(new m.E("Disconnecting Peer!")),{type:f.K,payload:{nodeId:t.payload.nodeId}}})),Object(p.a)((function(e){return _.handleErrorWithAlert("ERROR","Unable to Detach Peer. Try again later.",_.CHILD_API_URL+h.b.PEERS_API+"/"+t.payload.nodeId,e),Object(a.a)({type:m.bb})})))}))),this.openNewChannel=this.actions$.pipe(Object(r.d)(f.N),Object(c.a)((function(t){return _.store.dispatch(new f.e("SaveNewChannel")),_.httpClient.post(_.CHILD_API_URL+h.b.CHANNELS_API,t.payload.feeRate&&t.payload.feeRate>0?{nodeId:t.payload.nodeId,fundingSatoshis:t.payload.amount,channelFlags:+!t.payload.private,fundingFeerateSatByte:t.payload.feeRate}:{nodeId:t.payload.nodeId,fundingSatoshis:t.payload.amount,channelFlags:+!t.payload.private}).pipe(Object(l.a)((function(t){return _.logger.info(t),_.store.dispatch(new f.A),_.store.dispatch(new f.y),_.store.dispatch(new m.i),_.store.dispatch(new m.E("Channel Added Successfully!")),{type:f.l}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("SaveNewChannel","Opening Channel Failed.",t),Object(a.a)({type:m.bb})})))}))),this.updateChannel=this.actions$.pipe(Object(r.d)(f.wb),Object(c.a)((function(t){var e="?feeBaseMsat="+t.payload.baseFeeMsat+"&feeProportionalMillionths="+t.payload.feeRate;return _.httpClient.post(_.CHILD_API_URL+h.b.CHANNELS_API+"/updateRelayFee"+(e=t.payload.channelIds?e+"&channelIds="+t.payload.channelIds:e+"&channelId="+t.payload.channelId),{}).pipe(Object(l.a)((function(e){return _.logger.info(e),_.store.dispatch(new m.i),_.store.dispatch(new m.E(t.payload.channelIds?"Channels Updated Successfully.":"Channel Updated Successfully!")),{type:f.l}})),Object(p.a)((function(t){return _.handleErrorWithAlert("ERROR","Update Channel Failed",_.CHILD_API_URL+h.b.CHANNELS_API,t),Object(a.a)({type:m.bb})})))}))),this.closeChannel=this.actions$.pipe(Object(r.d)(f.c),Object(c.a)((function(t){return _.httpClient.delete(_.CHILD_API_URL+h.b.CHANNELS_API+"?channelId="+t.payload.channelId+"&force="+t.payload.force).pipe(Object(l.a)((function(e){return _.logger.info(e),setTimeout((function(){_.store.dispatch(new m.i),_.store.dispatch(new f.u({fetchPayments:!1})),_.store.dispatch(new m.E(t.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"))}),2e3),{type:m.bb}})),Object(p.a)((function(t){return _.handleErrorWithAlert("ERROR","Unable to Close Channel. Try again later.",_.CHILD_API_URL+h.b.CHANNELS_API,t),Object(a.a)({type:m.bb})})))}))),this.queryRoutesFetch=this.actions$.pipe(Object(r.d)(f.D),Object(c.a)((function(t){return _.httpClient.get(_.CHILD_API_URL+h.b.PAYMENTS_API+"/route?nodeId="+t.payload.nodeId+"&amountMsat="+t.payload.amount).pipe(Object(l.a)((function(t){return _.logger.info(t),{type:f.ib,payload:t}})),Object(p.a)((function(e){return _.store.dispatch(new f.vb([])),_.handleErrorWithAlert("ERROR","Get Query Routes Failed",_.CHILD_API_URL+h.b.PAYMENTS_API+"/route?nodeId="+t.payload.nodeId+"&amountMsat="+t.payload.amount,e),Object(a.a)({type:m.bb})})))}))),this.setQueryRoutes=this.actions$.pipe(Object(r.d)(f.ib),Object(l.a)((function(t){return t.payload}))),this.sendPayment=this.actions$.pipe(Object(r.d)(f.R),Object(s.a)(this.store.select("root")),Object(c.a)((function(t){var e=t[0];return _.store.dispatch(new f.e("SendPayment")),_.httpClient.post(_.CHILD_API_URL+h.b.PAYMENTS_API,e.payload).pipe(Object(l.a)((function(t){if(_.logger.info(t),t.error){_.store.dispatch(new m.i),_.logger.error("Error: "+t.payment_error);var n={status:t.payment_error.status,error:t.payment_error.error&&t.payment_error.error.error&&"object"==typeof t.payment_error.error.error?t.payment_error.error.error:{error:t.payment_error.error&&t.payment_error.error.error?t.payment_error.error.error:"Unknown Error"}};return e.payload.fromDialog?_.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):_.handleErrorWithAlert("ERROR","Send Payment Failed",_.CHILD_API_URL+h.b.PAYMENTS_API,n),Object(a.a)({type:m.bb})}return setTimeout((function(){_.store.dispatch(new f.ob(t)),_.store.dispatch(new m.i),_.store.dispatch(new f.u({fetchPayments:!0})),_.store.dispatch(new f.z),_.store.dispatch(new m.E("Payment Submitted!"))}),3e3),{type:m.bb}})),Object(p.a)((function(t){_.logger.error("Error: "+JSON.stringify(t));var n={status:t.status,error:t.error&&t.error.error&&"object"==typeof t.error.error?t.error.error:{error:t.error&&t.error.error?t.error.error:"Unknown Error"}};return e.payload.fromDialog?_.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):_.handleErrorWithAlert("ERROR","Send Payment Failed",_.CHILD_API_URL+h.b.PAYMENTS_API,n),Object(a.a)({type:m.bb})})))}))),this.transactionsFetch=this.actions$.pipe(Object(r.d)(f.t),Object(c.a)((function(t){return _.store.dispatch(new f.e("FetchTransactions")),_.httpClient.get(_.CHILD_API_URL+h.b.ON_CHAIN_API+"/transactions?count=1000&skip=0")})),Object(l.a)((function(t){return _.logger.info(t),{type:f.jb,payload:t&&t.length>0?t:[]}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchTransactions","Fetching Transactions Failed.",t),Object(a.a)({type:m.bb})}))),this.SendOnchainFunds=this.actions$.pipe(Object(r.d)(f.P),Object(c.a)((function(t){return _.store.dispatch(new f.e("SendOnchainFunds")),_.httpClient.post(_.CHILD_API_URL+h.b.ON_CHAIN_API,t.payload).pipe(Object(l.a)((function(t){return _.logger.info(t),_.store.dispatch(new m.i),_.store.dispatch(new f.y),{type:f.Q,payload:t}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("SendOnchainFunds","Sending Fund Failed.",t),Object(a.a)({type:m.bb})})))}))),this.createInvoice=this.actions$.pipe(Object(r.d)(f.d),Object(c.a)((function(t){return _.store.dispatch(new f.e("CreateInvoice")),_.httpClient.post(_.CHILD_API_URL+h.b.INVOICES_API,t.payload).pipe(Object(l.a)((function(e){return _.logger.info(e),_.store.dispatch(new m.i),e.amount=t.payload.amountMsat,e.timestamp=(new Date).getTime()/1e3,e.timestampStr=_.commonService.convertTimestampToDate(+e.timestamp),e.expiresAt=Math.round(e.timestamp+t.payload.expireIn),e.expiresAtStr=_.commonService.convertTimestampToDate(+e.expiresAt),e.description=t.payload.description,e.status="unpaid",_.store.dispatch(new m.C({data:{invoice:e,newlyAdded:!1,component:b.a}})),{type:f.p}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("CreateInvoice","Create Invoice Failed.",t),Object(a.a)({type:m.bb})})))}))),this.invoicesFetch=this.actions$.pipe(Object(r.d)(f.p),Object(c.a)((function(t){return _.store.dispatch(new f.e("FetchInvoices")),_.httpClient.get(_.CHILD_API_URL+h.b.INVOICES_API).pipe(Object(l.a)((function(t){return _.logger.info(t),{type:f.ab,payload:t}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchInvoices","Fetching Invoices Failed.",t),Object(a.a)({type:m.bb})})))}))),this.peerLookup=this.actions$.pipe(Object(r.d)(f.H),Object(c.a)((function(t){return _.store.dispatch(new f.e("Lookup")),_.httpClient.get(_.CHILD_API_URL+h.b.NETWORK_API+"/nodes/"+t.payload).pipe(Object(l.a)((function(t){return _.logger.info(t),_.store.dispatch(new m.i),{type:f.cb,payload:t}})),Object(p.a)((function(e){return _.store.dispatch(new f.k({action:"Lookup",code:e.status,message:e.error.message})),_.handleErrorWithAlert("ERROR","Peer Lookup Failed",_.CHILD_API_URL+h.b.NETWORK_API+"/nodes/"+t.payload,e),Object(a.a)({type:m.bb})})))}))),this.setLookup=this.actions$.pipe(Object(r.d)(f.cb),Object(l.a)((function(t){return _.logger.info(t.payload),t.payload}))),this.store.select("ecl").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){"INCOMPLETE"===t.initialAPIResponseStatus[0]&&t.initialAPIResponseStatus.length>4&&(t.initialAPIResponseStatus[0]="COMPLETE",_.store.dispatch(new m.i))}))}return t.prototype.initializeRemainingData=function(t,e){this.sessionService.setItem("eclUnlocked","true");var n={identity_pubkey:t.nodeId,alias:t.alias,testnet:"testnet"===t.network,chains:t.publicAddresses,uris:t.uris,version:t.version,currency_unit:"BTC",smaller_currency_unit:"Sats",numberOfPendingChannels:0};this.store.dispatch(new m.F("Initializing Node Data...")),this.store.dispatch(new m.T(n)),this.store.dispatch(new f.u({fetchPayments:!0})),this.store.dispatch(new f.v),this.store.dispatch(new f.y),this.store.dispatch(new f.A);var i=this.location.path();i.includes("/lnd/")?i=i.replace("/lnd/","/ecl/"):i.includes("/cl/")&&(i=i.replace("/cl/","/ecl/")),(i.includes("/login")||i.includes("/error")||""===i||"HOME"===e||i.includes("?access-key="))&&(i="/ecl/home"),this.router.navigate([i])},t.prototype.handleErrorWithoutAlert=function(t,e,n){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(n)),401===n.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new m.g),this.store.dispatch(new m.x),this.store.dispatch(new m.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new m.i),this.store.dispatch(new f.k({action:t,code:n.status.toString(),message:n.error&&n.error.error&&"string"==typeof n.error.error?n.error.error:e})))},t.prototype.handleErrorWithAlert=function(t,e,n,i){this.logger.error(i),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new m.g),this.store.dispatch(new m.x),this.store.dispatch(new m.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new m.i),this.store.dispatch(new m.C({data:{type:t,alertTitle:e,message:{code:i.status,message:i.error.error&&i.error.error.error&&i.error.error.error.error&&"string"==typeof i.error.error.error.error?i.error.error.error.error:i.error.error&&i.error.error.error&&"string"==typeof i.error.error.error?i.error.error.error:i.error&&i.error.error&&"string"==typeof i.error.error?i.error.error:"string"==typeof i.error?i.error:"Unknown Error",URL:n},component:d.a}})))},t.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(t){t.next(),t.complete()}))},t.\u0275fac=function(e){return new(e||t)(g.ac(r.a),g.ac(y.b),g.ac(v.h),g.ac(_.a),g.ac(w.b),g.ac(O.a),g.ac(C.f),g.ac(x.i))},t.\u0275prov=g.Mb({token:t,factory:t.\u0275fac}),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"infoFetchECL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"fetchFees",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"fetchPayments",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"channelsFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"channelStatsFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"fetchOnchainBalance",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"peersFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"getNewAddress",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"setNewAddress",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"saveNewPeer",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"detachPeer",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"openNewChannel",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"updateChannel",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"closeChannel",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"queryRoutesFetch",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"setQueryRoutes",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"sendPayment",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"transactionsFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"SendOnchainFunds",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"createInvoice",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"invoicesFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"peerLookup",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"setLookup",void 0),t}()},DKTb:function(t,e,n){"use strict";function i(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return i}))},ELBg:function(t,e,n){"use strict";var i={single_source_shortest_paths:function(t,e,n){var r={},o={};o[e]=0;var a,s,c,u,l,p,h=i.PriorityQueue.make();for(h.push(e,0);!h.empty();)for(c in u=(a=h.pop()).cost,l=t[s=a.value]||{})l.hasOwnProperty(c)&&(p=u+l[c],(void 0===o[c]||o[c]>p)&&(o[c]=p,h.push(c,p),r[c]=s));if(void 0!==n&&void 0===o[n]){var d=["Could not find a path from ",e," to ",n,"."].join("");throw new Error(d)}return r},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],i=e;i;)n.push(i),i=t[i];return n.reverse(),n},find_path:function(t,e,n){var r=i.single_source_shortest_paths(t,e,n);return i.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(t){var e,n=i.PriorityQueue,r={};for(e in t=t||{},n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r.queue=[],r.sorter=t.sorter||n.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){this.queue.push({value:t,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=i},"En8+":function(t,e,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return r}));var r=i()},"F/XL":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("nkY7"),r=n("IUTb"),o=n("JF+6");function a(){for(var t=[],e=0;e0?t:[])),{type:g.db,payload:{peer:t[0]}}})),Object(p.a)((function(t){return O.handleErrorWithoutAlert("SaveNewPeer","Peer Connection Failed.",t),Object(a.a)({type:b.bb})})))}))),this.detachPeer=this.actions$.pipe(Object(r.d)(g.k),Object(c.a)((function(t){return O.httpClient.delete(O.CHILD_API_URL+h.b.PEERS_API+"/"+t.payload.pubkey).pipe(Object(l.a)((function(e){return O.logger.info(e),O.store.dispatch(new b.i),O.store.dispatch(new b.E("Peer Disconnected Successfully.")),{type:g.ib,payload:{pubkey:t.payload.pubkey}}})),Object(p.a)((function(e){return O.handleErrorWithAlert("ERROR","Unable to Detach Peer. Try again later.",O.CHILD_API_URL+h.b.PEERS_API+"/"+t.payload.pubkey,e),Object(a.a)({type:b.bb})})))}))),this.saveNewInvoice=this.actions$.pipe(Object(r.d)(g.rb),Object(c.a)((function(t){return O.store.dispatch(new g.i("SaveNewInvoice")),O.httpClient.post(O.CHILD_API_URL+h.b.INVOICES_API,{memo:t.payload.memo,amount:t.payload.invoiceValue,private:t.payload.private,expiry:t.payload.expiry}).pipe(Object(l.a)((function(e){return O.logger.info(e),O.store.dispatch(new g.I({num_max_invoices:t.payload.pageSize,reversed:!0})),t.payload.openModal?(e.memo=t.payload.memo,e.value=t.payload.invoiceValue,e.expiry=t.payload.expiry,e.cltv_expiry="144",e.private=t.payload.private,e.creation_date=Math.round((new Date).getTime()/1e3).toString(),e.creation_date_str=O.commonService.convertTimestampToDate(+e.creation_date),O.store.dispatch(new b.i),{type:b.y,payload:{data:{invoice:e,newlyAdded:!0,component:d.a}}}):{type:g.eb,payload:{paymentRequest:e.payment_request}}})),Object(p.a)((function(t){return O.handleErrorWithoutAlert("SaveNewInvoice","Add Invoice Failed.",t),Object(a.a)({type:b.bb})})))}))),this.openNewChannel=this.actions$.pipe(Object(r.d)(g.qb),Object(c.a)((function(t){return O.store.dispatch(new g.i("SaveNewChannel")),O.httpClient.post(O.CHILD_API_URL+h.b.CHANNELS_API,{node_pubkey:t.payload.selectedPeerPubkey,local_funding_amount:t.payload.fundingAmount,private:t.payload.private,trans_type:t.payload.transType,trans_type_value:t.payload.transTypeValue,spend_unconfirmed:t.payload.spendUnconfirmed}).pipe(Object(l.a)((function(t){return O.logger.info(t),O.store.dispatch(new b.i),O.store.dispatch(new g.D("blockchain")),O.store.dispatch(new g.C),O.store.dispatch(new g.d({channelPoint:"ALL",showMessage:"Channel Added Successfully!"})),{type:g.z}})),Object(p.a)((function(t){return O.handleErrorWithoutAlert("SaveNewChannel","Opening Channel Failed.",t),Object(a.a)({type:b.bb})})))}))),this.updateChannel=this.actions$.pipe(Object(r.d)(g.fc),Object(c.a)((function(t){return O.httpClient.post(O.CHILD_API_URL+h.b.CHANNELS_API+"/chanPolicy",{baseFeeMsat:t.payload.baseFeeMsat,feeRate:t.payload.feeRate,timeLockDelta:t.payload.timeLockDelta,chanPoint:t.payload.chanPoint}).pipe(Object(l.a)((function(e){return O.logger.info(e),O.store.dispatch(new b.i),O.store.dispatch(new b.E("all"===t.payload.chanPoint?"All Channels Updated Successfully.":"Channel Updated Successfully!")),{type:g.o}})),Object(p.a)((function(t){return O.handleErrorWithAlert("ERROR","Update Channel Failed",O.CHILD_API_URL+h.b.CHANNELS_API+"/chanPolicy",t),Object(a.a)({type:b.bb})})))}))),this.closeChannel=this.actions$.pipe(Object(r.d)(g.g),Object(c.a)((function(t){var e=O.CHILD_API_URL+h.b.CHANNELS_API+"/"+t.payload.channelPoint+"?force="+t.payload.forcibly;return t.payload.targetConf&&(e=e+"&target_conf="+t.payload.targetConf),t.payload.satPerByte&&(e=e+"&sat_per_byte="+t.payload.satPerByte),O.httpClient.delete(e).pipe(Object(l.a)((function(e){return O.logger.info(e),O.store.dispatch(new b.i),O.store.dispatch(new g.D("channels")),O.store.dispatch(new g.D("blockchain")),O.store.dispatch(new g.C),O.store.dispatch(t.payload.forcibly?new g.N:new g.E),O.store.dispatch(new g.d({channelPoint:"ALL",showMessage:"Channel Closed Successfully!"})),{type:g.hb,payload:{channelPoint:t.payload.channelPoint}}})),Object(p.a)((function(e){return O.handleErrorWithAlert("ERROR","Unable to Close Channel. Try again later.",O.CHILD_API_URL+h.b.CHANNELS_API+"/"+t.payload.channelPoint+"?force="+t.payload.forcibly,e),Object(a.a)({type:b.bb})})))}))),this.backupChannels=this.actions$.pipe(Object(r.d)(g.b),Object(c.a)((function(t){return O.store.dispatch(new g.i("BackupChannels")),O.httpClient.get(O.CHILD_API_URL+h.b.CHANNELS_BACKUP_API+"/"+t.payload.channelPoint).pipe(Object(l.a)((function(e){return O.logger.info(e),O.store.dispatch(new b.i),O.store.dispatch(new b.E(t.payload.showMessage+" "+e.message)),{type:g.c,payload:e.message}})),Object(p.a)((function(e){return O.store.dispatch(new g.n({action:"BackupChannels",code:e.status,message:e.error.error})),O.handleErrorWithAlert("ERROR",t.payload.showMessage+" Unable to Backup Channel. Try again later.",O.CHILD_API_URL+h.b.CHANNELS_BACKUP_API+"/"+t.payload.channelPoint,e),Object(a.a)({type:b.bb})})))}))),this.verifyChannels=this.actions$.pipe(Object(r.d)(g.ic),Object(c.a)((function(t){return O.store.dispatch(new g.i("VerifyChannels")),O.httpClient.post(O.CHILD_API_URL+h.b.CHANNELS_BACKUP_API+"/verify/"+t.payload.channelPoint,{}).pipe(Object(l.a)((function(t){return O.logger.info(t),O.store.dispatch(new b.i),O.store.dispatch(new b.E(t.message)),{type:g.jc,payload:t.message}})),Object(p.a)((function(e){return O.store.dispatch(new g.n({action:"VerifyChannels",code:e.status,message:e.error.error})),O.handleErrorWithAlert("ERROR","Unable to Verify Channel. Try again later.",O.CHILD_API_URL+h.b.CHANNELS_BACKUP_API+"/verify/"+t.payload.channelPoint,e),Object(a.a)({type:b.bb})})))}))),this.restoreChannels=this.actions$.pipe(Object(r.d)(g.lb),Object(c.a)((function(t){return O.store.dispatch(new g.i("RestoreChannels")),O.httpClient.post(O.CHILD_API_URL+h.b.CHANNELS_BACKUP_API+"/restore/"+t.payload.channelPoint,{}).pipe(Object(l.a)((function(t){return O.logger.info(t),O.store.dispatch(new b.i),O.store.dispatch(new b.E(t.message)),O.store.dispatch(new g.cc(t.list)),{type:g.mb,payload:t.message}})),Object(p.a)((function(e){return O.store.dispatch(new g.n({action:"RestoreChannels",code:e.status,message:e.error.error})),O.handleErrorWithAlert("ERROR","Unable to Restore Channel. Try again later.",O.CHILD_API_URL+h.b.CHANNELS_BACKUP_API+"/restore/"+t.payload.channelPoint,e),Object(a.a)({type:b.bb})})))}))),this.fetchFees=this.actions$.pipe(Object(r.d)(g.r),Object(c.a)((function(t){return O.store.dispatch(new g.i("FetchFees")),O.httpClient.get(O.CHILD_API_URL+h.b.FEES_API)})),Object(l.a)((function(t){return O.logger.info(t),t.forwarding_events_history&&(O.store.dispatch(new g.Yb(t.forwarding_events_history)),delete t.forwarding_events_history),{type:g.Bb,payload:t||{}}})),Object(p.a)((function(t){return O.handleErrorWithoutAlert("FetchFees","Fetching Fees Failed.",t),Object(a.a)({type:b.bb})}))),this.balanceFetch=this.actions$.pipe(Object(r.d)(g.p),Object(c.a)((function(t){return O.store.dispatch(new g.i("FetchBalance/"+t.payload)),O.httpClient.get(O.CHILD_API_URL+h.b.BALANCE_API+"/"+t.payload).pipe(Object(l.a)((function(e){return"channels"===t.payload&&O.store.dispatch(new g.D("blockchain")),O.logger.info(e),{type:g.wb,payload:e?{target:t.payload,balance:e}:{target:t.payload,balance:"channels"===t.payload?{balance:"",btc_balance:""}:{total_balance:"",btc_total_balance:""}}}})),Object(p.a)((function(e){return O.handleErrorWithoutAlert("FetchBalance/"+t.payload,"Fetching"+O.commonService.titleCase(t.payload)+" Balance Failed.",e),Object(a.a)({type:b.bb})})))}))),this.networkInfoFetch=this.actions$.pipe(Object(r.d)(g.w),Object(c.a)((function(t){return O.store.dispatch(new g.i("FetchNetwork")),O.httpClient.get(O.CHILD_API_URL+h.b.NETWORK_API+"/info")})),Object(l.a)((function(t){return O.logger.info(t),{type:g.Ib,payload:t||{}}})),Object(p.a)((function(t){return O.handleErrorWithoutAlert("FetchNetwork","Fetching Network Failed.",t),Object(a.a)({type:b.bb})}))),this.channelsAllFetch=this.actions$.pipe(Object(r.d)(g.o),Object(c.a)((function(t){return O.store.dispatch(new g.i("FetchChannels/all")),O.httpClient.get(O.CHILD_API_URL+h.b.CHANNELS_API).pipe(Object(l.a)((function(t){return O.logger.info(t),{type:g.vb,payload:t&&t.channels&&t.channels.length>0?t.channels:[]}})),Object(p.a)((function(t){return O.handleErrorWithoutAlert("FetchChannels/all","Fetching All Channels Failed.",t),Object(a.a)({type:b.bb})})))}))),this.channelsPendingFetch=this.actions$.pipe(Object(r.d)(g.z),Object(c.a)((function(t){return O.store.dispatch(new g.i("FetchChannels/pending")),O.httpClient.get(O.CHILD_API_URL+h.b.CHANNELS_API+"/pending").pipe(Object(l.a)((function(t){O.logger.info(t);var e={open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0};return t&&(e.total_limbo_balance=t.total_limbo_balance,t.pending_closing_channels&&(e.closing.num_channels=t.pending_closing_channels.length,e.total_channels=e.total_channels+t.pending_closing_channels.length,t.pending_closing_channels.forEach((function(t){e.closing.limbo_balance=+e.closing.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)}))),t.pending_force_closing_channels&&(e.force_closing.num_channels=t.pending_force_closing_channels.length,e.total_channels=e.total_channels+t.pending_force_closing_channels.length,t.pending_force_closing_channels.forEach((function(t){e.force_closing.limbo_balance=+e.force_closing.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)}))),t.pending_open_channels&&(e.open.num_channels=t.pending_open_channels.length,e.total_channels=e.total_channels+t.pending_open_channels.length,t.pending_open_channels.forEach((function(t){e.open.limbo_balance=+e.open.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)}))),t.waiting_close_channels&&(e.waiting_close.num_channels=t.waiting_close_channels.length,e.total_channels=e.total_channels+t.waiting_close_channels.length,t.waiting_close_channels.forEach((function(t){e.waiting_close.limbo_balance=+e.waiting_close.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)})))),{type:g.Mb,payload:t?{channels:t,pendingChannels:e}:{channels:{},pendingChannels:e}}})),Object(p.a)((function(t){return O.handleErrorWithoutAlert("FetchChannels/pending","Fetching Pending Channels Failed.",t),Object(a.a)({type:b.bb})})))}))),this.channelsClosedFetch=this.actions$.pipe(Object(r.d)(g.q),Object(c.a)((function(t){return O.store.dispatch(new g.i("FetchChannels/closed")),O.httpClient.get(O.CHILD_API_URL+h.b.CHANNELS_API+"/closed").pipe(Object(l.a)((function(t){return O.logger.info(t),{type:g.Ab,payload:t&&t.channels&&t.channels.length>0?t.channels:[]}}),Object(p.a)((function(t){return O.handleErrorWithoutAlert("FetchChannels/closed","Fetching Closed Channels Failed.",t),Object(a.a)({type:b.bb})}))))}))),this.invoicesFetch=this.actions$.pipe(Object(r.d)(g.u),Object(c.a)((function(t){return O.store.dispatch(new g.i("FetchInvoices")),O.httpClient.get(O.CHILD_API_URL+h.b.INVOICES_API+"?num_max_invoices="+(t.payload.num_max_invoices?t.payload.num_max_invoices:100)+"&index_offset="+(t.payload.index_offset?t.payload.index_offset:0)+"&reversed="+(!!t.payload.reversed&&t.payload.reversed)).pipe(Object(l.a)((function(e){return O.logger.info(e),t.payload.reversed&&!t.payload.index_offset&&O.store.dispatch(new g.dc(+e.last_index_offset)),{type:g.Fb,payload:e}})),Object(p.a)((function(t){return O.handleErrorWithoutAlert("FetchInvoices","Fetching Invoices Failed.",t),Object(a.a)({type:b.bb})})))}))),this.transactionsFetch=this.actions$.pipe(Object(r.d)(g.A),Object(c.a)((function(t){return O.store.dispatch(new g.i("FetchTransactions")),O.httpClient.get(O.CHILD_API_URL+h.b.TRANSACTIONS_API)})),Object(l.a)((function(t){return O.logger.info(t),{type:g.Qb,payload:t&&t.length>0?t:[]}})),Object(p.a)((function(t){return O.handleErrorWithoutAlert("FetchTransactions","Fetching Transactions Failed.",t),Object(a.a)({type:b.bb})}))),this.utxosFetch=this.actions$.pipe(Object(r.d)(g.B),Object(s.a)(this.store.select("lnd")),Object(c.a)((function(t){var e=t[1];return O.store.dispatch(new g.i("FetchUTXOs")),O.httpClient.get(O.CHILD_API_URL+h.b.WALLET_API+"/getUTXOs?max_confs="+(e.information&&e.information.block_height?e.information.block_height:1e9))})),Object(l.a)((function(t){return O.logger.info(t),{type:g.Rb,payload:t&&t.length>0?t:[]}})),Object(p.a)((function(t){return O.handleErrorWithoutAlert("FetchUTXOs","Fetching UTXOs Failed.",t),Object(a.a)({type:b.bb})}))),this.paymentsFetch=this.actions$.pipe(Object(r.d)(g.x),Object(c.a)((function(t){return O.store.dispatch(new g.i("FetchPayments")),O.httpClient.get(O.CHILD_API_URL+h.b.PAYMENTS_API)})),Object(l.a)((function(t){return O.logger.info(t),{type:g.Kb,payload:t||[]}})),Object(p.a)((function(t){return O.handleErrorWithoutAlert("FetchPayments","Fetching Payments Failed.",t),Object(a.a)({type:b.bb})}))),this.sendPayment=this.actions$.pipe(Object(r.d)(g.tb),Object(s.a)(this.store.select("root")),Object(c.a)((function(t){var e=t[0];O.store.dispatch(new g.i("SendPayment"));var n={};return e.payload.outgoingChannel&&(n.outgoingChannel=e.payload.outgoingChannel.chan_id),e.payload.allowSelfPayment&&(n.allowSelfPayment=e.payload.allowSelfPayment),e.payload.lastHopPubkey&&(n.lastHopPubkey=e.payload.lastHopPubkey),e.payload.feeLimitType&&e.payload.feeLimitType!==m.i[0]&&(n.feeLimit={},n.feeLimit[e.payload.feeLimitType.id]=e.payload.feeLimit),e.payload.zeroAmtInvoice?n.paymentDecoded=e.payload.paymentDecoded:n.paymentReq=e.payload.paymentReq,O.httpClient.post(O.CHILD_API_URL+h.b.CHANNELS_API+"/transactions",n).pipe(Object(l.a)((function(t){if(O.logger.info(t),t.payment_error){if(e.payload.allowSelfPayment)return O.store.dispatch(new g.I({num_max_invoices:m.m,reversed:!0})),{type:g.ub,payload:t};O.logger.error("Error: "+t.payment_error);var n={status:t.payment_error.status,error:t.payment_error.error&&t.payment_error.error.error&&"object"==typeof t.payment_error.error.error?t.payment_error.error.error:{error:t.payment_error.error&&t.payment_error.error.error?t.payment_error.error.error:"Unknown Error"}};return e.payload.fromDialog?O.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):O.handleErrorWithAlert("ERROR","Send Payment Failed",O.CHILD_API_URL+h.b.CHANNELS_API+"/transactions",n),Object(a.a)({type:b.bb})}if(O.store.dispatch(new g.C),O.store.dispatch(new g.D("channels")),O.store.dispatch(new g.L),e.payload.allowSelfPayment)O.store.dispatch(new g.I({num_max_invoices:m.m,reversed:!0}));else{O.store.dispatch(new b.i);var i="Payment Sent Successfully.";t.payment_route&&t.payment_route.total_fees_msat&&(i="Payment sent successfully with the total fee "+t.payment_route.total_fees_msat+" (mSats)."),O.store.dispatch(new b.E(i))}return{type:g.ub,payload:t}})),Object(p.a)((function(t){if(e.payload.allowSelfPayment)return O.store.dispatch(new g.I({num_max_invoices:m.m,reversed:!0})),Object(a.a)({type:g.ub,payload:t});O.logger.error("Error: "+JSON.stringify(t));var n={status:t.status,error:t.error&&t.error.error&&"object"==typeof t.error.error?t.error.error:{error:t.error&&t.error.error?t.error.error:"Unknown Error"}};return e.payload.fromDialog?O.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):O.handleErrorWithAlert("ERROR","Send Payment Failed",O.CHILD_API_URL+h.b.CHANNELS_API+"/transactions",n),Object(a.a)({type:b.bb})})))}))),this.graphNodeFetch=this.actions$.pipe(Object(r.d)(g.s),Object(c.a)((function(t){return O.store.dispatch(new g.i("FetchGraphNode")),O.httpClient.get(O.CHILD_API_URL+h.b.NETWORK_API+"/node/"+t.payload.pubkey).pipe(Object(l.a)((function(t){return O.logger.info(t),O.store.dispatch(new b.i),{type:g.Db,payload:t&&t.node?{node:t.node}:{node:null}}})),Object(p.a)((function(t){return O.handleErrorWithoutAlert("FetchGraphNode","Fetching Graph Node Failed.",t),Object(a.a)({type:b.bb})})))}))),this.setGraphNode=this.actions$.pipe(Object(r.d)(g.Db),Object(l.a)((function(t){return O.logger.info(t.payload),t.payload}))),this.getNewAddress=this.actions$.pipe(Object(r.d)(g.T),Object(c.a)((function(t){return O.httpClient.get(O.CHILD_API_URL+h.b.NEW_ADDRESS_API+"?type="+t.payload.addressId).pipe(Object(l.a)((function(t){return O.logger.info(t),O.store.dispatch(new b.i),{type:g.Jb,payload:t&&t.address?t.address:{}}})),Object(p.a)((function(e){return O.handleErrorWithAlert("ERROR","Generate New Address Failed",O.CHILD_API_URL+h.b.NEW_ADDRESS_API+"?type="+t.payload.addressId,e),Object(a.a)({type:b.bb})})))}))),this.setNewAddress=this.actions$.pipe(Object(r.d)(g.Jb),Object(l.a)((function(t){return O.logger.info(t.payload),t.payload}))),this.SetChannelTransaction=this.actions$.pipe(Object(r.d)(g.xb),Object(c.a)((function(t){return O.store.dispatch(new g.i("SetChannelTransaction")),O.httpClient.post(O.CHILD_API_URL+h.b.TRANSACTIONS_API,{amount:t.payload.amount,address:t.payload.address,sendAll:t.payload.sendAll,fees:t.payload.fees,blocks:t.payload.blocks}).pipe(Object(l.a)((function(t){return O.logger.info(t),O.store.dispatch(new b.i),O.store.dispatch(new g.O),O.store.dispatch(new g.D("blockchain")),{type:g.yb,payload:t}})),Object(p.a)((function(t){return O.handleErrorWithoutAlert("SetChannelTransaction","Sending Fund Failed.",t),Object(a.a)({type:b.bb})})))}))),this.fetchForwardingHistory=this.actions$.pipe(Object(r.d)(g.S),Object(c.a)((function(t){return O.store.dispatch(new g.i("GetForwardingHistory")),O.httpClient.post(O.CHILD_API_URL+h.b.SWITCH_API,{num_max_events:t.payload.num_max_events,index_offset:t.payload.index_offset,end_time:t.payload.end_time,start_time:t.payload.start_time}).pipe(Object(l.a)((function(t){return O.logger.info(t),{type:g.Cb,payload:t}})),Object(p.a)((function(t){return O.store.dispatch(new g.n({action:"GetForwardingHistory",code:t.status,message:t.error.error})),O.handleErrorWithAlert("ERROR","Get Forwarding History Failed",O.CHILD_API_URL+h.b.SWITCH_API,t),Object(a.a)({type:b.bb})})))}))),this.queryRoutesFetch=this.actions$.pipe(Object(r.d)(g.U),Object(c.a)((function(t){var e=O.CHILD_API_URL+h.b.NETWORK_API+"/routes/"+t.payload.destPubkey+"/"+t.payload.amount;return t.payload.outgoingChanId&&(e=e+"?outgoing_chan_id="+t.payload.outgoingChanId),O.httpClient.get(e).pipe(Object(l.a)((function(t){return O.logger.info(t),{type:g.Nb,payload:t}})),Object(p.a)((function(t){return O.store.dispatch(new g.bc({})),O.handleErrorWithAlert("ERROR","Get Query Routes Failed",O.CHILD_API_URL+h.b.NETWORK_API,t),Object(a.a)({type:b.bb})})))}))),this.setQueryRoutes=this.actions$.pipe(Object(r.d)(g.Nb),Object(l.a)((function(t){return t.payload}))),this.genSeed=this.actions$.pipe(Object(r.d)(g.Q),Object(c.a)((function(t){return O.httpClient.get(O.CHILD_API_URL+h.b.WALLET_API+"/genseed/"+t.payload).pipe(Object(l.a)((function(t){return O.logger.info("Generated GenSeed!"),O.logger.info(t),O.store.dispatch(new b.i),{type:g.R,payload:t.cipher_seed_mnemonic}})),Object(p.a)((function(e){return O.handleErrorWithAlert("ERROR","Genseed Generation Failed",O.CHILD_API_URL+h.b.WALLET_API+"/genseed/"+t.payload,e),Object(a.a)({type:b.bb})})))}))),this.updateSelNodeOptions=this.actions$.pipe(Object(r.d)(b.Y),Object(c.a)((function(t){return O.httpClient.get(O.CHILD_API_URL+h.b.WALLET_API+"/updateSelNodeOptions").pipe(Object(l.a)((function(t){return O.logger.info("Update Sel Node Successfull"),O.logger.info(t),O.store.dispatch(new b.i),{type:b.bb}})),Object(p.a)((function(t){return O.handleErrorWithAlert("ERROR","Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",t),Object(a.a)({type:b.bb})})))}))),this.genSeedResponse=this.actions$.pipe(Object(r.d)(g.R),Object(l.a)((function(t){return t.payload}))),this.initWalletRes=this.actions$.pipe(Object(r.d)(g.ab),Object(l.a)((function(t){return t.payload}))),this.initWallet=this.actions$.pipe(Object(r.d)(g.Z),Object(c.a)((function(t){return O.httpClient.post(O.CHILD_API_URL+h.b.WALLET_API+"/wallet/initwallet",{wallet_password:t.payload.pwd,cipher_seed_mnemonic:t.payload.cipher?t.payload.cipher:"",aezeed_passphrase:t.payload.passphrase?t.payload.passphrase:""}).pipe(Object(l.a)((function(t){return O.logger.info(t),O.store.dispatch(new b.i),{type:g.ab,payload:t}})),Object(p.a)((function(t){return O.handleErrorWithAlert("ERROR","Wallet Initialization Failed",O.CHILD_API_URL+h.b.WALLET_API+"/initwallet",t),Object(a.a)({type:b.bb})})))}))),this.unlockWallet=this.actions$.pipe(Object(r.d)(g.ec),Object(c.a)((function(t){return O.httpClient.post(O.CHILD_API_URL+h.b.WALLET_API+"/wallet/unlockwallet",{wallet_password:t.payload.pwd}).pipe(Object(l.a)((function(t){return O.logger.info(t),O.store.dispatch(new b.i),O.store.dispatch(new b.F("Initializing Node...")),O.logger.info("Successfully Unlocked!"),O.sessionService.setItem("lndUnlocked","true"),setTimeout((function(){O.store.dispatch(new b.i),O.logger.info("Successfully Initialized!"),O.store.dispatch(new g.H({loadPage:"HOME"}))}),5e3),{type:b.bb}})),Object(p.a)((function(t){return O.handleErrorWithAlert("ERROR","Unlock Wallet Failed",O.CHILD_API_URL+h.b.WALLET_API+"/unlockwallet",t),Object(a.a)({type:b.bb})})))}))),this.peerLookup=this.actions$.pipe(Object(r.d)(g.fb),Object(c.a)((function(t){return O.store.dispatch(new g.i("Lookup")),O.httpClient.get(O.CHILD_API_URL+h.b.NETWORK_API+"/node/"+t.payload).pipe(Object(l.a)((function(t){return O.logger.info(t),O.store.dispatch(new b.i),{type:g.Gb,payload:t}})),Object(p.a)((function(e){return O.store.dispatch(new g.n({action:"Lookup",code:e.status,message:e.error.message})),O.handleErrorWithAlert("ERROR","Peer Lookup Failed",O.CHILD_API_URL+h.b.NETWORK_API+"/node/"+t.payload,e),Object(a.a)({type:b.bb})})))}))),this.channelLookup=this.actions$.pipe(Object(r.d)(g.e),Object(c.a)((function(t){return O.store.dispatch(new g.i("Lookup")),O.httpClient.get(O.CHILD_API_URL+h.b.NETWORK_API+"/edge/"+t.payload).pipe(Object(l.a)((function(t){return O.logger.info(t),O.store.dispatch(new b.i),{type:g.Gb,payload:t}})),Object(p.a)((function(e){return O.store.dispatch(new g.n({action:"Lookup",code:e.status,message:e.error.message})),O.handleErrorWithAlert("ERROR","Channel Lookup Failed",O.CHILD_API_URL+h.b.NETWORK_API+"/edge/"+t.payload,e),O.store.dispatch(new g.Zb({})),Object(a.a)({type:b.bb})})))}))),this.invoiceLookup=this.actions$.pipe(Object(r.d)(g.bb),Object(c.a)((function(t){return O.store.dispatch(new g.i("Lookup")),O.httpClient.get(O.CHILD_API_URL+h.b.INVOICES_API+"/"+t.payload).pipe(Object(l.a)((function(t){return O.logger.info(t),O.store.dispatch(new b.i),{type:g.Gb,payload:t}})),Object(p.a)((function(e){return O.store.dispatch(new g.n({action:"Lookup",code:e.status,message:e.error.message})),O.handleErrorWithAlert("ERROR","Invoice Lookup Failed",O.CHILD_API_URL+h.b.INVOICES_API+"/"+t.payload,e),Object(a.a)({type:b.bb})})))}))),this.setLookup=this.actions$.pipe(Object(r.d)(g.Gb),Object(l.a)((function(t){return O.logger.info(t.payload),t.payload}))),this.getRestoreChannelList=this.actions$.pipe(Object(r.d)(g.kb),Object(c.a)((function(t){return O.store.dispatch(new g.i("RestoreChannelsList")),O.httpClient.get(O.CHILD_API_URL+h.b.CHANNELS_BACKUP_API+"/restore/list").pipe(Object(l.a)((function(t){return O.logger.info(t),O.store.dispatch(new b.i),{type:g.Ob,payload:t||{all_restore_exists:!1,files:[]}}})),Object(p.a)((function(t){return O.store.dispatch(new g.n({action:"RestoreChannelsList",code:t.status,message:t.error.message})),O.handleErrorWithAlert("ERROR","Restore Channels List Failed",O.CHILD_API_URL+h.b.CHANNELS_BACKUP_API,t),Object(a.a)({type:b.bb})})))}))),this.setRestoreChannelList=this.actions$.pipe(Object(r.d)(g.Ob),Object(l.a)((function(t){return O.logger.info(t.payload),t.payload}))),this.getLoopSwaps=this.actions$.pipe(Object(r.d)(g.v),Object(c.a)((function(t){return O.store.dispatch(new g.i("FetchSwaps")),O.httpClient.get(O.CHILD_API_URL+h.b.LOOP_API+"/swaps").pipe(Object(l.a)((function(t){return O.logger.info(t),{type:g.Hb,payload:t}})),Object(p.a)((function(t){return O.handleErrorWithoutAlert("FetchSwaps","Fetching Swaps Failed.",t),Object(a.a)({type:b.bb})})))}))),this.store.select("lnd").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){"INCOMPLETE"===t.initialAPIResponseStatus[0]&&t.initialAPIResponseStatus.length>8&&(t.initialAPIResponseStatus[0]="COMPLETE",O.store.dispatch(new b.i))}))}return t.prototype.initializeRemainingData=function(t,e){if(this.sessionService.setItem("lndUnlocked","true"),t.chains){if("string"==typeof t.chains[0])t.smaller_currency_unit=t.chains[0].toString().toLowerCase().indexOf("bitcoin")<0?m.g.LITOSHIS:m.g.SATS,t.currency_unit=t.chains[0].toString().toLowerCase().indexOf("bitcoin")<0?m.g.LTC:m.g.BTC;else if("object"==typeof t.chains[0]&&t.chains[0].hasOwnProperty("chain")){var n=t.chains[0];t.smaller_currency_unit=n.chain.toLowerCase().indexOf("bitcoin")<0?m.g.LITOSHIS:m.g.SATS,t.currency_unit=n.chain.toLowerCase().indexOf("bitcoin")<0?m.g.LTC:m.g.BTC}t.version=t.version?t.version.split(" ")[0]:""}else t.smaller_currency_unit=m.g.SATS,t.currency_unit=m.g.BTC,t.version=t.version?t.version.split(" ")[0]:"";var i={identity_pubkey:t.identity_pubkey,alias:t.alias,testnet:t.testnet,chains:t.chains,uris:t.uris,version:t.version,currency_unit:t.currency_unit,smaller_currency_unit:t.smaller_currency_unit};this.store.dispatch(new b.F("Initializing Node Data...")),this.store.dispatch(new b.T(i)),this.store.dispatch(new g.M),this.store.dispatch(new g.D("channels")),this.store.dispatch(new g.K),this.store.dispatch(new g.C),this.store.dispatch(new g.N),this.store.dispatch(new g.E),this.store.dispatch(new g.I({num_max_invoices:10,reversed:!0})),this.store.dispatch(new g.L),this.store.dispatch(new g.F);var r=this.location.path();r.includes("/cl/")?r=r.replace("/cl/","/lnd/"):r.includes("/ecl/")&&(r=r.replace("/ecl/","/lnd/")),(r.includes("/unlock")||r.includes("/login")||r.includes("/error")||""===r||"HOME"===e||r.includes("?access-key="))&&(r="/lnd/home"),this.router.navigate([r])},t.prototype.handleErrorWithoutAlert=function(t,e,n){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(n)),401===n.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new b.g),this.store.dispatch(new b.x),this.store.dispatch(new b.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new b.i),this.store.dispatch(new g.n({action:t,code:n.status.toString(),message: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.error&&n.error.error.error&&n.error.error.error.error&&"string"==typeof n.error.error.error.error?n.error.error.error.error:n.error.error&&n.error.error.error&&"string"==typeof n.error.error.error?n.error.error.error:n.error.error&&"string"==typeof n.error.error?n.error.error:"string"==typeof n.error?n.error:e})))},t.prototype.handleErrorWithAlert=function(t,e,n,i){this.logger.error(i),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new b.g),this.store.dispatch(new b.x),this.store.dispatch(new b.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new b.i),this.store.dispatch(new b.C({data:{type:t,alertTitle:e,message:{code:i.status,message:i.error.error&&i.error.error.error&&i.error.error.error.error&&i.error.error.error.error.error&&"string"==typeof i.error.error.error.error.error?i.error.error.error.error.error:i.error.error&&i.error.error.error&&i.error.error.error.error&&"string"==typeof i.error.error.error.error?i.error.error.error.error:i.error.error&&i.error.error.error&&"string"==typeof i.error.error.error?i.error.error.error:i.error.error&&"string"==typeof i.error.error?i.error.error:"string"==typeof i.error?i.error:"Unknown Error",URL:n},component:f.a}})))},t.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(t){t.next(),t.complete()}))},t.\u0275fac=function(e){return new(e||t)(y.ac(r.a),y.ac(v.b),y.ac(_.h),y.ac(w.b),y.ac(O.a),y.ac(C.a),y.ac(x.c),y.ac(E.f),y.ac(S.i))},t.\u0275prov=y.Mb({token:t,factory:t.\u0275fac}),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"infoFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"peersFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"saveNewPeer",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"detachPeer",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"saveNewInvoice",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"openNewChannel",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"updateChannel",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"closeChannel",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"backupChannels",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"verifyChannels",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"restoreChannels",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"fetchFees",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"balanceFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"networkInfoFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"channelsAllFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"channelsPendingFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"channelsClosedFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"invoicesFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"transactionsFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"utxosFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"paymentsFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"sendPayment",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"graphNodeFetch",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"setGraphNode",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"getNewAddress",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"setNewAddress",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"SetChannelTransaction",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"fetchForwardingHistory",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"queryRoutesFetch",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"setQueryRoutes",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"genSeed",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"updateSelNodeOptions",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"genSeedResponse",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"initWalletRes",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"initWallet",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"unlockWallet",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"peerLookup",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"channelLookup",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"invoiceLookup",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"setLookup",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"getRestoreChannelList",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"setRestoreChannelList",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"getLoopSwaps",void 0),t}()},FFOo:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("mrSG"),r=n("2Bdj"),o=n("6ahw"),a=n("pugT"),s=n("L/V9"),c=n("iLxQ"),u=n("DKTb"),l=function(t){function e(n,i,r){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.a;break;case 1:if(!n){a.destination=o.a;break}if("object"==typeof n){n instanceof e?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new p(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new p(a,n,i,r)}return a}return i.c(e,t),e.prototype[s.a]=function(){return this},e.create=function(t,n,i){var r=new e(t,n,i);return r.syncErrorThrowable=!1,r},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(a.a),p=function(t){function e(e,n,i,a){var s,c=t.call(this)||this;c._parentSubscriber=e;var u=c;return Object(r.a)(n)?s=n:n&&(s=n.next,i=n.error,a=n.complete,n!==o.a&&(u=Object.create(n),Object(r.a)(u.unsubscribe)&&c.add(u.unsubscribe.bind(u)),u.unsubscribe=c.unsubscribe.bind(c))),c._context=u,c._next=s,c._error=i,c._complete=a,c}return i.c(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=c.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(u.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(u.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};c.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),c.a.useDeprecatedSynchronousErrorHandling)throw n;Object(u.a)(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!c.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return c.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(Object(u.a)(i),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(l)},"FZ+F":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n("349r"),r=n("eO+G"),o=n("CcnG"),a=function(){function t(){this._vertical=!1,this._inset=!1}return Object.defineProperty(t.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=Object(i.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inset",{get:function(){return this._inset},set:function(t){this._inset=Object(i.c)(t)},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Kb({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(o.Eb("aria-orientation",e.vertical?"vertical":"horizontal"),o.Hb("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t}(),s=function(){function t(){}return t.\u0275mod=o.Ob({type:t}),t.\u0275inj=o.Nb({factory:function(e){return new(e||t)},imports:[[r.i],r.i]}),t}()},FqGj:function(t,e,n){"use strict";n.d(e,"a",(function(){return U})),n.d(e,"b",(function(){return Q})),n.d(e,"c",(function(){return B})),n.d(e,"d",(function(){return W})),n.d(e,"e",(function(){return H})),n.d(e,"f",(function(){return z}));var i=n("CcnG"),r=n("349r"),o=n("K9Ia"),a=n("pugT"),s=n("e9QY"),c=0,u=function(){function t(){this._stateChanges=new o.a,this._openCloseAllActions=new o.a,this.id="cdk-accordion-"+c++,this._multi=!1}return Object.defineProperty(t.prototype,"multi",{get:function(){return this._multi},set:function(t){this._multi=Object(r.c)(t)},enumerable:!0,configurable:!0}),t.prototype.openAll=function(){this._openCloseAll(!0)},t.prototype.closeAll=function(){this._openCloseAll(!1)},t.prototype.ngOnChanges=function(t){this._stateChanges.next(t)},t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t.prototype._openCloseAll=function(t){this.multi&&this._openCloseAllActions.next(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Lb({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i.Bb]}),t}(),l=0,p=function(){function t(t,e,n){var r=this;this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=a.a.EMPTY,this.closed=new i.o,this.opened=new i.o,this.destroyed=new i.o,this.expandedChange=new i.o,this.id="cdk-accordion-child-"+l++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=n.listen((function(t,e){r.accordion&&!r.accordion.multi&&r.accordion.id===e&&r.id!==t&&(r.expanded=!1)})),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return Object.defineProperty(t.prototype,"expanded",{get:function(){return this._expanded},set:function(t){t=Object(r.c)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Object(r.c)(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()},t.prototype.toggle=function(){this.disabled||(this.expanded=!this.expanded)},t.prototype.close=function(){this.disabled||(this.expanded=!1)},t.prototype.open=function(){this.disabled||(this.expanded=!0)},t.prototype._subscribeToOpenCloseAllActions=function(){var t=this;return this.accordion._openCloseAllActions.subscribe((function(e){t.disabled||(t.expanded=e)}))},t.\u0275fac=function(e){return new(e||t)(i.Qb(u,12),i.Qb(i.h),i.Qb(s.d))},t.\u0275dir=i.Lb({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i.Cb([{provide:u,useValue:void 0}])]}),t}(),h=function(){function t(){}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)}}),t}(),d=n("UM4T"),f=n("Ip0R"),m=n("mrSG"),b=n("m47I"),g=n("ScIB"),y=n("ad02"),v=n("p0Sj"),_=n("VnD/"),w=n("t9fZ"),O=n("G5J1"),C=n("p0ib"),x=n("ihYY"),E=n("wFw1"),S=["body"];function A(t,e){}var k=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],D=["mat-expansion-panel-header","*","mat-action-row"],j=function(t,e){return{collapsedHeight:t,expandedHeight:e}},I=function(t,e){return{value:t,params:e}};function T(t,e){if(1&t&&i.Rb(0,"span",2),2&t){var n=i.ic();i.pc("@indicatorRotate",n._getExpandedState())}}var R=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],P=["mat-panel-title","mat-panel-description","*"],L=new i.r("MAT_ACCORDION"),F={indicatorRotate:Object(x.n)("indicatorRotate",[Object(x.k)("collapsed, void",Object(x.l)({transform:"rotate(0deg)"})),Object(x.k)("expanded",Object(x.l)({transform:"rotate(180deg)"})),Object(x.m)("expanded <=> collapsed, void => collapsed",Object(x.e)("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:Object(x.n)("expansionHeight",[Object(x.k)("collapsed, void",Object(x.l)({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),Object(x.k)("expanded",Object(x.l)({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),Object(x.m)("expanded <=> collapsed, void => collapsed",Object(x.g)([Object(x.i)("@indicatorRotate",Object(x.f)(),{optional:!0}),Object(x.e)("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:Object(x.n)("bodyExpansion",[Object(x.k)("collapsed, void",Object(x.l)({height:"0px",visibility:"hidden"})),Object(x.k)("expanded",Object(x.l)({height:"*",visibility:"visible"})),Object(x.m)("expanded <=> collapsed, void => collapsed",Object(x.e)("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},N=function(){function t(t){this._template=t}return t.\u0275fac=function(e){return new(e||t)(i.Qb(i.M))},t.\u0275dir=i.Lb({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t}(),M=0,V=new i.r("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),B=function(t){function e(e,n,r,a,s,c,u){var l=t.call(this,e,n,r)||this;return l._viewContainerRef=a,l._animationMode=c,l._hideToggle=!1,l.afterExpand=new i.o,l.afterCollapse=new i.o,l._inputChanges=new o.a,l._headerId="mat-expansion-panel-header-"+M++,l._bodyAnimationDone=new o.a,l.accordion=e,l._document=s,l._bodyAnimationDone.pipe(Object(y.a)((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){"void"!==t.fromState&&("expanded"===t.toState?l.afterExpand.emit():"collapsed"===t.toState&&l.afterCollapse.emit())})),u&&(l.hideToggle=u.hideToggle),l}return Object(m.c)(e,t),Object.defineProperty(e.prototype,"hideToggle",{get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(t){this._hideToggle=Object(r.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"togglePosition",{get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t},enumerable:!0,configurable:!0}),e.prototype._hasSpacing=function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode},e.prototype._getExpandedState=function(){return this.expanded?"expanded":"collapsed"},e.prototype.toggle=function(){this.expanded=!this.expanded},e.prototype.close=function(){this.expanded=!1},e.prototype.open=function(){this.expanded=!0},e.prototype.ngAfterContentInit=function(){var t=this;this._lazyContent&&this.opened.pipe(Object(v.a)(null),Object(_.a)((function(){return t.expanded&&!t._portal})),Object(w.a)(1)).subscribe((function(){t._portal=new d.i(t._lazyContent._template,t._viewContainerRef)}))},e.prototype.ngOnChanges=function(t){this._inputChanges.next(t)},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()},e.prototype._containsFocus=function(){if(this._body){var t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1},e.\u0275fac=function(t){return new(t||e)(i.Qb(L,12),i.Qb(i.h),i.Qb(s.d),i.Qb(i.P),i.Qb(f.d),i.Qb(E.a,8),i.Qb(V,8))},e.\u0275cmp=i.Kb({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){var r;1&t&&i.Jb(n,N,!0),2&t&&i.vc(r=i.fc())&&(e._lazyContent=r.first)},viewQuery:function(t,e){var n;1&t&&i.Mc(S,!0),2&t&&i.vc(n=i.fc())&&(e._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&i.Hb("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i.Cb([{provide:L,useValue:void 0}]),i.Ab,i.Bb],ngContentSelectors:D,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(i.oc(k),i.nc(0),i.Wb(1,"div",0,1),i.ec("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),i.Wb(3,"div",2),i.nc(4,1),i.Fc(5,A,0,0,"ng-template",3),i.Vb(),i.nc(6,2),i.Vb()),2&t&&(i.Db(1),i.pc("@bodyExpansion",e._getExpandedState())("id",e.id),i.Eb("aria-labelledby",e._headerId),i.Db(4),i.pc("cdkPortalOutlet",e._portal))},directives:[d.c],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[F.bodyExpansion]},changeDetection:0}),e}(p),H=function(){function t(t,e,n,i,r){var o=this;this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=i,this._parentChangeSubscription=a.a.EMPTY,this._animationsDisabled=!0;var s=t.accordion?t.accordion._stateChanges.pipe(Object(_.a)((function(t){return!(!t.hideToggle&&!t.togglePosition)}))):O.a;this._parentChangeSubscription=Object(C.a)(t.opened,t.closed,s,t._inputChanges.pipe(Object(_.a)((function(t){return!!(t.hideToggle||t.disabled||t.togglePosition)})))).subscribe((function(){return o._changeDetectorRef.markForCheck()})),t.closed.pipe(Object(_.a)((function(){return t._containsFocus()}))).subscribe((function(){return n.focusVia(e,"program")})),n.monitor(e).subscribe((function(e){e&&t.accordion&&t.accordion._handleHeaderFocus(o)})),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}return t.prototype._animationStarted=function(){this._animationsDisabled=!1},Object.defineProperty(t.prototype,"disabled",{get:function(){return this.panel.disabled},enumerable:!0,configurable:!0}),t.prototype._toggle=function(){this.disabled||this.panel.toggle()},t.prototype._isExpanded=function(){return this.panel.expanded},t.prototype._getExpandedState=function(){return this.panel._getExpandedState()},t.prototype._getPanelId=function(){return this.panel.id},t.prototype._getTogglePosition=function(){return this.panel.togglePosition},t.prototype._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled},t.prototype._keydown=function(t){switch(t.keyCode){case g.l:case g.d:Object(g.q)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}},t.prototype.focus=function(t,e){void 0===t&&(t="program"),this._focusMonitor.focusVia(this._element,t,e)},t.prototype.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)},t.\u0275fac=function(e){return new(e||t)(i.Qb(B,1),i.Qb(i.l),i.Qb(b.h),i.Qb(i.h),i.Qb(V,8))},t.\u0275cmp=i.Kb({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:19,hostBindings:function(t,e){1&t&&(i.Ib("@expansionHeight.start",(function(){return e._animationStarted()})),i.ec("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)}))),2&t&&(i.Eb("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),i.Lc("@.disabled",e._animationsDisabled)("@expansionHeight",i.uc(16,I,e._getExpandedState(),i.uc(13,j,e.collapsedHeight,e.expandedHeight))),i.Hb("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:P,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(i.oc(R),i.Wb(0,"span",0),i.nc(1),i.nc(2,1),i.nc(3,2),i.Vb(),i.Fc(4,T,1,1,"span",1)),2&t&&(i.Db(4),i.pc("ngIf",e._showToggle()))},directives:[f.n],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;position:relative}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[F.indicatorRotate,F.expansionHeaderHeight]},changeDetection:0}),t}(),W=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Lb({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t}(),z=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Lb({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t}(),U=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._ownHeaders=new i.E,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}Object(m.c)(e,t),Object.defineProperty(e.prototype,"hideToggle",{get:function(){return this._hideToggle},set:function(t){this._hideToggle=Object(r.c)(t)},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var t=this;this._headers.changes.pipe(Object(v.a)(this._headers)).subscribe((function(e){t._ownHeaders.reset(e.filter((function(e){return e.panel.accordion===t}))),t._ownHeaders.notifyOnChanges()})),this._keyManager=new b.g(this._ownHeaders).withWrap()},e.prototype._handleHeaderKeydown=function(t){var e=t.keyCode,n=this._keyManager;e===g.f?Object(g.q)(t)||(n.setFirstItemActive(),t.preventDefault()):e===g.c?Object(g.q)(t)||(n.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)},e.prototype._handleHeaderFocus=function(t){this._keyManager.updateActiveItem(t)},e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=i.Lb({type:e,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){var r;1&t&&i.Jb(n,H,!0),2&t&&i.vc(r=i.fc())&&(e._headers=r)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&i.Hb("mat-accordion-multi",e.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i.Cb([{provide:L,useExisting:e}]),i.Ab]});var n=i.Yb(e);return e}(u),Q=function(){function t(){}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},imports:[[f.c,h,d.h]]}),t}()},Fxb1:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("+tJ4"),r=n("DKTb"),o=n("En8+"),a=n("xTla"),s=n("2ePl"),c=n("/WYv"),u=n("McSo"),l=function(t){if(t&&"function"==typeof t[a.a])return l=t,function(t){var e=l[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(s.a)(t))return Object(i.a)(t);if(Object(c.a)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,r.a),t};if(t&&"function"==typeof t[o.a])return e=t,function(t){for(var n=e[o.a]();;){var i=n.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,l,p=Object(u.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+p+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},G5J1:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var i=n("6blF"),r=new i.a((function(t){return t.complete()}));function o(t){return t?function(t){return new i.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):r}},Gi3i:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("mrSG"),r=n("FFOo"),o=n("T1DM");function a(t,e){return void 0===e&&(e=o.a),function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.dueTime,this.scheduler))},t}(),c=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return i.c(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(u,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(r.a);function u(t){t.debouncedNext()}},HHjO:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a}));var i=n("CcnG"),r=n("Ip0R"),o=new i.r("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.W)(r.d)}}),a=function(){function t(t){if(this.value="ltr",this.change=new i.o,t){var e=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===e||"rtl"===e?e:"ltr"}}return t.prototype.ngOnDestroy=function(){this.change.complete()},t.\u0275prov=Object(i.Mb)({factory:function(){return new t(Object(i.ac)(o,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(i.ac(o,8))},t}(),s=function(){function t(){}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)}}),t}()},HJBe:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("mrSG"),r=n("FFOo");function o(t){return void 0===t&&(t=null),function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.defaultValue))},t}(),s=function(t){function e(e,n){var i=t.call(this,e)||this;return i.defaultValue=n,i.isEmpty=!0,i}return i.c(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(r.a)},I21E:function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return y})),n.d(e,"c",(function(){return w}));var i=n("CcnG"),r=n("eO+G"),o=n("mrSG"),a=n("349r"),s=n("gIcY"),c=n("wFw1"),u=n("m47I"),l=n("e9QY"),p=["input"],h=function(){return{enterDuration:150}},d=["*"],f=new i.r("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),m=0,b={provide:s.j,useExisting:Object(i.V)((function(){return y})),multi:!0},g=function(){return function(t,e){this.source=t,this.value=e}}(),y=function(){function t(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+m++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new i.o}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t,this._updateRadioButtonNames()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelPosition",{get:function(){return this._labelPosition},set:function(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())},enumerable:!0,configurable:!0}),t.prototype._checkSelectedRadioButton=function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)},Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Object(a.c)(t),this._markRadiosForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Object(a.c)(t),this._markRadiosForCheck()},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._isInitialized=!0},t.prototype._touch=function(){this.onTouched&&this.onTouched()},t.prototype._updateRadioButtonNames=function(){var t=this;this._radios&&this._radios.forEach((function(e){e.name=t.name,e._markForCheck()}))},t.prototype._updateSelectedRadioFromValue=function(){var t=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach((function(e){e.checked=t.value===e.value,e.checked&&(t._selected=e)})))},t.prototype._emitChangeEvent=function(){this._isInitialized&&this.change.emit(new g(this._selected,this._value))},t.prototype._markRadiosForCheck=function(){this._radios&&this._radios.forEach((function(t){return t._markForCheck()}))},t.prototype.writeValue=function(t){this.value=t,this._changeDetector.markForCheck()},t.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetector.markForCheck()},t.\u0275fac=function(e){return new(e||t)(i.Qb(i.h))},t.\u0275dir=i.Lb({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,n){var r;1&t&&i.Jb(n,_,!0),2&t&&i.vc(r=i.fc())&&(e._radios=r)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[i.Cb([b])]}),t}(),v=function(){return function(t){this._elementRef=t}}(),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(o.c)(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275cmp=i.Kb({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&i.ec("focus",(function(){return e._inputElement.nativeElement.focus()})),2&t&&(i.Eb("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),i.Hb("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[i.Ab],ngContentSelectors:d,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(i.oc(),i.Wb(0,"label",0,1),i.Wb(2,"div",2),i.Rb(3,"div",3),i.Rb(4,"div",4),i.Wb(5,"input",5,6),i.ec("change",(function(t){return e._onInputChange(t)}))("click",(function(t){return e._onInputClick(t)})),i.Vb(),i.Wb(7,"div",7),i.Rb(8,"div",8),i.Vb(),i.Vb(),i.Wb(9,"div",9),i.Wb(10,"span",10),i.Hc(11,"\xa0"),i.Vb(),i.nc(12),i.Vb(),i.Vb()),2&t){var n=i.wc(1);i.Eb("for",e.inputId),i.Db(5),i.pc("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),i.Eb("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),i.Db(2),i.pc("matRippleTrigger",n)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.sc(18,h)),i.Db(2),i.Hb("mat-radio-label-before","before"==e.labelPosition)}},directives:[r.s],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;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;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0});var n=i.Yb(e);return e}(function(t){function e(e,n,r,o,a,s,c){var u=t.call(this,n)||this;return u._changeDetector=r,u._focusMonitor=o,u._radioDispatcher=a,u._animationMode=s,u._providerOverride=c,u._uniqueId="mat-radio-"+ ++m,u.id=u._uniqueId,u.change=new i.o,u._checked=!1,u._value=null,u._removeUniqueSelectionListener=function(){},u.radioGroup=e,u._removeUniqueSelectionListener=a.listen((function(t,e){t!==u.id&&e===u.name&&(u.checked=!1)})),u}return Object(o.c)(e,t),Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(t){var e=Object(a.c)(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelPosition",{get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(t){this._labelPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(t){this._setDisabled(Object(a.c)(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(t){this._required=Object(a.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(t){this._color=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),e.prototype.focus=function(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)},e.prototype._markForCheck=function(){this._changeDetector.markForCheck()},e.prototype.ngOnInit=function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)},e.prototype.ngAfterViewInit=function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){!e&&t.radioGroup&&t.radioGroup._touch()}))},e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()},e.prototype._emitChangeEvent=function(){this.change.emit(new g(this,this._value))},e.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},e.prototype._onInputClick=function(t){t.stopPropagation()},e.prototype._onInputChange=function(t){t.stopPropagation();var e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())},e.prototype._setDisabled=function(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())},e.\u0275fac=function(t){return new(t||e)(i.Qb(y,8),i.Qb(i.l),i.Qb(i.h),i.Qb(u.h),i.Qb(l.d),i.Qb(c.a,8),i.Qb(f,8))},e.\u0275dir=i.Lb({type:e,viewQuery:function(t,e){var n;1&t&&i.Mc(p,!0),2&t&&i.vc(n=i.fc())&&(e._inputElement=n.first)},inputs:{checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[i.Ab]}),e}(Object(r.y)(Object(r.C)(v)))),w=function(){function t(){}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},imports:[[r.t,r.i],r.i]}),t}()},IUTb:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("6blF"),r=n("+tJ4"),o=n("JF+6");function a(t,e){return e?Object(o.a)(t,e):new i.a(Object(r.a)(t))}},Ip0R:function(t,e,n){"use strict";n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return tt})),n.d(e,"c",(function(){return ct})),n.d(e,"d",(function(){return u})),n.d(e,"e",(function(){return at})),n.d(e,"f",(function(){return C})),n.d(e,"g",(function(){return ot})),n.d(e,"h",(function(){return h})),n.d(e,"i",(function(){return x})),n.d(e,"j",(function(){return v})),n.d(e,"k",(function(){return et})),n.d(e,"l",(function(){return N})),n.d(e,"m",(function(){return V})),n.d(e,"n",(function(){return H})),n.d(e,"o",(function(){return q})),n.d(e,"p",(function(){return Q})),n.d(e,"q",(function(){return Y})),n.d(e,"r",(function(){return G})),n.d(e,"s",(function(){return K})),n.d(e,"t",(function(){return O})),n.d(e,"u",(function(){return l})),n.d(e,"v",(function(){return st})),n.d(e,"w",(function(){return it})),n.d(e,"x",(function(){return rt})),n.d(e,"y",(function(){return ht})),n.d(e,"z",(function(){return lt})),n.d(e,"A",(function(){return pt})),n.d(e,"B",(function(){return c})),n.d(e,"C",(function(){return ut})),n.d(e,"D",(function(){return a})),n.d(e,"E",(function(){return F})),n.d(e,"F",(function(){return s}));var i=n("mrSG"),r=n("CcnG"),o=null;function a(){return o}function s(t){o||(o=t)}var c=function(){return function(){}}(),u=new r.r("DocumentToken"),l=function(){function t(){}return t.\u0275prov=Object(r.Mb)({factory:p,token:t,providedIn:"platform"}),t.\u0275fac=function(e){return new(e||t)},t}();function p(){return Object(r.ac)(d)}var h=new r.r("Location Initialized"),d=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return Object(i.c)(e,t),e.prototype._init=function(){this.location=a().getLocation(),this._history=a().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return a().getBaseHref(this._doc)},e.prototype.onPopState=function(t){a().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){a().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"href",{get:function(){return this.location.href},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this.location.protocol},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostname",{get:function(){return this.location.hostname},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"port",{get:function(){return this.location.port},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){f()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){f()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e.prototype.getState=function(){return this._history.state},e.\u0275prov=Object(r.Mb)({factory:m,token:e,providedIn:"platform"}),e.\u0275fac=function(t){return new(t||e)(r.ac(u))},e}(l);function f(){return!!window.history.pushState}function m(){return new d(Object(r.ac)(u))}function b(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function y(t){return t&&"?"!==t[0]?"?"+t:t}var v=function(){function t(){}return t.\u0275prov=Object(r.Mb)({factory:_,token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}();function _(t){var e=Object(r.ac)(u).location;return new O(Object(r.ac)(l),e&&e.origin||"")}var w=new r.r("appBaseHref"),O=function(t){function e(e,n){var i=t.call(this)||this;if(i._platformLocation=e,null==n&&(n=i._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=n,i}return Object(i.c)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return b(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+y(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,i){var r=this.prepareExternalUrl(n+y(i));this._platformLocation.pushState(t,e,r)},e.prototype.replaceState=function(t,e,n,i){var r=this.prepareExternalUrl(n+y(i));this._platformLocation.replaceState(t,e,r)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.\u0275fac=function(t){return new(t||e)(r.ac(l),r.ac(w,8))},e.\u0275prov=r.Mb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(v),C=function(t){function e(e,n){var i=t.call(this)||this;return i._platformLocation=e,i._baseHref="",null!=n&&(i._baseHref=n),i}return Object(i.c)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=b(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,i){var r=this.prepareExternalUrl(n+y(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)},e.prototype.replaceState=function(t,e,n,i){var r=this.prepareExternalUrl(n+y(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.\u0275fac=function(t){return new(t||e)(r.ac(l),r.ac(w,8))},e.\u0275prov=r.Mb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(v),x=function(){function t(t,e){var n=this;this._subject=new r.o,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(S(i)),this._platformStrategy.onPopState((function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})}))}var e;return e=t,t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.getState=function(){return this._platformLocation.getState()},t.prototype.isCurrentPathEqualTo=function(t,e){return void 0===e&&(e=""),this.path()==this.normalize(t+y(e))},t.prototype.normalize=function(t){return e.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,S(t)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+y(e)),n)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+y(e)),n)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.onUrlChange=function(t){var e=this;this._urlChangeListeners.push(t),this.subscribe((function(t){e._notifyUrlChangeListeners(t.url,t.state)}))},t.prototype._notifyUrlChangeListeners=function(t,e){void 0===t&&(t=""),this._urlChangeListeners.forEach((function(n){return n(t,e)}))},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=y,t.joinWithSlash=b,t.stripTrailingSlash=g,t.\u0275prov=Object(r.Mb)({factory:E,token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(r.ac(v),r.ac(l))},t}();function E(){return new x(Object(r.ac)(v),Object(r.ac)(l))}function S(t){return t.replace(/\/index.html$/,"")}var A=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),k=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),D=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function j(t,e){var n=Object(r.mb)(t),i=n[r.cb.NumberSymbols][e];if(void 0===i){if(e===D.CurrencyDecimal)return n[r.cb.NumberSymbols][D.Decimal];if(e===D.CurrencyGroup)return n[r.cb.NumberSymbols][D.Group]}return i}var I=r.pb,T=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function R(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var P=function(){return function(){}}(),L=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return Object(i.c)(e,t),e.prototype.getPluralCategory=function(t,e){switch(I(e||this.locale)(t)){case k.Zero:return"zero";case k.One:return"one";case k.Two:return"two";case k.Few:return"few";case k.Many:return"many";default:return"other"}},e.\u0275fac=function(t){return new(t||e)(r.ac(r.v))},e.\u0275prov=r.Mb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(P);function F(t,e){var n,r;e=encodeURIComponent(e);try{for(var o=Object(i.h)(t.split(";")),a=o.next();!a.done;a=o.next()){var s=a.value,c=s.indexOf("="),u=Object(i.e)(-1==c?[s,""]:[s.slice(0,c),s.slice(c+1)],2),l=u[1];if(u[0].trim()===e)return decodeURIComponent(l)}}catch(p){n={error:p}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}var N=function(){function t(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(r.sb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachRemovedItem((function(t){t.previousValue&&e._toggleClass(t.key,!1)}))},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem((function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r.yb)(t.item));e._toggleClass(t.item,!0)})),t.forEachRemovedItem((function(t){return e._toggleClass(t.item,!1)}))},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!0)})):Object.keys(t).forEach((function(n){return e._toggleClass(n,!!t[n])})))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!1)})):Object.keys(t).forEach((function(t){return e._toggleClass(t,!1)})))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach((function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)}))},t.\u0275fac=function(e){return new(e||t)(r.Qb(r.t),r.Qb(r.u),r.Qb(r.l),r.Qb(r.F))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),M=function(){function t(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),V=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Object(r.X)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation((function(t,i,r){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new M(null,e._ngForOf,-1,-1),null===r?void 0:r),a=new B(t,o);n.push(a)}else null==r?e._viewContainer.remove(null===i?void 0:i):null!==i&&(o=e._viewContainer.get(i),e._viewContainer.move(o,r),a=new B(t,o),n.push(a))}));for(var i=0;i-1&&(a=a.replace(".","")),(i=a.search(/e/i))>0?(n<0&&(n=i),n+=+a.slice(i+1),a=a.substring(0,i)):n<0&&(n=a.length),i=0;"0"===a.charAt(i);i++);if(i===(o=a.length))e=[0],n=1;else{for(o--;"0"===a.charAt(o);)o--;for(n-=i,e=[],r=0;i<=o;i++,r++)e[r]=Number(a.charAt(i))}return n>22&&(e=e.splice(0,21),s=n-1,n=1),{digits:e,exponent:s,integerLen:n}}(t);a&&(u=function(t){if(0===t.digits[0])return t;var e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(u));var l=e.minInt,p=e.minFrac,h=e.maxFrac;if(o){var d=o.match(T);if(null===d)throw new Error(o+" is not a valid digit info");var f=d[1],m=d[3],b=d[5];null!=f&&(l=R(f)),null!=m&&(p=R(m)),null!=b?h=R(b):null!=m&&p>h&&(h=p)}!function(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction ("+e+") is higher than the maximum ("+n+").");var i=t.digits,r=i.length-t.integerLen,o=Math.min(Math.max(e,r),n),a=o+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(var c=a;c=5)if(a-1<0){for(var l=0;l>a;l--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;r=h?i.pop():p=!1),e>=10?1:0}),0);d&&(i.unshift(d),t.integerLen++)}(u,p,h);var g=u.digits,y=u.integerLen,v=u.exponent,_=[];for(c=g.every((function(t){return!t}));y0?_=g.splice(y,g.length):(_=g,g=[0]);var w=[];for(g.length>=e.lgSize&&w.unshift(g.splice(-e.lgSize,g.length).join(""));g.length>e.gSize;)w.unshift(g.splice(-e.gSize,g.length).join(""));g.length&&w.unshift(g.join("")),s=w.join(j(n,i)),_.length&&(s+=j(n,r)+_.join("")),v&&(s+=j(n,D.Exponential)+"+"+v)}else s=j(n,D.Infinity);return t<0&&!c?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf}(t,function(t,e){void 0===e&&(e="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],o=i[1],a=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=a[0],c=a[1]||"";n.posPre=s.substr(0,s.indexOf("#"));for(var u=0;u=1&&t<=40}},"JF+6":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("6blF"),r=n("pugT");function o(t,e){return new i.a((function(n){var i=new r.a,o=0;return i.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||i.add(this.schedule())):n.complete()}))),i}))}},JeCn:function(t,e,n){"use strict";n.d(e,"a",(function(){return rt})),n.d(e,"b",(function(){return $})),n.d(e,"c",(function(){return et})),n.d(e,"d",(function(){return it})),n.d(e,"e",(function(){return tt})),n.d(e,"f",(function(){return ut})),n.d(e,"g",(function(){return at})),n.d(e,"h",(function(){return nt})),n.d(e,"i",(function(){return J})),n.d(e,"j",(function(){return ct})),n.d(e,"k",(function(){return ot})),n.d(e,"l",(function(){return lt})),n.d(e,"m",(function(){return st})),n.d(e,"n",(function(){return Z})),n.d(e,"o",(function(){return ht})),n.d(e,"p",(function(){return pt}));var i=n("mrSG"),r=n("349r"),o=n("e9QY"),a=n("CcnG"),s=n("HHjO"),c=n("BAGj"),u=n("Ip0R"),l=n("K9Ia"),p=n("26FU"),h=n("zrt+"),d=n("F/XL"),f=n("ny24"),m=[[["caption"]]],b=["caption"];function g(t){return function(t){function e(){for(var e=[],n=0;n0;r--)e[r]&&(n[r]=i,i+=t[r]);return n},t}();function N(t){return Error('Could not find column with id "'+t+'".')}var M=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return t.\u0275fac=function(e){return new(e||t)(a.Qb(a.P),a.Qb(a.l))},t.\u0275dir=a.Lb({type:t,selectors:[["","rowOutlet",""]]}),t}(),V=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return t.\u0275fac=function(e){return new(e||t)(a.Qb(a.P),a.Qb(a.l))},t.\u0275dir=a.Lb({type:t,selectors:[["","headerRowOutlet",""]]}),t}(),B=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return t.\u0275fac=function(e){return new(e||t)(a.Qb(a.P),a.Qb(a.l))},t.\u0275dir=a.Lb({type:t,selectors:[["","footerRowOutlet",""]]}),t}(),H=function(){function t(t,e,n,i,r,o,a){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=r,this._platform=a,this._onDestroy=new l.a,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._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new p.a({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return Object.defineProperty(t.prototype,"trackBy",{get:function(){return this._trackByFn},set:function(t){Object(a.X)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+"."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataSource",{get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiTemplateDataRows",{get:function(){return this._multiTemplateDataRows},set:function(t){this._multiTemplateDataRows=Object(r.c)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(e,n){return t.trackBy?t.trackBy(n.dataIndex,n.data):n}))},t.prototype.ngAfterContentChecked=function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),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._checkStickyStates()},t.prototype.ngOnDestroy=function(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Object(o.e)(this.dataSource)&&this.dataSource.disconnect(this)},t.prototype.renderRows=function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var n=this._rowOutlet.viewContainer;e.forEachOperation((function(e,i,r){if(null==e.previousIndex)t._insertRow(e.item,r);else if(null==r)n.remove(i);else{var o=n.get(i);n.move(o,r)}})),this._updateRowIndexContext(),e.forEachIdentityChange((function(t){n.get(t.currentIndex).context.$implicit=t.item.data})),this.updateStickyColumnStyles()}},t.prototype.setHeaderRowDef=function(t){this._customHeaderRowDefs=new Set([t]),this._headerRowDefChanged=!0},t.prototype.setFooterRowDef=function(t){this._customFooterRowDefs=new Set([t]),this._footerRowDefChanged=!0},t.prototype.addColumnDef=function(t){this._customColumnDefs.add(t)},t.prototype.removeColumnDef=function(t){this._customColumnDefs.delete(t)},t.prototype.addRowDef=function(t){this._customRowDefs.add(t)},t.prototype.removeRowDef=function(t){this._customRowDefs.delete(t)},t.prototype.addHeaderRowDef=function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0},t.prototype.removeHeaderRowDef=function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0},t.prototype.addFooterRowDef=function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0},t.prototype.removeFooterRowDef=function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0},t.prototype.updateStickyHeaderRowStyles=function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var n=this._headerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach((function(t){return t.resetStickyChanged()}))},t.prototype.updateStickyFooterRowStyles=function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var n=this._footerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach((function(t){return t.resetStickyChanged()}))},t.prototype.updateStickyColumnStyles=function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning(Object(i.f)(e,n,r),["left","right"]),e.forEach((function(e,n){t._addStickyColumnStyles([e],t._headerRowDefs[n])})),this._rowDefs.forEach((function(e){for(var i=[],r=0;r1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]},t.prototype._renderUpdatedColumns=function(){var t=function(t,e){return t||!!e.getColumnsDiff()};this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()},t.prototype._switchDataSource=function(t){this._data=[],Object(o.e)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t},t.prototype._observeRenderChanges=function(){var t=this;if(this.dataSource){var e;if(Object(o.e)(this.dataSource)?e=this.dataSource.connect(this):Object(h.a)(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Object(d.a)(this.dataSource)),void 0===e)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=e.pipe(Object(f.a)(this._onDestroy)).subscribe((function(e){t._data=e||[],t.renderRows()}))}},t.prototype._forceRenderHeaderRows=function(){var t=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(e,n){return t._renderRow(t._headerRowOutlet,e,n)})),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()},t.prototype._forceRenderFooterRows=function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(e,n){return t._renderRow(t._footerRowOutlet,e,n)})),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()},t.prototype._addStickyColumnStyles=function(t,e){var n=this,i=Array.from(e.columns||[]).map((function(t){var e=n._columnDefsByName.get(t);if(!e)throw N(t);return e})),r=i.map((function(t){return t.sticky})),o=i.map((function(t){return t.stickyEnd}));this._stickyStyler.updateStickyColumns(t,r,o)},t.prototype._getRenderedRows=function(t){for(var e=[],n=0;na?s=1:o0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,e._internalPageChanges.next())}}))},e.prototype.connect=function(){return this._renderData},e.prototype.disconnect=function(){},e}(o.b)},JzKC:function(t,e,n){var i=n("Wogr"),r=n("aZ40");e.mul=function(t,e){var n=new i(t.length+e.length-1);n.fill(0);for(var o=0;o=0;){for(var o=n[0],a=0;a visible",Object(d.e)("150ms cubic-bezier(0, 0, 0.2, 1)")),Object(d.m)("* => void, * => hidden",Object(d.e)("75ms cubic-bezier(0.4, 0.0, 1, 1)",Object(d.l)({opacity:0})))])},x=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._ngZone=e,o._elementRef=n,o._changeDetectorRef=i,o.snackBarConfig=r,o._destroyed=!1,o._onExit=new u.a,o._onEnter=new u.a,o._animationState="void",o.attachDomPortal=function(t){return o._assertNotAttached(),o._applySnackBarClasses(),o._portalOutlet.attachDomPortal(t)},o._role="assertive"!==r.politeness||r.announcementMessage?"off"===r.politeness?null:"status":"alert",o}return Object(l.c)(e,t),e.prototype.attachComponentPortal=function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)},e.prototype.attachTemplatePortal=function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)},e.prototype.onAnimationEnd=function(t){var e=t.toState;if(("void"===e&&"void"!==t.fromState||"hidden"===e)&&this._completeExit(),"visible"===e){var n=this._onEnter;this._ngZone.run((function(){n.next(),n.complete()}))}},e.prototype.enter=function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())},e.prototype.exit=function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit},e.prototype.ngOnDestroy=function(){this._destroyed=!0,this._completeExit()},e.prototype._completeExit=function(){var t=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(p.a)(1)).subscribe((function(){t._onExit.next(),t._onExit.complete()}))},e.prototype._applySnackBarClasses=function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach((function(e){return t.classList.add(e)})):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")},e.prototype._assertNotAttached=function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")},e.\u0275fac=function(t){return new(t||e)(a.Qb(a.A),a.Qb(a.l),a.Qb(a.h),a.Qb(w))},e.\u0275cmp=a.Kb({type:e,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&a.Dc(r.c,!0),2&t&&a.vc(n=a.fc())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&a.Ib("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(a.Eb("role",e._role),a.Lc("@state",e._animationState))},features:[a.Ab],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&a.Fc(0,g,0,0,"ng-template",0)},directives:[r.c],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[C.snackBarState]}}),e}(r.a),E=function(){function t(){}return t.\u0275mod=a.Ob({type:t}),t.\u0275inj=a.Nb({factory:function(e){return new(e||t)},imports:[[i.f,r.h,o.c,c.b,s.i],s.i]}),t}(),S=new a.r("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new w}}),A=function(){function t(t,e,n,i,r,o){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=i,this._parentSnackBar=r,this._defaultConfig=o,this._snackBarRefAtThisLevel=null}return Object.defineProperty(t.prototype,"_openedSnackBarRef",{get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t},enumerable:!0,configurable:!0}),t.prototype.openFromComponent=function(t,e){return this._attach(t,e)},t.prototype.openFromTemplate=function(t,e){return this._attach(t,e)},t.prototype.open=function(t,e,n){void 0===e&&(e="");var i=Object(l.a)(Object(l.a)({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage||(i.announcementMessage=t),this.openFromComponent(O,i)},t.prototype.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()},t.prototype.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()},t.prototype._attachSnackBarContainer=function(t,e){var n=new r.g(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[w,e]])),i=new r.d(x,e.viewContainerRef,n),o=t.attach(i);return o.instance.snackBarConfig=e,o.instance},t.prototype._attach=function(t,e){var n=Object(l.a)(Object(l.a)(Object(l.a)({},new w),this._defaultConfig),e),i=this._createOverlay(n),o=this._attachSnackBarContainer(i,n),s=new v(o,i);if(t instanceof a.M){var c=new r.i(t,null,{$implicit:n.data,snackBarRef:s});s.instance=o.attachTemplatePortal(c)}else{var u=this._createInjector(n,s),p=(c=new r.d(t,void 0,u),o.attachComponentPortal(c));s.instance=p.instance}return this._breakpointObserver.observe(m.b.HandsetPortrait).pipe(Object(h.a)(i.detachments())).subscribe((function(t){var e=i.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")})),this._animateSnackBar(s,n),this._openedSnackBarRef=s,this._openedSnackBarRef},t.prototype._animateSnackBar=function(t,e){var n=this;t.afterDismissed().subscribe((function(){n._openedSnackBarRef==t&&(n._openedSnackBarRef=null),e.announcementMessage&&n._live.clear()})),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){t.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe((function(){return t._dismissAfter(e.duration)})),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)},t.prototype._createOverlay=function(t){var e=new i.d;e.direction=t.direction;var n=this._overlay.position().global(),r="rtl"===t.direction,o="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!r||"end"===t.horizontalPosition&&r,a=!o&&"center"!==t.horizontalPosition;return o?n.left("0"):a?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)},t.prototype._createInjector=function(t,e){return new r.g(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[v,e],[_,t.data]]))},t.\u0275prov=Object(a.Mb)({factory:function(){return new t(Object(a.ac)(i.c),Object(a.ac)(f.k),Object(a.ac)(a.p),Object(a.ac)(m.a),Object(a.ac)(t,12),Object(a.ac)(S))},token:t,providedIn:E}),t.\u0275fac=function(e){return new(e||t)(a.ac(i.c),a.ac(f.k),a.ac(a.s),a.ac(m.a),a.ac(t,12),a.ac(S))},t}()},KQya:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("mrSG"),r=1,o=function(){return Promise.resolve()}(),a={};function s(t){return t in a&&(delete a[t],!0)}var c=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return i.c(e,t),e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0?t.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=(c=e.flush.bind(e,null),u=r++,a[u]=!0,o.then((function(){return s(u)&&c()})),u)));var c,u},e.prototype.recycleAsyncId=function(e,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,i);0===e.actions.length&&(s(n),e.scheduled=void 0)},e}(n("h9Dq").a),u=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.c(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i` elements explicitly or just place content inside of a `` for a single row.")}()},e.\u0275fac=function(t){return new(t||e)(i.Qb(i.l),i.Qb(s.a),i.Qb(a.d))},e.\u0275cmp=i.Kb({type:e,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var r;1&t&&i.Jb(n,h,!0),2&t&&i.vc(r=i.fc())&&(e._toolbarRows=r)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&i.Hb("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.Ab],ngContentSelectors:u,decls:2,vars:0,template:function(t,e){1&t&&(i.oc(c),i.nc(0),i.nc(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%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),e}(p),f=function(){function t(){}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},imports:[[r.i],r.i]}),t}()},LvnZ:function(t,e,n){"use strict";n.d(e,"W",(function(){return i})),n.d(e,"d",(function(){return r})),n.d(e,"o",(function(){return o})),n.d(e,"hb",(function(){return a})),n.d(e,"u",(function(){return s})),n.d(e,"mb",(function(){return c})),n.d(e,"s",(function(){return u})),n.d(e,"jb",(function(){return l})),n.d(e,"t",(function(){return p})),n.d(e,"kb",(function(){return h})),n.d(e,"q",(function(){return d})),n.d(e,"db",(function(){return f})),n.d(e,"w",(function(){return m})),n.d(e,"ob",(function(){return b})),n.d(e,"L",(function(){return g})),n.d(e,"qb",(function(){return y})),n.d(e,"z",(function(){return v})),n.d(e,"vb",(function(){return _})),n.d(e,"y",(function(){return w})),n.d(e,"sb",(function(){return O})),n.d(e,"ab",(function(){return C})),n.d(e,"R",(function(){return x})),n.d(e,"b",(function(){return E})),n.d(e,"k",(function(){return S})),n.d(e,"V",(function(){return A})),n.d(e,"r",(function(){return k})),n.d(e,"eb",(function(){return D})),n.d(e,"Ib",(function(){return j})),n.d(e,"Y",(function(){return I})),n.d(e,"e",(function(){return T})),n.d(e,"U",(function(){return R})),n.d(e,"x",(function(){return P})),n.d(e,"rb",(function(){return L})),n.d(e,"i",(function(){return F})),n.d(e,"ib",(function(){return N})),n.d(e,"bb",(function(){return M})),n.d(e,"cb",(function(){return V})),n.d(e,"M",(function(){return B})),n.d(e,"tb",(function(){return H})),n.d(e,"S",(function(){return W})),n.d(e,"c",(function(){return z})),n.d(e,"Q",(function(){return U})),n.d(e,"pb",(function(){return Q})),n.d(e,"K",(function(){return Y})),n.d(e,"lb",(function(){return G})),n.d(e,"v",(function(){return q})),n.d(e,"nb",(function(){return K})),n.d(e,"ub",(function(){return X})),n.d(e,"Z",(function(){return Z})),n.d(e,"a",(function(){return $})),n.d(e,"j",(function(){return J})),n.d(e,"fb",(function(){return tt})),n.d(e,"gb",(function(){return et})),n.d(e,"g",(function(){return nt})),n.d(e,"p",(function(){return it})),n.d(e,"X",(function(){return rt})),n.d(e,"Bb",(function(){return ot})),n.d(e,"E",(function(){return at})),n.d(e,"D",(function(){return st})),n.d(e,"C",(function(){return ct})),n.d(e,"A",(function(){return ut})),n.d(e,"G",(function(){return lt})),n.d(e,"O",(function(){return pt})),n.d(e,"I",(function(){return ht})),n.d(e,"Fb",(function(){return dt})),n.d(e,"yb",(function(){return ft})),n.d(e,"n",(function(){return mt})),n.d(e,"H",(function(){return bt})),n.d(e,"l",(function(){return gt})),n.d(e,"Cb",(function(){return yt})),n.d(e,"zb",(function(){return vt})),n.d(e,"P",(function(){return _t})),n.d(e,"Gb",(function(){return wt})),n.d(e,"B",(function(){return Ot})),n.d(e,"Jb",(function(){return Ct})),n.d(e,"wb",(function(){return xt})),n.d(e,"h",(function(){return Et})),n.d(e,"T",(function(){return St})),n.d(e,"f",(function(){return At})),n.d(e,"Eb",(function(){return kt})),n.d(e,"N",(function(){return Dt})),n.d(e,"Db",(function(){return jt})),n.d(e,"F",(function(){return It})),n.d(e,"Hb",(function(){return Tt})),n.d(e,"xb",(function(){return Rt})),n.d(e,"m",(function(){return Pt})),n.d(e,"Ab",(function(){return Lt})),n.d(e,"J",(function(){return Ft}));var i="RESET_CL_STORE",r="CLEAR_EFFECT_ERROR_CL",o="EFFECT_ERROR_CL",a="SET_CHILD_NODE_SETTINGS_CL",s="FETCH_INFO_CL_CL",c="SET_INFO_CL",u="FETCH_FEES_CL",l="SET_FEES_CL",p="FETCH_FEE_RATES_CL",h="SET_FEE_RATES_CL",d="FETCH_BALANCE_CL",f="SET_BALANCE_CL",m="FETCH_LOCAL_REMOTE_BALANCE_CL",b="SET_LOCAL_REMOTE_BALANCE_CL",g="GET_NEW_ADDRESS_CL",y="SET_NEW_ADDRESS_CL",v="FETCH_TRANSACTIONS_CL",_="SET_TRANSACTIONS_CL",w="FETCH_PEERS_CL",O="SET_PEERS_CL",C="SAVE_NEW_PEER_CL",x="NEWLY_ADDED_PEER_CL",E="ADD_PEER_CL",S="DETACH_PEER_CL",A="REMOVE_PEER_CL",k="FETCH_CHANNELS_CL",D="SET_CHANNELS_CL",j="UPDATE_CHANNELS_CL",I="SAVE_NEW_CHANNEL_CL",T="CLOSE_CHANNEL_CL",R="REMOVE_CHANNEL_CL",P="FETCH_PAYMENTS_CL",L="SET_PAYMENTS_CL",F="DECODE_PAYMENT_CL",N="SET_DECODED_PAYMENT_CL",M="SEND_PAYMENT_CL",V="SEND_PAYMENT_STATUS_CL",B="GET_QUERY_ROUTES_CL",H="SET_QUERY_ROUTES_CL",W="PEER_LOOKUP_CL",z="CHANNEL_LOOKUP_CL",U="INVOICE_LOOKUP_CL",Q="SET_LOOKUP_CL",Y="GET_FORWARDING_HISTORY_CL",G="SET_FORWARDING_HISTORY_CL",q="FETCH_INVOICES_CL",K="SET_INVOICES_CL",X="SET_TOTAL_INVOICES_CL",Z="SAVE_NEW_INVOICE_CL",$="ADD_INVOICE_CL",J="DELETE_EXPIRED_INVOICE_CL",tt="SET_CHANNEL_TRANSACTION_CL",et="SET_CHANNEL_TRANSACTION_RES_CL",nt=function(){return function(t){this.payload=t,this.type=r}}(),it=function(){return function(t){this.payload=t,this.type=o}}(),rt=function(){return function(t){this.payload=t,this.type=i}}(),ot=function(){return function(t){this.payload=t,this.type=a}}(),at=function(){return function(t){this.payload=t,this.type=s}}(),st=function(){return function(){this.type=u}}(),ct=function(){return function(t){this.payload=t,this.type=p}}(),ut=function(){return function(){this.type=d}}(),lt=function(){return function(){this.type=m}}(),pt=function(){return function(t){this.payload=t,this.type=g}}(),ht=function(){return function(){this.type=w}}(),dt=function(){return function(t){this.payload=t,this.type=O}}(),ft=function(){return function(t){this.payload=t,this.type=C}}(),mt=function(){return function(t){this.payload=t,this.type=S}}(),bt=function(){return function(){this.type=P}}(),gt=function(){return function(t){this.payload=t,this.type=F}}(),yt=function(){return function(t){this.payload=t,this.type=N}}(),vt=function(){return function(t){this.payload=t,this.type=M}}(),_t=function(){return function(t){this.payload=t,this.type=B}}(),wt=function(){return function(t){this.payload=t,this.type=H}}(),Ot=function(){return function(){this.type=k}}(),Ct=function(){return function(t){this.payload=t,this.type=j}}(),xt=function(){return function(t){this.payload=t,this.type=I}}(),Et=function(){return function(t){this.payload=t,this.type=T}}(),St=function(){return function(t){this.payload=t,this.type=W}}(),At=function(){return function(t){this.payload=t,this.type=z}}(),kt=function(){return function(t){this.payload=t,this.type=Q}}(),Dt=function(){return function(){this.type=Y}}(),jt=function(){return function(t){this.payload=t,this.type=G}}(),It=function(){return function(t){this.payload=t,this.type=q}}(),Tt=function(){return function(t){this.payload=t,this.type=X}}(),Rt=function(){return function(t){this.payload=t,this.type=Z}}(),Pt=function(){return function(t){this.payload=t,this.type=J}}(),Lt=function(){return function(t){this.payload=t,this.type=tt}}(),Ft=function(){return function(){this.type=v}}()},Lzq4:function(t,e,n){var i=n("u/Db"),r=n("e/Dd");function o(t){this.mode=i.KANJI,this.data=t}o.getBitsLength=function(t){return 13*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){var e;for(e=0;e=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}t.put(n=192*(n>>>8&255)+(255&n),13)}},t.exports=o},M4kG:function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d}));var i=n("eO+G"),r=n("mrSG"),o=n("wFw1"),a=n("CcnG"),s=n("m47I"),c=["mat-button",""],u=["*"],l=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],p=function(){return function(t){this._elementRef=t}}(),h=function(t){function e(e,n,i){var o,a,s=t.call(this,e)||this;s._focusMonitor=n,s._animationMode=i,s.isRoundButton=s._hasHostAttributes("mat-fab","mat-mini-fab"),s.isIconButton=s._hasHostAttributes("mat-icon-button");try{for(var c=Object(r.h)(l),u=c.next();!u.done;u=c.next()){var p=u.value;s._hasHostAttributes(p)&&s._getHostElement().classList.add(p)}}catch(h){o={error:h}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}return e.nativeElement.classList.add("mat-button-base"),s._focusMonitor.monitor(s._elementRef,!0),s.isRoundButton&&(s.color="accent"),s}return Object(r.c)(e,t),e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)},e.prototype.focus=function(t,e){void 0===t&&(t="program"),this._focusMonitor.focusVia(this._getHostElement(),t,e)},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},e.prototype._hasHostAttributes=function(){for(var t=this,e=[],n=0;n*,.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:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),e}(Object(i.x)(Object(i.z)(Object(i.y)(p)))),d=function(){function t(){}return t.\u0275mod=a.Ob({type:t}),t.\u0275inj=a.Nb({factory:function(e){return new(e||t)},imports:[[i.t,i.i],i.i]}),t}()},MCVq:function(t,e,n){"use strict";n.d(e,"jb",(function(){return i})),n.d(e,"f",(function(){return r})),n.d(e,"m",(function(){return o})),n.d(e,"zb",(function(){return a})),n.d(e,"t",(function(){return s})),n.d(e,"Eb",(function(){return c})),n.d(e,"y",(function(){return u})),n.d(e,"Lb",(function(){return l})),n.d(e,"sb",(function(){return p})),n.d(e,"db",(function(){return h})),n.d(e,"k",(function(){return d})),n.d(e,"ib",(function(){return f})),n.d(e,"rb",(function(){return m})),n.d(e,"eb",(function(){return b})),n.d(e,"a",(function(){return g})),n.d(e,"r",(function(){return y})),n.d(e,"Bb",(function(){return v})),n.d(e,"p",(function(){return _})),n.d(e,"wb",(function(){return w})),n.d(e,"w",(function(){return O})),n.d(e,"Ib",(function(){return C})),n.d(e,"o",(function(){return x})),n.d(e,"z",(function(){return E})),n.d(e,"q",(function(){return S})),n.d(e,"vb",(function(){return A})),n.d(e,"Mb",(function(){return k})),n.d(e,"Ab",(function(){return D})),n.d(e,"fc",(function(){return j})),n.d(e,"qb",(function(){return I})),n.d(e,"g",(function(){return T})),n.d(e,"hb",(function(){return R})),n.d(e,"b",(function(){return P})),n.d(e,"ic",(function(){return L})),n.d(e,"c",(function(){return F})),n.d(e,"jc",(function(){return N})),n.d(e,"kb",(function(){return M})),n.d(e,"Ob",(function(){return V})),n.d(e,"lb",(function(){return B})),n.d(e,"mb",(function(){return H})),n.d(e,"u",(function(){return W})),n.d(e,"Fb",(function(){return z})),n.d(e,"Pb",(function(){return U})),n.d(e,"A",(function(){return Q})),n.d(e,"Qb",(function(){return Y})),n.d(e,"B",(function(){return G})),n.d(e,"Rb",(function(){return q})),n.d(e,"x",(function(){return K})),n.d(e,"Kb",(function(){return X})),n.d(e,"tb",(function(){return Z})),n.d(e,"ub",(function(){return $})),n.d(e,"s",(function(){return J})),n.d(e,"Db",(function(){return tt})),n.d(e,"T",(function(){return et})),n.d(e,"Jb",(function(){return nt})),n.d(e,"xb",(function(){return it})),n.d(e,"yb",(function(){return rt})),n.d(e,"Q",(function(){return ot})),n.d(e,"R",(function(){return at})),n.d(e,"Z",(function(){return st})),n.d(e,"ab",(function(){return ct})),n.d(e,"ec",(function(){return ut})),n.d(e,"fb",(function(){return lt})),n.d(e,"e",(function(){return pt})),n.d(e,"bb",(function(){return ht})),n.d(e,"Gb",(function(){return dt})),n.d(e,"S",(function(){return ft})),n.d(e,"Cb",(function(){return mt})),n.d(e,"U",(function(){return bt})),n.d(e,"Nb",(function(){return gt})),n.d(e,"v",(function(){return yt})),n.d(e,"Hb",(function(){return vt})),n.d(e,"i",(function(){return _t})),n.d(e,"n",(function(){return wt})),n.d(e,"nb",(function(){return Ot})),n.d(e,"Xb",(function(){return Ct})),n.d(e,"H",(function(){return xt})),n.d(e,"M",(function(){return Et})),n.d(e,"ac",(function(){return St})),n.d(e,"Ub",(function(){return At})),n.d(e,"l",(function(){return kt})),n.d(e,"Tb",(function(){return Dt})),n.d(e,"F",(function(){return jt})),n.d(e,"D",(function(){return It})),n.d(e,"K",(function(){return Tt})),n.d(e,"C",(function(){return Rt})),n.d(e,"N",(function(){return Pt})),n.d(e,"E",(function(){return Lt})),n.d(e,"hc",(function(){return Ft})),n.d(e,"Sb",(function(){return Nt})),n.d(e,"j",(function(){return Mt})),n.d(e,"d",(function(){return Vt})),n.d(e,"kc",(function(){return Bt})),n.d(e,"pb",(function(){return Ht})),n.d(e,"cc",(function(){return Wt})),n.d(e,"ob",(function(){return zt})),n.d(e,"I",(function(){return Ut})),n.d(e,"dc",(function(){return Qt})),n.d(e,"O",(function(){return Yt})),n.d(e,"P",(function(){return Gt})),n.d(e,"L",(function(){return qt})),n.d(e,"Vb",(function(){return Kt})),n.d(e,"G",(function(){return Xt})),n.d(e,"X",(function(){return Zt})),n.d(e,"Wb",(function(){return $t})),n.d(e,"V",(function(){return Jt})),n.d(e,"cb",(function(){return te})),n.d(e,"gc",(function(){return ee})),n.d(e,"gb",(function(){return ne})),n.d(e,"h",(function(){return ie})),n.d(e,"Zb",(function(){return re})),n.d(e,"W",(function(){return oe})),n.d(e,"Yb",(function(){return ae})),n.d(e,"Y",(function(){return se})),n.d(e,"bc",(function(){return ce})),n.d(e,"J",(function(){return ue}));var i="RESET_LND_STORE",r="CLEAR_EFFECT_ERROR_LND",o="EFFECT_ERROR_LND",a="SET_CHILD_NODE_SETTINGS_LND",s="FETCH_INFO_LND",c="SET_INFO_LND",u="FETCH_PEERS_LND",l="SET_PEERS_LND",p="SAVE_NEW_PEER_LND",h="NEWLY_ADDED_PEER_LND",d="DETACH_PEER_LND",f="REMOVE_PEER_LND",m="SAVE_NEW_INVOICE_LND",b="NEWLY_SAVED_INVOICE_LND",g="ADD_INVOICE_LND",y="FETCH_FEES_LND",v="SET_FEES_LND",_="FETCH_BALANCE_LND",w="SET_BALANCE_LND",O="FETCH_NETWORK_LND",C="SET_NETWORK_LND",x="FETCH_ALL_CHANNELS_LND",E="FETCH_PENDING_CHANNELS_LND",S="FETCH_CLOSED_CHANNELS_LND",A="SET_ALL_CHANNELS_LND",k="SET_PENDING_CHANNELS_LND",D="SET_CLOSED_CHANNELS_LND",j="UPDATE_CHANNELS_LND",I="SAVE_NEW_CHANNEL_LND",T="CLOSE_CHANNEL_LND",R="REMOVE_CHANNEL_LND",P="BACKUP_CHANNELS_LND",L="VERIFY_CHANNELS_LND",F="BACKUP_CHANNELS_RES_LND",N="VERIFY_CHANNELS_RES_LND",M="RESTORE_CHANNELS_LIST_LND",V="SET_RESTORE_CHANNELS_LIST_LND",B="RESTORE_CHANNELS_LND",H="RESTORE_CHANNELS_RES_LND",W="FETCH_INVOICES_LND",z="SET_INVOICES_LND",U="SET_TOTAL_INVOICES_LND",Q="FETCH_TRANSACTIONS_LND",Y="SET_TRANSACTIONS_LND",G="FETCH_UTXOS_LND",q="SET_UTXOS_LND",K="FETCH_PAYMENTS_LND",X="SET_PAYMENTS_LND",Z="SEND_PAYMENT_LND",$="SEND_PAYMENT_STATUS_LND",J="FETCH_GRAPH_NODE_LND",tt="SET_GRAPH_NODE_LND",et="GET_NEW_ADDRESS_LND",nt="SET_NEW_ADDRESS_LND",it="SET_CHANNEL_TRANSACTION_LND",rt="SET_CHANNEL_TRANSACTION_RES_LND",ot="GEN_SEED_LND",at="GEN_SEED_RESPONSE_LND",st="INIT_WALLET_LND",ct="INIT_WALLET_RESPONSE_LND",ut="UNLOCK_WALLET_LND",lt="PEER_LOOKUP_LND",pt="CHANNEL_LOOKUP_LND",ht="INVOICE_LOOKUP_LND",dt="SET_LOOKUP_LND",ft="GET_FORWARDING_HISTORY_LND",mt="SET_FORWARDING_HISTORY_LND",bt="GET_QUERY_ROUTES_LND",gt="SET_QUERY_ROUTES_LND",yt="FETCH_LOOP_SWAPS_LND",vt="SET_LOOP_SWAPS_LND",_t=function(){return function(t){this.payload=t,this.type=r}}(),wt=function(){return function(t){this.payload=t,this.type=o}}(),Ot=function(){return function(t){this.payload=t,this.type=i}}(),Ct=function(){return function(t){this.payload=t,this.type=a}}(),xt=function(){return function(t){this.payload=t,this.type=s}}(),Et=function(){return function(){this.type=u}}(),St=function(){return function(t){this.payload=t,this.type=l}}(),At=function(){return function(t){this.payload=t,this.type=p}}(),kt=function(){return function(t){this.payload=t,this.type=d}}(),Dt=function(){return function(t){this.payload=t,this.type=m}}(),jt=function(){return function(){this.type=y}}(),It=function(){return function(t){this.payload=t,this.type=_}}(),Tt=function(){return function(){this.type=O}}(),Rt=function(){return function(){this.type=x}}(),Pt=function(){return function(){this.type=E}}(),Lt=function(){return function(){this.type=S}}(),Ft=function(){return function(t){this.payload=t,this.type=j}}(),Nt=function(){return function(t){this.payload=t,this.type=I}}(),Mt=function(){return function(t){this.payload=t,this.type=T}}(),Vt=function(){return function(t){this.payload=t,this.type=P}}(),Bt=function(){return function(t){this.payload=t,this.type=L}}(),Ht=function(){return function(){this.type=M}}(),Wt=function(){return function(t){this.payload=t,this.type=V}}(),zt=function(){return function(t){this.payload=t,this.type=B}}(),Ut=function(){return function(t){this.payload=t,this.type=W}}(),Qt=function(){return function(t){this.payload=t,this.type=U}}(),Yt=function(){return function(){this.type=Q}}(),Gt=function(){return function(){this.type=G}}(),qt=function(){return function(){this.type=K}}(),Kt=function(){return function(t){this.payload=t,this.type=Z}}(),Xt=function(){return function(t){this.payload=t,this.type=J}}(),Zt=function(){return function(t){this.payload=t,this.type=et}}(),$t=function(){return function(t){this.payload=t,this.type=it}}(),Jt=function(){return function(t){this.payload=t,this.type=ot}}(),te=function(){return function(t){this.payload=t,this.type=st}}(),ee=function(){return function(t){this.payload=t,this.type=ut}}(),ne=function(){return function(t){this.payload=t,this.type=lt}}(),ie=function(){return function(t){this.payload=t,this.type=pt}}(),re=function(){return function(t){this.payload=t,this.type=dt}}(),oe=function(){return function(t){this.payload=t,this.type=ft}}(),ae=function(){return function(t){this.payload=t,this.type=mt}}(),se=function(){return function(t){this.payload=t,this.type=bt}}(),ce=function(){return function(t){this.payload=t,this.type=gt}}(),ue=function(){return function(){this.type=yt}}()},MGBS:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("mrSG"),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.c(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n("FFOo").a)},MQZC:function(t,e,n){"use strict";n.d(e,"a",(function(){return Y})),n.d(e,"b",(function(){return Q})),n.d(e,"c",(function(){return W})),n.d(e,"d",(function(){return E})),n.d(e,"e",(function(){return T})),n.d(e,"f",(function(){return q}));var i=n("mrSG"),r=n("tzrX"),o=n("CcnG"),a=n("BAGj"),s=n("HHjO"),c=n("Ip0R"),u=n("349r"),l=n("UM4T"),p=n("K9Ia"),h=n("pugT"),d=n("p0ib"),f=n("t9fZ"),m=n("ny24"),b=n("ScIB"),g=function(){function t(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Object(u.d)(-this._previousScrollPosition.left),t.style.top=Object(u.d)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=r}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function y(){return Error("Scroll strategy has already been attached.")}var v=function(){function t(t,e,n,i){var r=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=function(){r.disable(),r._overlayRef.hasAttached()&&r._ngZone.run((function(){return r._overlayRef.detach()}))}}return t.prototype.attach=function(t){if(this._overlayRef)throw y();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe((function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()}))):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t.prototype.detach=function(){this.disable(),this._overlayRef=null},t}(),_=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}();function w(t,e){return e.some((function(e){return t.bottome.bottom||t.righte.right}))}function O(t,e){return e.some((function(e){return t.tope.bottom||t.lefte.right}))}var C=function(){function t(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw y();this._overlayRef=t},t.prototype.enable=function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,r=n.height;w(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run((function(){return t._overlayRef.detach()})))}})))},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t.prototype.detach=function(){this.disable(),this._overlayRef=null},t}(),x=function(){function t(t,e,n,i){var r=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new _},this.close=function(t){return new v(r._scrollDispatcher,r._ngZone,r._viewportRuler,t)},this.block=function(){return new g(r._viewportRuler,r._document)},this.reposition=function(t){return new C(r._scrollDispatcher,r._viewportRuler,r._ngZone,t)},this._document=i}return t.\u0275prov=Object(o.Mb)({factory:function(){return new t(Object(o.ac)(r.c),Object(o.ac)(r.e),Object(o.ac)(o.A),Object(o.ac)(c.d))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(o.ac(r.c),o.ac(r.e),o.ac(o.A),o.ac(c.d))},t}(),E=function(){return function(t){var e,n;if(this.scrollStrategy=new _,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){var r=Object.keys(t);try{for(var o=Object(i.h)(r),a=o.next();!a.done;a=o.next()){var s=a.value;void 0!==t[s]&&(this[s]=t[s])}}catch(c){e={error:c}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}}}(),S=function(){return function(t,e,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}(),A=function(){return function(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}();function k(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "top", "bottom" or "center".')}function D(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "start", "end" or "center".')}var j=function(){function t(t){var e=this;this._attachedOverlays=[],this._keydownListener=function(t){for(var n=e._attachedOverlays,i=n.length-1;i>-1;i--)if(n[i]._keydownEvents.observers.length>0){n[i]._keydownEvents.next(t);break}},this._document=t}return t.prototype.ngOnDestroy=function(){this._detach()},t.prototype.add=function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()},t.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)},t.\u0275prov=Object(o.Mb)({factory:function(){return new t(Object(o.ac)(c.d))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(o.ac(c.d))},t}(),I=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),T=function(){function t(t,e){this._platform=e,this._document=t}return t.prototype.ngOnDestroy=function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){var t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||I)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),n=0;ng&&(g=w,b=_)}}catch(C){n={error:C}}finally{try{v&&!v.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}return this._isPushed=!1,void this._applyPosition(b.position,b.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}},t.prototype.detach=function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()},t.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&F(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)},t.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}},t.prototype.withScrollableContainers=function(t){return this._scrollables=t,this},t.prototype.withPositions=function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},t.prototype.withViewportMargin=function(t){return this._viewportMargin=t,this},t.prototype.withFlexibleDimensions=function(t){return void 0===t&&(t=!0),this._hasFlexibleDimensions=t,this},t.prototype.withGrowAfterOpen=function(t){return void 0===t&&(t=!0),this._growAfterOpen=t,this},t.prototype.withPush=function(t){return void 0===t&&(t=!0),this._canPush=t,this},t.prototype.withLockedPosition=function(t){return void 0===t&&(t=!0),this._positionLocked=t,this},t.prototype.setOrigin=function(t){return this._origin=t,this},t.prototype.withDefaultOffsetX=function(t){return this._offsetX=t,this},t.prototype.withDefaultOffsetY=function(t){return this._offsetY=t,this},t.prototype.withTransformOriginOn=function(t){return this._transformOriginSelector=t,this},t.prototype._getOriginPoint=function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,e,n){var i;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+i,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}},t.prototype._getOverlayFit=function(t,e,n,i){var r=t.x,o=t.y,a=this._getOffset(i,"x"),s=this._getOffset(i,"y");a&&(r+=a),s&&(o+=s);var c=0-o,u=o+e.height-n.height,l=this._subtractOverflows(e.width,0-r,r+e.width-n.width),p=this._subtractOverflows(e.height,c,u),h=l*p;return{visibleArea:h,isCompletelyWithinViewport:e.width*e.height===h,fitsInViewportVertically:p===e.height,fitsInViewportHorizontally:l==e.width}},t.prototype._canFitWithFlexibleDimensions=function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,r=n.right-e.x,o=N(this._overlayRef.getConfig().minHeight),a=N(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=o&&o<=i)&&(t.fitsInViewportHorizontally||null!=a&&a<=r)}return!1},t.prototype._pushOverlayOnScreen=function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var i,r,o=this._viewportRect,a=Math.max(t.x+e.width-o.right,0),s=Math.max(t.y+e.height-o.bottom,0),c=Math.max(o.top-n.top-t.y,0),u=Math.max(o.left-n.left-t.x,0);return this._previousPushAmount={x:i=e.width<=o.width?u||-a:t.xp&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-p/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=c.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)a=t.x,o=c.right-t.x;else{l=Math.min(c.right-t.x+c.left,t.x);var h=this._lastBoundingBoxSize.width;a=t.x-l,(o=2*l)>h&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-h/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}},t.prototype._setBoundingBoxStyles=function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=Object(u.d)(n.height),i.top=Object(u.d)(n.top),i.bottom=Object(u.d)(n.bottom),i.width=Object(u.d)(n.width),i.left=Object(u.d)(n.left),i.right=Object(u.d)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=Object(u.d)(r)),o&&(i.maxWidth=Object(u.d)(o))}this._lastBoundingBoxSize=n,F(this._boundingBox.style,i)},t.prototype._resetBoundingBoxStyles=function(){F(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},t.prototype._resetOverlayElementStyles=function(){F(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})},t.prototype._setOverlayElementStyles=function(t,e){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();F(n,this._getExactOverlayY(e,t,a)),F(n,this._getExactOverlayX(e,t,a))}else n.position="static";var s="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(s+="translateX("+c+"px) "),l&&(s+="translateY("+l+"px)"),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=Object(u.d)(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=Object(u.d)(o.maxWidth):r&&(n.maxWidth="")),F(this._pane.style,n)},t.prototype._getExactOverlayY=function(t,e,n){var i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=Object(u.d)(r.y),i},t.prototype._getExactOverlayX=function(t,e,n){var i={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=Object(u.d)(r.x),i},t.prototype._getScrollVisibility=function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(t){return t.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:O(t,n),isOriginOutsideView:w(t,n),isOverlayClipped:O(e,n),isOverlayOutsideView:w(e,n)}},t.prototype._subtractOverflows=function(t){for(var e=[],n=1;n0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function z(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function U(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,": ").concat(t[n],";")}),"")}function Q(t){return t.size!==H.size||t.x!==H.x||t.y!==H.y||t.rotate!==H.rotate||t.flipX||t.flipY}function Y(t){var e=t.transform,n=t.iconWidth,i={transform:"translate(".concat(t.containerWidth/2," 256)")},r="translate(".concat(32*e.x,", ").concat(32*e.y,") "),o="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),a="rotate(".concat(e.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(r," ").concat(o," ").concat(a)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}var G={x:0,y:0,width:"100%",height:"100%"};function q(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function K(t){var e=t.icons,n=e.main,i=e.mask,r=t.prefix,o=t.iconName,s=t.transform,c=t.symbol,u=t.title,l=t.maskId,p=t.titleId,h=t.extra,d=t.watchable,f=void 0!==d&&d,m=i.found?i:n,b=m.width,g=m.height,y="fak"===r,v=y?"":"fa-w-".concat(Math.ceil(b/g*16)),w=[_.replacementClass,o?"".concat(_.familyPrefix,"-").concat(o):"",v].filter((function(t){return-1===h.classes.indexOf(t)})).filter((function(t){return""!==t||!!t})).concat(h.classes).join(" "),O={children:[],attributes:a({},h.attributes,{"data-prefix":r,"data-icon":o,class:w,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(b," ").concat(g)})},C=y&&!~h.classes.indexOf("fa-fw")?{width:"".concat(b/g*16*.0625,"em")}:{};f&&(O.attributes["data-fa-i2svg"]=""),u&&O.children.push({tag:"title",attributes:{id:O.attributes["aria-labelledby"]||"title-".concat(p||W())},children:[u]});var x=a({},O,{prefix:r,iconName:o,main:n,mask:i,maskId:l,transform:s,symbol:c,styles:a({},C,h.styles)}),E=i.found&&n.found?function(t){var e,n=t.children,i=t.attributes,r=t.main,o=t.mask,s=t.maskId,c=r.icon,u=o.icon,l=Y({transform:t.transform,containerWidth:o.width,iconWidth:r.width}),p={tag:"rect",attributes:a({},G,{fill:"white"})},h=c.children?{children:c.children.map(q)}:{},d={tag:"g",attributes:a({},l.inner),children:[q(a({tag:c.tag,attributes:a({},c.attributes,l.path)},h))]},f={tag:"g",attributes:a({},l.outer),children:[d]},m="mask-".concat(s||W()),b="clip-".concat(s||W()),g={tag:"mask",attributes:a({},G,{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,f]},y={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(e=u,"g"===e.tag?e.children:[e])},g]};return n.push(y,{tag:"rect",attributes:a({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(m,")")},G)}),{children:n,attributes:i}}(x):function(t){var e=t.children,n=t.attributes,i=t.main,r=t.transform,o=U(t.styles);if(o.length>0&&(n.style=o),Q(r)){var s=Y({transform:r,containerWidth:i.width,iconWidth:i.width});e.push({tag:"g",attributes:a({},s.outer),children:[{tag:"g",attributes:a({},s.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:a({},i.icon.attributes,s.path)}]}]})}else e.push(i.icon);return{children:e,attributes:n}}(x),S=E.attributes;return x.children=E.children,x.attributes=S,c?function(t){var e=t.iconName,n=t.children,i=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:a({},t.attributes,{id:!0===i?"".concat(t.prefix,"-").concat(_.familyPrefix,"-").concat(e):i}),children:n}]}]}(x):function(t){var e=t.children,n=t.main,i=t.mask,r=t.attributes,o=t.styles,s=t.transform;if(Q(s)&&n.found&&!i.found){var c={x:n.width/n.height/2,y:.5};r.style=U(a({},o,{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:r,children:e}]}(x)}var X=function(t,e,n,i){var r,o,a,s=Object.keys(t),c=s.length,u=void 0!==i?function(t,e){return function(n,i,r,o){return t.call(e,n,i,r,o)}}(e,i):e;for(void 0===n?(r=1,a=t[s[0]]):(r=0,a=n);r2&&void 0!==arguments[2]?arguments[2]:{},i=n.skipHooks,r=void 0!==i&&i,o=Object.keys(e).reduce((function(t,n){var i=e[n];return i.icon?t[i.iconName]=i.icon:t[n]=i,t}),{});"function"!=typeof O.hooks.addPack||r?O.styles[t]=a({},O.styles[t]||{},o):O.hooks.addPack(t,o),"fas"===t&&Z("fa",e)}var $=O.styles,J=O.shims,tt=function(){var t=function(t){return X($,(function(e,n,i){return e[i]=X(n,t,{}),e}),{})};t((function(t,e,n){return e[3]&&(t[e[3]]=n),t})),t((function(t,e,n){var i=e[2];return t[n]=n,i.forEach((function(e){t[e]=n})),t}));var e="far"in $;X(J,(function(t,n){var i=n[1];return"far"!==i||e||(i="fas"),t[n[0]]={prefix:i,iconName:n[2]},t}),{})};function et(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function nt(t){var e=t.tag,n=t.attributes,i=void 0===n?{}:n,r=t.children,o=void 0===r?[]:r;return"string"==typeof t?z(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,'="').concat(z(t[n]),'" ')}),"").trim()}(i),">").concat(o.map(nt).join(""),"")}function it(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}tt(),(it.prototype=Object.create(Error.prototype)).constructor=it;var rt={fill:"currentColor"},ot={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},at=(a({},rt,{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"}),a({},ot,{attributeName:"opacity"}));function st(t){var e=t[0],n=t[1],i=s(t.slice(4),1)[0];return{found:!0,width:e,height:n,icon:Array.isArray(i)?{tag:"g",attributes:{class:"".concat(_.familyPrefix,"-").concat(g.GROUP)},children:[{tag:"path",attributes:{class:"".concat(_.familyPrefix,"-").concat(g.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(_.familyPrefix,"-").concat(g.PRIMARY),fill:"currentColor",d:i[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:i}}}}function ct(){_.autoAddCss&&!dt&&(function(t){if(t&&f){var e=d.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=d.head.childNodes,i=null,r=n.length-1;r>-1;r--){var o=n[r],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(i=o)}d.head.insertBefore(e,i)}}(function(){var t="svg-inline--fa",e=_.familyPrefix,n=_.replacementClass,i='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if("fa"!==e||n!==t){var r=new RegExp("\\.".concat("fa","\\-"),"g"),o=new RegExp("\\--".concat("fa","\\-"),"g"),a=new RegExp("\\.".concat(t),"g");i=i.replace(r,".".concat(e,"-")).replace(o,"--".concat(e,"-")).replace(a,".".concat(n))}return i}()),dt=!0)}function ut(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map((function(t){return nt(t)}))}}),Object.defineProperty(t,"node",{get:function(){if(f){var e=d.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function lt(t){var e=t.prefix,n=void 0===e?"fa":e,i=t.iconName;if(i)return et(ht.definitions,n,i)||et(O.styles,n,i)}a({},rt,{cx:"256",cy:"364",r:"28"}),a({},ot,{attributeName:"r",values:"28;14;28;28;14;28;"}),a({},at,{values:"1;0;1;1;0;1;"}),a({},rt,{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"}),a({},at,{values:"1;0;0;0;0;1;"}),a({},rt,{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"}),a({},at,{values:"0;0;1;1;0;0;"});var pt,ht=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e;return(e=[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,i=void 0===n?H:n,r=e.symbol,o=void 0!==r&&r,s=e.mask,c=void 0===s?null:s,u=e.maskId,l=void 0===u?null:u,p=e.title,h=void 0===p?null:p,d=e.titleId,f=void 0===d?null:d,m=e.classes,b=void 0===m?[]:m,g=e.attributes,y=void 0===g?{}:g,v=e.styles,w=void 0===v?{}:v;if(t){var O=t.prefix,C=t.iconName,x=t.icon;return ut(a({type:"icon"},t),(function(){return ct(),_.autoA11y&&(h?y["aria-labelledby"]="".concat(_.replacementClass,"-title-").concat(f||W()):(y["aria-hidden"]="true",y.focusable="false")),K({icons:{main:st(x),mask:c?st(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:O,iconName:C,transform:a({},H,i),symbol:o,title:h,maskId:l,titleId:f,extra:{attributes:y,styles:w,classes:b}})}))}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:lt(t||{}),i=e.mask;return i&&(i=(i||{}).icon?i:lt(i||{})),pt(n,a({},e,{mask:i}))}),mt=n("ZYjt");let bt=(()=>{class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null,this.globalLibrary=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Mb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),gt=(()=>{class t{constructor(){this.definitions={}}addIcons(...t){for(const e of t)e.prefix in this.definitions||(this.definitions[e.prefix]={}),this.definitions[e.prefix][e.iconName]=e}addIconPacks(...t){for(const e of t){const t=Object.keys(e).map(t=>e[t]);this.addIcons(...t)}}getIconDefinition(t,e){return t in this.definitions&&e in this.definitions[t]?this.definitions[t][e]:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Mb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const yt=t=>{const e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip,["fa-"+t.size]:null!==t.size,["fa-rotate-"+t.rotate]:null!==t.rotate,["fa-pull-"+t.pull]:null!==t.pull,["fa-stack-"+t.stackItemSize]:null!=t.stackItemSize};return Object.keys(e).map(t=>e[t]?t:null).filter(t=>t)};let vt=(()=>{class t{constructor(){this.stackItemSize="1x"}ngOnChanges(t){if("size"in t)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Lb({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[i.Bb]}),t})(),_t=(()=>{class t{constructor(t,e,n,i){this.sanitizer=t,this.config=e,this.iconLibrary=n,this.stackItem=i,this.classes=[]}ngOnChanges(t){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let e=null;if(e=null==this.icon?this.config.fallbackIcon:this.icon,t){const t=this.findIconDefinition(e);if(null!=t){const e=this.buildParams();this.renderIcon(t,e)}}}render(){this.ngOnChanges({})}findIconDefinition(t){const e=((t,e)=>{return void 0!==(n=t).prefix&&void 0!==n.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:e,iconName:t}:void 0;var n})(t,this.config.defaultPrefix);if("icon"in e)return e;const n=this.iconLibrary.getIconDefinition(e.prefix,e.iconName);if(null!=n)return n;const i=lt(e);if(null!=i){const t="Global icon library is deprecated. Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md for the migration instructions.";if("unset"===this.config.globalLibrary)console.error("FontAwesome: "+t);else if(!this.config.globalLibrary)throw new Error(t);return i}return(t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)})(e),null}buildParams(){const t={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},e="string"==typeof this.transform?function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce((function(t,e){var n=e.toLowerCase().split("-"),i=n[0],r=n.slice(1).join("-");if(i&&"h"===r)return t.flipX=!0,t;if(i&&"v"===r)return t.flipY=!0,t;if(r=parseFloat(r),isNaN(r))return t;switch(i){case"grow":t.size=t.size+r;break;case"shrink":t.size=t.size-r;break;case"left":t.x=t.x-r;break;case"right":t.x=t.x+r;break;case"up":t.y=t.y-r;break;case"down":t.y=t.y+r;break;case"rotate":t.rotate=t.rotate+r}return t}),e):e}(this.transform):this.transform;return{title:this.title,transform:e,classes:[...yt(t),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(t,e){const n=ft(t,e);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(n.html.join("\n"))}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(mt.b),i.Qb(bt),i.Qb(gt),i.Qb(vt,8))},t.\u0275cmp=i.Kb({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t,e){2&t&&(i.Zb("innerHTML",e.renderedIconHTML,i.zc),i.Eb("title",e.title))},inputs:{classes:"classes",icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",transform:"transform",a11yRole:"a11yRole"},features:[i.Bb],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),wt=(()=>{class t{}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)}}),t})()},O4ig:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("CcnG"),r=function(){function t(t){this.el=t}return t.prototype.ngAfterContentInit=function(){var t=this;setTimeout((function(){t.el.nativeElement.focus()}),500)},t.\u0275fac=function(e){return new(e||t)(i.Qb(i.l))},t.\u0275dir=i.Lb({type:t,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),t}()},OzfB:function(t,e,n){"use strict";n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return g})),n.d(e,"e",(function(){return y})),n.d(e,"g",(function(){return v})),n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return x})),n.d(e,"i",(function(){return U})),n.d(e,"h",(function(){return Q})),n.d(e,"j",(function(){return Y})),n.d(e,"f",(function(){return q}));var i=n("CcnG"),r=n("Ip0R"),o=n("mrSG"),a=n("K9Ia"),s=n("26FU"),c=n("6blF"),u=n("p0ib"),l=(n("KQya"),n("F/XL"),n("bne5"),n("VnD/")),p=(n("67Y/"),n("Gi3i"),n("15JJ"),n("ny24"),n("t9fZ"),n("xMyE")),h={provide:i.b,useFactory:function(t,e){return function(){if(Object(r.z)(e)){var n=Array.from(t.querySelectorAll("[class*="+d+"]")),i=/\bflex-layout-.+?\b/g;n.forEach((function(t){t.classList.contains(d+"ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(i,"")}))}}},deps:[r.d,i.C],multi:!0},d="flex-layout-",f=function(){function t(){}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},providers:[h]}),t}(),m=function(){function t(t,e,n,i,r){void 0===t&&(t=!1),void 0===e&&(e="all"),void 0===n&&(n=""),void 0===i&&(i=""),void 0===r&&(r=0),this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=i,this.priority=r,this.property=""}return t.prototype.clone=function(){return new t(this.matches,this.mediaQuery,this.mqAlias,this.suffix)},t}(),b=function(){function t(){this.stylesheet=new Map}return t.prototype.addStyleToElement=function(t,e,n){var i=this.stylesheet.get(t);i?i.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))},t.prototype.clearStyles=function(){this.stylesheet.clear()},t.prototype.getStyleForElement=function(t,e){var n=this.stylesheet.get(t),i="";if(n){var r=n.get(e);"number"!=typeof r&&"string"!=typeof r||(i=r+"")}return i},t.\u0275prov=Object(i.Mb)({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),g={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},y=new i.r("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return g}}),v=new i.r("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),_=new i.r("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function w(t,e){return t=t?t.clone():new m,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}var O=["row","column","row-reverse","column-reverse"];function C(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}var x=function(){function t(t,e,n,i){this.elementRef=t,this.styleBuilder=e,this.styler=n,this.marshal=i,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new a.a,this.styleCache=new Map}return Object.defineProperty(t.prototype,"parentElement",{get:function(){return this.elementRef.nativeElement.parentElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nativeElement",{get:function(){return this.elementRef.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedValue",{get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){var e=this;Object.keys(t).forEach((function(n){if(-1!==e.inputs.indexOf(n)){var i=n.split(".").slice(1).join(".");e.setValue(t[n].currentValue,i)}}))},t.prototype.ngOnDestroy=function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)},t.prototype.init=function(t){void 0===t&&(t=[]),this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)},t.prototype.addStyles=function(t,e){var n=this.styleBuilder,i=n.shouldCache,r=this.styleCache.get(t);r&&i||(r=n.buildStyles(t,e),i&&this.styleCache.set(t,r)),this.mru=Object(o.a)({},r),this.applyStyleToElement(r),n.sideEffect(t,r,e)},t.prototype.clearStyles=function(){var t=this;Object.keys(this.mru).forEach((function(e){t.mru[e]=""})),this.applyStyleToElement(this.mru),this.mru={}},t.prototype.triggerUpdate=function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)},t.prototype.getFlexFlowDirection=function(t,e){if(void 0===e&&(e=!1),t){var n=this.styler.getFlowDirection(t),i=n[0];if(!n[1]&&e){var r=function(t){var e,n,i=function(t){var e=(t=t?t.toLowerCase():"").split(" "),n=e[0],i=e[1],r=e[2];return O.find((function(t){return t===n}))||(n=O[0]),"inline"===i&&(i="inline"!==r?r:"",r="inline"),[n,C(i),!!r]}(t);return void 0===(e=i[1])&&(e=null),void 0===(n=i[2])&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":i[0],"flex-wrap":e||null}}(i);this.styler.applyStyleToElements(r,[t])}return i.trim()}return"row"},t.prototype.hasWrap=function(t){return this.styler.hasWrap(t)},t.prototype.applyStyleToElement=function(t,e,n){void 0===n&&(n=this.nativeElement),this.styler.applyStyleToElement(n,t,e)},t.prototype.setValue=function(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)},t.prototype.updateWithValue=function(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)},t.\u0275fac=function(t){i.dc()},t.\u0275dir=i.Lb({type:t,features:[i.Bb]}),t}(),E=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.9px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.9px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.9px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.9px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.9px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.9px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.9px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.9px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.9px)"},{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}],S="(orientation: portrait) and (min-width: 600px) and (max-width: 839.9px)",A="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.9px)",k="(orientation: portrait) and (min-width: 840px)",D="(orientation: landscape) and (min-width: 1280px)",j={HANDSET:"(orientation: portrait) and (max-width: 599.9px), (orientation: landscape) and (max-width: 959.9px)",TABLET:S+" , "+A,WEB:k+", "+D+" ",HANDSET_PORTRAIT:"(orientation: portrait) and (max-width: 599.9px)",TABLET_PORTRAIT:S+" ",WEB_PORTRAIT:""+k,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.9px)",TABLET_LANDSCAPE:""+A,WEB_LANDSCAPE:""+D},I=[{alias:"handset",priority:2e3,mediaQuery:j.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:j.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:j.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:j.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:j.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:j.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:j.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:j.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:j.WEB_PORTRAIT,overlapping:!0}],T=/(\.|-|_)/g;function R(t){var e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}var P=new i.r("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var t=Object(i.W)(_),e=Object(i.W)(y),n=[].concat.apply([],(t||[]).map((function(t){return Array.isArray(t)?t:[t]})));return function(t,e){void 0===e&&(e=[]);var n,i={};return t.forEach((function(t){i[t.alias]=t})),e.forEach((function(t){i[t.alias]?function(t){for(var e=[],n=1;n-1}))),r=new c.a((function(e){var i=n.registerQuery(t);if(i.length){var r=i.pop();i.forEach((function(t){e.next(t)})),n.source.next(r)}e.complete()}));return Object(u.a)(r,i)}return this._observable$},t.prototype.registerQuery=function(t){var e=this,n=Array.isArray(t)?t:[t],i=[];return function(t,e){var n=t.filter((function(t){return!V[t]}));if(n.length>0){var i=n.join(", ");try{var r=e.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(e.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media "+i+" {.fx-query-test{ }}\n")),e.head.appendChild(r),n.forEach((function(t){return V[t]=r}))}catch(o){console.error(o)}}}(n,this._document),n.forEach((function(t){var n=function(n){e._zone.run((function(){return e.source.next(new m(n.matches,t))}))},r=e.registry.get(t);r||((r=e.buildMQL(t)).addListener(n),e.pendingRemoveListenerFns.push((function(){return r.removeListener(n)})),e.registry.set(t,r)),r.matches&&i.push(new m(!0,t))})),i},t.prototype.ngOnDestroy=function(){for(var t;t=this.pendingRemoveListenerFns.pop();)t()},t.prototype.buildMQL=function(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(t,Object(r.z)(this._platformId))},t.\u0275prov=Object(i.Mb)({factory:function(){return new t(Object(i.ac)(i.A),Object(i.ac)(i.C),Object(i.ac)(r.d))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(i.ac(i.A),i.ac(i.C),i.ac(r.d))},t}(),V={},B={alias:"print",mediaQuery:"print",priority:1e3},H=function(){function t(t,e,n){this.breakpoints=t,this.layoutConfig=e,this._document=n,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new W,this.deactivations=[]}return t.prototype.withPrintQuery=function(t){return Object(o.g)(t,["print"])},t.prototype.isPrintEvent=function(t){return t.mediaQuery.startsWith("print")},Object.defineProperty(t.prototype,"printAlias",{get:function(){return this.layoutConfig.printWithBreakpoints||[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"printBreakPoints",{get:function(){var t=this;return this.printAlias.map((function(e){return t.breakpoints.findByAlias(e)})).filter((function(t){return null!==t}))},enumerable:!0,configurable:!0}),t.prototype.getEventBreakpoints=function(t){var e=this.breakpoints.findByQuery(t.mediaQuery);return(e?Object(o.g)(this.printBreakPoints,[e]):this.printBreakPoints).sort(L)},t.prototype.updateEvent=function(t){var e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),w(t,e)},t.prototype.registerBeforeAfterPrintHooks=function(t){var e=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){e.isPrinting||(e.isPrintingBeforeAfterEvent=!0,e.startPrinting(t,e.getEventBreakpoints(new m(!0,"print"))),t.updateStyles())},i=function(){e.isPrintingBeforeAfterEvent=!1,e.isPrinting&&(e.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(i)}},t.prototype.interceptEvents=function(t){var e=this;return this.registerBeforeAfterPrintHooks(t),function(n){e.isPrintEvent(n)?n.matches&&!e.isPrinting?(e.startPrinting(t,e.getEventBreakpoints(n)),t.updateStyles()):n.matches||!e.isPrinting||e.isPrintingBeforeAfterEvent||(e.stopPrinting(t),t.updateStyles()):e.collectActivations(n)}},t.prototype.blockPropagation=function(){var t=this;return function(e){return!(t.isPrinting||t.isPrintEvent(e))}},t.prototype.startPrinting=function(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)},t.prototype.stopPrinting=function(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1},t.prototype.collectActivations=function(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(L))}},t.prototype.ngOnDestroy=function(){var t=this;this.beforePrintEventListeners.forEach((function(e){return t._document.defaultView.removeEventListener("beforeprint",e)})),this.afterPrintEventListeners.forEach((function(e){return t._document.defaultView.removeEventListener("afterprint",e)}))},t.\u0275prov=Object(i.Mb)({factory:function(){return new t(Object(i.ac)(N),Object(i.ac)(y),Object(i.ac)(r.d))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(i.ac(N),i.ac(y),i.ac(r.d))},t}(),W=function(){function t(){this.printBreakpoints=[]}return t.prototype.addPrintBreakpoints=function(t){var e=this;return t.push(B),t.sort(L),t.forEach((function(t){return e.addBreakpoint(t)})),this.printBreakpoints},t.prototype.addBreakpoint=function(t){t&&void 0===this.printBreakpoints.find((function(e){return e.mediaQuery===t.mediaQuery}))&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith("print")}(t)?Object(o.g)([t],this.printBreakpoints):Object(o.g)(this.printBreakpoints,[t]))},t.prototype.clear=function(){this.printBreakpoints=[]},t}();function z(t){for(var e in t){var n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":t["-webkit-flex-direction"]=n=n||"row",t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}var U=function(){function t(t,e,n,i){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=i}return t.prototype.applyStyleToElement=function(t,e,n){void 0===n&&(n=null);var i={};"string"==typeof e&&(i[e]=n,e=i),i=this.layoutConfig.disableVendorPrefixes?e:z(e),this._applyMultiValueStyleToElement(i,t)},t.prototype.applyStyleToElements=function(t,e){var n=this;void 0===e&&(e=[]);var i=this.layoutConfig.disableVendorPrefixes?t:z(t);e.forEach((function(t){n._applyMultiValueStyleToElement(i,t)}))},t.prototype.getFlowDirection=function(t){var e=this.lookupStyle(t,"flex-direction");return[e||"row",this.lookupInlineStyle(t,"flex-direction")||Object(r.A)(this._platformId)&&this._serverModuleLoaded?e:""]},t.prototype.hasWrap=function(t){return"wrap"===this.lookupStyle(t,"flex-wrap")},t.prototype.lookupAttributeValue=function(t,e){return t.getAttribute(e)||""},t.prototype.lookupInlineStyle=function(t,e){return Object(r.z)(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)},t.prototype.lookupStyle=function(t,e,n){void 0===n&&(n=!1);var i="";return t&&((i=this.lookupInlineStyle(t,e))||(Object(r.z)(this._platformId)?n||(i=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(t,e)))),i?i.trim():""},t.prototype._applyMultiValueStyleToElement=function(t,e){var n=this;Object.keys(t).sort().forEach((function(i){var o=t[i],a=Array.isArray(o)?o:[o];a.sort();for(var s=0,c=a;s0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: "+o);e[o.substr(0,a).trim()]=o.substr(a+1).trim()}}return e},t.prototype._writeStyleAttribute=function(t,e){var n="";for(var i in e)e[i]&&(n+=i+":"+e[i]+";");t.setAttribute("style",n)},t.\u0275prov=Object(i.Mb)({factory:function(){return new t(Object(i.ac)(b),Object(i.ac)(v),Object(i.ac)(i.C),Object(i.ac)(y))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(i.ac(b),i.ac(v),i.ac(i.C),i.ac(y))},t}(),Q=function(){function t(){this.shouldCache=!0}return t.prototype.sideEffect=function(t,e,n){},t}();function Y(t,e,n){void 0===e&&(e="1"),void 0===n&&(n="1");var i=[e,n,t],r=t.indexOf("calc");if(r>0)i[2]=G(t.substring(r).trim()),2==(o=t.substr(0,r).trim().split(" ")).length&&(i[0]=o[0],i[1]=o[1]);else if(0==r)i[2]=G(t.trim());else{var o;i=3===(o=t.split(" ")).length?o:[e,n,t]}return i}function G(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var q=function(){function t(t,e,n){this.matchMedia=t,this.breakpoints=e,this.hook=n,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 a.a,this.observeActivations()}return Object.defineProperty(t.prototype,"activatedAlias",{get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""},enumerable:!0,configurable:!0}),t.prototype.onMediaChange=function(t){var e=this.findByQuery(t.mediaQuery);e&&((t=w(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(L),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(L),this.updateStyles()))},t.prototype.init=function(t,e,n,i,r){void 0===r&&(r=[]),K(this.updateMap,t,e,n),K(this.clearMap,t,e,i),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,r)},t.prototype.getValue=function(t,e,n){var i=this.elementMap.get(t);if(i){var r=void 0!==n?i.get(n):this.getActivatedValues(i,e);if(r)return r.get(e)}},t.prototype.hasValue=function(t,e){var n=this.elementMap.get(t);if(n){var i=this.getActivatedValues(n,e);if(i)return void 0!==i.get(e)||!1}return!1},t.prototype.setValue=function(t,e,n,i){var r=this.elementMap.get(t);if(r){var o=(r.get(i)||new Map).set(e,n);r.set(i,o),this.elementMap.set(t,r)}else r=(new Map).set(i,(new Map).set(e,n)),this.elementMap.set(t,r);var a=this.getValue(t,e);void 0!==a&&this.updateElement(t,e,a)},t.prototype.trackValue=function(t,e){return this.subject.asObservable().pipe(Object(l.a)((function(n){return n.element===t&&n.key===e})))},t.prototype.updateStyles=function(){var t=this;this.elementMap.forEach((function(e,n){var i=new Set(t.elementKeyMap.get(n)),r=t.getActivatedValues(e);r&&r.forEach((function(e,r){t.updateElement(n,r,e),i.delete(r)})),i.forEach((function(i){if(r=t.getActivatedValues(e,i)){var o=r.get(i);t.updateElement(n,i,o)}else t.clearElement(n,i)}))}))},t.prototype.clearElement=function(t,e){var n=this.clearMap.get(t);if(n){var i=n.get(e);i&&(i(),this.subject.next({element:t,key:e,value:""}))}},t.prototype.updateElement=function(t,e,n){var i=this.updateMap.get(t);if(i){var r=i.get(e);r&&(r(n),this.subject.next({element:t,key:e,value:n}))}},t.prototype.releaseElement=function(t){var e=this.watcherMap.get(t);e&&(e.forEach((function(t){return t.unsubscribe()})),this.watcherMap.delete(t));var n=this.elementMap.get(t);n&&(n.forEach((function(t,e){return n.delete(e)})),this.elementMap.delete(t))},t.prototype.triggerUpdate=function(t,e){var n=this,i=this.elementMap.get(t);if(i){var r=this.getActivatedValues(i,e);r&&(e?this.updateElement(t,e,r.get(e)):r.forEach((function(e,i){return n.updateElement(t,i,e)})))}},t.prototype.buildElementKeyMap=function(t,e){var n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)},t.prototype.watchExtraTriggers=function(t,e,n){var i=this;if(n&&n.length){var r=this.watcherMap.get(t);if(r||(r=new Map,this.watcherMap.set(t,r)),!r.get(e)){var o=u.a.apply(void 0,n).subscribe((function(){var n=i.getValue(t,e);i.updateElement(t,e,n)}));r.set(e,o)}}},t.prototype.findByQuery=function(t){return this.breakpoints.findByQuery(t)},t.prototype.getActivatedValues=function(t,e){for(var n=0;n=2;return function(u){return u.pipe(t?Object(r.a)((function(e,n){return t(e,n,u)})):c.a,Object(o.a)(1),n?Object(a.a)(e):Object(s.a)((function(){return new i.a})))}}},PCNd:function(t,e,n){"use strict";n.d(e,"a",(function(){return X}));var i=n("Ip0R"),r=n("ZYCi"),o=n("gIcY"),a=n("t/Na"),s=n("Nv++"),c=n("CcnG"),u=n("mrSG"),l=n("OzfB"),p=n("hUWP"),h=n("21Lb");n("349r");var d=function(){function t(){}return t.\u0275mod=c.Ob({type:t}),t.\u0275inj=c.Nb({factory:function(e){return new(e||t)},imports:[[l.c]]}),t}(),f=function(){function t(t,e){Object(i.A)(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return t.withConfig=function(e,n){return void 0===n&&(n=[]),{ngModule:t,providers:e.serverLoaded?[{provide:l.e,useValue:Object(u.a)(Object(u.a)({},l.d),e)},{provide:l.a,useValue:n,multi:!0},{provide:l.g,useValue:!0}]:[{provide:l.e,useValue:Object(u.a)(Object(u.a)({},l.d),e)},{provide:l.a,useValue:n,multi:!0}]}},t.\u0275mod=c.Ob({type:t}),t.\u0275inj=c.Nb({factory:function(e){return new(e||t)(c.ac(l.g),c.ac(c.C))},imports:[[h.d,p.c,d],h.d,p.c,d]}),t}(),m=n("SmEL"),b=n("ZiY4"),g=n("BId/"),y=n("M4kG"),v=(n("e9QY"),n("eO+G")),_=(n("m47I"),function(){function t(){}return t.\u0275mod=c.Ob({type:t}),t.\u0275inj=c.Nb({factory:function(e){return new(e||t)},imports:[[v.i,v.t],v.i]}),t}()),w=n("qLAh"),O=n("zHqG"),C=n("PwdT"),x=n("FqGj"),E=n("aPcS"),S=n("fPVg"),A=n("UTvR"),k=n("zZiN"),D=n("zPjY"),j=n("kfqd"),I=n("UVSV"),T=n("q18l"),R=n("I21E"),P=n("8KZq"),L=n("ALDU"),F=n("Ci9w");n("ScIB"),n("wFw1"),n("BAGj"),n("pugT"),n("HHjO");var N=function(){function t(){}return t.\u0275mod=c.Ob({type:t}),t.\u0275inj=c.Nb({factory:function(e){return new(e||t)},imports:[[i.c,v.i],v.i]}),t}(),M=n("KELG"),V=n("BqIw"),B=n("qPmt"),H=n("JeCn"),W=n("VkXI"),z=n("LBDf"),U=n("v/zR"),Q=n("nT/y"),Y=n("bwdU"),G=n("g2ei"),q=n("cpEJ"),K={suppressScrollX:!1,suppressScrollY:!1},X=function(){function t(){}return t.\u0275mod=c.Ob({type:t}),t.\u0275inj=c.Nb({factory:function(e){return new(e||t)},providers:[{provide:q.b,useClass:q.a},{provide:G.a,useValue:K},{provide:M.a,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},i.e,i.w],imports:[[i.c,o.h,o.q,s.b,f,m.c,y.b,_,w.d,O.b,x.b,E.b,C.c,v.l,S.b,A.c,k.c,D.b,I.b,T.a,R.c,Q.c,P.b,L.d,F.b,V.c,H.p,z.b,U.b,g.b,j.c,B.e,N,W.e,M.c,b.b,Y.b,r.j,a.c,G.c],o.h,o.q,s.b,f,m.c,y.b,_,w.d,O.b,x.b,E.b,C.c,v.l,S.b,A.c,k.c,D.b,I.b,T.a,R.c,Q.c,P.b,L.d,F.b,V.c,H.p,z.b,U.b,g.b,j.c,B.e,N,W.e,M.c,b.b,Y.b,G.c]}),t}()},Phjn:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("psW0");function r(t,e){return Object(i.a)(t,e,1)}},PwdT:function(t,e,n){"use strict";n.d(e,"a",(function(){return at})),n.d(e,"b",(function(){return lt})),n.d(e,"c",(function(){return dt})),n.d(e,"d",(function(){return ht}));var i=n("m47I"),r=n("MQZC"),o=n("UM4T"),a=n("Ip0R"),s=n("CcnG"),c=n("M4kG"),u=n("4lrr"),l=n("tzrX"),p=n("eO+G"),h=n("K9Ia"),d=n("pugT"),f=n("p0ib"),m=n("F/XL"),b=n("ScIB"),g=n("t9fZ"),y=n("p0Sj"),v=n("VnD/"),_=n("mrSG"),w=n("349r"),O=n("ihYY"),C=n("gIcY"),x=n("dlst"),E=n("UTvR"),S=n("HHjO"),A=["mat-calendar-body",""];function k(t,e){if(1&t&&(s.Wb(0,"tr",2),s.Wb(1,"td",3),s.Hc(2),s.Vb(),s.Vb()),2&t){var n=s.ic();s.Db(1),s.Ec("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),s.Eb("colspan",n.numCols),s.Db(1),s.Jc(" ",n.label," ")}}function D(t,e){if(1&t&&(s.Wb(0,"td",7),s.Hc(1),s.Vb()),2&t){var n=s.ic(2);s.Ec("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),s.Eb("colspan",n._firstRowOffset),s.Db(1),s.Jc(" ",n._firstRowOffset>=n.labelMinRequiredCells?n.label:""," ")}}function j(t,e){if(1&t){var n=s.Xb();s.Wb(0,"td",8),s.ec("click",(function(){s.yc(n);var t=e.$implicit;return s.ic(2)._cellClicked(t)})),s.Wb(1,"div",9),s.Hc(2),s.Vb(),s.Vb()}if(2&t){var i=e.$implicit,r=e.index,o=s.ic().index,a=s.ic();s.Ec("width",a._cellWidth)("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),s.Hb("mat-calendar-body-disabled",!i.enabled)("mat-calendar-body-active",a._isActiveCell(o,r)),s.pc("ngClass",i.cssClasses)("tabindex",a._isActiveCell(o,r)?0:-1),s.Eb("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null)("aria-selected",a.selectedValue===i.value),s.Db(1),s.Hb("mat-calendar-body-selected",a.selectedValue===i.value)("mat-calendar-body-today",a.todayValue===i.value),s.Db(1),s.Jc(" ",i.displayValue," ")}}function I(t,e){if(1&t&&(s.Wb(0,"tr",4),s.Fc(1,D,2,6,"td",5),s.Fc(2,j,3,20,"td",6),s.Vb()),2&t){var n=e.$implicit,i=e.index,r=s.ic();s.Db(1),s.pc("ngIf",0===i&&r._firstRowOffset),s.Db(1),s.pc("ngForOf",n)}}function T(t,e){if(1&t&&(s.Wb(0,"th",5),s.Hc(1),s.Vb()),2&t){var n=e.$implicit;s.Eb("aria-label",n.long),s.Db(1),s.Ic(n.narrow)}}var R=["*"];function P(t,e){}function L(t,e){if(1&t){var n=s.Xb();s.Wb(0,"mat-month-view",5),s.ec("activeDateChange",(function(t){return s.yc(n),s.ic().activeDate=t}))("selectedChange",(function(t){return s.yc(n),s.ic()._dateSelected(t)}))("_userSelection",(function(){return s.yc(n),s.ic()._userSelected()})),s.Vb()}if(2&t){var i=s.ic();s.pc("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function F(t,e){if(1&t){var n=s.Xb();s.Wb(0,"mat-year-view",6),s.ec("activeDateChange",(function(t){return s.yc(n),s.ic().activeDate=t}))("monthSelected",(function(t){return s.yc(n),s.ic()._monthSelectedInYearView(t)}))("selectedChange",(function(t){return s.yc(n),s.ic()._goToDateInView(t,"month")})),s.Vb()}if(2&t){var i=s.ic();s.pc("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)}}function N(t,e){if(1&t){var n=s.Xb();s.Wb(0,"mat-multi-year-view",7),s.ec("activeDateChange",(function(t){return s.yc(n),s.ic().activeDate=t}))("yearSelected",(function(t){return s.yc(n),s.ic()._yearSelectedInMultiYearView(t)}))("selectedChange",(function(t){return s.yc(n),s.ic()._goToDateInView(t,"year")})),s.Vb()}if(2&t){var i=s.ic();s.pc("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)}}var M=["button"];function V(t,e){1&t&&(s.hc(),s.Wb(0,"svg",3),s.Rb(1,"path",4),s.Vb())}var B=[[["","matDatepickerToggleIcon",""]]],H=["[matDatepickerToggleIcon]"];function W(t){return Error("MatDatepicker: No provider found for "+t+". You must import one of the following modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}var z=function(){function t(){this.changes=new h.a,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return t.prototype.formatYearRange=function(t,e){return t+" \u2013 "+e},t.\u0275prov=Object(s.Mb)({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),U=function(){return function(t,e,n,i,r){void 0===r&&(r={}),this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=i,this.cssClasses=r}}(),Q=function(){function t(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new s.o}return t.prototype._cellClicked=function(t){t.enabled&&this.selectedValueChange.emit(t.value)},t.prototype.ngOnChanges=function(t){var e=t.numCols,n=this.rows,i=this.numCols;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/i+"%"),!e&&this._cellWidth||(this._cellWidth=100/i+"%")},t.prototype._isActiveCell=function(t,e){var n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell},t.prototype._focusActiveCell=function(){var t=this;this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(Object(g.a)(1)).subscribe((function(){var e=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&e.focus()}))}))},t.\u0275fac=function(e){return new(e||t)(s.Qb(s.l),s.Qb(s.A))},t.\u0275cmp=s.Kb({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",cellAspectRatio:"cellAspectRatio",label:"label",rows:"rows",todayValue:"todayValue",selectedValue:"selectedValue",labelMinRequiredCells:"labelMinRequiredCells"},outputs:{selectedValueChange:"selectedValueChange"},exportAs:["matCalendarBody"],features:[s.Bb],attrs:A,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell mat-focus-indicator",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell","mat-focus-indicator",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content"]],template:function(t,e){1&t&&(s.Fc(0,k,3,6,"tr",0),s.Fc(1,I,3,2,"tr",1)),2&t&&(s.pc("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n"],encapsulation:2,changeDetection:0}),t}(),Y=function(){function t(t,e,n,i){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=d.a.EMPTY,this.selectedChange=new s.o,this._userSelection=new s.o,this.activeDateChange=new s.o,!this._dateAdapter)throw W("DateAdapter");if(!this._dateFormats)throw W("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedDate=this._getDateInCurrentMonth(this._selected)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},set:function(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},set:function(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(y.a)(null)).subscribe((function(){return t._init()}))},t.prototype.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()},t.prototype._dateSelected=function(t){if(this._selectedDate!=t){var e=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.createDate(e,n,t);this.selectedChange.emit(i)}this._userSelection.emit()},t.prototype._handleCalendarBodyKeydown=function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case b.g:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case b.k:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case b.n:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case b.b:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case b.f:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case b.c:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case b.j:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case b.i:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case b.d:case b.l:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected(this._dateAdapter.getDate(this._activeDate)),this._userSelection.emit(),t.preventDefault()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()},t.prototype._init=function(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()},t.prototype._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()},t.prototype._initWeekdays=function(){var t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map((function(t,n){return{long:t,narrow:e[n]}}));this._weekdays=n.slice(t).concat(n.slice(0,t))},t.prototype._createWeekCells=function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,i=this._firstWeekOffset;n=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))},t.prototype._getDateInCurrentMonth=function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null},t.prototype._hasSameMonthAndYear=function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.prototype._isRtl=function(){return this._dir&&"rtl"===this._dir.value},t.\u0275fac=function(e){return new(e||t)(s.Qb(s.h),s.Qb(p.e,8),s.Qb(p.c,8),s.Qb(S.b,8))},t.\u0275cmp=s.Kb({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var n;1&t&&s.Mc(Q,!0),2&t&&s.vc(n=s.fc())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],decls:7,vars:7,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","selectedValue","labelMinRequiredCells","activeCell","selectedValueChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(s.Wb(0,"table",0),s.Wb(1,"thead",1),s.Wb(2,"tr"),s.Fc(3,T,2,2,"th",2),s.Vb(),s.Wb(4,"tr"),s.Rb(5,"th",3),s.Vb(),s.Vb(),s.Wb(6,"tbody",4),s.ec("selectedValueChange",(function(t){return e._dateSelected(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),s.Vb(),s.Vb()),2&t&&(s.Db(3),s.pc("ngForOf",e._weekdays),s.Db(3),s.pc("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("selectedValue",e._selectedDate)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[a.m,Q],encapsulation:2,changeDetection:0}),t}(),G=function(){function t(t,e,n){if(this._changeDetectorRef=t,this._dateAdapter=e,this._dir=n,this._rerenderSubscription=d.a.EMPTY,this.selectedChange=new s.o,this.yearSelected=new s.o,this.activeDateChange=new s.o,!this._dateAdapter)throw W("DateAdapter");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),q(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},set:function(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},set:function(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(y.a)(null)).subscribe((function(){return t._init()}))},t.prototype.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()},t.prototype._init=function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate)-K(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];n<24;n++)i.push(e+n),4==i.length&&(this._years.push(i.map((function(e){return t._createCellForYear(e)}))),i=[]);this._changeDetectorRef.markForCheck()},t.prototype._yearSelected=function(t){this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));var e=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,e,1));this.selectedChange.emit(this._dateAdapter.createDate(t,e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))},t.prototype._handleCalendarBodyKeydown=function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case b.g:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case b.k:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case b.n:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case b.b:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case b.f:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-K(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case b.c:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-K(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case b.j:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case b.i:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case b.d:case b.l:this._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()},t.prototype._getActiveCell=function(){return K(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)},t.prototype._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()},t.prototype._createCellForYear=function(t){var e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new U(t,e,e,this._shouldEnableYear(t))},t.prototype._shouldEnableYear=function(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&tn||t===n&&e>i}return!1},t.prototype._isYearAndMonthBeforeMinDate=function(t,e){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return t enter",Object(O.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(O.l)({opacity:1,transform:"scale(1, 1)"}))),Object(O.m)("* => void",Object(O.e)("100ms linear",Object(O.l)({opacity:0})))]),fadeInCalendar:Object(O.n)("fadeInCalendar",[Object(O.k)("void",Object(O.l)({opacity:0})),Object(O.k)("enter",Object(O.l)({opacity:1})),Object(O.m)("void => *",Object(O.e)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},et=0,nt=new s.r("mat-datepicker-scroll-strategy"),it={provide:nt,deps:[r.c],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},rt=function(){return function(t){this._elementRef=t}}(),ot=function(t){function e(e,n){var i=t.call(this,e)||this;return i._changeDetectorRef=n,i._animationState="enter",i._animationDone=new h.a,i}return Object(_.c)(e,t),e.prototype.ngAfterViewInit=function(){this._calendar.focusActiveCell()},e.prototype.ngOnDestroy=function(){this._animationDone.complete()},e.prototype._startExitAnimation=function(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()},e.\u0275fac=function(t){return new(t||e)(s.Qb(s.l),s.Qb(s.h))},e.\u0275cmp=s.Kb({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var n;1&t&&s.Mc(J,!0),2&t&&s.vc(n=s.fc())&&(e._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&s.Ib("@transformPanel.done",(function(){return e._animationDone.next()})),2&t&&(s.Lc("@transformPanel",e._animationState),s.Hb("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[s.Ab],decls:1,vars:11,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected","_userSelection"]],template:function(t,e){1&t&&(s.Wb(0,"mat-calendar",0),s.ec("selectedChange",(function(t){return e.datepicker.select(t)}))("yearSelected",(function(t){return e.datepicker._selectYear(t)}))("monthSelected",(function(t){return e.datepicker._selectMonth(t)}))("_userSelection",(function(){return e.datepicker.close()})),s.Vb()),2&t&&s.pc("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._minDate)("maxDate",e.datepicker._maxDate)("dateFilter",e.datepicker._dateFilter)("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e.datepicker._selected)("dateClass",e.datepicker.dateClass)("@fadeInCalendar","enter")},directives:[J,i.f,a.l],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"],encapsulation:2,data:{animation:[tt.transformPanel,tt.fadeInCalendar]},changeDetection:0}),e}(Object(p.x)(rt)),at=function(){function t(t,e,n,i,r,o,a,c){if(this._dialog=t,this._overlay=e,this._ngZone=n,this._viewContainerRef=i,this._dateAdapter=o,this._dir=a,this._document=c,this.startView="month",this._touchUi=!1,this.yearSelected=new s.o,this.monthSelected=new s.o,this.openedStream=new s.o,this.closedStream=new s.o,this._opened=!1,this.id="mat-datepicker-"+et++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=d.a.EMPTY,this._disabledChange=new h.a,this._selectedChanged=new h.a,!this._dateAdapter)throw W("DateAdapter");this._scrollStrategy=r}return Object.defineProperty(t.prototype,"startAt",{get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)},set:function(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this._color||(this._datepickerInput?this._datepickerInput._getThemePalette():void 0)},set:function(t){this._color=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touchUi",{get:function(){return this._touchUi},set:function(t){this._touchUi=Object(w.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(t){var e=Object(w.c)(t);e!==this._disabled&&(this._disabled=e,this._disabledChange.next(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opened",{get:function(){return this._opened},set:function(t){t?this.open():this.close()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_selected",{get:function(){return this._validSelected},set:function(t){this._validSelected=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_minDate",{get:function(){return this._datepickerInput&&this._datepickerInput.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_maxDate",{get:function(){return this._datepickerInput&&this._datepickerInput.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_dateFilter",{get:function(){return this._datepickerInput&&this._datepickerInput._dateFilter},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._destroyPopup(),this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete()},t.prototype.select=function(t){var e=this._selected;this._selected=t,this._dateAdapter.sameDate(e,this._selected)||this._selectedChanged.next(t)},t.prototype._selectYear=function(t){this.yearSelected.emit(t)},t.prototype._selectMonth=function(t){this.monthSelected.emit(t)},t.prototype._registerInput=function(t){var e=this;if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");this._datepickerInput=t,this._inputSubscription=this._datepickerInput._valueChange.subscribe((function(t){return e._selected=t}))},t.prototype.open=function(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}},t.prototype.close=function(){var t=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var e=this._popupComponentRef.instance;e._startExitAnimation(),e._animationDone.pipe(Object(g.a)(1)).subscribe((function(){return t._destroyPopup()}))}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);var n=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(n)):n()}},t.prototype._openAsDialog=function(){var t=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(ot,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe((function(){return t.close()})),this._dialogRef.componentInstance.datepicker=this,this._dialogRef.componentInstance.color=this.color},t.prototype._openAsPopup=function(){var t=this,e=new o.d(ot,this._viewContainerRef);this._destroyPopup(),this._createPopup();var n=this._popupComponentRef=this._popupRef.attach(e);n.instance.datepicker=this,n.instance.color=this.color,this._ngZone.onStable.asObservable().pipe(Object(g.a)(1)).subscribe((function(){t._popupRef.updatePosition()}))},t.prototype._createPopup=function(){var t=this,e=new r.d({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(e),this._popupRef.overlayElement.setAttribute("role","dialog"),Object(f.a)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Object(v.a)((function(e){return e.keyCode===b.e||t._datepickerInput&&e.altKey&&e.keyCode===b.n})))).subscribe((function(e){e&&e.preventDefault(),t.close()}))},t.prototype._destroyPopup=function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)},t.prototype._createPopupPositionStrategy=function(){return this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.\u0275fac=function(e){return new(e||t)(s.Qb(u.c),s.Qb(r.c),s.Qb(s.A),s.Qb(s.P),s.Qb(nt),s.Qb(p.c,8),s.Qb(S.b,8),s.Qb(a.d,8))},t.\u0275cmp=s.Kb({type:t,selectors:[["mat-datepicker"]],inputs:{startView:"startView",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",panelClass:"panelClass",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["matDatepicker"],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t}(),st={provide:C.j,useExisting:Object(s.V)((function(){return lt})),multi:!0},ct={provide:C.i,useExisting:Object(s.V)((function(){return lt})),multi:!0},ut=function(){return function(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}(),lt=function(){function t(t,e,n,i){var r=this;if(this._elementRef=t,this._dateAdapter=e,this._dateFormats=n,this._formField=i,this.dateChange=new s.o,this.dateInput=new s.o,this._valueChange=new s.o,this._disabledChange=new s.o,this._onTouched=function(){},this._cvaOnChange=function(){},this._validatorOnChange=function(){},this._datepickerSubscription=d.a.EMPTY,this._localeSubscription=d.a.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._minValidator=function(t){var e=r._getValidDateOrNull(r._dateAdapter.deserialize(t.value));return!r.min||!e||r._dateAdapter.compareDate(r.min,e)<=0?null:{matDatepickerMin:{min:r.min,actual:e}}},this._maxValidator=function(t){var e=r._getValidDateOrNull(r._dateAdapter.deserialize(t.value));return!r.max||!e||r._dateAdapter.compareDate(r.max,e)>=0?null:{matDatepickerMax:{max:r.max,actual:e}}},this._filterValidator=function(t){var e=r._getValidDateOrNull(r._dateAdapter.deserialize(t.value));return r._dateFilter&&e&&!r._dateFilter(e)?{matDatepickerFilter:!0}:null},this._validator=C.s.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw W("DateAdapter");if(!this._dateFormats)throw W("MAT_DATE_FORMATS");this._localeSubscription=e.localeChanges.subscribe((function(){r.value=r.value}))}return Object.defineProperty(t.prototype,"matDatepicker",{set:function(t){var e=this;t&&(this._datepicker=t,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe((function(t){e.value=t,e._cvaOnChange(t),e._onTouched(),e.dateInput.emit(new ut(e,e._elementRef.nativeElement)),e.dateChange.emit(new ut(e,e._elementRef.nativeElement))})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matDatepickerFilter",{set:function(t){this._dateFilter=t,this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=!t||this._dateAdapter.isValid(t),t=this._getValidDateOrNull(t);var e=this.value;this._value=t,this._formatValue(t),this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return!!this._disabled},set:function(t){var e=Object(w.c)(t),n=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this._disabledChange.emit(e)),e&&this._isInitialized&&n.blur&&n.blur()},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){this._isInitialized=!0},t.prototype.ngOnDestroy=function(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()},t.prototype.registerOnValidatorChange=function(t){this._validatorOnChange=t},t.prototype.validate=function(t){return this._validator?this._validator(t):null},t.prototype.getPopupConnectionElementRef=function(){return this.getConnectedOverlayOrigin()},t.prototype.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef},t.prototype.writeValue=function(t){this.value=t},t.prototype.registerOnChange=function(t){this._cvaOnChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype._onKeydown=function(t){this._datepicker&&t.altKey&&t.keyCode===b.b&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),t.preventDefault())},t.prototype._onInput=function(t){var e=this._lastValueValid,n=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=!n||this._dateAdapter.isValid(n),n=this._getValidDateOrNull(n),this._dateAdapter.sameDate(n,this._value)?e!==this._lastValueValid&&this._validatorOnChange():(this._value=n,this._cvaOnChange(n),this._valueChange.emit(n),this.dateInput.emit(new ut(this,this._elementRef.nativeElement)))},t.prototype._onChange=function(){this.dateChange.emit(new ut(this,this._elementRef.nativeElement))},t.prototype._getThemePalette=function(){return this._formField?this._formField.color:void 0},t.prototype._onBlur=function(){this.value&&this._formatValue(this.value),this._onTouched()},t.prototype._formatValue=function(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.\u0275fac=function(e){return new(e||t)(s.Qb(s.l),s.Qb(p.c,8),s.Qb(p.e,8),s.Qb(x.a,8))},t.\u0275dir=s.Lb({type:t,selectors:[["input","matDatepicker",""]],hostVars:5,hostBindings:function(t,e){1&t&&s.ec("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("blur",(function(){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)})),2&t&&(s.Zb("disabled",e.disabled),s.Eb("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null))},inputs:{matDatepicker:"matDatepicker",matDatepickerFilter:"matDatepickerFilter",value:"value",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["matDatepickerInput"],features:[s.Cb([st,ct,{provide:E.a,useExisting:t}])]}),t}(),pt=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Lb({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t}(),ht=function(){function t(t,e,n){this._intl=t,this._changeDetectorRef=e,this._stateChanges=d.a.EMPTY;var i=Number(n);this.tabIndex=i||0===i?i:null}return Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled},set:function(t){this._disabled=Object(w.c)(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){t.datepicker&&this._watchStateChanges()},t.prototype.ngOnDestroy=function(){this._stateChanges.unsubscribe()},t.prototype.ngAfterContentInit=function(){this._watchStateChanges()},t.prototype._open=function(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())},t.prototype._watchStateChanges=function(){var t=this,e=this.datepicker?this.datepicker._disabledChange:Object(m.a)(),n=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._disabledChange:Object(m.a)(),i=this.datepicker?Object(f.a)(this.datepicker.openedStream,this.datepicker.closedStream):Object(m.a)();this._stateChanges.unsubscribe(),this._stateChanges=Object(f.a)(this._intl.changes,e,n,i).subscribe((function(){return t._changeDetectorRef.markForCheck()}))},t.\u0275fac=function(e){return new(e||t)(s.Qb(z),s.Qb(s.h),s.bc("tabindex"))},t.\u0275cmp=s.Kb({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,n){var i;1&t&&s.Jb(n,pt,!0),2&t&&s.vc(i=s.fc())&&(e._customIcon=i.first)},viewQuery:function(t,e){var n;1&t&&s.Mc(M,!0),2&t&&s.vc(n=s.fc())&&(e._button=n.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:7,hostBindings:function(t,e){1&t&&s.ec("focus",(function(){return e._button.focus()})),2&t&&(s.Eb("tabindex",e.disabled?null:-1),s.Hb("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[s.Bb],ngContentSelectors:H,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(s.oc(B),s.Wb(0,"button",0,1),s.ec("click",(function(t){return e._open(t)})),s.Fc(2,V,2,0,"svg",2),s.nc(3),s.Vb()),2&t&&(s.pc("disabled",e.disabled)("disableRipple",e.disableRipple),s.Eb("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),s.Db(2),s.pc("ngIf",!e._customIcon))},directives:[c.a,a.n],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}\n"],encapsulation:2,changeDetection:0}),t}(),dt=function(){function t(){}return t.\u0275mod=s.Ob({type:t}),t.\u0275inj=s.Nb({factory:function(e){return new(e||t)},providers:[z,it],imports:[[a.c,c.b,u.e,r.f,i.a,o.h],l.b]}),t}()},QAZZ:function(t,e,n){var i=n("Rb7d");function r(t,e){var n=t.a/255,i=e+'="'+t.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function o(t,e,n){var i=t+e;return void 0!==n&&(i+=" "+n),i}e.render=function(t,e,n){var a=i.getOptions(e),s=t.modules.size,c=t.modules.data,u=s+2*a.margin,l=a.color.light.a?"':"",p="0&&u>0&&t[c-1]||(i+=a?o("M",u+n,.5+l+n):o("m",r,0),r=0,a=!1),u+1',h=''+l+p+"\n";return"function"==typeof n&&n(null,h),h}},QUaw:function(t,e,n){var i=n("Rb7d");e.render=function(t,e,n){var r=n,o=e;void 0!==r||e&&e.getContext||(r=e,e=void 0),e||(o=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),r=i.getOptions(r);var a=i.getImageWidth(t.modules.size,r),s=o.getContext("2d"),c=s.createImageData(a,a);return i.qrToImageData(c.data,t,r),function(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}(s,o,a),s.putImageData(c,0,0),o},e.renderToDataURL=function(t,n,i){var r=i;return void 0!==r||n&&n.getContext||(r=n,n=void 0),r||(r={}),e.render(t,n,r).toDataURL(r.type||"image/png",(r.rendererOpts||{}).quality)}},Qbxm:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return p}));var i=n("349r"),r=n("CcnG"),o=n("6blF"),a=n("K9Ia"),s=n("Gi3i"),c=function(){function t(){}return t.prototype.create=function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)},t.\u0275prov=Object(r.Mb)({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),u=function(){function t(t){this._mutationObserverFactory=t,this._observedElements=new Map}return t.prototype.ngOnDestroy=function(){var t=this;this._observedElements.forEach((function(e,n){return t._cleanupObserver(n)}))},t.prototype.observe=function(t){var e=this,n=Object(i.e)(t);return new o.a((function(t){var i=e._observeElement(n).subscribe(t);return function(){i.unsubscribe(),e._unobserveElement(n)}}))},t.prototype._observeElement=function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new a.a,n=this._mutationObserverFactory.create((function(t){return e.next(t)}));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream},t.prototype._unobserveElement=function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))},t.prototype._cleanupObserver=function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),n=e.observer,i=e.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(t)}},t.\u0275prov=Object(r.Mb)({factory:function(){return new t(Object(r.ac)(c))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(r.ac(c))},t}(),l=function(){function t(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new r.o,this._disabled=!1,this._currentSubscription=null}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Object(i.c)(t),this._disabled?this._unsubscribe():this._subscribe()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"debounce",{get:function(){return this._debounce},set:function(t){this._debounce=Object(i.f)(t),this._subscribe()},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()},t.prototype.ngOnDestroy=function(){this._unsubscribe()},t.prototype._subscribe=function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){t._currentSubscription=(t.debounce?e.pipe(Object(s.a)(t.debounce)):e).subscribe(t.event)}))},t.prototype._unsubscribe=function(){this._currentSubscription&&this._currentSubscription.unsubscribe()},t.\u0275fac=function(e){return new(e||t)(r.Qb(u),r.Qb(r.l),r.Qb(r.A))},t.\u0275dir=r.Lb({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t}(),p=function(){function t(){}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[c]}),t}()},"Qi+P":function(t,e,n){!function(e){"use strict";var n={bytesToString:function(t){return t.map((function(t){return String.fromCharCode(t)})).join("")},stringToBytes:function(t){return t.split("").map((function(t){return t.charCodeAt(0)}))}};n.UTF8={bytesToString:function(t){return decodeURIComponent(escape(n.bytesToString(t)))},stringToBytes:function(t){return n.stringToBytes(unescape(encodeURIComponent(t)))}},t.exports?t.exports=n:e.convertString=n}(this)},Rb7d:function(t,e){function n(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");var e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");var n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});var e=t.width&&t.width>=21?t.width:void 0;return{width:e,scale:e?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,n){var i=e.getScale(t,n);return Math.floor((t+2*n.margin)*i)},e.qrToImageData=function(t,n,i){for(var r=n.modules.size,o=n.modules.data,a=e.getScale(r,i),s=Math.floor((r+2*i.margin)*a),c=i.margin*a,u=[i.color.light,i.color.dark],l=0;l=c&&p>=c&&l1)this.connection=null;else{var n=this.connection,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},e}(a.a),p=function(t){function e(e,n){var i=t.call(this)||this;return i.source=e,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return i.c(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t},e.prototype.refCount=function(){return c()(this)},e}(o.a),h=function(){var t=p.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),d=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return i.c(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(r.b);function f(){return new r.a}function m(){return function(t){return c()((e=f,function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,h);return i.source=t,i.subjectFactory=n,i})(t));var e}}},S5bw:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("mrSG"),r=n("K9Ia"),o=n("zo3G"),a=n("pugT"),s=n("mZXl"),c=n("8g8A"),u=n("uMaO"),l=function(t){function e(e,n,i){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this)||this;return r.scheduler=i,r._events=[],r._infiniteTimeWindow=!1,r._bufferSize=e<1?1:e,r._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(r._infiniteTimeWindow=!0,r.next=r.nextInfiniteTimeWindow):r.next=r.nextTimeWindow,r}return i.c(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new p(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new c.a;if(this.isStopped||this.hasError?e=a.a.EMPTY:(this.observers.push(t),e=new u.a(this,t)),r&&t.add(t=new s.a(t,r)),n)for(var l=0;le&&(o=Math.max(o,r-e)),o>0&&i.splice(0,o),i},e}(r.a),p=function(){return function(t,e){this.time=t,this.value=e}}()},ScIB:function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return p})),n.d(e,"h",(function(){return b})),n.d(e,"i",(function(){return c})),n.d(e,"j",(function(){return s})),n.d(e,"k",(function(){return d})),n.d(e,"l",(function(){return a})),n.d(e,"m",(function(){return i})),n.d(e,"n",(function(){return h})),n.d(e,"o",(function(){return y})),n.d(e,"p",(function(){return m})),n.d(e,"q",(function(){return v}));var i=9,r=13,o=27,a=32,s=33,c=34,u=35,l=36,p=37,h=38,d=39,f=40,m=48,b=57,g=65,y=90;function v(t){for(var e=[],n=1;n-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},e.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},e.prototype._isBadInput=function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput},Object.defineProperty(e.prototype,"empty",{get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty},enumerable:!0,configurable:!0}),e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focused||this.focus()},e.\u0275fac=function(t){return new(t||e)(o.Qb(o.l),o.Qb(r.a),o.Qb(v.k,10),o.Qb(v.n,8),o.Qb(v.g,8),o.Qb(g.d),o.Qb(w,10),o.Qb(f),o.Qb(o.A))},e.\u0275dir=o.Lb({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&o.ec("focus",(function(){return e._focusChanged(!0)}))("blur",(function(){return e._focusChanged(!1)}))("input",(function(){return e._onInput()})),2&t&&(o.Zb("disabled",e.disabled)("required",e.required),o.Eb("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),o.Hb("mat-input-server",e._isServer))},inputs:{disabled:"disabled",id:"id",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[o.Cb([{provide:y.d,useExisting:e}]),o.Ab,o.Bb]}),e}(Object(g.A)(x)),S=function(){function t(){}return t.\u0275mod=o.Ob({type:t}),t.\u0275inj=o.Nb({factory:function(e){return new(e||t)},providers:[g.d],imports:[[b,y.e],b,y.e]}),t}()},UVSV:function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return v}));var i=n("CcnG"),r=n("Ip0R"),o=n("eO+G"),a=n("mrSG"),s=n("349r"),c=n("wFw1"),u=n("pugT"),l=n("bne5"),p=n("VnD/"),h=["primaryValueBar"],d=function(){return function(t){this._elementRef=t}}(),f=Object(o.x)(d,"primary"),m=new i.r("mat-progress-bar-location",{providedIn:"root",factory:function(){var t=Object(i.W)(r.d),e=t?t.location:null;return{getPathname:function(){return e?e.pathname+e.search:""}}}}),b=0,g=function(t){function e(e,n,r,o){var a=t.call(this,e)||this;a._elementRef=e,a._ngZone=n,a._animationMode=r,a._isNoopAnimation=!1,a._value=0,a._bufferValue=0,a.animationEnd=new i.o,a._animationEndSubscription=u.a.EMPTY,a.mode="determinate",a.progressbarId="mat-progress-bar-"+b++;var s=o?o.getPathname().split("#")[0]:"";return a._rectangleFillValue="url('"+s+"#"+a.progressbarId+"')",a._isNoopAnimation="NoopAnimations"===r,a}return Object(a.c)(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){this._value=y(Object(s.f)(t)||0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferValue",{get:function(){return this._bufferValue},set:function(t){this._bufferValue=y(t||0)},enumerable:!0,configurable:!0}),e.prototype._primaryTransform=function(){return{transform:"scaleX("+this.value/100+")"}},e.prototype._bufferTransform=function(){return"buffer"===this.mode?{transform:"scaleX("+this.bufferValue/100+")"}:null},e.prototype.ngAfterViewInit=function(){var t=this;this._ngZone.runOutsideAngular((function(){var e=t._primaryValueBar.nativeElement;t._animationEndSubscription=Object(l.a)(e,"transitionend").pipe(Object(p.a)((function(t){return t.target===e}))).subscribe((function(){"determinate"!==t.mode&&"buffer"!==t.mode||t._ngZone.run((function(){return t.animationEnd.next({value:t.value})}))}))}))},e.prototype.ngOnDestroy=function(){this._animationEndSubscription.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(i.Qb(i.l),i.Qb(i.A),i.Qb(c.a,8),i.Qb(m,8))},e.\u0275cmp=i.Kb({type:e,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var n;1&t&&i.Mc(h,!0),2&t&&i.vc(n=i.fc())&&(e._primaryValueBar=n.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(i.Eb("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),i.Hb("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[i.Ab],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(i.hc(),i.Wb(0,"svg",0),i.Wb(1,"defs"),i.Wb(2,"pattern",1),i.Rb(3,"circle",2),i.Vb(),i.Vb(),i.Rb(4,"rect",3),i.Vb(),i.gc(),i.Rb(5,"div",4),i.Rb(6,"div",5,6),i.Rb(8,"div",7)),2&t&&(i.Db(2),i.pc("id",e.progressbarId),i.Db(2),i.Eb("fill",e._rectangleFillValue),i.Db(1),i.pc("ngStyle",e._bufferTransform()),i.Db(1),i.pc("ngStyle",e._primaryTransform()))},directives:[r.o],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),e}(f);function y(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=100),Math.max(e,Math.min(n,t))}var v=function(){function t(){}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},imports:[[r.c,o.i],o.i]}),t}()},V35J:function(t,e,n){var i=n("Wogr");function r(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new i(t*t),this.data.fill(0),this.reservedBit=new i(t*t),this.reservedBit.fill(0)}r.prototype.set=function(t,e,n,i){var r=t*this.size+e;this.data[r]=n,i&&(this.reservedBit[r]=!0)},r.prototype.get=function(t,e){return this.data[t*this.size+e]},r.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},r.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=r},V8Fa:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("4lrr"),r=n("cpEJ"),o=n("CcnG"),a=n("21Lb"),s=n("qLAh"),c=n("M4kG"),u=n("Ip0R"),l=n("FZ+F"),p=n("O4ig");function h(t,e){if(1&t&&(o.Wb(0,"p",14),o.Hc(1),o.Vb()),2&t){var n=o.ic();o.Db(1),o.Ic(n.data.titleMessage)}}var d=function(){function t(t,e,n){this.dialogRef=t,this.data=e,this.logger=n,this.errorMessage=""}return t.prototype.ngOnInit=function(){this.errorMessage="object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message.message,this.data.message||this.data.titleMessage||this.data.message||(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.data.message)},t.prototype.onClose=function(){this.dialogRef.close(!1)},t.\u0275fac=function(e){return new(e||t)(o.Qb(i.f),o.Qb(i.a),o.Qb(r.b))},t.\u0275cmp=o.Kb({type:t,selectors:[["rtl-error-message"]],decls:29,vars:6,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px","mb-0","error-alert-block"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],[1,"word-break"],["fxLayout","row","fxLayoutAlign","end center"],["tabindex","1","autoFocus","","mat-flat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(t,e){1&t&&(o.Wb(0,"div",0),o.Wb(1,"div",1),o.Wb(2,"mat-card-header",2),o.Wb(3,"div",3),o.Wb(4,"span",4),o.Hc(5),o.Vb(),o.Vb(),o.Wb(6,"button",5),o.ec("click",(function(){return e.onClose()})),o.Hc(7,"X"),o.Vb(),o.Vb(),o.Wb(8,"mat-card-content",6),o.Wb(9,"div",7),o.Fc(10,h,2,1,"p",8),o.Wb(11,"h4",9),o.Hc(12,"Error Code"),o.Vb(),o.Wb(13,"span"),o.Hc(14),o.Vb(),o.Rb(15,"mat-divider",10),o.Wb(16,"h4",9),o.Hc(17,"Error Message"),o.Vb(),o.Wb(18,"span",11),o.Hc(19),o.Vb(),o.Rb(20,"mat-divider",10),o.Wb(21,"h4",9),o.Hc(22,"API URL"),o.Vb(),o.Wb(23,"span",11),o.Hc(24),o.Vb(),o.Rb(25,"mat-divider",10),o.Wb(26,"div",12),o.Wb(27,"button",13),o.Hc(28,"OK"),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb(),o.Vb()),2&t&&(o.Db(5),o.Ic(e.data.alertTitle||"ERROR"),o.Db(5),o.pc("ngIf",e.data.titleMessage),o.Db(4),o.Ic(e.data.message.code),o.Db(5),o.Ic(e.errorMessage),o.Db(5),o.Ic(e.data.message.URL),o.Db(3),o.pc("mat-dialog-close",!1))},directives:[a.c,a.a,s.c,a.b,c.a,s.b,u.n,l.a,p.a,i.d],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),t}()},VGuC:function(t,e,n){"use strict";function i(t){return t instanceof Date&&!isNaN(+t)}n.d(e,"a",(function(){return i}))},VNr4:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("6blF"),r=n("isby"),o=n("67Y/"),a=n("McSo"),s=n("0/uQ");function c(){for(var t=[],e=0;e left, * => right, left => center, right => center",Object(g.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Object(g.m)("void => left-origin-center",[Object(g.l)({transform:"translate3d(-100%, 0, 0)"}),Object(g.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Object(g.m)("void => right-origin-center",[Object(g.l)({transform:"translate3d(100%, 0, 0)"}),Object(g.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Z=function(t){function e(e,n,i,r){var o=t.call(this,e,n,r)||this;return o._host=i,o._centeringSub=h.a.EMPTY,o._leavingSub=h.a.EMPTY,o}return Object(l.c)(e,t),e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._centeringSub=this._host._beforeCentering.pipe(Object(y.a)(this._host._isCenterPosition(this._host._position))).subscribe((function(t){t&&!e.hasAttached()&&e.attach(e._host._content)})),this._leavingSub=this._host._afterLeavingCenter.subscribe((function(){e.detach()}))},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(s.Qb(s.j),s.Qb(s.P),s.Qb(Object(s.V)((function(){return $}))),s.Qb(a.d))},e.\u0275dir=s.Lb({type:e,selectors:[["","matTabBodyHost",""]],features:[s.Ab]}),e}(o.c),$=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}return Object(l.c)(e,t),e.\u0275fac=function(t){return new(t||e)(s.Qb(s.l),s.Qb(x.b,8),s.Qb(s.h))},e.\u0275cmp=s.Kb({type:e,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&s.Mc(o.f,!0),2&t&&s.vc(n=s.fc())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[s.Ab],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(s.Wb(0,"div",0,1),s.ec("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),s.Fc(2,k,0,0,"ng-template",2),s.Vb()),2&t&&s.pc("@translateTab",s.uc(3,j,e._position,s.tc(1,D,e.animationDuration)))},directives:[Z],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[X.translateTab]}}),e}(function(){function t(t,e,n){var i=this;this._elementRef=t,this._dir=e,this._dirChangeSubscription=h.a.EMPTY,this._translateTabComplete=new p.a,this._onCentering=new s.o,this._beforeCentering=new s.o,this._afterLeavingCenter=new s.o,this._onCentered=new s.o(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe((function(t){i._computePositionAnimationState(t),n.markForCheck()}))),this._translateTabComplete.pipe(Object(v.a)((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){i._isCenterPosition(t.toState)&&i._isCenterPosition(i._position)&&i._onCentered.emit(),i._isCenterPosition(t.fromState)&&!i._isCenterPosition(i._position)&&i._afterLeavingCenter.emit()}))}return Object.defineProperty(t.prototype,"position",{set:function(t){this._positionIndex=t,this._computePositionAnimationState()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))},t.prototype.ngOnDestroy=function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()},t.prototype._onTranslateTabStarted=function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)},t.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},t.prototype._isCenterPosition=function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t},t.prototype._computePositionAnimationState=function(t){void 0===t&&(t=this._getLayoutDirection()),this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"},t.prototype._computePositionFromOrigin=function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"},t.\u0275fac=function(e){return new(e||t)(s.Qb(s.l),s.Qb(x.b,8),s.Qb(s.h))},t.\u0275dir=s.Lb({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}()),J=new s.r("MAT_TABS_CONFIG"),tt=0,et=function(){return function(){}}(),nt=function(){return function(t){this._elementRef=t}}(),it=function(t){function e(e,n,i,r){return t.call(this,e,n,i,r)||this}return Object(l.c)(e,t),e.\u0275fac=function(t){return new(t||e)(s.Qb(s.l),s.Qb(s.h),s.Qb(J,8),s.Qb(u.a,8))},e.\u0275cmp=s.Kb({type:e,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){var i;1&t&&s.Jb(n,K,!0),2&t&&s.vc(i=s.fc())&&(e._allTabs=i)},viewQuery:function(t,e){var n;1&t&&(s.Mc(I,!0),s.Mc(T,!0)),2&t&&(s.vc(n=s.fc())&&(e._tabBodyWrapper=n.first),s.vc(n=s.fc())&&(e._tabHeader=n.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&s.Hb("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s.Cb([{provide:q,useExisting:e}]),s.Ab],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(s.Wb(0,"mat-tab-header",0,1),s.ec("indexFocused",(function(t){return e._focusChanged(t)}))("selectFocusedIndex",(function(t){return e.selectedIndex=t})),s.Fc(2,F,4,14,"div",2),s.Vb(),s.Wb(3,"div",3,4),s.Fc(5,N,1,8,"mat-tab-body",5),s.Vb()),2&t&&(s.pc("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),s.Db(2),s.pc("ngForOf",e._tabs),s.Db(1),s.Hb("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.Db(2),s.pc("ngForOf",e._tabs))},directives:function(){return[st,a.m,ot,c.s,i.e,a.n,o.c,$]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),e}(function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o._changeDetectorRef=n,o._animationMode=r,o._tabs=new s.E,o._indexToSelect=0,o._tabBodyWrapperHeight=0,o._tabsSubscription=h.a.EMPTY,o._tabLabelSubscription=h.a.EMPTY,o._dynamicHeight=!1,o._selectedIndex=null,o.headerPosition="above",o.selectedIndexChange=new s.o,o.focusChange=new s.o,o.animationDone=new s.o,o.selectedTabChange=new s.o(!0),o._groupId=tt++,o.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",o.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,o}return Object(l.c)(e,t),Object.defineProperty(e.prototype,"dynamicHeight",{get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=Object(w.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=Object(w.f)(t,null)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this._animationDuration},set:function(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentChecked=function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var n=null==this._selectedIndex;n||this.selectedTabChange.emit(this._createChangeEvent(e)),Promise.resolve().then((function(){t._tabs.forEach((function(t,n){return t.isActive=n===e})),n||t.selectedIndexChange.emit(e)}))}this._tabs.forEach((function(n,i){n.position=i-e,null==t._selectedIndex||0!=n.position||n.origin||(n.origin=e-t._selectedIndex)})),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())},e.prototype.ngAfterContentInit=function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe((function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),n=0;n.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),e}(function(t){function e(e,n,i,r,o,a,s){var c=t.call(this,e,n,i,r,o,a,s)||this;return c._disableRipple=!1,c}return Object(l.c)(e,t),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=Object(w.c)(t)},enumerable:!0,configurable:!0}),e.prototype._itemSelected=function(t){t.preventDefault()},e.\u0275fac=function(t){return new(t||e)(s.Qb(s.l),s.Qb(s.h),s.Qb(E.e),s.Qb(x.b,8),s.Qb(s.A),s.Qb(O.a),s.Qb(u.a,8))},e.\u0275dir=s.Lb({type:e,inputs:{disableRipple:"disableRipple"},features:[s.Ab]}),e}(function(){function t(t,e,n,i,r,o,a){var c=this;this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=i,this._ngZone=r,this._platform=o,this._animationMode=a,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new p.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new p.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.o,this.indexFocused=new s.o,r.runOutsideAngular((function(){Object(f.a)(t.nativeElement,"mouseleave").pipe(Object(_.a)(c._destroyed)).subscribe((function(){c._stopInterval()}))}))}return Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){t=Object(w.f)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;Object(f.a)(this._previousPaginator.nativeElement,"touchstart",at).pipe(Object(_.a)(this._destroyed)).subscribe((function(){t._handlePaginatorPress("before")})),Object(f.a)(this._nextPaginator.nativeElement,"touchstart",at).pipe(Object(_.a)(this._destroyed)).subscribe((function(){t._handlePaginatorPress("after")}))},t.prototype.ngAfterContentInit=function(){var t=this,e=this._dir?this._dir.change:Object(m.a)(null),n=this._viewportRuler.change(150),r=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new i.g(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(r):r(),Object(d.a)(e,n,this._items.changes).pipe(Object(_.a)(this._destroyed)).subscribe((function(){Promise.resolve().then(r),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())})),this._keyManager.change.pipe(Object(_.a)(this._destroyed)).subscribe((function(e){t.indexFocused.emit(e),t._setTabFocus(e)}))},t.prototype.ngAfterContentChecked=function(){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())},t.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()},t.prototype._handleKeydown=function(t){if(!Object(C.q)(t))switch(t.keyCode){case C.f:this._keyManager.setFirstItemActive(),t.preventDefault();break;case C.c:this._keyManager.setLastItemActive(),t.preventDefault();break;case C.d:case C.l:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}},t.prototype._onContentChanges=function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run((function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()})))},t.prototype.updatePagination=function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()},Object.defineProperty(t.prototype,"focusIndex",{get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)},enumerable:!0,configurable:!0}),t.prototype._isValidIndex=function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled},t.prototype._setTabFocus=function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}},t.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},t.prototype._updateTabScrollPosition=function(){if(!this.disablePagination){var t=this.scrollDistance,e=this._platform,n="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX("+Math.round(n)+"px)",e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}},Object.defineProperty(t.prototype,"scrollDistance",{get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)},enumerable:!0,configurable:!0}),t.prototype._scrollHeader=function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)},t.prototype._handlePaginatorClick=function(t){this._stopInterval(),this._scrollHeader(t)},t.prototype._scrollToLabel=function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,o=e.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=a)+s:n=(i=this._tabList.nativeElement.offsetWidth-a)-s;var c=this.scrollDistance,u=this.scrollDistance+r;nu&&(this.scrollDistance+=i-u+60)}}},t.prototype._checkPaginationEnabled=function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}},t.prototype._checkScrollingControls=function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())},t.prototype._getMaxScrollDistance=function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0},t.prototype._alignInkBarToSelectedTab=function(){var t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()},t.prototype._stopInterval=function(){this._stopScrolling.next()},t.prototype._handlePaginatorPress=function(t,e){var n=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),Object(b.a)(650,100).pipe(Object(_.a)(Object(d.a)(this._stopScrolling,this._destroyed))).subscribe((function(){var e=n._scrollHeader(t),i=e.distance;(0===i||i>=e.maxScrollDistance)&&n._stopInterval()})))},t.prototype._scrollTo=function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}},t.\u0275fac=function(e){return new(e||t)(s.Qb(s.l),s.Qb(s.h),s.Qb(E.e),s.Qb(x.b,8),s.Qb(s.A),s.Qb(O.a),s.Qb(u.a,8))},t.\u0275dir=s.Lb({type:t,inputs:{disablePagination:"disablePagination"}}),t}())),ct=function(){function t(){}return t.\u0275mod=s.Ob({type:t}),t.\u0275inj=s.Nb({factory:function(e){return new(e||t)},imports:[[a.c,c.i,o.h,c.t,r.c,i.a],c.i]}),t}()},"VnD/":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("mrSG"),r=n("FFOo");function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.predicate=n,r.thisArg=i,r.count=0,r}return i.c(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(r.a)},W7oF:function(t,e,n){"use strict";n.d(e,"a",(function(){return E}));var i=n("mrSG"),r=n("jYNz"),o=n("K9Ia"),a=n("F/XL"),s=n("/PH2"),c=n("psW0"),u=n("ny24"),l=n("67Y/"),p=n("9Z1F"),h=n("AytR"),d=n("V8Fa"),f=n("4r19"),m=n("/uX3"),b=n("LvnZ"),g=n("CcnG"),y=n("t/Na"),v=n("yGQT"),_=n("mZtN"),w=n("cpEJ"),O=n("7o2P"),C=n("ZYCi"),x=n("Ip0R"),E=function(){function t(t,e,n,i,d,g,y,v){var _=this;this.actions$=t,this.httpClient=e,this.store=n,this.sessionService=i,this.logger=d,this.commonService=g,this.router=y,this.location=v,this.CHILD_API_URL=h.a+"/cl",this.unSubs=[new o.a,new o.a],this.infoFetchCL=this.actions$.pipe(Object(r.d)(b.u),Object(s.a)(this.store.select("root")),Object(c.a)((function(t){var e=t[0];return _.store.dispatch(new b.g("FetchInfo")),_.httpClient.get(_.CHILD_API_URL+h.b.GETINFO_API).pipe(Object(u.a)(_.actions$.pipe(Object(r.d)(m.O))),Object(l.a)((function(t){return _.logger.info(t),_.initializeRemainingData(t,e.payload.loadPage),{type:b.mb,payload:t||{}}})),Object(p.a)((function(t){return _.router.navigate(["/error"],{state:{errorCode:t.error&&t.error.error&&t.error.error.message&&t.error.error.message.code?t.error.error.message.code:t.error&&t.error.error&&t.error.error.code?t.error.error.code:t.status?t.status:"",errorMessage:(t.error&&t.error.message?t.error.message+" ":"")+(t.error&&t.error.error&&t.error.error.error&&"string"==typeof t.error.error.error?t.error.error.error:t.error&&t.error.error&&t.error.error.errno&&"string"==typeof t.error.error.errno?t.error.error.errno:t.error&&t.error.error&&"string"==typeof t.error.error?t.error.error:t.error&&"string"==typeof t.error?t.error:"Unknown Error")}}),_.handleErrorWithoutAlert("FetchInfo","Fetching Node Info Failed.",t),Object(a.a)({type:m.bb})})))}))),this.fetchFeesCL=this.actions$.pipe(Object(r.d)(b.s),Object(c.a)((function(t){return _.store.dispatch(new b.g("FetchFees")),_.httpClient.get(_.CHILD_API_URL+h.b.FEES_API)})),Object(l.a)((function(t){return _.logger.info(t),{type:b.jb,payload:t||{}}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchFees","Fetching Fees Failed.",t),Object(a.a)({type:m.bb})}))),this.fetchFeeRatesCL=this.actions$.pipe(Object(r.d)(b.t),Object(c.a)((function(t){return _.store.dispatch(new b.g("FetchFeeRates")),_.httpClient.get(_.CHILD_API_URL+h.b.NETWORK_API+"/feeRates/"+t.payload)})),Object(l.a)((function(t){return _.logger.info(t),{type:b.kb,payload:t||{}}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchFeeRates","Fetching Fee Rates Failed.",t),Object(a.a)({type:m.bb})}))),this.fetchBalanceCL=this.actions$.pipe(Object(r.d)(b.q),Object(c.a)((function(t){return _.store.dispatch(new b.g("FetchBalance")),_.httpClient.get(_.CHILD_API_URL+h.b.BALANCE_API)})),Object(l.a)((function(t){return _.logger.info(t),{type:b.db,payload:t||{}}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchBalance","Fetching Balances Failed.",t),Object(a.a)({type:m.bb})}))),this.fetchLocalRemoteBalanceCL=this.actions$.pipe(Object(r.d)(b.w),Object(c.a)((function(t){return _.store.dispatch(new b.g("FetchLocalRemoteBalance")),_.httpClient.get(_.CHILD_API_URL+h.b.CHANNELS_API+"/localremotebalance")})),Object(l.a)((function(t){return _.logger.info(t),{type:b.ob,payload:t||{}}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchLocalRemoteBalance","Fetching Balances Failed.",t),Object(a.a)({type:m.bb})}))),this.getNewAddressCL=this.actions$.pipe(Object(r.d)(b.L),Object(c.a)((function(t){return _.httpClient.get(_.CHILD_API_URL+h.b.ON_CHAIN_API+"?type="+t.payload.addressCode).pipe(Object(l.a)((function(t){return _.logger.info(t),_.store.dispatch(new m.i),{type:b.qb,payload:t&&t.address?t.address:{}}})),Object(p.a)((function(e){return _.handleErrorWithAlert("ERROR","Generate New Address Failed",_.CHILD_API_URL+h.b.ON_CHAIN_API+"?type="+t.payload.addressId,e),Object(a.a)({type:m.bb})})))}))),this.setNewAddressCL=this.actions$.pipe(Object(r.d)(b.qb),Object(l.a)((function(t){return _.logger.info(t.payload),t.payload}))),this.peersFetchCL=this.actions$.pipe(Object(r.d)(b.y),Object(c.a)((function(t){return _.store.dispatch(new b.g("FetchPeers")),_.httpClient.get(_.CHILD_API_URL+h.b.PEERS_API).pipe(Object(l.a)((function(t){return _.logger.info(t),{type:b.sb,payload:t||[]}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchPeers","Fetching Peers Failed.",t),Object(a.a)({type:m.bb})})))}))),this.saveNewPeerCL=this.actions$.pipe(Object(r.d)(b.ab),Object(s.a)(this.store.select("cl")),Object(c.a)((function(t){var e=t[0];return _.store.dispatch(new b.g("SaveNewPeer")),_.httpClient.post(_.CHILD_API_URL+h.b.PEERS_API,{id:e.payload.id}).pipe(Object(l.a)((function(t){return _.logger.info(t),_.store.dispatch(new m.i),_.store.dispatch(new b.Fb(t&&t.length>0?t:[])),{type:b.R,payload:{peer:t.find((function(t){return 0===e.payload.id.indexOf(t.id)}))}}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("SaveNewPeer","Peer Connection Failed.",t),Object(a.a)({type:m.bb})})))}))),this.detachPeerCL=this.actions$.pipe(Object(r.d)(b.k),Object(c.a)((function(t){return _.httpClient.delete(_.CHILD_API_URL+h.b.PEERS_API+"/"+t.payload.id+"?force="+t.payload.force).pipe(Object(l.a)((function(e){return _.logger.info(e),_.store.dispatch(new m.i),_.store.dispatch(new m.E("Peer Disconnected Successfully!")),{type:b.V,payload:{id:t.payload.id}}})),Object(p.a)((function(e){return _.handleErrorWithAlert("ERROR","Unable to Detach Peer. Try again later.",_.CHILD_API_URL+h.b.PEERS_API+"/"+t.payload.id,e),Object(a.a)({type:m.bb})})))}))),this.channelsFetchCL=this.actions$.pipe(Object(r.d)(b.r),Object(c.a)((function(t){return _.store.dispatch(new b.g("FetchChannels")),_.httpClient.get(_.CHILD_API_URL+h.b.CHANNELS_API+"/listChannels").pipe(Object(l.a)((function(t){return _.logger.info(t),_.store.dispatch(new b.N),{type:b.eb,payload:t&&t.length>0?t:[]}}),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchChannels","Fetching Channels Failed.",t),Object(a.a)({type:m.bb})}))))}))),this.openNewChannelCL=this.actions$.pipe(Object(r.d)(b.Y),Object(c.a)((function(t){_.store.dispatch(new b.g("SaveNewChannel"));var e={id:t.payload.peerId,satoshis:t.payload.satoshis,feeRate:t.payload.feeRate,announce:t.payload.announce,minconf:t.payload.minconf?t.payload.minconf:null};return t.payload.utxos&&(e.utxos=t.payload.utxos),_.httpClient.post(_.CHILD_API_URL+h.b.CHANNELS_API,e).pipe(Object(l.a)((function(t){return _.logger.info(t),_.store.dispatch(new m.i),_.store.dispatch(new m.E("Channel Added Successfully!")),_.store.dispatch(new b.A),_.store.dispatch(new b.J),{type:b.r}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("SaveNewChannel","Opening Channel Failed.",t),Object(a.a)({type:m.bb})})))}))),this.updateChannelCL=this.actions$.pipe(Object(r.d)(b.Ib),Object(c.a)((function(t){return _.httpClient.post(_.CHILD_API_URL+h.b.CHANNELS_API+"/setChannelFee",{id:t.payload.channelId,base:t.payload.baseFeeMsat,ppm:t.payload.feeRate}).pipe(Object(l.a)((function(e){return _.logger.info(e),_.store.dispatch(new m.i),_.store.dispatch(new m.E("all"===t.payload.channelId?"All Channels Updated Successfully.":"Channel Updated Successfully!")),{type:b.r}})),Object(p.a)((function(t){return _.handleErrorWithAlert("ERROR","Update Channel Failed",_.CHILD_API_URL+h.b.CHANNELS_API,t),Object(a.a)({type:m.bb})})))}))),this.closeChannelCL=this.actions$.pipe(Object(r.d)(b.e),Object(c.a)((function(t){return _.httpClient.delete(_.CHILD_API_URL+h.b.CHANNELS_API+"/"+t.payload.channelId+(t.payload.force?"?force="+t.payload.force:"")).pipe(Object(l.a)((function(e){return _.logger.info(e),_.store.dispatch(new m.i),_.store.dispatch(new b.B),_.store.dispatch(new m.E("Channel Closed Successfully!")),{type:b.U,payload:{channelId:t.payload.channelId}}})),Object(p.a)((function(t){return _.handleErrorWithAlert("ERROR","Unable to Close Channel. Try again later.",_.CHILD_API_URL+h.b.CHANNELS_API,t),Object(a.a)({type:m.bb})})))}))),this.paymentsFetchCL=this.actions$.pipe(Object(r.d)(b.x),Object(c.a)((function(t){return _.store.dispatch(new b.g("FetchPayments")),_.httpClient.get(_.CHILD_API_URL+h.b.PAYMENTS_API)})),Object(l.a)((function(t){return _.logger.info(t),{type:b.rb,payload:t||[]}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchPayments","Fetching Payments Failed.",t),Object(a.a)({type:m.bb})}))),this.decodePaymentCL=this.actions$.pipe(Object(r.d)(b.i),Object(c.a)((function(t){return _.store.dispatch(new b.g("DecodePayment")),_.httpClient.get(_.CHILD_API_URL+h.b.PAYMENTS_API+"/"+t.payload.routeParam).pipe(Object(l.a)((function(t){return _.logger.info(t),_.store.dispatch(new m.i),{type:b.ib,payload:t||{}}})),Object(p.a)((function(e){return t.payload.fromDialog?_.handleErrorWithoutAlert("DecodePayment","Decode Payment Failed.",e):_.handleErrorWithAlert("ERROR","Decode Payment Failed",_.CHILD_API_URL+h.b.PAYMENTS_API+"/"+t.payload,e),Object(a.a)({type:m.bb})})))}))),this.setDecodedPaymentCL=this.actions$.pipe(Object(r.d)(b.ib),Object(l.a)((function(t){return _.logger.info(t.payload),t.payload}))),this.sendPaymentCL=this.actions$.pipe(Object(r.d)(b.bb),Object(s.a)(this.store.select("root")),Object(c.a)((function(t){var e=t[0];return _.store.dispatch(new b.g("SendPayment")),_.httpClient.post(e.payload.pubkey&&""!==e.payload.pubkey?_.CHILD_API_URL+h.b.PAYMENTS_API+"/keysend":_.CHILD_API_URL+h.b.PAYMENTS_API+"/invoice",e.payload).pipe(Object(l.a)((function(t){if(_.logger.info(t),_.store.dispatch(new m.i),t.error){_.logger.error("Error: "+t.payment_error);var n={status:t.payment_error.status,error:t.payment_error.error&&t.payment_error.error.error&&"object"==typeof t.payment_error.error.error?t.payment_error.error.error:{error:t.payment_error.error&&t.payment_error.error.error?t.payment_error.error.error:"Unknown Error"}};return e.payload.fromDialog?_.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):_.handleErrorWithAlert("ERROR","Send Payment Failed",_.CHILD_API_URL+h.b.PAYMENTS_API,n),Object(a.a)({type:m.bb})}return _.store.dispatch(new m.E("Payment Sent Successfully!")),_.store.dispatch(new b.B),_.store.dispatch(new b.A),_.store.dispatch(new b.H),_.store.dispatch(new b.Cb({})),{type:b.cb,payload:t}})),Object(p.a)((function(t){_.logger.error("Error: "+JSON.stringify(t));var n={status:t.status,error:t.error&&t.error.error&&"object"==typeof t.error.error?t.error.error:{error:t.error&&t.error.error?t.error.error:"Unknown Error"}};return e.payload.fromDialog?_.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):_.handleErrorWithAlert("ERROR","Send Payment Failed",_.CHILD_API_URL+h.b.PAYMENTS_API,n),Object(a.a)({type:m.bb})})))}))),this.queryRoutesFetchCL=this.actions$.pipe(Object(r.d)(b.M),Object(c.a)((function(t){return _.httpClient.get(_.CHILD_API_URL+h.b.NETWORK_API+"/getRoute/"+t.payload.destPubkey+"/"+t.payload.amount).pipe(Object(l.a)((function(t){return _.logger.info(t),{type:b.tb,payload:t}})),Object(p.a)((function(e){return _.store.dispatch(new b.Gb({routes:[]})),_.handleErrorWithAlert("ERROR","Get Query Routes Failed",_.CHILD_API_URL+h.b.NETWORK_API+"/getRoute/"+t.payload.destPubkey+"/"+t.payload.amount,e),Object(a.a)({type:m.bb})})))}))),this.setQueryRoutesCL=this.actions$.pipe(Object(r.d)(b.tb),Object(l.a)((function(t){return t.payload}))),this.peerLookupCL=this.actions$.pipe(Object(r.d)(b.S),Object(c.a)((function(t){return _.store.dispatch(new b.g("Lookup")),_.httpClient.get(_.CHILD_API_URL+h.b.NETWORK_API+"/listNode/"+t.payload).pipe(Object(l.a)((function(t){return _.logger.info(t),_.store.dispatch(new m.i),{type:b.pb,payload:t}})),Object(p.a)((function(e){return _.store.dispatch(new b.p({action:"Lookup",code:e.status,message:e.error.message})),_.handleErrorWithAlert("ERROR","Peer Lookup Failed",_.CHILD_API_URL+h.b.NETWORK_API+"/listNode/"+t.payload,e),Object(a.a)({type:m.bb})})))}))),this.channelLookupCL=this.actions$.pipe(Object(r.d)(b.c),Object(c.a)((function(t){return _.store.dispatch(new b.g("Lookup")),_.httpClient.get(_.CHILD_API_URL+h.b.NETWORK_API+"/listChannel/"+t.payload.shortChannelID).pipe(Object(l.a)((function(t){return _.logger.info(t),_.store.dispatch(new m.i),{type:b.pb,payload:t}})),Object(p.a)((function(e){return t.payload.showError?(_.store.dispatch(new b.p({action:"Lookup",code:e.status,message:e.error.message})),_.handleErrorWithAlert("ERROR","Channel Lookup Failed",_.CHILD_API_URL+h.b.NETWORK_API+"/listChannel/"+t.payload.shortChannelID,e)):_.store.dispatch(new m.i),_.store.dispatch(new b.Eb([])),Object(a.a)({type:m.bb})})))}))),this.invoiceLookupCL=this.actions$.pipe(Object(r.d)(b.Q),Object(c.a)((function(t){return _.store.dispatch(new b.g("Lookup")),_.httpClient.get(_.CHILD_API_URL+h.b.INVOICES_API+"/listInvoice?label="+t.payload).pipe(Object(l.a)((function(t){return _.logger.info(t),_.store.dispatch(new m.i),{type:b.pb,payload:t}})),Object(p.a)((function(e){return _.store.dispatch(new b.p({action:"Lookup",code:e.status,message:e.error.message})),_.handleErrorWithAlert("ERROR","Invoice Lookup Failed",_.CHILD_API_URL+h.b.NETWORK_API+"/listInvoice?label="+t.payload,e),Object(a.a)({type:m.bb})})))}))),this.setLookupCL=this.actions$.pipe(Object(r.d)(b.pb),Object(l.a)((function(t){return _.logger.info(t.payload),t.payload}))),this.fetchForwardingHistoryCL=this.actions$.pipe(Object(r.d)(b.K),Object(c.a)((function(t){return _.store.dispatch(new b.g("GetForwardingHistory")),_.httpClient.get(_.CHILD_API_URL+h.b.CHANNELS_API+"/listForwards").pipe(Object(l.a)((function(t){return _.logger.info(t),{type:b.lb,payload:t}})),Object(p.a)((function(t){return _.store.dispatch(new b.p({action:"GetForwardingHistory",code:t.status,message:t.error.error})),_.handleErrorWithAlert("ERROR","Get Forwarding History Failed",_.CHILD_API_URL+h.b.CHANNELS_API+"/listForwards",t),Object(a.a)({type:m.bb})})))}))),this.deleteExpiredInvoiceCL=this.actions$.pipe(Object(r.d)(b.j),Object(c.a)((function(t){return _.httpClient.delete(_.CHILD_API_URL+h.b.INVOICES_API+(t.payload?"?maxexpiry="+t.payload:"")).pipe(Object(l.a)((function(t){return _.logger.info(t),_.store.dispatch(new m.i),_.store.dispatch(new m.E("Invoices Deleted Successfully!")),{type:b.v,payload:{num_max_invoices:100,reversed:!0}}})),Object(p.a)((function(t){return _.handleErrorWithAlert("ERROR","Delete Invoice Failed",_.CHILD_API_URL+h.b.INVOICES_API,t),Object(a.a)({type:m.bb})})))}))),this.saveNewInvoiceCL=this.actions$.pipe(Object(r.d)(b.Z),Object(c.a)((function(t){return _.store.dispatch(new b.g("SaveNewInvoice")),_.httpClient.post(_.CHILD_API_URL+h.b.INVOICES_API,{label:t.payload.label,amount:t.payload.amount,description:t.payload.description,expiry:t.payload.expiry,private:t.payload.private}).pipe(Object(l.a)((function(e){return _.logger.info(e),_.store.dispatch(new m.i),e.msatoshi=t.payload.amount,e.label=t.payload.label,e.expires_at=Math.round((new Date).getTime()/1e3+t.payload.expiry),e.expires_at_str=_.commonService.convertTimestampToDate(+e.expires_at),e.description=t.payload.description,e.status="unpaid",_.store.dispatch(new m.C({data:{invoice:e,newlyAdded:!1,component:f.a}})),{type:b.v,payload:{num_max_invoices:100,reversed:!0}}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("SaveNewInvoice","Add Invoice Failed.",t),Object(a.a)({type:m.bb})})))}))),this.invoicesFetchCL=this.actions$.pipe(Object(r.d)(b.v),Object(c.a)((function(t){return _.store.dispatch(new b.g("FetchInvoices")),_.httpClient.get(_.CHILD_API_URL+h.b.INVOICES_API+"?num_max_invoices="+(t.payload.num_max_invoices?t.payload.num_max_invoices:100)+"&index_offset="+(t.payload.index_offset?t.payload.index_offset:0)+"&reversed="+(!!t.payload.reversed&&t.payload.reversed)).pipe(Object(l.a)((function(t){return _.logger.info(t),_.store.dispatch(new b.Hb(t.invoices?t.invoices.length:0)),{type:b.nb,payload:t}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchInvoices","Fetching Invoices Failed.",t),Object(a.a)({type:m.bb})})))}))),this.SetChannelTransactionCL=this.actions$.pipe(Object(r.d)(b.fb),Object(c.a)((function(t){return _.store.dispatch(new b.g("SetChannelTransaction")),_.httpClient.post(_.CHILD_API_URL+h.b.ON_CHAIN_API,t.payload).pipe(Object(l.a)((function(t){return _.logger.info(t),_.store.dispatch(new m.i),_.store.dispatch(new b.A),_.store.dispatch(new b.J),{type:b.gb,payload:t}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("SetChannelTransaction","Sending Fund Failed.",t),Object(a.a)({type:m.bb})})))}))),this.transactionsFetch=this.actions$.pipe(Object(r.d)(b.z),Object(c.a)((function(t){return _.store.dispatch(new b.g("FetchTransactions")),_.httpClient.get(_.CHILD_API_URL+h.b.ON_CHAIN_API+"/transactions")})),Object(l.a)((function(t){return _.logger.info(t),{type:b.vb,payload:t&&t.outputs&&t.outputs.length>0?t.outputs:[]}})),Object(p.a)((function(t){return _.handleErrorWithoutAlert("FetchTransactions","Fetching Transactions Failed.",t),Object(a.a)({type:m.bb})}))),this.store.select("cl").pipe(Object(u.a)(this.unSubs[0])).subscribe((function(t){"INCOMPLETE"===t.initialAPIResponseStatus[0]&&t.initialAPIResponseStatus.length>9&&(t.initialAPIResponseStatus[0]="COMPLETE",_.store.dispatch(new m.i))}))}return t.prototype.initializeRemainingData=function(t,e){this.sessionService.setItem("clUnlocked","true");var n={identity_pubkey:t.id,alias:t.alias,testnet:"testnet"===t.network||"litecoin-testnet"===t.network,chains:t.chains,uris:t.uris,version:t.version,api_version:t.api_version,currency_unit:"BTC",smaller_currency_unit:"Sats",numberOfPendingChannels:t.num_pending_channels};this.store.dispatch(new m.F("Initializing Node Data...")),this.store.dispatch(new m.T(n)),this.store.dispatch(new b.D),this.store.dispatch(new b.B),this.store.dispatch(new b.A),this.store.dispatch(new b.G),this.store.dispatch(new b.C("perkw")),this.store.dispatch(new b.C("perkb")),this.store.dispatch(new b.I),this.store.dispatch(new b.J),this.store.dispatch(new b.H);var i=this.location.path();i.includes("/lnd/")?i=i.replace("/lnd/","/cl/"):i.includes("/ecl/")&&(i=i.replace("/ecl/","/cl/")),(i.includes("/login")||i.includes("/error")||""===i||"HOME"===e||i.includes("?access-key="))&&(i="/cl/home"),this.router.navigate([i])},t.prototype.handleErrorWithoutAlert=function(t,e,n){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(n)),401===n.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new m.g),this.store.dispatch(new m.x),this.store.dispatch(new m.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new m.i),this.store.dispatch(new b.p({action:t,code:n.status.toString(),message: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.error&&n.error.error.error&&n.error.error.error.message&&"string"==typeof n.error.error.error.message?n.error.error.error.message:n.error.error&&n.error.error.message&&"string"==typeof n.error.error.message?n.error.error.message:n.error.message&&"string"==typeof n.error.message?n.error.message:"string"==typeof n.error?n.error:e})))},t.prototype.handleErrorWithAlert=function(t,e,n,i){this.logger.error(i),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new m.g),this.store.dispatch(new m.x),this.store.dispatch(new m.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new m.i),this.store.dispatch(new m.C({data:{type:t,alertTitle:e,message:{code:i.status,message:i.error.error&&i.error.error.error&&i.error.error.error.error&&i.error.error.error.error.message&&"string"==typeof i.error.error.error.error.message?i.error.error.error.error.message:i.error.error&&i.error.error.error&&i.error.error.error.message&&"string"==typeof i.error.error.error.message?i.error.error.error.message:i.error.error&&i.error.error.message&&"string"==typeof i.error.error.message?i.error.error.message:i.error.message&&"string"==typeof i.error.message?i.error.message:"string"==typeof i.error?i.error:"Unknown Error",URL:n},component:d.a}})))},t.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(t){t.next(),t.complete()}))},t.\u0275fac=function(e){return new(e||t)(g.ac(r.a),g.ac(y.b),g.ac(v.h),g.ac(_.a),g.ac(w.b),g.ac(O.a),g.ac(C.f),g.ac(x.i))},t.\u0275prov=g.Mb({token:t,factory:t.\u0275fac}),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"infoFetchCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"fetchFeesCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"fetchFeeRatesCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"fetchBalanceCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"fetchLocalRemoteBalanceCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"getNewAddressCL",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"setNewAddressCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"peersFetchCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"saveNewPeerCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"detachPeerCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"channelsFetchCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"openNewChannelCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"updateChannelCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"closeChannelCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"paymentsFetchCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"decodePaymentCL",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"setDecodedPaymentCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"sendPaymentCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"queryRoutesFetchCL",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"setQueryRoutesCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"peerLookupCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"channelLookupCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"invoiceLookupCL",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"setLookupCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"fetchForwardingHistoryCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"deleteExpiredInvoiceCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"saveNewInvoiceCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"invoicesFetchCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"SetChannelTransactionCL",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"transactionsFetch",void 0),t}()},Wogr:function(t,e,n){"use strict";var i=n("49sm"),r=(o.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(e){return!1}}())?2147483647:1073741823;function o(t,e,n){return o.TYPED_ARRAY_SUPPORT||this instanceof o?"number"==typeof t?c(this,t):function(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(n<0||e.byteLength=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function s(t,e){var n;return o.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(e)).__proto__=o.prototype:(null===(n=t)&&(n=new o(e)),n.length=e),n}function c(t,e){var n=s(t,e<0?0:0|a(e));if(!o.TYPED_ARRAY_SUPPORT)for(var i=0;i55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function p(t){return o.isBuffer(t)?t.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:("string"!=typeof t&&(t=""+t),0===t.length?0:l(t).length)}o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),o.prototype.write=function(t,e,n){void 0===e||void 0===n&&"string"==typeof e?(n=this.length,e=0):isFinite(e)&&(e|=0,isFinite(n)?n|=0:n=void 0);var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(t,e,n,i){return function(t,e,n,i){for(var r=0;r=e.length||r>=t.length);++r)e[r+n]=t[r];return r}(l(e,t.length-n),t,n,i)}(this,t,e,n)},o.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--r)t[r+e]=this[r+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(r=e;r0)}}var ht=function(){function t(t,e,n,i,r,o){this.dialogRef=t,this.data=e,this.logger=n,this.snackBar=i,this.commonService=r,this.renderer=o,this.swapStateEnum=f.p,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=f.b,this.dataTypeEnum=f.h,this.screenSize="",this.screenSizeEnum=f.o,this.scrollDirection="DOWN",this.shouldScroll=!0}return Object.defineProperty(t.prototype,"container",{set:function(t){var e=this;t&&(this.scrollContainer=t,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",(function(t){e.scrollDirection="UP"})),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",(function(t){e.scrollDirection="DOWN"}))))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){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===f.b.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs)},t.prototype.ngAfterViewChecked=function(){var t=this;setTimeout((function(){t.shouldScroll=t.scrollContainer&&t.scrollContainer.nativeElement&&t.scrollContainer.nativeElement.classList.value.includes("ps--active-y")}))},t.prototype.onScroll=function(){this.scrollContainer.nativeElement.scrollTop="DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop-62.6},t.prototype.onCopyField=function(t){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+t)},t.prototype.onClose=function(){this.dialogRef.close(!1)},t.prototype.ngOnDestroy=function(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()},t.\u0275fac=function(e){return new(e||t)(b.Qb(m.f),b.Qb(m.a),b.Qb(w.b),b.Qb(O.b),b.Qb(_.a),b.Qb(b.F))},t.\u0275cmp=b.Kb({type:t,selectors:[["rtl-alert-message"]],viewQuery:function(t,e){var n;1&t&&b.Mc(R,!0),2&t&&b.vc(n=b.fc())&&(e.container=n.first)},decls:21,vars:14,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel",4,"ngIf"],[1,"padding-gap-large","pl-3",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",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-1"],["tabindex","1","autoFocus","","mat-flat-button","","color","primary","type","submit","default","",3,"mat-dialog-close",4,"ngIf"],["class","mr-1","fxLayoutAlign","center center","tabindex","1","mat-stroked-button","","color","primary","type","button","default","",3,"mat-dialog-close",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["contentBlock",""],[3,"qrdata","margin","width","errorCorrectionLevel"],["perfectScrollbar","",1,"mt-5px","mb-0","pr-2",3,"ngClass"],["scrollContainer",""],[4,"ngTemplateOutlet"],[1,"mt-5px","mb-0","pr-2"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container"],["mat-mini-fab","","aria-label","Scroll","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center"],["tabindex","1","autoFocus","","mat-flat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","center center","tabindex","1","mat-stroked-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","mb-1",3,"ngClass"],["fxLayout","row","fxFlex","100"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["noStyleBlock",""],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(t,e){1&t&&(b.Wb(0,"div",0),b.Wb(1,"div",1),b.Fc(2,P,1,4,"qrcode",2),b.Vb(),b.Wb(3,"div",3),b.Wb(4,"mat-card-header",4),b.Wb(5,"div",5),b.Wb(6,"span",6),b.Hc(7),b.Vb(),b.Vb(),b.Wb(8,"button",7),b.ec("click",(function(){return e.onClose()})),b.Hc(9,"X"),b.Vb(),b.Vb(),b.Fc(10,N,4,4,"ng-container",8),b.Fc(11,V,3,1,"ng-container",8),b.Fc(12,W,4,2,"div",9),b.Wb(13,"div",10),b.Fc(14,z,2,1,"button",11),b.Fc(15,U,2,1,"button",12),b.Fc(16,Q,2,2,"button",13),b.Fc(17,Y,2,1,"button",12),b.Fc(18,G,2,2,"button",13),b.Vb(),b.Vb(),b.Vb(),b.Fc(19,pt,6,6,"ng-template",null,14,b.Gc)),2&t&&(b.Db(1),b.pc("ngClass",b.tc(12,lt,""===e.showQRField||e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),b.Db(1),b.pc("ngIf",""!==e.showQRField),b.Db(1),b.pc("fxFlex",""===e.showQRField||e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM?"100":"70"),b.Db(4),b.Ic(e.data.alertTitle||e.alertTypeEnum[e.data.type]),b.Db(3),b.pc("ngIf",e.data.scrollable),b.Db(1),b.pc("ngIf",!e.data.scrollable),b.Db(1),b.pc("ngIf",e.data.scrollable&&e.shouldScroll),b.Db(2),b.pc("ngIf",(!e.showQRField||""==e.showQRField)&&""===e.showCopyName),b.Db(1),b.pc("ngIf",""!==e.showCopyName),b.Db(1),b.pc("ngIf",""!==e.showCopyName),b.Db(1),b.pc("ngIf",""!==e.showQRField),b.Db(1),b.pc("ngIf",""!==e.showQRField))},directives:[y.c,y.b,y.a,C.l,x.a,C.n,E.c,S.a,A.a,E.b,k.b,C.s,D.a,j.a,m.d,I.a,C.m,T.a,C.p,C.q,C.r],pipes:[C.e],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),t}(),dt=n("/uX3"),ft=n("yGQT"),mt=n("gIcY"),bt=n("dlst"),gt=n("UTvR"),yt=n("B0X+");function vt(t,e){if(1&t&&(b.Wb(0,"p",15),b.Hc(1),b.Vb()),2&t){var n=b.ic();b.Db(1),b.Ic(n.data.titleMessage)}}function _t(t,e){if(1&t&&(b.Wb(0,"span",28),b.Hc(1),b.Vb()),2&t){var n=e.$implicit;b.Db(1),b.Ic(n)}}function wt(t,e){if(1&t&&(b.Ub(0),b.Fc(1,_t,2,1,"span",27),b.Tb()),2&t){var n=b.ic(2).$implicit;b.Db(1),b.pc("ngForOf",n.value)}}function Ot(t,e){if(1&t&&(b.Ub(0),b.Hc(1),b.jc(2,"number"),b.Tb()),2&t){var n=b.ic(2).$implicit;b.Db(1),b.Ic(b.lc(2,1,n.value,"1.0-3"))}}function Ct(t,e){if(1&t&&(b.Ub(0),b.Hc(1),b.Tb()),2&t){var n=b.ic(2).$implicit;b.Db(1),b.Ic(!0===n.value?"True":"False")}}function xt(t,e){if(1&t&&(b.Ub(0),b.Hc(1),b.Tb()),2&t){var n=b.ic(2).$implicit;b.Db(1),b.Ic(n.value)}}function Et(t,e){if(1&t&&(b.Wb(0,"span"),b.Wb(1,"span",24),b.Fc(2,wt,2,1,"ng-container",25),b.Fc(3,Ot,3,4,"ng-container",25),b.Fc(4,Ct,2,1,"ng-container",25),b.Fc(5,xt,2,1,"ng-container",26),b.Vb(),b.Vb()),2&t){var n=b.ic().$implicit,i=b.ic(3);b.Db(1),b.pc("ngSwitch",n.type),b.Db(1),b.pc("ngSwitchCase",i.dataTypeEnum.ARRAY),b.Db(1),b.pc("ngSwitchCase",i.dataTypeEnum.NUMBER),b.Db(1),b.pc("ngSwitchCase",i.dataTypeEnum.BOOLEAN)}}function St(t,e){1&t&&(b.Wb(0,"span",29),b.Hc(1,"\xa0"),b.Vb())}function At(t,e){if(1&t&&(b.Wb(0,"div",19),b.Wb(1,"h4",20),b.Hc(2),b.Vb(),b.Fc(3,Et,6,4,"span",21),b.Fc(4,St,2,0,"ng-template",null,22,b.Gc),b.Rb(6,"mat-divider",23),b.Vb()),2&t){var n=e.$implicit,i=b.wc(5);b.qc("fxFlex.gt-md",n.width),b.Db(2),b.Ic(n.title),b.Db(1),b.pc("ngIf",n&&n.value)("ngIfElse",i)}}function kt(t,e){if(1&t&&(b.Wb(0,"div"),b.Wb(1,"div",17),b.Fc(2,At,7,4,"div",18),b.Vb(),b.Vb()),2&t){var n=e.$implicit;b.Db(2),b.pc("ngForOf",n)}}function Dt(t,e){if(1&t&&(b.Wb(0,"div"),b.Fc(1,kt,3,1,"div",16),b.Vb()),2&t){var n=b.ic();b.Db(1),b.pc("ngForOf",n.messageObjs)}}function jt(t,e){if(1&t&&(b.Wb(0,"p",15),b.Hc(1),b.Vb()),2&t){var n=b.ic(2);b.Db(1),b.Ic(n.data.titleMessage)}}function It(t,e){if(1&t){var n=b.Xb();b.Wb(0,"input",36),b.ec("ngModelChange",(function(t){return b.yc(n),b.ic().$implicit.inputValue=t})),b.jc(1,"lowercase"),b.Vb()}if(2&t){var i=b.ic(),r=i.index,o=i.$implicit;b.rc("name","input",r,""),b.pc("placeholder",o.placeholder)("min",o.min)("step",o.step)("type",b.kc(1,7,o.inputType))("ngModel",o.inputValue)("tabindex",r+1)}}function Tt(t,e){if(1&t){var n=b.Xb();b.Wb(0,"input",37),b.ec("ngModelChange",(function(t){return b.yc(n),b.ic().$implicit.inputValue=t})),b.jc(1,"lowercase"),b.Vb()}if(2&t){var i=b.ic(),r=i.index,o=i.$implicit;b.rc("name","input",r,""),b.pc("placeholder",o.placeholder)("min",o.min)("step",o.step)("type",b.kc(1,7,o.inputType))("ngModel",o.inputValue)("tabindex",r+1)}}function Rt(t,e){if(1&t&&(b.Wb(0,"mat-error"),b.Hc(1),b.Vb()),2&t){var n=b.ic().$implicit;b.Db(1),b.Jc("",n.placeholder," is required.")}}function Pt(t,e){if(1&t&&(b.Wb(0,"mat-form-field",33),b.Fc(1,It,2,9,"input",34),b.Fc(2,Tt,2,9,"input",35),b.Fc(3,Rt,2,1,"mat-error",9),b.Vb()),2&t){var n=e.$implicit,i=e.index;b.pc("fxFlex",n.width),b.Db(1),b.pc("ngIf",0===i),b.Db(1),b.pc("ngIf",0!==i),b.Db(1),b.pc("ngIf",!n.inputValue)}}function Lt(t,e){if(1&t&&(b.Wb(0,"div",30),b.Fc(1,jt,2,1,"p",8),b.Wb(2,"div",31),b.Fc(3,Pt,4,4,"mat-form-field",32),b.Vb(),b.Vb()),2&t){var n=b.ic();b.Db(1),b.pc("ngIf",n.data.titleMessage),b.Db(2),b.pc("ngForOf",n.getInputs)}}function Ft(t,e){if(1&t){var n=b.Xb();b.Wb(0,"button",38),b.ec("click",(function(){b.yc(n);var t=b.ic();return t.onClose(t.getInputs)})),b.Hc(1),b.Vb()}if(2&t){var i=b.ic();b.Db(1),b.Ic(i.yesBtnText)}}function Nt(t,e){if(1&t){var n=b.Xb();b.Wb(0,"button",39),b.ec("click",(function(){return b.yc(n),b.ic().onClose(!0)})),b.Hc(1),b.Vb()}if(2&t){var i=b.ic();b.Db(1),b.Ic(i.yesBtnText)}}var Mt=function(){function t(t,e,n,i){this.dialogRef=t,this.data=e,this.logger=n,this.store=i,this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.alertTypeEnum=f.b,this.dataTypeEnum=f.h,this.getInputs=[{placeholder:"",inputType:"text",inputValue:""}]}return t.prototype.ngOnInit=function(){this.flgShowInput=this.data.flgShowInput,this.getInputs=this.data.getInputs,this.noBtnText=this.data.noBtnText?this.data.noBtnText:"No",this.yesBtnText=this.data.yesBtnText?this.data.yesBtnText:"Yes",this.messageObjs=this.data.message,this.data.type===f.b.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")},t.prototype.onClose=function(t){if(t&&this.getInputs&&this.getInputs.some((function(t){return!t.inputValue})))return!0;this.store.dispatch(new dt.h(t))},t.\u0275fac=function(e){return new(e||t)(b.Qb(m.f),b.Qb(m.a),b.Qb(w.b),b.Qb(ft.h))},t.\u0275cmp=b.Kb({type:t,selectors:[["rtl-confirmation-message"]],decls:18,vars:7,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","reset","tabindex","2","default","",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","3",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","type","submit","tabindex","4",3,"click",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block",4,"ngFor","ngForOf"],[1,"display-block"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngFor","ngForOf"],[3,"fxFlex"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["mat-flat-button","","color","primary","type","submit","tabindex","3",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4",3,"click"]],template:function(t,e){1&t&&(b.Wb(0,"div",0),b.Wb(1,"div",1),b.Wb(2,"mat-card-header",2),b.Wb(3,"div",3),b.Wb(4,"span",4),b.Hc(5),b.Vb(),b.Vb(),b.Wb(6,"button",5),b.ec("click",(function(){return e.onClose(!1)})),b.Hc(7,"X"),b.Vb(),b.Vb(),b.Wb(8,"mat-card-content",6),b.Wb(9,"form",7),b.Fc(10,vt,2,1,"p",8),b.Fc(11,Dt,2,1,"div",9),b.Fc(12,Lt,4,2,"div",10),b.Wb(13,"div",11),b.Wb(14,"button",12),b.ec("click",(function(){return e.onClose(!1)})),b.Hc(15),b.Vb(),b.Fc(16,Ft,2,1,"button",13),b.Fc(17,Nt,2,1,"button",14),b.Vb(),b.Vb(),b.Vb(),b.Vb(),b.Vb()),2&t&&(b.Db(5),b.Ic(e.data.alertTitle||e.alertTypeEnum[e.data.type]),b.Db(5),b.pc("ngIf",e.data.titleMessage&&!e.flgShowInput),b.Db(1),b.pc("ngIf",(null==e.messageObjs?null:e.messageObjs.length)>0),b.Db(1),b.pc("ngIf",e.flgShowInput),b.Db(3),b.Ic(e.noBtnText),b.Db(1),b.pc("ngIf",e.flgShowInput),b.Db(1),b.pc("ngIf",!e.flgShowInput))},directives:[y.c,y.a,E.c,y.b,S.a,E.b,mt.t,mt.m,mt.n,C.n,C.m,T.a,C.p,C.q,C.r,bt.c,gt.b,yt.a,mt.b,j.a,mt.r,mt.l,mt.o,bt.b],pipes:[C.e,C.k],styles:[""]}),t}(),Vt=n("V8Fa"),Bt=n("wHSu"),Ht=n("Nv++"),Wt=n("8KZq"),zt=n("eO+G");function Ut(t,e){if(1&t&&(b.Wb(0,"mat-option",23),b.Hc(1),b.Vb()),2&t){var n=e.$implicit;b.pc("value",n),b.Db(1),b.Jc(" ",n.infoName," ")}}function Qt(t,e){if(1&t){var n=b.Xb();b.Wb(0,"div",13),b.Wb(1,"mat-form-field",20),b.Wb(2,"mat-select",21),b.ec("valueChange",(function(t){return b.yc(n),b.ic().selInfoType=t})),b.Fc(3,Ut,2,2,"mat-option",22),b.Vb(),b.Vb(),b.Vb()}if(2&t){var i=b.ic();b.Db(2),b.pc("value",i.selInfoType),b.Db(1),b.pc("ngForOf",i.infoTypes)}}var Yt=function(t){return{"display-none":t}},Gt=function(){function t(t,e,n,i,r){this.dialogRef=t,this.data=e,this.logger=n,this.snackBar=i,this.commonService=r,this.faReceipt=Bt.C,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=f.o}return t.prototype.ngOnInit=function(){var t=this;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((function(e,n){t.infoTypes.push({infoID:n+1,infoKey:"node URI "+(n+1),infoName:"Node URI "+(n+1)})}))),this.screenSize=this.commonService.getScreenSize()},t.prototype.onClose=function(){this.dialogRef.close(!1)},t.prototype.onCopyPubkey=function(t){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+t)},t.\u0275fac=function(e){return new(e||t)(b.Qb(m.f),b.Qb(m.a),b.Qb(w.b),b.Qb(O.b),b.Qb(_.a))},t.\u0275cmp=b.Kb({type:t,selectors:[["rtl-show-pubkey"]],decls:26,vars:23,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","100","fxFlex.gt-sm","70",1,"padding-gap-large","pl-3"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-2"],["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,"pr-1"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(b.Wb(0,"div",0),b.Wb(1,"div",1),b.Rb(2,"qrcode",2),b.Vb(),b.Wb(3,"div",3),b.Wb(4,"mat-card-header",4),b.Wb(5,"div",5),b.Rb(6,"fa-icon",6),b.Wb(7,"span",7),b.Hc(8),b.Vb(),b.Vb(),b.Wb(9,"button",8),b.ec("click",(function(){return e.onClose()})),b.Hc(10,"X"),b.Vb(),b.Vb(),b.Wb(11,"mat-card-content",9),b.Wb(12,"div",10),b.Wb(13,"div",11),b.Rb(14,"qrcode",2),b.Vb(),b.Fc(15,Qt,4,2,"div",12),b.Wb(16,"div",13),b.Wb(17,"div",14),b.Wb(18,"h4",15),b.Hc(19),b.Vb(),b.Wb(20,"span",16),b.Hc(21),b.Vb(),b.Vb(),b.Vb(),b.Rb(22,"mat-divider",17),b.Wb(23,"div",18),b.Wb(24,"button",19),b.ec("copied",(function(t){return e.onCopyPubkey(t)})),b.Hc(25),b.Vb(),b.Vb(),b.Vb(),b.Vb(),b.Vb(),b.Vb()),2&t&&(b.Db(1),b.pc("ngClass",b.tc(19,Yt,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),b.Db(1),b.qc("qrdata",0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),b.pc("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),b.Db(4),b.pc("icon",e.faReceipt),b.Db(2),b.Ic(e.selInfoType.infoName),b.Db(5),b.pc("ngClass",b.tc(21,Yt,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),b.Db(1),b.qc("qrdata",0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),b.pc("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),b.Db(1),b.pc("ngIf",e.information.uris&&e.information.uris.length>0),b.Db(4),b.Ic(e.selInfoType.infoName),b.Db(2),b.Ic(0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),b.Db(3),b.qc("payload",0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),b.Db(1),b.Jc("Copy ",e.selInfoType.infoKey,""))},directives:[y.c,y.b,y.a,C.l,x.a,A.a,E.c,Ht.a,S.a,E.b,C.n,T.a,j.a,I.a,bt.c,Wt.a,C.m,zt.n],styles:[""]}),t}(),qt=n("lF6s"),Kt=n("LvnZ"),Xt=n("MCVq"),Zt=n("t/Na"),$t=n("mZtN"),Jt=n("iiaH"),te=n("ZYCi"),ee=function(){function t(t,e,n,m,b,g,y,_,w,O){var C=this;this.actions$=t,this.httpClient=e,this.store=n,this.logger=m,this.sessionService=b,this.commonService=g,this.dataService=y,this.dialog=_,this.snackBar=w,this.router=O,this.CHILD_API_URL=d.a+"/lnd",this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new o.a,new o.a],this.closeAllDialogs=this.actions$.pipe(Object(r.d)(dt.c),Object(c.a)((function(t){C.dialog.closeAll()}))),this.openSnackBar=this.actions$.pipe(Object(r.d)(dt.A),Object(c.a)((function(t){C.snackBar.open(t.payload)}))),this.openSpinner=this.actions$.pipe(Object(r.d)(dt.B),Object(c.a)((function(t){C.dialogRef=C.dialog.open(v,{data:{titleMessage:t.payload}})}))),this.closeSpinner=this.actions$.pipe(Object(r.d)(dt.e),Object(c.a)((function(t){C.dialogRef&&C.dialogRef.close()}))),this.openAlert=this.actions$.pipe(Object(r.d)(dt.y),Object(c.a)((function(t){t.payload.width=C.alertWidth,C.dialogRef=C.dialog.open(t.payload.data.component?t.payload.data.component:ht,t.payload)}))),this.closeAlert=this.actions$.pipe(Object(r.d)(dt.b),Object(c.a)((function(t){C.dialogRef&&C.dialogRef.close()}))),this.openConfirm=this.actions$.pipe(Object(r.d)(dt.z),Object(c.a)((function(t){t.payload.width=C.confirmWidth,C.dialogRef=C.dialog.open(Mt,t.payload)}))),this.closeConfirm=this.actions$.pipe(Object(r.d)(dt.d),Object(u.a)(1),Object(c.a)((function(t){return C.dialogRef&&C.dialogRef.close(),C.logger.info(t.payload),t.payload}))),this.showNodePubkey=this.actions$.pipe(Object(r.d)(dt.R),Object(l.a)(this.store.select("root")),Object(p.a)((function(t){var e=t[1];return C.sessionService.getItem("token")&&e.nodeData.identity_pubkey?C.store.dispatch(new dt.C({width:"70%",data:{information:e.nodeData,component:Gt}})):C.snackBar.open("Node Pubkey does not exist."),Object(a.a)({type:dt.bb})}))),this.appConfigFetch=this.actions$.pipe(Object(r.d)(dt.n),Object(p.a)((function(t){return C.screenSize=C.commonService.getScreenSize(),C.screenSize===f.o.XS||C.screenSize===f.o.SM?(C.alertWidth="95%",C.confirmWidth="95%"):C.screenSize===f.o.MD?(C.alertWidth="80%",C.confirmWidth="80%"):(C.alertWidth="55%",C.confirmWidth="60%"),C.store.dispatch(new dt.f("FetchRTLConfig")),C.httpClient.get(d.b.CONF_API+"/rtlconf")})),Object(c.a)((function(t){var e;return C.logger.info(t),t.nodes.forEach((function(n){n.settings.currencyUnits=Object(i.g)(f.e,[n.settings.currencyUnit]),+n.index===t.selectedNodeIndex&&(e=n)})),e?(C.store.dispatch(new dt.U({lnNode:e,isInitialSetup:!0})),{type:dt.N,payload:t}):{type:dt.bb}}),Object(h.a)((function(t){return C.handleErrorWithoutAlert("FetchRTLConfig",t),Object(a.a)({type:dt.bb})})))),this.settingSave=this.actions$.pipe(Object(r.d)(dt.L),Object(p.a)((function(t){if(C.store.dispatch(new dt.f("UpdateSettings")),t.payload.settings&&t.payload.defaultNodeIndex){var e=C.httpClient.post(d.b.CONF_API,{updatedSettings:t.payload.settings}),n=C.httpClient.post(d.b.CONF_API+"/updateDefaultNode",{defaultNodeIndex:t.payload.defaultNodeIndex});return Object(s.a)([e,n])}return t.payload.settings&&!t.payload.defaultNodeIndex?C.httpClient.post(d.b.CONF_API,{updatedSettings:t.payload.settings}):!t.payload.settings&&t.payload.defaultNodeIndex?C.httpClient.post(d.b.CONF_API+"/updateDefaultNode",{defaultNodeIndex:t.payload.defaultNodeIndex}):void 0})),Object(c.a)((function(t){return C.store.dispatch(new dt.i),C.logger.info(t),{type:dt.A,payload:t.length?t[0].message+".":t.message+"."}}),Object(h.a)((function(t){return C.store.dispatch(new dt.k({action:"UpdateSettings",code:t.length?t[0].status:t.status,message:t.length?t[0].error.error:t.error.error})),C.handleErrorWithAlert("ERROR","Update Settings Failed!",d.b.CONF_API,t.length?t[0]:t),Object(a.a)({type:dt.bb})})))),this.twoFASettingSave=this.actions$.pipe(Object(r.d)(dt.W),Object(p.a)((function(t){return C.store.dispatch(new dt.f("Update2FASettings")),C.httpClient.post(d.b.CONF_API+"/update2FA",{secret2fa:t.payload.secret2fa})})),Object(c.a)((function(t){return C.store.dispatch(new dt.i),C.logger.info(t),{type:dt.bb}}),Object(h.a)((function(t){return C.store.dispatch(new dt.k({action:"Update2FASettings",code:t.length?t[0].status:t.status,message:t.length?t[0].error.error:t.error.error})),C.handleErrorWithAlert("ERROR","Update 2FA Settings Failed!",d.b.CONF_API,t.length?t[0]:t),Object(a.a)({type:dt.bb})})))),this.configFetch=this.actions$.pipe(Object(r.d)(dt.l),Object(p.a)((function(t){return C.store.dispatch(new dt.f("fetchConfig")),C.httpClient.get(d.b.CONF_API+"/config/"+t.payload).pipe(Object(c.a)((function(t){return C.store.dispatch(new dt.i),{type:dt.P,payload:t}})),Object(h.a)((function(e){return C.store.dispatch(new dt.k({action:"fetchConfig",code:e.status,message:e.error.error})),C.handleErrorWithAlert("ERROR","Fetch Config Failed!",d.b.CONF_API+"/config/"+t.payload,e),Object(a.a)({type:dt.bb})})))}))),this.showLnConfig=this.actions$.pipe(Object(r.d)(dt.P),Object(c.a)((function(t){return t.payload}))),this.isAuthorized=this.actions$.pipe(Object(r.d)(dt.r),Object(l.a)(this.store.select("root")),Object(p.a)((function(t){var e=t[0];return C.store.dispatch(new dt.f("IsAuthorized")),C.httpClient.post(d.b.AUTHENTICATE_API,{authenticateWith:e.payload&&""!==e.payload.trim()?f.c.PASSWORD:f.c.TOKEN,authenticationValue:e.payload&&""!==e.payload.trim()?e.payload:C.sessionService.getItem("token")?C.sessionService.getItem("token"):""}).pipe(Object(c.a)((function(t){return C.logger.info(t),C.logger.info("Successfully Authorized!"),{type:dt.s,payload:t}})),Object(h.a)((function(t){return C.store.dispatch(new dt.k({action:"IsAuthorized",code:t.status,message:t.error.message})),C.handleErrorWithAlert("ERROR","Authorization Failed",d.b.AUTHENTICATE_API,t),Object(a.a)({type:dt.s,payload:"ERROR"})})))}))),this.isAuthorizedRes=this.actions$.pipe(Object(r.d)(dt.s),Object(c.a)((function(t){return t.payload}))),this.authLogin=this.actions$.pipe(Object(r.d)(dt.u),Object(l.a)(this.store.select("root")),Object(p.a)((function(t){var e=t[0],n=t[1];return C.store.dispatch(new Xt.i("FetchInfo")),C.store.dispatch(new Kt.g("FetchInfo")),C.store.dispatch(new qt.e("FetchInfo")),C.store.dispatch(new dt.f("Login")),C.httpClient.post(d.b.AUTHENTICATE_API,{authenticateWith:e.payload.password?f.c.PASSWORD:f.c.TOKEN,authenticationValue:e.payload.password?e.payload.password:C.sessionService.getItem("token")?C.sessionService.getItem("token"):""}).pipe(Object(c.a)((function(t){C.logger.info(t),C.setLoggedInDetails(e.payload.initialPass,t,n)})),Object(h.a)((function(t){return C.logger.info("Redirecting to Login Error Page"),C.handleErrorWithoutAlert("ERROR",t),C.store.dispatch(new dt.k({action:"Login",code:t.status,message:t.error.error})),+n.appConfig.sso.rtlSSO?C.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:"Single Sign On Failed!"}}):C.router.navigate([n.appConfig.sso.logoutRedirectLink]),Object(a.a)({type:dt.bb})})))}))),this.tokenVerify=this.actions$.pipe(Object(r.d)(dt.ab),Object(l.a)(this.store.select("root")),Object(p.a)((function(t){var e=t[0],n=t[1];return C.store.dispatch(new dt.f("VerifyToken")),C.httpClient.post(d.b.AUTHENTICATE_API+"/token",{authentication2FA:e.payload.token}).pipe(Object(c.a)((function(t){C.logger.info(t),C.logger.info("Token Successfully Verified!"),C.setLoggedInDetails(!1,e.payload.authResponse,n)})),Object(h.a)((function(t){return C.handleErrorWithAlert("ERROR","Authorization Failed!",d.b.AUTHENTICATE_API+"/token",t),C.store.dispatch(new dt.k({action:"VerifyToken",code:t.status,message:t.error.error})),Object(a.a)({type:dt.bb})})))}))),this.logOut=this.actions$.pipe(Object(r.d)(dt.v),Object(l.a)(this.store.select("root")),Object(p.a)((function(t){var e=t[1];return+e.appConfig.sso.rtlSSO?window.location.href=e.appConfig.sso.logoutRedirectLink:C.router.navigate(["/login"]),C.sessionService.removeItem("eclUnlocked"),C.sessionService.removeItem("clUnlocked"),C.sessionService.removeItem("lndUnlocked"),C.sessionService.removeItem("token"),C.logger.warn("LOGGED OUT"),Object(a.a)()}))),this.resetPassword=this.actions$.pipe(Object(r.d)(dt.G),Object(l.a)(this.store.select("root")),Object(p.a)((function(t){var e=t[0];return C.store.dispatch(new dt.f("ResetPassword")),C.httpClient.post(d.b.AUTHENTICATE_API+"/reset",{currPassword:e.payload.currPassword,newPassword:e.payload.newPassword}).pipe(Object(c.a)((function(t){return C.logger.info(t),C.logger.info("Password Reset Successful!"),C.store.dispatch(new dt.E("Password Reset Successful!")),C.SetToken(t.token),{type:dt.H,payload:t.token}})),Object(h.a)((function(t){return C.store.dispatch(new dt.k({action:"ResetPassword",code:t.status,message:t.error.message})),C.handleErrorWithAlert("ERROR","Password Reset Failed!",d.b.AUTHENTICATE_API+"/reset",t),Object(a.a)({type:dt.bb})})))}))),this.setSelectedNode=this.actions$.pipe(Object(r.d)(dt.O),Object(p.a)((function(t){return C.store.dispatch(new dt.f("UpdateSelNode")),C.httpClient.post(d.b.CONF_API+"/updateSelNode",{selNodeIndex:t.payload.lnNode.index}).pipe(Object(c.a)((function(e){return C.logger.info(e),C.store.dispatch(new dt.i),C.initializeNode(t.payload.lnNode,t.payload.isInitialSetup),{type:dt.bb}})),Object(h.a)((function(t){return C.store.dispatch(new dt.k({action:"UpdateSelNode",code:t.status,message:t.error.message})),C.handleErrorWithAlert("ERROR","Update Selected Node Failed!",d.b.CONF_API+"/updateSelNode",t),Object(a.a)({type:dt.bb})})))}))),this.fetchFile=this.actions$.pipe(Object(r.d)(dt.m),Object(p.a)((function(t){C.store.dispatch(new dt.f("fetchFile"));var e="?channel="+t.payload.channelPoint+(t.payload.path?"&path="+t.payload.path:"");return C.httpClient.get(d.b.CONF_API+"/file"+e).pipe(Object(c.a)((function(t){return C.store.dispatch(new dt.i),{type:dt.Q,payload:t}})),Object(h.a)((function(t){return C.store.dispatch(new dt.k({action:"fetchFile",code:t.status,message:t.error.error})),C.handleErrorWithAlert("ERROR",t.error.message,d.b.CONF_API+"/file"+e,{status:t.error.error.errno,error:t.error.error.code}),Object(a.a)({type:dt.bb})})))}))),this.showFile=this.actions$.pipe(Object(r.d)(dt.Q),Object(c.a)((function(t){return t.payload})))}return t.prototype.setLoggedInDetails=function(t,e,n){this.logger.info("Successfully Authorized!"),this.SetToken(e.token),n.selNode.settings.currencyUnits=Object(i.g)(f.e,[n.selNode.settings.currencyUnit]),t?(this.store.dispatch(new dt.E("Reset your password.")),this.router.navigate(["/settings"],{state:{loadTab:"authSettings",initializeNodeData:!0}})):this.store.dispatch(new dt.U({lnNode:n.selNode,isInitialSetup:!0}))},t.prototype.initializeNode=function(t,e){var n,r=e?"":"HOME";if(n=t.settings.fiatConversion&&t.settings.currencyUnit?{userPersona:t.settings.userPersona,channelBackupPath:t.settings.channelBackupPath,selCurrencyUnit:t.settings.currencyUnit,currencyUnits:Object(i.g)(f.e,[t.settings.currencyUnit]),fiatConversion:t.settings.fiatConversion,lnImplementation:t.lnImplementation,swapServerUrl:t.settings.swapServerUrl}:{userPersona:t.settings.userPersona,channelBackupPath:t.settings.channelBackupPath,selCurrencyUnit:t.settings.currencyUnit,currencyUnits:f.e,fiatConversion:t.settings.fiatConversion,lnImplementation:t.lnImplementation,swapServerUrl:t.settings.swapServerUrl},this.store.dispatch(new dt.K(t)),this.store.dispatch(new Xt.nb(n)),this.store.dispatch(new Kt.X(n)),this.store.dispatch(new qt.M(n)),this.sessionService.getItem("token"))switch(t.lnImplementation=t.lnImplementation.toUpperCase(),this.dataService.setChildAPIUrl(t.lnImplementation),t.lnImplementation){case"CLT":this.CHILD_API_URL=d.a+"/cl",this.store.dispatch(new Kt.E({loadPage:r}));break;case"ECL":this.CHILD_API_URL=d.a+"/ecl",this.store.dispatch(new qt.w({loadPage:r}));break;default:this.CHILD_API_URL=d.a+"/lnd",this.store.dispatch(new Xt.H({loadPage:r}))}},t.prototype.SetToken=function(t){t?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",t)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))},t.prototype.handleErrorWithoutAlert=function(t,e){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(e)),401===e.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new dt.g),this.store.dispatch(new dt.x),this.store.dispatch(new dt.E("Authentication Failed. Redirecting to Login."))):this.store.dispatch(new dt.k({action:t,code:e.status.toString(),message:e.error.error}))},t.prototype.handleErrorWithAlert=function(t,e,n,i){this.logger.error(i),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new dt.g),this.store.dispatch(new dt.x),this.store.dispatch(new dt.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new dt.i),this.store.dispatch(new dt.C({data:{type:t,alertTitle:e,message:{code:i.status?i.status:"Unknown Error",message:i.error.error&&i.error.error.error&&i.error.error.error.error&&i.error.error.error.error.error&&"string"==typeof i.error.error.error.error.error?i.error.error.error.error.error:i.error.error&&i.error.error.error&&i.error.error.error.error&&"string"==typeof i.error.error.error.error?i.error.error.error.error:i.error.error&&i.error.error.error&&"string"==typeof i.error.error.error?i.error.error.error:i.error.error&&"string"==typeof i.error.error?i.error.error:"string"==typeof i.error?i.error:"Unknown Error",URL:n},component:Vt.a}})))},t.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(t){t.next(),t.complete()}))},t.\u0275fac=function(e){return new(e||t)(b.ac(r.a),b.ac(Zt.b),b.ac(ft.h),b.ac(w.b),b.ac($t.a),b.ac(_.a),b.ac(Jt.a),b.ac(m.c),b.ac(O.b),b.ac(te.f))},t.\u0275prov=b.Mb({token:t,factory:t.\u0275fac}),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"closeAllDialogs",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"openSnackBar",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"openSpinner",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"closeSpinner",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"openAlert",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"closeAlert",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"openConfirm",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"closeConfirm",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"showNodePubkey",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"appConfigFetch",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"settingSave",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"twoFASettingSave",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"configFetch",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"showLnConfig",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"isAuthorized",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"isAuthorizedRes",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"authLogin",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"tokenVerify",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"logOut",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"resetPassword",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"setSelectedNode",void 0),Object(i.b)([Object(r.b)(),Object(i.d)("design:type",Object)],t.prototype,"fetchFile",void 0),Object(i.b)([Object(r.b)({dispatch:!1}),Object(i.d)("design:type",Object)],t.prototype,"showFile",void 0),t}()},XlPw:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("6blF");function r(t,e){return new i.a(e?function(n){return e.schedule(o,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function o(t){t.subscriber.error(t.error)}},Z92M:function(t,e){t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},ZYCi:function(t,e,n){"use strict";n.d(e,"a",(function(){return qt})),n.d(e,"b",(function(){return U})),n.d(e,"c",(function(){return z})),n.d(e,"d",(function(){return Q})),n.d(e,"e",(function(){return W})),n.d(e,"f",(function(){return on})),n.d(e,"g",(function(){return an})),n.d(e,"h",(function(){return un})),n.d(e,"i",(function(){return sn})),n.d(e,"j",(function(){return Cn})),n.d(e,"k",(function(){return hn}));var i=n("mrSG"),r=n("Ip0R"),o=n("CcnG"),a=n("F/XL"),s=n("0/uQ"),c=n("26FU"),u=n("6blF"),l=n("3fWJ"),p=n("dzgT"),h=n("lYZG"),d=n("K9Ia"),f=n("G5J1"),m=n("67Y/"),b=n("Txjg"),g=n("VnD/"),y=n("FFOo"),v=n("b7mW");function _(t){return function(e){return 0===t?Object(f.b)():e.lift(new w(t))}}var w=function(){function t(t){if(this.total=t,this.total<0)throw new v.a}return t.prototype.call=function(t,e){return e.subscribe(new O(t,this.total))},t}(),O=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.ring=new Array,i.count=0,i}return i.c(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,i=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r=2;return function(i){return i.pipe(t?Object(g.a)((function(e,n){return t(e,n,i)})):E.a,_(1),n?Object(x.a)(e):Object(C.a)((function(){return new l.a})))}}var A=n("9Z1F"),k=n("P6uZ"),D=n("psW0"),j=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new I(t,this.predicate,this.thisArg,this.source))},t}(),I=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=i,o.source=r,o.index=0,o.thisArg=i||o,o}return i.c(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(y.a),T=n("15JJ"),R=n("t9fZ"),P=n("p0Sj"),L=n("dC0D"),F=n("Phjn"),N=n("y3By"),M=n("xMyE"),V=n("2WpN"),B=n("Zn8D"),H=function(){return function(t,e){this.id=t,this.url=e}}(),W=function(t){function e(e,n,i,r){void 0===i&&(i="imperative"),void 0===r&&(r=null);var o=t.call(this,e,n)||this;return o.navigationTrigger=i,o.restoredState=r,o}return Object(i.c)(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(H),z=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r.urlAfterRedirects=i,r}return Object(i.c)(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(H),U=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r.reason=i,r}return Object(i.c)(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(H),Q=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r.error=i,r}return Object(i.c)(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(H),Y=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return Object(i.c)(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(H),G=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return Object(i.c)(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(H),q=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n)||this;return a.urlAfterRedirects=i,a.state=r,a.shouldActivate=o,a}return Object(i.c)(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(H),K=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return Object(i.c)(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(H),X=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return Object(i.c)(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(H),Z=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),$=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),J=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),tt=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),et=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),nt=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),it=function(){function t(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),rt=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Kb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&o.Rb(0,"router-outlet")},directives:function(){return[hn]},encapsulation:2}),t}(),ot=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function at(t){return new ot(t)}function st(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function ct(t,e,n){var i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length-1})):t===e}function bt(t){return Array.prototype.concat.apply([],t)}function gt(t){return t.length>0?t[t.length-1]:null}function yt(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function vt(t){return Object(o.tb)(t)?t:Object(o.ub)(t)?Object(s.a)(Promise.resolve(t)):Object(a.a)(t)}function _t(t,e,n){return n?function(t,e){return ft(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!xt(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every((function(n){return mt(t[n],e[n])}))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,r){if(n.segments.length>r.length)return!!xt(a=n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!xt(n.segments,r))return!1;for(var o in i.children){if(!n.children[o])return!1;if(!t(n.children[o],i.children[o]))return!1}return!0}var a=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!xt(n.segments,a)&&!!n.children.primary&&e(n.children.primary,i,s)}(e,n,n.segments)}(t.root,e.root)}var wt=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=at(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return kt.serialize(this)},t}(),Ot=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,yt(e,(function(t,e){return t.parent=n}))}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Dt(this)},t}(),Ct=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=at(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Lt(this)},t}();function xt(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function Et(t,e){var n=[];return yt(t.children,(function(t,i){"primary"===i&&(n=n.concat(e(t,i)))})),yt(t.children,(function(t,i){"primary"!==i&&(n=n.concat(e(t,i)))})),n}var St=function(){return function(){}}(),At=function(){function t(){}return t.prototype.parse=function(t){var e=new Bt(t);return new wt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Dt(e);if(n){var i=e.children.primary?t(e.children.primary,!1):"",r=[];return yt(e.children,(function(e,n){"primary"!==n&&r.push(n+":"+t(e,!1))})),r.length>0?i+"("+r.join("//")+")":i}var o=Et(e,(function(n,i){return"primary"===i?[t(e.children.primary,!1)]:[i+":"+t(n,!1)]}));return Dt(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map((function(t){var n=e[t];return Array.isArray(n)?n.map((function(e){return It(t)+"="+It(e)})).join("&"):It(t)+"="+It(n)}))).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),kt=new At;function Dt(t){return t.segments.map((function(t){return Lt(t)})).join("/")}function jt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function It(t){return jt(t).replace(/%3B/gi,";")}function Tt(t){return jt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Rt(t){return decodeURIComponent(t)}function Pt(t){return Rt(t.replace(/\+/g,"%20"))}function Lt(t){return""+Tt(t.path)+(e=t.parameters,Object.keys(e).map((function(t){return";"+Tt(t)+"="+Tt(e[t])})).join(""));var e}var Ft=/^[^\/()?;=#]+/;function Nt(t){var e=t.match(Ft);return e?e[0]:""}var Mt=/^[^=?&#]+/,Vt=/^[^?&#]+/,Bt=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ot([],{}):new Ot([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Ot(t,e)),n},t.prototype.parseSegment=function(){var t=Nt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Ct(Rt(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Nt(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=Nt(this.remaining);i&&this.capture(n=i)}t[Rt(e)]=Rt(n)}},t.prototype.parseQueryParam=function(t){var e=function(t){var e=t.match(Mt);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(Vt);return e?e[0]:""}(this.remaining);i&&this.capture(n=i)}var r=Pt(e),o=Pt(n);if(t.hasOwnProperty(r)){var a=t[r];Array.isArray(a)||(t[r]=a=[a]),a.push(o)}else t[r]=o}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Nt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '"+this.url+"'");var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");var o=this.parseChildren();e[r]=1===Object.keys(o).length?o.primary:new Ot([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Ht=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=Wt(t,this._root);return e?e.children.map((function(t){return t.value})):[]},t.prototype.firstChild=function(t){var e=Wt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=zt(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))},t.prototype.pathFromRoot=function(t){return zt(t,this._root).map((function(t){return t.value}))},t}();function Wt(t,e){var n,r;if(t===e.value)return e;try{for(var o=Object(i.h)(e.children),a=o.next();!a.done;a=o.next()){var s=Wt(t,a.value);if(s)return s}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function zt(t,e){var n,r;if(t===e.value)return[e];try{for(var o=Object(i.h)(e.children),a=o.next();!a.done;a=o.next()){var s=zt(t,a.value);if(s.length)return s.unshift(e),s}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return[]}var Ut=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Qt(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var Yt=function(t){function e(e,n){var i=t.call(this,e)||this;return i.snapshot=n,$t(i,e),i}return Object(i.c)(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Ht);function Gt(t,e){var n=function(t,e){var n=new Xt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Zt("",new Ut(n,[]))}(t,e),i=new c.a([new Ct("",{})]),r=new c.a({}),o=new c.a({}),a=new c.a({}),s=new c.a(""),u=new qt(i,r,a,s,o,"primary",e,n.root);return u.snapshot=n.root,new Yt(new Ut(u,[]),n)}var qt=function(){function t(t,e,n,i,r,o,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=a,this._futureSnapshot=s}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(m.a)((function(t){return at(t)})))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(m.a)((function(t){return at(t)})))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Kt(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],a=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(a.component)break;r--}}return function(t){return t.reduce((function(t,e){return{params:Object(i.a)(Object(i.a)({},t.params),e.params),data:Object(i.a)(Object(i.a)({},t.data),e.data),resolve:Object(i.a)(Object(i.a)({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(r))}var Xt=function(){function t(t,e,n,i,r,o,a,s,c,u,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=a,this.routeConfig=s,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=at(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=at(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map((function(t){return t.toString()})).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Zt=function(t){function e(e,n){var i=t.call(this,n)||this;return i.url=e,$t(i,n),i}return Object(i.c)(e,t),e.prototype.toString=function(){return Jt(this._root)},e}(Ht);function $t(t,e){e.value._routerState=t,e.children.forEach((function(e){return $t(t,e)}))}function Jt(t){var e=t.children.length>0?" { "+t.children.map(Jt).join(", ")+" } ":"";return""+t.value+e}function te(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,ft(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),ft(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&ne(n[0]))throw new Error("Root segment cannot have matrix parameters");var i=n.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(i&&i!==gt(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),oe=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function ae(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function se(t,e,n){if(t||(t=new Ot([],{})),0===t.segments.length&&t.hasChildren())return ce(t,e,n);var i=function(t,e,n){for(var i=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=t.segments[r],s=ae(n[i]),c=i0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!he(s,c,a))return o;i+=2}else{if(!he(s,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex0?new Ot([],((i={}).primary=t,i)):t;return new wt(r,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(m.a)((function(t){return new Ot([],t)}))):this.expandSegment(t,n,e,n.segments,i,!0)},t.prototype.expandChildren=function(t,e,n){var i=this;return function(n,r){if(0===Object.keys(n).length)return Object(a.a)({});var o=[],s=[],c={};return yt(n,(function(n,r){var a,u,l=(a=r,u=n,i.expandSegmentGroup(t,e,u,a)).pipe(Object(m.a)((function(t){return c[r]=t})));"primary"===r?o.push(l):s.push(l)})),a.a.apply(null,o.concat(s)).pipe(Object(b.a)(),S(),Object(m.a)((function(){return c})))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,s){var c=this;return a.a.apply(void 0,Object(i.f)(n)).pipe(Object(m.a)((function(i){return c.expandSegmentAgainstRoute(t,e,n,i,r,o,s).pipe(Object(A.a)((function(t){if(t instanceof ge)return Object(a.a)(null);throw t})))})),Object(b.a)(),Object(k.a)((function(t){return!!t})),Object(A.a)((function(t,n){if(t instanceof l.a||"EmptyError"===t.name){if(c.noLeftoversInUrl(e,r,o))return Object(a.a)(new Ot([],{}));throw new ge(e)}throw t})))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,i,r,o,a){return Se(i)!==o?ve(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o):ve(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?_e(o):this.lineralizeSegments(n,o).pipe(Object(D.a)((function(n){var o=new Ot(n,{});return r.expandSegment(t,o,e,n,i,!1)})))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,i,r,o){var a=this,s=Ce(e,i,r),c=s.consumedSegments,u=s.lastChild,l=s.positionalParamSegments;if(!s.matched)return ve(e);var p=this.applyRedirectCommands(c,i.redirectTo,l);return i.redirectTo.startsWith("/")?_e(p):this.lineralizeSegments(i,p).pipe(Object(D.a)((function(i){return a.expandSegment(t,e,n,i.concat(r.slice(u)),o,!1)})))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(m.a)((function(t){return n._loadedConfig=t,new Ot(r,{})}))):Object(a.a)(new Ot(r,{}));var s=Ce(e,n,r),c=s.consumedSegments,u=s.lastChild;if(!s.matched)return ve(e);var l=r.slice(u);return this.getChildConfig(t,n,r).pipe(Object(D.a)((function(t){var n=t.module,r=t.routes,s=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some((function(n){return Ee(t,e,n)&&"primary"!==Se(n)}))}(t,n,r)?{segmentGroup:xe(new Ot(e,function(t,e){var n,r,o={};o.primary=e;try{for(var a=Object(i.h)(t),s=a.next();!s.done;s=a.next()){var c=s.value;""===c.path&&"primary"!==Se(c)&&(o[Se(c)]=new Ot([],{}))}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}(r,new Ot(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return Ee(t,e,n)}))}(t,n,r)?{segmentGroup:xe(new Ot(t.segments,function(t,e,n,r){var o,a,s={};try{for(var c=Object(i.h)(n),u=c.next();!u.done;u=c.next()){var l=u.value;Ee(t,e,l)&&!r[Se(l)]&&(s[Se(l)]=new Ot([],{}))}}catch(p){o={error:p}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}return Object(i.a)(Object(i.a)({},r),s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,c,l,r),u=s.segmentGroup,p=s.slicedSegments;return 0===p.length&&u.hasChildren()?o.expandChildren(n,r,u).pipe(Object(m.a)((function(t){return new Ot(c,t)}))):0===r.length&&0===p.length?Object(a.a)(new Ot(c,{})):o.expandSegment(n,u,r,p,"primary",!0).pipe(Object(m.a)((function(t){return new Ot(c.concat(t.segments),t.children)})))})))},t.prototype.getChildConfig=function(t,e,n){var i=this;return e.children?Object(a.a)(new ut(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(a.a)(e._loadedConfig):function(t,e,n){var i,r=e.canLoad;return r&&0!==r.length?Object(s.a)(r).pipe(Object(m.a)((function(i){var r,o=t.get(i);if(function(t){return t&&me(t.canLoad)}(o))r=o.canLoad(e,n);else{if(!me(o))throw new Error("Invalid CanLoad guard");r=o(e,n)}return vt(r)}))).pipe(Object(b.a)(),(i=function(t){return!0===t},function(t){return t.lift(new j(i,void 0,t))})):Object(a.a)(!0)}(t.injector,e,n).pipe(Object(D.a)((function(n){return n?i.configLoader.load(t.injector,e).pipe(Object(m.a)((function(t){return e._loadedConfig=t,t}))):function(t){return new u.a((function(e){return e.error(st("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))}))}(e)}))):Object(a.a)(new ut([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(a.a)(n);if(i.numberOfChildren>1||!i.children.primary)return we(t.redirectTo);i=i.children.primary}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,i){var r=this.createSegmentGroup(t,e.root,n,i);return new wt(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return yt(t,(function(t,i){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);n[i]=e[r]}else n[i]=t})),n},t.prototype.createSegmentGroup=function(t,e,n,i){var r=this,o=this.createSegments(t,e.segments,n,i),a={};return yt(e.children,(function(e,o){a[o]=r.createSegmentGroup(t,e,n,i)})),new Ot(o,a)},t.prototype.createSegments=function(t,e,n,i){var r=this;return e.map((function(e){return e.path.startsWith(":")?r.findPosParam(t,e,i):r.findOrReturn(e,n)}))},t.prototype.findPosParam=function(t,e,n){var i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return i},t.prototype.findOrReturn=function(t,e){var n,r,o=0;try{for(var a=Object(i.h)(e),s=a.next();!s.done;s=a.next()){var c=s.value;if(c.path===t.path)return e.splice(o),c;o++}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return t},t}();function Ce(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(e.matcher||ct)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function xe(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Ot(t.segments.concat(e.segments),e.children)}return t}function Ee(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Se(t){return t.outlet||"primary"}var Ae=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),ke=function(){return function(t,e){this.component=t,this.route=e}}();function De(t,e,n){var i=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function je(t,e,n,i,r){void 0===r&&(r={canDeactivateChecks:[],canActivateChecks:[]});var o=Qt(e);return t.children.forEach((function(t){!function(t,e,n,i,r){void 0===r&&(r={canDeactivateChecks:[],canActivateChecks:[]});var o=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!xt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!xt(t.url,e.url)||!ft(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ee(t,e)||!ft(t.queryParams,e.queryParams);case"paramsChange":default:return!ee(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new Ae(i)):(o.data=a.data,o._resolvedData=a._resolvedData),je(t,e,o.component?s?s.children:null:n,i,r),c&&r.canDeactivateChecks.push(new ke(s&&s.outlet&&s.outlet.component||null,a))}else a&&Ie(e,s,r),r.canActivateChecks.push(new Ae(i)),je(t,null,o.component?s?s.children:null:n,i,r)}(t,o[t.value.outlet],n,i.concat([t.value]),r),delete o[t.value.outlet]})),yt(o,(function(t,e){return Ie(t,n.getContext(e),r)})),r}function Ie(t,e,n){var i=Qt(t),r=t.value;yt(i,(function(t,i){Ie(t,r.component?e?e.children.getContext(i):null:e,n)})),n.canDeactivateChecks.push(new ke(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var Te=Symbol("INITIAL_VALUE");function Re(){return Object(T.a)((function(t){return p.a.apply(void 0,Object(i.f)(t.map((function(t){return t.pipe(Object(R.a)(1),Object(P.a)(Te))})))).pipe(Object(L.a)((function(t,e){var n=!1;return e.reduce((function(t,i,r){if(t!==Te)return t;if(i===Te&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||be(i))return i}return t}),t)}),Te),Object(g.a)((function(t){return t!==Te})),Object(m.a)((function(t){return be(t)?t:!0===t})),Object(R.a)(1))}))}function Pe(t,e){return null!==t&&e&&e(new et(t)),Object(a.a)(!0)}function Le(t,e){return null!==t&&e&&e(new J(t)),Object(a.a)(!0)}function Fe(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return Object(a.a)(!0);var r=i.map((function(i){return Object(h.a)((function(){var r,o=De(i,e,n);if(function(t){return t&&me(t.canActivate)}(o))r=vt(o.canActivate(e,t));else{if(!me(o))throw new Error("Invalid CanActivate guard");r=vt(o(e,t))}return r.pipe(Object(k.a)())}))}));return Object(a.a)(r).pipe(Re())}function Ne(t,e,n){var i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map((function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return Object(h.a)((function(){var r=e.guards.map((function(r){var o,a=De(r,e.node,n);if(function(t){return t&&me(t.canActivateChild)}(a))o=vt(a.canActivateChild(i,t));else{if(!me(a))throw new Error("Invalid CanActivateChild guard");o=vt(a(i,t))}return o.pipe(Object(k.a)())}));return Object(a.a)(r).pipe(Re())}))}));return Object(a.a)(r).pipe(Re())}var Me=function(){return function(){}}(),Ve=function(){function t(t,e,n,i,r,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}return t.prototype.recognize=function(){try{var t=We(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Xt([],Object.freeze({}),Object.freeze(Object(i.a)({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ut(n,e),o=new Zt(this.url,r);return this.inheritParamsAndData(o._root),Object(a.a)(o)}catch(s){return new u.a((function(t){return t.error(s)}))}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,i=Kt(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,i=this,r=Et(e,(function(e,n){return i.processSegmentGroup(t,e,n)}));return n={},r.forEach((function(t){var e=n[t.value.outlet];if(e){var i=e.url.map((function(t){return t.toString()})).join("/"),r=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '"+i+"' and '"+r+"'.")}n[t.value.outlet]=t.value})),function(t){t.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)}))}(r),r},t.prototype.processSegment=function(t,e,n,r){var o,a;try{for(var s=Object(i.h)(t),c=s.next();!c.done;c=s.next()){var u=c.value;try{return this.processSegmentAgainstRoute(u,e,n,r)}catch(l){if(!(l instanceof Me))throw l}}}catch(p){o={error:p}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new Me},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new Me;if((t.outlet||"primary")!==r)throw new Me;var o,a=[],s=[];if("**"===t.path){var c=n.length>0?gt(n).parameters:{};o=new Xt(n,c,Object.freeze(Object(i.a)({},this.urlTree.queryParams)),this.urlTree.fragment,Qe(t),r,t.component,t,Be(e),He(e)+n.length,Ye(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Me;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||ct)(n,t,e);if(!r)throw new Me;var o={};yt(r.posParams,(function(t,e){o[e]=t.path}));var a=r.consumed.length>0?Object(i.a)(Object(i.a)({},o),r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a}}(e,t,n);a=u.consumedSegments,s=n.slice(u.lastChild),o=new Xt(a,u.parameters,Object.freeze(Object(i.a)({},this.urlTree.queryParams)),this.urlTree.fragment,Qe(t),r,t.component,t,Be(e),He(e)+a.length,Ye(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),p=We(e,a,s,l,this.relativeLinkResolution),h=p.segmentGroup,d=p.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(l,h);return[new Ut(o,f)]}if(0===l.length&&0===d.length)return[new Ut(o,[])];var m=this.processSegment(l,h,d,"primary");return[new Ut(o,m)]},t}();function Be(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function He(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function We(t,e,n,r,o){if(n.length>0&&function(t,e,n){return n.some((function(n){return ze(t,e,n)&&"primary"!==Ue(n)}))}(t,n,r)){var a=new Ot(e,function(t,e,n,r){var o,a,s={};s.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var c=Object(i.h)(n),u=c.next();!u.done;u=c.next()){var l=u.value;if(""===l.path&&"primary"!==Ue(l)){var p=new Ot([],{});p._sourceSegment=t,p._segmentIndexShift=e.length,s[Ue(l)]=p}}}catch(h){o={error:h}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}return s}(t,e,r,new Ot(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((function(n){return ze(t,e,n)}))}(t,n,r)){var s=new Ot(t.segments,function(t,e,n,r,o,a){var s,c,u={};try{for(var l=Object(i.h)(r),p=l.next();!p.done;p=l.next()){var h=p.value;if(ze(t,n,h)&&!o[Ue(h)]){var d=new Ot([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===a?t.segments.length:e.length,u[Ue(h)]=d}}}catch(f){s={error:f}}finally{try{p&&!p.done&&(c=l.return)&&c.call(l)}finally{if(s)throw s.error}}return Object(i.a)(Object(i.a)({},o),u)}(t,e,n,r,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var c=new Ot(t.segments,t.children);return c._sourceSegment=t,c._segmentIndexShift=e.length,{segmentGroup:c,slicedSegments:n}}function ze(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Ue(t){return t.outlet||"primary"}function Qe(t){return t.data||{}}function Ye(t){return t.resolve||{}}function Ge(t,e,n,i){var r=De(t,e,i);return vt(r.resolve?r.resolve(e,n):r(e,n))}function qe(t){return function(e){return e.pipe(Object(T.a)((function(e){var n=t(e);return n?Object(s.a)(n).pipe(Object(m.a)((function(){return e}))):Object(s.a)([e])})))}}var Ke=function(){return function(){}}(),Xe=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),Ze=new o.r("ROUTES"),$e=function(){function t(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(m.a)((function(i){n.onLoadEndListener&&n.onLoadEndListener(e);var r=i.create(t);return new ut(bt(r.injector.get(Ze)).map(dt),r)})))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Object(s.a)(this.loader.load(t)):vt(t()).pipe(Object(D.a)((function(t){return t instanceof o.w?Object(a.a)(t):Object(s.a)(e.compiler.compileModuleAsync(t))})))},t}(),Je=function(){return function(){}}(),tn=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function en(t){throw t}function nn(t,e,n){return e.parse("/")}function rn(t,e){return Object(a.a)(null)}var on=function(){function t(t,e,n,i,r,a,s,u){var l=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new d.a,this.errorHandler=en,this.malformedUriErrorHandler=nn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:rn,afterPreactivation:rn},this.urlHandlingStrategy=new tn,this.routeReuseStrategy=new Xe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=r.get(o.y),this.console=r.get(o.ab);var p=r.get(o.A);this.isNgZoneEnabled=p instanceof o.A,this.resetConfig(u),this.currentUrlTree=new wt(new Ot([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new $e(a,s,(function(t){return l.triggerEvent(new Z(t))}),(function(t){return l.triggerEvent(new $(t))})),this.routerState=Gt(this.currentUrlTree,this.rootComponentType),this.transitions=new c.a({id: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()}return t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(Object(g.a)((function(t){return 0!==t.id})),Object(m.a)((function(t){return Object(i.a)(Object(i.a)({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),Object(T.a)((function(t){var r,o,u,l=!1,p=!1;return Object(a.a)(t).pipe(Object(M.a)((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object(i.a)(Object(i.a)({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),Object(T.a)((function(t){var r,o,s,c,u=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||u)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(a.a)(t).pipe(Object(T.a)((function(t){var i=e.transitions.getValue();return n.next(new W(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==e.transitions.getValue()?f.a:[t]})),Object(T.a)((function(t){return Promise.resolve(t)})),(r=e.ngModule.injector,o=e.configLoader,s=e.urlSerializer,c=e.config,function(t){return t.pipe(Object(T.a)((function(t){return function(t,e,n,i,r){return new Oe(t,e,n,i,r).apply()}(r,o,s,t.extractedUrl,c).pipe(Object(m.a)((function(e){return Object(i.a)(Object(i.a)({},t),{urlAfterRedirects:e})})))})))}),Object(M.a)((function(t){e.currentNavigation=Object(i.a)(Object(i.a)({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,n,r,o,a){return function(r){return r.pipe(Object(D.a)((function(r){return function(t,e,n,i,r,o){return void 0===r&&(r="emptyOnly"),void 0===o&&(o="legacy"),new Ve(t,e,n,i,r,o).recognize()}(t,n,r.urlAfterRedirects,(s=r.urlAfterRedirects,e.serializeUrl(s)),o,a).pipe(Object(m.a)((function(t){return Object(i.a)(Object(i.a)({},r),{targetSnapshot:t})})));var s})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Object(M.a)((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),Object(M.a)((function(t){var i=new Y(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(i)})));if(u&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var l=t.extractedUrl,p=t.source,h=t.restoredState,d=t.extras,b=new W(t.id,e.serializeUrl(l),p,h);n.next(b);var g=Gt(l,e.rootComponentType).snapshot;return Object(a.a)(Object(i.a)(Object(i.a)({},t),{targetSnapshot:g,urlAfterRedirects:l,extras:Object(i.a)(Object(i.a)({},d),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),f.a})),qe((function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),Object(M.a)((function(t){var n=new G(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),Object(m.a)((function(t){return Object(i.a)(Object(i.a)({},t),{guards:(n=t.targetSnapshot,r=t.currentSnapshot,o=e.rootContexts,a=n._root,je(a,r?r._root:null,o,[a.value]))});var n,r,o,a})),function(t,e){return function(n){return n.pipe(Object(D.a)((function(n){var r=n.targetSnapshot,o=n.currentSnapshot,c=n.guards,u=c.canActivateChecks,l=c.canDeactivateChecks;return 0===l.length&&0===u.length?Object(a.a)(Object(i.a)(Object(i.a)({},n),{guardsResult:!0})):function(t,e,n,i){return Object(s.a)(t).pipe(Object(D.a)((function(t){return function(t,e,n,i,r){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(a.a)(!0);var s=o.map((function(o){var a,s=De(o,e,r);if(function(t){return t&&me(t.canDeactivate)}(s))a=vt(s.canDeactivate(t,e,n,i));else{if(!me(s))throw new Error("Invalid CanDeactivate guard");a=vt(s(t,e,n,i))}return a.pipe(Object(k.a)())}));return Object(a.a)(s).pipe(Re())}(t.component,t.route,n,e,i)})),Object(k.a)((function(t){return!0!==t}),!0))}(l,r,o,t).pipe(Object(D.a)((function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return Object(s.a)(e).pipe(Object(F.a)((function(e){return Object(s.a)([Le(e.route.parent,i),Pe(e.route,i),Ne(t,e.path,n),Fe(t,e.route,n)]).pipe(Object(b.a)(),Object(k.a)((function(t){return!0!==t}),!0))})),Object(k.a)((function(t){return!0!==t}),!0))}(r,u,t,e):Object(a.a)(n)})),Object(m.a)((function(t){return Object(i.a)(Object(i.a)({},n),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),Object(M.a)((function(t){if(be(t.guardsResult)){var n=st('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}})),Object(M.a)((function(t){var n=new q(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),Object(g.a)((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var i=new U(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(i),t.resolve(!1),!1}return!0})),qe((function(t){if(t.guards.canActivateChecks.length)return Object(a.a)(t).pipe(Object(M.a)((function(t){var n=new K(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),(n=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(Object(D.a)((function(t){var e=t.targetSnapshot,o=t.guards.canActivateChecks;return o.length?Object(s.a)(o).pipe(Object(F.a)((function(t){return function(t,e,n,r){return function(t,e,n,i){var r=Object.keys(t);if(0===r.length)return Object(a.a)({});if(1===r.length){var o=r[0];return Ge(t[o],e,n,i).pipe(Object(m.a)((function(t){var e;return(e={})[o]=t,e})))}var c={};return Object(s.a)(r).pipe(Object(D.a)((function(r){return Ge(t[r],e,n,i).pipe(Object(m.a)((function(t){return c[r]=t,t})))}))).pipe(S(),Object(m.a)((function(){return c})))}(t._resolve,t,e,r).pipe(Object(m.a)((function(e){return t._resolvedData=e,t.data=Object(i.a)(Object(i.a)({},t.data),Kt(t,n).resolve),null})))}(t.route,e,n,r)})),function(t,e){return arguments.length>=2?function(n){return Object(N.a)(Object(L.a)(t,e),_(1),Object(x.a)(e))(n)}:function(e){return Object(N.a)(Object(L.a)((function(e,n,i){return t(e,n,i+1)})),_(1))(e)}}((function(t,e){return t})),Object(m.a)((function(e){return t}))):Object(a.a)(t)})))}),Object(M.a)((function(t){var n=new X(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})));var n,r})),qe((function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),Object(m.a)((function(t){var n,r,o,a=(o=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){(l=r.value)._futureSnapshot=n.value;var o=function(e,n,r){return n.children.map((function(n){var o,a;try{for(var s=Object(i.h)(r.children),c=s.next();!c.done;c=s.next()){var u=c.value;if(e.shouldReuseRoute(u.value.snapshot,n.value))return t(e,n,u)}}catch(l){o={error:l}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}return t(e,n)}))}(e,n,r);return new Ut(l,o)}var a=e.retrieve(n.value);if(a){var s=a.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var i=0;ir;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new oe(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(a,e,t),c=s.processChildren?ce(s.segmentGroup,s.index,a.commands):se(s.segmentGroup,s.index,a.commands);return ie(s.segmentGroup,c,e,r,o)}(l,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),Object(o.X)()&&this.isNgZoneEnabled&&!o.A.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=be(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e-1},e.\u0275fac=function(t){return new(t||e)(a.ac(o.d),a.ac(A),a.ac(a.ab),a.ac(k,8))},e.\u0275prov=a.Mb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(f),multi:!0,deps:[o.d,A,a.ab,[new a.B,k]]},{provide:A,useClass:D,deps:[]}],I=function(){function t(){}return t.\u0275mod=a.Ob({type:t}),t.\u0275inj=a.Nb({factory:function(e){return new(e||t)},providers:j}),t}(),T=["alt","control","meta","shift"],R={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},P={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},L={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},F=function(t){function e(e){return t.call(this,e)||this}var n;return Object(r.c)(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,i){var r=n.parseEventName(e),a=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return Object(o.D)().onAndCancel(t,r.domEventName,a)}))},e.parseEventName=function(t){var e=t.toLowerCase().split("."),i=e.shift();if(0===e.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(e.pop()),o="";if(T.forEach((function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),o+=t+".")})),o+=r,0!=e.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a},e.getEventFullKey=function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&P.hasOwnProperty(e)&&(e=P[e]))}return R[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),T.forEach((function(i){i!=n&&(0,L[i])(t)&&(e+=i+".")})),e+=n},e.eventCallback=function(t,e,i){return function(r){n.getEventFullKey(r)===t&&i.runGuarded((function(){return e(r)}))}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.\u0275fac=function(t){return new(t||e)(a.ac(o.d))},e.\u0275prov=a.Mb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(f),N=function(){function t(){}return t.\u0275prov=Object(a.Mb)({factory:function(){return Object(a.ac)(V)},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}();function M(t){return new V(t.get(o.d))}var V=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(r.c)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case a.J.NONE:return e;case a.J.HTML:return Object(a.gb)(e,"HTML")?Object(a.zb)(e):Object(a.db)(this._doc,String(e));case a.J.STYLE:return Object(a.gb)(e,"Style")?Object(a.zb)(e):Object(a.eb)(e);case a.J.SCRIPT:if(Object(a.gb)(e,"Script"))return Object(a.zb)(e);throw new Error("unsafe value used in a script context");case a.J.URL:return Object(a.qb)(e),Object(a.gb)(e,"URL")?Object(a.zb)(e):Object(a.fb)(String(e));case a.J.RESOURCE_URL:if(Object(a.gb)(e,"ResourceURL"))return Object(a.zb)(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.bypassSecurityTrustHtml=function(t){return Object(a.hb)(t)},e.prototype.bypassSecurityTrustStyle=function(t){return Object(a.kb)(t)},e.prototype.bypassSecurityTrustScript=function(t){return Object(a.jb)(t)},e.prototype.bypassSecurityTrustUrl=function(t){return Object(a.lb)(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return Object(a.ib)(t)},e.\u0275prov=Object(a.Mb)({factory:function(){return M(Object(a.ac)(a.p))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(a.ac(o.d))},e}(N),B=[{provide:a.C,useValue:o.C},{provide:a.D,useValue:function(){s.makeCurrent(),p.init()},multi:!0},{provide:o.d,useFactory:function(){return Object(a.xb)(document),document},deps:[]}],H=Object(a.S)(a.Y,"browser",B),W=[[],{provide:a.bb,useValue:"root"},{provide:a.n,useFactory:function(){return new a.n},deps:[]},{provide:h,useClass:E,multi:!0,deps:[o.d,a.A,a.C]},{provide:h,useClass:F,multi:!0,deps:[o.d]},[],{provide:w,useClass:w,deps:[d,b,a.c]},{provide:a.G,useExisting:w},{provide:m,useExisting:b},{provide:b,useClass:b,deps:[o.d]},{provide:a.N,useClass:a.N,deps:[a.A]},{provide:d,useClass:d,deps:[h,a.A]},[]],z=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var e;return e=t,t.withServerTransition=function(t){return{ngModule:e,providers:[{provide:a.c,useValue:t.appId},{provide:u,useExisting:a.c},l]}},t.\u0275mod=a.Ob({type:t}),t.\u0275inj=a.Nb({factory:function(n){return new(n||t)(a.ac(e,12))},providers:W,imports:[o.c,a.f]}),t}();"undefined"!=typeof window&&window},ZiY4:function(t,e,n){"use strict";n.d(e,"a",(function(){return N})),n.d(e,"b",(function(){return W})),n.d(e,"c",(function(){return H}));var i=n("mrSG"),r=n("m47I"),o=n("349r"),a=n("CcnG"),s=n("eO+G"),c=n("pugT"),u=n("K9Ia"),l=n("lYZG"),p=n("p0ib"),h=n("F/XL"),d=n("bne5"),f=n("Ip0R"),m=n("MQZC"),b=n("tzrX"),g=n("ScIB"),y=n("BAGj"),v=n("UM4T"),_=n("gIcY"),w=n("dlst"),O=n("t9fZ"),C=n("15JJ"),x=n("VnD/"),E=n("67Y/"),S=n("xMyE"),A=n("vubp"),k=n("HHjO"),D=["panel"];function j(t,e){if(1&t&&(a.Wb(0,"div",0,1),a.nc(2),a.Vb()),2&t){var n=a.ic();a.pc("id",n.id)("ngClass",n._classList)}}var I=["*"],T=0,R=function(){return function(t,e){this.source=t,this.option=e}}(),P=function(){return function(){}}(),L=Object(s.y)(P),F=new a.r("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),N=function(t){function e(e,n,i){var r=t.call(this)||this;return r._changeDetectorRef=e,r._elementRef=n,r._activeOptionChanges=c.a.EMPTY,r.showPanel=!1,r._isOpen=!1,r.displayWith=null,r.optionSelected=new a.o,r.opened=new a.o,r.closed=new a.o,r.optionActivated=new a.o,r._classList={},r.id="mat-autocomplete-"+T++,r._autoActiveFirstOption=!!i.autoActiveFirstOption,r}return Object(i.c)(e,t),Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen&&this.showPanel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoActiveFirstOption",{get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=Object(o.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classList",{set:function(t){this._classList=t&&t.length?t.split(" ").reduce((function(t,e){return t[e.trim()]=!0,t}),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var t=this;this._keyManager=new r.b(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe((function(e){t.optionActivated.emit({source:t,option:t.options.toArray()[e]||null})})),this._setVisibility()},e.prototype.ngOnDestroy=function(){this._activeOptionChanges.unsubscribe()},e.prototype._setScrollTop=function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)},e.prototype._getScrollTop=function(){return this.panel?this.panel.nativeElement.scrollTop:0},e.prototype._setVisibility=function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()},e.prototype._emitSelectEvent=function(t){var e=new R(this,t);this.optionSelected.emit(e)},e.prototype._setVisibilityClasses=function(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel},e.\u0275fac=function(t){return new(t||e)(a.Qb(a.h),a.Qb(a.l),a.Qb(F))},e.\u0275cmp=a.Kb({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){var i;1&t&&(a.Jb(n,s.n,!0),a.Jb(n,s.m,!0)),2&t&&(a.vc(i=a.fc())&&(e.options=i),a.vc(i=a.fc())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(a.Dc(a.M,!0),a.Mc(D,!0)),2&t&&(a.vc(n=a.fc())&&(e.template=n.first),a.vc(n=a.fc())&&(e.panel=n.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],displayWith:"displayWith",panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[a.Cb([{provide:s.g,useExisting:e}]),a.Ab],ngContentSelectors:I,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(a.oc(),a.Fc(0,j,3,2,"ng-template"))},directives:[f.l],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}\n"],encapsulation:2,changeDetection:0}),e}(L),M=new a.r("mat-autocomplete-scroll-strategy"),V={provide:M,deps:[m.c],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},B={provide:_.j,useExisting:Object(a.V)((function(){return H})),multi:!0},H=function(){function t(t,e,n,r,o,a,s,h,d,f){var m=this;this._element=t,this._overlay=e,this._viewContainerRef=n,this._zone=r,this._changeDetectorRef=o,this._dir=s,this._formField=h,this._document=d,this._viewportRuler=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=c.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new u.a,this._windowBlurHandler=function(){m._canOpenOnNextFocus=m._document.activeElement!==m._element.nativeElement||m.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Object(l.a)((function(){return m.autocomplete&&m.autocomplete.options?p.a.apply(void 0,Object(i.f)(m.autocomplete.options.map((function(t){return t.onSelectionChange})))):m._zone.onStable.asObservable().pipe(Object(O.a)(1),Object(C.a)((function(){return m.optionSelections})))})),this._scrollStrategy=a}return Object.defineProperty(t.prototype,"autocompleteDisabled",{get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=Object(o.c)(t)},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this,e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular((function(){return e.addEventListener("blur",t._windowBlurHandler)}))},t.prototype.ngOnChanges=function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())},t.prototype.ngOnDestroy=function(){var t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()},Object.defineProperty(t.prototype,"panelOpen",{get:function(){return this._overlayAttached&&this.autocomplete.showPanel},enumerable:!0,configurable:!0}),t.prototype.openPanel=function(){this._attachOverlay(),this._floatLabel()},t.prototype.closePanel=function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())},t.prototype.updatePosition=function(){this._overlayAttached&&this._overlayRef.updatePosition()},Object.defineProperty(t.prototype,"panelClosingActions",{get:function(){var t=this;return Object(p.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Object(x.a)((function(){return t._overlayAttached}))),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Object(x.a)((function(){return t._overlayAttached}))):Object(h.a)()).pipe(Object(E.a)((function(t){return t instanceof s.p?t:null})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeOption",{get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null},enumerable:!0,configurable:!0}),t.prototype._getOutsideClickStream=function(){var t=this;return Object(p.a)(Object(d.a)(this._document,"click"),Object(d.a)(this._document,"touchend")).pipe(Object(x.a)((function(e){var n=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,i=t._formField?t._formField._elementRef.nativeElement:null;return t._overlayAttached&&n!==t._element.nativeElement&&(!i||!i.contains(n))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(n)})))},t.prototype.writeValue=function(t){var e=this;Promise.resolve(null).then((function(){return e._setTriggerValue(t)}))},t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this._element.nativeElement.disabled=t},t.prototype._handleKeydown=function(t){var e=t.keyCode;if(e===g.e&&t.preventDefault(),this.activeOption&&e===g.d&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=e===g.n||e===g.b;this.panelOpen||e===g.m?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption()}},t.prototype._handleInput=function(t){var e=t.target,n=e.value;"number"===e.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())},t.prototype._handleFocus=function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0},t.prototype._floatLabel=function(t){void 0===t&&(t=!1),this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)},t.prototype._resetLabel=function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)},t.prototype._scrollToOption=function(){var t=this.autocomplete._keyManager.activeItemIndex||0,e=Object(s.v)(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{var n=Object(s.w)(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(n)}},t.prototype._subscribeToClosingActions=function(){var t=this,e=this._zone.onStable.asObservable().pipe(Object(O.a)(1)),n=this.autocomplete.options.changes.pipe(Object(S.a)((function(){return t._positionStrategy.reapplyLastPosition()})),Object(A.a)(0));return Object(p.a)(e,n).pipe(Object(C.a)((function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions})),Object(O.a)(1)).subscribe((function(e){return t._setValueAndClose(e)}))},t.prototype._destroyPanel=function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)},t.prototype._setTriggerValue=function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n},t.prototype._setValueAndClose=function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()},t.prototype._clearPreviousSelectedOption=function(t){this.autocomplete.options.forEach((function(e){e!=t&&e.selected&&e.deselect()}))},t.prototype._attachOverlay=function(){var t=this;if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!Object(y.c)(this._element.nativeElement));var e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new v.i(this.autocomplete.template,this._viewContainerRef),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe((function(e){(e.keyCode===g.e||e.keyCode===g.n&&e.altKey)&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())})),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe((function(){t.panelOpen&&e&&e.updateSize({width:t._getPanelWidth()})})))),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()},t.prototype._getOverlayConfig=function(){return new m.d({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})},t.prototype._getOverlayPosition=function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t},t.prototype._setStrategyPositions=function(t){var e,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"}];e="above"===this.position?r:"below"===this.position?n:Object(i.f)(n,r),t.withPositions(e)},t.prototype._getConnectedElement=function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element},t.prototype._getPanelWidth=function(){return this.autocomplete.panelWidth||this._getHostWidth()},t.prototype._getHostWidth=function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width},t.prototype._resetActiveItem=function(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)},t.prototype._canOpen=function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled},t.prototype._getWindow=function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window},t.\u0275fac=function(e){return new(e||t)(a.Qb(a.l),a.Qb(m.c),a.Qb(a.P),a.Qb(a.A),a.Qb(a.h),a.Qb(M),a.Qb(k.b,8),a.Qb(w.a,9),a.Qb(f.d,8),a.Qb(b.e))},t.\u0275dir=a.Lb({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&a.ec("focusin",(function(){return e._handleFocus()}))("blur",(function(){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&a.Eb("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[a.Cb([B]),a.Bb]}),t}(),W=function(){function t(){}return t.\u0275mod=a.Ob({type:t}),t.\u0275inj=a.Nb({factory:function(e){return new(e||t)},providers:[V],imports:[[s.o,m.f,s.i,f.c],b.b,s.o,s.i]}),t}()},Zn8D:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("psW0"),r=n("mChF");function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(i.a)(r.a,t)}},aPcS:function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return w})),n.d(e,"c",(function(){return l}));var i=n("CcnG"),r=n("eO+G"),o=n("349r"),a=n("mrSG"),s=n("HHjO"),c=["*"],u=new i.r("MAT_GRID_LIST"),l=function(){function t(t,e){this._element=t,this._gridList=e,this._rowspan=1,this._colspan=1}return Object.defineProperty(t.prototype,"rowspan",{get:function(){return this._rowspan},set:function(t){this._rowspan=Math.round(Object(o.f)(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colspan",{get:function(){return this._colspan},set:function(t){this._colspan=Math.round(Object(o.f)(t))},enumerable:!0,configurable:!0}),t.prototype._setStyle=function(t,e){this._element.nativeElement.style[t]=e},t.\u0275fac=function(e){return new(e||t)(i.Qb(i.l),i.Qb(u,8))},t.\u0275cmp=i.Kb({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&i.Eb("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:c,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(t,e){1&t&&(i.oc(),i.Wb(0,"figure",0),i.nc(1),i.Vb())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.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;width:100%;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}\n"],encapsulation:2,changeDetection:0}),t}(),p=function(){function t(){this.columnIndex=0,this.rowIndex=0}return Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowIndex+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowspan",{get:function(){var t=Math.max.apply(Math,Object(a.f)(this.tracker));return t>1?this.rowCount+t-1:this.rowCount},enumerable:!0,configurable:!0}),t.prototype.update=function(t,e){var n=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map((function(t){return n._trackTile(t)}))},t.prototype._trackTile=function(t){var e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new h(this.rowIndex,e)},t.prototype._findMatchingGap=function(t){if(t>this.tracker.length)throw Error("mat-grid-list: tile with colspan "+t+' is wider than grid with cols="'+this.tracker.length+'".');var e=-1,n=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e)):-1!=(e=this.tracker.indexOf(0,this.columnIndex))?(n=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e))}while(n-e')},t.prototype._checkRowHeight=function(){this._rowHeight||this._setTileStyler("1:1")},t.prototype._setTileStyler=function(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new g:t&&t.indexOf(":")>-1?new b(t):new m(t)},t.prototype._layoutTiles=function(){var t=this;this._tileCoordinator||(this._tileCoordinator=new p);var e=this._tileCoordinator,n=this._tiles.filter((function(e){return!e._gridList||e._gridList===t})),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,n),this._tileStyler.init(this.gutterSize,e,this.cols,i),n.forEach((function(n,i){var r=e.positions[i];t._tileStyler.setStyle(n,r.row,r.col)})),this._setListStyle(this._tileStyler.getComputedHeight())},t.prototype._setListStyle=function(t){t&&(this._element.nativeElement.style[t[0]]=t[1])},t.\u0275fac=function(e){return new(e||t)(i.Qb(i.l),i.Qb(s.b,8))},t.\u0275cmp=i.Kb({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,n){var r;1&t&&i.Jb(n,l,!0),2&t&&i.vc(r=i.fc())&&(e._tiles=r)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&i.Eb("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[i.Cb([{provide:u,useExisting:t}])],ngContentSelectors:c,decls:2,vars:0,template:function(t,e){1&t&&(i.oc(),i.Wb(0,"div"),i.nc(1),i.Vb())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.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;width:100%;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}\n"],encapsulation:2,changeDetection:0}),t}(),w=function(){function t(){}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},imports:[[r.k,r.i],r.k,r.i]}),t}()},aZ40:function(t,e,n){var i,r,o=n("Wogr");o.alloc?(i=o.alloc(512),r=o.alloc(256)):(i=new o(512),r=new o(256)),function(){for(var t=1,e=0;e<255;e++)i[e]=t,r[t]=e,256&(t<<=1)&&(t^=285);for(e=255;e<512;e++)i[e]=i[e-255]}(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return r[t]},e.exp=function(t){return i[t]},e.mul=function(t,e){return 0===t||0===e?0:i[r[t]+r[e]]}},ad02:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("mrSG"),r=n("FFOo");function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.compare,this.keySelector))},t}(),s=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.keySelector=i,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return i.c(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))},e}(r.a)},b7mW:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},bCQu:function(t,e,n){!function(e){"use strict";var n={bytesToHex:function(t){return function(t){return t.map((function(t){return(e=t.toString(16)).length>2?e:Array(2-e.length+1).join("0")+e;var e})).join("")}(t)},hexToBytes:function(t){if(t.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===t.indexOf("0x")&&(t=t.slice(2)),t.match(/../g).map((function(t){return parseInt(t,16)}))}};t.exports?t.exports=n:e.convertHex=n}(this)},bdpe:function(t,e,n){"use strict";n.d(e,"a",(function(){return D}));var i=n("4lrr"),r=n("wHSu"),o=n("cpEJ"),a=n("7o2P"),s=n("7nzP"),c=n("CcnG"),u=n("KELG"),l=n("21Lb"),p=n("Ip0R"),h=n("hUWP"),d=n("bwdU"),f=n("qLAh"),m=n("Nv++"),b=n("M4kG"),g=n("FZ+F"),y=n("O4ig"),v=n("dEYt");function _(t,e){1&t&&(c.Ub(0),c.Hc(1," (zero amount) "),c.Tb())}function w(t,e){if(1&t&&(c.Ub(0),c.Hc(1),c.jc(2,"number"),c.Tb()),2&t){var n=c.ic();c.Db(1),c.Jc("",c.kc(2,1,n.invoice.amountSettled)," Sats")}}function O(t,e){1&t&&(c.Ub(0),c.Hc(1,"-"),c.Tb())}function C(t,e){if(1&t&&(c.Wb(0,"div"),c.Rb(1,"mat-divider",17),c.Wb(2,"div",12),c.Wb(3,"div",25),c.Wb(4,"h4",14),c.Hc(5,"Date Expiry"),c.Vb(),c.Wb(6,"span",15),c.Hc(7),c.Vb(),c.Vb(),c.Wb(8,"div",26),c.Wb(9,"h4",14),c.Hc(10,"Date Settled"),c.Vb(),c.Wb(11,"span",18),c.Hc(12),c.Vb(),c.Vb(),c.Vb(),c.Rb(13,"mat-divider",17),c.Wb(14,"div",12),c.Wb(15,"div",19),c.Wb(16,"h4",14),c.Hc(17,"Payment Hash"),c.Vb(),c.Wb(18,"span",18),c.Hc(19),c.Vb(),c.Vb(),c.Vb(),c.Rb(20,"mat-divider",17),c.Wb(21,"div",12),c.Wb(22,"div",19),c.Wb(23,"h4",14),c.Hc(24,"Node Id"),c.Vb(),c.Wb(25,"span",18),c.Hc(26),c.Vb(),c.Vb(),c.Vb(),c.Rb(27,"mat-divider",17),c.Vb()),2&t){var n=c.ic();c.Db(7),c.Ic(n.invoice.expiresAtStr),c.Db(5),c.Ic(n.invoice.receivedAtStr),c.Db(7),c.Ic(n.invoice.paymentHash),c.Db(7),c.Ic(n.invoice.nodeId)}}function x(t,e){1&t&&(c.Wb(0,"p"),c.Hc(1,"Show Advanced"),c.Vb())}function E(t,e){1&t&&(c.Wb(0,"p"),c.Hc(1,"Hide Advanced"),c.Vb())}var S=function(t){return{"display-none":t}},A=function(t){return{"xs-scroll-y":t}},k=function(t,e){return{"mt-2":t,"mt-1":e}},D=function(){function t(t,e,n,i,o){this.dialogRef=t,this.data=e,this.logger=n,this.commonService=i,this.snackBar=o,this.faReceipt=r.C,this.faExclamationTriangle=r.n,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.o}return t.prototype.ngOnInit=function(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.o.XS&&(this.qrWidth=220)},t.prototype.onClose=function(){this.dialogRef.close(!1)},t.prototype.onShowAdvanced=function(){this.showAdvanced=!this.showAdvanced},t.prototype.onCopyPayment=function(t){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+t)},t.\u0275fac=function(e){return new(e||t)(c.Qb(i.f),c.Qb(i.a),c.Qb(o.b),c.Qb(a.a),c.Qb(u.b))},t.\u0275cmp=c.Kb({type:t,selectors:[["rtl-ecl-invoice-information"]],decls:64,vars:41,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","65",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-1"],["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"],[3,"ngClass"],["fxLayout","column"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap",3,"ngClass"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","40"],["fxFlex","60"]],template:function(t,e){if(1&t&&(c.Wb(0,"div",0),c.Wb(1,"div",1),c.Rb(2,"qrcode",2),c.Vb(),c.Wb(3,"div",3),c.Wb(4,"mat-card-header",4),c.Wb(5,"div",5),c.Rb(6,"fa-icon",6),c.Wb(7,"span",7),c.Hc(8),c.Vb(),c.Vb(),c.Wb(9,"button",8),c.ec("click",(function(){return e.onClose()})),c.Hc(10,"X"),c.Vb(),c.Vb(),c.Wb(11,"mat-card-content",9),c.Wb(12,"div",10),c.Wb(13,"div",11),c.Rb(14,"qrcode",2),c.Vb(),c.Wb(15,"div",12),c.Wb(16,"div",13),c.Wb(17,"h4",14),c.Hc(18,"Amount Requested"),c.Vb(),c.Wb(19,"span",15),c.Hc(20),c.jc(21,"number"),c.Fc(22,_,2,0,"ng-container",16),c.Vb(),c.Vb(),c.Wb(23,"div",13),c.Wb(24,"h4",14),c.Hc(25,"Amount Settled"),c.Vb(),c.Wb(26,"span",15),c.Fc(27,w,3,3,"ng-container",16),c.Fc(28,O,2,0,"ng-container",16),c.Vb(),c.Vb(),c.Vb(),c.Rb(29,"mat-divider",17),c.Wb(30,"div",12),c.Wb(31,"div",13),c.Wb(32,"h4",14),c.Hc(33,"Date Created"),c.Vb(),c.Wb(34,"span",18),c.Hc(35),c.Vb(),c.Vb(),c.Wb(36,"div",13),c.Wb(37,"h4",14),c.Hc(38,"Status"),c.Vb(),c.Wb(39,"span",18),c.Hc(40),c.jc(41,"titlecase"),c.Vb(),c.Vb(),c.Vb(),c.Rb(42,"mat-divider",17),c.Wb(43,"div",12),c.Wb(44,"div",19),c.Wb(45,"h4",14),c.Hc(46,"Description"),c.Vb(),c.Wb(47,"span",15),c.Hc(48),c.Vb(),c.Vb(),c.Vb(),c.Rb(49,"mat-divider",17),c.Wb(50,"div",12),c.Wb(51,"div",19),c.Wb(52,"h4",14),c.Hc(53,"Invoice"),c.Vb(),c.Wb(54,"span",18),c.Hc(55),c.Vb(),c.Vb(),c.Vb(),c.Fc(56,C,28,4,"div",16),c.Wb(57,"div",20),c.Wb(58,"button",21),c.ec("click",(function(){return e.onShowAdvanced()})),c.Fc(59,x,2,0,"p",22),c.Fc(60,E,2,0,"ng-template",null,23,c.Gc),c.Vb(),c.Wb(62,"button",24),c.ec("copied",(function(t){return e.onCopyPayment(t)})),c.Hc(63,"Copy Invoice"),c.Vb(),c.Vb(),c.Vb(),c.Vb(),c.Vb(),c.Vb()),2&t){var n=c.wc(61);c.Db(1),c.pc("ngClass",c.tc(32,S,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),c.Db(1),c.pc("qrdata",e.invoice.serialized)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),c.Db(4),c.pc("icon",e.faReceipt),c.Db(2),c.Ic(e.screenSize===e.screenSizeEnum.XS?e.newlyAdded?"Created":"Invoice":e.newlyAdded?"Invoice Created":"Invoice Information"),c.Db(3),c.pc("ngClass",c.tc(34,A,e.screenSize===e.screenSizeEnum.XS)),c.Db(2),c.pc("ngClass",c.tc(36,S,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),c.Db(1),c.pc("qrdata",e.invoice.serialized)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),c.Db(6),c.Jc("",c.kc(21,28,e.invoice.amount||0)," Sats"),c.Db(2),c.pc("ngIf",!e.invoice.amount),c.Db(5),c.pc("ngIf",e.invoice.amountSettled),c.Db(1),c.pc("ngIf",!e.invoice.amountSettled),c.Db(7),c.Ic(e.invoice.timestampStr),c.Db(5),c.Ic(c.kc(41,30,e.invoice.status)),c.Db(8),c.Ic(e.invoice.description||"-"),c.Db(7),c.Ic(e.invoice.serialized),c.Db(1),c.pc("ngIf",e.showAdvanced),c.Db(1),c.pc("ngClass",c.uc(38,k,!e.showAdvanced,e.showAdvanced)),c.Db(2),c.pc("ngIf",!e.showAdvanced)("ngIfElse",n),c.Db(3),c.pc("payload",e.invoice.serialized)}},directives:[l.c,l.b,l.a,p.l,h.a,d.a,f.c,m.a,b.a,f.b,p.n,g.a,y.a,v.a],pipes:[p.e,p.w],styles:[""]}),t}()},bne5:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("6blF"),r=n("isby"),o=n("2Bdj"),a=n("67Y/");function s(t,e,n,c){return Object(o.a)(n)&&(c=n,n=void 0),c?s(t,e,n).pipe(Object(a.a)((function(t){return Object(r.a)(t)?c.apply(void 0,t):c(t)}))):new i.a((function(i){!function t(e,n,i,r,o){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,i,o),a=function(){return s.removeEventListener(n,i,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var c=e;e.on(n,i),a=function(){return c.off(n,i)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var u=e;e.addListener(n,i),a=function(){return u.removeListener(n,i)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,p=e.length;l1?Array.prototype.slice.call(arguments):t)}),i,n)}))}},bwdU:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n("CcnG"),r=n("0FX9");const o=["qrcElement"];let a=(()=>{class t{constructor(t,e){this.renderer=t,this.platformId=e,this.colordark="",this.colorlight="",this.level="",this.hidetitle=!1,this.size=0,this.usesvg=!1,this.allowEmptyString=!1,this.qrdata="",this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.scale=4,this.width=10,""!==this.colordark&&console.warn("[angularx-qrcode] colordark is deprecated, use colorDark."),""!==this.colorlight&&console.warn("[angularx-qrcode] colorlight is deprecated, use colorLight."),""!==this.level&&console.warn("[angularx-qrcode] level is deprecated, use errorCorrectionLevel."),!1!==this.hidetitle&&console.warn("[angularx-qrcode] hidetitle is deprecated."),0!==this.size&&console.warn("[angularx-qrcode] size is deprecated, use `width`. Defaults to 10."),!1!==this.usesvg&&console.warn("[angularx-qrcode] usesvg is deprecated, use [elementType]=\"'svg'\".")}ngOnChanges(){this.createQRCode()}isValidQrCodeText(t){return!1===this.allowEmptyString?!(void 0===t||""===t||"null"===t||null===t):!(void 0===t)}toDataURL(){return new Promise((t,e)=>{Object(r.toDataURL)(this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},(n,i)=>{n?e(n):t(i)})})}toCanvas(t){return new Promise((e,n)=>{Object(r.toCanvas)(t,this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},t=>{t?n(t):e("success")})})}toSVG(){return new Promise((t,e)=>{Object(r.toString)(this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,type:"svg",version:this.version,width:this.width},(n,i)=>{n?e(n):t(i)})})}renderElement(t){for(const e of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,e);this.renderer.appendChild(this.qrcElement.nativeElement,t)}createQRCode(){this.version&&this.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),this.version=40):this.version&&this.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),this.version=void 0);try{if(!this.isValidQrCodeText(this.qrdata))throw new Error('[angularx-qrcode] Field `qrdata` is empty, set`allowEmptyString="true"` to overwrite this behaviour.');let t;switch(this.elementType){case"canvas":t=this.renderer.createElement("canvas"),this.toCanvas(t).then(()=>{this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] canvas error: ",t)});break;case"svg":t=this.renderer.createElement("svg","svg"),this.toSVG().then(e=>{t.innerHTML=e,this.renderer.setAttribute(t,"height",""+this.width),this.renderer.setAttribute(t,"width",""+this.width),this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] svg error: ",t)});break;case"url":case"img":default:t=this.renderer.createElement("img"),this.toDataURL().then(e=>{t.setAttribute("src",e),this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] img/url error: ",t)})}}catch(t){console.error("[angularx-qrcode] Error generating QR Code: ",t.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(i.F),i.Qb(i.C))},t.\u0275cmp=i.Kb({type:t,selectors:[["qrcode"]],viewQuery:function(t,e){var n;1&t&&i.Dc(o,!0),2&t&&i.vc(n=i.fc())&&(e.qrcElement=n.first)},inputs:{colordark:"colordark",colorlight:"colorlight",level:"level",hidetitle:"hidetitle",size:"size",usesvg:"usesvg",allowEmptyString:"allowEmptyString",qrdata:"qrdata",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",margin:"margin",scale:"scale",width:"width",version:"version"},features:[i.Bb],decls:2,vars:2,consts:[["qrcElement",""]],template:function(t,e){1&t&&i.Rb(0,"div",null,0),2&t&&i.Fb(e.cssClass)},encapsulation:2,changeDetection:0}),t})(),s=(()=>{class t{}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},providers:[]}),t})()},cpEJ:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return c}));var i=n("AytR"),r=n("CcnG"),o=i.b.isDebugMode,a=function(){},s=function(){function t(){}return t.prototype.invokeConsoleMethod=function(t,e){},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}(),c=function(){function t(){}return Object.defineProperty(t.prototype,"info",{get:function(){return o?console.log.bind(console):a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"warn",{get:function(){return o?console.warn.bind(console):a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"error",{get:function(){return o?console.error.bind(console):a},enumerable:!0,configurable:!0}),t.prototype.invokeConsoleMethod=function(t,e){(console[t]||console.log||a).apply(console,[e])},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}()},crnd:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},dC0D:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("mrSG"),r=n("FFOo");function o(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new a(t,e,n))}}var a=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=i,o.hasSeed=r,o.index=0,o}return i.c(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=e,this.destination.next(e)},e}(r.a)},dEYt:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("CcnG"),r=function(){function t(){this.copied=new i.o}return t.prototype.onClick=function(t){var e=this;if(t.preventDefault(),this.payload){var n=function(t){(t.clipboardData||window.clipboardData).setData("text",e.payload.toString()),t.preventDefault(),e.copied.emit(e.payload)};document.addEventListener("copy",n,!1),document.execCommand("copy"),document.removeEventListener("copy",n,!1)}},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Lb({type:t,selectors:[["","rtlClipboard",""]],hostBindings:function(t,e){1&t&&i.ec("click",(function(t){return e.onClick(t)}))},inputs:{payload:"payload"},outputs:{copied:"copied"}}),t}()},dEwP:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("F/XL"),r=n("Txjg");function o(){for(var t=[],e=0;e enter",[Object(m.l)({opacity:0,transform:"translateY(-100%)"}),Object(m.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},V=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Lb({type:t}),t}();function B(t){return Error("A hint was already declared for 'align=\""+t+"\"'.")}var H=0,W=function(){function t(){this.align="start",this.id="mat-hint-"+H++}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Lb({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(o.Eb("id",e.id)("align",null),o.Hb("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t}(),z=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Lb({type:t,selectors:[["mat-label"]]}),t}(),U=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Lb({type:t,selectors:[["mat-placeholder"]]}),t}(),Q=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Lb({type:t,selectors:[["","matPrefix",""]]}),t}(),Y=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Lb({type:t,selectors:[["","matSuffix",""]]}),t}(),G=0,q=function(){return function(t){this._elementRef=t}}(),K=Object(a.x)(q,"primary"),X=new o.r("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Z=new o.r("MatFormField"),$=function(t){function e(e,n,i,r,o,a,s,c){var l=t.call(this,e)||this;return l._elementRef=e,l._changeDetectorRef=n,l._dir=r,l._defaults=o,l._platform=a,l._ngZone=s,l._outlineGapCalculationNeededImmediately=!1,l._outlineGapCalculationNeededOnStable=!1,l._destroyed=new u.a,l._showAlwaysAnimate=!1,l._subscriptAnimationState="",l._hintLabel="",l._hintLabelId="mat-hint-"+G++,l._labelId="mat-form-field-label-"+G++,l._labelOptions=i||{},l.floatLabel=l._getDefaultFloatLabelState(),l._animationsEnabled="NoopAnimations"!==c,l.appearance=o&&o.appearance?o.appearance:"legacy",l._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,l}return Object(s.c)(e,t),Object.defineProperty(e.prototype,"appearance",{get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=Object(c.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_canLabelFloat",{get:function(){return"never"!==this.floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatLabel",{get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_control",{get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_labelChild",{get:function(){return this._labelChildNonStatic||this._labelChildStatic},enumerable:!0,configurable:!0}),e.prototype.getConnectedOverlayOrigin=function(){return this._connectionContainerRef||this._elementRef},e.prototype.ngAfterContentInit=function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(Object(h.a)(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Object(d.a)(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(Object(d.a)(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),Object(l.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(Object(h.a)(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(Object(h.a)(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(Object(d.a)(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return t.updateOutlineGap()}))})):t.updateOutlineGap()}))},e.prototype.ngAfterContentChecked=function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()},e.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},e.prototype._shouldForward=function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]},e.prototype._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)},e.prototype._hasLabel=function(){return!!this._labelChild},e.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)},e.prototype._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()},e.prototype._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()},e.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},e.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(p.a)(this._label.nativeElement,"transitionend").pipe(Object(f.a)(1)).subscribe((function(){t._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())},e.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},e.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},e.prototype._validateHints=function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach((function(i){if("start"===i.align){if(t||n.hintLabel)throw B("start");t=i}else if("end"===i.align){if(e)throw B("end");e=i}}))},e.prototype._getDefaultFloatLabelState=function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"},e.prototype._syncDescribedByIds=function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find((function(t){return"start"===t.align})):null,n=this._hintChildren?this._hintChildren.find((function(t){return"end"===t.align})):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map((function(t){return t.id})));this._control.setDescribedByIds(t)}},e.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},e.prototype.updateOutlineGap=function(){var t,e,n=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&n&&n.children.length&&n.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var i=0,r=0,o=this._connectionContainerRef.nativeElement,a=o.querySelectorAll(".mat-form-field-outline-start"),c=o.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var u=o.getBoundingClientRect();if(0===u.width&&0===u.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var l=this._getStartEnd(u),p=this._getStartEnd(n.children[0].getBoundingClientRect()),h=0;try{for(var d=Object(s.h)(n.children),f=d.next();!f.done;f=d.next())h+=f.value.offsetWidth}catch(b){t={error:b}}finally{try{f&&!f.done&&(e=d.return)&&e.call(d)}finally{if(t)throw t.error}}i=Math.abs(p-l)-5,r=h>0?.75*h+10:0}for(var m=0;m40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return i[t]},e.getBCHDigit=function(t){for(var e=0;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return void 0!==n},e.toSJIS=function(t){return n(t)}},e6BP:function(t,e){function n(){this.buffer=[],this.length=0}n.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var n=0;n>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=n},e9QY:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return u}));var i=n("mrSG"),r=n("zrt+"),o=n("F/XL"),a=n("K9Ia"),s=n("CcnG"),c=function(){return function(){}}();function u(t){return t&&"function"==typeof t.connect}var l=function(t){function e(e){var n=t.call(this)||this;return n._data=e,n}return Object(i.c)(e,t),e.prototype.connect=function(){return Object(r.a)(this._data)?this._data:Object(o.a)(this._data)},e.prototype.disconnect=function(){},e}(c),p=function(){function t(t,e,n){var i=this;void 0===t&&(t=!1),void 0===n&&(n=!0),this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new a.a,e&&e.length&&(t?e.forEach((function(t){return i._markSelected(t)})):this._markSelected(e[0]),this._selectedToEmit.length=0)}return Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected},enumerable:!0,configurable:!0}),t.prototype.select=function(){for(var t=this,e=[],n=0;n1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")},t}(),h=function(){function t(){this._listeners=[]}return t.prototype.notify=function(t,e){var n,r;try{for(var o=Object(i.h)(this._listeners),a=o.next();!a.done;a=o.next())(0,a.value)(t,e)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},t.prototype.listen=function(t){var e=this;return this._listeners.push(t),function(){e._listeners=e._listeners.filter((function(e){return t!==e}))}},t.prototype.ngOnDestroy=function(){this._listeners=[]},t.\u0275prov=Object(s.Mb)({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}()},"eO+G":function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return w})),n.d(e,"c",(function(){return R})),n.d(e,"d",(function(){return U})),n.d(e,"e",(function(){return P})),n.d(e,"f",(function(){return mt})),n.d(e,"g",(function(){return lt})),n.d(e,"h",(function(){return et})),n.d(e,"i",(function(){return x})),n.d(e,"j",(function(){return Q})),n.d(e,"k",(function(){return q})),n.d(e,"l",(function(){return z})),n.d(e,"m",(function(){return st})),n.d(e,"n",(function(){return pt})),n.d(e,"o",(function(){return ft})),n.d(e,"p",(function(){return ut})),n.d(e,"q",(function(){return rt})),n.d(e,"r",(function(){return ot})),n.d(e,"s",(function(){return nt})),n.d(e,"t",(function(){return it})),n.d(e,"u",(function(){return tt})),n.d(e,"v",(function(){return ht})),n.d(e,"w",(function(){return dt})),n.d(e,"x",(function(){return S})),n.d(e,"y",(function(){return A})),n.d(e,"z",(function(){return E})),n.d(e,"A",(function(){return D})),n.d(e,"B",(function(){return j})),n.d(e,"C",(function(){return k})),n.d(e,"D",(function(){return Y}));var i=n("CcnG"),r=n("m47I"),o=n("HHjO"),a=new i.O("9.2.4"),s=n("Ip0R"),c=n("mrSG"),u=n("349r"),l=n("K9Ia"),p=n("6blF"),h=n("BAGj"),d=(n("ZYjt"),n("p0Sj")),f=n("wFw1"),m=n("ScIB"),b=["*",[["mat-option"],["ng-container"]]],g=["*","mat-option, ng-container"];function y(t,e){if(1&t&&i.Rb(0,"mat-pseudo-checkbox",3),2&t){var n=i.ic();i.pc("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var v=["*"],_=function(){function t(){}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t}(),w=function(){function t(){}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t}(),O=new i.O("9.2.4"),C=new i.r("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),x=function(){function t(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return t.prototype._getDocument=function(){var t=this._document||document;return"object"==typeof t&&t?t:null},t.prototype._getWindow=function(){var t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null},t.prototype._checksAreEnabled=function(){return Object(i.X)()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)},t.prototype._checkDoctypeIsDefined=function(){var t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkThemeIsPresent=function(){var t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(!t&&e&&e.body&&"function"==typeof getComputedStyle){var n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);var i=getComputedStyle(n);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(n)}},t.prototype._checkCdkVersionMatch=function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&O.full!==a.full&&console.warn("The Angular Material version ("+O.full+") does not match the Angular CDK version ("+a.full+").\nPlease ensure the versions of these two packages exactly match.")},t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)(i.ac(r.j),i.ac(C,8),i.ac(s.d,8))},imports:[[o.a],o.a]}),t}();function E(t){return function(t){function e(){for(var e=[],n=0;n0?n:t},t}(),P=new i.r("mat-date-formats");try{I="undefined"!=typeof Intl}catch(bt){I=!1}var L={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},F=V(31,(function(t){return String(t+1)})),N={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},M=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function V(t,e){for(var n=Array(t),i=0;i11)throw Error('Invalid month index "'+e+'". Month index has to be between 0 and 11.');if(n<1)throw Error('Invalid date "'+n+'". Date has to be greater than 0.');var i=this._createDateWithOverflow(t,e,n);if(i.getMonth()!=e)throw Error('Invalid date "'+n+'" for month with index "'+e+'".');return i},e.prototype.today=function(){return new Date},e.prototype.parse=function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null},e.prototype.format=function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(I){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object(c.a)(Object(c.a)({},e),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())},e.prototype.addCalendarYears=function(t,e){return this.addCalendarMonths(t,12*e)},e.prototype.addCalendarMonths=function(t,e){var n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n},e.prototype.addCalendarDays=function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)},e.prototype.toIso8601=function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")},e.prototype.deserialize=function(e){if("string"==typeof e){if(!e)return null;if(M.test(e)){var n=new Date(e);if(this.isValid(n))return n}}return t.prototype.deserialize.call(this,e)},e.prototype.isDateInstance=function(t){return t instanceof Date},e.prototype.isValid=function(t){return!isNaN(t.getTime())},e.prototype.invalid=function(){return new Date(NaN)},e.prototype._createDateWithOverflow=function(t,e,n){var i=new Date(t,e,n);return t>=0&&t<100&&i.setFullYear(this.getYear(i)-1900),i},e.prototype._2digit=function(t){return("00"+t).slice(-2)},e.prototype._stripDirectionalityCharacters=function(t){return t.replace(/[\u200e\u200f]/g,"")},e.prototype._format=function(t,e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(n)},e.\u0275fac=function(t){return new(t||e)(i.ac(T,8),i.ac(h.a))},e.\u0275prov=i.Mb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(R),H=function(){function t(){}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},providers:[{provide:R,useClass:B}],imports:[[h.b]]}),t}(),W={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"}}},z=function(){function t(){}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},providers:[{provide:P,useValue:W}],imports:[[H]]}),t}(),U=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))},t.\u0275prov=Object(i.Mb)({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),Q=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Lb({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t}();function Y(t,e,n){void 0===n&&(n="mat"),t.changes.pipe(Object(d.a)(t)).subscribe((function(t){var i=t.length;G(e,n+"-2-line",!1),G(e,n+"-3-line",!1),G(e,n+"-multi-line",!1),2===i||3===i?G(e,n+"-"+i+"-line",!0):i>3&&G(e,n+"-multi-line",!0)}))}function G(t,e,n){var i=t.nativeElement.classList;n?i.add(e):i.remove(e)}var q=function(){function t(){}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},imports:[[x],x]}),t}(),K=function(){function t(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}return t.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},t}(),X={enterDuration:450,exitDuration:400},Z=Object(h.f)({passive:!0}),$=["mousedown","touchstart"],J=["mouseup","mouseleave","touchend","touchcancel"],tt=function(){function t(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Object(u.e)(n))}return t.prototype.fadeInRipple=function(t,e,n){var i=this;void 0===n&&(n={});var r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object(c.a)(Object(c.a)({},X),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var a=n.radius||function(t,e,n){var i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),s=t-r.left,u=e-r.top,l=o.enterDuration,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=s-a+"px",p.style.top=u-a+"px",p.style.height=2*a+"px",p.style.width=2*a+"px",null!=n.color&&(p.style.backgroundColor=n.color),p.style.transitionDuration=l+"ms",this._containerElement.appendChild(p),window.getComputedStyle(p).getPropertyValue("opacity"),p.style.transform="scale(1)";var h=new K(this,p,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone((function(){var t=h===i._mostRecentTransientRipple;h.state=1,n.persistent||t&&i._isPointerDown||h.fadeOut()}),l),h},t.prototype.fadeOutRipple=function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object(c.a)(Object(c.a)({},X),t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone((function(){t.state=3,n.parentNode.removeChild(n)}),i.exitDuration)}},t.prototype.fadeOutAll=function(){this._activeRipples.forEach((function(t){return t.fadeOut()}))},t.prototype.setupTriggerEvents=function(t){var e=Object(u.e)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents($))},t.prototype.handleEvent=function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(J),this._pointerUpEventsRegistered=!0)},t.prototype._onMousedown=function(t){var e=Object(r.l)(t),n=this._lastTouchStartEvent&&Date.now()n+i?Math.max(0,r-i+e):n}var ft=function(){function t(){}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},imports:[[it,s.c,ot]]}),t}(),mt=new i.r("mat-label-global-options")},eQOe:function(t,e){function n(t,n,i){switch(t){case e.Patterns.PATTERN000:return(n+i)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return i%3==0;case e.Patterns.PATTERN011:return(n+i)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2==0;case e.Patterns.PATTERN101:return n*i%2+n*i%3==0;case e.Patterns.PATTERN110:return(n*i%2+n*i%3)%2==0;case e.Patterns.PATTERN111:return(n*i%3+(n+i)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){for(var e=t.size,n=0,i=0,r=0,o=null,a=null,s=0;s=5&&(n+=i-5+3),o=u,i=1),(u=t.get(c,s))===a?r++:(r>=5&&(n+=r-5+3),a=u,r=1)}i>=5&&(n+=i-5+3),r>=5&&(n+=r-5+3)}return n},e.getPenaltyN2=function(t){for(var e=t.size,n=0,i=0;i=10&&(1488===i||93===i)&&n++,r=r<<1&2047|t.get(a,o),a>=10&&(1488===r||93===r)&&n++}return 40*n},e.getPenaltyN4=function(t){for(var e=0,n=t.data.length,i=0;i=0&&t.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(i){return n}}},fPVg:function(t,e,n){"use strict";n.d(e,"a",(function(){return P})),n.d(e,"b",(function(){return L}));var i=n("CcnG"),r=n("eO+G"),o=n("mrSG"),a=n("349r"),s=n("Ip0R"),c=n("F/XL"),u=n("XlPw"),l=n("VNr4"),p=n("pugT"),h=n("xMyE"),d=n("67Y/"),f=n("9Z1F"),m=n("2WpN"),b=n("S1nX"),g=n("t9fZ"),y=n("t/Na"),v=n("ZYjt"),_=["*"];function w(t){return Error('Unable to find icon with the name "'+t+'"')}function O(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+t+'".')}function C(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \""+t+'".')}var x=function(){return function(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}(),E=function(){function t(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}return t.prototype.addSvgIcon=function(t,e,n){return this.addSvgIconInNamespace("",t,e,n)},t.prototype.addSvgIconLiteral=function(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)},t.prototype.addSvgIconInNamespace=function(t,e,n,i){return this._addSvgIconConfig(t,e,new x(n,i))},t.prototype.addSvgIconLiteralInNamespace=function(t,e,n,r){var o=this._sanitizer.sanitize(i.J.HTML,n);if(!o)throw C(n);var a=this._createSvgElementForSingleIcon(o,r);return this._addSvgIconConfig(t,e,new x(a,r))},t.prototype.addSvgIconSet=function(t,e){return this.addSvgIconSetInNamespace("",t,e)},t.prototype.addSvgIconSetLiteral=function(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)},t.prototype.addSvgIconSetInNamespace=function(t,e,n){return this._addSvgIconSetConfig(t,new x(e,n))},t.prototype.addSvgIconSetLiteralInNamespace=function(t,e,n){var r=this._sanitizer.sanitize(i.J.HTML,e);if(!r)throw C(e);var o=this._svgElementFromString(r);return this._addSvgIconSetConfig(t,new x(o,n))},t.prototype.registerFontClassAlias=function(t,e){return void 0===e&&(e=t),this._fontCssClassesByAlias.set(t,e),this},t.prototype.classNameForFontAlias=function(t){return this._fontCssClassesByAlias.get(t)||t},t.prototype.setDefaultFontSetClass=function(t){return this._defaultFontSetClass=t,this},t.prototype.getDefaultFontSetClass=function(){return this._defaultFontSetClass},t.prototype.getSvgIconFromUrl=function(t){var e=this,n=this._sanitizer.sanitize(i.J.RESOURCE_URL,t);if(!n)throw O(t);var r=this._cachedIconsByUrl.get(n);return r?Object(c.a)(S(r)):this._loadSvgIconFromConfig(new x(t)).pipe(Object(h.a)((function(t){return e._cachedIconsByUrl.set(n,t)})),Object(d.a)((function(t){return S(t)})))},t.prototype.getNamedSvgIcon=function(t,e){void 0===e&&(e="");var n=A(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):Object(u.a)(w(n))},t.prototype.ngOnDestroy=function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()},t.prototype._getSvgFromConfig=function(t){return t.svgElement?Object(c.a)(S(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(Object(h.a)((function(e){return t.svgElement=e})),Object(d.a)((function(t){return S(t)})))},t.prototype._getSvgFromIconSetConfigs=function(t,e){var n=this,r=this._extractIconWithNameFromAnySet(t,e);if(r)return Object(c.a)(r);var o=e.filter((function(t){return!t.svgElement})).map((function(t){return n._loadSvgIconSetFromConfig(t).pipe(Object(f.a)((function(e){var r="Loading icon set URL: "+n._sanitizer.sanitize(i.J.RESOURCE_URL,t.url)+" failed: "+e.message;return n._errorHandler?n._errorHandler.handleError(new Error(r)):console.error(r),Object(c.a)(null)})))}));return Object(l.a)(o).pipe(Object(d.a)((function(){var i=n._extractIconWithNameFromAnySet(t,e);if(!i)throw w(t);return i})))},t.prototype._extractIconWithNameFromAnySet=function(t,e){for(var n=e.length-1;n>=0;n--){var i=e[n];if(i.svgElement){var r=this._extractSvgIconFromSet(i.svgElement,t,i.options);if(r)return r}}return null},t.prototype._loadSvgIconFromConfig=function(t){var e=this;return this._fetchUrl(t.url).pipe(Object(d.a)((function(n){return e._createSvgElementForSingleIcon(n,t.options)})))},t.prototype._loadSvgIconSetFromConfig=function(t){var e=this;return t.svgElement?Object(c.a)(t.svgElement):this._fetchUrl(t.url).pipe(Object(d.a)((function(n){return t.svgElement||(t.svgElement=e._svgElementFromString(n)),t.svgElement})))},t.prototype._createSvgElementForSingleIcon=function(t,e){var n=this._svgElementFromString(t);return this._setSvgAttributes(n,e),n},t.prototype._extractSvgIconFromSet=function(t,e,n){var i=t.querySelector('[id="'+e+'"]');if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("");return o.appendChild(r),this._setSvgAttributes(o,n)},t.prototype._svgElementFromString=function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n},t.prototype._toSvgElement=function(t){for(var e=this._svgElementFromString(""),n=t.attributes,i=0;it[o]-t[a]-1&&(t.reach[c]="end"),e&&(p.dispatchEvent(S("ps-scroll-"+c)),e<0?p.dispatchEvent(S("ps-scroll-"+u)):e>0&&p.dispatchEvent(S("ps-scroll-"+l)),i&&function(t,e){w(t,e),O(t,e)}(t,c)),t.reach[c]&&(e||r)&&p.dispatchEvent(S("ps-"+c+"-reach-"+t.reach[c]))}(t,n,o,i,r)}function k(t){return parseInt(t,10)||0}E.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new C(t),this.eventElements.push(e)),e},E.prototype.bind=function(t,e,n){this.eventElement(t).bind(e,n)},E.prototype.unbind=function(t,e,n){var i=this.eventElement(t);i.unbind(e,n),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)},E.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},E.prototype.once=function(t,e,n){var i=this.eventElement(t),r=function(t){i.unbind(e,r),n(t)};i.bind(e,r)};var D={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function j(t){var e=t.element,n=Math.floor(e.scrollTop),i=e.getBoundingClientRect();t.containerWidth=Math.ceil(i.width),t.containerHeight=Math.ceil(i.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(m(e,g("x")).forEach((function(t){return f(t)})),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(m(e,g("y")).forEach((function(t){return f(t)})),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var n={width:e.railXWidth},i=Math.floor(t.scrollTop);n.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?n.bottom=e.scrollbarXBottom-i:n.top=e.scrollbarXTop+i,l(e.scrollbarXRail,n);var r={top:i,height:e.railYHeight};e.isScrollbarYUsingRight?r.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:r.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,l(e.scrollbarYRail,r),l(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),l(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(y("x")):(e.classList.remove(y("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(y("y")):(e.classList.remove(y("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function I(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function T(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],c=e[6],u=e[7],l=e[8],p=t.element,h=null,d=null,f=null;function m(e){e.touches&&e.touches[0]&&(e[r]=e.touches[0].pageY),p[c]=h+f*(e[r]-d),w(t,u),j(t),e.stopPropagation(),e.preventDefault()}function b(){O(t,u),t[l].classList.remove("ps--clicking"),t.event.unbind(t.ownerDocument,"mousemove",m)}function g(e,a){h=p[c],a&&e.touches&&(e[r]=e.touches[0].pageY),d=e[r],f=(t[i]-t[n])/(t[o]-t[s]),a?t.event.bind(t.ownerDocument,"touchmove",m):(t.event.bind(t.ownerDocument,"mousemove",m),t.event.once(t.ownerDocument,"mouseup",b),e.preventDefault()),t[l].classList.add("ps--clicking"),e.stopPropagation()}t.event.bind(t[a],"mousedown",(function(t){g(t)})),t.event.bind(t[a],"touchstart",(function(t){g(t,!0)}))}var R={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarYRail,"mousedown",(function(e){var n=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(n>t.scrollbarYTop?1:-1)*t.containerHeight,j(t),e.stopPropagation()})),t.event.bind(t.scrollbarX,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarXRail,"mousedown",(function(e){var n=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(n>t.scrollbarXLeft?1:-1)*t.containerWidth,j(t),e.stopPropagation()}))},"drag-thumb":function(t){T(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),T(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",(function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(d(e,":hover")||d(t.scrollbarX,":focus")||d(t.scrollbarY,":focus"))){var i,r=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(r){if("IFRAME"===r.tagName)r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(d(i=r,"input,[contenteditable]")||d(i,"select,[contenteditable]")||d(i,"textarea,[contenteditable]")||d(i,"button,[contenteditable]"))return}var o=0,a=0;switch(n.which){case 37:o=n.metaKey?-t.contentWidth:n.altKey?-t.containerWidth:-30;break;case 38:a=n.metaKey?t.contentHeight:n.altKey?t.containerHeight:30;break;case 39:o=n.metaKey?t.contentWidth:n.altKey?t.containerWidth:30;break;case 40:a=n.metaKey?-t.contentHeight:n.altKey?-t.containerHeight:-30;break;case 32:a=n.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:a=t.containerHeight;break;case 34:a=-t.containerHeight;break;case 36:a=t.contentHeight;break;case 35:a=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==o||t.settings.suppressScrollY&&0!==a||(e.scrollTop-=a,e.scrollLeft+=o,j(t),function(n,i){var r=Math.floor(e.scrollTop);if(0===n){if(!t.scrollbarYActive)return!1;if(0===r&&i>0||r>=t.contentHeight-t.containerHeight&&i<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===i){if(!t.scrollbarXActive)return!1;if(0===o&&n<0||o>=t.contentWidth-t.containerWidth&&n>0)return!t.settings.wheelPropagation}return!0}(o,a)&&n.preventDefault())}}))},wheel:function(t){var e=t.element;function n(n){var i=function(t){var e=t.deltaX,n=-1*t.deltaY;return void 0!==e&&void 0!==n||(e=-1*t.wheelDeltaX/6,n=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,n*=10),e!=e&&n!=n&&(e=0,n=t.wheelDelta),t.shiftKey?[-n,-e]:[e,n]}(n),r=i[0],o=i[1];if(!function(t,n,i){if(!D.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains("ps__child--consume"))return!0;var o=u(r);if(i&&o.overflowY.match(/(scroll|auto)/)){var a=r.scrollHeight-r.clientHeight;if(a>0&&(r.scrollTop>0&&i<0||r.scrollTop0))return!0}if(n&&o.overflowX.match(/(scroll|auto)/)){var s=r.scrollWidth-r.clientWidth;if(s>0&&(r.scrollLeft>0&&n<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(n.target,r,o)){var a=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(o?e.scrollTop-=o*t.settings.wheelSpeed:e.scrollTop+=r*t.settings.wheelSpeed,a=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(r?e.scrollLeft+=r*t.settings.wheelSpeed:e.scrollLeft-=o*t.settings.wheelSpeed,a=!0):(e.scrollTop-=o*t.settings.wheelSpeed,e.scrollLeft+=r*t.settings.wheelSpeed),j(t),(a=a||function(n,i){var r=Math.floor(e.scrollTop),o=0===e.scrollTop,a=r+e.offsetHeight===e.scrollHeight,s=0===e.scrollLeft,c=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(i)>Math.abs(n)?o||a:s||c)||!t.settings.wheelPropagation}(r,o))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",n):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",n)},touch:function(t){if(D.supportsTouch||D.supportsIePointer){var e=t.element,n={},i=0,r={},o=null;D.supportsTouch?(t.event.bind(e,"touchstart",l),t.event.bind(e,"touchmove",p),t.event.bind(e,"touchend",h)):D.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",l),t.event.bind(e,"pointermove",p),t.event.bind(e,"pointerup",h)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",l),t.event.bind(e,"MSPointerMove",p),t.event.bind(e,"MSPointerUp",h)))}function a(n,i){e.scrollTop-=i,e.scrollLeft-=n,j(t)}function s(t){return t.targetTouches?t.targetTouches[0]:t}function c(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function l(t){if(c(t)){var e=s(t);n.pageX=e.pageX,n.pageY=e.pageY,i=(new Date).getTime(),null!==o&&clearInterval(o)}}function p(o){if(c(o)){var l=s(o),p={pageX:l.pageX,pageY:l.pageY},h=p.pageX-n.pageX,d=p.pageY-n.pageY;if(function(t,n,i){if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains("ps__child--consume"))return!0;var o=u(r);if(i&&o.overflowY.match(/(scroll|auto)/)){var a=r.scrollHeight-r.clientHeight;if(a>0&&(r.scrollTop>0&&i<0||r.scrollTop0))return!0}if(n&&o.overflowX.match(/(scroll|auto)/)){var s=r.scrollWidth-r.clientWidth;if(s>0&&(r.scrollLeft>0&&n<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(o.target,h,d))return;a(h,d),n=p;var f=(new Date).getTime(),m=f-i;m>0&&(r.x=h/m,r.y=d/m,i=f),function(n,i){var r=Math.floor(e.scrollTop),o=e.scrollLeft,a=Math.abs(n),s=Math.abs(i);if(s>a){if(i<0&&r===t.contentHeight-t.containerHeight||i>0&&0===r)return 0===window.scrollY&&i>0&&D.isChrome}else if(a>s&&(n<0&&o===t.contentWidth-t.containerWidth||n>0&&0===o))return!0;return!0}(h,d)&&o.preventDefault()}}function h(){t.settings.swipeEasing&&(clearInterval(o),o=setInterval((function(){t.isInitialized?clearInterval(o):r.x||r.y?Math.abs(r.x)<.01&&Math.abs(r.y)<.01?clearInterval(o):(a(30*r.x,30*r.y),r.x*=.8,r.y*=.8):clearInterval(o)}),10))}}},P=function(t,e){var n=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var i in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[i]=e[i];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r,o,a=function(){return t.classList.add("ps--focus")},s=function(){return t.classList.remove("ps--focus")};this.isRtl="rtl"===u(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,r=t.scrollLeft<0,t.scrollLeft=o,r),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new E,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=p(g("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=p(b("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=u(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=k(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=k(c.borderLeftWidth)+k(c.borderRightWidth),l(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=k(c.marginLeft)+k(c.marginRight),l(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=p(g("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=p(b("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var h=u(this.scrollbarYRail);this.scrollbarYRight=parseInt(h.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=k(h.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=u(t);return k(e.width)+k(e.paddingLeft)+k(e.paddingRight)+k(e.borderLeftWidth)+k(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=k(h.borderTopWidth)+k(h.borderBottomWidth),l(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=k(h.marginTop)+k(h.marginBottom),l(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(t){return R[t](n)})),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return n.onScroll(t)})),j(this)};P.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,l(this.scrollbarXRail,{display:"block"}),l(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=k(u(this.scrollbarXRail).marginLeft)+k(u(this.scrollbarXRail).marginRight),this.railYMarginHeight=k(u(this.scrollbarYRail).marginTop)+k(u(this.scrollbarYRail).marginBottom),l(this.scrollbarXRail,{display:"none"}),l(this.scrollbarYRail,{display:"none"}),j(this),A(this,"top",0,!1,!0),A(this,"left",0,!1,!0),l(this.scrollbarXRail,{display:""}),l(this.scrollbarYRail,{display:""}))},P.prototype.onScroll=function(t){this.isAlive&&(j(this),A(this,"top",this.element.scrollTop-this.lastScrollTop),A(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},P.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),f(this.scrollbarX),f(this.scrollbarY),f(this.scrollbarXRail),f(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},P.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")};var L=P,F=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,i){return t[0]===e&&(n=i,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n0},t.prototype.connect_=function(){N&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),H?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){N&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;B.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),z=function(t,e){for(var n=0,i=Object.keys(e);n0},t}(),J="undefined"!=typeof WeakMap?new WeakMap:new F,tt=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=W.getInstance(),i=new $(e,n,this);J.set(this,i)};["observe","unobserve","disconnect"].forEach((function(t){tt.prototype[t]=function(){var e;return(e=J.get(this))[t].apply(e,arguments)}}));var et=void 0!==M.ResizeObserver?M.ResizeObserver:tt,nt=new s.r("PERFECT_SCROLLBAR_CONFIG"),it=function(){return function(t,e,n,i){this.x=t,this.y=e,this.w=n,this.h=i}}(),rt=function(){return function(t,e){this.x=t,this.y=e}}(),ot=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"],at=function(){function t(t){void 0===t&&(t={}),this.assign(t)}return t.prototype.assign=function(t){for(var e in void 0===t&&(t={}),t)this[e]=t[e]},t}(),st=function(){function t(t,e,n,r,o){this.zone=t,this.differs=e,this.elementRef=n,this.platformId=r,this.defaults=o,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new i.a,this.disabled=!1,this.psScrollY=new s.o,this.psScrollX=new s.o,this.psScrollUp=new s.o,this.psScrollDown=new s.o,this.psScrollLeft=new s.o,this.psScrollRight=new s.o,this.psYReachEnd=new s.o,this.psYReachStart=new s.o,this.psXReachEnd=new s.o,this.psXReachStart=new s.o}return t.prototype.ngOnInit=function(){var t=this;if(!this.disabled&&Object(c.z)(this.platformId)){var e=new at(this.defaults);e.assign(this.config),this.zone.runOutsideAngular((function(){t.instance=new L(t.elementRef.nativeElement,e)})),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular((function(){t.ro=new et((function(){t.update()})),t.elementRef.nativeElement.children[0]&&t.ro.observe(t.elementRef.nativeElement.children[0]),t.ro.observe(t.elementRef.nativeElement)})),this.zone.runOutsideAngular((function(){ot.forEach((function(e){var n=e.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}));Object(r.a)(t.elementRef.nativeElement,n).pipe(Object(o.a)(20),Object(a.a)(t.ngDestroy)).subscribe((function(n){t[e].emit(n)}))}))}))}},t.prototype.ngOnDestroy=function(){var t=this;Object(c.z)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular((function(){t.instance&&t.instance.destroy()})),this.instance=null)},t.prototype.ngDoCheck=function(){!this.disabled&&this.configDiff&&Object(c.z)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())},t.prototype.ngOnChanges=function(t){t.disabled&&!t.disabled.isFirstChange()&&Object(c.z)(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())},t.prototype.ps=function(){return this.instance},t.prototype.update=function(){var t=this;"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout((function(){if(!t.disabled&&t.configDiff)try{t.zone.runOutsideAngular((function(){t.instance&&t.instance.update()}))}catch(e){}}),0))},t.prototype.geometry=function(t){return void 0===t&&(t="scroll"),new it(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])},t.prototype.position=function(t){return void 0===t&&(t=!1),!t&&this.instance?new rt(this.instance.reach.x||0,this.instance.reach.y||0):new rt(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)},t.prototype.scrollable=function(t){void 0===t&&(t="any");var e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)},t.prototype.scrollTo=function(t,e,n){this.disabled||(null==e&&null==n?this.animateScrolling("scrollTop",t,n):(null!=t&&this.animateScrolling("scrollLeft",t,n),null!=e&&this.animateScrolling("scrollTop",e,n)))},t.prototype.scrollToX=function(t,e){this.animateScrolling("scrollLeft",t,e)},t.prototype.scrollToY=function(t,e){this.animateScrolling("scrollTop",t,e)},t.prototype.scrollToTop=function(t,e){this.animateScrolling("scrollTop",t||0,e)},t.prototype.scrollToLeft=function(t,e){this.animateScrolling("scrollLeft",t||0,e)},t.prototype.scrollToRight=function(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)},t.prototype.scrollToBottom=function(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)},t.prototype.scrollToElement=function(t,e,n){var i=this.elementRef.nativeElement.querySelector(t);if(i){var r=i.getBoundingClientRect(),o=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",r.left-o.left+this.elementRef.nativeElement.scrollLeft+(e||0),n),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",r.top-o.top+this.elementRef.nativeElement.scrollTop+(e||0),n)}},t.prototype.animateScrolling=function(t,e,n){var i=this;if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),n&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){var r=0,o=0,a=performance.now(),s=this.elementRef.nativeElement[t],c=(s-e)/2,u=function(l){o+=Math.PI/(n/(l-a)),r=Math.round(e+c+c*Math.cos(o)),i.elementRef.nativeElement[t]===s&&(o>=Math.PI?i.animateScrolling(t,e,0):(i.elementRef.nativeElement[t]=r,s=i.elementRef.nativeElement[t],a=l,i.animation=window.requestAnimationFrame(u)))};window.requestAnimationFrame(u)}}else this.elementRef.nativeElement[t]=e},t.\u0275fac=function(e){return new(e||t)(s.Qb(s.A),s.Qb(s.u),s.Qb(s.l),s.Qb(s.C),s.Qb(nt,8))},t.\u0275dir=s.Lb({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[s.Bb]}),t}(),ct=function(){function t(){}return t.\u0275mod=s.Ob({type:t}),t.\u0275inj=s.Nb({factory:function(e){return new(e||t)},imports:[[c.c],c.c]}),t}()},gI3B:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("6blF"),r=n("T1DM"),o=n("/21U"),a=n("nkY7");function s(t,e,n){void 0===t&&(t=0);var s=-1;return Object(o.a)(e)?s=Number(e)<1?1:Number(e):Object(a.a)(e)&&(n=e),Object(a.a)(n)||(n=r.a),new i.a((function(e){var i=Object(o.a)(t)?t:+t-n.now();return n.schedule(c,i,{index:0,period:s,subscriber:e})}))}function c(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}},gIcY:function(t,e,n){"use strict";n.d(e,"a",(function(){return Bt})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return Wt})),n.d(e,"d",(function(){return pt})),n.d(e,"e",(function(){return At})),n.d(e,"f",(function(){return Ft})),n.d(e,"g",(function(){return Dt})),n.d(e,"h",(function(){return zt})),n.d(e,"i",(function(){return C})),n.d(e,"j",(function(){return u})),n.d(e,"k",(function(){return y})),n.d(e,"l",(function(){return _})),n.d(e,"m",(function(){return w})),n.d(e,"n",(function(){return bt})),n.d(e,"o",(function(){return Ct})),n.d(e,"p",(function(){return R})),n.d(e,"q",(function(){return Ut})),n.d(e,"r",(function(){return Vt})),n.d(e,"s",(function(){return S})),n.d(e,"t",(function(){return xt}));var i=n("mrSG"),r=n("CcnG"),o=n("Ip0R"),a=n("VNr4"),s=n("0/uQ"),c=n("67Y/"),u=new r.r("NgValueAccessor"),l={provide:u,useExisting:Object(r.V)((function(){return p})),multi:!0},p=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.\u0275fac=function(e){return new(e||t)(r.Qb(r.F),r.Qb(r.l))},t.\u0275dir=r.Lb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&r.ec("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[r.Cb([l])]}),t}(),h={provide:u,useExisting:Object(r.V)((function(){return f})),multi:!0},d=new r.r("CompositionEventMode"),f=function(){function t(t,e,n){var i;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=Object(o.D)()?Object(o.D)().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t.\u0275fac=function(e){return new(e||t)(r.Qb(r.F),r.Qb(r.l),r.Qb(d,8))},t.\u0275dir=r.Lb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&r.ec("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[r.Cb([h])]}),t}(),m=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Lb({type:t}),t}(),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(i.c)(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=r.Lb({type:e,features:[r.Ab]});var n=r.Yb(e);return e}(m);function g(){throw new Error("unimplemented")}var y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return Object(i.c)(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return g()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return g()},enumerable:!0,configurable:!0}),e}(m),v=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),_=function(t){function e(e){return t.call(this,e)||this}return Object(i.c)(e,t),e.\u0275fac=function(t){return new(t||e)(r.Qb(y,2))},e.\u0275dir=r.Lb({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Hb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[r.Ab]}),e}(v),w=function(t){function e(e){return t.call(this,e)||this}return Object(i.c)(e,t),e.\u0275fac=function(t){return new(t||e)(r.Qb(b,2))},e.\u0275dir=r.Lb({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Hb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[r.Ab]}),e}(v);function O(t){return null==t||0===t.length}var C=new r.r("NgValidators"),x=new r.r("NgAsyncValidators"),E=/^(?=.{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])?)*$/,S=function(){function t(){}return t.min=function(t){return function(e){if(O(e.value)||O(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&nt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return O(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return O(t.value)||E.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(O(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(i="","^"!==e.charAt(0)&&(i+="^"),i+=e,"$"!==e.charAt(e.length-1)&&(i+="$"),n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(O(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}):t.nullValidator;var n,i},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(A);return 0==e.length?null:function(t){return D(function(t,e){return e.map((function(e){return e(t)}))}(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(A);return 0==e.length?null:function(t){var n=function(t,e){return e.map((function(e){return e(t)}))}(t,e).map(k);return Object(a.a)(n).pipe(Object(c.a)(D))}},t}();function A(t){return null!=t}function k(t){var e=Object(r.ub)(t)?Object(s.a)(t):t;if(!Object(r.tb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function D(t){var e={};return t.forEach((function(t){e=null!=t?Object(i.a)(Object(i.a)({},e),t):e})),0===Object.keys(e).length?null:e}function j(t){return t.validate?function(e){return t.validate(e)}:t}function I(t){return t.validate?function(e){return t.validate(e)}:t}var T={provide:u,useExisting:Object(r.V)((function(){return R})),multi:!0},R=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.\u0275fac=function(e){return new(e||t)(r.Qb(r.F),r.Qb(r.l))},t.\u0275dir=r.Lb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&r.ec("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[r.Cb([T])]}),t}(),P={provide:u,useExisting:Object(r.V)((function(){return F})),multi:!0},L=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach((function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)}))},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Mb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),F=function(){function t(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(y),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex:

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',B='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',H='\n
\n
\n \n
\n
',W=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+V)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+B+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+H)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+V)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+B)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}(),z={provide:u,useExisting:Object(r.V)((function(){return U})),multi:!0},U=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=r.vb}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var r=Object(i.h)(Array.from(this._optionMap.keys())),o=r.next();!o.done;o=r.next()){var a=o.value;if(this._compareWith(this._optionMap.get(a),t))return a}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t.\u0275fac=function(e){return new(e||t)(r.Qb(r.F),r.Qb(r.l))},t.\u0275dir=r.Lb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&r.ec("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r.Cb([z])]}),t}(),Q={provide:u,useExisting:Object(r.V)((function(){return Y})),multi:!0},Y=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=r.vb}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var i=t.map((function(t){return n._getOptionId(t)}));e=function(t,e){t._setSelected(i.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var r=n.selectedOptions,o=0;o1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function J(t){return null!=t?S.compose(t.map(j)):null}function tt(t){return null!=t?S.composeAsync(t.map(I)):null}function et(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(r.vb)(e,n.currentValue)}var nt=[p,M,R,U,Y,F];function it(t,e){t._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}))}function rt(t,e){if(!e)return null;Array.isArray(e)||$(t,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,r=void 0;return e.forEach((function(e){var o;e.constructor===f?n=e:(o=e,nt.some((function(t){return o.constructor===t}))?(i&&$(t,"More than one built-in value accessor matches form control with"),i=e):(r&&$(t,"More than one custom value accessor matches form control with"),r=e))})),r||i||n||($(t,"No valid value accessor for form control with"),null)}function ot(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function at(t,e,n,i){Object(r.X)()&&"never"!==i&&((null!==i&&"once"!==i||e._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(W.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function st(t){var e=ut(t)?t.validators:t;return Array.isArray(e)?J(e):e||null}function ct(t,e){var n=ut(e)?e.asyncValidators:t;return Array.isArray(n)?tt(n):n||null}function ut(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var lt=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=st(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=ct(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAllAsTouched=function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(t){return t.markAllAsTouched()}))},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(t){t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(t){t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={});var e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(e){e.disable(Object(i.a)(Object(i.a)({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object(i.a)(Object(i.a)({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!0)}))},t.prototype.enable=function(t){void 0===t&&(t={});var e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(e){e.enable(Object(i.a)(Object(i.a)({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object(i.a)(Object(i.a)({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!1)}))},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild((function(e){return e._updateTreeValidity(t)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=k(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return e.setErrors(n,{emitEvent:t})}))}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var i=t;return e.forEach((function(t){i=i instanceof ht?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof dt&&i.at(t)||null})),i}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new r.o,this.statusChanges=new r.o},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls((function(e){return e.status===t}))},t.prototype._anyControlsDirty=function(){return this._anyControls((function(t){return t.dirty}))},t.prototype._anyControlsTouched=function(){return this._anyControls((function(t){return t.touched}))},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){ut(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t.prototype._parentMarkedDirty=function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()},t}(),pt=function(t){function e(e,n,i){void 0===e&&(e=null);var r=t.call(this,st(n),ct(i,n))||this;return r._onChange=[],r._applyFormState(e),r._setUpdateStrategy(n),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r._initObservables(),r}return Object(i.c)(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach((function(t){return t(n.value,!1!==e.emitViewToModelChange)})),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(lt),ht=function(t){function e(e,n,i){var r=t.call(this,st(n),ct(i,n))||this;return r.controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return Object(i.c)(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach((function(i){n._throwIfControlMissing(i),n.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach((function(i){n.controls[i]&&n.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild((function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},(function(t,e,n){return t[n]=e instanceof pt?e.value:e.getRawValue(),t}))},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,(function(t,e){return!!e._syncPendingControls()||t}));return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach((function(n){return t(e.controls[n],n)}))},e.prototype._setUpControls=function(){var t=this;this._forEachChild((function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)}))},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild((function(i,r){n=n||e.contains(r)&&t(i)})),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},(function(e,n,i){return(n.enabled||t.disabled)&&(e[i]=n.value),e}))},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild((function(t,i){n=e(n,t,i)})),n},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=Object(i.h)(Object.keys(this.controls)),r=n.next();!r.done;r=n.next())if(this.controls[r.value].enabled)return!1}catch(o){t={error:o}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")}))},e}(lt),dt=function(t){function e(e,n,i){var r=t.call(this,st(n),ct(i,n))||this;return r.controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return Object(i.c)(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach((function(t,i){n._throwIfControlMissing(i),n.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach((function(t,i){n.at(i)&&n.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild((function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)},e.prototype.getRawValue=function(){return this.controls.map((function(t){return t instanceof pt?t.value:t.getRawValue()}))},e.prototype.clear=function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())},e.prototype._syncPendingControls=function(){var t=this.controls.reduce((function(t,e){return!!e._syncPendingControls()||t}),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach((function(e,n){t(e,n)}))},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter((function(e){return e.enabled||t.disabled})).map((function(t){return t.value}))},e.prototype._anyControls=function(t){return this.controls.some((function(e){return e.enabled&&t(e)}))},e.prototype._setUpControls=function(){var t=this;this._forEachChild((function(e){return t._registerControl(e)}))},e.prototype._checkAllValuesPresent=function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")}))},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=Object(i.h)(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(o){t={error:o}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(lt),ft={provide:b,useExisting:Object(r.V)((function(){return bt}))},mt=function(){return Promise.resolve(null)}(),bt=function(t){function e(e,n){var i=t.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new r.o,i.form=new ht({},J(e),tt(n)),i}return Object(i.c)(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;mt.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),q(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)}))},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;mt.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),ot(e._directives,t)}))},e.prototype.addFormGroup=function(t){var e=this;mt.then((function(){var n=e._findContainer(t.path),i=new ht({});X(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})}))},e.prototype.removeFormGroup=function(t){var e=this;mt.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)}))},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;mt.then((function(){n.form.get(t.path).setValue(e)}))},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,it(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e.\u0275fac=function(t){return new(t||e)(r.Qb(C,10),r.Qb(x,10))},e.\u0275dir=r.Lb({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&r.ec("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Cb([ft]),r.Ab]}),e}(b),gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(i.c)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return G(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return J(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return tt(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=r.Lb({type:e,features:[r.Ab]});var n=r.Yb(e);return e}(b),yt=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+V+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+B+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+H)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+B+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+H)},t}(),vt={provide:b,useExisting:Object(r.V)((function(){return _t}))},_t=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}var n;return Object(i.c)(e,t),n=e,e.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof bt||yt.modelGroupParentException()},e.\u0275fac=function(t){return new(t||e)(r.Qb(b,5),r.Qb(C,10),r.Qb(x,10))},e.\u0275dir=r.Lb({type:e,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[r.Cb([vt]),r.Ab]}),e}(gt),wt={provide:y,useExisting:Object(r.V)((function(){return Ct}))},Ot=function(){return Promise.resolve(null)}(),Ct=function(t){function e(e,n,i,o){var a=t.call(this)||this;return a.control=new pt,a._registered=!1,a.update=new r.o,a._parent=e,a._rawValidators=n||[],a._rawAsyncValidators=i||[],a.valueAccessor=rt(a,o),a}return Object(i.c)(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),et(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?G(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return J(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return tt(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){q(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof _t)&&this._parent instanceof gt?yt.formGroupNameException():this._parent instanceof _t||this._parent instanceof bt||yt.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||yt.missingNameException()},e.prototype._updateValue=function(t){var e=this;Ot.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;Ot.then((function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()}))},e.\u0275fac=function(t){return new(t||e)(r.Qb(b,9),r.Qb(C,10),r.Qb(x,10),r.Qb(u,10))},e.\u0275dir=r.Lb({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r.Cb([wt]),r.Ab,r.Bb]}),e}(y),xt=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Lb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),Et=new r.r("NgModelWithFormControlWarning"),St={provide:y,useExisting:Object(r.V)((function(){return At}))},At=function(t){function e(e,n,i,o){var a=t.call(this)||this;return a._ngModelWarningConfig=o,a.update=new r.o,a._ngModelWarningSent=!1,a._rawValidators=e||[],a._rawAsyncValidators=n||[],a.valueAccessor=rt(a,i),a}var n;return Object(i.c)(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){W.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(q(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),et(t,this.viewModel)&&(at("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return J(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return tt(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(r.Qb(C,10),r.Qb(x,10),r.Qb(u,10),r.Qb(Et,8))},e.\u0275dir=r.Lb({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r.Cb([St]),r.Ab,r.Bb]}),e}(y),kt={provide:b,useExisting:Object(r.V)((function(){return Dt}))},Dt=function(t){function e(e,n){var i=t.call(this)||this;return i._validators=e,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new r.o,i}return Object(i.c)(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return q(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){ot(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);X(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);X(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,it(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach((function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange((function(){return Z(e)})),e.valueAccessor.registerOnTouched((function(){return Z(e)})),e._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),e._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),t&&t._clearChangeFns()}(e.control,e),n&&q(n,e),e.control=n)})),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=J(this._validators);this.form.validator=S.compose([this.form.validator,t]);var e=tt(this._asyncValidators);this.form.asyncValidator=S.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||W.missingFormException()},e.\u0275fac=function(t){return new(t||e)(r.Qb(C,10),r.Qb(x,10))},e.\u0275dir=r.Lb({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&r.ec("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Cb([kt]),r.Ab,r.Bb]}),e}(b),jt={provide:b,useExisting:Object(r.V)((function(){return It}))},It=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}return Object(i.c)(e,t),e.prototype._checkParentType=function(){Pt(this._parent)&&W.groupParentException()},e.\u0275fac=function(t){return new(t||e)(r.Qb(b,13),r.Qb(C,10),r.Qb(x,10))},e.\u0275dir=r.Lb({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[r.Cb([jt]),r.Ab]}),e}(gt),Tt={provide:b,useExisting:Object(r.V)((function(){return Rt}))},Rt=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}return Object(i.c)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return G(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return J(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return tt(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){Pt(this._parent)&&W.arrayParentException()},e.\u0275fac=function(t){return new(t||e)(r.Qb(b,13),r.Qb(C,10),r.Qb(x,10))},e.\u0275dir=r.Lb({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[r.Cb([Tt]),r.Ab]}),e}(b);function Pt(t){return!(t instanceof It||t instanceof Dt||t instanceof Rt)}var Lt={provide:y,useExisting:Object(r.V)((function(){return Ft}))},Ft=function(t){function e(e,n,i,o,a){var s=t.call(this)||this;return s._ngModelWarningConfig=a,s._added=!1,s.update=new r.o,s._ngModelWarningSent=!1,s._parent=e,s._rawValidators=n||[],s._rawAsyncValidators=i||[],s.valueAccessor=rt(s,o),s}var n;return Object(i.c)(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){W.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),et(t,this.viewModel)&&(at("formControlName",n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return G(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return J(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return tt(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof It)&&this._parent instanceof gt?W.ngModelGroupException():this._parent instanceof It||this._parent instanceof Dt||this._parent instanceof Rt||W.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(r.Qb(b,13),r.Qb(C,10),r.Qb(x,10),r.Qb(u,10),r.Qb(Et,8))},e.\u0275dir=r.Lb({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r.Cb([Lt]),r.Ab,r.Bb]}),e}(y),Nt={provide:C,useExisting:Object(r.V)((function(){return Vt})),multi:!0},Mt={provide:C,useExisting:Object(r.V)((function(){return Bt})),multi:!0},Vt=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?S.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Lb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&r.Eb("required",e.required?"":null)},inputs:{required:"required"},features:[r.Cb([Nt])]}),t}(),Bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(i.c)(e,t),e.prototype.validate=function(t){return this.required?S.requiredTrue(t):null},e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=r.Lb({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r.Eb("required",e.required?"":null)},features:[r.Cb([Mt]),r.Ab]});var n=r.Yb(e);return e}(Vt),Ht=function(){function t(){}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)}}),t}(),Wt=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),i=null,r=null,o=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new ht(n,{asyncValidators:r,updateOn:o,validators:i})},t.prototype.control=function(t,e,n){return new pt(t,e,n)},t.prototype.array=function(t,e,n){var i=this,r=t.map((function(t){return i._createControl(t)}));return new dt(r,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach((function(i){n[i]=e._createControl(t[i])})),n},t.prototype._createControl=function(t){return t instanceof pt||t instanceof ht||t instanceof dt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Mb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),zt=function(){function t(){}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[L],imports:[Ht]}),t}(),Ut=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:Et,useValue:t.warnOnNgModelWithFormControl}]}},t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[Wt,L],imports:[Ht]}),t}()},h9Dq:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("mrSG"),r=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.pending=!1,i}return i.c(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return i.c(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n("pugT").a))},hBQm:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("t/Na"),r=n("XlPw"),o=n("9Z1F"),a=n("AytR"),s=n("V8Fa"),c=n("cpEJ"),u=n("7nzP"),l=n("/uX3"),p=n("CcnG"),h=n("yGQT"),d=function(){function t(t,e,n){this.httpClient=t,this.logger=e,this.store=n,this.CHILD_API_URL=a.a+"/lnd",this.loopUrl=""}return t.prototype.loopOut=function(t,e,n,i,r,s,c,u,l,p){var h=this,d={amount:t,targetConf:n,swapRoutingFee:i,minerFee:r,prepayRoutingFee:s,prepayAmt:c,swapFee:u,swapPublicationDeadline:l,destAddress:p};return""!==e&&(d.chanId=e),this.loopUrl=this.CHILD_API_URL+a.b.LOOP_API+"/out",this.httpClient.post(this.loopUrl,d).pipe(Object(o.a)((function(t){return h.handleErrorWithoutAlert("Loop Out for Channel: "+e,t)})))},t.prototype.getLoopOutTerms=function(){var t=this;return this.loopUrl=this.CHILD_API_URL+a.b.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe(Object(o.a)((function(e){return t.handleErrorWithoutAlert("Loop Out Terms",e)})))},t.prototype.getLoopOutQuote=function(t,e,n){var r=this,s=new i.d;return s=(s=s.append("targetConf",e.toString())).append("swapPublicationDeadline",n.toString()),this.loopUrl=this.CHILD_API_URL+a.b.LOOP_API+"/out/quote/"+t,this.httpClient.get(this.loopUrl,{params:s}).pipe(Object(o.a)((function(t){return r.handleErrorWithoutAlert("Loop Out Quote",t)})))},t.prototype.getLoopOutTermsAndQuotes=function(t){var e=this,n=new i.d;return n=(n=n.append("targetConf",t.toString())).append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=this.CHILD_API_URL+a.b.LOOP_API+"/out/termsAndQuotes",this.httpClient.get(this.loopUrl,{params:n}).pipe(Object(o.a)((function(t){return e.handleErrorWithAlert(e.loopUrl,t)})))},t.prototype.loopIn=function(t,e,n,i,r){var s=this,c={amount:t,swapFee:e,minerFee:n,lastHop:i,externalHtlc:r};return this.loopUrl=this.CHILD_API_URL+a.b.LOOP_API+"/in",this.httpClient.post(this.loopUrl,c).pipe(Object(o.a)((function(t){return s.handleErrorWithoutAlert("Loop In",t)})))},t.prototype.getLoopInTerms=function(){var t=this;return this.loopUrl=this.CHILD_API_URL+a.b.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe(Object(o.a)((function(e){return t.handleErrorWithoutAlert("Loop In Terms",e)})))},t.prototype.getLoopInQuote=function(t,e,n){var r=this,s=new i.d;return s=(s=s.append("targetConf",e.toString())).append("swapPublicationDeadline",n.toString()),this.loopUrl=this.CHILD_API_URL+a.b.LOOP_API+"/in/quote/"+t,this.httpClient.get(this.loopUrl,{params:s}).pipe(Object(o.a)((function(t){return r.handleErrorWithoutAlert("Loop In Qoute",t)})))},t.prototype.getLoopInTermsAndQuotes=function(t){var e=this,n=new i.d;return n=(n=n.append("targetConf",t.toString())).append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=this.CHILD_API_URL+a.b.LOOP_API+"/in/termsAndQuotes",this.httpClient.get(this.loopUrl,{params:n}).pipe(Object(o.a)((function(t){return e.handleErrorWithAlert(e.loopUrl,t)})))},t.prototype.getSwap=function(t){var e=this;return this.loopUrl=this.CHILD_API_URL+a.b.LOOP_API+"/swap/"+t,this.httpClient.get(this.loopUrl).pipe(Object(o.a)((function(n){return e.handleErrorWithoutAlert("Loop Get Swap for ID: "+t,n)})))},t.prototype.handleErrorWithoutAlert=function(t,e){return this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(e)),this.store.dispatch(new l.i),401===e.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new l.x)):"ECONNREFUSED"!==e.error.errno&&"ECONNREFUSED"!==e.error.error.errno||this.store.dispatch(new l.C({data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:"ECONNREFUSED",message:"Unable to Connect to Loop Server",URL:t},component:s.a}})),Object(r.a)(e)},t.prototype.handleErrorWithAlert=function(t,e){return 401===e.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch(new l.x)),e.message=e.error&&e.error.error&&e.error.error.error&&"string"==typeof e.error.error.error?e.error.error.error:e.error&&e.error.error&&"string"==typeof e.error.error?e.error.error:e.error&&"string"==typeof e.error?e.error:"Unknown Error",this.logger.error(e),this.store.dispatch(new l.i),401===e.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new l.x)):this.store.dispatch(new l.C("ECONNREFUSED"===e.errno?{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:"ECONNREFUSED",message:"Unable to Connect to Loop Server",URL:t},component:s.a}}:{data:{type:u.b.ERROR,alertTitle:"ERROR",message:{code:e.code?e.code:e.status,message:e.message?e.message:"Unknown Error",URL:t},component:s.a}})),Object(r.a)(e)},t.\u0275fac=function(e){return new(e||t)(p.ac(i.b),p.ac(c.b),p.ac(h.h))},t.\u0275prov=p.Mb({token:t,factory:t.\u0275fac}),t}()},hUWP:function(t,e,n){"use strict";n.d(e,"c",(function(){return g})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return m}));var i=n("mrSG"),r=n("CcnG"),o=n("Ip0R"),a=n("OzfB"),s=(n("349r"),n("ny24"),n("ZYjt")),c=["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"],u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=c,e}Object(i.c)(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=r.Lb({type:e,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:[r.Ab]});var n=r.Yb(e);return e}(function(t){function e(e,n,i,r,a,s,c){var u=t.call(this,e,null,n,i)||this;return u.ngClassInstance=c,u.DIRECTIVE_KEY="ngClass",u.ngClassInstance||(u.ngClassInstance=new o.l(r,a,e,s)),u.init(),u.setValue("",""),u}return Object(i.c)(e,t),Object.defineProperty(e.prototype,"klass",{set:function(t){this.ngClassInstance.klass=t,this.setValue(t,"")},enumerable:!0,configurable:!0}),e.prototype.updateWithValue=function(t){this.ngClassInstance.ngClass=t,this.ngClassInstance.ngDoCheck()},e.prototype.ngDoCheck=function(){this.ngClassInstance.ngDoCheck()},e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(a.i),r.Qb(a.f),r.Qb(r.t),r.Qb(r.u),r.Qb(r.F),r.Qb(o.l,10))},e.\u0275dir=r.Lb({type:e,inputs:{klass:["class","klass"]},features:[r.Ab]}),e}(a.b)),l=function(){return function(t,e,n){void 0===n&&(n=!0),this.key=t,this.value=e,this.key=n?t.replace(/['"]/g,"").trim():t.trim(),this.value=n?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}();function p(t){var e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function h(t){var e=t.split(":"),n=e[0],i=e.slice(1);return new l(n,i.join(":"))}function d(t,e){return e.key&&(t[e.key]=e.value),t}var f=["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"],m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=f,e}Object(i.c)(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=r.Lb({type:e,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:[r.Ab]});var n=r.Yb(e);return e}(function(t){function e(e,n,i,r,a,s,c,u,l){var p=t.call(this,e,null,n,i)||this;p.sanitizer=r,p.ngStyleInstance=c,p.DIRECTIVE_KEY="ngStyle",p.ngStyleInstance||(p.ngStyleInstance=new o.o(e,a,s)),p.init();var h=p.nativeElement.getAttribute("style")||"";return p.fallbackStyles=p.buildStyleMap(h),p.isServer=u&&Object(o.A)(l),p}return Object(i.c)(e,t),e.prototype.updateWithValue=function(t){var e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object(i.a)(Object(i.a)({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()},e.prototype.clearStyles=function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()},e.prototype.buildStyleMap=function(t){var e,n=this,i=function(t){return n.sanitizer.sanitize(r.J.STYLE,t)||""};if(t)switch(p(t)){case"string":return b((void 0===e&&(e=";"),String(t).trim().split(e).map((function(t){return t.trim()})).filter((function(t){return""!==t}))),i);case"array":return b(t,i);case"set":default:return function(t,e){var n=[];return"set"===p(t)?t.forEach((function(t){return n.push(t)})):Object.keys(t).forEach((function(e){n.push(e+":"+t[e])})),function(t,e){return t.map(h).filter((function(t){return!!t})).map((function(t){return e&&(t.value=e(t.value)),t})).reduce(d,{})}(n,e)}(t,i)}return{}},e.prototype.ngDoCheck=function(){this.ngStyleInstance.ngDoCheck()},e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(a.i),r.Qb(a.f),r.Qb(s.b),r.Qb(r.u),r.Qb(r.F),r.Qb(o.o,10),r.Qb(a.g),r.Qb(r.C))},e.\u0275dir=r.Lb({type:e,features:[r.Ab]}),e}(a.b));function b(t,e){return t.map(h).filter((function(t){return!!t})).map((function(t){return e&&(t.value=e(t.value)),t})).reduce(d,{})}var g=function(){function t(){}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[a.c]]}),t}()},iLxQ:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=!1,r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},ihYY:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return g})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return f})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return h})),n.d(e,"i",(function(){return m})),n.d(e,"j",(function(){return u})),n.d(e,"k",(function(){return p})),n.d(e,"l",(function(){return l})),n.d(e,"m",(function(){return d})),n.d(e,"n",(function(){return a})),n.d(e,"o",(function(){return y})),n.d(e,"p",(function(){return v}));var i=function(){return function(){}}(),r=function(){return function(){}}(),o="*";function a(t,e){return{type:7,name:t,definitions:e,options:{}}}function s(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function c(t,e){return void 0===e&&(e=null),{type:3,steps:t,options:e}}function u(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function l(t){return{type:6,styles:t,offset:null}}function p(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t){return{type:5,steps:t}}function d(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}}function f(t){return void 0===t&&(t=null),{type:9,options:t}}function m(t,e,n){return void 0===n&&(n=null),{type:11,selector:t,animation:e,options:n}}function b(t){Promise.resolve(null).then(t)}var g=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;b((function(){return t._onFinish()}))},t.prototype._onStart=function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t}(),y=function(){function t(t){var e=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,i=0,r=0,o=this.players.length;0==o?b((function(){return e._onFinish()})):this.players.forEach((function(t){t.onDone((function(){++n==o&&e._onFinish()})),t.onDestroy((function(){++i==o&&e._onDestroy()})),t.onStart((function(){++r==o&&e._onStart()}))})),this.totalTime=this.players.reduce((function(t,e){return Math.max(t,e.totalTime)}),0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach((function(t){return t.init()}))},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(t){return t.play()}))},t.prototype.pause=function(){this.players.forEach((function(t){return t.pause()}))},t.prototype.restart=function(){this.players.forEach((function(t){return t.restart()}))},t.prototype.finish=function(){this._onFinish(),this.players.forEach((function(t){return t.finish()}))},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(t){return t.destroy()})),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach((function(t){return t.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach((function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)}))},t.prototype.getPosition=function(){var t=0;return this.players.forEach((function(e){var n=e.getPosition();t=Math.min(n,t)})),t},t.prototype.beforeDestroy=function(){this.players.forEach((function(t){t.beforeDestroy&&t.beforeDestroy()}))},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t}(),v="!"},iiaH:function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var i=n("t/Na"),r=n("K9Ia"),o=n("XlPw"),a=n("ny24"),s=n("67Y/"),c=n("9Z1F"),u=n("cpEJ"),l=n("AytR"),p=n("V8Fa"),h=n("/uX3"),d=n("CcnG"),f=n("yGQT"),m=n("KELG"),b=function(){function t(t,e,n,i){this.httpClient=t,this.store=e,this.logger=n,this.snackBar=i,this.lnImplementation="LND",this.childAPIUrl=l.a,this.unSubs=[new r.a,new r.a,new r.a,new r.a]}return t.prototype.ngOnInit=function(){},t.prototype.getChildAPIUrl=function(){return this.childAPIUrl},t.prototype.getLnImplementation=function(){return this.lnImplementation},t.prototype.setChildAPIUrl=function(t){switch(this.lnImplementation=t,t){case"CLT":this.childAPIUrl=l.a+"/cl";break;case"ECL":this.childAPIUrl=l.a+"/ecl";break;default:this.childAPIUrl=l.a+"/lnd"}},t.prototype.getFiatRates=function(){return this.httpClient.get(l.b.CONF_API+"/rates")},t.prototype.decodePayment=function(t,e){var n=this,i=this.childAPIUrl+l.b.PAYREQUEST_API+"/"+t;return"ECL"===this.getLnImplementation()&&(i=this.childAPIUrl+l.b.PAYMENTS_API+"/"+t),this.store.dispatch(new h.F("Decoding Payment...")),this.httpClient.get(i).pipe(Object(a.a)(this.unSubs[3]),Object(s.a)((function(t){return n.store.dispatch(new h.i),t})),Object(c.a)((function(t){return e?n.handleErrorWithoutAlert("Decode Payment",t):n.handleErrorWithAlert("ERROR","Decode Payment Failed",n.childAPIUrl+l.b.PAYREQUEST_API,t),Object(o.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t)})))},t.prototype.decodePayments=function(t){var e=this,n=this.childAPIUrl+l.b.PAYREQUEST_API,i="Decoding Payments";return"ECL"===this.getLnImplementation()&&(n=this.childAPIUrl+l.b.PAYMENTS_API+"/getsentinfos",i="Getting Sent Payments"),this.store.dispatch(new h.F(i+"...")),this.httpClient.post(n,{payments:t}).pipe(Object(a.a)(this.unSubs[0]),Object(s.a)((function(t){return e.store.dispatch(new h.i),t})),Object(c.a)((function(t){return e.handleErrorWithAlert("ERROR",i+" Failed",n,t),Object(o.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t)})))},t.prototype.getAliasesFromPubkeys=function(t,e){if(e){var n=(new i.d).set("pubkeys",t);return this.httpClient.get(this.childAPIUrl+l.b.NETWORK_API+"/nodes",{params:n})}return this.httpClient.get(this.childAPIUrl+l.b.NETWORK_API+"/node/"+t)},t.prototype.signMessage=function(t){var e=this;return this.store.dispatch(new h.F("Signing Message...")),this.httpClient.post(this.childAPIUrl+l.b.MESSAGE_API+"/sign",{message:t}).pipe(Object(a.a)(this.unSubs[1]),Object(s.a)((function(t){return e.store.dispatch(new h.i),t})),Object(c.a)((function(t){return e.handleErrorWithAlert("ERROR","Sign Message Failed",e.childAPIUrl+l.b.MESSAGE_API+"/sign",t),Object(o.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t)})))},t.prototype.verifyMessage=function(t,e){var n=this;return this.store.dispatch(new h.F("Verifying Message...")),this.httpClient.post(this.childAPIUrl+l.b.MESSAGE_API+"/verify",{message:t,signature:e}).pipe(Object(a.a)(this.unSubs[2]),Object(s.a)((function(t){return n.store.dispatch(new h.i),t})),Object(c.a)((function(t){return n.handleErrorWithAlert("ERROR","Verify Message Failed",n.childAPIUrl+l.b.MESSAGE_API+"/verify",t),Object(o.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t)})))},t.prototype.bumpFee=function(t,e,n,i){var r=this,u={txid:t,outputIndex:e};return n&&(u.targetConf=n),i&&(u.satPerByte=i),this.store.dispatch(new h.F("Bumping Fee...")),this.httpClient.post(this.childAPIUrl+l.b.WALLET_API+"/bumpfee",u).pipe(Object(a.a)(this.unSubs[2]),Object(s.a)((function(t){return r.store.dispatch(new h.i),r.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),t})),Object(c.a)((function(t){return r.handleErrorWithoutAlert("Bump Fee",t),Object(o.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t)})))},t.prototype.handleErrorWithoutAlert=function(t,e){this.store.dispatch(new h.i),this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(e)),401===e.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch(new h.x))},t.prototype.handleErrorWithAlert=function(t,e,n,i){this.logger.error(i),this.store.dispatch(new h.i),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new h.x)):this.store.dispatch(new h.C({data:{type:t,alertTitle:e,message:{code:i.status,message:i.error.error,URL:n},component:p.a}}))},t.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(t){t.next(),t.complete()}))},t.\u0275fac=function(e){return new(e||t)(d.ac(i.b),d.ac(f.h),d.ac(u.b),d.ac(m.b))},t.\u0275prov=d.Mb({token:t,factory:t.\u0275fac}),t}()},isby:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},jSPq:function(t,e,n){var i=n("Wogr"),r=n("JzKC");function o(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(t){this.degree=t,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var e=new i(this.degree);e.fill(0);var n=i.concat([t,e],t.length+this.degree),o=r.mod(n,this.genPoly),a=this.degree-o.length;if(a>0){var s=new i(this.degree);return s.fill(0),o.copy(s,a),s}return o},t.exports=o},jYNz:function(t,e,n){"use strict";n.d(e,"a",(function(){return z})),n.d(e,"b",(function(){return M})),n.d(e,"c",(function(){return ot})),n.d(e,"d",(function(){return U}));var i=n("mrSG"),r=n("yGQT"),o=n("p0ib"),a=n("6blF"),s=n("K9Ia"),c=(n("lYZG"),n("60iU")),u=n("FFOo"),l=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new p(t))},t}(),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.c(e,t),e.prototype._next=function(t){},e}(u.a),h=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new d(t))},t}(),d=function(t){function e(e){return t.call(this,e)||this}return i.c(e,t),e.prototype._next=function(t){this.destination.next(c.a.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(c.a.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(c.a.createComplete()),t.complete()},e}(u.a),f=n("67Y/"),m=n("9Z1F"),b=n("VnD/"),g=n("pugT");function y(t,e,n,i){return function(r){return r.lift(new v(t,e,n,i))}}var v=function(){function t(t,e,n,i){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=i}return t.prototype.call=function(t,e){return e.subscribe(new _(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),_=function(t){function e(e,n,i,r,o){var a=t.call(this,e)||this;return a.keySelector=n,a.elementSelector=i,a.durationSelector=r,a.subjectSelector=o,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return i.c(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(n){return void this.error(n)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var i,r=n.get(e);if(this.elementSelector)try{i=this.elementSelector(t)}catch(c){this.error(c)}else i=t;if(!r){r=this.subjectSelector?this.subjectSelector():new s.a,n.set(e,r);var o=new O(e,r,this);if(this.destination.next(o),this.durationSelector){var a=void 0;try{a=this.durationSelector(new O(e,r))}catch(c){return void this.error(c)}this.add(a.subscribe(new w(e,r,this)))}}r.closed||r.next(i)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,n){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(u.a),w=function(t){function e(e,n,i){var r=t.call(this,n)||this;return r.key=e,r.group=n,r.parent=i,r}return i.c(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(u.a),O=function(t){function e(e,n,i){var r=t.call(this)||this;return r.key=e,r.groupSubject=n,r.refCountSubscription=i,r}return i.c(e,t),e.prototype._subscribe=function(t){var e=new g.a,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&e.add(new C(n)),e.add(i.subscribe(t)),e},e}(a.a),C=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return i.c(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(g.a),x=n("psW0"),E=n("MGBS"),S=n("rPjj"),A=n("zotm"),k=n("0/uQ"),D=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new j(t,this.project))},t}(),j=function(t){function e(e,n){var i=t.call(this,e)||this;return i.project=n,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}return i.c(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var i=new S.a(this,e,n),r=this.destination;r.add(i);var o=Object(A.a)(this,t,void 0,void 0,i);o!==i&&r.add(o)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(E.a),I=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new T(t))},t}(),T=function(t){function e(e){return t.call(this,e)||this}return i.c(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(u.a),R=n("t9fZ"),P=(n("Phjn"),n("2WpN"),n("CcnG")),L={dispatch:!0,useEffectsErrorHandler:!0};function F(t){return Object.getOwnPropertyNames(t).filter((function(e){return t[e]&&t[e].hasOwnProperty("__@ngrx/effects_create__")})).map((function(e){var n=t[e]["__@ngrx/effects_create__"];return Object(i.a)({propertyName:e},n)}))}function N(t){return Object.getPrototypeOf(t)}function M(t){return void 0===t&&(t={}),function(e,n){var r,o;r=e,o=Object(i.a)(Object(i.a)(Object(i.a)({},L),t),{propertyName:n}),B(r)?r.constructor["__@ngrx/effects__"].push(o):Object.defineProperty(r.constructor,"__@ngrx/effects__",{value:[o]})}}function V(t){return Object(r.m)(H,N)(t)}function B(t){return t.constructor.hasOwnProperty("__@ngrx/effects__")}function H(t){return B(t)?t.constructor["__@ngrx/effects__"]:[]}function W(t,e,n){return void 0===n&&(n=10),t.pipe(Object(m.a)((function(i){return e&&e.handleError(i),n<=1?t:W(t,e,n-1)})))}var z=function(t){function e(e){var n=t.call(this)||this;return e&&(n.source=e),n}var n;return Object(i.c)(e,t),n=e,e.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},e.\u0275fac=function(t){return new(t||e)(P.ac(r.f))},e.\u0275prov=P.Mb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(a.a);function U(){for(var t=[],e=0;e1),r.Db(1),r.pc("ngIf",n._displayedPageSizeOptions.length<=1)}}function g(t,e){if(1&t){var n=r.Xb();r.Wb(0,"button",21),r.ec("click",(function(){return r.yc(n),r.ic().firstPage()})),r.hc(),r.Wb(1,"svg",7),r.Rb(2,"path",22),r.Vb(),r.Vb()}if(2&t){var i=r.ic();r.pc("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),r.Eb("aria-label",i._intl.firstPageLabel)}}function y(t,e){if(1&t){var n=r.Xb();r.hc(),r.gc(),r.Wb(0,"button",23),r.ec("click",(function(){return r.yc(n),r.ic().lastPage()})),r.hc(),r.Wb(1,"svg",7),r.Rb(2,"path",24),r.Vb(),r.Vb()}if(2&t){var i=r.ic();r.pc("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),r.Eb("aria-label",i._intl.lastPageLabel)}}var v=function(){function t(){this.changes=new l.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,e,n){if(0==n||0==e)return"0 of "+n;var i=t*e;return i+1+" \u2013 "+(i<(n=Math.max(n,0))?Math.min(i+e,n):i+e)+" of "+n}}return t.\u0275prov=Object(r.Mb)({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),_={provide:v,deps:[[new r.B,new r.K,v]],useFactory:function(t){return t||new v}},w=new r.r("MAT_PAGINATOR_DEFAULT_OPTIONS"),O=function(){return function(){}}(),C=function(t){function e(e,n,i){var o=t.call(this)||this;if(o._intl=e,o._changeDetectorRef=n,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new r.o,o._intlChanges=e.changes.subscribe((function(){return o._changeDetectorRef.markForCheck()})),i){var a=i.pageSize,s=i.pageSizeOptions,c=i.hidePageSize,u=i.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=s&&(o._pageSizeOptions=s),null!=c&&(o._hidePageSize=c),null!=u&&(o._showFirstLastButtons=u)}return o}return Object(c.c)(e,t),Object.defineProperty(e.prototype,"pageIndex",{get:function(){return this._pageIndex},set:function(t){this._pageIndex=Math.max(Object(u.f)(t),0),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},set:function(t){this._length=Object(u.f)(t),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){return this._pageSize},set:function(t){this._pageSize=Math.max(Object(u.f)(t),0),this._updateDisplayedPageSizeOptions()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSizeOptions",{get:function(){return this._pageSizeOptions},set:function(t){this._pageSizeOptions=(t||[]).map((function(t){return Object(u.f)(t)})),this._updateDisplayedPageSizeOptions()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hidePageSize",{get:function(){return this._hidePageSize},set:function(t){this._hidePageSize=Object(u.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showFirstLastButtons",{get:function(){return this._showFirstLastButtons},set:function(t){this._showFirstLastButtons=Object(u.c)(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()},e.prototype.ngOnDestroy=function(){this._intlChanges.unsubscribe()},e.prototype.nextPage=function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}},e.prototype.previousPage=function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}},e.prototype.firstPage=function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}},e.prototype.lastPage=function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}},e.prototype.hasPreviousPage=function(){return this.pageIndex>=1&&0!=this.pageSize},e.prototype.hasNextPage=function(){var t=this.getNumberOfPages()-1;return this.pageIndex=0;)o^=1335<-1&&n!==e._activeItemIndex&&(e._activeItemIndex=n)}}))}return t.prototype.skipPredicate=function(t){return this._skipPredicateFn=t,this},t.prototype.withWrap=function(t){return void 0===t&&(t=!0),this._wrap=t,this},t.prototype.withVerticalOrientation=function(t){return void 0===t&&(t=!0),this._vertical=t,this},t.prototype.withHorizontalOrientation=function(t){return this._horizontal=t,this},t.prototype.withAllowedModifierKeys=function(t){return this._allowedModifierKeys=t,this},t.prototype.withTypeAhead=function(t){var e=this;if(void 0===t&&(t=200),this._items.length&&this._items.some((function(t){return"function"!=typeof t.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(l.a)((function(t){return e._pressedLetters.push(t)})),Object(p.a)(t),Object(h.a)((function(){return e._pressedLetters.length>0})),Object(d.a)((function(){return e._pressedLetters.join("")}))).subscribe((function(t){for(var n=e._getItemsArray(),i=1;i-1}));switch(n){case u.m:return void this.tabOut.next();case u.b:if(this._vertical&&i){this.setNextItemActive();break}return;case u.n:if(this._vertical&&i){this.setPreviousItemActive();break}return;case u.k:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case u.g:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((i||Object(u.q)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=u.a&&n<=u.o||n>=u.p&&n<=u.h)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()},Object.defineProperty(t.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),t.prototype.isTyping=function(){return this._pressedLetters.length>0},t.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},t.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},t.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},t.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},t.prototype.updateActiveItem=function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n},t.prototype._setActiveItemByDelta=function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)},t.prototype._setActiveInWrapMode=function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}},t.prototype._setActiveInDefaultMode=function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)},t.prototype._setActiveItemByIndex=function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}},t.prototype._getItemsArray=function(){return this._items instanceof r.E?this._items.toArray():this._items},t}(),x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.c)(e,t),e.prototype.setActiveItem=function(e){this.activeItem&&this.activeItem.setInactiveStyles(),t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.setActiveStyles()},e}(C),E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._origin="program",e}return Object(o.c)(e,t),e.prototype.setFocusOrigin=function(t){return this._origin=t,this},e.prototype.setActiveItem=function(e){t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.focus(this._origin)},e}(C),S=function(){function t(t){this._platform=t}return t.prototype.isDisabled=function(t){return t.hasAttribute("disabled")},t.prototype.isVisible=function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility},t.prototype.isTabbable=function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(e){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){var i=n&&n.nodeName.toLowerCase();if(-1===k(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===i)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var r=t.nodeName.toLowerCase(),o=k(t);if(t.hasAttribute("contenteditable"))return-1!==o;if("iframe"===r)return!1;if("audio"===r){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0},t.prototype.isFocusable=function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||A(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t.\u0275prov=Object(r.Mb)({factory:function(){return new t(Object(r.ac)(b.a))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(r.ac(b.a))},t}();function A(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function k(t){if(!A(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var D=function(){function t(t,e,n,i,r){var o=this;void 0===r&&(r=!1),this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,r||this.attachAnchors()}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null},t.prototype.attachAnchors=function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.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)},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusInitialElement())}))}))},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusFirstTabbableElement())}))}))},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusLastTabbableElement())}))}))},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),n=0;n=0;n--){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(i)return i}return null},t.prototype._createAnchor=function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t},t.prototype._toggleAnchorTabIndex=function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")},t.prototype.toggleAnchors=function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))},t.prototype._executeOnStable=function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Object(f.a)(1)).subscribe(t)},t}(),j=function(){function t(t,e,n){this._checker=t,this._ngZone=e,this._document=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new D(t,this._checker,this._ngZone,this._document,e)},t.\u0275prov=Object(r.Mb)({factory:function(){return new t(Object(r.ac)(S),Object(r.ac)(r.A),Object(r.ac)(i.d))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(r.ac(S),r.ac(r.A),r.ac(i.d))},t}(),I=function(){function t(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=Object(m.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoCapture",{get:function(){return this._autoCapture},set:function(t){this._autoCapture=Object(m.c)(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)},t.prototype.ngAfterContentInit=function(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())},t.prototype.ngDoCheck=function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()},t.\u0275fac=function(e){return new(e||t)(r.Qb(r.l),r.Qb(j),r.Qb(i.d))},t.\u0275dir=r.Lb({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"]}),t}();"undefined"!=typeof Element&∈var T=new r.r("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),R=new r.r("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),P=function(){function t(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}return t.prototype.announce=function(t){for(var e,n=this,i=[],r=1;r1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,M),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,M),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,M),i.removeEventListener("mousedown",this._documentMousedownListener,M),i.removeEventListener("touchstart",this._documentTouchstartListener,M),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}},t.\u0275prov=Object(r.Mb)({factory:function(){return new t(Object(r.ac)(r.A),Object(r.ac)(b.a),Object(r.ac)(i.d,8),Object(r.ac)(N,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(r.ac(r.A),r.ac(b.a),r.ac(i.d,8),r.ac(N,8))},t}();function B(t){return t.composedPath?t.composedPath()[0]:t.target}var H=function(){function t(t,e){var n=this;this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new r.o,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((function(t){return n.cdkFocusChange.emit(t)}))}return t.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()},t.\u0275fac=function(e){return new(e||t)(r.Qb(r.l),r.Qb(V))},t.\u0275dir=r.Lb({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),W=function(){function t(t,e){this._platform=t,this._document=e}return t.prototype.getHighContrastMode=function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0},t.prototype._applyBodyHighContrastModeCssClasses=function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}},t.\u0275prov=Object(r.Mb)({factory:function(){return new t(Object(r.ac)(b.a),Object(r.ac)(i.d))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(r.ac(b.a),r.ac(i.d))},t}(),z=function(){function t(t){t._applyBodyHighContrastModeCssClasses()}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)(r.ac(W))},imports:[[b.b,g.c]]}),t}()},mChF:function(t,e,n){"use strict";function i(t){return t}n.d(e,"a",(function(){return i}))},mZXl:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c}));var i=n("mrSG"),r=n("FFOo"),o=n("60iU");function a(t,e){return void 0===e&&(e=0),function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.scheduler,this.delay))},t}(),c=function(t){function e(e,n,i){void 0===i&&(i=0);var r=t.call(this,e)||this;return r.scheduler=n,r.delay=i,r}return i.c(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new u(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.a.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.a.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(o.a.createComplete()),this.unsubscribe()},e}(r.a),u=function(){return function(t,e){this.notification=t,this.destination=e}}()},mZtN:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("K9Ia"),r=n("CcnG"),o=function(){function t(){this.sessionSub=new i.a}return t.prototype.watchSession=function(){return this.sessionSub.asObservable()},t.prototype.getItem=function(t){return sessionStorage.getItem(t)},t.prototype.setItem=function(t,e){sessionStorage.setItem(t,e),this.sessionSub.next(sessionStorage)},t.prototype.removeItem=function(t){sessionStorage.removeItem(t),this.sessionSub.next(sessionStorage)},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}()},mrSG:function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"h",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return p}));var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function l(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof c&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof i.a?t[0]:Object(o.a)(n)(Object(a.a)(t,s))}},psW0:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("mrSG"),r=n("zotm"),o=n("MGBS"),a=n("rPjj"),s=n("67Y/"),c=n("0/uQ");function u(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(i){return i.pipe(u((function(n,i){return Object(c.a)(t(n,i)).pipe(Object(s.a)((function(t,r){return e(n,t,i,r)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new l(t,n))})}var l=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.project,this.concurrent))},t}(),p=function(t){function e(e,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY);var r=t.call(this,e)||this;return r.project=n,r.concurrent=i,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return i.c(e,t),e.prototype._next=function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},pugT:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("isby"),r=n("McSo"),o=n("2Bdj"),a=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,s=this._unsubscribe,u=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var l=0;l.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 .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t}(),f=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Kb({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:u,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(o.oc(c),o.nc(0),o.Wb(1,"div",0),o.nc(2,1),o.Vb(),o.nc(3,2))},encapsulation:2,changeDetection:0}),t}(),m=function(){function t(){}return t.\u0275mod=o.Ob({type:t}),t.\u0275inj=o.Nb({factory:function(e){return new(e||t)},imports:[[r.i],r.i]}),t}()},qPmt:function(t,e,n){"use strict";n.d(e,"a",(function(){return P})),n.d(e,"b",(function(){return k})),n.d(e,"c",(function(){return L})),n.d(e,"d",(function(){return R})),n.d(e,"e",(function(){return V})),n.d(e,"f",(function(){return N})),n.d(e,"g",(function(){return M})),n.d(e,"h",(function(){return F}));var i=n("UM4T"),r=n("0OUw"),o=n("Ip0R"),a=n("CcnG"),s=n("M4kG"),c=n("eO+G"),u=n("fPVg"),l=n("mrSG"),p=n("K9Ia"),h=n("ny24"),d=n("ad02"),f=n("ihYY"),m=n("m47I"),b=n("HHjO");function g(t,e){if(1&t&&a.Sb(0,9),2&t){var n=a.ic();a.pc("ngTemplateOutlet",n.iconOverrides[n.state])("ngTemplateOutletContext",n._getIconContext())}}function y(t,e){if(1&t&&(a.Wb(0,"span"),a.Hc(1),a.Vb()),2&t){var n=a.ic(2);a.Db(1),a.Ic(n._getDefaultTextForState(n.state))}}function v(t,e){if(1&t&&(a.Wb(0,"mat-icon"),a.Hc(1),a.Vb()),2&t){var n=a.ic(2);a.Db(1),a.Ic(n._getDefaultTextForState(n.state))}}function _(t,e){if(1&t&&(a.Ub(0,10),a.Fc(1,y,2,1,"span",11),a.Fc(2,v,2,1,"mat-icon",12),a.Tb()),2&t){var n=a.ic();a.pc("ngSwitch",n.state),a.Db(1),a.pc("ngSwitchCase","number")}}function w(t,e){if(1&t&&a.Sb(0,13),2&t){var n=a.ic();a.pc("ngTemplateOutlet",n._templateLabel().template)}}function O(t,e){if(1&t&&(a.Wb(0,"div",14),a.Hc(1),a.Vb()),2&t){var n=a.ic();a.Db(1),a.Ic(n.label)}}function C(t,e){if(1&t&&(a.Wb(0,"div",15),a.Hc(1),a.Vb()),2&t){var n=a.ic();a.Db(1),a.Ic(n._intl.optionalLabel)}}function x(t,e){if(1&t&&(a.Wb(0,"div",16),a.Hc(1),a.Vb()),2&t){var n=a.ic();a.Db(1),a.Ic(n.errorMessage)}}function E(t,e){1&t&&a.nc(0)}var S=["*"];function A(t,e){if(1&t){var n=a.Xb();a.Wb(0,"div",1),a.Wb(1,"mat-step-header",2),a.ec("click",(function(){return e.$implicit.select()}))("keydown",(function(t){return a.yc(n),a.ic()._onKeydown(t)})),a.Vb(),a.Wb(2,"div",3),a.Wb(3,"div",4),a.ec("@stepTransition.done",(function(t){return a.yc(n),a.ic()._animationDone.next(t)})),a.Wb(4,"div",5),a.Sb(5,6),a.Vb(),a.Vb(),a.Vb(),a.Vb()}if(2&t){var i=e.$implicit,r=e.index,o=e.last,s=a.ic();a.Db(1),a.pc("tabIndex",s._getFocusIndex()==r?0:-1)("id",s._getStepLabelId(r))("index",r)("state",s._getIndicatorType(r,i.state))("label",i.stepLabel||i.label)("selected",s.selectedIndex===r)("active",i.completed||s.selectedIndex===r||!s.linear)("optional",i.optional)("errorMessage",i.errorMessage)("iconOverrides",s._iconOverrides)("disableRipple",s.disableRipple),a.Eb("aria-posinset",r+1)("aria-setsize",s.steps.length)("aria-controls",s._getStepContentId(r))("aria-selected",s.selectedIndex===r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),a.Db(1),a.Hb("mat-stepper-vertical-line",!o),a.Db(1),a.pc("@stepTransition",s._getAnimationDirection(r))("id",s._getStepContentId(r)),a.Eb("tabindex",s.selectedIndex===r?0:null)("aria-labelledby",s._getStepLabelId(r))("aria-expanded",s.selectedIndex===r),a.Db(2),a.pc("ngTemplateOutlet",i.content)}}var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(l.c)(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=a.Lb({type:e,selectors:[["","matStepLabel",""]],features:[a.Ab]});var n=a.Yb(e);return e}(r.c),D=function(){function t(){this.changes=new p.a,this.optionalLabel="Optional"}return t.\u0275prov=Object(a.Mb)({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),j={provide:D,deps:[[new a.B,new a.K,D]],useFactory:function(t){return t||new D}},I=function(t){function e(e,n,i,r){var o=t.call(this,i)||this;return o._intl=e,o._focusMonitor=n,n.monitor(i,!0),o._intlSubscription=e.changes.subscribe((function(){return r.markForCheck()})),o}return Object(l.c)(e,t),e.prototype.ngOnDestroy=function(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)},e.prototype.focus=function(){this._focusMonitor.focusVia(this._elementRef,"program")},e.prototype._stringLabel=function(){return this.label instanceof k?null:this.label},e.prototype._templateLabel=function(){return this.label instanceof k?this.label:null},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._getIconContext=function(){return{index:this.index,active:this.active,optional:this.optional}},e.prototype._getDefaultTextForState=function(t){return"number"==t?""+(this.index+1):"edit"==t?"create":"error"==t?"warning":t},e.\u0275fac=function(t){return new(t||e)(a.Qb(D),a.Qb(m.h),a.Qb(a.l),a.Qb(a.h))},e.\u0275cmp=a.Kb({type:e,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[a.Ab],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],[3,"ngTemplateOutlet",4,"ngIf"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"ngTemplateOutlet"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(a.Rb(0,"div",0),a.Wb(1,"div"),a.Wb(2,"div",1),a.Fc(3,g,1,2,"ng-container",2),a.Fc(4,_,3,2,"ng-container",3),a.Vb(),a.Vb(),a.Wb(5,"div",4),a.Fc(6,w,1,1,"ng-container",5),a.Fc(7,O,2,1,"div",6),a.Fc(8,C,2,1,"div",7),a.Fc(9,x,2,1,"div",8),a.Vb()),2&t&&(a.pc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),a.Db(1),a.Gb("mat-step-icon-state-",e.state," mat-step-icon"),a.Hb("mat-step-icon-selected",e.selected),a.Db(1),a.pc("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),a.Db(1),a.pc("ngSwitchCase",!0),a.Db(2),a.Hb("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),a.Db(1),a.pc("ngIf",e._templateLabel()),a.Db(1),a.pc("ngIf",e._stringLabel()),a.Db(1),a.pc("ngIf",e.optional&&"error"!=e.state),a.Db(1),a.pc("ngIf","error"==e.state))},directives:[c.s,o.p,o.q,o.r,o.n,o.s,u.a],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),e}(r.b),T={horizontalStepTransition:Object(f.n)("stepTransition",[Object(f.k)("previous",Object(f.l)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Object(f.k)("current",Object(f.l)({transform:"none",visibility:"visible"})),Object(f.k)("next",Object(f.l)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Object(f.m)("* => *",Object(f.e)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:Object(f.n)("stepTransition",[Object(f.k)("previous",Object(f.l)({height:"0px",visibility:"hidden"})),Object(f.k)("next",Object(f.l)({height:"0px",visibility:"hidden"})),Object(f.k)("current",Object(f.l)({height:"*",visibility:"visible"})),Object(f.m)("* <=> current",Object(f.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},R=function(){function t(t){this.templateRef=t}return t.\u0275fac=function(e){return new(e||t)(a.Qb(a.M))},t.\u0275dir=a.Lb({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t}(),P=function(t){function e(e,n,i){var r=t.call(this,e,i)||this;return r._errorStateMatcher=n,r}return Object(l.c)(e,t),e.prototype.isErrorState=function(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)},e.\u0275fac=function(t){return new(t||e)(a.Qb(Object(a.V)((function(){return L}))),a.Qb(c.d,4),a.Qb(r.h,8))},e.\u0275cmp=a.Kb({type:e,selectors:[["mat-step"]],contentQueries:function(t,e,n){var i;1&t&&a.Jb(n,k,!0),2&t&&a.vc(i=a.fc())&&(e.stepLabel=i.first)},exportAs:["matStep"],features:[a.Cb([{provide:c.d,useExisting:e},{provide:r.a,useExisting:e}]),a.Ab],ngContentSelectors:S,decls:1,vars:0,template:function(t,e){1&t&&(a.oc(),a.Fc(0,E,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e}(r.a),L=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.animationDone=new a.o,e._iconOverrides={},e._animationDone=new p.a,e}Object(l.c)(e,t),e.prototype.ngAfterContentInit=function(){var t=this;this._icons.forEach((function(e){return t._iconOverrides[e.name]=e.templateRef})),this._steps.changes.pipe(Object(h.a)(this._destroyed)).subscribe((function(){t._stateChanged()})),this._animationDone.pipe(Object(d.a)((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})),Object(h.a)(this._destroyed)).subscribe((function(e){"current"===e.toState&&t.animationDone.emit()}))},e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=a.Lb({type:e,selectors:[["","matStepper",""]],contentQueries:function(t,e,n){var i;1&t&&(a.Jb(n,P,!0),a.Jb(n,R,!0)),2&t&&(a.vc(i=a.fc())&&(e._steps=i),a.vc(i=a.fc())&&(e._icons=i))},viewQuery:function(t,e){var n;1&t&&a.Mc(I,!0),2&t&&a.vc(n=a.fc())&&(e._stepHeader=n)},inputs:{disableRipple:"disableRipple"},outputs:{animationDone:"animationDone"},features:[a.Cb([{provide:r.d,useExisting:e}]),a.Ab]});var n=a.Yb(e);return e}(r.d),F=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i,r)||this;return o._orientation="vertical",o}return Object(l.c)(e,t),e.\u0275fac=function(t){return new(t||e)(a.Qb(b.b,8),a.Qb(a.h),a.Qb(a.l),a.Qb(o.d))},e.\u0275cmp=a.Kb({type:e,selectors:[["mat-vertical-stepper"]],hostAttrs:["aria-orientation","vertical","role","tablist",1,"mat-stepper-vertical"],inputs:{selectedIndex:"selectedIndex"},exportAs:["matVerticalStepper"],features:[a.Cb([{provide:L,useExisting:e},{provide:r.d,useExisting:e}]),a.Ab],decls:1,vars:1,consts:[["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","click","keydown"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&a.Fc(0,A,6,25,"div",0),2&t&&a.pc("ngForOf",e.steps)},directives:[o.m,I,o.s],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:36px}.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;top:36px;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;padding:24px}.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;padding:24px;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;top:-16px;bottom:-16px;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[T.verticalStepTransition]},changeDetection:0}),e}(L),N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(l.c)(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=a.Lb({type:e,selectors:[["button","matStepperNext",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.Zb("type",e.type)},inputs:{type:"type"},features:[a.Ab]});var n=a.Yb(e);return e}(r.f),M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(l.c)(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=a.Lb({type:e,selectors:[["button","matStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.Zb("type",e.type)},inputs:{type:"type"},features:[a.Ab]});var n=a.Yb(e);return e}(r.g),V=function(){function t(){}return t.\u0275mod=a.Ob({type:t}),t.\u0275inj=a.Nb({factory:function(e){return new(e||t)},providers:[j,c.d],imports:[[c.i,o.c,i.h,s.b,r.e,u.b,c.t],c.i]}),t}()},qmMu:function(t,e,n){var i=n("Wogr"),r=n("e/Dd"),o=n("ekOh"),a=n("e6BP"),s=n("V35J"),c=n("1sBl"),u=n("kk9/"),l=n("eQOe"),p=n("NPxG"),h=n("jSPq"),d=n("yKow"),f=n("lYJp"),m=n("u/Db"),b=n("vvrf"),g=n("49sm");function y(t,e,n){var i,r,o=t.size,a=f.getEncodedBits(e,n);for(i=0;i<15;i++)t.set(i<6?i:i<8?i+1:o-15+i,8,r=1==(a>>i&1),!0),t.set(8,i<8?o-i-1:i<9?15-i-1+1:15-i-1,r,!0);t.set(o-8,8,1,!0)}e.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");var n,f,v=o.M;return void 0!==e&&(v=o.from(e.errorCorrectionLevel,o.M),n=d.from(e.version),f=l.from(e.maskPattern),e.toSJISFunc&&r.setToSJISFunction(e.toSJISFunc)),function(t,e,n,o){var f;if(g(t))f=b.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");var v=e;if(!v){var _=b.rawSplit(t);v=d.getBestVersionForData(_,n)}f=b.fromString(t,v||40)}var w=d.getBestVersionForData(f,n);if(!w)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e=0&&s<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===s||6===s)||s>=2&&s<=4&&c>=2&&c<=4,!0)}(x,e),function(t){for(var e=t.size,n=8;n=7&&function(t,e){for(var n,i,r,o=t.size,a=d.getEncodedBits(e),s=0;s<18;s++)n=Math.floor(s/3),t.set(n,i=s%3+o-8-3,r=1==(a>>s&1),!0),t.set(i,n,r,!0)}(x,e),function(t,e){for(var n=t.size,i=-1,r=n-1,o=7,a=0,s=n-1;s>0;s-=2)for(6===s&&s--;;){for(var c=0;c<2;c++)if(!t.isReserved(r,s-c)){var u=!1;a>>o&1)),t.set(r,s-c,u),-1==--o&&(a++,o=7)}if((r+=i)<0||n<=r){r-=i,i=-i;break}}}(x,O),isNaN(o)&&(o=l.getBestMask(x,y.bind(null,x,n))),l.applyMask(o,x),y(x,n,o),{modules:x,version:e,errorCorrectionLevel:n,maskPattern:o,segments:f}}(t,n,v,f)}},rPjj:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("mrSG"),r=function(t){function e(e,n,i){var r=t.call(this)||this;return r.parent=e,r.outerValue=n,r.outerIndex=i,r.index=0,r}return i.c(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n("FFOo").a)},"t/Na":function(t,e,n){"use strict";n.d(e,"a",(function(){return D})),n.d(e,"b",(function(){return A})),n.d(e,"c",(function(){return W})),n.d(e,"d",(function(){return b}));var i=n("mrSG"),r=n("CcnG"),o=n("F/XL"),a=n("6blF"),s=n("Phjn"),c=n("VnD/"),u=n("67Y/"),l=n("Ip0R"),p=function(){return function(){}}(),h=function(){return function(){}}(),d=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach((function(t){var n=t.indexOf(":");if(n>0){var i=t.slice(0,n),r=i.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(i,r),e.headers.has(r)?e.headers.get(r).push(o):e.headers.set(r,[o])}}))}:function(){e.headers=new Map,Object.keys(t).forEach((function(n){var i=t[n],r=n.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(e.headers.set(r,i),e.maybeSetNormalizedName(n,r))}))}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(t){return e.applyUpdate(t)})),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach((function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))}))},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,Object(i.f)(n)),this.headers.set(e,r);break;case"d":var o=t.value;if(o){var a=this.headers.get(e);if(!a)return;0===(a=a.filter((function(t){return-1===o.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return t(e.normalizedNames.get(n),e.headers.get(n))}))},t}(),f=function(){function t(){}return t.prototype.encodeKey=function(t){return m(t)},t.prototype.encodeValue=function(t){return m(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function m(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var b=function(){function t(t){var e,n,r,o=this;if(void 0===t&&(t={}),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new f,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach((function(t){var e=t.indexOf("="),o=Object(i.e)(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),a=o[0],s=o[1],c=r.get(a)||[];c.push(s),r.set(a,c)})),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach((function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])}))):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map((function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map((function(e){return n+"="+t.encoder.encodeValue(e)})).join("&")})).filter((function(t){return""!==t})).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(e){return t.map.set(e,t.cloneFrom.map.get(e))})),this.updates.forEach((function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var i=t.map.get(e.param)||[],r=i.indexOf(e.value);-1!==r&&i.splice(r,1),i.length>0?t.map.set(e.param,i):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)},t}();function g(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function y(t){return"undefined"!=typeof Blob&&t instanceof Blob}function v(t){return"undefined"!=typeof FormData&&t instanceof FormData}var _=function(){function t(t,e,n,i){var r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new d),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a=200&&this.status<300}}(),C=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=w.ResponseHeader,n}return Object(i.c)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(O),x=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=w.Response,n.body=void 0!==e.body?e.body:null,n}return Object(i.c)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(O),E=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return Object(i.c)(e,t),e}(O);function S(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var A=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var i,r=this;if(void 0===n&&(n={}),t instanceof _)i=t;else{var a;a=n.headers instanceof d?n.headers:new d(n.headers);var l=void 0;n.params&&(l=n.params instanceof b?n.params:new b({fromObject:n.params})),i=new _(t,e,void 0!==n.body?n.body:null,{headers:a,params:l,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var p=Object(o.a)(i).pipe(Object(s.a)((function(t){return r.handler.handle(t)})));if(t instanceof _||"events"===n.observe)return p;var h=p.pipe(Object(c.a)((function(t){return t instanceof x})));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return h.pipe(Object(u.a)((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return h.pipe(Object(u.a)((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return h.pipe(Object(u.a)((function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));case"json":default:return h.pipe(Object(u.a)((function(t){return t.body})))}case"response":return h;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new b).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,S(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,S(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,S(n,e))},t.\u0275fac=function(e){return new(e||t)(r.ac(p))},t.\u0275prov=r.Mb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),k=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),D=new r.r("HTTP_INTERCEPTORS"),j=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Mb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),I=/^\)\]\}',?\n/,T=function(){return function(){}}(),R=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Mb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),P=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new a.a((function(n){var i=e.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((function(t,e){return i.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(t.responseType){var o=t.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,c=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new d(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new C({headers:r,status:e,statusText:n,url:o})},u=function(){var e=c(),r=e.headers,o=e.status,a=e.statusText,s=e.url,u=null;204!==o&&(u=void 0===i.response?i.responseText:i.response),0===o&&(o=u?200:0);var l=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof u){var p=u;u=u.replace(I,"");try{u=""!==u?JSON.parse(u):null}catch(h){u=p,l&&(l=!1,u={error:h,text:u})}}l?(n.next(new x({body:u,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new E({error:u,headers:r,status:o,statusText:a,url:s||void 0}))},l=function(t){var e=c().url,r=new E({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e||void 0});n.error(r)},p=!1,h=function(e){p||(n.next(c()),p=!0);var r={type:w.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(t){var e={type:w.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",u),i.addEventListener("error",l),t.reportProgress&&(i.addEventListener("progress",h),null!==a&&i.upload&&i.upload.addEventListener("progress",f)),i.send(a),n.next({type:w.Sent}),function(){i.removeEventListener("error",l),i.removeEventListener("load",u),t.reportProgress&&(i.removeEventListener("progress",h),null!==a&&i.upload&&i.upload.removeEventListener("progress",f)),i.abort()}}))},t.\u0275fac=function(e){return new(e||t)(r.ac(T))},t.\u0275prov=r.Mb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),L=new r.r("XSRF_COOKIE_NAME"),F=new r.r("XSRF_HEADER_NAME"),N=function(){return function(){}}(),M=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(l.E)(t,this.cookieName),this.lastCookieString=t),this.lastToken},t.\u0275fac=function(e){return new(e||t)(r.ac(l.d),r.ac(r.C),r.ac(L))},t.\u0275prov=r.Mb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),V=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)},t.\u0275fac=function(e){return new(e||t)(r.ac(N),r.ac(F))},t.\u0275prov=r.Mb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),B=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(D,[]);this.chain=e.reduceRight((function(t,e){return new k(t,e)}),this.backend)}return this.chain.handle(t)},t.\u0275fac=function(e){return new(e||t)(r.ac(h),r.ac(r.s))},t.\u0275prov=r.Mb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),H=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:V,useClass:j}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:L,useValue:t.cookieName}:[],t.headerName?{provide:F,useValue:t.headerName}:[]]}},t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[V,{provide:D,useExisting:V,multi:!0},{provide:N,useClass:M},{provide:L,useValue:"XSRF-TOKEN"},{provide:F,useValue:"X-XSRF-TOKEN"}]}),t}(),W=function(){function t(){}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[A,{provide:p,useClass:B},P,{provide:h,useExisting:P},R,{provide:T,useExisting:R}],imports:[[H.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}()},t9fZ:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("mrSG"),r=n("FFOo"),o=n("b7mW"),a=n("G5J1");function s(t){return function(e){return 0===t?Object(a.b)():e.lift(new c(t))}}var c=function(){function t(t){if(this.total=t,this.total<0)throw new o.a}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.total))},t}(),u=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return i.c(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(r.a)},tNVB:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("mrSG"),r=n("3fWJ"),o=n("FFOo");function a(t){return void 0===t&&(t=u),function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.errorFactory))},t}(),c=function(t){function e(e,n){var i=t.call(this,e)||this;return i.errorFactory=n,i.hasValue=!1,i}return i.c(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(o.a);function u(){return new r.a}},tzrX:function(t,e,n){"use strict";n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return y})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return v})),n.d(e,"e",(function(){return g})),n("349r");var i=n("CcnG"),r=n("K9Ia"),o=n("F/XL"),a=n("6blF"),s=n("bne5"),c=n("p0ib"),u=(n("mrSG"),n("h9Dq"),n("KQya"),n("pugT"),n("zrt+"),n("ad02"),n("Rney")),l=n("VnD/"),p=n("ny24");n("p0Sj"),n("FFOo"),n("15JJ"),n("S5bw");var h=n("BAGj"),d=n("Ip0R"),f=n("HHjO");n("e9QY");var m=function(){function t(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new r.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}return t.prototype.register=function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe((function(){return e._scrolled.next(t)})))},t.prototype.deregister=function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))},t.prototype.scrolled=function(t){var e=this;return void 0===t&&(t=20),this._platform.isBrowser?new a.a((function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(Object(u.a)(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}})):Object(o.a)()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(e,n){return t.deregister(n)})),this._scrolled.complete()},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(l.a)((function(t){return!t||n.indexOf(t)>-1})))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach((function(i,r){e._scrollableContainsElement(r,t)&&n.push(r)})),n},t.prototype._getDocument=function(){return this._document||document},t.prototype._getWindow=function(){return this._getDocument().defaultView||window},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){var e=t._getWindow();return Object(s.a)(e.document,"scroll").subscribe((function(){return t._scrolled.next()}))}))},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t.\u0275prov=Object(i.Mb)({factory:function(){return new t(Object(i.ac)(i.A),Object(i.ac)(h.a),Object(i.ac)(d.d,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(i.ac(i.A),i.ac(h.a),i.ac(d.d,8))},t}(),b=function(){function t(t,e,n,i){var o=this;this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new r.a,this._elementScrolled=new a.a((function(t){return o.ngZone.runOutsideAngular((function(){return Object(s.a)(o.elementRef.nativeElement,"scroll").pipe(Object(p.a)(o._destroyed)).subscribe(t)}))}))}return t.prototype.ngOnInit=function(){this.scrollDispatcher.register(this)},t.prototype.ngOnDestroy=function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()},t.prototype.elementScrolled=function(){return this._elementScrolled},t.prototype.getElementRef=function(){return this.elementRef},t.prototype.scrollTo=function(t){var e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Object(h.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(h.d)()?t.left=t.right:1==Object(h.d)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)},t.prototype._applyScrollToOptions=function(t){var e=this.elementRef.nativeElement;Object(h.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))},t.prototype.measureScrollOffset=function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==Object(h.d)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==Object(h.d)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft},t.\u0275fac=function(e){return new(e||t)(i.Qb(i.l),i.Qb(m),i.Qb(i.A),i.Qb(f.b,8))},t.\u0275dir=i.Lb({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t}(),g=function(){function t(t,e,n){var i=this;this._platform=t,this._document=n,e.runOutsideAngular((function(){var e=i._getWindow();i._change=t.isBrowser?Object(c.a)(Object(s.a)(e,"resize"),Object(s.a)(e,"orientationchange")):Object(o.a)(),i._invalidateCache=i.change().subscribe((function(){return i._updateViewportSize()}))}))}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}},t.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._getDocument(),e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(Object(u.a)(t)):this._change},t.prototype._getDocument=function(){return this._document||document},t.prototype._getWindow=function(){return this._getDocument().defaultView||window},t.prototype._updateViewportSize=function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}},t.\u0275prov=Object(i.Mb)({factory:function(){return new t(Object(i.ac)(h.a),Object(i.ac)(i.A),Object(i.ac)(d.d,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(i.ac(h.a),i.ac(i.A),i.ac(d.d,8))},t}(),y=function(){function t(){}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)}}),t}(),v=function(){function t(){}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},imports:[[f.a,h.b,y],f.a,y]}),t}()},"u/Db":function(t,e,n){var i=n("J6Nv"),r=n("BCVQ");e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!i.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(i){return n}}},uMaO:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("mrSG"),r=function(t){function e(e,n){var i=t.call(this)||this;return i.subject=e,i.subscriber=n,i.closed=!1,i}return i.c(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n("pugT").a)},unrj:function(t,e,n){window,t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,(function(e){return t[e]}).bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=55)}([function(t,e){t.exports="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){var i=n(3),r=i.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return r(t,e,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=i:(o(i,e),e.Buffer=a),o(r,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=r(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},function(t,e,n){"use strict";var i=function(t){return parseInt(t,10).toString(16)};function r(t){return/^(\d+)(\.\d+)?$/.test(t)}var o=function(t,e){return!(!r(t)||!r(e))&&String(t)===String(e)},a=function(t,e){for(var n=e||0,i=t+"";i.length1&&void 0!==arguments[1]?arguments[1]:{};if(!t||t<1)return"";if(!e.crypto||"function"!=typeof e.crypto.randomBytes)throw new Error("Expecting options.crypto to have a randomBytes function");return e.crypto.randomBytes(t).toString("base64").slice(0,t)};n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s.a})),n.d(e,"e",(function(){return c}))},function(t,e,n){"use strict";(function(t){var i=n(32),r=n(33),o=n(20);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function f(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(t).length;default:if(i)return B(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function b(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=c.from(e,i)),c.isBuffer(e))return 0===e.length?-1:g(t,e,n,i,r);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):g(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function g(t,e,n,i,r){var o,a=1,s=t.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var l=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){for(var p=!0,h=0;hr&&(i=r):i=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a>8,r.push(n%256),r.push(i);return r}(e,t.length-n),t,n,i)}function x(t,e,n){return i.fromByteArray(0===e&&n===t.length?t:t.slice(e,n))}function E(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r239?4:u>223?3:u>191?2:1;if(r+p<=n)switch(p){case 1:u<128&&(l=u);break;case 2:128==(192&(o=t[r+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:a=t[r+2],128==(192&(o=t[r+1]))&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:a=t[r+2],s=t[r+3],128==(192&(o=t[r+1]))&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,p=1):l>65535&&(i.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),i.push(l),r+=p}return function(t){var e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);for(var n="",i=0;ithis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return D(this,e,n);case"utf8":case"utf-8":return E(this,e,n);case"ascii":return A(this,e,n);case"latin1":case"binary":return k(this,e,n);case"base64":return x(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}).apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},c.prototype.compare=function(t,e,n,i,r){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(i>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(i,r),l=t.slice(e,n),p=0;pr)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return v(this,t,e,n);case"ascii":return _(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return O(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function A(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;ri)&&(n=i);for(var r="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function T(t,e,n,i,r,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function R(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r>>8*(i?r:1-r)}function P(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r>>8*(i?r:3-r)&255}function L(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,i,o){return o||L(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function N(t,e,n,i,o){return o||L(t,0,n,8),r.write(t,e,n,i,52,8),n+8}c.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e0&&(r*=256);)i+=this[t+--e]*r;return i},c.prototype.readUInt8=function(t,e){return e||I(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||I(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||I(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var i=this[t],r=1,o=0;++o=(r*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||I(t,4,this.length),r.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||I(t,4,this.length),r.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||I(t,8,this.length),r.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||I(t,8,this.length),r.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,i){t=+t,e|=0,n|=0,i||T(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+r]=t/o&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):P(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);T(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);T(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):P(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return N(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return N(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--r)t[r+e]=this[r+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(M,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function W(t,e,n,i){for(var r=0;r=e.length||r>=t.length);++r)e[r+n]=t[r];return r}}).call(this,n(5))},function(t,e,n){"use strict";var i=n(9),r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=p;var o=n(7);o.inherits=n(0);var a=n(23),s=n(17);o.inherits(p,a);for(var c=r(s.prototype),u=0;u=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var i=(4294967295&n)>>>0;this._block.writeUInt32BE((n-i)/4294967296,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var r=this._hash();return t?r.toString(t):r},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},function(t,e,n){(function(t){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=t.isBuffer}).call(this,n(3).Buffer)},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var c,u=[],l=!1,p=-1;function h(){l&&c&&(l=!1,c.length?u=c.concat(u):p=-1,u.length&&d())}function d(){if(!l){var t=s(h);l=!0;for(var e=u.length;e;){for(c=u,u=[];++p1)for(var n=1;n0&&a.length>r&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=a.length,console&&console.warn&&console.warn(s)}return t}function p(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},r=(function(){for(var t=[],e=0;e0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=r[t];if(void 0===c)return!1;if("function"==typeof c)o(c,this,e);else{var u=c.length,l=f(c,u);for(n=0;n=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(t,e){for(;e+1=0;i--)this.removeListener(t,e[i]);return this},s.prototype.listeners=function(t){return h(this,t,!0)},s.prototype.rawListeners=function(t){return h(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(t,e,n){(e=t.exports=n(23)).Stream=e,e.Readable=e,e.Writable=n(17),e.Duplex=n(4),e.Transform=n(26),e.PassThrough=n(42)},function(t,e,n){"use strict";(function(e,i,r){var o=n(9);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var i=t.entry;for(t.entry=null;i;){var r=i.callback;e.pendingcb--,r(void 0),i=i.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=y;var s,c=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?i:o.nextTick;y.WritableState=g;var u=n(7);u.inherits=n(0);var l,p={deprecate:n(41)},h=n(24),d=n(1).Buffer,f=r.Uint8Array||function(){},m=n(25);function b(){}function g(t,e){s=s||n(4);var i=e instanceof s;this.objectMode=!!(t=t||{}).objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,u=t.writableHighWaterMark;this.highWaterMark=r||0===r?r:i&&(u||0===u)?u:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===t.decodeStrings),this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,r=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,r){--e.pendingcb,n?(o.nextTick(r,i),o.nextTick(x,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(r(i),t._writableState.errorEmitted=!0,t.emit("error",i),x(t,e))}(t,n,i,e,r);else{var a=O(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(t,n),i?c(_,t,n,a,r):_(t,n,a,r)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(t){if(s=s||n(4),!(l.call(y,this)||this instanceof s))return new y(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),h.call(this)}function v(t,e,n,i,r,o,a){e.writelen=i,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(r,e.onwrite):t._write(r,o,e.onwrite),e.sync=!1}function _(t,e,n,i){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,i(),x(t,e)}function w(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=new Array(e.bufferedRequestCount),r=e.corkedRequestsFree;r.entry=n;for(var o=0,s=!0;n;)i[o]=n,n.isBuf||(s=!1),n=n.next,o+=1;i.allBuffers=s,v(t,e,!0,e.length,i,"",r.finish),e.pendingcb++,e.lastBufferedRequest=null,r.next?(e.corkedRequestsFree=r.next,r.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;n;){var c=n.chunk;if(v(t,e,!1,e.objectMode?1:c.length,c,n.encoding,n.callback),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function O(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function C(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),x(t,e)}))}function x(t,e){var n=O(e);return n&&(function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(C,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}u.inherits(y,h),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:p.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!l.call(this,t)||this===y&&t&&t._writableState instanceof g}})):l=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,n){var i,r=this._writableState,a=!1,s=!r.objectMode&&(d.isBuffer(i=t)||i instanceof f);return s&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=b),r.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),o.nextTick(e,n)}(this,n):(s||function(t,e,n,i){var r=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),o.nextTick(i,a),r=!1),r}(this,r,t,n))&&(r.pendingcb++,a=function(t,e,n,i,r,o){if(!n){var a=function(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=d.from(e,n)),e}(e,i,r);i!==a&&(n=!0,r="buffer",i=a)}var s=e.objectMode?1:i.length;e.length+=s;var c=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(t,e,n){e.ending=!0,x(t,e),n&&(e.finished?o.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,i,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n(8),n(39).setImmediate,n(5))},function(t,e,n){"use strict";var i=n(1).Buffer,r=i.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(i.isEncoding===r||!r(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=u,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=l,this.end=p,e=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"\ufffd"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function p(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(r>0&&(t.lastNeed=r-1),r):--i=0?(r>0&&(t.lastNeed=r-2),r):--i=0?(r>0&&(2===r?r=0:t.lastNeed=r-3),r):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";(function(t){e.a=function(e,n,i){var r=e.toString(i).length;if(n&&r0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),i?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):w(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?w(t,a,e,!1):S(t,a)):w(t,a,e,!1))):i||(a.reading=!1)),function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=O?t=O:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function x(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?r.nextTick(E,t):E(t))}function E(t){d("emit readable"),t.emit("readable"),j(t)}function S(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(A,t,e))}function A(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var i;return to.length?o.length:t;if(r+=a===o.length?o:o.slice(0,t),0==(t-=a)){a===o.length?(++i,e.head=n.next?n.next:e.tail=null):(e.head=n,n.data=o.slice(a));break}++i}return e.length-=i,r}(t,e):function(t,e){var n=u.allocUnsafe(t),i=e.head,r=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var o=i.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0==(t-=a)){a===o.length?(++r,e.head=i.next?i.next:e.tail=null):(e.head=i,i.data=o.slice(a));break}++r}return e.length-=r,n}(t,e),i}(t,e.buffer,e.decoder),n);var n}function T(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,r.nextTick(R,e,t))}function R(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function P(t,e){for(var n=0,i=t.length;n=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?T(this):x(this),null;if(0===(t=C(t,e))&&e.ended)return 0===e.length&&T(this),null;var i,r=e.needReadable;return d("need readable",r),(0===e.length||e.length-t0?I(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&T(this)),null!==i&&this.emit("data",i),i},v.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,e);var c=e&&!1===e.end||t===i.stdout||t===i.stderr?y:u;function u(){d("onend"),t.end()}o.endEmitted?r.nextTick(c):n.once("end",c),t.on("unpipe",(function e(i,r){d("onunpipe"),i===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,d("cleanup"),t.removeListener("close",b),t.removeListener("finish",g),t.removeListener("drain",l),t.removeListener("error",m),t.removeListener("unpipe",e),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",f),p=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}));var l=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,j(t))}}(n);t.on("drain",l);var p=!1,h=!1;function f(e){d("ondata"),h=!1,!1!==t.write(e)||h||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==P(o.pipes,t))&&!p&&(d("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function m(e){d("onerror",e),y(),t.removeListener("error",m),0===s(t,"error")&&t.emit("error",e)}function b(){t.removeListener("finish",g),y()}function g(){d("onfinish"),t.removeListener("close",b),y()}function y(){d("unpipe"),n.unpipe(t)}return n.on("data",f),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",m),t.once("close",b),t.once("finish",g),t.emit("pipe",n),o.flowing||(d("pipe resume"),n.resume()),t},v.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var i=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},function(t,e,n){var i=n(0),r=n(6),o=n(1).Buffer,a=[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],s=new Array(64);function c(){this.init(),this._w=s,r.call(this,64,56)}function u(t,e,n){return n^t&(e^n)}function l(t,e,n){return t&e|n&(t|e)}function p(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function h(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function d(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}i(c,r),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,r=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,f=0|this._f,m=0|this._g,b=0|this._h,g=0;g<16;++g)n[g]=t.readInt32BE(4*g);for(;g<64;++g)n[g]=0|(((e=n[g-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+n[g-7]+d(n[g-15])+n[g-16];for(var y=0;y<64;++y){var v=b+h(c)+u(c,f,m)+a[y]+n[y]|0,_=p(i)+l(i,r,o)|0;b=m,m=f,f=c,c=s+v|0,s=o,o=r,r=i,i=v+_|0}this._a=i+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=f+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},c.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=c},function(t,e,n){var i=n(0),r=n(6),o=n(1).Buffer,a=[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],s=new Array(160);function c(){this.init(),this._w=s,r.call(this,128,112)}function u(t,e,n){return n^t&(e^n)}function l(t,e,n){return t&e|n&(t|e)}function p(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function h(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function d(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function b(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function g(t,e){return t>>>0>>0?1:0}i(c,r),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(t){for(var e=this._w,n=0|this._ah,i=0|this._bh,r=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,y=0|this._gh,v=0|this._hh,_=0|this._al,w=0|this._bl,O=0|this._cl,C=0|this._dl,x=0|this._el,E=0|this._fl,S=0|this._gl,A=0|this._hl,k=0;k<32;k+=2)e[k]=t.readInt32BE(4*k),e[k+1]=t.readInt32BE(4*k+4);for(;k<160;k+=2){var D=e[k-30],j=e[k-30+1],I=d(D,j),T=f(j,D),R=m(D=e[k-4],j=e[k-4+1]),P=b(j,D),L=e[k-32],F=e[k-32+1],N=T+e[k-14+1]|0,M=I+e[k-14]+g(N,T)|0;M=(M=M+R+g(N=N+P|0,P)|0)+L+g(N=N+F|0,F)|0,e[k]=M,e[k+1]=N}for(var V=0;V<160;V+=2){M=e[V],N=e[V+1];var B=l(n,i,r),H=l(_,w,O),W=p(n,_),z=p(_,n),U=h(s,x),Q=h(x,s),Y=a[V],G=a[V+1],q=u(s,c,y),K=u(x,E,S),X=A+Q|0,Z=v+U+g(X,A)|0;Z=(Z=(Z=Z+q+g(X=X+K|0,K)|0)+Y+g(X=X+G|0,G)|0)+M+g(X=X+N|0,N)|0;var $=z+H|0,J=W+B+g($,z)|0;v=y,A=S,y=c,S=E,c=s,E=x,s=o+Z+g(x=C+X|0,C)|0,o=r,C=O,r=i,O=w,i=n,w=_,n=Z+J+g(_=X+$|0,X)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+O|0,this._dl=this._dl+C|0,this._el=this._el+x|0,this._fl=this._fl+E|0,this._gl=this._gl+S|0,this._hl=this._hl+A|0,this._ah=this._ah+n+g(this._al,_)|0,this._bh=this._bh+i+g(this._bl,w)|0,this._ch=this._ch+r+g(this._cl,O)|0,this._dh=this._dh+o+g(this._dl,C)|0,this._eh=this._eh+s+g(this._el,x)|0,this._fh=this._fh+c+g(this._fl,E)|0,this._gh=this._gh+y+g(this._gl,S)|0,this._hh=this._hh+v+g(this._hl,A)|0},c.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,n,i){t.writeInt32BE(e,i),t.writeInt32BE(n,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=c},function(t,e,n){"use strict";var i=n(0),r=n(35),o=n(21),a=n(1).Buffer,s=n(47),c=n(49),u=n(50),l=a.alloc(128);function p(t,e){o.call(this,"digest"),"string"==typeof e&&(e=a.from(e));var n="sha512"===t||"sha384"===t?128:64;this._alg=t,this._key=e,e.length>n?e=("rmd160"===t?new c:u(t)).update(e).digest():e.length65536)throw new Error("Requested size of random bytes is too large");if(e<1)throw new Error("Requested size must be more than 0");var i=new Uint8Array(e);return n.getRandomValues(i),t.from(i.buffer)}}).call(this,n(3).Buffer)},function(t,e,n){"use strict";e.byteLength=function(t){var e=u(t),n=e[1];return 3*(e[0]+n)/4-n},e.toByteArray=function(t){for(var e,n=u(t),i=n[0],a=n[1],s=new o(function(t,e,n){return 3*(e+n)/4-n}(0,i,a)),c=0,l=a>0?i-4:i,p=0;p>16&255,s[c++]=e>>8&255,s[c++]=255&e;return 2===a&&(e=r[t.charCodeAt(p)]<<2|r[t.charCodeAt(p+1)]>>4,s[c++]=255&e),1===a&&(e=r[t.charCodeAt(p)]<<10|r[t.charCodeAt(p+1)]<<4|r[t.charCodeAt(p+2)]>>2,s[c++]=e>>8&255,s[c++]=255&e),s},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,o=[],a=0,s=n-r;as?s:a+16383));return 1===r?o.push(i[(e=t[n-1])>>2]+i[e<<4&63]+"=="):2===r&&o.push(i[(e=(t[n-2]<<8)+t[n-1])>>10]+i[e>>4&63]+i[e<<2&63]+"="),o.join("")};for(var i=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var r,o=[],a=e;a>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,i,r){var o,a,s=8*r-i-1,c=(1<>1,l=-7,p=n?r-1:0,h=n?-1:1,d=t[e+p];for(p+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+t[e+p],p+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=i;l>0;a=256*a+t[e+p],p+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var a,s,c,u=8*o-r-1,l=(1<>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,f=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+p>=1?h/c:h*Math.pow(2,1-p))*c>=2&&(a++,c/=2),a+p>=l?(s=0,a=l):a+p>=1?(s=(e*c-1)*Math.pow(2,r),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,r),a=0));r>=8;t[n+d]=255&s,d+=f,s/=256,r-=8);for(a=a<0;t[n+d]=255&a,d+=f,a/=256,u-=8);t[n+d-f]|=128*m}},function(t,e,n){"use strict";(function(t){var n=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];e.encode=function(e){t.isBuffer(e)||(e=new t(e));for(var n,i,r=0,o=0,a=0,s=0,c=new t(8*(n=e,i=Math.floor(n.length/5),n.length%5==0?i:i+1));r3?(s=(s=u&255>>a)<<(a=(a+5)%8)|(r+1>8-a,r++):(s=u>>8-(a+5)&31,0==(a=(a+5)%8)&&r++),c[o]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(s),o++}for(r=o;r>>(r=(r+5)%8),s[a]=i,a++,i=255&o<<8-r)}return s.slice(0,a)}}).call(this,n(3).Buffer)},function(t,e,n){"use strict";var i=n(0),r=n(1).Buffer,o=n(21),a=r.alloc(128),s=64;function c(t,e){o.call(this,"digest"),"string"==typeof e&&(e=r.from(e)),this._alg=t,this._key=e,e.length>s?e=t(e):e.length0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var e=i.allocUnsafe(t>>>0),n=this.head,r=0;n;)n.data.copy(e,r),r+=n.data.length,n=n.next;return e},t}(),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var t=r.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(40),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(5))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,o,a,s,c=1,u={},l=!1,p=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){f(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&f(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),i=function(e){t.postMessage(a+e,"*")}):t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){f(t.data)},i=function(t){o.port2.postMessage(t)}):p&&"onreadystatechange"in p.createElement("script")?(r=p.documentElement,i=function(t){var e=p.createElement("script");e.onreadystatechange=function(){f(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):i=function(t){setTimeout(f,0,t)},h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n>>32-e}function c(t,e,n,i,r,o,a){return s(t+(e&n|~e&i)+r+o|0,a)+e|0}function u(t,e,n,i,r,o,a){return s(t+(e&i|n&~i)+r+o|0,a)+e|0}function l(t,e,n,i,r,o,a){return s(t+(e^n^i)+r+o|0,a)+e|0}function p(t,e,n,i,r,o,a){return s(t+(n^(e|~i))+r+o|0,a)+e|0}i(a,r),a.prototype._update=function(){for(var t=o,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,i=this._b,r=this._c,a=this._d;n=c(n,i,r,a,t[0],3614090360,7),a=c(a,n,i,r,t[1],3905402710,12),r=c(r,a,n,i,t[2],606105819,17),i=c(i,r,a,n,t[3],3250441966,22),n=c(n,i,r,a,t[4],4118548399,7),a=c(a,n,i,r,t[5],1200080426,12),r=c(r,a,n,i,t[6],2821735955,17),i=c(i,r,a,n,t[7],4249261313,22),n=c(n,i,r,a,t[8],1770035416,7),a=c(a,n,i,r,t[9],2336552879,12),r=c(r,a,n,i,t[10],4294925233,17),i=c(i,r,a,n,t[11],2304563134,22),n=c(n,i,r,a,t[12],1804603682,7),a=c(a,n,i,r,t[13],4254626195,12),r=c(r,a,n,i,t[14],2792965006,17),n=u(n,i=c(i,r,a,n,t[15],1236535329,22),r,a,t[1],4129170786,5),a=u(a,n,i,r,t[6],3225465664,9),r=u(r,a,n,i,t[11],643717713,14),i=u(i,r,a,n,t[0],3921069994,20),n=u(n,i,r,a,t[5],3593408605,5),a=u(a,n,i,r,t[10],38016083,9),r=u(r,a,n,i,t[15],3634488961,14),i=u(i,r,a,n,t[4],3889429448,20),n=u(n,i,r,a,t[9],568446438,5),a=u(a,n,i,r,t[14],3275163606,9),r=u(r,a,n,i,t[3],4107603335,14),i=u(i,r,a,n,t[8],1163531501,20),n=u(n,i,r,a,t[13],2850285829,5),a=u(a,n,i,r,t[2],4243563512,9),r=u(r,a,n,i,t[7],1735328473,14),n=l(n,i=u(i,r,a,n,t[12],2368359562,20),r,a,t[5],4294588738,4),a=l(a,n,i,r,t[8],2272392833,11),r=l(r,a,n,i,t[11],1839030562,16),i=l(i,r,a,n,t[14],4259657740,23),n=l(n,i,r,a,t[1],2763975236,4),a=l(a,n,i,r,t[4],1272893353,11),r=l(r,a,n,i,t[7],4139469664,16),i=l(i,r,a,n,t[10],3200236656,23),n=l(n,i,r,a,t[13],681279174,4),a=l(a,n,i,r,t[0],3936430074,11),r=l(r,a,n,i,t[3],3572445317,16),i=l(i,r,a,n,t[6],76029189,23),n=l(n,i,r,a,t[9],3654602809,4),a=l(a,n,i,r,t[12],3873151461,11),r=l(r,a,n,i,t[15],530742520,16),n=p(n,i=l(i,r,a,n,t[2],3299628645,23),r,a,t[0],4096336452,6),a=p(a,n,i,r,t[7],1126891415,10),r=p(r,a,n,i,t[14],2878612391,15),i=p(i,r,a,n,t[5],4237533241,21),n=p(n,i,r,a,t[12],1700485571,6),a=p(a,n,i,r,t[3],2399980690,10),r=p(r,a,n,i,t[10],4293915773,15),i=p(i,r,a,n,t[1],2240044497,21),n=p(n,i,r,a,t[8],1873313359,6),a=p(a,n,i,r,t[15],4264355552,10),r=p(r,a,n,i,t[6],2734768916,15),i=p(i,r,a,n,t[13],1309151649,21),n=p(n,i,r,a,t[4],4149444226,6),a=p(a,n,i,r,t[11],3174756917,10),r=p(r,a,n,i,t[2],718787259,15),i=p(i,r,a,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+i|0,this._c=this._c+r|0,this._d=this._d+a|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=new e(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=a}).call(this,n(3).Buffer)},function(t,e,n){"use strict";var i=n(3).Buffer,r=n(0),o=n(27),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[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],l=[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],p=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function d(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function f(t,e){return t<>>32-e}function m(t,e,n,i,r,o,a,s){return f(t+(e^n^i)+o+a|0,s)+r|0}function b(t,e,n,i,r,o,a,s){return f(t+(e&n|~e&i)+o+a|0,s)+r|0}function g(t,e,n,i,r,o,a,s){return f(t+((e|~n)^i)+o+a|0,s)+r|0}function y(t,e,n,i,r,o,a,s){return f(t+(e&i|n&~i)+o+a|0,s)+r|0}function v(t,e,n,i,r,o,a,s){return f(t+(e^(n|~i))+o+a|0,s)+r|0}r(d,o),d.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var n=0|this._a,i=0|this._b,r=0|this._c,o=0|this._d,d=0|this._e,_=0|this._a,w=0|this._b,O=0|this._c,C=0|this._d,x=0|this._e,E=0;E<80;E+=1){var S,A;E<16?(S=m(n,i,r,o,d,t[s[E]],p[0],u[E]),A=v(_,w,O,C,x,t[c[E]],h[0],l[E])):E<32?(S=b(n,i,r,o,d,t[s[E]],p[1],u[E]),A=y(_,w,O,C,x,t[c[E]],h[1],l[E])):E<48?(S=g(n,i,r,o,d,t[s[E]],p[2],u[E]),A=g(_,w,O,C,x,t[c[E]],h[2],l[E])):E<64?(S=y(n,i,r,o,d,t[s[E]],p[3],u[E]),A=b(_,w,O,C,x,t[c[E]],h[3],l[E])):(S=v(n,i,r,o,d,t[s[E]],p[4],u[E]),A=m(_,w,O,C,x,t[c[E]],h[4],l[E])),n=d,d=o,o=f(r,10),r=i,i=S,_=x,x=C,C=f(O,10),O=w,w=A}var k=this._b+r+C|0;this._b=this._c+o+x|0,this._c=this._d+d+_|0,this._d=this._e+n+w|0,this._e=this._a+i+O|0,this._a=k},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=i.alloc?i.alloc(20):new i(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=d},function(t,e,n){(e=t.exports=function(t){t=t.toLowerCase();var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n}).sha=n(51),e.sha1=n(52),e.sha224=n(53),e.sha256=n(28),e.sha384=n(54),e.sha512=n(29)},function(t,e,n){var i=n(0),r=n(6),o=n(1).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,r.call(this,64,56)}function u(t){return t<<30|t>>>2}function l(t,e,n,i){return 0===t?e&n|~e&i:2===t?e&n|e&i|n&i:e^n^i}i(c,r),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,r=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,p=0;p<16;++p)n[p]=t.readInt32BE(4*p);for(;p<80;++p)n[p]=n[p-3]^n[p-8]^n[p-14]^n[p-16];for(var h=0;h<80;++h){var d=~~(h/20),f=0|((e=i)<<5|e>>>27)+l(d,r,o,s)+c+n[h]+a[d];c=s,s=o,o=u(r),r=i,i=f}this._a=i+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},function(t,e,n){var i=n(0),r=n(6),o=n(1).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,r.call(this,64,56)}function u(t){return t<<5|t>>>27}function l(t){return t<<30|t>>>2}function p(t,e,n,i){return 0===t?e&n|~e&i:2===t?e&n|e&i|n&i:e^n^i}i(c,r),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,r=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,h=0;h<16;++h)n[h]=t.readInt32BE(4*h);for(;h<80;++h)n[h]=(e=n[h-3]^n[h-8]^n[h-14]^n[h-16])<<1|e>>>31;for(var d=0;d<80;++d){var f=~~(d/20),m=u(i)+p(f,r,o,s)+c+n[d]+a[f]|0;c=s,s=o,o=l(r),r=i,i=m}this._a=i+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},function(t,e,n){var i=n(0),r=n(28),o=n(6),a=n(1).Buffer,s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}i(c,r),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var t=a.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=c},function(t,e,n){var i=n(0),r=n(29),o=n(6),a=n(1).Buffer,s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}i(c,r),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,n,i){t.writeInt32BE(e,i),t.writeInt32BE(n,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=c},function(t,e,n){"use strict";n.r(e);var i=n(2),r=n(10),o=function(t,e,n){if(null==e)return"";if("number"!=typeof n.digits)throw new Error("Expecting options.digits to be a number");var o=Object(r.a)(t,e,n),a=15&o[o.length-1],s=((127&o[a])<<24|(255&o[a+1])<<16|(255&o[a+2])<<8|255&o[a+3])%Math.pow(10,n.digits);return Object(i.c)(s,n.digits)},a=function(t,e,n,r){var a=o(e,n,r);return!(a.length<1)&&Object(i.b)(t,a)},s=(n(11),n(12)),c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({algorithm:"sha1",createHmacSecret:s.a,crypto:null,digits:6,encoding:"ascii"},t)},u=function(t,e){if("number"!=typeof e.epoch)throw new Error("Expecting options.epoch to be a number");if("number"!=typeof e.step)throw new Error("Expecting options.step to be a number");var n=function(t,e){return Math.floor(t/e/1e3)}(e.epoch,e.step);return o(t,n,e)},l=function(t,e,n){var r=u(e,n||{});return!(r.length<1)&&Object(i.b)(t,r)},p=function(t,e,n){var i=Object.assign({},n),r=function(t){var e=Array.isArray(t.window)?t.window:[parseInt(t.window,10),parseInt(t.window,10)];if(!Number.isInteger(e[0])||!Number.isInteger(e[1]))throw new Error("Expecting options.window to be an integer or an array of integers");return e}(i),o=function(t,e,n){var i=1e3*n.step,r=n.epoch;return function(o,a,s){for(var c=a;c<=s;c++)if(n.epoch=r+o*c*i,l(t,e,n))return 0===c?0:o*c;return null}}(t,e,i),a=o(-1,0,r[0]);return null!==a?a:o(1,1,r[1])},h={createHmacSecret:n(13).a,epoch:null,step:30,window:0},d=function(t,e){return Math.floor(t/1e3)%e};function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var m=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._defaultOptions={},this._options=this._defaultOptions}var e;return(e=[{key:"getClass",value:function(){return t}},{key:"resetOptions",value:function(){return this._options=this.defaultOptions,this}},{key:"generate",value:function(t,e){var n=this.optionsAll;return o(t||n.secret,e,n)}},{key:"check",value:function(t,e,n){var i=this.optionsAll;return a(t,e||i.secret,n,i)}},{key:"verify",value:function(t){return"object"===f(t)&&null!=t&&this.check(t.token,t.secret,t.counter)}},{key:"defaultOptions",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t&&(this._defaultOptions=Object.assign({},this.defaultOptions,t),this.options=t)},get:function(){return this._defaultOptions}},{key:"options",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t&&(this._options=Object.assign({},this._options,t))},get:function(){return Object.assign({},this._options)}},{key:"optionsAll",get:function(){return c(this._options)}}])&&function(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign(c(),h,t);return e.epoch="number"==typeof e.epoch?1e3*e.epoch:Date.now(),e}(this._options)}}])&&function(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"user",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"service",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"otpauth://totp/"+D.replace("{user}",encodeURIComponent(t)).replace("{secret}",n).replace(/{service}/g,encodeURIComponent(e))},I=function(t,e){return u(E(t),e)};function T(t){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var L=O.TOTP,F=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=function(t,e){return!e||"object"!==T(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,R(e).call(this)))._defaultOptions={encoding:"hex",epoch:null,step:30,window:0},t._options=t._defaultOptions,t}var n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P(t,e)}(e,L),(n=[{key:"getClass",value:function(){return e}},{key:"encode",value:function(){return k.apply(void 0,arguments)}},{key:"decode",value:function(){return E.apply(void 0,arguments)}},{key:"keyuri",value:function(){return j.apply(void 0,arguments)}},{key:"generateSecret",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;if(!t)return"";var e=Object(i.e)(t,this.optionsAll);return k(e)}},{key:"generate",value:function(t){var e=this.optionsAll;return I(t||e.secret,e)}},{key:"check",value:function(t,e){var n=this.optionsAll;return A(t,e||n.secret,n)}},{key:"checkDelta",value:function(t,e){var n=this.optionsAll;return S(t,e||n.secret,n)}}])&&function(t,e){for(var n=0;n visible",Object(y.e)("200ms cubic-bezier(0, 0, 0.2, 1)",Object(y.h)([Object(y.l)({opacity:0,transform:"scale(0)",offset:0}),Object(y.l)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(y.l)({opacity:1,transform:"scale(1)",offset:1})]))),Object(y.m)("* => hidden",Object(y.e)("100ms cubic-bezier(0, 0, 0.2, 1)",Object(y.l)({opacity:0})))])},w=Object(d.f)({passive:!0});function O(t){return Error('Tooltip position "'+t+'" is invalid.')}var C=new a.r("mat-tooltip-scroll-strategy"),x={provide:C,deps:[i.c],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},E=new a.r("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),S=function(){function t(t,e,n,i,r,o,a,s,c,u,l,h){var d=this;this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=r,this._platform=o,this._ariaDescriber=a,this._focusMonitor=s,this._dir=u,this._defaultOptions=l,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new m.a,this._handleKeydown=function(t){d._isTooltipVisible()&&t.keyCode===p.e&&!Object(p.q)(t)&&(t.preventDefault(),t.stopPropagation(),d._ngZone.run((function(){return d.hide(0)})))},this._scrollStrategy=c,l&&(l.position&&(this.position=l.position),l.touchGestures&&(this.touchGestures=l.touchGestures)),s.monitor(e).pipe(Object(b.a)(this._destroyed)).subscribe((function(t){t?"keyboard"===t&&r.run((function(){return d.show()})):r.run((function(){return d.hide(0)}))})),r.runOutsideAngular((function(){e.nativeElement.addEventListener("keydown",d._handleKeydown)}))}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Object(l.c)(t),this._disabled&&this.hide(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message)}))})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipClass",{get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._setupPointerEvents()},t.prototype.ngOnDestroy=function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((function(e,n){t.removeEventListener(n,e,w)})),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)},t.prototype.show=function(t){var e=this;if(void 0===t&&(t=this.showDelay),!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new f.d(A,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(b.a)(this._destroyed)).subscribe((function(){return e._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}},t.prototype.hide=function(t){void 0===t&&(t=this.hideDelay),this._tooltipInstance&&this._tooltipInstance.hide(t)},t.prototype.toggle=function(){this._isTooltipVisible()?this.hide():this.show()},t.prototype._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()},t.prototype._createOverlay=function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return n.positionChanges.pipe(Object(b.a)(this._destroyed)).subscribe((function(e){t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run((function(){return t.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Object(b.a)(this._destroyed)).subscribe((function(){return t._detach()})),this._overlayRef},t.prototype._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null},t.prototype._updatePosition=function(){var t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object(u.a)(Object(u.a)({},e.main),n.main),Object(u.a)(Object(u.a)({},e.fallback),n.fallback)])},t.prototype._getOrigin=function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n||"below"==n)t={originX:"center",originY:"above"==n?"top":"bottom"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={originX:"start",originY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw O(n);t={originX:"end",originY:"center"}}var i=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:i.x,originY:i.y}}},t.prototype._getOverlayPosition=function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n)t={overlayX:"center",overlayY:"bottom"};else if("below"==n)t={overlayX:"center",overlayY:"top"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={overlayX:"end",overlayY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw O(n);t={overlayX:"start",overlayY:"center"}}var i=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:i.x,overlayY:i.y}}},t.prototype._updateTooltipMessage=function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(g.a)(1),Object(b.a)(this._destroyed)).subscribe((function(){t._tooltipInstance&&t._overlayRef.updatePosition()})))},t.prototype._setTooltipClass=function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())},t.prototype._invertPosition=function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}},t.prototype._setupPointerEvents=function(){var t=this;if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var e=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",e).set("touchcancel",e).set("touchstart",(function(){clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout((function(){return t.show()}),500)}))}}else this._passiveListeners.set("mouseenter",(function(){return t.show()})).set("mouseleave",(function(){return t.hide()}));this._passiveListeners.forEach((function(e,n){t._elementRef.nativeElement.addEventListener(n,e,w)}))},t.prototype._disableNativeGesturesIfNecessary=function(){var t=this._elementRef.nativeElement,e=t.style,n=this.touchGestures;"off"!==n&&(("on"===n||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==n&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")},t.\u0275fac=function(e){return new(e||t)(a.Qb(i.c),a.Qb(a.l),a.Qb(c.c),a.Qb(a.P),a.Qb(a.A),a.Qb(d.a),a.Qb(r.c),a.Qb(r.h),a.Qb(C),a.Qb(v.b,8),a.Qb(E,8),a.Qb(a.l))},t.\u0275dir=a.Lb({type:t,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t}(),A=function(){function t(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new m.a,this._isHandset=this._breakpointObserver.observe(h.b.Handset)}return t.prototype.show=function(t){var e=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){e._visibility="visible",e._showTimeoutId=null,e._markForCheck()}),t)},t.prototype.hide=function(t){var e=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){e._visibility="hidden",e._hideTimeoutId=null,e._markForCheck()}),t)},t.prototype.afterHidden=function(){return this._onHide.asObservable()},t.prototype.isVisible=function(){return"visible"===this._visibility},t.prototype.ngOnDestroy=function(){this._onHide.complete()},t.prototype._animationStart=function(){this._closeOnInteraction=!1},t.prototype._animationDone=function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)},t.prototype._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)},t.prototype._markForCheck=function(){this._changeDetectorRef.markForCheck()},t.\u0275fac=function(e){return new(e||t)(a.Qb(a.h),a.Qb(h.a))},t.\u0275cmp=a.Kb({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&a.ec("click",(function(){return e._handleBodyInteraction()}),!1,a.xc),2&t&&a.Ec("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(a.Wb(0,"div",0),a.ec("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),a.jc(1,"async"),a.Hc(2),a.Vb()),2&t){var n,i=null==(n=a.kc(1,5,e._isHandset))?null:n.matches;a.Hb("mat-tooltip-handset",i),a.pc("ngClass",e.tooltipClass)("@state",e._visibility),a.Db(2),a.Ic(e.message)}},directives:[o.l],pipes:[o.b],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[_.tooltipState]},changeDetection:0}),t}(),k=function(){function t(){}return t.\u0275mod=a.Ob({type:t}),t.\u0275inj=a.Nb({factory:function(e){return new(e||t)},providers:[x],imports:[[r.a,o.c,i.f,s.i],s.i,c.b]}),t}()},vubp:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("mrSG"),r=n("T1DM"),o=n("VGuC"),a=n("FFOo"),s=n("60iU");function c(t,e){void 0===e&&(e=r.a);var n=Object(o.a)(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new u(n,e))}}var u=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))},t}(),l=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.delay=n,r.scheduler=i,r.queue=[],r.active=!1,r.errored=!1,r}return i.c(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new p(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(s.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(s.a.createComplete()),this.unsubscribe()},e}(a.a),p=function(){return function(t,e){this.time=t,this.notification=e}}()},vvrf:function(t,e,n){var i=n("u/Db"),r=n("3X7Y"),o=n("nZSm"),a=n("AZa5"),s=n("Lzq4"),c=n("BCVQ"),u=n("e/Dd"),l=n("ELBg");function p(t){return unescape(encodeURIComponent(t)).length}function h(t,e,n){for(var i,r=[];null!==(i=t.exec(n));)r.push({data:i[0],index:i.index,mode:e,length:i[0].length});return r}function d(t){var e,n,r=h(c.NUMERIC,i.NUMERIC,t),o=h(c.ALPHANUMERIC,i.ALPHANUMERIC,t);return u.isKanjiModeEnabled()?(e=h(c.BYTE,i.BYTE,t),n=h(c.KANJI,i.KANJI,t)):(e=h(c.BYTE_KANJI,i.BYTE,t),n=[]),r.concat(o,e,n).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function f(t,e){switch(e){case i.NUMERIC:return r.getBitsLength(t);case i.ALPHANUMERIC:return o.getBitsLength(t);case i.KANJI:return s.getBitsLength(t);case i.BYTE:return a.getBitsLength(t)}}function m(t,e){var n,c=i.getBestModeForData(t);if((n=i.from(e,c))!==i.BYTE&&n.bit=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[]))},e.rawSplit=function(t){return e.fromArray(d(t,u.isKanjiModeEnabled()))}},wFw1:function(t,e,n){"use strict";n.d(e,"a",(function(){return me})),n.d(e,"b",(function(){return ye}));var i=n("mrSG"),r=n("CcnG"),o=n("ZYjt"),a=n("ihYY");function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function c(t){switch(t.length){case 0:return new a.d;case 1:return t[0];default:return new a.o(t)}}function u(t,e,n,i,r,o){void 0===r&&(r={}),void 0===o&&(o={});var s=[],c=[],u=-1,l=null;if(i.forEach((function(t){var n=t.offset,i=n==u,p=i&&l||{};Object.keys(t).forEach((function(n){var i=n,c=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,s),c){case a.p:c=r[n];break;case a.a:c=o[n];break;default:c=e.normalizeStyleValue(n,i,c,s)}p[i]=c})),i||c.push(p),l=p,u=n})),s.length)throw new Error("Unable to animate due to the following errors:\n - "+s.join("\n - "));return c}function l(t,e,n,i){switch(e){case"start":t.onStart((function(){return i(n&&p(n,"start",t))}));break;case"done":t.onDone((function(){return i(n&&p(n,"done",t))}));break;case"destroy":t.onDestroy((function(){return i(n&&p(n,"destroy",t))}))}}function p(t,e,n){var i=n.totalTime,r=h(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),o=t._data;return null!=o&&(r._data=o),r}function h(t,e,n,i,r,o,a){return void 0===r&&(r=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function d(t,e,n){var i;return t instanceof Map?(i=t.get(e))||t.set(e,i=n):(i=t[e])||(i=t[e]=n),i}function f(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var m=function(t,e){return!1},b=function(t,e){return!1},g=function(t,e,n){return[]},y=s();(y||"undefined"!=typeof Element)&&(m=function(t,e){return t.contains(e)},b=function(){if(y||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:b}(),g=function(t,e,n){var r=[];if(n)r.push.apply(r,Object(i.f)(t.querySelectorAll(e)));else{var o=t.querySelector(e);o&&r.push(o)}return r});var v=null,_=!1;function w(t){v||(v=("undefined"!=typeof document?document.body:null)||{},_=!!v.style&&"WebkitAppearance"in v.style);var e=!0;return v.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in v.style)&&_&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in v.style),e}var O=b,C=m,x=g;function E(t){var e={};return Object.keys(t).forEach((function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]})),e}var S=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return w(t)},t.prototype.matchesElement=function(t,e){return O(t,e)},t.prototype.containsElement=function(t,e){return C(t,e)},t.prototype.query=function(t,e,n){return x(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,i,r,o,s){return void 0===o&&(o=[]),new a.d(n,i)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Mb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),A=function(){function t(){}return t.NOOP=new S,t}();function k(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:D(parseFloat(e[1]),e[2])}function D(t,e){switch(e){case"s":return 1e3*t;default:return t}}function j(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var i,r=0,o="";if("string"==typeof t){var a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};i=D(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=D(parseFloat(s),a[4]));var c=a[5];c&&(o=c)}else i=t;if(!n){var u=!1,l=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),u=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&e.splice(l,0,'The provided timing value "'+t+'" is invalid.')}return{duration:i,delay:r,easing:o}}(t,e,n)}function I(t,e){return void 0===e&&(e={}),Object.keys(t).forEach((function(n){e[n]=t[n]})),e}function T(t,e,n){if(void 0===n&&(n={}),e)for(var i in t)n[i]=t[i];else I(t,n);return n}function R(t,e,n){return n?e+":"+n+";":""}function P(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=r[1],a=r[2],s=r[3];e.push(X(o,s)),"<"!=a[0]||"*"==o&&"*"==s||e.push(X(s,o))}(t,r,i)})):r.push(n),r),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:nt(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map((function(t){return Y(n,t,e)})),options:nt(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,i=e.currentTime,r=0,o=t.steps.map((function(t){e.currentTime=i;var o=Y(n,t,e);return r=Math.max(r,e.currentTime),o}));return e.currentTime=r,{type:3,steps:o,options:nt(t.options)}},t.prototype.visitAnimate=function(t,e){var n,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return it(j(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var r=it(0,0,"");return r.dynamic=!0,r.strValue=i,r}return it((n=n||j(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var r=t.styles?t.styles:Object(a.l)({});if(5==r.type)n=this.visitKeyframes(r,e);else{var o=t.styles,s=!1;if(!o){s=!0;var c={};i.easing&&(c.easing=i.easing),o=Object(a.l)(c)}e.currentTime+=i.duration+i.delay;var u=this.visitStyle(o,e);u.isEmptyStep=s,n=u}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach((function(t){"string"==typeof t?t==a.a?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)})):n.push(t.styles);var i=!1,r=null;return n.forEach((function(t){if(et(t)){var e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(var o in e)if(e[o].toString().indexOf("{{")>=0){i=!0;break}}})),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(i){if(n._driver.validateStyleProperty(i)){var a,s,c,u=e.collectedStyles[e.currentQuerySelector],l=u[i],p=!0;l&&(o!=r&&o>=l.startTime&&r<=l.endTime&&(e.errors.push('The CSS property "'+i+'" that exists between the times of "'+l.startTime+'ms" and "'+l.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+r+'ms"'),p=!1),o=l.startTime),p&&(u[i]={startTime:o,endTime:r}),e.options&&(a=e.errors,s=e.options.params||{},(c=V(t[i])).length&&c.forEach((function(t){s.hasOwnProperty(t)||a.push("Unable to resolve the local animation param "+t+" in the given list of values")})))}else e.errors.push('The provided animation property "'+i+'" is not a supported CSS property for animations')}))}))},t.prototype.visitKeyframes=function(t,e){var n=this,i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,c=0,u=t.steps.map((function(t){var i=n._makeStyleAst(t,e),u=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach((function(t){if(et(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(et(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),l=0;return null!=u&&(r++,l=i.offset=u),s=s||l<0||l>1,a=a||l0&&r0?r==h?1:p*r:o[r],s=a*m;e.currentTime=d+f.delay+s,f.duration=s,n._validateStyleAst(t,e),t.offset=a,i.styles.push(t)})),i},t.prototype.visitReference=function(t,e){return{type:8,animation:Y(this,N(t.animation),e),options:nt(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:nt(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:nt(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var o=Object(i.e)(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));return e&&(t=t.replace(Z,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(t){return".ng-trigger-"+t.substr(1)})).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),a=o[0],s=o[1];e.currentQuerySelector=n.length?n+" "+a:a,d(e.collectedStyles,e.currentQuerySelector,{});var c=Y(this,N(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:a,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:c,originalSelector:t.selector,options:nt(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:j(t.timings,e.errors,!0);return{type:12,animation:Y(this,N(t.animation),e),timings:n,options:null}},t}(),tt=function(){return function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function et(t){return!Array.isArray(t)&&"object"==typeof t}function nt(t){var e;return t?(t=I(t)).params&&(t.params=(e=t.params)?I(e):null):t={},t}function it(t,e,n){return{duration:t,delay:e,easing:n}}function rt(t,e,n,i,r,o,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var ot=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,Object(i.f)(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),at=new RegExp(":enter","g"),st=new RegExp(":leave","g");function ct(t,e,n,i,r,o,a,s,c,u){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===u&&(u=[]),(new ut).buildKeyframes(t,e,n,i,r,o,a,s,c,u)}var ut=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,i,r,o,a,s,c,u){void 0===u&&(u=[]),c=c||new ot;var l=new pt(t,e,c,i,r,u,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),Y(this,n,l);var p=l.timelines.filter((function(t){return t.containsAnimation()}));if(p.length&&Object.keys(a).length){var h=p[p.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,l.errors,s)}return p.length?p.map((function(t){return t.buildKeyframes()})):[rt(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var i=e.currentTimeline.currentTime,r=null!=n.duration?k(n.duration):null,o=null!=n.delay?k(n.delay):null;return 0!==r&&t.forEach((function(t){var n=e.appendInstructionToTimeline(t,r,o);i=Math.max(i,n.duration+n.delay)})),i},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),Y(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,i=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&((r=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=lt);var a=k(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach((function(t){return Y(n,t,r)})),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,i=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?k(t.options.delay):0;t.steps.forEach((function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),Y(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)})),i.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(r),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return j(e.params?B(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach((function(t){o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(i+r),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?k(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=lt);var a=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var c=null;s.forEach((function(i,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,i);o&&s.delayNextStep(o),i===e.element&&(c=s.currentTimeline),Y(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,i=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var c=e.currentTimeline;s&&c.delayNextStep(s);var u=c.currentTime;Y(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)},t}(),lt={},pt=function(){function t(t,e,n,i,r,o,a,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=lt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new ht(this._driver,e,0),a.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var i=t,r=this.options;null!=i.duration&&(r.duration=k(i.duration)),null!=i.delay&&(r.delay=k(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach((function(t){e&&a.hasOwnProperty(t)||(a[t]=B(o[t],a,n.errors))}))}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach((function(t){n[t]=e[t]}))}}return t},t.prototype.createSubContext=function(e,n,i){void 0===e&&(e=null);var r=n||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=lt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new dt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,o,a){var s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(at,"."+this._enterClassName)).replace(st,"."+this._leaveClassName);var c=this._driver.query(this.element,t,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),s.push.apply(s,Object(i.f)(c))}return o||0!=s.length||a.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),ht=function(){function t(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((function(t){e._backFill[t]=e._globalTimelineStyles[t]||a.a,e._currentKeyframe[t]=a.a})),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,i){var r=this;e&&(this._previousKeyframe.easing=e);var o=i&&i.params||{},s=function(t,e){var n,i={};return t.forEach((function(t){"*"===t?(n=n||Object.keys(e)).forEach((function(t){i[t]=a.a})):T(t,!1,i)})),i}(t,this._globalTimelineStyles);Object.keys(s).forEach((function(t){var e=B(s[t],o,n);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:a.a),r._updateStyle(t,e)}))},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){t._currentKeyframe[n]=e[n]})),Object.keys(this._localTimelineStyles).forEach((function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])})))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach((function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)}))},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach((function(n){var i=e._styleSummary[n],r=t._styleSummary[n];(!i||r.time>i.time)&&e._updateStyle(n,r.value)}))},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach((function(o,s){var c=T(o,!0);Object.keys(c).forEach((function(t){var i=c[t];i==a.p?e.add(t):i==a.a&&n.add(t)})),i||(c.offset=s/t.duration),r.push(c)}));var o=e.size?H(e.values()):[],s=n.size?H(n.values()):[];if(i){var c=r[0],u=I(c);c.offset=0,u.offset=1,r=[c,u]}return rt(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)},t}(),dt=function(t){function e(e,n,i,r,o,a,s){void 0===s&&(s=!1);var c=t.call(this,e,n,a.delay)||this;return c.element=n,c.keyframes=i,c.preStyleProps=r,c.postStyleProps=o,c._stretchStartingKeyframe=s,c.timings={duration:a.duration,delay:a.delay,easing:a.easing},c}return Object(i.c)(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,c=T(t[0],!1);c.offset=0,o.push(c);var u=T(t[0],!1);u.offset=ft(s),o.push(u);for(var l=t.length-1,p=1;p<=l;p++){var h=T(t[p],!1);h.offset=ft((n+h.offset*i)/a),o.push(h)}i=a,n=0,r="",t=o}return rt(this.element,t,this.preStyleProps,this.postStyleProps,i,n,r,!0)},e}(ht);function ft(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var mt=function(){return function(){}}(),bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.normalizePropertyName=function(t,e){return z(t)},e.prototype.normalizeStyleValue=function(t,e,n,i){var r="",o=n.toString().trim();if(gt[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for "+t+":"+n)}return o+r},e}(mt),gt=function(){return t="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),e={},t.forEach((function(t){return e[t]=!0})),e;var t,e}();function yt(t,e,n,i,r,o,a,s,c,u,l,p,h){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:p,errors:h}}var vt={},_t=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,i){return function(t,e,n,i,r){return t.some((function(t){return t(e,n,i,r)}))}(this.ast.matchers,t,e,n,i)},t.prototype.buildStyles=function(t,e,n){var i=this._stateStyles["*"],r=this._stateStyles[t],o=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):o},t.prototype.build=function(t,e,n,r,o,a,s,c,u,l){var p=[],h=this.ast.options&&this.ast.options.params||vt,f=this.buildStyles(n,s&&s.params||vt,p),m=c&&c.params||vt,b=this.buildStyles(r,m,p),g=new Set,y=new Map,v=new Map,_="void"===r,w={params:Object(i.a)(Object(i.a)({},h),m)},O=l?[]:ct(t,e,this.ast.animation,o,a,f,b,w,u,p),C=0;if(O.forEach((function(t){C=Math.max(t.duration+t.delay,C)})),p.length)return yt(e,this._triggerName,n,r,_,f,b,[],[],y,v,C,p);O.forEach((function(t){var n=t.element,i=d(y,n,{});t.preStyleProps.forEach((function(t){return i[t]=!0}));var r=d(v,n,{});t.postStyleProps.forEach((function(t){return r[t]=!0})),n!==e&&g.add(n)}));var x=H(g.values());return yt(e,this._triggerName,n,r,_,f,b,O,x,y,v,C)},t}(),wt=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},i=I(this.defaultParams);return Object.keys(t).forEach((function(e){var n=t[e];null!=n&&(i[e]=n)})),this.styles.styles.forEach((function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach((function(t){var o=r[t];o.length>1&&(o=B(o,i,e)),n[t]=o}))}})),n},t}(),Ot=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach((function(t){n.states[t.name]=new wt(t.style,t.options&&t.options.params||{})})),Ct(this.states,"true","1"),Ct(this.states,"false","0"),e.transitions.forEach((function(e){n.transitionFactories.push(new _t(t,e,n.states))})),this.fallbackTransition=new _t(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,i){return this.transitionFactories.find((function(r){return r.match(t,e,n,i)}))||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function Ct(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var xt=new ot,Et=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],i=$(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i},t.prototype._buildPlayer=function(t,e,n){var i=t.element,r=u(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var i=this;void 0===n&&(n={});var r,o=[],s=this._animations[t],u=new Map;if(s?(r=ct(this._driver,e,s,"ng-enter","ng-leave",{},{},n,xt,o)).forEach((function(t){var e=d(u,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),r=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));u.forEach((function(t,e){Object.keys(t).forEach((function(n){t[n]=i._driver.computeStyle(e,n,a.a)}))}));var l=c(r.map((function(t){var e=u.get(t.element);return i._buildPlayer(t,{},e)})));return this._playersById[t]=l,l.onDestroy((function(){return i.destroy(t)})),this.players.push(l),l},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,i){var r=h(e,"","","");return l(this._getPlayer(t),n,r,i),function(){}},t.prototype.command=function(t,e,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])},t}(),St=[],At={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},kt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Dt=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n,i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){var r=I(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach((function(t){null==n[t]&&(n[t]=e[t])}))}},t}(),jt=new Dt("void"),It=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Mt(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=d(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};a.push(s);var c=d(this._engine.statesByElement,t,{});return c.hasOwnProperty(e)||(Mt(t,"ng-trigger"),Mt(t,"ng-trigger-"+e),c[e]=jt),function(){o._engine.afterFlush((function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete c[e]}))}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,i){var r=this;void 0===i&&(i=!0);var o=this._getTrigger(e),a=new Rt(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Mt(t,"ng-trigger"),Mt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var c=s[e],u=new Dt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),s[e]=u,c||(c=jt),"void"===u.value||c.value!==u.value){var l=d(this._engine.playersByElement,t,[]);l.forEach((function(t){t.namespaceId==r.id&&t.triggerName==e&&t.queued&&t.destroy()}));var p=o.matchTransition(c.value,u.value,t,u.params),h=!1;if(!p){if(!i)return;p=o.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:c,toState:u,player:a,isFallbackTransition:h}),h||(Mt(t,"ng-animate-queued"),a.onStart((function(){Vt(t,"ng-animate-queued")}))),a.onDone((function(){var e=r.players.indexOf(a);e>=0&&r.players.splice(e,1);var n=r._engine.playersByElement.get(t);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}})),this.players.push(a),l.push(a),a}if(!function(t,e){var n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var i=this._fetchNamespace(t);this.afterFlush((function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(i);e>=0&&n._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((function(){return i.destroy(e)}))}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}i&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Mt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Vt(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n,i){if(Pt(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,i)}}else this._onRemovalComplete(e,i)},t.prototype.markElementAsRemoved=function(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,i,r){return Pt(e)?this._fetchNamespace(t).listen(e,n,i,r):function(){}},t.prototype._buildInstruction=function(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach((function(t){return e.destroyActiveAnimationsForElement(t)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach((function(t){return e.finishActiveQueriedAnimationOnElement(t)}))},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach((function(t){t.queued?t.markedForDestroy=!0:t.destroy()}))},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach((function(t){return t.finish()}))},t.prototype.whenRenderingDone=function(){var t=this;return new Promise((function(e){if(t.players.length)return c(t.players).onDone((function(){return e()}));e()}))},t.prototype.processLeaveNode=function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=At,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach((function(t){e.markElementAsDisabled(t,!1)}))},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(t,n){return e._balanceNamespaceList(t,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;k--)this._namespaceList[k].drainQueuedTransitions(e).forEach((function(t){var e=t.player,i=t.element;if(S.push(e),n.collectedEnterElements.length){var a=i.__ng_removed;if(a&&a.setForMove)return void e.destroy()}var s=!m||!n.driver.containsElement(m,i),c=x.get(i),f=y.get(i),b=n._buildInstruction(t,r,f,c,s);if(b.errors&&b.errors.length)A.push(b);else{if(s)return e.onStart((function(){return F(i,b.fromStyles)})),e.onDestroy((function(){return L(i,b.toStyles)})),void o.push(e);if(t.isFallbackTransition)return e.onStart((function(){return F(i,b.fromStyles)})),e.onDestroy((function(){return L(i,b.toStyles)})),void o.push(e);b.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),r.append(i,b.timelines),u.push({instruction:b,player:e,element:i}),b.queriedElements.forEach((function(t){return d(l,t,[]).push(e)})),b.preStyleProps.forEach((function(t,e){var n=Object.keys(t);if(n.length){var i=p.get(e);i||p.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))}})),b.postStyleProps.forEach((function(t,e){var n=Object.keys(t),i=h.get(e);i||h.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))}))}}));if(A.length){var D=[];A.forEach((function(t){D.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach((function(t){return D.push("- "+t+"\n")}))})),S.forEach((function(t){return t.destroy()})),this.reportError(D)}var j=new Map,I=new Map;u.forEach((function(t){var e=t.element;r.has(e)&&(I.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,j))})),o.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){d(j,e,[]).push(t),t.destroy()}))}));var T=_.filter((function(t){return Ht(t,p,h)})),R=new Map;Ft(R,this.driver,O,h,a.a).forEach((function(t){Ht(t,p,h)&&T.push(t)}));var P=new Map;g.forEach((function(t,e){Ft(P,n.driver,new Set(t),p,a.p)})),T.forEach((function(t){var e=R.get(t),n=P.get(t);R.set(t,Object(i.a)(Object(i.a)({},e),n))}));var N=[],M=[],V={};u.forEach((function(t){var e=t.element,i=t.player,a=t.instruction;if(r.has(e)){if(f.has(e))return i.onDestroy((function(){return L(e,a.toStyles)})),i.disabled=!0,i.overrideTotalTime(a.totalTime),void o.push(i);var u=V;if(I.size>1){for(var l=e,p=[];l=l.parentNode;){var h=I.get(l);if(h){u=h;break}p.push(l)}p.forEach((function(t){return I.set(t,u)}))}var d=n._buildAnimation(i.namespaceId,a,j,s,P,R);if(i.setRealPlayer(d),u===V)N.push(i);else{var m=n.playersByElement.get(u);m&&m.length&&(i.parentPlayer=c(m)),o.push(i)}}else F(e,a.fromStyles),i.onDestroy((function(){return L(e,a.toStyles)})),M.push(i),f.has(e)&&o.push(i)})),M.forEach((function(t){var e=s.get(t.element);if(e&&e.length){var n=c(e);t.setRealPlayer(n)}})),o.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var B=0;B<_.length;B++){var H,W=(H=_[B]).__ng_removed;if(Vt(H,"ng-leave"),!W||!W.hasAnimation){var z=[];if(l.size){var U=l.get(H);U&&U.length&&z.push.apply(z,Object(i.f)(U));for(var Q=this.driver.query(H,".ng-animating",!0),Y=0;Y0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new a.d(t.duration,t.delay)},t}(),Rt=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new a.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((function(n){e._queuedCallbacks[n].forEach((function(e){return l(t,n,void 0,e)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart((function(){return n.triggerCallback("start")})),t.onDone((function(){return e.finish()})),t.onDestroy((function(){return e.destroy()}))},t.prototype._queueEvent=function(t,e){d(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function Pt(t){return t&&1===t.nodeType}function Lt(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Ft(t,e,n,i,r){var o=[];n.forEach((function(t){return o.push(Lt(t))}));var a=[];i.forEach((function(n,i){var o={};n.forEach((function(t){var n=o[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=kt,a.push(i))})),t.set(i,o)}));var s=0;return n.forEach((function(t){return Lt(t,o[s++])})),a}function Nt(t,e){var n=new Map;if(t.forEach((function(t){return n.set(t,[])})),0==e.length)return n;var i=new Set(e),r=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var o=r.get(e);if(o)return o;var a=e.parentNode;return o=n.has(a)?a:i.has(a)?1:t(a),r.set(e,o),o}(t);1!==e&&n.get(e).push(t)})),n}function Mt(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Vt(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function Bt(t,e,n){c(n).onDone((function(){return t.processLeaveNode(e)}))}function Ht(t,e,n){var i=n.get(t);if(!i)return!1;var r=e.get(t);return r?i.forEach((function(t){return r.add(t)})):e.set(t,i),n.delete(t),!0}var Wt=function(){function t(t,e,n){var i=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Tt(t,e,n),this._timelineEngine=new Et(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return i.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,i,r){var o=t+"-"+i,a=this._triggerCache[o];if(!a){var s=[],c=$(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'+i+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(t,e){return new Ot(t,e)}(i,c),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,i,a)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)},t.prototype.onRemove=function(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var o=Object(i.e)(f(n),2);this._timelineEngine.command(o[0],e,o[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,o){if("@"==n.charAt(0)){var a=Object(i.e)(f(n),2);return this._timelineEngine.listen(a[0],e,a[1],o)}return this._transitionEngine.listen(t,e,n,r,o)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}();function zt(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=Qt(e[0]),e.length>1&&(i=Qt(e[e.length-1]))):e&&(n=Qt(e)),n||i?new Ut(t,n,i):null}var Ut=function(){function t(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return t.prototype.start=function(){this._state<1&&(this._startStyles&&L(this._element,this._startStyles,this._initialStyles),this._state=1)},t.prototype.finish=function(){this.start(),this._state<2&&(L(this._element,this._initialStyles),this._endStyles&&(L(this._element,this._endStyles),this._endStyles=null),this._state=1)},t.prototype.destroy=function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(F(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(F(this._element,this._endStyles),this._endStyles=null),L(this._element,this._initialStyles),this._state=3)},t.initialStylesByElement=new WeakMap,t}();function Qt(t){for(var e=null,n=Object.keys(t),i=0;i=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),Zt(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(i=Xt(n=Jt(t=this._element,"").split(","),e))>=0&&(n.splice(i,1),$t(t,"",n.join(","))))},t}();function qt(t,e,n){$t(t,"PlayState",n,Kt(t,e))}function Kt(t,e){var n=Jt(t,"");return n.indexOf(",")>0?Xt(n.split(","),e):Xt([n],e)}function Xt(t,e){for(var n=0;n=0)return n;return-1}function Zt(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function $t(t,e,n,i){var r="animation"+e;if(null!=i){var o=t.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}t.style[r]=n}function Jt(t,e){return t.style["animation"+e]}var te=function(){function t(t,e,n,i,r,o,a,s){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=a,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+r,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new Gt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return t.finish()}))},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(i){"offset"!=i&&(e[i]=n?t._finalStyles[i]:G(t.element,i))}))}this.currentSnapshot=e},t}(),ee=function(t){function e(e,n){var i=t.call(this)||this;return i.element=e,i._startingStyles={},i.__initialized=!1,i._styles=E(n),i}return Object(i.c)(e,t),e.prototype.init=function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(t){e._startingStyles[t]=e.element.style[t]})),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),t.prototype.play.call(this))},e.prototype.destroy=function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)})),this._startingStyles=null,t.prototype.destroy.call(this))},e}(a.d),ne=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return w(t)},t.prototype.matchesElement=function(t,e){return O(t,e)},t.prototype.containsElement=function(t,e){return C(t,e)},t.prototype.query=function(t,e,n){return x(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){n=n.map((function(t){return E(t)}));var i="@keyframes "+e+" {\n",r="";n.forEach((function(t){r=" ";var e=parseFloat(t.offset);i+=""+r+100*e+"% {\n",r+=" ",Object.keys(t).forEach((function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=r+"animation-timing-function: "+n+";\n"));default:return void(i+=""+r+e+": "+n+";\n")}})),i+=r+"}\n"})),i+="}\n";var o=document.createElement("style");return o.innerHTML=i,o},t.prototype.animate=function(t,e,n,i,r,o,a){void 0===o&&(o=[]),a&&this._notifyFaultyScrubber();var s=o.filter((function(t){return t instanceof te})),c={};U(n,i)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return c[t]=e[t]}))}));var u=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach((function(t){Object.keys(t).forEach((function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])}))})),e}(e=Q(t,e,c));if(0==n)return new ee(t,u);var l="gen_css_kf_"+this._count++,p=this.buildKeyframeElement(t,l,e);document.querySelector("head").appendChild(p);var h=zt(t,e),d=new te(t,e,l,n,i,r,u,h);return d.onDestroy((function(){var t;(t=p).parentNode.removeChild(t)})),d},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),ie=function(){function t(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return t._onFinish()}))}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:G(t.element,n))})),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t}(),re=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(oe().toString()),this._cssKeyframesDriver=new ne}return t.prototype.validateStyleProperty=function(t){return w(t)},t.prototype.matchesElement=function(t,e){return O(t,e)},t.prototype.containsElement=function(t,e){return C(t,e)},t.prototype.query=function(t,e,n){return x(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,i,r,o,a){if(void 0===o&&(o=[]),!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var c={},u=o.filter((function(t){return t instanceof ie}));U(n,i)&&u.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return c[t]=e[t]}))}));var l=zt(t,e=Q(t,e=e.map((function(t){return T(t,!1)})),c));return new ie(t,e,s,l)},t}();function oe(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ae=n("Ip0R"),se=function(t){function e(e,n){var i=t.call(this)||this;return i._nextAnimationId=0,i._renderer=e.createRenderer(n.body,{id:"0",encapsulation:r.Q.None,styles:[],data:{animation:[]}}),i}return Object(i.c)(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Object(a.j)(t):t;return le(this._renderer,null,e,"register",[n]),new ce(e,this._renderer)},e.\u0275fac=function(t){return new(t||e)(r.ac(r.G),r.ac(ae.d))},e.\u0275prov=r.Mb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(a.b),ce=function(t){function e(e,n){var i=t.call(this)||this;return i._id=e,i._renderer=n,i}return Object(i.c)(e,t),e.prototype.create=function(t,e){return new ue(this._id,t,e||{},this._renderer)},e}(a.c),ue=function(){function t(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n=0&&t0&&(t=U.apply(null,Object(i.f)(e,[t]))),function(e,n){var i=t(e);return function(t,e){return i(t=void 0===t?n:t,e)}}}var Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e}(a.a),G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e}(_),q="@ngrx/store/update-reducers",K=function(t){function e(e,n,i,r){var o=t.call(this,r(i,n))||this;return o.dispatcher=e,o.initialState=n,o.reducers=i,o.reducerFactory=r,o}return Object(i.c)(e,t),e.prototype.addFeature=function(t){this.addFeatures([t])},e.prototype.addFeatures=function(t){var e=t.reduce((function(t,e){var n=e.reducers,r=e.reducerFactory,o=e.metaReducers,a=e.initialState,s=e.key,c="function"==typeof n?function(t){var e=Array.isArray(t)&&t.length>0?U.apply(void 0,Object(i.f)(t)):function(t){return t};return function(t,n){return t=e(t),function(e,i){return t(e=void 0===e?n:e,i)}}}(o)(n,a):Q(r,o)(n,a);return t[s]=c,t}),{});this.addReducers(e)},e.prototype.removeFeature=function(t){this.removeFeatures([t])},e.prototype.removeFeatures=function(t){this.removeReducers(t.map((function(t){return t.key})))},e.prototype.addReducer=function(t,e){var n;this.addReducers(((n={})[t]=e,n))},e.prototype.addReducers=function(t){this.reducers=Object(i.a)(Object(i.a)({},this.reducers),t),this.updateReducers(Object.keys(t))},e.prototype.removeReducer=function(t){this.removeReducers([t])},e.prototype.removeReducers=function(t){var e=this;t.forEach((function(t){var n,i;e.reducers=(n=e.reducers,i=t,Object.keys(n).filter((function(t){return t!==i})).reduce((function(t,e){var i;return Object.assign(t,((i={})[e]=n[e],i))}),{}))})),this.updateReducers(t)},e.prototype.updateReducers=function(t){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:q,features:t})},e.prototype.ngOnDestroy=function(){this.complete()},e.\u0275fac=function(t){return new(t||e)(r.ac(G),r.ac(x),r.ac(A),r.ac(E))},e.\u0275prov=r.Mb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(o.a),X=[K,{provide:Y,useExisting:K},{provide:G,useExisting:_}],Z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(i.c)(e,t),e.prototype.ngOnDestroy=function(){this.complete()},e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=r.Mb({token:e,factory:function(t){return e.\u0275fac(t)}});var n=r.Yb(e);return e}(s.a),$=[Z],J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e}(a.a),tt=function(t){function e(e,n,i,r){var o=t.call(this,r)||this,a={state:r},s=e.pipe(Object(u.b)(c.a)).pipe(Object(l.a)(n)).pipe(Object(p.a)(et,a));return o.stateSubscription=s.subscribe((function(t){var e=t.action;o.next(t.state),i.next(e)})),o}return Object(i.c)(e,t),e.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe(),this.complete()},e.INIT=v,e.\u0275fac=function(t){return new(t||e)(r.ac(_),r.ac(Y),r.ac(Z),r.ac(x))},e.\u0275prov=r.Mb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(o.a);function et(t,e){void 0===t&&(t={state:void 0});var n=Object(i.e)(e,2),r=n[0];return{state:(0,n[1])(t.state,r),action:r}}var nt=[tt,{provide:J,useExisting:tt}],it=function(t){function e(e,n,i){var r=t.call(this)||this;return r.actionsObserver=n,r.reducerManager=i,r.source=e,r}var n;return Object(i.c)(e,t),n=e,e.prototype.select=function(t){for(var e,n=[],r=1;r1})).map((function(t){return Object(i.e)(t,1)[0]}));if(e.length)throw new Error("Action types are registered more than once, "+e.map((function(t){return'"'+t+'"'})).join(", ")+". "+at+"#strictactiontypeuniqueness")}}var Ct=function(){function t(t,e,n,i,r,o){}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)(r.ac(_),r.ac(Y),r.ac(Z),r.ac(it),r.ac(O,8),r.ac(W,8))}}),t}(),xt=function(){function t(t,e,n,r,o){this.features=t,this.featureReducers=e,this.reducerManager=n;var a=t.map((function(t,n){var r=e.shift()[n];return Object(i.a)(Object(i.a)({},t),{reducers:r,initialState:Dt(t.initialState)})}));n.addFeatures(a)}return t.prototype.ngOnDestroy=function(){this.reducerManager.removeFeatures(this.features)},t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)(r.ac(R),r.ac(L),r.ac(K),r.ac(Ct),r.ac(W,8))}}),t}(),Et=function(){function t(){}return t.forRoot=function(t,e){return void 0===e&&(e={}),{ngModule:Ct,providers:[{provide:O,useFactory:It,deps:[[it,new r.B,new r.K]]},{provide:C,useValue:e.initialState},{provide:x,useFactory:Dt,deps:[C]},{provide:k,useValue:t},{provide:j,useExisting:t instanceof r.r?t:k},{provide:A,deps:[r.s,k,[new r.q(j)]],useFactory:St},{provide:F,useValue:e.metaReducers?e.metaReducers:[]},{provide:M,deps:[N,F],useFactory:jt},{provide:S,useValue:e.reducerFactory?e.reducerFactory:z},{provide:E,deps:[S,M],useFactory:Q},w,X,$,nt,rt,(n=e.runtimeChecks,[{provide:B,useValue:n},{provide:V,useFactory:wt,deps:[B]},{provide:H,deps:[V],useFactory:mt},{provide:N,multi:!0,deps:[H],useFactory:gt},{provide:N,multi:!0,deps:[H],useFactory:bt},{provide:N,multi:!0,deps:[H],useFactory:vt}]),_t()]};var n},t.forFeature=function(t,e,n){return void 0===n&&(n={}),{ngModule:xt,providers:[{provide:T,multi:!0,useValue:n},{provide:D,multi:!0,useValue:{key:t,reducerFactory:n instanceof r.r||!n.reducerFactory?z:n.reducerFactory,metaReducers:n instanceof r.r||!n.metaReducers?[]:n.metaReducers,initialState:n instanceof r.r||!n.initialState?void 0:n.initialState}},{provide:R,deps:[r.s,T,D],useFactory:At},{provide:I,multi:!0,useValue:e},{provide:P,multi:!0,useExisting:e instanceof r.r?e:I},{provide:L,multi:!0,deps:[r.s,I,[new r.q(P)]],useFactory:kt},_t()]}},t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)}}),t}();function St(t,e){return e instanceof r.r?t.get(e):e}function At(t,e,n){return n.map((function(n,i){if(e[i]instanceof r.r){var o=t.get(e[i]);return{key:n.key,reducerFactory:o.reducerFactory?o.reducerFactory:z,metaReducers:o.metaReducers?o.metaReducers:[],initialState:o.initialState}}return n}))}function kt(t,e){return e.map((function(e){return e instanceof r.r?t.get(e):e}))}function Dt(t){return"function"==typeof t?t():t}function jt(t,e){return t.concat(e)}function It(t){if(t)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}},yKow:function(t,e,n){var i=n("e/Dd"),r=n("NPxG"),o=n("ekOh"),a=n("u/Db"),s=n("J6Nv"),c=n("49sm"),u=i.getBCHDigit(7973);function l(t,e){return a.getCharCountIndicator(t,e)+4}function p(t,e){var n=0;return t.forEach((function(t){var i=l(t.mode,e);n+=i+t.getBitsLength()})),n}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!s.isValid(t))throw new Error("Invalid QR Code version");void 0===n&&(n=a.BYTE);var o=8*(i.getSymbolTotalCodewords(t)-r.getTotalCodewordsCount(t,e));if(n===a.MIXED)return o;var c=o-l(n,t);switch(n){case a.NUMERIC:return Math.floor(c/10*3);case a.ALPHANUMERIC:return Math.floor(c/11*2);case a.KANJI:return Math.floor(c/13);case a.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,n){var i,r=o.from(n,o.M);if(c(t)){if(t.length>1)return function(t,n){for(var i=1;i<=40;i++)if(p(t,i)<=e.getCapacity(i,n,a.MIXED))return i}(t,r);if(0===t.length)return 1;i=t[0]}else i=t;return function(t,n,i){for(var r=1;r<=40;r++)if(n<=e.getCapacity(r,i,t))return r}(i.mode,i.getLength(),r)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw new Error("Invalid QR Code version");for(var e=t<<12;i.getBCHDigit(e)-u>=0;)e^=7973<\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),t.apply(this,arguments)}}c="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n-1}function k(t){return t.trim().split(/\s+/g)}function D(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;in[e]})):i.sort()),i}function T(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=W(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,c=e.center=z(i);e.timeStamp=d(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=G(s,c),e.distance=Y(s,c),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=Q(e.deltaX,e.deltaY);var u,l,p=U(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=p.x,e.overallVelocityY=p.y,e.overallVelocity=h(p.x)>h(p.y)?p.x:p.y,e.scale=a?(u=a.pointers,Y((l=i)[0],l[1],V)/Y(u[0],u[1],V)):1,e.rotation=a?function(t,e){return G(e[1],e[0],V)+G(t[1],t[0],V)}(a.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(8!=e.eventType&&(s>25||void 0===a.velocity)){var c=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,l=U(s,c,u);i=l.x,r=l.y,n=h(l.x)>h(l.y)?l.x:l.y,o=Q(c,u),t.lastInterval=e}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}(n,e);var f=t.element;S(e.srcEvent.target,f)&&(f=e.srcEvent.target),e.target=f}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function W(t){for(var e=[],n=0;n=h(e)?t<0?2:4:e<0?8:16}function Y(t,e,n){n||(n=M);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function G(t,e,n){return n||(n=M),180*Math.atan2(e[n[1]]-t[n[1]],e[n[0]]-t[n[0]])/Math.PI}B.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(P(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(P(this.element),this.evWin,this.domHandler)}};var q={mousedown:1,mousemove:2,mouseup:4};function K(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,B.apply(this,arguments)}_(K,B,{handler:function(t){var e=q[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var X={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Z={2:"touch",3:"pen",4:"mouse",5:"kinect"},$="pointerdown",J="pointermove pointerup pointercancel";function tt(){this.evEl=$,this.evWin=J,B.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&($="MSPointerDown",J="MSPointerMove MSPointerUp MSPointerCancel"),_(tt,B,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=X[i],o=Z[t.pointerType]||t.pointerType,a="touch"==o,s=D(e,t.pointerId,"pointerId");1&r&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):12&r&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var et={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function nt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,B.apply(this,arguments)}function it(t,e){var n=j(t.touches),i=j(t.changedTouches);return 12&e&&(n=I(n.concat(i),"identifier",!0)),[n,i]}_(nt,B,{handler:function(t){var e=et[t.type];if(1===e&&(this.started=!0),this.started){var n=it.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var rt={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ot(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},B.apply(this,arguments)}function at(t,e){var n=j(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=j(t.changedTouches),s=[],c=this.target;if(o=n.filter((function(t){return S(t.target,c)})),1===e)for(r=0;r-1&&i.splice(t,1)}),2500)}}function lt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+bt(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+bt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;te.threshold&&r&e.direction},attrTest:function(t){return vt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=gt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),_(wt,vt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),_(Ot,mt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distancee.time;if(this._input=t,!i||!n||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=f((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),_(Ct,vt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),_(xt,vt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return _t.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&h(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=gt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),_(Et,mt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){n.classList.remove(i)}),1e3)}))}},e.prototype._emitChangeEvent=function(){var t=new y;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)},e.prototype.toggle=function(){this.checked=!this.checked},e.prototype._onInputClick=function(t){var e=this;t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then((function(){e._indeterminate=!1,e.indeterminateChange.emit(e._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())},e.prototype.focus=function(t,e){void 0===t&&(t="keyboard"),this._focusMonitor.focusVia(this._inputElement,t,e)},e.prototype._onInteractionEvent=function(t){t.stopPropagation()},e.prototype._getAnimationClassForCheckStateTransition=function(t,e){if("NoopAnimations"===this._animationMode)return"";var n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+n},e.prototype._syncIndeterminate=function(t){var e=this._inputElement;e&&(e.nativeElement.indeterminate=t)},e.\u0275fac=function(t){return new(t||e)(o.Qb(o.l),o.Qb(o.h),o.Qb(l.h),o.Qb(o.A),o.bc("tabindex"),o.Qb(m,8),o.Qb(c.a,8),o.Qb(f,8))},e.\u0275cmp=o.Kb({type:e,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;1&t&&(o.Mc(p,!0),o.Mc(s.s,!0)),2&t&&(o.vc(n=o.fc())&&(e._inputElement=n.first),o.vc(n=o.fc())&&(e.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(o.Zb("id",e.id),o.Eb("tabindex",null),o.Hb("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[o.Cb([g]),o.Ab],ngContentSelectors:d,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(o.oc(),o.Wb(0,"label",0,1),o.Wb(2,"div",2),o.Wb(3,"input",3,4),o.ec("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),o.Vb(),o.Wb(5,"div",5),o.Rb(6,"div",6),o.Vb(),o.Rb(7,"div",7),o.Wb(8,"div",8),o.hc(),o.Wb(9,"svg",9),o.Rb(10,"path",10),o.Vb(),o.gc(),o.Rb(11,"div",11),o.Vb(),o.Vb(),o.Wb(12,"span",12,13),o.ec("cdkObserveContent",(function(){return e._onLabelTextChange()})),o.Wb(14,"span",14),o.Hc(15,"\xa0"),o.Vb(),o.nc(16),o.Vb(),o.Vb()),2&t){var n=o.wc(1),i=o.wc(13);o.Eb("for",e.inputId),o.Db(2),o.Hb("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),o.Db(1),o.pc("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),o.Eb("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),o.Db(2),o.pc("matRippleTrigger",n)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",o.sc(18,h))}},directives:[s.s,u.a],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{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.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)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.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}\n"],encapsulation:2,changeDetection:0}),e}(Object(s.C)(Object(s.x)(Object(s.y)(Object(s.z)(v))))),w=function(){function t(){}return t.\u0275mod=o.Ob({type:t}),t.\u0275inj=o.Nb({factory:function(e){return new(e||t)}}),t}(),O=function(){function t(){}return t.\u0275mod=o.Ob({type:t}),t.\u0275inj=o.Nb({factory:function(e){return new(e||t)},imports:[[s.t,s.i,u.c,w],s.i,w]}),t}()},zPjY:function(t,e,n){"use strict";n.d(e,"a",(function(){return P})),n.d(e,"b",(function(){return U})),n.d(e,"c",(function(){return W})),n.d(e,"d",(function(){return M}));var i=n("mrSG"),r=n("m47I"),o=n("349r"),a=n("ScIB"),s=n("CcnG"),c=n("K9Ia"),u=n("pugT"),l=n("p0ib"),p=n("F/XL"),h=n("KQya"),d=n("p0Sj"),f=n("15JJ"),m=n("t9fZ"),b=n("VnD/"),g=n("ny24"),y=n("vubp"),v=n("ihYY"),_=n("UM4T"),w=n("Ip0R"),O=n("eO+G"),C=n("MQZC"),x=n("BAGj"),E=n("tzrX"),S=n("HHjO"),A=["mat-menu-item",""],k=["*"];function D(t,e){if(1&t){var n=s.Xb();s.Wb(0,"div",0),s.ec("keydown",(function(t){return s.yc(n),s.ic()._handleKeydown(t)}))("click",(function(){return s.yc(n),s.ic().closed.emit("click")}))("@transformMenu.start",(function(t){return s.yc(n),s.ic()._onAnimationStart(t)}))("@transformMenu.done",(function(t){return s.yc(n),s.ic()._onAnimationDone(t)})),s.Wb(1,"div",1),s.nc(2),s.Vb(),s.Vb()}if(2&t){var i=s.ic();s.pc("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),s.Eb("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var j={transformMenu:Object(v.n)("transformMenu",[Object(v.k)("void",Object(v.l)({opacity:0,transform:"scale(0.8)"})),Object(v.m)("void => enter",Object(v.g)([Object(v.i)(".mat-menu-content, .mat-mdc-menu-content",Object(v.e)("100ms linear",Object(v.l)({opacity:1}))),Object(v.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(v.l)({transform:"scale(1)"}))])),Object(v.m)("* => void",Object(v.e)("100ms 25ms linear",Object(v.l)({opacity:0})))]),fadeInItems:Object(v.n)("fadeInItems",[Object(v.k)("showing",Object(v.l)({opacity:1})),Object(v.m)("void => *",[Object(v.l)({opacity:0}),Object(v.e)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},I=function(){function t(t,e,n,i,r,o,a){this._template=t,this._componentFactoryResolver=e,this._appRef=n,this._injector=i,this._viewContainerRef=r,this._document=o,this._changeDetectorRef=a,this._attached=new c.a}return t.prototype.attach=function(t){void 0===t&&(t={}),this._portal||(this._portal=new _.i(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new _.e(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()},t.prototype.detach=function(){this._portal.isAttached&&this._portal.detach()},t.prototype.ngOnDestroy=function(){this._outlet&&this._outlet.dispose()},t.\u0275fac=function(e){return new(e||t)(s.Qb(s.M),s.Qb(s.j),s.Qb(s.g),s.Qb(s.s),s.Qb(s.P),s.Qb(w.d),s.Qb(s.h))},t.\u0275dir=s.Lb({type:t,selectors:[["ng-template","matMenuContent",""]]}),t}(),T=new s.r("MAT_MENU_PANEL"),R=function(){return function(){}}(),P=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._elementRef=e,o._focusMonitor=i,o._parentMenu=r,o.role="menuitem",o._hovered=new c.a,o._focused=new c.a,o._highlighted=!1,o._triggersSubmenu=!1,i&&i.monitor(o._elementRef,!1),r&&r.addItem&&r.addItem(o),o._document=n,o}return Object(i.c)(e,t),e.prototype.focus=function(t,e){void 0===t&&(t="program"),this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)},e.prototype.ngOnDestroy=function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()},e.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._checkDisabled=function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())},e.prototype._handleMouseEnter=function(){this._hovered.next(this)},e.prototype.getLabel=function(){var t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3,n="";if(t.childNodes)for(var i=t.childNodes.length,r=0;r')}(),this._xPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yPosition",{get:function(){return this._yPosition},set:function(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlapTrigger",{get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=Object(o.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=Object(o.c)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelClass",{set:function(t){var e=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach((function(t){e._classList[t]=!1})),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach((function(t){e._classList[t]=!0})),this._elementRef.nativeElement.className="")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classList",{get:function(){return this.panelClass},set:function(t){this.panelClass=t},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.setPositionClasses()},t.prototype.ngAfterContentInit=function(){var t=this;this._updateDirectDescendants(),this._keyManager=new r.g(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe((function(){return t.closed.emit("tab")})),this._directDescendantItems.changes.pipe(Object(d.a)(this._directDescendantItems),Object(f.a)((function(t){return l.a.apply(void 0,Object(i.f)(t.map((function(t){return t._focused}))))}))).subscribe((function(e){return t._keyManager.updateActiveItem(e)}))},t.prototype.ngOnDestroy=function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()},t.prototype._hovered=function(){return this._directDescendantItems.changes.pipe(Object(d.a)(this._directDescendantItems),Object(f.a)((function(t){return l.a.apply(void 0,Object(i.f)(t.map((function(t){return t._hovered}))))})))},t.prototype.addItem=function(t){},t.prototype.removeItem=function(t){},t.prototype._handleKeydown=function(t){var e=t.keyCode,n=this._keyManager;switch(e){case a.e:Object(a.q)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case a.g:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case a.k:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;case a.f:case a.c:Object(a.q)(t)||(e===a.f?n.setFirstItemActive():n.setLastItemActive(),t.preventDefault());break;default:e!==a.n&&e!==a.b||n.setFocusOrigin("keyboard"),n.onKeydown(t)}},t.prototype.focusFirstItem=function(t){var e=this;void 0===t&&(t="program"),this.lazyContent?this._ngZone.onStable.asObservable().pipe(Object(m.a)(1)).subscribe((function(){return e._focusFirstItem(t)})):this._focusFirstItem(t)},t.prototype._focusFirstItem=function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}},t.prototype.resetActiveItem=function(){this._keyManager.setActiveItem(-1)},t.prototype.setElevation=function(t){var e="mat-elevation-z"+Math.min(4+t,24),n=Object.keys(this._classList).find((function(t){return t.startsWith("mat-elevation-z")}));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)},t.prototype.setPositionClasses=function(t,e){void 0===t&&(t=this.xPosition),void 0===e&&(e=this.yPosition);var n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e},t.prototype._startAnimation=function(){this._panelAnimationState="enter"},t.prototype._resetAnimation=function(){this._panelAnimationState="void"},t.prototype._onAnimationDone=function(t){this._animationDone.next(t),this._isAnimating=!1},t.prototype._onAnimationStart=function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)},t.prototype._updateDirectDescendants=function(){var t=this;this._allItems.changes.pipe(Object(d.a)(this._allItems)).subscribe((function(e){t._directDescendantItems.reset(e.filter((function(e){return e._parentMenu===t}))),t._directDescendantItems.notifyOnChanges()}))},t.\u0275fac=function(e){return new(e||t)(s.Qb(s.l),s.Qb(s.A),s.Qb(L))},t.\u0275dir=s.Lb({type:t,contentQueries:function(t,e,n){var i;1&t&&(s.Jb(n,I,!0),s.Jb(n,P,!0),s.Jb(n,P,!1)),2&t&&(s.vc(i=s.fc())&&(e.lazyContent=i.first),s.vc(i=s.fc())&&(e._allItems=i),s.vc(i=s.fc())&&(e.items=i))},viewQuery:function(t,e){var n;1&t&&s.Mc(s.M,!0),2&t&&s.vc(n=s.fc())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t}()),M=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}return Object(i.c)(e,t),e.\u0275fac=function(t){return new(t||e)(s.Qb(s.l),s.Qb(s.A),s.Qb(L))},e.\u0275cmp=s.Kb({type:e,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[s.Cb([{provide:T,useExisting:N},{provide:N,useExisting:e}]),s.Ab],ngContentSelectors:k,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(s.oc(),s.Fc(0,D,3,6,"ng-template"))},directives:[w.l],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[j.transformMenu,j.fadeInItems]},changeDetection:0}),e}(N),V=new s.r("mat-menu-scroll-strategy"),B={provide:V,deps:[C.c],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},H=Object(x.f)({passive:!0}),W=function(){function t(t,e,n,i,r,o,a,c){var l=this;this._overlay=t,this._element=e,this._viewContainerRef=n,this._parentMenu=r,this._menuItemInstance=o,this._dir=a,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=u.a.EMPTY,this._hoverSubscription=u.a.EMPTY,this._menuCloseSubscription=u.a.EMPTY,this._handleTouchStart=function(){return l._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new s.o,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.o,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,H),o&&(o._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=i}return Object.defineProperty(t.prototype,"_deprecatedMatMenuTriggerFor",{get:function(){return this.menu},set:function(t){this.menu=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"menu",{get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe((function(t){e._destroyMenu(),"click"!==t&&"tab"!==t||!e._parentMenu||e._parentMenu.closed.emit(t)}))))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._checkMenu(),this._handleHover()},t.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,H),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()},Object.defineProperty(t.prototype,"menuOpen",{get:function(){return this._menuOpen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},enumerable:!0,configurable:!0}),t.prototype.triggersSubmenu=function(){return!(!this._menuItemInstance||!this._parentMenu)},t.prototype.toggleMenu=function(){return this._menuOpen?this.closeMenu():this.openMenu()},t.prototype.openMenu=function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),n=e.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe((function(){return t.closeMenu()})),this._initMenu(),this.menu instanceof N&&this.menu._startAnimation()}},t.prototype.closeMenu=function(){this.menu.close.emit()},t.prototype.focus=function(t,e){void 0===t&&(t="program"),this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)},t.prototype._destroyMenu=function(){var t=this;if(this._overlayRef&&this.menuOpen){var e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),e instanceof N?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Object(b.a)((function(t){return"void"===t.toState})),Object(m.a)(1),Object(g.a)(e.lazyContent._attached)).subscribe({next:function(){return e.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}},t.prototype._initMenu=function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")},t.prototype._setMenuElevation=function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}},t.prototype._restoreFocus=function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null},t.prototype._setIsMenuOpen=function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)},t.prototype._checkMenu=function(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()},t.prototype._createOverlay=function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef},t.prototype._getOverlayConfig=function(){return new C.d({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})},t.prototype._subscribeToPositions=function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe((function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")}))},t.prototype._setPosition=function(t){var e=Object(i.e)("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=e[0],r=e[1],o=Object(i.e)("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=o[0],s=o[1],c=Object(i.e)([a,s],2),u=c[0],l=c[1],p=Object(i.e)([n,r],2),h=p[0],d=p[1],f=0;this.triggersSubmenu()?(d=n="before"===this.menu.xPosition?"start":"end",r=h="end"===n?"start":"end",f="bottom"===a?8:-8):this.menu.overlapTrigger||(u="top"===a?"bottom":"top",l="top"===s?"bottom":"top"),t.withPositions([{originX:n,originY:u,overlayX:h,overlayY:a,offsetY:f},{originX:r,originY:u,overlayX:d,overlayY:a,offsetY:f},{originX:n,originY:l,overlayX:h,overlayY:s,offsetY:-f},{originX:r,originY:l,overlayX:d,overlayY:s,offsetY:-f}])},t.prototype._menuClosingActions=function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMenu?this._parentMenu.closed:Object(p.a)(),r=this._parentMenu?this._parentMenu._hovered().pipe(Object(b.a)((function(e){return e!==t._menuItemInstance})),Object(b.a)((function(){return t._menuOpen}))):Object(p.a)();return Object(l.a)(e,i,r,n)},t.prototype._handleMousedown=function(t){Object(r.l)(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())},t.prototype._handleKeydown=function(t){var e=t.keyCode;this.triggersSubmenu()&&(e===a.k&&"ltr"===this.dir||e===a.g&&"rtl"===this.dir)&&this.openMenu()},t.prototype._handleClick=function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()},t.prototype._handleHover=function(){var t=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Object(b.a)((function(e){return e===t._menuItemInstance&&!e.disabled})),Object(y.a)(0,h.a)).subscribe((function(){t._openedBy="mouse",t.menu instanceof N&&t.menu._isAnimating?t.menu._animationDone.pipe(Object(m.a)(1),Object(y.a)(0,h.a),Object(g.a)(t._parentMenu._hovered())).subscribe((function(){return t.openMenu()})):t.openMenu()})))},t.prototype._getPortal=function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new _.i(this.menu.templateRef,this._viewContainerRef)),this._portal},t.\u0275fac=function(e){return new(e||t)(s.Qb(C.c),s.Qb(s.l),s.Qb(s.P),s.Qb(V),s.Qb(N,8),s.Qb(P,10),s.Qb(S.b,8),s.Qb(r.h))},t.\u0275dir=s.Lb({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.ec("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&s.Eb("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t}(),z=function(){function t(){}return t.\u0275mod=s.Ob({type:t}),t.\u0275inj=s.Nb({factory:function(e){return new(e||t)},providers:[B],imports:[O.i]}),t}(),U=function(){function t(){}return t.\u0275mod=s.Ob({type:t}),t.\u0275inj=s.Nb({factory:function(e){return new(e||t)},providers:[B],imports:[[w.c,O.i,O.t,C.f,z],E.b,O.i,z]}),t}()},zUnb:function(t,e,n){"use strict";n.r(e),n("yLV6");var i=n("CcnG"),r=n("AytR"),o=n("ZYjt"),a=n("wFw1"),s=n("t/Na"),c=n("yGQT"),u=n("jYNz"),l=n("A5yv"),p=n("4lrr"),h=n("K9Ia"),d=n("p0ib"),f=n("bne5"),m=n("0/uQ"),b=n("6blF"),g=n("T1DM"),y=n("/21U");function v(t,e){return void 0===t&&(t=0),void 0===e&&(e=g.a),(!Object(y.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=g.a),new b.a((function(n){return n.add(e.schedule(_,t,{subscriber:n,counter:0,period:t})),n}))}function _(t){var e=t.subscriber,n=t.counter,i=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var w=n("gI3B"),O=n("F/XL"),C=n("mrSG"),x=n("FFOo"),E=n("nkY7"),S=function(){function t(t,e,n,i){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new k(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),A=function(){return function(){this.buffer=[]}}(),k=function(t){function e(e,n,i,r,o){var a=t.call(this,e)||this;a.bufferTimeSpan=n,a.bufferCreationInterval=i,a.maxBufferSize=r,a.scheduler=o,a.contexts=[];var s=a.openContext();if(a.timespanOnly=null==i||i<0,a.timespanOnly)a.add(s.closeAction=o.schedule(D,n,{subscriber:a,context:s,bufferTimeSpan:n}));else{var c={bufferTimeSpan:n,bufferCreationInterval:i,subscriber:a,scheduler:o};a.add(s.closeAction=o.schedule(I,n,{subscriber:a,context:s})),a.add(o.schedule(j,i,c))}return a}return C.c(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,i=n.length,r=0;r0;){var i=e.shift();n.next(i.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan;this.add(t.closeAction=this.scheduler.schedule(D,n,{subscriber:this,context:t,bufferTimeSpan:n}))}},e.prototype.openContext=function(){var t=new A;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(x.a);function D(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function j(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,i=t.subscriber,r=t.scheduler,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(I,n,{subscriber:i,context:o})),this.schedule(t,e))}function I(t){t.subscriber.closeContext(t.context)}var T=n("VnD/"),R=n("xMyE"),P=n("15JJ"),L=n("ny24"),F=n("2WpN"),N=n("ad02"),M=n("67Y/"),V=n("t9fZ"),B=n("dC0D"),H=function(){return function(){}}(),W=function(){function t(t,e){this._ngZone=e,this.timerStart$=new h.a,this.idleDetected$=new h.a,this.timeout$=new h.a,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,t&&this.setConfig(t)}return t.prototype.startWatching=function(){var t=this;this.activityEvents$||(this.activityEvents$=Object(d.a)(Object(f.a)(window,"mousemove"),Object(f.a)(window,"resize"),Object(f.a)(document,"keydown"))),this.idle$=Object(m.a)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function(t){var e=arguments.length,n=g.a;Object(E.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var i=null;e>=2&&(i=arguments[1]);var r=Number.POSITIVE_INFINITY;return e>=3&&(r=arguments[2]),function(e){return e.lift(new S(t,i,r,n))}}(this.idleSensitivityMillisec),Object(T.a)((function(e){return!e.length&&!t.isIdleDetected&&!t.isInactivityTimer})),Object(R.a)((function(){t.isIdleDetected=!0,t.idleDetected$.next(!0)})),Object(P.a)((function(){return t._ngZone.runOutsideAngular((function(){return v(1e3).pipe(Object(L.a)(Object(d.a)(t.activityEvents$,Object(w.a)(t.idleMillisec).pipe(Object(R.a)((function(){t.isInactivityTimer=!0,t.timerStart$.next(!0)}))))),Object(F.a)((function(){t.isIdleDetected=!1,t.idleDetected$.next(!1)})))}))}))).subscribe(),this.setupTimer(this.timeout),this.setupPing(this.pingMillisec)},t.prototype.stopWatching=function(){this.stopTimer(),this.idleSubscription&&this.idleSubscription.unsubscribe()},t.prototype.stopTimer=function(){this.isInactivityTimer=!1,this.timerStart$.next(!1)},t.prototype.resetTimer=function(){this.stopTimer(),this.isTimeout=!1},t.prototype.onTimerStart=function(){var t=this;return this.timerStart$.pipe(Object(N.a)(),Object(P.a)((function(e){return e?t.timer$:Object(O.a)(null)})))},t.prototype.onIdleStatusChanged=function(){return this.idleDetected$.asObservable()},t.prototype.onTimeout=function(){var t=this;return this.timeout$.pipe(Object(T.a)((function(t){return!!t})),Object(R.a)((function(){return t.isTimeout=!0})),Object(M.a)((function(){return!0})))},t.prototype.getConfigValue=function(){return{idle:this.idleMillisec,idleSensitivity:this.idleSensitivityMillisec,timeout:this.timeout,ping:this.pingMillisec}},t.prototype.setConfigValues=function(t){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(t):console.error("Call stopWatching() before set config values")},t.prototype.setConfig=function(t){t.idle&&(this.idleMillisec=1e3*t.idle),t.ping&&(this.pingMillisec=1e3*t.ping),t.idleSensitivity&&(this.idleSensitivityMillisec=1e3*t.idleSensitivity),t.timeout&&(this.timeout=t.timeout)},t.prototype.setCustomActivityEvents=function(t){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=t:console.error("Call stopWatching() before set custom activity events")},t.prototype.setupTimer=function(t){var e=this;this._ngZone.runOutsideAngular((function(){e.timer$=v(1e3).pipe(Object(V.a)(t),Object(M.a)((function(){return 1})),Object(B.a)((function(t,e){return t+e})),Object(R.a)((function(n){n===t&&e.timeout$.next(!0)})))}))},t.prototype.setupPing=function(t){var e=this;this.ping$=v(t).pipe(Object(T.a)((function(){return!e.isTimeout})))},t.ngInjectableDef=Object(i.T)({factory:function(){return new t(Object(i.W)(H,8),Object(i.W)(i.A))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(i.ac(H,8),i.ac(i.A))},t.\u0275prov=i.Mb({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),z=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:H,useValue:e}]}},t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},imports:[[]]}),t}(),U=n("MQZC"),Q=n("ZYCi"),Y=n("wHSu"),G=n("/uX3"),q=n("21Lb"),K=n("Nv++"),X=n("qLAh"),Z=n("VkXI"),$=n("7nzP"),J=n("cpEJ"),tt=n("7o2P"),et=n("lF6s"),nt=n("LvnZ"),it=n("MCVq"),rt=n("gIcY"),ot=n("Ci9w"),at=n("dlst"),st=n("8KZq"),ct=n("O4ig"),ut=n("Ip0R"),lt=n("I21E"),pt=n("FZ+F"),ht=n("M4kG"),dt=n("eO+G"),ft=n("hUWP");function mt(t,e){if(1&t&&(i.Wb(0,"mat-option",38),i.Hc(1),i.Vb()),2&t){var n=e.$implicit;i.pc("value",n.id),i.Db(1),i.Jc(" ",n.id," ")}}function bt(t,e){1&t&&(i.Wb(0,"mat-error"),i.Hc(1,"Currency unit is required."),i.Vb())}function gt(t,e){if(1&t&&(i.Wb(0,"mat-option",38),i.Hc(1),i.Vb()),2&t){var n=e.$implicit;i.pc("value",n.index),i.Db(1),i.Kc(" ",n.lnNode," (",n.lnImplementation,") ")}}function yt(t,e){if(1&t){var n=i.Xb();i.Wb(0,"div",39),i.Wb(1,"h4",40),i.Hc(2,"Default Node"),i.Vb(),i.Wb(3,"mat-form-field"),i.Wb(4,"mat-select",41),i.ec("ngModelChange",(function(t){return i.yc(n),i.ic().appConfig.defaultNodeIndex=t})),i.Fc(5,gt,2,3,"mat-option",14),i.Vb(),i.Vb(),i.Vb()}if(2&t){var r=i.ic();i.Db(4),i.pc("ngModel",r.appConfig.defaultNodeIndex),i.Db(1),i.pc("ngForOf",r.appConfig.nodes)}}function vt(t,e){1&t&&i.Rb(0,"mat-divider",42),2&t&&i.pc("inset",!0)}function _t(t,e){if(1&t&&(i.Wb(0,"mat-radio-button",43),i.Hc(1),i.jc(2,"titlecase"),i.Vb()),2&t){var n=e.$implicit,r=i.ic();i.pc("value",n)("checked",r.selNode.settings.userPersona===n),i.Db(1),i.Jc(" ",i.kc(2,3,n)," ")}}var wt=function(t){return{"mr-4":t}};function Ot(t,e){if(1&t&&(i.Wb(0,"mat-radio-button",44),i.Hc(1),i.Vb()),2&t){var n=e.$implicit,r=i.ic();i.pc("value",n)("ngClass",i.tc(3,wt,r.screenSize===r.screenSizeEnum.XS||r.screenSize===r.screenSizeEnum.SM)),i.Db(1),i.Jc("",n.name," ")}}var Ct=function(t){return{skin:!0,"selected-color":t}};function xt(t,e){if(1&t){var n=i.Xb();i.Wb(0,"span",3),i.Wb(1,"div",45),i.ec("click",(function(){i.yc(n);var t=e.$implicit;return i.ic().changeThemeColor(t.id)})),i.jc(2,"lowercase"),i.Vb(),i.Hc(3),i.Vb()}if(2&t){var r=e.$implicit,o=i.ic();i.Db(1),i.Fb(i.kc(2,4,r.id)),i.pc("ngClass",i.tc(6,Ct,o.selectedThemeColor===r.id)),i.Db(2),i.Jc(" ",r.name," ")}}var Et=function(){function t(t,e,n){this.logger=t,this.commonService=e,this.store=n,this.faExclamationTriangle=Y.n,this.faTools=Y.I,this.faPaintBrush=Y.y,this.faInfoCircle=Y.s,this.information={},this.userPersonas=[$.u.OPERATOR,$.u.MERCHANT],this.currencyUnits=$.k,this.themeModes=$.l.modes,this.themeColors=$.l.themes,this.selectedThemeMode=$.l.modes[0],this.selectedThemeColor=$.l.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.previousDefaultNode=0,this.screenSize="",this.screenSizeEnum=$.o,this.unSubs=[new h.a,new h.a],this.screenSize=this.commonService.getScreenSize()}return t.prototype.ngOnInit=function(){var t=this;this.store.select("root").pipe(Object(L.a)(this.unSubs[0])).subscribe((function(e){t.appConfig=e.appConfig,t.selNode=e.selNode,t.selectedThemeMode=t.themeModes.find((function(e){return t.selNode.settings.themeMode===e.id})),t.selectedThemeColor=t.selNode.settings.themeColor,t.information=e.nodeData,t.smallerCurrencyUnit=t.information&&t.information.smaller_currency_unit?t.information.smaller_currency_unit:"Sats",t.currencyUnit=t.information&&t.information.currency_unit?t.information.currency_unit:"BTC",t.selNode.settings.fiatConversion||(t.selNode.settings.currencyUnit=null),t.previousSettings=JSON.parse(JSON.stringify(t.selNode.settings)),t.previousDefaultNode=t.appConfig.defaultNodeIndex,t.logger.info(e)}))},t.prototype.onCurrencyChange=function(t){this.selNode.settings.currencyUnits=Object(C.g)($.e,[t.value]),this.store.dispatch(new it.Xb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:t.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl})),this.store.dispatch(new nt.Bb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:t.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl})),this.store.dispatch(new et.qb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:t.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl}))},t.prototype.toggleSettings=function(t,e){this.selNode.settings[t]=!this.selNode.settings[t]},t.prototype.changeThemeColor=function(t){this.selectedThemeColor=t,this.selNode.settings.themeColor=t},t.prototype.chooseThemeMode=function(){this.selNode.settings.themeMode=this.selectedThemeMode.id},t.prototype.onUpdateSettings=function(){if(this.selNode.settings.fiatConversion&&!this.selNode.settings.currencyUnit)return!0;var t=this.previousDefaultNode!==this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:null;this.logger.info(this.selNode.settings),this.store.dispatch(new G.F("Updating Settings...")),this.store.dispatch(new G.S({settings:this.selNode.settings,defaultNodeIndex:t})),this.store.dispatch(new it.Xb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl})),this.store.dispatch(new nt.Bb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl})),this.store.dispatch(new et.qb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl}))},t.prototype.onResetSettings=function(){var t=this;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find((function(e){return e.id===t.previousSettings.themeMode})),this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch(new G.U({lnNode:this.selNode,isInitialSetup:!0}))},t.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(t){t.next(),t.complete()}))},t.\u0275fac=function(e){return new(e||t)(i.Qb(J.b),i.Qb(tt.a),i.Qb(c.h))},t.\u0275cmp=i.Kb({type:t,selectors:[["rtl-app-settings"]],decls:61,vars:18,consts:[["fxLayout","column","fxFlex","100",1,"overflow-x-hidden"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","fiatConversion",3,"ngModel","ngModelChange","change"],["autoFocus","","placeholder","Fiat Currency","tabindex","3","name","currencyUnit",3,"ngModel","disabled","required","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","space-between stretch",1,"settings-container","page-sub-title-container","mt-1"],[1,"mt-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",4,"ngIf"],["class","mb-2",3,"inset",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-2","mb-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","20","fxFlex.gt-md","15","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex.gt-xs","50","fxFlex.gt-md","40","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","row",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],[1,"my-0"],["tabindex","4","name","defaultNode",3,"ngModel","ngModelChange"],[1,"mb-2",3,"inset"],[1,"mr-4",3,"value","checked"],["tabindex","5",3,"value","ngClass"],["tabindex","9",3,"ngClass","click"]],template:function(t,e){1&t&&(i.Wb(0,"div",0),i.Wb(1,"form",1,2),i.Wb(3,"div",3),i.Rb(4,"fa-icon",4),i.Wb(5,"span",5),i.Hc(6,"Balance Display"),i.Vb(),i.Vb(),i.Wb(7,"div",6),i.Wb(8,"div",7),i.Rb(9,"fa-icon",8),i.Wb(10,"span"),i.Hc(11,"Fiat conversion calls "),i.Wb(12,"strong"),i.Wb(13,"a",9),i.Hc(14,"Blockchain.com"),i.Vb(),i.Vb(),i.Hc(15," API to get conversion rates."),i.Vb(),i.Vb(),i.Wb(16,"div",10),i.Wb(17,"mat-slide-toggle",11),i.ec("ngModelChange",(function(t){return e.selNode.settings.fiatConversion=t}))("change",(function(t){return e.selNode.settings.currencyUnit=t.checked?e.selNode.settings.currencyUnit:null})),i.Hc(18,"Include Fiat Conversion"),i.Vb(),i.Wb(19,"mat-form-field"),i.Wb(20,"mat-select",12,13),i.ec("ngModelChange",(function(t){return e.selNode.settings.currencyUnit=t}))("selectionChange",(function(t){return e.onCurrencyChange(t)})),i.Fc(22,mt,2,2,"mat-option",14),i.Vb(),i.Fc(23,bt,2,0,"mat-error",15),i.Vb(),i.Vb(),i.Vb(),i.Wb(24,"div",16),i.Wb(25,"div",17),i.Wb(26,"div",18),i.Rb(27,"fa-icon",4),i.Wb(28,"span",5),i.Hc(29,"Customization"),i.Vb(),i.Vb(),i.Wb(30,"div",6),i.Fc(31,yt,6,2,"div",19),i.Fc(32,vt,1,1,"mat-divider",20),i.Wb(33,"div",21),i.Wb(34,"div",22),i.Rb(35,"fa-icon",8),i.Wb(36,"span"),i.Hc(37,"Application layout will be tailored based on the role selected to better serve its needs."),i.Vb(),i.Vb(),i.Wb(38,"div",23),i.Wb(39,"h4"),i.Hc(40,"Application Layout"),i.Vb(),i.Wb(41,"mat-radio-group",24),i.ec("ngModelChange",(function(t){return e.selNode.settings.userPersona=t})),i.Fc(42,_t,3,5,"mat-radio-button",25),i.Vb(),i.Vb(),i.Vb(),i.Rb(43,"mat-divider",26),i.Wb(44,"div",27),i.Wb(45,"div",28),i.Wb(46,"h4"),i.Hc(47,"Mode"),i.Vb(),i.Wb(48,"mat-radio-group",29),i.ec("ngModelChange",(function(t){return e.selectedThemeMode=t}))("change",(function(){return e.chooseThemeMode()})),i.Fc(49,Ot,2,5,"mat-radio-button",30),i.Vb(),i.Vb(),i.Rb(50,"div",31),i.Wb(51,"div",32),i.Wb(52,"h4"),i.Hc(53,"Themes"),i.Vb(),i.Wb(54,"div",33),i.Fc(55,xt,4,8,"span",34),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Wb(56,"div",35),i.Wb(57,"button",36),i.ec("click",(function(){return e.onResetSettings()})),i.Hc(58,"Reset"),i.Vb(),i.Wb(59,"button",37),i.ec("click",(function(){return e.onUpdateSettings()})),i.Hc(60,"Update"),i.Vb(),i.Vb(),i.Vb()),2&t&&(i.Db(4),i.pc("icon",e.faTools),i.Db(5),i.pc("icon",e.faExclamationTriangle),i.Db(8),i.pc("ngModel",e.selNode.settings.fiatConversion),i.Db(3),i.pc("ngModel",e.selNode.settings.currencyUnit)("disabled",!e.selNode.settings.fiatConversion)("required",e.selNode.settings.fiatConversion),i.Db(2),i.pc("ngForOf",e.currencyUnits),i.Db(1),i.pc("ngIf",e.selNode.settings.fiatConversion&&!e.selNode.settings.currencyUnit),i.Db(4),i.pc("icon",e.faPaintBrush),i.Db(4),i.pc("ngIf",e.appConfig.nodes.length&&e.appConfig.nodes.length>1),i.Db(1),i.pc("ngIf",e.appConfig.nodes.length&&e.appConfig.nodes.length>1),i.Db(3),i.pc("icon",e.faInfoCircle),i.Db(6),i.pc("ngModel",e.selNode.settings.userPersona),i.Db(1),i.pc("ngForOf",e.userPersonas),i.Db(1),i.pc("inset",!0),i.Db(5),i.pc("ngModel",e.selectedThemeMode),i.Db(1),i.pc("ngForOf",e.themeModes),i.Db(6),i.pc("ngForOf",e.themeColors))},directives:[q.c,q.a,rt.t,rt.m,rt.n,q.b,K.a,ot.a,rt.l,rt.o,at.c,st.a,ct.a,rt.r,ut.m,ut.n,lt.b,pt.a,ht.a,dt.n,at.b,lt.a,ut.l,ft.a],pipes:[ut.w,ut.k],styles:[""]}),t}(),St=n("Cyaj"),At=n("unrj"),kt=n("X9mX"),Dt=n("KELG"),jt=n("qPmt"),It=n("UTvR"),Tt=n("bwdU"),Rt=n("dEYt"),Pt=["twoFAForm"],Lt=["stepper"];function Ft(t,e){if(1&t&&i.Hc(0),2&t){var n=i.ic();i.Ic(n.passwordFormLabel)}}function Nt(t,e){1&t&&(i.Wb(0,"mat-error"),i.Hc(1,"Password is required."),i.Vb())}function Mt(t,e){if(1&t&&i.Hc(0),2&t){var n=i.ic(2);i.Ic(n.secretFormLabel)}}function Vt(t,e){1&t&&(i.Wb(0,"mat-error"),i.Hc(1,"Secret Code is required."),i.Vb())}function Bt(t,e){if(1&t){var n=i.Xb();i.Wb(0,"mat-step",10),i.Wb(1,"form",22),i.Fc(2,Mt,1,1,"ng-template",23),i.Wb(3,"div",24),i.Rb(4,"qrcode",25),i.Vb(),i.Wb(5,"div",26),i.Rb(6,"fa-icon",27),i.Wb(7,"span"),i.Hc(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),i.Vb(),i.Vb(),i.Wb(9,"div",28),i.Wb(10,"mat-form-field",13),i.Rb(11,"input",29),i.Wb(12,"fa-icon",30),i.ec("copied",(function(t){return i.yc(n),i.ic().onCopySecret(t)})),i.Vb(),i.Fc(13,Vt,2,0,"mat-error",15),i.Vb(),i.Vb(),i.Wb(14,"div",31),i.Wb(15,"button",32),i.Hc(16,"Next"),i.Vb(),i.Vb(),i.Vb(),i.Vb()}if(2&t){var r=i.ic();i.pc("stepControl",r.secretFormGroup)("editable",r.flgEditable),i.Db(1),i.pc("formGroup",r.secretFormGroup),i.Db(3),i.pc("qrdata",r.otpauth)("margin",1)("width",180)("errorCorrectionLevel","L"),i.Db(2),i.pc("icon",r.faInfoCircle),i.Db(6),i.pc("icon",r.faCopy)("payload",r.secretFormGroup.controls.secret.value),i.Db(1),i.pc("ngIf",null==r.secretFormGroup.controls.secret.errors?null:r.secretFormGroup.controls.secret.errors.required)}}function Ht(t,e){if(1&t&&i.Hc(0),2&t){var n=i.ic(2);i.Ic(n.tokenFormLabel)}}function Wt(t,e){1&t&&(i.Wb(0,"mat-error"),i.Hc(1,"Token is required."),i.Vb())}function zt(t,e){1&t&&(i.Wb(0,"mat-error"),i.Hc(1,"Token is invalid."),i.Vb())}function Ut(t,e){if(1&t){var n=i.Xb();i.Wb(0,"div",7),i.Wb(1,"div",28),i.Wb(2,"mat-form-field",13),i.Rb(3,"input",36),i.Fc(4,Wt,2,0,"mat-error",15),i.Fc(5,zt,2,0,"mat-error",15),i.Vb(),i.Vb(),i.Wb(6,"div",31),i.Wb(7,"button",37),i.ec("click",(function(){return i.yc(n),i.ic(2).onVerifyToken()})),i.Hc(8),i.Vb(),i.Vb(),i.Vb()}if(2&t){var r=i.ic(2);i.Db(4),i.pc("ngIf",null==r.tokenFormGroup.controls.token.errors?null:r.tokenFormGroup.controls.token.errors.required),i.Db(1),i.pc("ngIf",null==r.tokenFormGroup.controls.token.errors?null:r.tokenFormGroup.controls.token.errors.notValid),i.Db(3),i.Ic(r.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function Qt(t,e){1&t&&(i.Wb(0,"div"),i.Wb(1,"strong"),i.Hc(2,"Success! You are all set."),i.Vb(),i.Vb())}function Yt(t,e){if(1&t&&(i.Wb(0,"mat-step",33),i.Wb(1,"form",34),i.Fc(2,Ht,1,1,"ng-template",12),i.Fc(3,Ut,9,3,"div",35),i.Fc(4,Qt,3,0,"div",15),i.Vb(),i.Vb()),2&t){var n=i.ic();i.pc("stepControl",n.tokenFormGroup),i.Db(1),i.pc("formGroup",n.tokenFormGroup),i.Db(2),i.pc("ngIf",!n.flgValidated||!n.isTokenValid),i.Db(1),i.pc("ngIf",n.flgValidated&&n.isTokenValid)}}function Gt(t,e){if(1&t&&i.Hc(0),2&t){var n=i.ic(2);i.Ic(n.disableFormLabel)}}function qt(t,e){if(1&t){var n=i.Xb();i.Wb(0,"div",7),i.Wb(1,"div",38),i.Rb(2,"fa-icon",27),i.Wb(3,"span"),i.Hc(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),i.Vb(),i.Vb(),i.Wb(5,"div",31),i.Wb(6,"button",37),i.ec("click",(function(){return i.yc(n),i.ic(2).onVerifyToken()})),i.Hc(7,"Disable"),i.Vb(),i.Vb(),i.Vb()}if(2&t){var r=i.ic(2);i.Db(2),i.pc("icon",r.faExclamationTriangle)}}function Kt(t,e){1&t&&(i.Wb(0,"div"),i.Wb(1,"strong"),i.Hc(2,"Two factor authentication removed from RTL."),i.Vb(),i.Vb())}function Xt(t,e){if(1&t&&(i.Wb(0,"mat-step",33),i.Wb(1,"form",34),i.Fc(2,Gt,1,1,"ng-template",12),i.Fc(3,qt,8,1,"div",35),i.Fc(4,Kt,3,0,"div",15),i.Vb(),i.Vb()),2&t){var n=i.ic();i.pc("stepControl",n.disableFormGroup),i.Db(1),i.pc("formGroup",n.disableFormGroup),i.Db(2),i.pc("ngIf",!n.flgValidated||!n.isTokenValid),i.Db(1),i.pc("ngIf",n.flgValidated&&n.isTokenValid)}}var Zt=function(){function t(t,e,n,i,r,o){this.dialogRef=t,this.data=e,this.store=n,this.formBuilder=i,this.rtlEffects=r,this.snackBar=o,this.faExclamationTriangle=Y.n,this.faCopy=Y.i,this.faInfoCircle=Y.s,this.flgValidated=!1,this.isTokenValid=!0,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.unSubs=[new h.a,new h.a]}return t.prototype.ngOnInit=function(){this.appConfig=this.data.appConfig,this.showDisableStepper=!!this.appConfig.enable2FA,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[rt.s.required]],password:["",[rt.s.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig.enable2FA?"":this.generateSecret(),disabled:!0},rt.s.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",rt.s.required]}),this.disableFormGroup=this.formBuilder.group({})},t.prototype.generateSecret=function(){var t=At.authenticator.generateSecret();return this.otpauth=At.authenticator.keyuri("","Ride The Lightning (RTL)",t),t},t.prototype.onAuthenticate=function(){var t=this;if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch(new G.t(St(this.passwordFormGroup.controls.password.value))),this.rtlEffects.isAuthorizedRes.pipe(Object(V.a)(1)).subscribe((function(e){"ERROR"!==e?(t.passwordFormGroup.controls.hiddenPassword.setValue(t.passwordFormGroup.controls.password.value),t.stepper.next()):(t.dialogRef.close(),t.snackBar.open("Unauthorized User. Logging out from RTL."))}))},t.prototype.onCopySecret=function(t){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")},t.prototype.onVerifyToken=function(){if(this.appConfig.enable2FA)this.store.dispatch(new G.F("Updating Settings...")),this.store.dispatch(new G.X({secret2fa:""})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=At.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.store.dispatch(new G.F("Updating Settings...")),this.store.dispatch(new G.X({secret2fa:this.secretFormGroup.controls.secret.value})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig.enable2FA=!this.appConfig.enable2FA},t.prototype.stepSelectionChanged=function(t){switch(t.selectedIndex){case 0:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully";break;default:this.passwordFormLabel="Authenticate with your RTL password"}t.selectedIndex=0),i.Db(2),i.pc("ngIf",n.indexOf("[")<0),i.Db(1),i.pc("ngIf",n.indexOf("[")<0)}}function le(t,e){if(1&t&&(i.Wb(0,"div",8),i.Wb(1,"mat-list"),i.Fc(2,ue,6,3,"mat-list-item",9),i.Vb(),i.Vb()),2&t){var n=i.ic();i.Db(2),i.pc("ngForOf",n.configData)}}var pe=function(){function t(t,e){this.store=t,this.rtlEffects=e,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=Y.h,this.unSubs=[new h.a,new h.a]}return t.prototype.ngOnInit=function(){var t=this;this.store.dispatch(new G.F("Opening Config File...")),this.store.dispatch(new G.o(this.selectedNodeType)),this.rtlEffects.showLnConfig.pipe(Object(L.a)(this.unSubs[1])).subscribe((function(e){var n=e.data;t.fileFormat=e.format,t.configData=""!==n&&n&&"INI"===t.fileFormat?n.split("\n"):""!==n&&n&&"JSON"===t.fileFormat?n:""}))},t.\u0275fac=function(e){return new(e||t)(i.Qb(c.h),i.Qb(kt.a))},t.\u0275cmp=i.Kb({type:t,selectors:[["rtl-server-config"]],inputs:{selectedNodeType:"selectedNodeType"},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(t,e){1&t&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Fc(2,oe,5,4,"div",2),i.Fc(3,le,3,1,"div",3),i.Vb(),i.Vb()),2&t&&(i.Db(2),i.pc("ngIf",""!==e.configData&&"JSON"===e.fileFormat),i.Db(1),i.pc("ngIf",""!==e.configData&&"INI"===e.fileFormat))},directives:[q.c,q.a,q.b,ut.n,pt.a,ie.a,ut.m,ie.b,X.e],pipes:[ut.g],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),t}();function he(t,e){1&t&&(i.Wb(0,"mat-tab",10),i.Rb(1,"rtl-auth-settings"),i.Vb())}function de(t,e){1&t&&i.Rb(0,"rtl-server-config",13),2&t&&i.pc("selectedNodeType","ln")}function fe(t,e){if(1&t&&(i.Wb(0,"mat-tab",11),i.Fc(1,de,1,1,"ng-template",12),i.Vb()),2&t){var n=i.ic();i.pc("label",n.lnImplementationStr)}}function me(t,e){1&t&&i.Rb(0,"rtl-server-config",13),2&t&&i.pc("selectedNodeType","bitcoind")}function be(t,e){1&t&&(i.Wb(0,"mat-tab",14),i.Fc(1,me,1,1,"ng-template",12),i.Vb())}var ge=function(){function t(t,e){this.store=t,this.activatedRoute=e,this.faTools=Y.I,this.showLnConfig=!1,this.showBitcoind=!1,this.lnImplementationStr="",this.loadTab="appSettings",this.initializeNodeData=!1,this.unSubs=[new h.a,new h.a]}return t.prototype.ngOnInit=function(){var t=this;this.activatedRoute.paramMap.pipe(Object(L.a)(this.unSubs[0])).subscribe((function(e){t.loadTab=window.history.state.loadTab?window.history.state.loadTab:"appSettings",t.initializeNodeData=!!window.history.state.initializeNodeData&&window.history.state.initializeNodeData})),this.store.select("root").pipe(Object(L.a)(this.unSubs[1])).subscribe((function(e){switch(t.showLnConfig=!1,t.showBitcoind=!1,t.appConfig=e.appConfig,t.selNode=e.selNode,t.selNode.lnImplementation.toUpperCase()){case"CLT":t.lnImplementationStr="C-Lightning Config";break;case"ECL":t.lnImplementationStr="Eclair Config";break;default:t.lnImplementationStr="LND Config"}t.selNode.authentication&&t.selNode.authentication.configPath&&""!==t.selNode.authentication.configPath.trim()&&(t.showLnConfig=!0),t.selNode.settings&&t.selNode.settings.bitcoindConfigPath&&""!==t.selNode.settings.bitcoindConfigPath.trim()&&(t.showBitcoind=!0)}))},t.prototype.ngOnDestroy=function(){this.initializeNodeData&&this.store.dispatch(new G.U({lnNode:this.selNode,isInitialSetup:!0})),this.unSubs.forEach((function(t){t.next(),t.complete()}))},t.\u0275fac=function(e){return new(e||t)(i.Qb(c.h),i.Qb(Q.a))},t.\u0275cmp=i.Kb({type:t,selectors:[["rtl-settings"]],decls:13,vars:5,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],[3,"selectedIndex"],["id","appSettings","label","Layout"],["label","Authentication",4,"ngIf"],[3,"label",4,"ngIf"],["label","BitcoinD Config",4,"ngIf"],["label","Authentication"],[3,"label"],["matTabContent",""],[3,"selectedNodeType"],["label","BitcoinD Config"]],template:function(t,e){1&t&&(i.Wb(0,"div",0),i.Rb(1,"fa-icon",1),i.Wb(2,"span",2),i.Hc(3,"Settings"),i.Vb(),i.Vb(),i.Wb(4,"div",3),i.Wb(5,"mat-card"),i.Wb(6,"mat-card-content",4),i.Wb(7,"mat-tab-group",5),i.Wb(8,"mat-tab",6),i.Rb(9,"rtl-app-settings"),i.Vb(),i.Fc(10,he,2,0,"mat-tab",7),i.Fc(11,fe,2,1,"mat-tab",8),i.Fc(12,be,2,0,"mat-tab",9),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&t&&(i.Db(1),i.pc("icon",e.faTools),i.Db(6),i.qc("selectedIndex","authSettings"===e.loadTab?1:0),i.Db(3),i.pc("ngIf",!e.appConfig.sso.rtlSSO),i.Db(1),i.pc("ngIf",e.showLnConfig),i.Db(1),i.pc("ngIf",e.showBitcoind))},directives:[q.c,q.b,K.a,X.a,X.b,Z.c,Z.a,Et,ut.n,ne,Z.b,pe],styles:[""]}),t}(),ye=n("0dfH"),ve=function(){return function(t){this.help=t}}(),_e=n("mZtN"),we=n("FqGj");function Oe(t,e){if(1&t&&(i.Wb(0,"mat-expansion-panel",8),i.Wb(1,"mat-expansion-panel-header"),i.Wb(2,"mat-panel-title"),i.Hc(3),i.Vb(),i.Vb(),i.Wb(4,"mat-panel-description",9),i.Rb(5,"span",10),i.Wb(6,"a",11),i.Hc(7),i.Vb(),i.Vb(),i.Vb()),2&t){var n=i.ic().$implicit,r=i.ic();i.Db(3),i.Ic(n.help.question),i.Db(2),i.pc("innerHTML",n.help.answer,i.zc),i.Db(1),i.pc("routerLink",r.flgLoggedIn?r.LNPLink+n.help.link:"/login"),i.Db(1),i.Ic(r.flgLoggedIn?n.help.linkCaption:"Login to go to the page")}}function Ce(t,e){if(1&t&&(i.Wb(0,"div",6),i.Fc(1,Oe,8,4,"mat-expansion-panel",7),i.Vb()),2&t){var n=e.$implicit,r=i.ic();i.Db(1),i.pc("ngIf","ALL"===n.help.lnImplementation||n.help.lnImplementation===r.selNode.lnImplementation)}}var xe=function(){function t(t,e){this.store=t,this.sessionService=e,this.helpTopics=[],this.faQuestion=Y.B,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new h.a,new h.a,new h.a,new h.a],this.helpTopics.push(new ve({question:"Getting started",answer:'Funding your node is the first step to get started.\nGo to the "On-chain" page of the app:\n1. Generate a new address on the "Recieve" tab.\n2. Send funds to the address.\n3. Wait for the balance to be confirmed on-chain before proceeding further.\n3. Connecting with network peers and opening channels is next.\n',link:"onchain",linkCaption:"On-Chain page",lnImplementation:"ALL"})),this.helpTopics.push(new ve({question:"Connect with peers",answer:'Connect with network peers to open channels with them.\nGo to "Peer/Channels" page under the "Lightning" menu :\n1. Get the peer pubkey and host address in the pubkey@ip:port format.\n2. On the "Peers" enter the peer address and connect.\n3. Once the peer is connected, you can open channel with the peer.\n4. A variety of actions can be performed on the connected peers page for each peer:\n a. View Info - View the peer details.\n b. Open Channel - Open channel with the peer.\n c. Disconnect - Disconnect from the peer.\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new ve({question:"Opening Channels",answer:'Open channels with a connected network peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, select the alias of the connected peer from the drop-down\n2. Specify the amount to commit to the channel and click on "Open Channel".\n3. There are a variety of options available while opening a channel. \n a. Private Channel - When this option is selected, a private channel is opened with the peer. \n b. Priority (advanced option) - Specify either Target confirmation Block or Fee in Sat/Byte. \n c. Spend Unconfirmd Output (advanced option) - Allow channels to be opened with unconfirmed UTXOs.\n4. Track the pending open channels under the "Pending" tab . \n5. Wait for the channel to be confirmed. Only a confimed channel can be used for payments or routing. \n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new ve({question:"Channel Management",answer:'Channel maintenance and balance score.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. A variety of actions can be perfomed on the open channels under the "Open" tab, with the "Actions" button:\n a. View Info - View the channel details.\n b. View Remote Fee - View the fee policy on the channel of the remote peer.\n c. Update Fee Policy - Modify the fee policy on the channel.\n d. Close Channel - Close the channel.\n2. Balance Score is a "balancedness" metric score for the channel. \n a. It helps measure how balanced the remote and local balances are, on a channel.\n b. A perfectly balanced channel has a score of one, where as a completely lopsided one has a score of zero.\n c. The formula for calculating the score is "1 - abs((local bal - remote bal)/total bal)".\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new ve({question:"Lightning Transactions - Payments",answer:'Sending Payments from your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayments tab is for making payments via your node\n 1. Input a non-expired lightning invoice (Bolt11 format) in the "Payment request" field and click on "Send Payment" to send.\n 2. Advanced option # 1 (LND only) - Specify a limit on the routing fee which you are willing to pay, for the payment.\n 3. Advanced option # 2 (LND only) - Specify the outgoing channel which you want the payment to go through.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new ve({question:"Lightning Transactions - Invoices",answer:'Receiving Payments on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nInvoices tab is for receiving payments on your node.\n 1. Memo - Description you want to provide on the invoice.\n 2. Expiry - The time period, after which the invoice will be invalid.\n 3. Private Routing Hints - Generate an invoice with routing hints for private channels.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new ve({question:"Lightning Transactions - Query Route",answer:'Querying Payment Routes.\nGo to the "Transactions" page under the "Lightning" menu :\nQuery Routes tab is for querying a potential path to a node and a routing fee estimate for a payment amount.\n 1. Destination Pubkey - Pubkey of the node, you want to send the payment to.\n 2. Amount - Amount in Sats, which you want to send to the node.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new ve({question:"Channel Backups",answer:'Channel Backups are important to ensure that you have means to recover funds in case of node failures.\nBackup folder location can be customized in the RTL config file with the channelBackupPath field.\nRTL automatically creates all channel backup on server startup, as well as everytime a channel is opened or closed\nYou can verify the all channel backup file by clicking on "Verify All" Button on the backup page.\nYou can also backup each channel individually and verify them.\n** Keep taking backups of your channels regularly and store them in redundant locations **.\n',link:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new ve({question:"Channel Restore",answer:'Channel Restore is used to recover funds from the channel backup files in case of node failures.\nFollow the below steps to perform fund restoration.\n\nPrerequisite:\n1. The node has been restored with the LND recovery seed.\n2. RTL generated channel backup file/s is available (all channel backup file is channel-all.bak).\n\nRecovery:\n1. Create a restore folder in your folder backup location, as specified in the RTL config file.\n2. Place the channel backup file in the restore folder.\n3. Go to the "Restore" tab under the "Backup" page of RTL.\n4. RTL will list the options to restore funds from the all channel file or individual channel backup file.\n5. Click on the Restore icon on the grid to restore the funds.\n6. Once the restore function is executed successfully, RTL will rename the backup file and it will not be accessible from the UI.\n7. Restore function will force close the channels and recover the funds from them.\n8. The pending close channels can be viewed under the "Pending" tab on the "Peer/Channels" page.\n9. Once the channel is closed, the corresponding pending on-chain transactions can be viewed on the "On-Chain" page.\n10. Once the transactions are confirmed, the channels funds will be restored to your LND Wallet.\n',link:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new ve({question:"Forwarding History",answer:'Transactions routed by the node.\nGo to "Routing" page under the "Lightning" menu :\nTransactions routed by the node are listed on this page along with channels and the fee earned by transaction.\n',link:"routing",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new ve({question:"Graph Lookup",answer:'Querying your node graph for network node and channel information.\nGo to "Graph Lookup" page under the "Lightning" menu :\nEach node maintains a network graph for the information on all the nodes and channels on the network.\nYou can lookup information on nodes and channels from your graph:\n 1. Node Lookup - Enter the pubkey to perform the lookup.\n 2. Channel Lookup - Enter the short channel ID to perform the lookup.\n',link:"lookups",linkCaption:"Graph Lookup page",lnImplementation:"ALL"})),this.helpTopics.push(new ve({question:"Settings",answer:'RTL Offers certain customizations on the UI to personalize your experience on the app\nGo to "Settings" page to access the customization options.\nNode Layout Options\n 1. User Persona - Two options are available to change the dashboard based on the persona.\n 2. Currency Unit - You can choose your preferred fiat currency, to view the onchain and channel balances in the choosen fiat currency.\n 3. Default Node - If you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nOther Customizations include day and night mode and a choice of color themes to select from.\n',lnImplementation:"ALL"}))}return t.prototype.ngOnInit=function(){var t=this;this.store.select("root").pipe(Object(L.a)(this.unSubs[0])).subscribe((function(e){switch(t.selNode=e.selNode,t.selNode.lnImplementation.toUpperCase()){case"CLT":t.LNPLink="/cl/";break;case"ECL":t.LNPLink="/ecl/";break;default:t.LNPLink="/lnd/"}})),this.sessionService.watchSession().pipe(Object(L.a)(this.unSubs[1])).subscribe((function(e){t.flgLoggedIn=!!e.token})),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)},t.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(t){t.next(),t.complete()}))},t.\u0275fac=function(e){return new(e||t)(i.Qb(c.h),i.Qb(_e.a))},t.\u0275cmp=i.Kb({type:t,selectors:[["rtl-help"]],decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxFlex","100",4,"ngFor","ngForOf"],["fxFlex","100"],["class","flat-expansion-panel help-expansion mb-2px",4,"ngIf"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],[1,"pre-wrap",3,"innerHTML"],[1,"mt-2",3,"routerLink"]],template:function(t,e){1&t&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Rb(2,"fa-icon",2),i.Wb(3,"span",3),i.Hc(4,"Help"),i.Vb(),i.Vb(),i.Wb(5,"div",4),i.Wb(6,"div",0),i.Fc(7,Ce,2,1,"div",5),i.Vb(),i.Vb(),i.Vb()),2&t&&(i.Db(2),i.pc("icon",e.faQuestion),i.Db(5),i.pc("ngForOf",e.helpTopics))},directives:[q.c,q.a,q.b,K.a,ut.m,ut.n,we.c,we.e,we.f,we.d,Q.i],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),t}(),Ee=n("fPVg");function Se(t,e){1&t&&(i.Wb(0,"mat-error"),i.Hc(1,"Token is required."),i.Vb())}function Ae(t,e){if(1&t&&(i.Wb(0,"p",14),i.Wb(1,"mat-icon",15),i.Hc(2,"close"),i.Vb(),i.Hc(3),i.Vb()),2&t){var n=i.ic();i.Db(3),i.Ic(n.tokenErrorMessage)}}var ke=function(){function t(t,e,n){this.dialogRef=t,this.data=e,this.store=n,this.faUserClock=Y.L,this.token="",this.tokenErrorMessage="",this.authRes={token:""},this.unSubs=[new h.a,new h.a,new h.a]}return t.prototype.ngOnInit=function(){var t=this;this.authRes=this.data.authRes,this.tokenErrorMessage="",this.store.select("root").pipe(Object(L.a)(this.unSubs[0])).subscribe((function(e){e.effectErrorsRoot.forEach((function(e){"VerifyToken"===e.action&&(t.tokenErrorMessage=t.tokenErrorMessage+e.message+" ")}))}))},t.prototype.onClose=function(){this.dialogRef.close(!1)},t.prototype.onVerifyToken=function(){if(!this.token)return!0;this.tokenErrorMessage="",this.store.dispatch(new G.cb({token:this.token,authResponse:this.authRes}))},t.prototype.ngOnDestroy=function(){this.store.dispatch(new G.f("VerifyToken")),this.unSubs.forEach((function(t){t.next(),t.complete()}))},t.\u0275fac=function(e){return new(e||t)(i.Qb(p.f),i.Qb(p.a),i.Qb(c.h))},t.\u0275cmp=i.Kb({type:t,selectors:[["rtl-login-token"]],decls:18,vars:3,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"padding-gap-large","pl-3"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-2"],["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,"pr-1"],["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"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-flat-button","","color","primary","tabindex","4","type","submit"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"]],template:function(t,e){1&t&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Wb(2,"mat-card-header",2),i.Wb(3,"div",3),i.Wb(4,"span",4),i.Hc(5,"Two Factor Token"),i.Vb(),i.Vb(),i.Wb(6,"button",5),i.ec("click",(function(){return e.onClose()})),i.Hc(7,"X"),i.Vb(),i.Vb(),i.Wb(8,"mat-card-content",6),i.Wb(9,"form",7,8),i.ec("ngSubmit",(function(){return e.onVerifyToken()})),i.Wb(11,"mat-form-field"),i.Wb(12,"input",9),i.ec("ngModelChange",(function(t){return e.token=t})),i.Vb(),i.Fc(13,Se,2,0,"mat-error",10),i.Vb(),i.Fc(14,Ae,4,1,"p",11),i.Wb(15,"div",12),i.Wb(16,"button",13),i.Hc(17,"Verify Token"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&t&&(i.Db(12),i.pc("ngModel",e.token),i.Db(1),i.pc("ngIf",!e.token),i.Db(1),i.pc("ngIf",""!==e.tokenErrorMessage))},directives:[q.c,q.b,q.a,X.c,ht.a,X.b,rt.t,rt.m,rt.n,at.c,It.b,rt.b,ct.a,rt.r,rt.l,rt.o,ut.n,at.b,Ee.a],styles:[""]}),t}();function De(t,e){1&t&&(i.Wb(0,"mat-error"),i.Hc(1,"Password is required."),i.Vb())}function je(t,e){if(1&t&&(i.Wb(0,"p",15),i.Wb(1,"mat-icon",16),i.Hc(2,"close"),i.Vb(),i.Hc(3),i.Vb()),2&t){var n=i.ic();i.Db(3),i.Ic(n.loginErrorMessage)}}var Ie=function(){function t(t,e,n){this.logger=t,this.store=e,this.rtlEffects=n,this.faUnlockAlt=Y.J,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.loginErrorMessage="",this.unSubs=[new h.a,new h.a,new h.a]}return t.prototype.ngOnInit=function(){var t=this;this.store.select("root").pipe(Object(L.a)(this.unSubs[0])).subscribe((function(e){e.effectErrorsRoot.forEach((function(e){"Login"!==e.action&&"IsAuthorized"!==e.action||(t.loginErrorMessage=t.loginErrorMessage+e.message+" "),t.logger.error(e)})),t.selNode=e.selNode,t.appConfig=e.appConfig,t.logger.info(e)})),this.rtlEffects.isAuthorizedRes.pipe(Object(L.a)(this.unSubs[1])).subscribe((function(e){"ERROR"!==e&&t.store.dispatch(new G.C({maxWidth:"35rem",data:{authRes:e,component:ke}}))}))},t.prototype.onLogin=function(){if(!this.password)return!0;this.loginErrorMessage="",this.store.dispatch(this.appConfig.enable2FA?new G.t(St(this.password)):new G.w({password:St(this.password),initialPass:"password"===this.password}))},t.prototype.resetData=function(){this.password="",this.loginErrorMessage=""},t.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(t){t.next(),t.complete()}))},t.\u0275fac=function(e){return new(e||t)(i.Qb(J.b),i.Qb(c.h),i.Qb(kt.a))},t.\u0275cmp=i.Kb({type:t,selectors:[["rtl-login"]],decls:19,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column"],[1,"padding-gap"],[1,"card-content-gap"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",3,"ngSubmit"],["loginForm","ngForm"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","placeholder","Password","type","password","id","password","name","password","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"]],template:function(t,e){1&t&&(i.Wb(0,"div",0),i.Rb(1,"fa-icon",1),i.Wb(2,"span",2),i.Hc(3,"Login to RTL"),i.Vb(),i.Vb(),i.Wb(4,"div",3),i.Wb(5,"div",4),i.Wb(6,"mat-card"),i.Wb(7,"mat-card-content",5),i.Wb(8,"form",6,7),i.ec("ngSubmit",(function(){return e.onLogin()})),i.Wb(10,"mat-form-field",8),i.Wb(11,"input",9),i.ec("ngModelChange",(function(t){return e.password=t})),i.Vb(),i.Fc(12,De,2,0,"mat-error",10),i.Vb(),i.Fc(13,je,4,1,"p",11),i.Wb(14,"div",12),i.Wb(15,"button",13),i.ec("click",(function(){return e.resetData()})),i.Hc(16,"Clear"),i.Vb(),i.Wb(17,"button",14),i.Hc(18,"Login"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&t&&(i.Db(1),i.pc("icon",e.faUnlockAlt),i.Db(10),i.pc("ngModel",e.password),i.Db(1),i.pc("ngIf",!e.password),i.Db(1),i.pc("ngIf",""!==e.loginErrorMessage))},directives:[q.c,q.b,K.a,X.a,X.b,rt.t,rt.m,rt.n,at.c,q.a,It.b,rt.b,ct.a,rt.r,rt.l,rt.o,ut.n,ht.a,at.b,Ee.a],styles:[""]}),t}(),Te=function(){function t(t,e){this.activatedRoute=t,this.router=e,this.error={errorCode:"",errorMessage:""},this.faTimes=Y.H,this.unsubs=[new h.a,new h.a]}return t.prototype.ngOnInit=function(){var t=this;this.activatedRoute.paramMap.pipe(Object(L.a)(this.unsubs[0])).subscribe((function(e){t.error=window.history.state}))},t.prototype.goToHelp=function(){this.router.navigate(["/help"])},t.\u0275fac=function(e){return new(e||t)(i.Qb(Q.a),i.Qb(Q.f))},t.\u0275cmp=i.Kb({type:t,selectors:[["rtl-error"]],decls:13,vars:3,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"padding-gap-x","page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(t,e){1&t&&(i.Wb(0,"div",0),i.Rb(1,"fa-icon",1),i.Wb(2,"span",2),i.Hc(3),i.Vb(),i.Vb(),i.Wb(4,"div",3),i.Wb(5,"mat-card"),i.Wb(6,"mat-card-content",4),i.Wb(7,"div",5),i.Wb(8,"div",6),i.Hc(9),i.Vb(),i.Wb(10,"span",7),i.Wb(11,"button",8),i.ec("click",(function(){return e.goToHelp()})),i.Hc(12,"Go To Help"),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb(),i.Vb()),2&t&&(i.Db(1),i.pc("icon",e.faTimes),i.Db(2),i.Jc("Error ",e.error.errorCode,""),i.Db(6),i.Ic(e.error.errorMessage))},directives:[q.c,q.b,K.a,X.a,X.b,q.a,ht.a],encapsulation:2}),t}(),Re=n("2h+y"),Pe=Q.j.forRoot([{path:"lnd",loadChildren:function(){return Promise.all([n.e(1),n.e(8)]).then(n.bind(null,"tmAo")).then((function(t){return t.LNDModule}))},canActivate:[Re.a]},{path:"cl",loadChildren:function(){return Promise.all([n.e(1),n.e(6)]).then(n.bind(null,"Ssnv")).then((function(t){return t.CLModule}))},canActivate:[Re.a]},{path:"ecl",loadChildren:function(){return Promise.all([n.e(1),n.e(7)]).then(n.bind(null,"YoDt")).then((function(t){return t.ECLModule}))},canActivate:[Re.a]},{path:"settings",component:ge,canActivate:[Re.a]},{path:"help",component:xe},{path:"login",component:Ie},{path:"error",component:Te},{path:"**",component:ye.a}]),Le=n("PCNd"),Fe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(C.c)(e,t),e.prototype._createContainer=function(){var t=document.createElement("div");t.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(t),this._containerElement=t},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac=function(t){return Ne(t||e)}}),e}(U.e),Ne=i.Yb(Fe),Me=n("SmEL"),Ve=n("LBDf"),Be=n("v/zR"),He=n("zPjY");function We(t,e){if(1&t){var n=i.Xb();i.Wb(0,"a",10),i.ec("click",(function(){return i.yc(n),i.ic().onClick()})),i.Rb(1,"fa-icon",3),i.Wb(2,"span"),i.Hc(3,"Logout"),i.Vb(),i.Vb()}if(2&t){var r=i.ic();i.Db(1),i.pc("icon",r.faEject)}}var ze=function(){function t(t,e,n,i,o){this.logger=t,this.sessionService=e,this.store=n,this.rtlEffects=i,this.actions$=o,this.faCodeBranch=Y.g,this.faCog=Y.h,this.faLifeRing=Y.t,this.faEject=Y.l,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new h.a,new h.a,new h.a,new h.a],this.version=r.b.VERSION}return t.prototype.ngOnInit=function(){var t=this;this.store.select("root").pipe(Object(L.a)(this.unSubs[0])).subscribe((function(e){if(t.selNode=e.selNode,t.information=e.nodeData,t.flgLoading=!t.information.identity_pubkey,t.information.identity_pubkey){if(t.information.chains&&"string"==typeof t.information.chains[0])t.informationChain.chain=t.information.chains[0].toString(),t.informationChain.network=t.information.testnet?"Testnet":"Mainnet";else if("object"==typeof t.information.chains[0]&&t.information.chains[0].hasOwnProperty("chain")){var n=t.information.chains[0];t.informationChain.chain=n.chain,t.informationChain.network=n.network}}else t.informationChain.chain="",t.informationChain.network="";t.logger.info(e)})),this.sessionService.watchSession().pipe(Object(L.a)(this.unSubs[1])).subscribe((function(e){t.showLogout=!!e.token,t.flgLoading=!!e.token})),this.actions$.pipe(Object(L.a)(this.unSubs[2]),Object(T.a)((function(t){return t.type===G.v}))).subscribe((function(){t.showLogout=!1}))},t.prototype.onClick=function(){var t=this;this.store.dispatch(new G.D({data:{type:$.b.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}})),this.rtlEffects.closeConfirm.pipe(Object(L.a)(this.unSubs[3])).subscribe((function(e){e&&(t.showLogout=!1,t.store.dispatch(new G.x))}))},t.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(t){t.next(),t.complete()}))},t.\u0275fac=function(e){return new(e||t)(i.Qb(J.b),i.Qb(_e.a),i.Qb(c.h),i.Qb(kt.a),i.Qb(u.a))},t.\u0275cmp=i.Kb({type:t,selectors:[["rtl-top-menu"]],decls:15,vars:6,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item",""],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",1,"top-toolbar-icon","mr-2",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",2,"width","3.2rem"],[2,"font-size","2rem","text-align","start"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(i.Wb(0,"mat-menu",0,1),i.Wb(2,"p",2),i.Rb(3,"fa-icon",3),i.Wb(4,"span"),i.Hc(5),i.Vb(),i.Vb(),i.Wb(6,"a",4),i.Rb(7,"fa-icon",3),i.Wb(8,"span",5),i.Hc(9,"Help"),i.Vb(),i.Vb(),i.Fc(10,We,4,1,"a",6),i.Vb(),i.Wb(11,"button",7),i.Rb(12,"img",8),i.Wb(13,"mat-icon",9),i.Hc(14,"arrow_drop_down"),i.Vb(),i.Vb()),2&t){var n=i.wc(1);i.pc("overlapTrigger",!1),i.Db(3),i.pc("icon",e.faCodeBranch),i.Db(2),i.Jc("Version: ",e.version,""),i.Db(2),i.pc("icon",e.faLifeRing),i.Db(3),i.pc("ngIf",e.showLogout),i.Db(1),i.pc("matMenuTriggerFor",n)}},directives:[He.d,He.a,K.a,Q.i,Q.g,ut.n,ht.a,He.c,Ee.a],styles:[".mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%], .mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-toolbar-row[_ngcontent-%COMP%]{height:100px!important;padding:0 16px!important}.mat-menu-panel.top-menu[_ngcontent-%COMP%] .info-block[_ngcontent-%COMP%]{width:230px}.mat-menu-panel.top-menu[_ngcontent-%COMP%] .info-block[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;line-height:22px;text-align:center}.mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-menu-item[_ngcontent-%COMP%]{height:36px;line-height:36px}.mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:default}"]}),t}(),Ue=n("ALDU"),Qe=n("g2ei"),Ye=n("1QD2"),Ge=n("nT/y"),qe={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Y.G,link:"/lnd/home",userPersona:$.u.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Y.u,link:"/lnd/onchain",userPersona:$.u.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Y.e,link:"/lnd/peerschannels",userPersona:$.u.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Y.N,link:"/lnd/peerschannels",userPersona:$.u.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Y.m,link:"/lnd/transactions",userPersona:$.u.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Y.v,link:"/lnd/routing",userPersona:$.u.ALL},{id:34,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Y.E,link:"/lnd/lookups",userPersona:$.u.ALL},{id:35,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Y.K,link:"/lnd/signverify",userPersona:$.u.ALL},{id:36,parentId:3,name:"Loop",iconType:"FA",icon:Y.r,link:"/lnd/loop",userPersona:$.u.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:Y.j,link:"/lnd/backup",userPersona:$.u.ALL}]},{id:5,parentId:0,name:"Network",iconType:"FA",icon:Y.A,link:"/lnd/network",userPersona:$.u.OPERATOR},{id:6,parentId:0,name:"Node/Network",iconType:"FA",icon:Y.F,link:"/lnd/network",userPersona:$.u.MERCHANT},{id:7,parentId:0,name:"Settings",iconType:"FA",icon:Y.I,link:"/settings",userPersona:$.u.ALL},{id:8,parentId:0,name:"Help",iconType:"FA",icon:Y.B,link:"/help",userPersona:$.u.ALL}],CLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Y.G,link:"/cl/home",userPersona:$.u.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Y.u,link:"/cl/onchain",userPersona:$.u.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Y.e,link:"/cl/peerschannels",userPersona:$.u.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Y.N,link:"/cl/peerschannels",userPersona:$.u.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Y.m,link:"/cl/transactions",userPersona:$.u.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:Y.v,link:"/cl/routing",userPersona:$.u.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Y.E,link:"/cl/lookups",userPersona:$.u.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Y.K,link:"/cl/signverify",userPersona:$.u.ALL},{id:37,parentId:3,name:"Fee Rates",iconType:"FA",icon:Y.z,link:"/cl/rates",userPersona:$.u.OPERATOR},{id:38,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:Y.F,link:"/cl/rates",userPersona:$.u.MERCHANT}]},{id:7,parentId:0,name:"Settings",iconType:"FA",icon:Y.I,link:"/settings",userPersona:$.u.ALL},{id:8,parentId:0,name:"Help",iconType:"FA",icon:Y.B,link:"/help",userPersona:$.u.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Y.G,link:"/ecl/home",userPersona:$.u.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Y.u,link:"/ecl/onchain",userPersona:$.u.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Y.e,link:"/ecl/peerschannels",userPersona:$.u.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Y.N,link:"/ecl/peerschannels",userPersona:$.u.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Y.m,link:"/ecl/transactions",userPersona:$.u.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:Y.v,link:"/ecl/routing",userPersona:$.u.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Y.E,link:"/ecl/lookups",userPersona:$.u.ALL}]},{id:7,parentId:0,name:"Settings",iconType:"FA",icon:Y.I,link:"/settings",userPersona:$.u.ALL},{id:8,parentId:0,name:"Help",iconType:"FA",icon:Y.B,link:"/help",userPersona:$.u.ALL}]};function Ke(t,e){if(1&t&&(i.Wb(0,"mat-option",10),i.Hc(1),i.Vb()),2&t){var n=e.$implicit;i.pc("value",n),i.Db(1),i.Kc(" ",n.lnNode," (",n.lnImplementation,") ")}}function Xe(t,e){if(1&t){var n=i.Xb();i.Wb(0,"mat-select",8),i.ec("selectionChange",(function(t){return i.yc(n),i.ic().onNodeSelectionChange(t.value)})),i.Fc(1,Ke,2,3,"mat-option",9),i.Vb()}if(2&t){var r=i.ic();i.pc("value",r.selNode),i.Db(1),i.pc("ngForOf",r.appConfig.nodes)}}function Ze(t,e){if(1&t&&i.Rb(0,"fa-icon",19),2&t){var n=i.ic().$implicit;i.pc("icon",n.icon)}}function $e(t,e){if(1&t&&(i.Wb(0,"mat-icon",20),i.Hc(1),i.Vb()),2&t){var n=i.ic().$implicit;i.Db(1),i.Ic(n.icon)}}function Je(t,e){if(1&t){var n=i.Xb();i.Wb(0,"mat-tree-node",14),i.Wb(1,"div",15),i.ec("click",(function(){i.yc(n);var t=e.$implicit;return i.ic(2).onChildNavClicked(t)})),i.Wb(2,"div",16),i.Fc(3,Ze,1,1,"fa-icon",17),i.Fc(4,$e,2,1,"mat-icon",18),i.Wb(5,"span"),i.Hc(6),i.Vb(),i.Vb(),i.Vb(),i.Vb()}if(2&t){var r=e.$implicit;i.qc("routerLink",r.link),i.Db(3),i.pc("ngIf","FA"===r.iconType),i.Db(1),i.pc("ngIf",!r.iconType),i.Db(2),i.Ic(r.name)}}function tn(t,e){if(1&t&&i.Rb(0,"fa-icon",19),2&t){var n=i.ic().$implicit;i.pc("icon",n.icon)}}function en(t,e){if(1&t&&(i.Wb(0,"mat-icon",20),i.Hc(1),i.Vb()),2&t){var n=i.ic().$implicit;i.Db(1),i.Ic(n.icon)}}function nn(t,e){if(1&t&&(i.Wb(0,"mat-nested-tree-node",21),i.Wb(1,"div",22),i.Wb(2,"div",23),i.Fc(3,tn,1,1,"fa-icon",17),i.Fc(4,en,2,1,"mat-icon",18),i.Wb(5,"span"),i.Hc(6),i.Vb(),i.Vb(),i.Wb(7,"button",24),i.Wb(8,"mat-icon",25),i.Hc(9),i.Vb(),i.Vb(),i.Vb(),i.Wb(10,"div",26),i.Sb(11,27),i.Vb(),i.Vb()),2&t){var n=e.$implicit,r=i.ic(2);i.Db(3),i.pc("ngIf","FA"===n.iconType),i.Db(1),i.pc("ngIf",!n.iconType),i.Db(2),i.Ic(n.name),i.Db(1),i.Eb("aria-label","toggle "+n.name),i.Db(2),i.Ic(r.treeControlNested.isExpanded(n)?"arrow_drop_up":"arrow_drop_down"),i.Db(1),i.Hb("tree-children-invisible",!r.treeControlNested.isExpanded(n))}}function rn(t,e){if(1&t&&(i.Wb(0,"mat-tree",5,11),i.Fc(2,Je,7,4,"mat-tree-node",12),i.Fc(3,nn,12,7,"mat-nested-tree-node",13),i.Vb()),2&t){var n=i.ic();i.pc("dataSource",n.navMenus)("treeControl",n.treeControlNested),i.Db(3),i.pc("matTreeNodeDefWhen",n.hasChild)}}function on(t,e){if(1&t&&i.Rb(0,"fa-icon",30),2&t){var n=i.ic().$implicit;i.qc("matTooltip",n.name),i.pc("icon",n.icon)}}function an(t,e){if(1&t&&(i.Wb(0,"mat-icon",31),i.Hc(1),i.Vb()),2&t){var n=i.ic().$implicit;i.qc("matTooltip",n.name),i.Db(1),i.Ic(n.icon)}}function sn(t,e){if(1&t){var n=i.Xb();i.Wb(0,"mat-tree-node",15),i.ec("click",(function(){i.yc(n);var t=e.$implicit;return i.ic().onShowData(t)})),i.Fc(1,on,1,2,"fa-icon",28),i.Fc(2,an,2,2,"mat-icon",29),i.Wb(3,"span"),i.Hc(4),i.Vb(),i.Vb()}if(2&t){var r=e.$implicit;i.Db(1),i.pc("ngIf","FA"===r.iconType),i.Db(1),i.pc("ngIf",!r.iconType),i.Db(2),i.Ic(r.name)}}function cn(t,e){if(1&t&&i.Rb(0,"fa-icon",30),2&t){var n=i.ic().$implicit;i.qc("matTooltip",n.name),i.pc("icon",n.icon)}}function un(t,e){if(1&t){var n=i.Xb();i.Wb(0,"mat-tree-node",15),i.ec("click",(function(){i.yc(n);var t=e.$implicit;return i.ic(2).onClick(t)})),i.Fc(1,cn,1,2,"fa-icon",28),i.Wb(2,"span"),i.Hc(3),i.Vb(),i.Vb()}if(2&t){var r=e.$implicit;i.Db(1),i.pc("ngIf","FA"===r.iconType),i.Db(2),i.Ic(r.name)}}function ln(t,e){if(1&t&&(i.Wb(0,"mat-tree",5),i.Fc(1,un,4,2,"mat-tree-node",6),i.Vb()),2&t){var n=i.ic();i.pc("dataSource",n.navMenusLogout)("treeControl",n.treeControlLogout)}}var pn=function(){function t(t,e,n,o,a,s){this.logger=t,this.commonService=e,this.sessionService=n,this.store=o,this.actions$=a,this.rtlEffects=s,this.ChildNavClicked=new i.o,this.faEject=Y.l,this.faEye=Y.o,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:Y.l}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:Y.o}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=$.u,this.unSubs=[new h.a,new h.a,new h.a,new h.a],this.treeControlNested=new Ye.j((function(t){return t.children})),this.treeControlLogout=new Ye.j((function(t){return t.children})),this.treeControlShowData=new Ye.j((function(t){return t.children})),this.navMenus=new Ge.d,this.navMenusLogout=new Ge.d,this.navMenusShowData=new Ge.d,this.hasChild=function(t,e){return!!e.children&&e.children.length>0},this.version=r.b.VERSION,200===qe.LNDChildren[qe.LNDChildren.length-1].id&&qe.LNDChildren.pop(),this.navMenus.data=qe.LNDChildren,this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}return t.prototype.ngOnInit=function(){var t=this,e=this.sessionService.getItem("token");this.showLogout=!!e,this.flgLoading=!!e,this.store.select("root").pipe(Object(L.a)(this.unSubs[0])).subscribe((function(e){if(t.appConfig=e.appConfig,t.selNode=e.selNode,t.settings=t.selNode.settings,t.information=e.nodeData,t.information.identity_pubkey){if(t.information.chains&&"string"==typeof t.information.chains[0])t.informationChain.chain=t.information.chains[0].toString(),t.informationChain.network=t.information.testnet?"Testnet":"Mainnet";else if("object"==typeof t.information.chains[0]&&t.information.chains[0].hasOwnProperty("chain")){var n=t.information.chains[0];t.informationChain.chain=n.chain,t.informationChain.network=n.network}}else t.informationChain.chain="",t.informationChain.network="";t.flgLoading=!t.information.identity_pubkey,window.innerWidth<=414&&(t.smallScreen=!0),t.settings.lnServerUrl&&t.filterSideMenuNodes(),t.logger.info(e)})),this.sessionService.watchSession().pipe(Object(L.a)(this.unSubs[1])).subscribe((function(e){t.showLogout=!!e.token,t.flgLoading=!!e.token})),this.actions$.pipe(Object(L.a)(this.unSubs[2]),Object(T.a)((function(t){return t.type===G.v}))).subscribe((function(e){t.showLogout=!1}))},t.prototype.onClick=function(t){var e=this;"Logout"===t.name&&(this.store.dispatch(new G.D({data:{type:$.b.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}})),this.rtlEffects.closeConfirm.pipe(Object(L.a)(this.unSubs[3])).subscribe((function(t){t&&(e.showLogout=!1,e.store.dispatch(new G.x))}))),this.ChildNavClicked.emit(t)},t.prototype.onChildNavClicked=function(t){this.ChildNavClicked.emit(t)},t.prototype.filterSideMenuNodes=function(){if(this.selNode&&this.selNode.lnImplementation)switch(this.selNode.lnImplementation.toUpperCase()){case"CLT":this.loadCLTMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}else this.loadLNDMenu()},t.prototype.loadLNDMenu=function(){var t=this,e=[];e=JSON.parse(JSON.stringify(qe.LNDChildren)),this.navMenus.data=e.filter((function(e){return e.children&&e.children.length&&(e.children=e.children.filter((function(e){return(e.userPersona===$.u.ALL||e.userPersona===t.settings.userPersona)&&"/lnd/loop"!==e.link||"/lnd/loop"===e.link&&t.settings.swapServerUrl&&""!==t.settings.swapServerUrl.trim()}))),e.userPersona===$.u.ALL||e.userPersona===t.settings.userPersona}))},t.prototype.loadCLTMenu=function(){var t=this,e=[];e=JSON.parse(JSON.stringify(qe.CLChildren)),this.navMenus.data=e.filter((function(e){return e.children&&e.children.length&&(e.children=e.children.filter((function(e){return(e.userPersona===$.u.ALL||e.userPersona===t.settings.userPersona)&&"/cl/signverify"!==e.link||"/cl/signverify"===e.link&&t.information.api_version&&t.commonService.isVersionCompatible(t.information.api_version,"0.2.2")}))),e.userPersona===$.u.ALL||e.userPersona===t.settings.userPersona}))},t.prototype.loadECLMenu=function(){this.navMenus.data=JSON.parse(JSON.stringify(qe.ECLChildren))},t.prototype.onShowData=function(t){this.store.dispatch(new G.V),this.ChildNavClicked.emit("showData")},t.prototype.onNodeSelectionChange=function(t){this.selNode=t,this.store.dispatch(new G.F("Updating Selected Node...")),this.store.dispatch(new G.U({lnNode:t,isInitialSetup:!1})),this.ChildNavClicked.emit("selectNode")},t.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(t){t.next(),t.complete()}))},t.\u0275fac=function(e){return new(e||t)(i.Qb(J.b),i.Qb(tt.a),i.Qb(_e.a),i.Qb(c.h),i.Qb(u.a),i.Qb(kt.a))},t.\u0275cmp=i.Kb({type:t,selectors:[["rtl-side-navigation"]],viewQuery:function(t,e){var n;1&t&&i.Dc(Ge.b,!0),2&t&&i.vc(n=i.fc())&&(e.tree=n.first)},outputs:{ChildNavClicked:"ChildNavClicked"},decls:10,vars:5,consts:[["perfectScrollbar","","fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column","fxFlex","90","fxLayoutAlign","start stretch",1,"w-100"],["class","m-2 multi-node-select",3,"value","selectionChange",4,"ngIf"],[1,"w-100"],[3,"dataSource","treeControl",4,"ngIf"],[3,"dataSource","treeControl"],[3,"click",4,"matTreeNodeDef"],["fxLayout","column","fxFlex","10","fxLayoutAlign","end stretch",1,"w-100"],[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",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],[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"],["fxFlex","11","mat-icon-button","","fxLayoutAlign","end center"],[1,"mat-icon-rtl-mirror"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],["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"]],template:function(t,e){1&t&&(i.Wb(0,"div",0),i.Wb(1,"div",1),i.Fc(2,Xe,2,2,"mat-select",2),i.Rb(3,"mat-divider",3),i.Fc(4,rn,4,3,"mat-tree",4),i.Rb(5,"mat-divider",3),i.Wb(6,"mat-tree",5),i.Fc(7,sn,5,3,"mat-tree-node",6),i.Vb(),i.Vb(),i.Wb(8,"div",7),i.Fc(9,ln,2,2,"mat-tree",4),i.Vb(),i.Vb()),2&t&&(i.Db(2),i.pc("ngIf",e.appConfig.nodes.length>1),i.Db(2),i.pc("ngIf",e.settings.lnServerUrl),i.Db(2),i.pc("dataSource",e.navMenusShowData)("treeControl",e.treeControlShowData),i.Db(3),i.pc("ngIf",e.showLogout))},directives:[Qe.b,q.c,q.a,q.b,ut.n,pt.a,Ge.b,Ge.f,st.a,ut.m,dt.n,Ge.e,Ge.h,Q.h,Q.g,K.a,Ee.a,Ge.a,ht.a,Ge.g,Be.a],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),t}(),hn=n("q18l"),dn=["sideNavigation"],fn=["sideNavContent"];function mn(t,e){1&t&&(i.hc(),i.Rb(0,"path",16))}function bn(t,e){1&t&&(i.hc(),i.Rb(0,"path",17))}function gn(t,e){if(1&t){var n=i.Xb();i.Wb(0,"button",12),i.ec("click",(function(){i.yc(n);var t=i.ic();return t.flgSidenavPinned=!t.flgSidenavPinned})),i.hc(),i.Wb(1,"svg",13),i.Fc(2,mn,1,0,"path",14),i.Fc(3,bn,1,0,"path",15),i.Vb(),i.Vb()}if(2&t){var r=i.ic();i.pc("matTooltip",r.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),i.Db(2),i.pc("ngIf",!r.flgSidenavPinned),i.Db(1),i.pc("ngIf",r.flgSidenavPinned)}}function yn(t,e){if(1&t&&(i.Wb(0,"span"),i.Hc(1),i.Vb()),2&t){var n=i.ic();i.Db(1),i.Ic(n.information.alias?"RTL - "+n.information.alias:"RTL")}}function vn(t,e){if(1&t&&(i.Wb(0,"span"),i.Hc(1),i.Vb()),2&t){var n=i.ic();i.Db(1),i.Ic(n.information.alias?"Ride The Lightning - "+n.information.alias:"Ride The Lightning")}}function _n(t,e){1&t&&(i.Wb(0,"div",18),i.Rb(1,"mat-spinner",19),i.Wb(2,"h4"),i.Hc(3,"Loading RTL..."),i.Vb(),i.Vb())}var wn=function(t,e){return[t,e]},On=function(t){return{"mt-minus-1":t,"inner-sidenav-content":!0}},Cn=function(){function t(t,e,n,i,r,o,a,s,c){this.logger=t,this.commonService=e,this.store=n,this.actions$=i,this.userIdle=r,this.router=o,this.sessionService=a,this.breakpointObserver=s,this.renderer=c,this.information={},this.flgLoading=[!0],this.flgSideNavOpened=!0,this.flgCopied=!1,this.accessKey="",this.xSmallScreen=!1,this.smallScreen=!1,this.flgSidenavPinned=!0,this.unSubs=[new h.a,new h.a,new h.a,new h.a,new h.a,new h.a]}return t.prototype.ngOnInit=function(){var t=this;this.router.events.subscribe((function(t){t instanceof Q.c&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)})),this.breakpointObserver.observe([Me.b.XSmall,Me.b.TabletPortrait,Me.b.Small,Me.b.Medium]).pipe(Object(L.a)(this.unSubs[5])).subscribe((function(e){e.breakpoints[Me.b.XSmall]?(t.commonService.setScreenSize($.o.XS),t.xSmallScreen=!0,t.smallScreen=!0):e.breakpoints[Me.b.TabletPortrait]?(t.commonService.setScreenSize($.o.SM),t.xSmallScreen=!1,t.smallScreen=!0):e.breakpoints[Me.b.Small]||e.breakpoints[Me.b.Medium]?(t.commonService.setScreenSize($.o.MD),t.xSmallScreen=!1,t.smallScreen=!1):(t.commonService.setScreenSize($.o.LG),t.xSmallScreen=!1,t.smallScreen=!1)})),this.store.dispatch(new G.q),this.accessKey=this.readAccessKey(),this.store.select("root").pipe(Object(L.a)(this.unSubs[0])).subscribe((function(e){t.selNode=e.selNode,t.settings=t.selNode.settings,t.appConfig=e.appConfig,t.information=e.nodeData,t.flgLoading[0]=!t.information.identity_pubkey,t.logger.info(t.settings),t.sessionService.getItem("token")||(t.flgLoading[0]=!1)})),this.actions$.pipe(Object(L.a)(this.unSubs[1]),Object(T.a)((function(t){return t.type===G.N}))).subscribe((function(e){e.type===G.N&&(t.sessionService.getItem("token")||(+e.payload.sso.rtlSSO?t.store.dispatch(new G.w({password:St(t.accessKey),initialPass:!1})):t.router.navigate([t.appConfig.sso.logoutRedirectLink])))})),this.userIdle.startWatching(),this.userIdle.onTimerStart().pipe(Object(L.a)(this.unSubs[2])).subscribe((function(t){})),this.userIdle.onTimeout().pipe(Object(L.a)(this.unSubs[3])).subscribe((function(){t.sessionService.getItem("token")&&(t.logger.warn("Time limit exceeded for session inactivity."),t.store.dispatch(new G.g),t.store.dispatch(new G.C({data:{type:$.b.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}})),t.store.dispatch(new G.x),t.userIdle.resetTimer())}))},t.prototype.readAccessKey=function(){var t=window.location.href;return t.includes("access-key=")?t.substring(t.lastIndexOf("access-key=")+11).trim():""},t.prototype.ngAfterViewInit=function(){var t=this;this.smallScreen?this.sideNavigation.close():setTimeout((function(){t.renderer.setStyle(t.sideNavContent.elementRef.nativeElement,"marginLeft","22rem")}),100)},t.prototype.sideNavToggle=function(){this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.toggle()},t.prototype.onNavigationClicked=function(t){this.smallScreen&&this.sideNavigation.close()},t.prototype.copiedText=function(t){var e=this;this.flgCopied=!0,setTimeout((function(){e.flgCopied=!1}),5e3),this.logger.info("Copied Text: "+t)},t.prototype.ngOnDestroy=function(){this.unSubs.forEach((function(t){t.next(),t.complete()}))},t.\u0275fac=function(e){return new(e||t)(i.Qb(J.b),i.Qb(tt.a),i.Qb(c.h),i.Qb(u.a),i.Qb(W),i.Qb(Q.f),i.Qb(_e.a),i.Qb(Me.a),i.Qb(i.F))},t.\u0275cmp=i.Kb({type:t,selectors:[["rtl-app"]],viewQuery:function(t,e){var n;1&t&&(i.Mc(dn,!0),i.Mc(fn,!0)),2&t&&(i.vc(n=i.fc())&&(e.sideNavigation=n.first),i.vc(n=i.fc())&&(e.sideNavContent=n.first))},decls:24,vars:19,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"],["mat-icon-button","","matTooltipPosition","right",1,"top-toolbar-icon","mr-1",3,"matTooltip","matTooltipDisabled","click"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],["perfectScrollbar","",1,"sidenav","mat-elevation-z6",3,"opened","mode"],["sideNavigation",""],["fxFlex","100",3,"ChildNavClicked"],["perfectScrollbar",""],["sideNavContent",""],[3,"ngClass"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["viewBox","0 0 32 32",1,"top-toolbar-icon","icon-pinned"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",4,"ngIf"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z",4,"ngIf"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z"],[1,"rtl-spinner"],["color","accent"]],template:function(t,e){1&t&&(i.Wb(0,"div",0),i.jc(1,"lowercase"),i.jc(2,"lowercase"),i.Wb(3,"mat-toolbar",1),i.Wb(4,"div"),i.Wb(5,"button",2),i.ec("click",(function(){return e.sideNavToggle()})),i.Wb(6,"mat-icon"),i.Hc(7,"menu"),i.Vb(),i.Vb(),i.Fc(8,gn,4,3,"button",3),i.Vb(),i.Wb(9,"div"),i.Fc(10,yn,2,1,"span",4),i.Fc(11,vn,2,1,"span",4),i.Vb(),i.Wb(12,"div"),i.Rb(13,"rtl-top-menu"),i.Vb(),i.Vb(),i.Wb(14,"mat-sidenav-container"),i.Wb(15,"mat-sidenav",5,6),i.Wb(17,"rtl-side-navigation",7),i.ec("ChildNavClicked",(function(t){return e.onNavigationClicked(t)})),i.Vb(),i.Vb(),i.Wb(18,"mat-sidenav-content",8,9),i.Wb(20,"div",10),i.Rb(21,"router-outlet"),i.Vb(),i.Vb(),i.Hc(22,"> "),i.Vb(),i.Fc(23,_n,4,0,"div",11),i.Vb()),2&t&&(i.pc("ngClass",i.uc(14,wn,i.kc(1,10,e.settings.themeColor),i.kc(2,12,e.settings.themeMode))),i.Db(5),i.pc("matTooltip",e.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",e.smallScreen),i.Db(3),i.pc("ngIf",!e.smallScreen),i.Db(2),i.pc("ngIf",e.xSmallScreen),i.Db(1),i.pc("ngIf",!e.xSmallScreen),i.Db(4),i.pc("opened",e.flgSideNavOpened)("mode",e.flgSidenavPinned&&!e.smallScreen?"side":"over"),i.Db(5),i.pc("ngClass",i.tc(17,On,e.smallScreen)),i.Db(3),i.pc("ngIf",!e.settings.themeColor))},directives:[q.c,ut.l,ft.a,Ve.a,q.b,ht.a,Be.a,Ee.a,ut.n,ze,Ue.b,Ue.a,Qe.b,pn,q.a,Ue.c,Q.k,hn.b],pipes:[ut.k],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"]}),t}(),xn=n("hBQm"),En=n("iiaH"),Sn=function(){function t(t){this.sessionService=t}return t.prototype.intercept=function(t,e){if(this.sessionService.getItem("token")){var n=t.clone({headers:t.headers.set("Authorization","Bearer "+this.sessionService.getItem("token"))});return e.handle(n)}return e.handle(t)},t.\u0275fac=function(e){return new(e||t)(i.ac(_e.a))},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac}),t}(),An={initialAPIResponseStatus:["INCOMPLETE"],effectErrors:[],nodeSettings:{userPersona:$.u.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},information:{},fees:{},activeChannels:[],pendingChannels:[],inactiveChannels:[],channelsStatus:{},channelStats:[],onchainBalance:{total:0,confirmed:0,unconfirmed:0},lightningBalance:{localBalance:-1,remoteBalance:-1},peers:[],payments:{},transactions:[],invoices:[]},kn={initialAPIResponseStatus:["INCOMPLETE"],effectErrors:[],nodeSettings:{userPersona:$.u.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},information:{},fees:{},feeRatesPerKB:{},feeRatesPerKW:{},balance:{},localRemoteBalance:{localBalance:-1,remoteBalance:-1},peers:[],allChannels:[],payments:[],forwardingHistory:{},invoices:{invoices:[]},totalInvoices:-1,transactions:[]},Dn={initialAPIResponseStatus:["INCOMPLETE"],effectErrors:[],nodeSettings:{userPersona:$.u.OPERATOR,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},information:{},peers:[],fees:{},networkInfo:{},channelBalance:{balance:-1,btc_balance:-1},blockchainBalance:{total_balance:-1,btc_total_balance:-1},allChannels:[],closedChannels:[],pendingChannels:{},numberOfActiveChannels:0,numberOfInactiveChannels:0,numberOfPendingChannels:{open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0},totalCapacityActive:0,totalCapacityInactive:0,totalLocalBalance:-1,totalRemoteBalance:-1,totalInvoices:-1,transactions:[],utxos:[],payments:[],invoices:{invoices:[]},forwardingHistory:{},loopSwaps:[]},jn={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"]},In={configPath:"",bitcoindConfigPath:""},Tn={effectErrorsRoot:[],selNode:{settings:jn,authentication:In,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:"/login"},enable2FA:!1,nodes:[{settings:jn,authentication:In}]},nodeData:{}},Rn={root:function(t,e){switch(void 0===t&&(t=Tn),e.type){case G.a:var n=Object(C.g)(t.effectErrorsRoot),i=t.effectErrorsRoot.findIndex((function(t){return t.action===e.payload}));return i>-1&&n.splice(i,1),Object(C.a)(Object(C.a)({},t),{effectErrorsRoot:n});case G.j:return Object(C.a)(Object(C.a)({},t),{effectErrorsRoot:Object(C.g)(t.effectErrorsRoot,[e.payload])});case G.I:return Object(C.a)(Object(C.a)({},Tn),{appConfig:t.appConfig,selNode:e.payload});case G.O:return Object(C.a)(Object(C.a)({},t),{selNode:e.payload.lnNode});case G.M:return Object(C.a)(Object(C.a)({},t),{nodeData:e.payload});case G.N:return Object(C.a)(Object(C.a)({},t),{appConfig:e.payload});default:return t}},lnd:function(t,e){void 0===t&&(t=Dn);var n=t.initialAPIResponseStatus;switch(e.type){case it.f:var i=Object(C.g)(t.effectErrors),r=t.effectErrors.findIndex((function(t){return t.action===e.payload}));return r>-1&&i.splice(r,1),Object(C.a)(Object(C.a)({},t),{effectErrors:i});case it.m:return Object(C.a)(Object(C.a)({},t),{effectErrors:Object(C.g)(t.effectErrors,[e.payload])});case it.zb:return Object(C.a)(Object(C.a)({},t),{nodeSettings:e.payload});case it.jb:return Object(C.a)(Object(C.a)({},Dn),{nodeSettings:e.payload});case it.Eb:return Object(C.a)(Object(C.a)({},t),{information:e.payload});case it.Lb:return n=Object(C.g)(t.initialAPIResponseStatus,["PEERS"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,peers:e.payload});case it.ib:var o=Object(C.g)(t.peers),a=t.peers.findIndex((function(t){return t.pub_key===e.payload.pubkey}));return a>-1&&o.splice(a,1),Object(C.a)(Object(C.a)({},t),{peers:o});case it.a:var s=t.invoices;return s.invoices.unshift(e.payload),Object(C.a)(Object(C.a)({},t),{invoices:s});case it.Bb:return n=Object(C.g)(t.initialAPIResponseStatus,["FEES"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,fees:e.payload});case it.Ab:return n=Object(C.g)(t.initialAPIResponseStatus,["CLOSEDCHANNELS"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,closedChannels:e.payload});case it.Mb:return n=Object(C.g)(t.initialAPIResponseStatus,["PENDINGCHANNELS"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,pendingChannels:e.payload.channels,numberOfPendingChannels:e.payload.pendingChannels});case it.vb:var c=0,u=0,l=0,p=0,h=0,d=0;return e.payload&&e.payload.forEach((function(t){t.local_balance||(t.local_balance=0),!0===t.active?(h+=+t.local_balance,l+=1,t.local_balance?c=+c+ +t.local_balance:t.local_balance=0,t.remote_balance?u=+u+ +t.remote_balance:t.remote_balance=0):(d+=+t.local_balance,p+=1)})),n=Object(C.g)(t.initialAPIResponseStatus,["ALLCHANNELS"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,allChannels:e.payload,numberOfActiveChannels:l,numberOfInactiveChannels:p,totalCapacityActive:h,totalCapacityInactive:d,totalLocalBalance:c,totalRemoteBalance:u});case it.hb:var f=Object(C.g)(t.allChannels),m=t.allChannels.findIndex((function(t){return t.channel_point===e.payload.channelPoint}));return m>-1&&f.splice(m,1),Object(C.a)(Object(C.a)({},t),{allChannels:f});case it.wb:return"channels"===e.payload.target?(n=Object(C.g)(t.initialAPIResponseStatus,["BALANCE"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,channelBalance:e.payload.balance})):Object(C.a)(Object(C.a)({},t),{blockchainBalance:e.payload.balance});case it.Ib:return Object(C.a)(Object(C.a)({},t),{networkInfo:e.payload});case it.Fb:return n=Object(C.g)(t.initialAPIResponseStatus,["INVOICES"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,invoices:e.payload});case it.Pb:return Object(C.a)(Object(C.a)({},t),{totalInvoices:e.payload});case it.Qb:return Object(C.a)(Object(C.a)({},t),{transactions:e.payload});case it.Rb:return Object(C.a)(Object(C.a)({},t),{utxos:e.payload});case it.Kb:return n=Object(C.g)(t.initialAPIResponseStatus,["PAYMENTS"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,payments:e.payload});case it.Cb:if(e.payload.forwarding_events){var b=Object(C.g)(t.allChannels,t.closedChannels);e.payload.forwarding_events.forEach((function(t){if(b&&b.length>0)for(var e=0;e-1&&i.splice(r,1),Object(C.a)(Object(C.a)({},t),{effectErrors:i});case nt.o:return Object(C.a)(Object(C.a)({},t),{effectErrors:Object(C.g)(t.effectErrors,[e.payload])});case nt.hb:return Object(C.a)(Object(C.a)({},t),{nodeSettings:e.payload});case nt.W:return Object(C.a)(Object(C.a)({},kn),{nodeSettings:e.payload});case nt.mb:return Object(C.a)(Object(C.a)({},t),{information:e.payload});case nt.jb:return n=Object(C.g)(t.initialAPIResponseStatus,["FEES"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,fees:e.payload});case nt.kb:return e.payload.perkb?(n=Object(C.g)(t.initialAPIResponseStatus,["FEERATEKB"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,feeRatesPerKB:e.payload})):e.payload.perkw?(n=Object(C.g)(t.initialAPIResponseStatus,["FEERATEKW"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,feeRatesPerKW:e.payload})):Object(C.a)({},t);case nt.db:return n=Object(C.g)(t.initialAPIResponseStatus,["BALANCE"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,balance:e.payload});case nt.ob:return n=Object(C.g)(t.initialAPIResponseStatus,["CHANNELBALANCE"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,localRemoteBalance:e.payload});case nt.sb:return n=Object(C.g)(t.initialAPIResponseStatus,["PEERS"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,peers:e.payload});case nt.b:return Object(C.a)(Object(C.a)({},t),{peers:Object(C.g)(t.peers,[e.payload])});case nt.V:var o=Object(C.g)(t.peers),a=t.peers.findIndex((function(t){return t.id===e.payload.id}));return a>-1&&o.splice(a,1),Object(C.a)(Object(C.a)({},t),{peers:o});case nt.eb:return n=Object(C.g)(t.initialAPIResponseStatus,["CHANNELS"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,allChannels:e.payload});case nt.U:var s=Object(C.g)(t.allChannels),c=t.allChannels.findIndex((function(t){return t.channel_id===e.payload.channelId}));return c>-1&&s.splice(c,1),Object(C.a)(Object(C.a)({},t),{allChannels:s});case nt.rb:return n=Object(C.g)(t.initialAPIResponseStatus,["PAYMENTS"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,payments:e.payload});case nt.lb:var u=t.fees;if(e.payload.forwarding_events&&e.payload.forwarding_events.length>0){var l=Object(C.g)(t.allChannels);e.payload.forwarding_events.forEach((function(t){if(l&&l.length>0)for(var e=0;e-1&&i.splice(r,1),Object(C.a)(Object(C.a)({},t),{effectErrors:i});case et.j:return Object(C.a)(Object(C.a)({},t),{effectErrors:Object(C.g)(t.effectErrors,[e.payload])});case et.W:return Object(C.a)(Object(C.a)({},t),{nodeSettings:e.payload});case et.L:return Object(C.a)(Object(C.a)({},An),{nodeSettings:e.payload});case et.Z:return Object(C.a)(Object(C.a)({},t),{information:e.payload});case et.X:return n=Object(C.g)(t.initialAPIResponseStatus,["FEES"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,fees:e.payload});case et.T:return Object(C.a)(Object(C.a)({},t),{activeChannels:e.payload});case et.hb:return Object(C.a)(Object(C.a)({},t),{pendingChannels:e.payload});case et.Y:return Object(C.a)(Object(C.a)({},t),{inactiveChannels:e.payload});case et.U:return n=Object(C.g)(t.initialAPIResponseStatus,["CHANNELS"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,channelsStatus:e.payload});case et.V:return Object(C.a)(Object(C.a)({},t),{channelStats:e.payload});case et.eb:return n=Object(C.g)(t.initialAPIResponseStatus,["ONCHAINBALANCE"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,onchainBalance:e.payload});case et.bb:return Object(C.a)(Object(C.a)({},t),{lightningBalance:e.payload});case et.gb:return n=Object(C.g)(t.initialAPIResponseStatus,["PEERS"]),Object(C.a)(Object(C.a)({},t),{initialAPIResponseStatus:n,peers:e.payload});case et.K:var o=Object(C.g)(t.peers),a=t.peers.findIndex((function(t){return t.nodeId===e.payload.nodeId}));return a>-1&&o.splice(a,1),Object(C.a)(Object(C.a)({},t),{peers:o});case et.J:var s=Object(C.g)(t.activeChannels),c=t.activeChannels.findIndex((function(t){return t.channelId===e.payload.channelId}));return c>-1&&s.splice(c,1),Object(C.a)(Object(C.a)({},t),{activeChannels:s});case et.fb:if(e.payload&&e.payload.relayed){var u=Object(C.g)(t.activeChannels,t.pendingChannels,t.inactiveChannels);e.payload.relayed.forEach((function(t){if(u&&u.length>0)for(var e=0;e*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0});var n=r.Yb(e);return e}(m),v=function(t){function e(e){var n=t.call(this)||this;return n._elementRef=e,n._stateChanges=new c.a,"action-list"===n._getListType()&&e.nativeElement.classList.add("mat-action-list"),n}return Object(a.c)(e,t),e.prototype._getListType=function(){var t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null},e.prototype.ngOnChanges=function(){this._stateChanges.next()},e.prototype.ngOnDestroy=function(){this._stateChanges.complete()},e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[r.Ab,r.Bb],ngContentSelectors:p,decls:1,vars:0,template:function(t,e){1&t&&(r.oc(),r.nc(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),e}(m),_=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Lb({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t}(),w=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Lb({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t}(),O=function(t){function e(e,n,i,r){var o=t.call(this)||this;o._element=e,o._isInteractiveList=!1,o._destroyed=new c.a,o._disabled=!1,o._isInteractiveList=!!(i||r&&"action-list"===r._getListType()),o._list=i||r;var a=o._getHostElement();return"button"!==a.nodeName.toLowerCase()||a.hasAttribute("type")||a.setAttribute("type","button"),o._list&&o._list._stateChanges.pipe(Object(u.a)(o._destroyed)).subscribe((function(){n.markForCheck()})),o}return Object(a.c)(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(t){this._disabled=Object(s.c)(t)},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){Object(o.D)(this._lines,this._element)},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},e.prototype._isRippleDisabled=function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)},e.prototype._getHostElement=function(){return this._element.nativeElement},e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.h),r.Qb(y,8),r.Qb(v,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){var i;1&t&&(r.Jb(n,_,!0),r.Jb(n,w,!0),r.Jb(n,o.j,!0)),2&t&&(r.vc(i=r.fc())&&(e._avatar=i.first),r.vc(i=r.fc())&&(e._icon=i.first),r.vc(i=r.fc())&&(e._lines=i))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&r.Hb("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[r.Ab],ngContentSelectors:d,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(r.oc(h),r.Wb(0,"div",0),r.Rb(1,"div",1),r.nc(2),r.Wb(3,"div",2),r.nc(4,1),r.Vb(),r.nc(5,2),r.Vb()),2&t&&(r.Db(1),r.pc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[o.s],encapsulation:2,changeDetection:0}),e}(g),C=function(){function t(){}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[o.k,o.t,o.i,o.r,i.c],o.k,o.i,o.r,l.b]}),t}()},zo3G:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("mrSG"),r=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return i.c(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,i):e.flush(this)},e}(n("h9Dq").a),o=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.c(e,t),e}(n("CS9Q").a))(r)},zotm:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("rPjj"),r=n("Fxb1"),o=n("6blF");function a(t,e,n,a,s){if(void 0===s&&(s=new i.a(t,n,a)),!s.closed)return e instanceof o.a?e.subscribe(s):Object(r.a)(e)(s)}},"zrt+":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("6blF");function r(t){return!!t&&(t instanceof i.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}}},[[0,0]]]); \ No newline at end of file diff --git a/angular/main.a9c3fed74cd736cbe7ae.js b/angular/main.a9c3fed74cd736cbe7ae.js new file mode 100644 index 00000000..325763ff --- /dev/null +++ b/angular/main.a9c3fed74cd736cbe7ae.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+DxB":function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},"+qE3":function(t,e,n){"use strict";var i,r="object"==typeof Reflect?Reflect:null,s=r&&"function"==typeof r.apply?r.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};i=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(t,e){return new Promise(function(n,i){function r(){void 0!==s&&t.removeListener("error",s),n([].slice.call(arguments))}var s;"error"!==e&&(s=function(n){t.removeListener(e,r),i(n)},t.once("error",s)),t.once(e,r)})},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var c=10;function l(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function h(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function u(t,e,n,i){var r,s,o;if(l(n),void 0===(s=t._events)?(s=t._events=Object.create(null),t._eventsCount=0):(void 0!==s.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),s=t._events),o=s[e]),void 0===o)o=s[e]=n,++t._eventsCount;else if("function"==typeof o?o=s[e]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),(r=h(t))>0&&o.length>r&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=o.length,console&&console.warn&&console.warn(a)}return t}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},r=d.bind(i);return r.listener=n,i.wrapFn=r,r}function p(t,e,n){var i=t._events;if(void 0===i)return[];var r=i[e];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(t){for(var e=new Array(t.length),n=0;n0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var c=r[t];if(void 0===c)return!1;if("function"==typeof c)s(c,this,e);else{var l=c.length,h=b(c,l);for(n=0;n=0;s--)if(n[s]===e||n[s].listener===e){o=n[s].listener,r=s;break}if(r<0)return this;0===r?n.shift():function(t,e){for(;e+1=0;i--)this.removeListener(t,e[i]);return this},a.prototype.listeners=function(t){return p(this,t,!0)},a.prototype.rawListeners=function(t){return p(this,t,!1)},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},a.prototype.listenerCount=m,a.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},"+zbs":function(t,e,n){"use strict";n.d(e,"a",function(){return U});var i=n("iELJ"),r=n("wHSu"),s=n("7nzP"),o=n("8Y7J"),a=n("cpEJ"),c=n("7o2P"),l=n("zHaW"),h=n("VDRc"),u=n("SVse"),d=n("ura0"),f=n("bwdU"),p=n("PDjf"),m=n("Nv++"),b=n("Dxy4"),g=n("aLe/"),_=n("BSbQ"),y=n("O4ig"),v=n("dEYt"),w=n("o4Yh"),x=n("ZFy/"),C=n("Tj54");const S=["scrollContainer"];function E(t,e){1&t&&(o.Tb(0),o.Kc(1," (zero amount) "),o.Sb())}const k=function(t){return{"mr-0":t}};function O(t,e){if(1&t&&o.Qb(0,"span",45),2&t){const t=o.hc(4);o.oc("ngClass",o.sc(1,k,t.screenSize===t.screenSizeEnum.XS))}}function A(t,e){if(1&t&&o.Qb(0,"span",46),2&t){const t=o.hc(4);o.oc("ngClass",o.sc(1,k,t.screenSize===t.screenSizeEnum.XS))}}function D(t,e){if(1&t&&o.Qb(0,"span",47),2&t){const t=o.hc(4);o.oc("ngClass",o.sc(1,k,t.screenSize===t.screenSizeEnum.XS))}}function I(t,e){if(1&t&&(o.Vb(0,"div",34),o.Vb(1,"div",39),o.Vb(2,"span",40),o.Ic(3,O,1,3,"span",41),o.Ic(4,A,1,3,"span",42),o.Ic(5,D,1,3,"span",43),o.Kc(6),o.Ub(),o.Vb(7,"span",44),o.Kc(8),o.ic(9,"number"),o.Ub(),o.Ub(),o.Qb(10,"mat-divider",19),o.Ub()),2&t){const t=e.$implicit,n=o.hc(3);o.Db(3),o.oc("ngIf","SETTLED"===t.state),o.Db(1),o.oc("ngIf","ACCEPTED"===t.state),o.Db(1),o.oc("ngIf","CANCELED"===t.state),o.Db(1),o.Mc(" ",t.chan_id," "),o.Db(2),o.Lc(o.kc(9,6,+t.amt_msat/1e3||0,n.getDecimalFormat(t))),o.Db(2),o.oc("inset",!0)}}function T(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",14),o.Vb(1,"mat-expansion-panel",32),o.dc("opened",function(){return o.zc(t),o.hc(2).flgOpened=!0})("closed",function(){return o.zc(t),o.hc(2).onExpansionClosed()}),o.Vb(2,"mat-expansion-panel-header"),o.Vb(3,"mat-panel-title"),o.Vb(4,"h4",33),o.Kc(5,"HTLCs"),o.Ub(),o.Ub(),o.Ub(),o.Vb(6,"div",34),o.Vb(7,"div",35),o.Vb(8,"span",36),o.Kc(9,"Channel ID"),o.Ub(),o.Vb(10,"span",37),o.Kc(11,"Amount (Sats)"),o.Ub(),o.Ub(),o.Qb(12,"mat-divider",19),o.Ic(13,I,11,9,"div",38),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=o.hc(2);o.Db(12),o.oc("inset",!0),o.Db(1),o.oc("ngForOf",t.invoice.htlcs)}}function L(t,e){1&t&&o.Qb(0,"mat-divider",19),2&t&&o.oc("inset",!0)}function P(t,e){if(1&t&&(o.Vb(0,"div"),o.Qb(1,"mat-divider",19),o.Vb(2,"div",14),o.Vb(3,"div",20),o.Vb(4,"h4",16),o.Kc(5,"R Preimage"),o.Ub(),o.Vb(6,"span",21),o.Kc(7),o.Ub(),o.Ub(),o.Ub(),o.Qb(8,"mat-divider",19),o.Vb(9,"div",14),o.Vb(10,"div",28),o.Vb(11,"h4",16),o.Kc(12,"State"),o.Ub(),o.Vb(13,"span",21),o.Kc(14),o.Ub(),o.Ub(),o.Vb(15,"div",29),o.Vb(16,"h4",16),o.Kc(17,"Expiry"),o.Ub(),o.Vb(18,"span",21),o.Kc(19),o.Ub(),o.Ub(),o.Vb(20,"div",29),o.Vb(21,"h4",16),o.Kc(22,"Private Routing Hints"),o.Ub(),o.Vb(23,"span",21),o.Kc(24),o.Ub(),o.Ub(),o.Ub(),o.Qb(25,"mat-divider",19),o.Ic(26,T,14,2,"div",30),o.Ic(27,L,1,1,"mat-divider",31),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(t.invoice.r_preimage||"-"),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(t.invoice.state),o.Db(5),o.Lc(t.invoice.expiry),o.Db(5),o.Lc(t.invoice.private?"Yes":"No"),o.Db(1),o.oc("inset",!0),o.Db(1),o.oc("ngIf",t.invoice.htlcs&&t.invoice.htlcs.length>0),o.Db(1),o.oc("ngIf",t.invoice.htlcs&&t.invoice.htlcs.length>0)}}function R(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",48),o.Vb(1,"button",49),o.dc("click",function(){return o.zc(t),o.hc().onScrollDown()}),o.Vb(2,"mat-icon",50),o.Kc(3,"arrow_downward"),o.Ub(),o.Ub(),o.Ub()}}function M(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"Show Advanced"),o.Ub())}function j(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"Hide Advanced"),o.Ub())}const F=function(t){return{"display-none":t}},N=function(t){return{"xs-scroll-y":t}},V=function(t){return{"h-46":t}};let U=(()=>{class t{constructor(t,e,n,i,o){this.dialogRef=t,this.data=e,this.logger=n,this.commonService=i,this.snackBar=o,this.faReceipt=r.D,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.q,this.flgOpened=!1}set container(t){t&&(this.scrollContainer=t)}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.q.XS&&(this.qrWidth=220)}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced,this.flgOpened=!1}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+60}onExpansionClosed(){this.flgOpened=!1,this.scrollContainer.nativeElement.scrollTop=0}onCopyPayment(t){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+t)}getDecimalFormat(t){return t.amt_msat<1e3?"1.0-4":"1.0-0"}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(i.f),o.Pb(i.a),o.Pb(a.b),o.Pb(c.a),o.Pb(l.b))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-invoice-information"]],viewQuery:function(t,e){if(1&t&&o.Pc(S,!0),2&t){let t;o.vc(t=o.ec())&&(e.container=t.first)}},decls:58,vars:41,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxLayout","column","fxFlex","65",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-2"],["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"],[3,"ngClass"],["fxLayout","column"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap",3,"ngClass"],[3,"perfectScrollbar","ngClass"],["scrollContainer",""],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Qb(2,"qrcode",2),o.Ub(),o.Vb(3,"div",3),o.Vb(4,"mat-card-header",4),o.Vb(5,"div",5),o.Qb(6,"fa-icon",6),o.Vb(7,"span",7),o.Kc(8),o.Ub(),o.Ub(),o.Vb(9,"button",8),o.dc("click",function(){return e.onClose()}),o.Kc(10,"X"),o.Ub(),o.Ub(),o.Vb(11,"mat-card-content",9),o.Vb(12,"div",10),o.Vb(13,"div",11),o.Qb(14,"qrcode",2),o.Ub(),o.Vb(15,"div",12,13),o.Vb(17,"div",14),o.Vb(18,"div",15),o.Vb(19,"h4",16),o.Kc(20),o.Ub(),o.Vb(21,"span",17),o.Kc(22),o.ic(23,"number"),o.Ic(24,E,2,0,"ng-container",18),o.Ub(),o.Ub(),o.Vb(25,"div",15),o.Vb(26,"h4",16),o.Kc(27,"Memo"),o.Ub(),o.Vb(28,"span",17),o.Kc(29),o.Ub(),o.Ub(),o.Ub(),o.Qb(30,"mat-divider",19),o.Vb(31,"div",14),o.Vb(32,"div",15),o.Vb(33,"h4",16),o.Kc(34,"Date Created"),o.Ub(),o.Vb(35,"span",17),o.Kc(36),o.Ub(),o.Ub(),o.Vb(37,"div",15),o.Vb(38,"h4",16),o.Kc(39,"Date Settled"),o.Ub(),o.Vb(40,"span",17),o.Kc(41),o.Ub(),o.Ub(),o.Ub(),o.Qb(42,"mat-divider",19),o.Vb(43,"div",14),o.Vb(44,"div",20),o.Vb(45,"h4",16),o.Kc(46,"Payment Request"),o.Ub(),o.Vb(47,"span",21),o.Kc(48),o.Ub(),o.Ub(),o.Ub(),o.Ic(49,P,28,9,"div",18),o.Ub(),o.Ub(),o.Ub(),o.Ic(50,R,4,0,"div",22),o.Vb(51,"div",23),o.Vb(52,"button",24),o.dc("click",function(){return e.onShowAdvanced()}),o.Ic(53,M,2,0,"p",25),o.Ic(54,j,2,0,"ng-template",null,26,o.Jc),o.Ub(),o.Vb(56,"button",27),o.dc("copied",function(t){return e.onCopyPayment(t)}),o.Kc(57),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=o.wc(55);o.Db(1),o.oc("ngClass",o.sc(33,F,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),o.Db(1),o.oc("qrdata",e.invoice.payment_request)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),o.Db(4),o.oc("icon",e.faReceipt),o.Db(2),o.Lc(e.screenSize===e.screenSizeEnum.XS?e.newlyAdded?"Created":"Invoice":e.newlyAdded?"Invoice Created":"Invoice Information"),o.Db(3),o.oc("ngClass",o.sc(35,N,e.screenSize===e.screenSizeEnum.XS)),o.Db(2),o.oc("ngClass",o.sc(37,F,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),o.Db(1),o.oc("qrdata",e.invoice.payment_request)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),o.Db(1),o.oc("ngClass",o.sc(39,V,e.invoice.htlcs&&e.invoice.htlcs.length>0&&e.showAdvanced)),o.Db(5),o.Lc(e.screenSize===e.screenSizeEnum.XS?"Amount":"Amount Requested"),o.Db(2),o.Mc("",o.jc(23,31,e.invoice.value||0)," Sats"),o.Db(2),o.oc("ngIf",!e.invoice.value),o.Db(5),o.Lc(e.invoice.memo),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(e.invoice.creation_date_str),o.Db(5),o.Lc(e.invoice.settle_date_str||"-"),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(e.invoice.payment_request),o.Db(1),o.oc("ngIf",e.showAdvanced),o.Db(1),o.oc("ngIf",e.invoice.htlcs&&e.invoice.htlcs.length>0&&e.showAdvanced&&e.flgOpened),o.Db(3),o.oc("ngIf",!e.showAdvanced)("ngIfElse",t),o.Db(3),o.oc("payload",e.invoice.payment_request),o.Db(1),o.Lc(e.screenSize===e.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}},directives:[h.c,h.b,h.a,u.m,d.a,f.a,p.c,m.a,b.a,p.b,g.b,u.o,_.a,y.a,v.a,w.c,w.e,w.f,u.n,x.a,C.a],pipes:[u.f],styles:[""]}),t})()},"/ab2":function(t,e,n){var i=n("iUdu"),r=n("QihY"),s=n("6F8h");e.createCipher=e.Cipher=i.createCipher,e.createCipheriv=e.Cipheriv=i.createCipheriv,e.createDecipher=e.Decipher=r.createDecipher,e.createDecipheriv=e.Decipheriv=r.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(s)}},"/ayr":function(t,e,n){var i;function r(t){this.rand=t}if(t.exports=function(t){return i||(i=new r(null)),i.generate(t)},t.exports.Rand=r,r.prototype.generate=function(t){return this._rand(t)},r.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n{if(Object(r.A)(e)){const e=Array.from(t.querySelectorAll(`[class*=${d}]`)),n=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(d+"ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(n,"")})}}},deps:[r.d,i.D],multi:!0},d="flex-layout-";let f=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[u]}),t})();class p{constructor(t=!1,e="all",n="",i="",r=0){this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=i,this.priority=r,this.property=""}clone(){return new p(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let m=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,n){const i=this.stylesheet.get(t);i?i.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const n=this.stylesheet.get(t);let i="";if(n){const t=n.get(e);"number"!=typeof t&&"string"!=typeof t||(i=t+"")}return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const b={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},g=new i.s("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>b}),_=new i.s("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),y=new i.s("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function v(t,e){return t=t?t.clone():new p,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const w="inline",x=["row","column","row-reverse","column-reverse"];function C(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let S=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.styleBuilder=e,this.styler=n,this.marshal=i,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new s.a,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const n=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,n)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const n=this.styleBuilder,i=n.shouldCache;let r=this.styleCache.get(t);r&&i||(r=n.buildStyles(t,e),i&&this.styleCache.set(t,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),n.sideEffect(t,r,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[n,i]=this.styler.getFlowDirection(t);if(!i&&e){const e=function(t){let[e,n,i]=function(t){t=t?t.toLowerCase():"";let[e,n,i]=t.split(" ");return x.find(t=>t===e)||(e=x[0]),n===w&&(n=i!==w?i:"",i=w),[e,C(n),!!i]}(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,i)}(n);this.styler.applyStyleToElements(e,[t])}return n.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,n=this.nativeElement){this.styler.applyStyleToElement(n,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){i.cc()},t.\u0275dir=i.Kb({type:t,features:[i.Bb]}),t})();const E=[{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)",O="(orientation: landscape) and (max-width: 959.98px)",A="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",D="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",I="(orientation: portrait) and (min-width: 840px)",T="(orientation: landscape) and (min-width: 1280px)",L={HANDSET:`${k}, ${O}`,TABLET:`${A} , ${D}`,WEB:`${I}, ${T} `,HANDSET_PORTRAIT:""+k,TABLET_PORTRAIT:A+" ",WEB_PORTRAIT:""+I,HANDSET_LANDSCAPE:""+O,TABLET_LANDSCAPE:""+D,WEB_LANDSCAPE:""+T},P=[{alias:"handset",priority:2e3,mediaQuery:L.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:L.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:L.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:L.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:L.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:L.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:L.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:L.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:L.WEB_PORTRAIT,overlapping:!0}],R=/(\.|-|_)/g;function M(t){let e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}const j=new i.s("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Object(i.Y)(y),e=Object(i.Y)(g),n=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const n={};return t.forEach(t=>{n[t.alias]=t}),e.forEach(t=>{n[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e])}(n[t.alias],t):n[t.alias]=t}),(i=Object.keys(n).map(t=>n[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace(R,"|").split("|").map(M).join(""),t.overlapping=!!t.overlapping)}),i;var i}((e.disableDefaultBps?[]:E).concat(e.addOrientationBps?P:[]),n)}});function F(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function N(t,e){return(t.priority||0)-(e.priority||0)}let V=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(N)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let n=this.findByMap.get(t);return n||(n=this.items.find(e)||null,this.findByMap.set(t,n)),n||null}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(j))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(j))},token:t,providedIn:"root"}),t})(),U=(()=>{class t{constructor(t,e,n){this._zone=t,this._platformId=e,this._document=n,this.source=new o.a(new p(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,n)=>{e.matches&&t.push(n)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const n=this._observable$.pipe(Object(l.a)(n=>!e||t.indexOf(n.mediaQuery)>-1)),i=new a.a(e=>{const n=this.registerQuery(t);if(n.length){const t=n.pop();n.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()});return Object(c.a)(i,n)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],n=[];return function(t,e){const n=t.filter(t=>!B[t]);if(n.length>0){const t=n.join(", ");try{const i=e.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),e.head.appendChild(i),n.forEach(t=>B[t]=i)}catch(i){console.error(i)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new p(e.matches,t)))};let i=this.registry.get(t);i||(i=this.buildMQL(t),i.addListener(e),this.pendingRemoveListenerFns.push(()=>i.removeListener(e)),this.registry.set(t,i)),i.matches&&n.push(new p(!0,t))}),n}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,Object(r.A)(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(i.B),i.Zb(i.D),i.Zb(r.d))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(i.B),Object(i.Zb)(i.D),Object(i.Zb)(r.d))},token:t,providedIn:"root"}),t})();const B={},z="print",H={alias:z,mediaQuery:z,priority:1e3};let W=(()=>{class t{constructor(t,e,n){this.breakpoints=t,this.layoutConfig=e,this._document=n,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new K,this.deactivations=[]}withPrintQuery(t){return[...t,z]}isPrintEvent(t){return t.mediaQuery.startsWith(z)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(F)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),v(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new p(!0,z))),t.updateStyles())},n=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",n),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(n)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(F))}}ngOnDestroy(){this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t))}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(V),i.Zb(g),i.Zb(r.d))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(V),Object(i.Zb)(g),Object(i.Zb)(r.d))},token:t,providedIn:"root"}),t})();class K{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(H),t.sort(F),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith(z)}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function q(t){for(let e in t){let n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":n=n||"row",t["-webkit-flex-direction"]=n,t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}let Y=(()=>{class t{constructor(t,e,n,i){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=i}applyStyleToElement(t,e,n=null){let i={};"string"==typeof e&&(i[e]=n,e=i),i=this.layoutConfig.disableVendorPrefixes?e:q(e),this._applyMultiValueStyleToElement(i,t)}applyStyleToElements(t,e=[]){const n=this.layoutConfig.disableVendorPrefixes?t:q(t);e.forEach(t=>{this._applyMultiValueStyleToElement(n,t)})}getFlowDirection(t){const e="flex-direction";let n=this.lookupStyle(t,e);return[n||"row",this.lookupInlineStyle(t,e)||Object(r.B)(this._platformId)&&this._serverModuleLoaded?n:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return Object(r.A)(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,n=!1){let i="";return t&&((i=this.lookupInlineStyle(t,e))||(Object(r.A)(this._platformId)?n||(i=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(t,e)))),i?i.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(n=>{const i=t[n],s=Array.isArray(i)?i:[i];s.sort();for(let t of s)t=t?t+"":"",Object(r.A)(this._platformId)||!this._serverModuleLoaded?Object(r.A)(this._platformId)?e.style.setProperty(n,t):this._setServerStyle(e,n,t):this._serverStylesheet.addStyleToElement(e,n,t)})}_setServerStyle(t,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=this._readStyleAttribute(t);i[e]=n||"",this._writeStyleAttribute(t,i)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},n=t.getAttribute("style");if(n){const t=n.split(/;+/g);for(let n=0;n0){const t=i.indexOf(":");if(-1===t)throw new Error("Invalid CSS style: "+i);e[i.substr(0,t).trim()]=i.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let n="";for(const i in e)e[i]&&(n+=i+":"+e[i]+";");t.setAttribute("style",n)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(m),i.Zb(_),i.Zb(i.D),i.Zb(g))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(m),Object(i.Zb)(_),Object(i.Zb)(i.D),Object(i.Zb)(g))},token:t,providedIn:"root"}),t})();class Z{constructor(){this.shouldCache=!0}sideEffect(t,e,n){}}function X(t,e="1",n="1"){let i=[e,n,t],r=t.indexOf("calc");if(r>0){i[2]=G(t.substring(r).trim());let e=t.substr(0,r).trim().split(" ");2==e.length&&(i[0]=e[0],i[1]=e[1])}else if(0==r)i[2]=G(t.trim());else{let r=t.split(" ");i=3===r.length?r:[e,n,t]}return i}function G(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let $=(()=>{class t{constructor(t,e,n){this.matchMedia=t,this.breakpoints=e,this.hook=n,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new s.a,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=v(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(F),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(F),this.updateStyles()))}init(t,e,n,i,r=[]){Q(this.updateMap,t,e,n),Q(this.clearMap,t,e,i),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,r)}getValue(t,e,n){const i=this.elementMap.get(t);if(i){const t=void 0!==n?i.get(n):this.getActivatedValues(i,e);if(t)return t.get(e)}}hasValue(t,e){const n=this.elementMap.get(t);if(n){const t=this.getActivatedValues(n,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,n,i){let r=this.elementMap.get(t);if(r){const s=(r.get(i)||new Map).set(e,n);r.set(i,s),this.elementMap.set(t,r)}else r=(new Map).set(i,(new Map).set(e,n)),this.elementMap.set(t,r);const s=this.getValue(t,e);void 0!==s&&this.updateElement(t,e,s)}trackValue(t,e){return this.subject.asObservable().pipe(Object(l.a)(n=>n.element===t&&n.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const n=new Set(this.elementKeyMap.get(e));let i=this.getActivatedValues(t);i&&i.forEach((t,i)=>{this.updateElement(e,i,t),n.delete(i)}),n.forEach(n=>{if(i=this.getActivatedValues(t,n),i){const t=i.get(n);this.updateElement(e,n,t)}else this.clearElement(e,n)})})}clearElement(t,e){const n=this.clearMap.get(t);if(n){const i=n.get(e);i&&(i(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,n){const i=this.updateMap.get(t);if(i){const r=i.get(e);r&&(r(n),this.subject.next({element:t,key:e,value:n}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const n=this.elementMap.get(t);n&&(n.forEach((t,e)=>n.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const n=this.elementMap.get(t);if(n){const i=this.getActivatedValues(n,e);i&&(e?this.updateElement(t,e,i.get(e)):i.forEach((e,n)=>this.updateElement(t,n,e)))}}buildElementKeyMap(t,e){let n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)}watchExtraTriggers(t,e,n){if(n&&n.length){let i=this.watcherMap.get(t);if(i||(i=new Map,this.watcherMap.set(t,i)),!i.get(e)){const r=Object(c.a)(...n).subscribe(()=>{const n=this.getValue(t,e);this.updateElement(t,e,n)});i.set(e,r)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let i=0;it.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(Object(h.a)(this.hook.interceptEvents(this)),Object(l.a)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(U),i.Zb(V),i.Zb(W))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(U),Object(i.Zb)(V),Object(i.Zb)(W))},token:t,providedIn:"root"}),t})();function Q(t,e,n,i){if(void 0!==i){let r=t.get(e);r||(r=new Map,t.set(e,r)),r.set(n,i)}}},"/uUt":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q");function r(t,e){return n=>n.lift(new s(t,e))}class s{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},"/uX3":function(t,e,n){"use strict";n.d(e,"bb",function(){return i}),n.d(e,"Y",function(){return r}),n.d(e,"I",function(){return s}),n.d(e,"a",function(){return o}),n.d(e,"j",function(){return a}),n.d(e,"c",function(){return c}),n.d(e,"A",function(){return l}),n.d(e,"B",function(){return h}),n.d(e,"e",function(){return u}),n.d(e,"y",function(){return d}),n.d(e,"b",function(){return f}),n.d(e,"z",function(){return p}),n.d(e,"d",function(){return m}),n.d(e,"R",function(){return b}),n.d(e,"l",function(){return g}),n.d(e,"P",function(){return _}),n.d(e,"n",function(){return y}),n.d(e,"N",function(){return v}),n.d(e,"L",function(){return w}),n.d(e,"W",function(){return x}),n.d(e,"O",function(){return C}),n.d(e,"M",function(){return S}),n.d(e,"r",function(){return E}),n.d(e,"s",function(){return k}),n.d(e,"u",function(){return O}),n.d(e,"ab",function(){return A}),n.d(e,"v",function(){return D}),n.d(e,"G",function(){return I}),n.d(e,"H",function(){return T}),n.d(e,"m",function(){return L}),n.d(e,"Q",function(){return P}),n.d(e,"f",function(){return R}),n.d(e,"k",function(){return M}),n.d(e,"g",function(){return j}),n.d(e,"E",function(){return F}),n.d(e,"F",function(){return N}),n.d(e,"i",function(){return V}),n.d(e,"C",function(){return U}),n.d(e,"D",function(){return B}),n.d(e,"h",function(){return z}),n.d(e,"V",function(){return H}),n.d(e,"o",function(){return W}),n.d(e,"Z",function(){return K}),n.d(e,"K",function(){return q}),n.d(e,"q",function(){return Y}),n.d(e,"S",function(){return Z}),n.d(e,"X",function(){return X}),n.d(e,"U",function(){return G}),n.d(e,"T",function(){return $}),n.d(e,"x",function(){return Q}),n.d(e,"J",function(){return J}),n.d(e,"t",function(){return tt}),n.d(e,"w",function(){return et}),n.d(e,"cb",function(){return nt}),n.d(e,"p",function(){return it});const i="VOID",r="UPDATE_SELECTED_NODE_OPTIONS",s="RESET_ROOT_STORE",o="CLEAR_EFFECT_ERROR_ROOT",a="EFFECT_ERROR_ROOT",c="CLOSE_ALL_DIALOGS",l="OPEN_SNACKBAR",h="OPEN_SPINNER",u="CLOSE_SPINNER",d="OPEN_ALERT",f="CLOSE_ALERT",p="OPEN_CONFIRMATION",m="CLOSE_CONFIRMATION",b="SHOW_PUBKEY",g="FETCH_CONFIG",_="SHOW_CONFIG",y="FETCH_RTL_CONFIG",v="SET_RTL_CONFIG",w="SAVE_SETTINGS",x="TWO_FA_SAVE_SETTINGS",C="SET_SELECTED_NODE",S="SET_NODE_DATA",E="IS_AUTHORIZED",k="IS_AUTHORIZED_RES",O="LOGIN",A="VERIFY_TWO_FA",D="LOGOUT",I="RESET_PASSWORD",T="RESET_PASSWORD_RES",L="FETCH_FILE",P="SHOW_FILE";class R{constructor(t){this.payload=t,this.type=o}}class M{constructor(t){this.payload=t,this.type=a}}class j{constructor(){this.type=c}}class F{constructor(t){this.payload=t,this.type=l}}class N{constructor(t){this.payload=t,this.type=h}}class V{constructor(){this.type=u}}class U{constructor(t){this.payload=t,this.type=d}}class B{constructor(t){this.payload=t,this.type=p}}class z{constructor(t){this.payload=t,this.type=m}}class H{constructor(){this.type=b}}class W{constructor(t){this.payload=t,this.type=g}}class K{constructor(){this.type=r}}class q{constructor(t){this.payload=t,this.type=s}}class Y{constructor(){this.type=y}}class Z{constructor(t){this.payload=t,this.type=w}}class X{constructor(t){this.payload=t,this.type=x}}class G{constructor(t){this.payload=t,this.type=C}}class ${constructor(t){this.payload=t,this.type=S}}class Q{constructor(){this.type=D}}class J{constructor(t){this.payload=t,this.type=I}}class tt{constructor(t){this.payload=t,this.type=E}}class et{constructor(t){this.payload=t,this.type=O}}class nt{constructor(t){this.payload=t,this.type=A}}class it{constructor(t){this.payload=t,this.type=L}}},0:function(t,e,n){t.exports=n("zUnb")},"0EUg":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("bHdf");function r(){return Object(i.a)(1)}},"0FX9":function(t,e,n){var i=n("Z92M"),r=n("qmMu"),s=n("QUaw"),o=n("QAZZ");function a(t,e,n,s,o){var a=[].slice.call(arguments,1),c=a.length,l="function"==typeof a[c-1];if(!l&&!i())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=e,e=s=void 0):2!==c||e.getContext||(s=n,n=e,e=void 0),new Promise(function(i,o){try{var a=r.create(n,s);i(t(a,e,s))}catch(c){o(c)}})}if(c<2)throw new Error("Too few arguments provided");2===c?(o=n,n=e,e=s=void 0):3===c&&(e.getContext&&void 0===o?(o=s,s=void 0):(o=s,s=n,n=e,e=void 0));try{var h=r.create(n,s);o(null,t(h,e,s))}catch(u){o(u)}}e.create=r.create,e.toCanvas=a.bind(null,s.render),e.toDataURL=a.bind(null,s.renderToDataURL),e.toString=a.bind(null,function(t,e,n){return o.render(t,n)})},"0ROu":function(t,e,n){"use strict";var i={};function r(t,e,n){n||(n=Error);var r=function(t){var n,i;function r(n,i,r){return t.call(this,function(t,n,i){return"string"==typeof e?e:e(t,n,i)}(n,i,r))||this}return i=t,(n=r).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i,r}(n);r.prototype.name=n.name,r.prototype.code=t,i[t]=r}function s(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map(function(t){return String(t)}),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(t,e,n){var i,r,o,a;if("string"==typeof e&&"not "===e.substr(0,"not ".length)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))r="The ".concat(t," ").concat(i," ").concat(s(e,"type"));else{var c=("number"!=typeof a&&(a=0),a+".".length>(o=t).length||-1===o.indexOf(".",a)?"argument":"property");r='The "'.concat(t,'" ').concat(c," ").concat(i," ").concat(s(e,"type"))}return r+". Received type ".concat(typeof n)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},"0XuU":function(t,e,n){t.exports=n("43KI").Transform},"0cit":function(t,e,n){"use strict";const i=n("P7XM");function r(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function s(t,e){this.path=t,this.rethrow(e)}e.Reporter=r,r.prototype.isError=function(t){return t instanceof s},r.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},r.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},r.prototype.enterKey=function(t){return this._reporterState.path.push(t)},r.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},r.prototype.leaveKey=function(t,e,n){const i=this._reporterState;this.exitKey(t),null!==i.obj&&(i.obj[e]=n)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},r.prototype.leaveObject=function(t){const e=this._reporterState,n=e.obj;return e.obj=t,n},r.prototype.error=function(t){let e;const n=this._reporterState,i=t instanceof s;if(e=i?t:new s(n.path.map(function(t){return"["+JSON.stringify(t)+"]"}).join(""),t.message||t,t.stack),!n.options.partial)throw e;return i||n.errors.push(e),e},r.prototype.wrapResult=function(t){const e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},i(s,Error),s.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,s),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},"0dfH":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n("wHSu"),r=n("8Y7J"),s=n("iInd"),o=n("VDRc"),a=n("Nv++"),c=n("PDjf"),l=n("Dxy4");let h=(()=>{class t{constructor(t){this.router=t,this.faTimes=i.I}goToHelp(){this.router.navigate(["/help"])}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(s.g))},t.\u0275cmp=r.Jb({type:t,selectors:[["rtl-not-found"]],decls:13,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(t,e){1&t&&(r.Vb(0,"div",0),r.Qb(1,"fa-icon",1),r.Vb(2,"span",2),r.Kc(3,"Page Not Found"),r.Ub(),r.Ub(),r.Vb(4,"div",3),r.Vb(5,"mat-card"),r.Vb(6,"mat-card-content",4),r.Vb(7,"div",5),r.Vb(8,"div",6),r.Kc(9,"This page does not exist!"),r.Ub(),r.Vb(10,"span",7),r.Vb(11,"button",8),r.dc("click",function(){return e.goToHelp()}),r.Kc(12,"Go To Help"),r.Ub(),r.Ub(),r.Ub(),r.Ub(),r.Ub(),r.Ub()),2&t&&(r.Db(1),r.oc("icon",e.faTimes))},directives:[o.c,o.b,a.a,c.a,c.b,o.a,l.a],encapsulation:2}),t})()},1:function(t,e){},"1CSz":function(t,e,n){"use strict";var i=n("P7XM"),r=n("hwdV").Buffer,s=n("ZDAU"),o=r.alloc(128),a=64;function c(t,e){s.call(this,"digest"),"string"==typeof e&&(e=r.from(e)),this._alg=t,this._key=e,e.length>a?e=t(e):e.lengthe.lift(new s(t))}class s{constructor(t){this.notifier=t}call(t,e){const n=new o(t),r=Object(i.c)(this.notifier,new i.a(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class o extends i.b{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"1IWx":function(t,e,n){t.exports=r;var i=n("+qE3").EventEmitter;function r(){i.call(this)}n("P7XM")(r,i),r.Readable=n("43KI"),r.Writable=n("LGOv"),r.Duplex=n("CWBI"),r.Transform=n("0XuU"),r.PassThrough=n("wq4j"),r.Stream=r,r.prototype.pipe=function(t,e){var n=this;function r(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function s(){n.readable&&n.resume&&n.resume()}n.on("data",r),t.on("drain",s),t._isStdio||e&&!1===e.end||(n.on("end",a),n.on("close",c));var o=!1;function a(){o||(o=!0,t.end())}function c(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function l(t){if(h(),0===i.listenerCount(this,"error"))throw t}function h(){n.removeListener("data",r),t.removeListener("drain",s),n.removeListener("end",a),n.removeListener("close",c),n.removeListener("error",l),t.removeListener("error",l),n.removeListener("end",h),n.removeListener("close",h),t.removeListener("close",h)}return n.on("error",l),t.on("error",l),n.on("end",h),n.on("close",h),t.on("close",h),t.emit("pipe",n),t}},"1O3W":function(t,e,n){"use strict";n.d(e,"a",function(){return X}),n.d(e,"b",function(){return Z}),n.d(e,"c",function(){return K}),n.d(e,"d",function(){return k}),n.d(e,"e",function(){return P}),n.d(e,"f",function(){return $});var i=n("7KAL"),r=n("8Y7J"),s=n("SCoL"),o=n("9gLZ"),a=n("SVse"),c=n("8LU1"),l=n("1z/I"),h=n("XNiG"),u=n("quSY"),d=n("VRyK"),f=n("IzEk"),p=n("1G5W"),m=n("7o/Q");class b{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new g(t,this.predicate,this.inclusive))}}class g extends m.a{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}var _=n("Ht+U");class y{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Object(c.d)(-this._previousScrollPosition.left),t.style.top=Object(c.d)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=r}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class v{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class w{enable(){}disable(){}attach(){}}function x(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function C(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class S{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();x(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let E=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new w,this.close=t=>new v(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new y(this._viewportRuler,this._document),this.reposition=t=>new S(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(i.c),r.Zb(i.e),r.Zb(r.B),r.Zb(a.d))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(i.c),Object(r.Zb)(i.e),Object(r.Zb)(r.B),Object(r.Zb)(a.d))},token:t,providedIn:"root"}),t})();class k{constructor(t){if(this.scrollStrategy=new w,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class O{constructor(t,e,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class A{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let D=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(a.d))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(a.d))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends D{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(a.d))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(a.d))},token:t,providedIn:"root"}),t})(),T=(()=>{class t extends D{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const r=n[i];if(!(r._outsidePointerEvents.observers.length<1)&&r.hasAttached()){if(r.overlayElement.contains(e))break;r._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(a.d),r.Zb(s.a))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(a.d),Object(r.Zb)(s.a))},token:t,providedIn:"root"}),t})();const L=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let P=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||L){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new h.a,this._outsidePointerEvents=new h.a,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Object(f.a)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Object(c.d)(this._config.width),t.height=Object(c.d)(this._config.height),t.minWidth=Object(c.d)(this._config.minWidth),t.minHeight=Object(c.d)(this._config.minHeight),t.maxWidth=Object(c.d)(this._config.maxWidth),t.maxHeight=Object(c.d)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;Object(c.b)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Object(p.a)(Object(d.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const M="cdk-overlay-connected-position-bounding-box",j=/([A-Za-z%]+)$/;class F{constructor(t,e,n,i,r){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new h.a,this._resizeSubscription=u.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(M),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let r;for(let s of this._preferredPositions){let o=this._getOriginPoint(t,s),a=this._getOverlayPoint(o,e,s),c=this._getOverlayFit(a,e,n,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(c,a,n)?i.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!r||r.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&N(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(M),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,r;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+r}}_getOverlayFit(t,e,n,i){let{x:r,y:s}=t,o=this._getOffset(i,"x"),a=this._getOffset(i,"y");o&&(r+=o),a&&(s+=a);let c=0-s,l=s+e.height-n.height,h=this._subtractOverflows(e.width,0-r,r+e.width-n.width),u=this._subtractOverflows(e.height,c,l),d=h*u;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,r=n.right-e.x,s=V(this._overlayRef.getConfig().minHeight),o=V(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=r;return(t.fitsInViewportVertically||null!=s&&s<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=this._viewportRect,r=Math.max(t.x+e.width-i.width,0),s=Math.max(t.y+e.height-i.height,0),o=Math.max(i.top-n.top-t.y,0),a=Math.max(i.left-n.left-t.x,0);let c=0,l=0;return c=e.width<=i.width?a||-r:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)l=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)c=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-i/2)}return{top:s,left:c,bottom:o,right:l,width:a,height:r}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=Object(c.d)(n.height),i.top=Object(c.d)(n.top),i.bottom=Object(c.d)(n.bottom),i.width=Object(c.d)(n.width),i.left=Object(c.d)(n.left),i.right=Object(c.d)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=Object(c.d)(t)),r&&(i.maxWidth=Object(c.d)(r))}this._lastBoundingBoxSize=n,N(this._boundingBox.style,i)}_resetBoundingBoxStyles(){N(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){N(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();N(n,this._getExactOverlayY(e,t,i)),N(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),s.maxHeight&&(i?n.maxHeight=Object(c.d)(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=Object(c.d)(s.maxWidth):r&&(n.maxWidth="")),N(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=Object(c.d)(r.y),i}_getExactOverlayX(t,e,n){let i,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Object(c.d)(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:C(t,n),isOriginOutsideView:x(t,n),isOverlayClipped:C(e,n),isOverlayOutsideView:x(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Object(c.b)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof r.l)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function N(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function V(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(j);return n&&"px"!==n?null:parseFloat(e)}return t||null}class U{constructor(t,e,n,i,r,s,o){this._preferredPositions=[],this._positionStrategy=new F(n,i,r,s,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const r=new O(t,e,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const B="cdk-global-overlay-wrapper";class z{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(B),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:r,maxWidth:s,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(B),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let H=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new z}connectedTo(t,e,n){return new U(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new F(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(i.e),r.Zb(a.d),r.Zb(s.a),r.Zb(P))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(i.e),Object(r.Zb)(a.d),Object(r.Zb)(s.a),Object(r.Zb)(P))},token:t,providedIn:"root"}),t})(),W=0,K=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=s,this._ngZone=o,this._document=a,this._directionality=c,this._location=l,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new k(t);return r.direction=r.direction||this._directionality.value,new R(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+W++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(r.g)),new l.f(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(E),r.Zb(P),r.Zb(r.j),r.Zb(H),r.Zb(I),r.Zb(r.t),r.Zb(r.B),r.Zb(a.d),r.Zb(o.b),r.Zb(a.j),r.Zb(T))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})();const q=[{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"}],Y=new r.s("cdk-connected-overlay-scroll-strategy");let Z=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(r.l))},t.\u0275dir=r.Kb({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),X=(()=>{class t{constructor(t,e,n,i,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=u.a.EMPTY,this._attachSubscription=u.a.EMPTY,this._detachSubscription=u.a.EMPTY,this._positionSubscription=u.a.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new r.o,this.positionChange=new r.o,this.attach=new r.o,this.detach=new r.o,this.overlayKeydown=new r.o,this.overlayOutsideClick=new r.o,this._templatePortal=new l.i(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Object(c.c)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Object(c.c)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Object(c.c)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Object(c.c)(t)}get push(){return this._push}set push(t){this._push=Object(c.c)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=q);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==_.f||this.disableClose||Object(_.r)(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new k({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new b(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(K),r.Pb(r.O),r.Pb(r.S),r.Pb(Y),r.Pb(o.b,8))},t.\u0275dir=r.Kb({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[r.Bb]}),t})();const G={provide:Y,deps:[K],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let $=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},providers:[K,G],imports:[[o.a,l.h,i.d],i.d]}),t})()},"1sBl":function(t,e,n){var i=n("e/Dd").getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];for(var e=Math.floor(t/7)+2,n=i(t),r=145===n?26:2*Math.ceil((n-13)/(2*e-2)),s=[n-7],o=1;o{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=r}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class u extends h{}let d=(()=>{class t extends a{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.O),i.Pb(i.S))},t.\u0275dir=i.Kb({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.Ab]}),t})(),f=(()=>{class t extends l{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.o,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.j),i.Pb(i.S),i.Pb(r.d))},t.\u0275dir=i.Kb({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Ab]}),t})(),p=(()=>{class t extends f{}return t.\u0275fac=function(e){return m(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[i.Cb([{provide:f,useExisting:t}]),i.Ab]}),t})();const m=i.Xb(p);let b=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})()},2:function(t,e){},"2QA8":function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("XNiG"),r=n("9ppp");class s extends i.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",function(){return r});let i=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},"2h+y":function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"d",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return c});var i=n("8Y7J"),r=n("mZtN");let s=(()=>{class t{constructor(t){this.sessionService=t}canActivate(){return!!this.sessionService.getItem("token")}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(r.a))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),o=(()=>{class t{constructor(t){this.sessionService=t}canActivate(){return!!this.sessionService.getItem("lndUnlocked")}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(r.a))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),a=(()=>{class t{constructor(t){this.sessionService=t}canActivate(){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(r.a))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),c=(()=>{class t{constructor(t){this.sessionService=t}canActivate(){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(r.a))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})()},"2j6C":function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=n,n.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},"2q5Q":function(t,e){t.exports="function"==typeof Object.create?function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},3:function(t,e){},"3BRs":function(t,e,n){"use strict";var i=n("lm0R");function r(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var i=t.entry;for(t.entry=null;i;){var r=i.callback;e.pendingcb--,r(void 0),i=i.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=b;var s,o=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:i.nextTick;b.WritableState=m;var a=Object.create(n("Onz0"));a.inherits=n("P7XM");var c,l={deprecate:n("t9FE")},h=n("QpuX"),u=n("hwdV").Buffer,d=global.Uint8Array||function(){},f=n("RoFp");function p(){}function m(t,e){s=s||n("sZro");var a=e instanceof s;this.objectMode=!!(t=t||{}).objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var c=t.highWaterMark,l=t.writableHighWaterMark;this.highWaterMark=c||0===c?c:a&&(l||0===l)?l:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===t.decodeStrings),this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,s=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,s){--e.pendingcb,n?(i.nextTick(s,r),i.nextTick(x,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(s(r),t._writableState.errorEmitted=!0,t.emit("error",r),x(t,e))}(t,n,r,e,s);else{var a=v(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||y(t,n),r?o(_,t,n,a,s):_(t,n,a,s)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function b(t){if(s=s||n("sZro"),!(c.call(b,this)||this instanceof s))return new b(t);this._writableState=new m(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),h.call(this)}function g(t,e,n,i,r,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,n?t._writev(r,e.onwrite):t._write(r,s,e.onwrite),e.sync=!1}function _(t,e,n,i){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,i(),x(t,e)}function y(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=new Array(e.bufferedRequestCount),s=e.corkedRequestsFree;s.entry=n;for(var o=0,a=!0;n;)i[o]=n,n.isBuf||(a=!1),n=n.next,o+=1;i.allBuffers=a,g(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new r(e),e.bufferedRequestCount=0}else{for(;n;){var c=n.chunk;if(g(t,e,!1,e.objectMode?1:c.length,c,n.encoding,n.callback),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function v(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function w(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),x(t,e)})}function x(t,e){var n=v(e);return n&&(function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,i.nextTick(w,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}a.inherits(b,h),m.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(m.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(t){return!!c.call(this,t)||this===b&&t&&t._writableState instanceof m}})):c=function(t){return t instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(t,e,n){var r,s=this._writableState,o=!1,a=!s.objectMode&&(u.isBuffer(r=t)||r instanceof d);return a&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"==typeof e&&(n=e,e=null),a?e="buffer":e||(e=s.defaultEncoding),"function"!=typeof n&&(n=p),s.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),i.nextTick(e,n)}(this,n):(a||function(t,e,n,r){var s=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),i.nextTick(r,o),s=!1),s}(this,s,t,n))&&(s.pendingcb++,o=function(t,e,n,i,r,s){if(!n){var o=function(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,n)),e}(e,i,r);i!==o&&(n=!0,r="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var c=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,x(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),b.prototype.destroy=f.destroy,b.prototype._undestroy=f.undestroy,b.prototype._destroy=function(t,e){this.end(),e(t)}},"3E0/":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("D0XW"),r=n("mlxB"),s=n("7o/Q"),o=n("WMd4");function a(t,e=i.a){const n=Object(r.a)(t)?+t-e.now():Math.abs(t);return t=>t.lift(new c(n,e))}class c{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}class l extends s.a{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,r=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(l.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new h(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(o.a.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(o.a.createComplete()),this.unsubscribe()}}class h{constructor(t,e){this.time=t,this.notification=e}}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("quSY");class r extends i.a{constructor(t,e){super()}schedule(t,e=0){return this}}class s extends r{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"3UWI":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("D0XW"),r=n("zx2A");class s{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends r.b{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=Object(r.c)(n,new r.a(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n("PqYM");function c(t,e=i.a){return n=()=>Object(a.a)(t,e),function(t){return t.lift(new s(n))};var n}},"3X7Y":function(t,e,n){var i=n("u/Db");function r(t){this.mode=i.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){var e,n,i;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),i=parseInt(n,10),t.put(i,10);var r=this.data.length-e;r>0&&(n=this.data.substr(e),i=parseInt(n,10),t.put(i,3*r+1))},t.exports=r},4:function(t,e){},"40+f":function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return w}),n.d(e,"c",function(){return h});var i=n("8Y7J"),r=n("UhP/"),s=n("8LU1"),o=n("9gLZ");const a=["*"],c=".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.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}\n",l=new i.s("MAT_GRID_LIST");let h=(()=>{class t{constructor(t,e){this._element=t,this._gridList=e,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(t){this._rowspan=Math.round(Object(s.f)(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round(Object(s.f)(t))}_setStyle(t,e){this._element.nativeElement.style[t]=e}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(l,8))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&i.Eb("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:a,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(t,e){1&t&&(i.nc(),i.Vb(0,"figure",0),i.mc(1),i.Ub())},styles:[c],encapsulation:2,changeDetection:0}),t})();class u{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const t=Math.max(...this.tracker);return t>1?this.rowCount+t-1:this.rowCount}update(t,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(t=>this._trackTile(t))}_trackTile(t){const e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new d(this.rowIndex,e)}_findMatchingGap(t){let e=-1,n=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e)):(e=this.tracker.indexOf(0,this.columnIndex),-1!=e?(n=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e)))}while(n-e{t._setStyle("top",null),t._setStyle("height",null)})}}class b extends p{constructor(t){super(),this._parseRatio(t)}setRowStyles(t,e,n,i){this.baseTileHeight=this.getBaseTileSize(n/this.rowHeightRatio,i),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",_(this.getTileSize(this.baseTileHeight,t.rowspan)))}getComputedHeight(){return["paddingBottom",_(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach(t=>{t._setStyle("marginTop",null),t._setStyle("paddingTop",null)})}_parseRatio(t){const e=t.split(":");this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}class g extends p{setRowStyles(t,e){let n=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(n,e)),t._setStyle("height",_(this.getTileSize(n,t.rowspan)))}reset(t){t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function _(t){return`calc(${t})`}function y(t){return t.match(/([A-Za-z%]+)$/)?t:t+"px"}let v=(()=>{class t{constructor(t,e){this._element=t,this._dir=e,this._gutter="1px"}get cols(){return this._cols}set cols(t){this._cols=Math.max(1,Math.round(Object(s.f)(t)))}get gutterSize(){return this._gutter}set gutterSize(t){this._gutter=""+(null==t?"":t)}get rowHeight(){return this._rowHeight}set rowHeight(t){const e=""+(null==t?"":t);e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new g:t&&t.indexOf(":")>-1?new b(t):new m(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new u);const t=this._tileCoordinator,e=this._tiles.filter(t=>!t._gridList||t._gridList===this),n=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,e),this._tileStyler.init(this.gutterSize,t,this.cols,n),e.forEach((e,n)=>{const i=t.positions[n];this._tileStyler.setStyle(e,i.row,i.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(o.b,8))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,n){if(1&t&&i.Ib(n,h,!0),2&t){let t;i.vc(t=i.ec())&&(e._tiles=t)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&i.Eb("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[i.Cb([{provide:l,useExisting:t}])],ngContentSelectors:a,decls:2,vars:0,template:function(t,e){1&t&&(i.nc(),i.Vb(0,"div"),i.mc(1),i.Ub())},styles:[c],encapsulation:2,changeDetection:0}),t})(),w=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[r.k,r.i],r.k,r.i]}),t})()},"43KI":function(t,e,n){(e=t.exports=n("rXFu")).Stream=e,e.Readable=e,e.Writable=n("3BRs"),e.Duplex=n("sZro"),e.Transform=n("J78i"),e.PassThrough=n("eA/Y")},"49sm":function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},"4Hv8":function(t,e,n){var i=n("WnY+"),r=n("tcrS"),s=n("afKu"),o=n("hwdV").Buffer,a=n("fSpj"),c=n("n53Y"),l=n("i+bA"),h=o.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(t,e,n){var a=function(t){return"rmd160"===t||"ripemd160"===t?function(t){return(new r).update(t).digest()}:"md5"===t?i:function(e){return s(t).update(e).digest()}}(t),c="sha512"===t||"sha384"===t?128:64;e.length>c?e=a(e):e.length{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"4dMO":function(t,e,n){var i=n("MzeL"),r=n("AQYT");t.exports=function(t){return new o(t)};var s={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(t){this.curveType=s[t],this.curveType||(this.curveType={name:t}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function a(t,e,n){Array.isArray(t)||(t=t.toArray());var i=new Buffer(t);if(n&&i.length{class t{constructor(t,e,n,i,o){this.dialogRef=t,this.data=e,this.logger=n,this.commonService=i,this.snackBar=o,this.faReceipt=r.D,this.faExclamationTriangle=r.o,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.q}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.q.XS&&(this.qrWidth=220)}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(t){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(i.f),o.Pb(i.a),o.Pb(a.b),o.Pb(c.a),o.Pb(l.b))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-invoice-information"]],decls:51,vars:38,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","65",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-1"],["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"],[3,"ngClass"],["fxLayout","column"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Qb(2,"qrcode",2),o.Ub(),o.Vb(3,"div",3),o.Vb(4,"mat-card-header",4),o.Vb(5,"div",5),o.Qb(6,"fa-icon",6),o.Vb(7,"span",7),o.Kc(8),o.Ub(),o.Ub(),o.Vb(9,"button",8),o.dc("click",function(){return e.onClose()}),o.Kc(10,"X"),o.Ub(),o.Ub(),o.Vb(11,"mat-card-content",9),o.Vb(12,"div",10),o.Vb(13,"div",11),o.Qb(14,"qrcode",2),o.Ub(),o.Ic(15,v,5,2,"div",12),o.Vb(16,"div",13),o.Vb(17,"div",14),o.Vb(18,"h4",15),o.Kc(19),o.Ub(),o.Vb(20,"span",16),o.Kc(21),o.ic(22,"number"),o.Ic(23,w,2,0,"ng-container",17),o.Ub(),o.Ub(),o.Vb(24,"div",14),o.Vb(25,"h4",15),o.Kc(26,"Date Expiry"),o.Ub(),o.Vb(27,"span",16),o.Kc(28),o.Ub(),o.Ub(),o.Ub(),o.Qb(29,"mat-divider",18),o.Vb(30,"div",13),o.Vb(31,"div",19),o.Vb(32,"h4",15),o.Kc(33,"Description"),o.Ub(),o.Vb(34,"span",16),o.Kc(35),o.Ub(),o.Ub(),o.Ub(),o.Qb(36,"mat-divider",18),o.Vb(37,"div",13),o.Vb(38,"div",19),o.Vb(39,"h4",15),o.Kc(40,"Invoice"),o.Ub(),o.Vb(41,"span",20),o.Kc(42),o.Ub(),o.Ub(),o.Ub(),o.Ic(43,x,35,10,"div",17),o.Vb(44,"div",21),o.Vb(45,"button",22),o.dc("click",function(){return e.onShowAdvanced()}),o.Ic(46,C,2,0,"p",23),o.Ic(47,S,2,0,"ng-template",null,24,o.Jc),o.Ub(),o.Vb(49,"button",25),o.dc("copied",function(t){return e.onCopyPayment(t)}),o.Kc(50,"Copy Invoice"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=o.wc(48);o.Db(1),o.oc("ngClass",o.sc(29,E,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),o.Db(1),o.oc("qrdata",e.invoice.bolt11)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),o.Db(4),o.oc("icon",e.faReceipt),o.Db(2),o.Lc(e.screenSize===e.screenSizeEnum.XS?e.newlyAdded?"Created":"Invoice":e.newlyAdded?"Invoice Created":"Invoice Information"),o.Db(3),o.oc("ngClass",o.sc(31,k,e.screenSize===e.screenSizeEnum.XS)),o.Db(2),o.oc("ngClass",o.sc(33,E,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),o.Db(1),o.oc("qrdata",e.invoice.bolt11)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),o.Db(1),o.oc("ngIf",e.invoice.warning_capacity),o.Db(4),o.Lc(e.screenSize===e.screenSizeEnum.XS?"Amount":"Amount Requested"),o.Db(2),o.Mc("",o.jc(22,27,e.invoice.msatoshi/1e3||0)," Sats"),o.Db(2),o.oc("ngIf",!e.invoice.msatoshi),o.Db(5),o.Lc(e.invoice.expires_at_str),o.Db(7),o.Lc(e.invoice.description||"-"),o.Db(7),o.Lc(e.invoice.bolt11),o.Db(1),o.oc("ngIf",e.showAdvanced),o.Db(1),o.oc("ngClass",o.tc(35,O,!e.showAdvanced,e.showAdvanced)),o.Db(2),o.oc("ngIf",!e.showAdvanced)("ngIfElse",t),o.Db(3),o.oc("payload",e.invoice.bolt11)}},directives:[h.c,h.b,h.a,u.m,d.a,f.a,p.c,m.a,b.a,p.b,u.o,g.a,_.a,y.a],pipes:[u.f,u.x],styles:[""]}),t})()},5:function(t,e){},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("lJxs"),r=n("Cfvw"),s=n("zx2A");function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?s=>s.pipe(o((n,s)=>Object(r.a)(t(n,s)).pipe(Object(i.a)((t,i)=>e(n,t,s,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new c(t,this.project,this.concurrent))}}class c extends s.b{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"5QHs":function(t,e,n){"use strict";n.d(e,"a",function(){return S}),n.d(e,"b",function(){return _}),n.d(e,"c",function(){return E});var i=n("SVse"),r=n("8Y7J"),s=n("UhP/"),o=n("Dxy4"),a=n("ZTz/"),c=n("ZFy/"),l=n("8LU1"),h=n("XNiG"),u=n("Q2Ze");function d(t,e){if(1&t&&(r.Vb(0,"mat-option",19),r.Kc(1),r.Ub()),2&t){const t=e.$implicit;r.oc("value",t),r.Db(1),r.Mc(" ",t," ")}}function f(t,e){if(1&t){const t=r.Wb();r.Vb(0,"mat-form-field",16),r.Vb(1,"mat-select",17),r.dc("selectionChange",function(e){return r.zc(t),r.hc(2)._changePageSize(e.value)}),r.Ic(2,d,2,2,"mat-option",18),r.Ub(),r.Ub()}if(2&t){const t=r.hc(2);r.oc("appearance",t._formFieldAppearance)("color",t.color),r.Db(1),r.oc("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),r.Db(1),r.oc("ngForOf",t._displayedPageSizeOptions)}}function p(t,e){if(1&t&&(r.Vb(0,"div",20),r.Kc(1),r.Ub()),2&t){const t=r.hc(2);r.Db(1),r.Lc(t.pageSize)}}function m(t,e){if(1&t&&(r.Vb(0,"div",12),r.Vb(1,"div",13),r.Kc(2),r.Ub(),r.Ic(3,f,3,6,"mat-form-field",14),r.Ic(4,p,2,1,"div",15),r.Ub()),2&t){const t=r.hc();r.Db(2),r.Mc(" ",t._intl.itemsPerPageLabel," "),r.Db(1),r.oc("ngIf",t._displayedPageSizeOptions.length>1),r.Db(1),r.oc("ngIf",t._displayedPageSizeOptions.length<=1)}}function b(t,e){if(1&t){const t=r.Wb();r.Vb(0,"button",21),r.dc("click",function(){return r.zc(t),r.hc().firstPage()}),r.gc(),r.Vb(1,"svg",7),r.Qb(2,"path",22),r.Ub(),r.Ub()}if(2&t){const t=r.hc();r.oc("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),r.Eb("aria-label",t._intl.firstPageLabel)}}function g(t,e){if(1&t){const t=r.Wb();r.gc(),r.fc(),r.Vb(0,"button",23),r.dc("click",function(){return r.zc(t),r.hc().lastPage()}),r.gc(),r.Vb(1,"svg",7),r.Qb(2,"path",24),r.Ub(),r.Ub()}if(2&t){const t=r.hc();r.oc("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),r.Eb("aria-label",t._intl.lastPageLabel)}}let _=(()=>{class t{constructor(){this.changes=new h.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,n)=>{if(0==n||0==e)return"0 of "+n;const i=t*e;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+e,n):i+e} of ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const y={provide:_,deps:[[new r.C,new r.M,_]],useFactory:function(t){return t||new _}},v=new r.s("MAT_PAGINATOR_DEFAULT_OPTIONS");class w{}const x=Object(s.z)(Object(s.B)(w));let C=(()=>{class t extends x{constructor(t,e,n){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new r.o,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:t,pageSizeOptions:e,hidePageSize:i,showFirstLastButtons:r}=n;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=i&&(this._hidePageSize=i),null!=r&&(this._showFirstLastButtons=r)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(Object(l.f)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Object(l.f)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Object(l.f)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Object(l.f)(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=Object(l.c)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=Object(l.c)(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(_),r.Pb(r.h),r.Pb(void 0))},t.\u0275dir=r.Kb({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[r.Ab]}),t})(),S=(()=>{class t extends C{constructor(t,e,n){super(t,e,n),n&&null!=n.formFieldAppearance&&(this._formFieldAppearance=n.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(_),r.Pb(r.h),r.Pb(v,8))},t.\u0275cmp=r.Jb({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[r.Ab],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(r.Vb(0,"div",0),r.Vb(1,"div",1),r.Ic(2,m,5,3,"div",2),r.Vb(3,"div",3),r.Vb(4,"div",4),r.Kc(5),r.Ub(),r.Ic(6,b,3,5,"button",5),r.Vb(7,"button",6),r.dc("click",function(){return e.previousPage()}),r.gc(),r.Vb(8,"svg",7),r.Qb(9,"path",8),r.Ub(),r.Ub(),r.fc(),r.Vb(10,"button",9),r.dc("click",function(){return e.nextPage()}),r.gc(),r.Vb(11,"svg",7),r.Qb(12,"path",10),r.Ub(),r.Ub(),r.Ic(13,g,3,5,"button",11),r.Ub(),r.Ub(),r.Ub()),2&t&&(r.Db(2),r.oc("ngIf",!e.hidePageSize),r.Db(3),r.Mc(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),r.Db(1),r.oc("ngIf",e.showFirstLastButtons),r.Db(1),r.oc("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),r.Eb("aria-label",e._intl.previousPageLabel),r.Db(3),r.oc("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),r.Eb("aria-label",e._intl.nextPageLabel),r.Db(3),r.oc("ngIf",e.showFirstLastButtons))},directives:[i.o,o.a,c.a,u.c,a.a,i.n,s.m],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),E=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},providers:[y],imports:[[i.c,o.b,a.b,c.b,s.i]]}),t})()},6:function(t,e){},"6F8h":function(t){t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},"6lN/":function(t,e,n){"use strict";var i=n("AQYT"),r=n("86MQ"),s=r.getNAF,o=r.getJSF,a=r.assert;function c(t,e){this.type=t,this.p=new i(e.p,16),this.red=e.prime?i.red(e.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=e.n&&new i(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(t,e){a(t.precomputed);var n=t._getDoubles(),i=s(e,1,this._bitLength),r=(1<=c;e--)l=(l<<1)+i[e];o.push(l)}for(var h=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=r;d>0;d--){for(c=0;c=0;l--){for(e=0;l>=0&&0===o[l];l--)e++;if(l>=0&&e++,c=c.dblp(e),l<0)break;var h=o[l];a(0!==h),c="affine"===t.type?c.mixedAdd(h>0?r[h-1>>1]:r[-h-1>>1].neg()):c.add(h>0?r[h-1>>1]:r[-h-1>>1].neg())}return"affine"===t.type?c.toP():c},c.prototype._wnafMulAdd=function(t,e,n,i,r){for(var a=this._wnafT1,c=this._wnafT2,l=this._wnafT3,h=0,u=0;u=1;u-=2){var f=u-1,p=u;if(1===a[f]&&1===a[p]){var m=[e[f],null,null,e[p]];0===e[f].y.cmp(e[p].y)?(m[1]=e[f].add(e[p]),m[2]=e[f].toJ().mixedAdd(e[p].neg())):0===e[f].y.cmp(e[p].y.redNeg())?(m[1]=e[f].toJ().mixedAdd(e[p]),m[2]=e[f].add(e[p].neg())):(m[1]=e[f].toJ().mixedAdd(e[p]),m[2]=e[f].toJ().mixedAdd(e[p].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],g=o(n[f],n[p]);h=Math.max(g[0].length,h),l[f]=new Array(h),l[p]=new Array(h);for(var _=0;_=0;u--){for(var w=0;u>=0;){var x=!0;for(_=0;_=0&&w++,y=y.dblp(w),u<0)break;for(_=0;_0?C=c[_][S-1>>1]:S<0&&(C=c[_][-S-1>>1].neg()),y="affine"===C.type?y.mixedAdd(C):y.add(C))}}for(u=0;u=Math.ceil((t.bitLength()+1)/e.step)},l.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,r=0;rPromise.resolve())(),s={};function o(t){return t in s&&(delete s[t],!0)}const a={setImmediate(t){const e=i++;return s[e]=!0,r.then(()=>o(e)&&t()),e},clearImmediate(t){o(t)}};var c=n("3N8a");class l extends c.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}}var h=n("IjjT");class u extends h.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new r.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new o.a(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Object(c.a)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(s.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(l.a)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return Object(a.a)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(i.B),i.Zb(u.a),i.Zb(d.d,8))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(i.B),Object(i.Zb)(u.a),Object(i.Zb)(d.d,8))},token:t,providedIn:"root"}),t})(),m=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new r.a,this._elementScrolled=new o.a(t=>this.ngZone.runOutsideAngular(()=>Object(a.a)(this.elementRef.nativeElement,"scroll").pipe(Object(h.a)(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Object(u.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(u.d)()?t.left=t.right:1==Object(u.d)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;Object(u.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e="left",n="right",i=this.elementRef.nativeElement;if("top"==t)return i.scrollTop;if("bottom"==t)return i.scrollHeight-i.clientHeight-i.scrollTop;const r=this.dir&&"rtl"==this.dir.value;return"start"==t?t=r?n:e:"end"==t&&(t=r?e:n),r&&2==Object(u.d)()?t==e?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:r&&1==Object(u.d)()?t==e?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:t==e?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(p),i.Pb(i.B),i.Pb(f.b,8))},t.\u0275dir=i.Kb({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),b=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new r.a,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Object(c.a)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(u.a),i.Zb(i.B),i.Zb(d.d,8))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(u.a),Object(i.Zb)(i.B),Object(i.Zb)(d.d,8))},token:t,providedIn:"root"}),t})(),g=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})(),_=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[f.a,u.b,g],f.a,g]}),t})()},"7bNT":function(t,e,n){"use strict";n.d(e,"a",function(){return H}),n.d(e,"b",function(){return N}),n.d(e,"c",function(){return ot}),n.d(e,"d",function(){return W});var i=n("tqRt"),r=n("VRyK"),s=n("HDdC"),o=n("XNiG"),a=(n("NXyV"),n("WMd4")),c=n("7o/Q");class l{call(t,e){return e.subscribe(new h(t))}}class h extends c.a{_next(t){}}class u{call(t,e){return e.subscribe(new d(t))}}class d extends c.a{constructor(t){super(t)}_next(t){this.destination.next(a.a.createNext(t))}_error(t){const e=this.destination;e.next(a.a.createError(t)),e.complete()}_complete(){const t=this.destination;t.next(a.a.createComplete()),t.complete()}}var f=n("lJxs"),p=n("JIr8"),m=n("pLZG"),b=n("quSY");function g(t,e,n,i){return r=>r.lift(new _(t,e,n,i))}class _{constructor(t,e,n,i){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=i}call(t,e){return e.subscribe(new y(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class y extends c.a{constructor(t,e,n,i,r){super(t),this.keySelector=e,this.elementSelector=n,this.durationSelector=i,this.subjectSelector=r,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(t){let e;try{e=this.keySelector(t)}catch(n){return void this.error(n)}this._group(t,e)}_group(t,e){let n=this.groups;n||(n=this.groups=new Map);let i,r=n.get(e);if(this.elementSelector)try{i=this.elementSelector(t)}catch(s){this.error(s)}else i=t;if(!r){r=this.subjectSelector?this.subjectSelector():new o.a,n.set(e,r);const t=new w(e,r,this);if(this.destination.next(t),this.durationSelector){let t;try{t=this.durationSelector(new w(e,r))}catch(s){return void this.error(s)}this.add(t.subscribe(new v(e,r,this)))}}r.closed||r.next(i)}_error(t){const e=this.groups;e&&(e.forEach((e,n)=>{e.error(t)}),e.clear()),this.destination.error(t)}_complete(){const t=this.groups;t&&(t.forEach((t,e)=>{t.complete()}),t.clear()),this.destination.complete()}removeGroup(t){this.groups.delete(t)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class v extends c.a{constructor(t,e,n){super(e),this.key=t,this.group=e,this.parent=n}_next(t){this.complete()}_unsubscribe(){const{parent:t,key:e}=this;this.key=this.parent=null,t&&t.removeGroup(e)}}class w extends s.a{constructor(t,e,n){super(),this.key=t,this.groupSubject=e,this.refCountSubscription=n}_subscribe(t){const e=new b.a,{refCountSubscription:n,groupSubject:i}=this;return n&&!n.closed&&e.add(new x(n)),e.add(i.subscribe(t)),e}}class x extends b.a{constructor(t){super(),this.parent=t,t.count++}unsubscribe(){const t=this.parent;t.closed||this.closed||(super.unsubscribe(),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())}}var C=n("5+tZ"),S=n("Cfvw"),E=n("zx2A");function k(t,e){return e?n=>n.pipe(k((n,i)=>Object(S.a)(t(n,i)).pipe(Object(f.a)((t,r)=>e(n,t,i,r))))):e=>e.lift(new O(t))}class O{constructor(t){this.project=t}call(t,e){return e.subscribe(new A(t,this.project))}}class A extends E.b{constructor(t,e){super(t),this.project=e,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(t){this.hasSubscription||this.tryNext(t)}tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(e)}_innerSub(t){const e=new E.a(this),n=this.destination;n.add(e);const i=Object(E.c)(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}class D{call(t,e){return e.subscribe(new I(t))}}class I extends c.a{constructor(t){super(t)}_next(t){t.observe(this.destination)}}var T=n("IzEk"),L=(n("bOdf"),n("nYR2"),n("8Y7J"));const P={dispatch:!0,useEffectsErrorHandler:!0},R="__@ngrx/effects_create__";function M(t){return Object.getOwnPropertyNames(t).filter(e=>t[e]&&t[e].hasOwnProperty(R)).map(e=>Object.assign({propertyName:e},t[e][R]))}function j(t){return Object.getPrototypeOf(t)}const F="__@ngrx/effects__";function N(t={}){return function(e,n){var i,r;i=e,r=Object.assign(Object.assign(Object.assign({},P),t),{propertyName:n}),U(i)?i.constructor[F].push(r):Object.defineProperty(i.constructor,F,{value:[r]})}}function V(t){return Object(i.m)(B,j)(t)}function U(t){return t.constructor.hasOwnProperty(F)}function B(t){return U(t)?t.constructor[F]:[]}function z(t,e,n=10){return t.pipe(Object(p.a)(i=>(e&&e.handleError(i),n<=1?t:z(t,e,n-1))))}let H=(()=>{class t extends s.a{constructor(t){super(),t&&(this.source=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}}return t.\u0275fac=function(e){return new(e||t)(L.Zb(i.f))},t.\u0275prov=L.Lb({token:t,factory:t.\u0275fac}),t})();function W(...t){return Object(m.a)(e=>t.some(t=>"string"==typeof t?t===e.type:t.type===e.type))}function K(t){return q(t,"ngrxOnInitEffects")}function q(t,e){return t&&e in t&&"function"==typeof t[e]}const Y=new L.s("@ngrx/effects Internal Root Guard"),Z=(new L.s("ngrx/effects: Immediate Effects"),new L.s("ngrx/effects: User Provided Effects")),X=new L.s("ngrx/effects: Internal Root Effects"),G=new L.s("ngrx/effects: Root Effects"),$=new L.s("ngrx/effects: Internal Feature Effects"),Q=new L.s("ngrx/effects: Feature Effects"),J=new L.s("ngrx/effects: Effects Error Handler");let tt=(()=>{class t extends o.a{constructor(t,e){super(),this.errorHandler=t,this.effectsErrorHandler=e}addEffects(t){this.next(t)}toActions(){return this.pipe(g(j),Object(C.a)(t=>t.pipe(g(et))),Object(C.a)(t=>{const e=t.pipe(k(t=>{return(e=this.errorHandler,n=this.effectsErrorHandler,t=>{const i=function(t,e,n){const i=j(t).constructor.name,s=(o=t,[V,M].reduce((t,e)=>t.concat(e(o)),[])).map(({propertyName:r,dispatch:s,useEffectsErrorHandler:o})=>{const a="function"==typeof t[r]?t[r]():t[r],c=o?n(a,e):a;return!1===s?c.pipe(function(t){return t.lift(new l)}):c.pipe(function(t){return t.lift(new u)}).pipe(Object(f.a)(e=>({effect:t[r],notification:e,propertyName:r,sourceName:i,sourceInstance:t})))});var o;return Object(r.a)(...s)}(t,e,n);return q(t,"ngrxOnRunEffects")?t.ngrxOnRunEffects(i):i})(t);var e,n}),Object(f.a)(t=>(function(t,e){if("N"===t.notification.kind){const n=t.notification.value;!function(t){return"function"!=typeof t&&t&&t.type&&"string"==typeof t.type}(n)&&e.handleError(new Error(`Effect ${function({propertyName:t,sourceInstance:e,sourceName:n}){const i="function"==typeof e[t];return`"${n}.${String(t)}${i?"()":""}"`}(t)} dispatched an invalid action: ${function(t){try{return JSON.stringify(t)}catch(e){return t}}(n)}`))}}(t,this.errorHandler),t.notification)),Object(m.a)(t=>"N"===t.kind),function(t){return t.lift(new D)}),n=t.pipe(Object(T.a)(1),Object(m.a)(K),Object(f.a)(t=>t.ngrxOnInitEffects()));return Object(r.a)(e,n)}))}}return t.\u0275fac=function(e){return new(e||t)(L.Zb(L.n),L.Zb(J))},t.\u0275prov=L.Lb({token:t,factory:t.\u0275fac}),t})();function et(t){return q(t,"ngrxOnIdentifyEffects")?t.ngrxOnIdentifyEffects():""}let nt=(()=>{class t{constructor(t,e){this.effectSources=t,this.store=e,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(L.Zb(tt),L.Zb(i.h))},t.\u0275prov=L.Lb({token:t,factory:t.\u0275fac}),t})();const it="@ngrx/effects/init";Object(i.n)(it);let rt=(()=>{class t{constructor(t,e,n,i,r,s,o){this.sources=t,e.start(),i.forEach(e=>t.addEffects(e)),n.dispatch({type:it})}addEffects(t){this.sources.addEffects(t)}}return t.\u0275mod=L.Nb({type:t}),t.\u0275inj=L.Mb({factory:function(e){return new(e||t)(L.Zb(tt),L.Zb(nt),L.Zb(i.h),L.Zb(G),L.Zb(i.k,8),L.Zb(i.i,8),L.Zb(Y,8))}}),t})(),st=(()=>{class t{constructor(t,e,n,i){e.forEach(e=>e.forEach(e=>t.addEffects(e)))}}return t.\u0275mod=L.Nb({type:t}),t.\u0275inj=L.Mb({factory:function(e){return new(e||t)(L.Zb(rt),L.Zb(Q),L.Zb(i.k,8),L.Zb(i.i,8))}}),t})(),ot=(()=>{class t{static forFeature(t=[]){return{ngModule:st,providers:[t,{provide:$,multi:!0,useValue:t},{provide:Z,multi:!0,useValue:[]},{provide:Q,multi:!0,useFactory:at,deps:[L.t,$,Z]}]}}static forRoot(t=[]){return{ngModule:rt,providers:[{provide:J,useValue:z},nt,tt,H,t,{provide:X,useValue:[t]},{provide:Y,useFactory:ct,deps:[[nt,new L.C,new L.M],[X,new L.L]]},{provide:Z,multi:!0,useValue:[]},{provide:G,useFactory:at,deps:[L.t,X,Z]}]}}}return t.\u0275mod=L.Nb({type:t}),t.\u0275inj=L.Mb({factory:function(e){return new(e||t)}}),t})();function at(t,e,n){const i=[];for(let r of e)i.push(...r);for(let r of n)i.push(...r);return function(t,e){return e.map(e=>t.get(e))}(t,i)}function ct(t,e){if((1!==e.length||0!==e[0].length)&&t)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},"7ckf":function(t,e,n){"use strict";var i=n("w8CP"),r=n("2j6C");function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=s,s.prototype.update=function(t,e){if(t=i.toArray(t,e),this.pending=this.pending?this.pending.concat(t):t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=i.join32(t,0,t.length-n,this.endian);for(var r=0;r>>24&255,i[r++]=t>>>16&255,i[r++]=t>>>8&255,i[r++]=255&t}else for(i[r++]=255&t,i[r++]=t>>>8&255,i[r++]=t>>>16&255,i[r++]=t>>>24&255,i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=0,s=8;sthis._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(Object(c.a)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"7o2P":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("LRne"),r=n("IzEk"),s=n("lJxs"),o=n("7nzP"),a=n("8Y7J"),c=n("iiaH");let l=(()=>{class t{constructor(t){this.dataService=t,this.currencyUnits=[],this.CurrencyUnitEnum=o.g,this.conversionData={data:null,last_fetched:null},this.screenSize=o.q.MD,this.containerSize={width:1200,height:800}}ngOnInit(){}getScreenSize(){return this.screenSize}setScreenSize(t){this.screenSize=t}getContainerSize(){return this.containerSize}setContainerSize(t,e){this.containerSize={width:t,height:e}}sortByKey(t,e,n,i="asc"){return t.sort("number"===n?"desc"===i?(t,n)=>+t[e]>+n[e]?-1:1:(t,n)=>+t[e]>+n[e]?1:-1:"desc"===i?(t,n)=>t[e]>n[e]?-1:1:(t,n)=>t[e]>n[e]?1:-1)}sortDescByKey(t,e){return t.sort(function(t,n){const i=+t[e],r=+n[e];return i>r?-1:ir?1:0})}camelCase(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(t,e)=>0==e?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,"")}titleCase(t){return t.charAt(0).toUpperCase()+t.substring(1).toLowerCase()}convertCurrency(t,e,n,o){let a=(new Date).valueOf();return o&&n?this.conversionData.data&&this.conversionData.last_fetched&&a(this.conversionData.data=i?JSON.parse(i):{},this.conversionData.last_fetched=a,this.convertWithFiat(t,e,n)))):Object(i.a)(this.convertWithoutFiat(t,e))}convertWithoutFiat(t,e){let n={};switch(n[o.g.SATS]=0,n[o.g.BTC]=0,e){case o.g.SATS:n[o.g.SATS]=t,n[o.g.BTC]=1e-8*t;break;case o.g.BTC:n[o.g.SATS]=1e8*t,n[o.g.BTC]=t}return n}convertWithFiat(t,e,n){let i={unit:n,symbol:this.conversionData.data[n].symbol};switch(i[o.g.SATS]=0,i[o.g.BTC]=0,i[o.g.OTHER]=0,e){case o.g.SATS:i[o.g.SATS]=t,i[o.g.BTC]=1e-8*t,i[o.g.OTHER]=1e-8*t*this.conversionData.data[n].last;break;case o.g.BTC:i[o.g.SATS]=1e8*t,i[o.g.BTC]=t,i[o.g.OTHER]=t*this.conversionData.data[n].last;break;case o.g.OTHER:i[o.g.SATS]=t/this.conversionData.data[n].last*1e8,i[o.g.BTC]=t/this.conversionData.data[n].last,i[o.g.OTHER]=t}return i}convertTime(t,e,n){switch(e){case o.v.SECS:switch(n){case o.v.MINS:t/=60;break;case o.v.HOURS:t/=3600;break;case o.v.DAYS:t/=86400}break;case o.v.MINS:switch(n){case o.v.SECS:t*=60;break;case o.v.HOURS:t/=60;break;case o.v.DAYS:t/=1440}break;case o.v.HOURS:switch(n){case o.v.SECS:t*=3600;break;case o.v.MINS:t*=60;break;case o.v.DAYS:t/=24}break;case o.v.DAYS:switch(n){case o.v.SECS:t=3600*t*24;break;case o.v.MINS:t=60*t*24;break;case o.v.HOURS:t*=24}}return t}convertTimestampToDate(t){return new Date(1e3*t).toUTCString().substring(5,22).replace(" ","/").replace(" ","/").toUpperCase()}downloadFile(t,e,n=".json",i=".csv"){let r=new Blob;r=".json"===n?new Blob(["\ufeff"+this.convertToCSV(t)],{type:"text/csv;charset=utf-8;"}):new Blob(["\ufeff"+t],{type:"text;charset=utf-8;"});let s=document.createElement("a"),o=URL.createObjectURL(r);-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")&&s.setAttribute("target","_blank"),s.setAttribute("href",o),s.setAttribute("download",e+i),s.style.visibility="hidden",document.body.appendChild(s),s.click(),document.body.removeChild(s)}convertToCSV(t){let e=[],n="",i="",r="";"object"!=typeof t&&(t=JSON.parse(t)),t.forEach((t,n)=>{for(var i in t)e.findIndex(t=>t===i)<0&&e.push(i)});let s=e.join(",");return r=s+"\r\n",t.forEach(t=>{n="",e.forEach(e=>{t.hasOwnProperty(e)?Array.isArray(t[e])?(i="",t[e].forEach((t,e)=>{i+="object"==typeof t?"("+JSON.stringify(t).replace(/\,/g,";")+")":"("+t+")"}),n+=i+","):n+="object"==typeof t[e]?JSON.stringify(t[e]).replace(/\,/g,";")+",":t[e]+",":n+=","}),r+=n.slice(0,-1)+"\r\n"}),r}isVersionCompatible(t,e){let n=t.trim().replace("v","").split("-")[0].split("."),i=e.split(".");return+n[0]>+i[0]||+n[0]==+i[0]&&+n[1]>+i[1]||+n[0]==+i[0]&&+n[1]==+i[1]&&+n[2]>=+i[2]}}return t.\u0275fac=function(e){return new(e||t)(a.Zb(c.a))},t.\u0275prov=a.Lb({token:t,factory:t.\u0275fac}),t})()},"7zrB":function(t,e,n){"use strict";const i=n("ND7S"),r=n("IPZY"),s=n("P7XM");function o(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new o(t,e)},o.prototype._createNamed=function(t){const e=this.name;function n(t){this._initNamed(t,e)}return s(n,t),n.prototype._initNamed=function(e,n){t.call(this,e,n)},new n(this)},o.prototype._getDecoder=function(t){return this.decoders.hasOwnProperty(t=t||"der")||(this.decoders[t]=this._createNamed(r[t])),this.decoders[t]},o.prototype.decode=function(t,e,n){return this._getDecoder(e).decode(t,n)},o.prototype._getEncoder=function(t){return this.encoders.hasOwnProperty(t=t||"der")||(this.encoders[t]=this._createNamed(i[t])),this.encoders[t]},o.prototype.encode=function(t,e,n){return this._getEncoder(e).encode(t,n)}},"86MQ":function(t,e,n){"use strict";var i=e,r=n("AQYT"),s=n("2j6C"),o=n("dlgc");i.assert=s,i.toArray=o.toArray,i.zero2=o.zero2,i.toHex=o.toHex,i.encode=o.encode,i.getNAF=function(t,e,n){var i=new Array(Math.max(t.bitLength(),n)+1);i.fill(0);for(var r=1<(r>>1)-1?(r>>1)-c:c):a=0,i[o]=a,s.iushrn(1)}return i},i.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var i=0,r=0;t.cmpn(-i)>0||e.cmpn(-r)>0;){var s,o,a,c=t.andln(3)+i&3,l=e.andln(3)+r&3;3===c&&(c=-1),3===l&&(l=-1),s=0==(1&c)?0:3!=(a=t.andln(7)+i&7)&&5!==a||2!==l?c:-c,n[0].push(s),o=0==(1&l)?0:3!=(a=e.andln(7)+r&7)&&5!==a||2!==c?l:-l,n[1].push(o),2*i===s+1&&(i=1-i),2*r===o+1&&(r=1-r),t.iushrn(1),e.iushrn(1)}return n},i.cachedProperty=function(t,e,n){var i="_"+e;t.prototype[e]=function(){return void 0!==this[i]?this[i]:this[i]=n.call(this)}},i.parseBytes=function(t){return"string"==typeof t?i.toArray(t,"hex"):t},i.intFromLE=function(t){return new r(t,"hex","le")}},"8LU1":function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return r}),n.d(e,"d",function(){return c}),n.d(e,"e",function(){return l}),n.d(e,"f",function(){return s}),n.d(e,"g",function(){return h});var i=n("8Y7J");function r(t){return null!=t&&""+t!="false"}function s(t,e=0){return o(t)?Number(t):e}function o(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function c(t){return null==t?"":"string"==typeof t?t:t+"px"}function l(t){return t instanceof i.l?t.nativeElement:t}function h(t,e=/\s+/){const n=[];if(null!=t){const i=Array.isArray(t)?t:(""+t).split(e);for(const t of i){const e=(""+t).trim();e&&n.push(e)}}return n}},"8Qe2":function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"b",function(){return d});var i=n("UhP/"),r=n("YEUz"),s=n("8LU1"),o=n("omvX"),a=n("8Y7J");let c=0;class l{}const h=Object(i.z)(l);let u=(()=>{class t extends h{constructor(t,e,n,i,r){super(),this._ngZone=t,this._elementRef=e,this._ariaDescriber=n,this._renderer=i,this._animationMode=r,this._hasContent=!1,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=c++}get color(){return this._color}set color(t){this._setColor(t),this._color=t}get overlap(){return this._overlap}set overlap(t){this._overlap=Object(s.c)(t)}get description(){return this._description}set description(t){if(t!==this._description){const e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}get hidden(){return this._hidden}set hidden(t){this._hidden=Object(s.c)(t)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}ngOnChanges(t){const e=t.content;if(e){const t=e.currentValue;this._hasContent=null!=t&&(""+t).trim().length>0,this._updateTextContent()}}ngOnDestroy(){const t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}getBadgeElement(){return this._badgeElement}_updateTextContent(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}_createBadgeElement(){const t=this._renderer.createElement("span"),e="mat-badge-active",n="mat-badge-content";return this._clearExistingBadges(n),t.setAttribute("id","mat-badge-content-"+this._id),t.classList.add(n),t.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add(e)})}):t.classList.add(e),t}_updateHostAriaDescription(t,e){const n=this._updateTextContent();e&&this._ariaDescriber.removeDescription(n,e),t&&this._ariaDescriber.describe(n,t)}_setColor(t){if(t!==this._color){const e=this._elementRef.nativeElement.classList;this._color&&e.remove("mat-badge-"+this._color),t&&e.add("mat-badge-"+t)}}_clearExistingBadges(t){const e=this._elementRef.nativeElement;let n=e.children.length;for(;n--;){const i=e.children[n];i.classList.contains(t)&&e.removeChild(i)}}_stringifyContent(){const t=this.content;return null==t?"":""+t}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.B),a.Pb(a.l),a.Pb(r.c),a.Pb(a.G),a.Pb(o.a,8))},t.\u0275dir=a.Kb({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&a.Hb("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[a.Ab,a.Bb]}),t})(),d=(()=>{class t{}return t.\u0275mod=a.Nb({type:t}),t.\u0275inj=a.Mb({factory:function(e){return new(e||t)},imports:[[r.a,i.i],i.i]}),t})()},"8Spv":function(t,e,n){t.exports=n("+qE3").EventEmitter},"8Y7J":function(t,e,n){"use strict";n.d(e,"a",function(){return hn}),n.d(e,"b",function(){return ul}),n.d(e,"c",function(){return ol}),n.d(e,"d",function(){return rl}),n.d(e,"e",function(){return sl}),n.d(e,"f",function(){return oh}),n.d(e,"g",function(){return Zl}),n.d(e,"h",function(){return Ka}),n.d(e,"i",function(){return xl}),n.d(e,"j",function(){return _a}),n.d(e,"k",function(){return pl}),n.d(e,"l",function(){return xa}),n.d(e,"m",function(){return nh}),n.d(e,"n",function(){return ki}),n.d(e,"o",function(){return Pc}),n.d(e,"p",function(){return ms}),n.d(e,"q",function(){return vn}),n.d(e,"r",function(){return k}),n.d(e,"s",function(){return ln}),n.d(e,"t",function(){return Ts}),n.d(e,"u",function(){return Va}),n.d(e,"v",function(){return Ua}),n.d(e,"w",function(){return fl}),n.d(e,"x",function(){return nc}),n.d(e,"y",function(){return Gl}),n.d(e,"z",function(){return ec}),n.d(e,"A",function(){return Hl}),n.d(e,"B",function(){return El}),n.d(e,"C",function(){return wn}),n.d(e,"D",function(){return hl}),n.d(e,"E",function(){return ll}),n.d(e,"F",function(){return Mc}),n.d(e,"G",function(){return Sa}),n.d(e,"H",function(){return Ca}),n.d(e,"I",function(){return Li}),n.d(e,"J",function(){return ka}),n.d(e,"K",function(){return yi}),n.d(e,"L",function(){return xn}),n.d(e,"M",function(){return Cn}),n.d(e,"N",function(){return Jl}),n.d(e,"O",function(){return $a}),n.d(e,"P",function(){return Ll}),n.d(e,"Q",function(){return un}),n.d(e,"R",function(){return Oa}),n.d(e,"S",function(){return rc}),n.d(e,"T",function(){return L}),n.d(e,"U",function(){return Wl}),n.d(e,"V",function(){return g}),n.d(e,"W",function(){return Bl}),n.d(e,"X",function(){return f}),n.d(e,"Y",function(){return Ln}),n.d(e,"Z",function(){return Ul}),n.d(e,"ab",function(){return rh}),n.d(e,"bb",function(){return Ml}),n.d(e,"cb",function(){return dl}),n.d(e,"db",function(){return gs}),n.d(e,"eb",function(){return ra}),n.d(e,"fb",function(){return gi}),n.d(e,"gb",function(){return ti}),n.d(e,"hb",function(){return Hn}),n.d(e,"ib",function(){return Kn}),n.d(e,"jb",function(){return Xn}),n.d(e,"kb",function(){return Yn}),n.d(e,"lb",function(){return qn}),n.d(e,"mb",function(){return Zn}),n.d(e,"nb",function(){return ta}),n.d(e,"ob",function(){return ih}),n.d(e,"pb",function(){return ea}),n.d(e,"qb",function(){return na}),n.d(e,"rb",function(){return Wn}),n.d(e,"sb",function(){return F}),n.d(e,"tb",function(){return Bs}),n.d(e,"ub",function(){return co}),n.d(e,"vb",function(){return ao}),n.d(e,"wb",function(){return Jo}),n.d(e,"xb",function(){return kt}),n.d(e,"yb",function(){return h}),n.d(e,"zb",function(){return zn}),n.d(e,"Ab",function(){return Ps}),n.d(e,"Bb",function(){return yt}),n.d(e,"Cb",function(){return ma}),n.d(e,"Db",function(){return _r}),n.d(e,"Eb",function(){return qs}),n.d(e,"Fb",function(){return Io}),n.d(e,"Gb",function(){return Yo}),n.d(e,"Hb",function(){return Do}),n.d(e,"Ib",function(){return Xc}),n.d(e,"Jb",function(){return Z}),n.d(e,"Kb",function(){return et}),n.d(e,"Lb",function(){return b}),n.d(e,"Mb",function(){return _}),n.d(e,"Nb",function(){return Q}),n.d(e,"Ob",function(){return nt}),n.d(e,"Pb",function(){return Gs}),n.d(e,"Qb",function(){return no}),n.d(e,"Rb",function(){return so}),n.d(e,"Sb",function(){return ro}),n.d(e,"Tb",function(){return io}),n.d(e,"Ub",function(){return eo}),n.d(e,"Vb",function(){return to}),n.d(e,"Wb",function(){return oo}),n.d(e,"Xb",function(){return sn}),n.d(e,"Yb",function(){return Zo}),n.d(e,"Zb",function(){return Tn}),n.d(e,"ac",function(){return on}),n.d(e,"bc",function(){return il}),n.d(e,"cc",function(){return $s}),n.d(e,"dc",function(){return lo}),n.d(e,"ec",function(){return Qc}),n.d(e,"fc",function(){return we}),n.d(e,"gc",function(){return ve}),n.d(e,"hc",function(){return mo}),n.d(e,"ic",function(){return Oc}),n.d(e,"jc",function(){return Ac}),n.d(e,"kc",function(){return Dc}),n.d(e,"lc",function(){return Ic}),n.d(e,"mc",function(){return _o}),n.d(e,"nc",function(){return go}),n.d(e,"oc",function(){return Qs}),n.d(e,"pc",function(){return yo}),n.d(e,"qc",function(){return vo}),n.d(e,"rc",function(){return yc}),n.d(e,"sc",function(){return vc}),n.d(e,"tc",function(){return wc}),n.d(e,"uc",function(){return xc}),n.d(e,"vc",function(){return Kc}),n.d(e,"wc",function(){return Xs}),n.d(e,"xc",function(){return Ii}),n.d(e,"yc",function(){return Di}),n.d(e,"zc",function(){return qt}),n.d(e,"Ac",function(){return vi}),n.d(e,"Bc",function(){return wi}),n.d(e,"Cc",function(){return J}),n.d(e,"Dc",function(){return Gc}),n.d(e,"Ec",function(){return qc}),n.d(e,"Fc",function(){return Ao}),n.d(e,"Gc",function(){return ho}),n.d(e,"Hc",function(){return Xo}),n.d(e,"Ic",function(){return Zs}),n.d(e,"Jc",function(){return nl}),n.d(e,"Kc",function(){return zo}),n.d(e,"Lc",function(){return Ho}),n.d(e,"Mc",function(){return Wo}),n.d(e,"Nc",function(){return Ko}),n.d(e,"Oc",function(){return qo}),n.d(e,"Pc",function(){return Yc});var i=n("XNiG"),r=n("quSY"),s=n("HDdC"),o=n("VRyK"),a=n("w1tV");function c(t){for(let e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function l(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function h(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(h).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function u(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=c({__forward_ref__:c});function f(t){return t.__forward_ref__=f,t.toString=function(){return h(this())},t}function p(t){return m(t)?t():t}function m(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===f}function b(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const g=b;function _(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function y(t){return v(t,x)||v(t,S)}function v(t,e){return t.hasOwnProperty(e)?t[e]:null}function w(t){return t&&(t.hasOwnProperty(C)||t.hasOwnProperty(E))?t[C]:null}const x=c({"\u0275prov":c}),C=c({"\u0275inj":c}),S=c({ngInjectableDef:c}),E=c({ngInjectorDef:c});var k=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let O;function A(t){const e=O;return O=t,e}function D(t,e,n){const i=y(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&k.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${h(t)}]`)}function I(t){return{toString:t}.toString()}var T=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),L=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const P="undefined"!=typeof globalThis&&globalThis,R="undefined"!=typeof window&&window,M="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,F=P||j||R||M,N={},V=[],U=c({"\u0275cmp":c}),B=c({"\u0275dir":c}),z=c({"\u0275pipe":c}),H=c({"\u0275mod":c}),W=c({"\u0275loc":c}),K=c({"\u0275fac":c}),q=c({__NG_ELEMENT_ID__:c});let Y=0;function Z(t){return I(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===T.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||V,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||L.Emulated,id:"c",styles:t.styles||V,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,s=t.pipes;return n.id+=Y++,n.inputs=tt(t.inputs,e),n.outputs=tt(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(X):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(G):null,n})}function X(t){return it(t)||function(t){return t[B]||null}(t)}function G(t){return function(t){return t[z]||null}(t)}const $={};function Q(t){const e={type:t.type,bootstrap:t.bootstrap||V,declarations:t.declarations||V,imports:t.imports||V,exports:t.exports||V,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&I(()=>{$[t.id]=t.type}),e}function J(t,e){return I(()=>{const n=rt(t,!0);n.declarations=e.declarations||V,n.imports=e.imports||V,n.exports=e.exports||V})}function tt(t,e){if(null==t)return N;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,e&&(e[r]=s)}return n}const et=Z;function nt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function it(t){return t[U]||null}function rt(t,e){const n=t[H]||null;if(!n&&!0===e)throw new Error(`Type ${h(t)} does not have '\u0275mod' property.`);return n}const st=20,ot=10;function at(t){return Array.isArray(t)&&"object"==typeof t[1]}function ct(t){return Array.isArray(t)&&!0===t[1]}function lt(t){return 0!=(8&t.flags)}function ht(t){return 2==(2&t.flags)}function ut(t){return 1==(1&t.flags)}function dt(t){return null!==t.template}function ft(t,e){return t.hasOwnProperty(K)?t[K]:null}class pt extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function mt(t){return"string"==typeof t?t:null==t?"":String(t)}function bt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():mt(t)}function gt(t,e){const n=e?" in "+e:"";throw new pt("201",`No provider for ${bt(t)} found${n}`)}class _t{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function yt(){return vt}function vt(t){return t.type.prototype.ngOnChanges&&(t.setInput=xt),wt}function wt(){const t=Ct(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===N)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function xt(t,e,n,i){const r=Ct(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:N,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],c=o[a];s[a]=new _t(c&&c.currentValue,e,o===N),t[i]=e}function Ct(t){return t.__ngSimpleChanges__||null}yt.ngInherit=!0;const St="http://www.w3.org/2000/svg";let Et=void 0;function kt(t){Et=t}function Ot(){return void 0!==Et?Et:"undefined"!=typeof document?document:void 0}function At(t){return!!t.listen}const Dt={createRenderer:(t,e)=>Ot()};function It(t){for(;Array.isArray(t);)t=t[0];return t}function Tt(t,e){return It(e[t])}function Lt(t,e){return It(e[t.index])}function Pt(t,e){return t.data[e]}function Rt(t,e){return t[e]}function Mt(t,e){const n=e[t];return at(n)?n:n[0]}function jt(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ft(t){return 4==(4&t[2])}function Nt(t){return 128==(128&t[2])}function Vt(t,e){return null==e?null:t[e]}function Ut(t){t[18]=0}function Bt(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const zt={lFrame:fe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ht(){return zt.bindingsEnabled}function Wt(){return zt.lFrame.lView}function Kt(){return zt.lFrame.tView}function qt(t){zt.lFrame.contextLView=t}function Yt(){let t=Zt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Zt(){return zt.lFrame.currentTNode}function Xt(t,e){const n=zt.lFrame;n.currentTNode=t,n.isParent=e}function Gt(){return zt.lFrame.isParent}function $t(){zt.lFrame.isParent=!1}function Qt(){return zt.isInCheckNoChangesMode}function Jt(t){zt.isInCheckNoChangesMode=t}function te(){const t=zt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ee(){return zt.lFrame.bindingIndex}function ne(){return zt.lFrame.bindingIndex++}function ie(t){const e=zt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function re(t,e){const n=zt.lFrame;n.bindingIndex=n.bindingRootIndex=t,se(e)}function se(t){zt.lFrame.currentDirectiveIndex=t}function oe(t){const e=zt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ae(){return zt.lFrame.currentQueryIndex}function ce(t){zt.lFrame.currentQueryIndex=t}function le(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function he(t,e,n){if(n&k.SkipSelf){let i=e,r=t;for(;i=i.parent,!(null!==i||n&k.Host||(i=le(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;e=i,t=r}const i=zt.lFrame=de();return i.currentTNode=e,i.lView=t,!0}function ue(t){const e=de(),n=t[1];zt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function de(){const t=zt.lFrame,e=null===t?null:t.child;return null===e?fe(t):e}function fe(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function pe(){const t=zt.lFrame;return zt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const me=pe;function be(){const t=pe();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ge(){return zt.lFrame.selectedIndex}function _e(t){zt.lFrame.selectedIndex=t}function ye(){const t=zt.lFrame;return Pt(t.tView,t.selectedIndex)}function ve(){zt.lFrame.currentNamespace=St}function we(){zt.lFrame.currentNamespace=null}function xe(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[o]<0&&(t[18]+=65536),(s>11>16&&(3&t[2])===e&&(t[2]+=2048,s.call(o)):s.call(o)}const Ae=-1;class De{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ie(t,e,n){const i=At(t);let r=0;for(;re){o=s-1;break}}}for(;s>16,i=e;for(;n>0;)i=i[15],n--;return i}let Ne=!0;function Ve(t){const e=Ne;return Ne=t,e}let Ue=0;function Be(t,e){const n=He(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,ze(i.data,t),ze(e,null),ze(i.blueprint,null));const r=We(t,e),s=t.injectorIndex;if(Me(r)){const t=je(r),n=Fe(r,e),i=n[1].data;for(let r=0;r<8;r++)e[s+r]=n[t+r]|i[t+r]}return e[s+8]=r,s}function ze(t,e){t.push(0,0,0,0,0,0,0,0,e)}function He(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function We(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;null!==r;){const t=r[1],e=t.type;if(i=2===e?t.declTNode:1===e?r[6]:null,null===i)return Ae;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Ae}function Ke(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(q)&&(i=n[q]),null==i&&(i=n[q]=Ue++);const r=255&i,s=1<=0?255&e:Ge:e}(n);if("function"==typeof s){if(!he(e,t,i))return i&k.Host?qe(r,n,i):Ye(e,n,i,r);try{const t=s();if(null!=t||i&k.Optional)return t;gt(n)}finally{me()}}else if("number"==typeof s){let r=null,o=He(t,e),a=Ae,c=i&k.Host?e[16][6]:null;for((-1===o||i&k.SkipSelf)&&(a=-1===o?We(t,e):e[o+8],a!==Ae&&en(i,!1)?(r=e[1],o=je(a),e=Fe(a,e)):o=-1);-1!==o;){const t=e[1];if(tn(s,o,t.data)){const t=$e(o,e,n,r,i,c);if(t!==Xe)return t}a=e[o+8],a!==Ae&&en(i,e[1].data[o+8]===c)&&tn(s,o,e)?(r=t,o=je(a),e=Fe(a,e)):o=-1}}}return Ye(e,n,i,r)}const Xe={};function Ge(){return new nn(Yt(),Wt())}function $e(t,e,n,i,r,s){const o=e[1],a=o.data[t+8],c=Qe(a,o,n,null==i?ht(a)&&Ne:i!=o&&0!=(3&a.type),r&k.Host&&s===a);return null!==c?Je(e,o,c,a):Xe}function Qe(t,e,n,i,r){const s=t.providerIndexes,o=e.data,a=1048575&s,c=t.directiveStart,l=s>>20,h=r?a+l:t.directiveEnd;for(let u=i?a:a+l;u=c&&t.type===n)return u}if(r){const t=o[c];if(t&&dt(t)&&t.type===n)return c}return null}function Je(t,e,n,i){let r=t[n];const s=e.data;if(r instanceof De){const o=r;o.resolving&&function(t,e){throw new pt("200","Circular dependency in DI detected for "+t)}(bt(s[n]));const a=Ve(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?A(o.injectImpl):null;he(t,i,k.Default);try{r=t[n]=o.factory(void 0,s,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const i=vt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{null!==c&&A(c),Ve(a),o.resolving=!1,me()}}return r}function tn(t,e,n){const i=64&t,r=32&t;let s;return s=128&t?i?r?n[e+7]:n[e+6]:r?n[e+5]:n[e+4]:i?r?n[e+3]:n[e+2]:r?n[e+1]:n[e],!!(s&1<{const t=rn(p(e));return t?t():null};let n=ft(e);if(null===n){const t=w(e);n=t&&t.factory}return n||null}function sn(t){return I(()=>{const e=t.prototype.constructor,n=e[K]||rn(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[K]||rn(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function on(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty(an)?t[an]:Object.defineProperty(t,an,{value:[]})[an];for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class ln{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=b({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const hn=new ln("AnalyzeForEntryComponents"),un=Function;function dn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?fn(t,e):e(t))}function pn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function mn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function bn(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function _n(t,e){const n=yn(t,e);if(n>=0)return t[1|n]}function yn(t,e){return function(t,e,n){let i=0,r=t.length>>1;for(;r!==i;){const n=i+(r-i>>1),s=t[n<<1];if(e===s)return n<<1;s>e?r=n:i=n+1}return~(r<<1)}(t,e)}const vn=cn("Inject",t=>({token:t})),wn=cn("Optional"),xn=cn("Self"),Cn=cn("SkipSelf"),Sn={},En=/\n/gm,kn="__source",On=c({provide:String,useValue:c});let An=void 0;function Dn(t){const e=An;return An=t,e}function In(t,e=k.Default){if(void 0===An)throw new Error("inject() must be called from an injection context");return null===An?D(t,void 0,e):An.get(t,e&k.Optional?null:void 0,e)}function Tn(t,e=k.Default){return(O||In)(p(t),e)}const Ln=Tn;function Pn(t){const e=[];for(let n=0;nt,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Rn}())||void 0===e?void 0:e.createHTML(t))||t}class jn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}class Fn extends jn{getTypeName(){return"HTML"}}class Nn extends jn{getTypeName(){return"Style"}}class Vn extends jn{getTypeName(){return"Script"}}class Un extends jn{getTypeName(){return"URL"}}class Bn extends jn{getTypeName(){return"ResourceURL"}}function zn(t){return t instanceof jn?t.changingThisBreaksApplicationSecurity:t}function Hn(t,e){const n=Wn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Wn(t){return t instanceof jn&&t.getTypeName()||null}function Kn(t){return new Fn(t)}function qn(t){return new Nn(t)}function Yn(t){return new Vn(t)}function Zn(t){return new Un(t)}function Xn(t){return new Bn(t)}class Gn{getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Mn(t),"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class $n{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Mn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Mn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0ti(t.trim())).join(", ")),this.buf.push(" ",e,'="',mi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ai.hasOwnProperty(e)&&!ii.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(mi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const fi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,pi=/([^\#-~ |!])/g;function mi(t){return t.replace(/&/g,"&").replace(fi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(pi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let bi;function gi(t,e){let n=null;try{bi=bi||function(t){return function(){try{return!!(new window.DOMParser).parseFromString(Mn(""),"text/html")}catch(t){return!1}}()?new Gn:new $n(t)}(t);let i=e?String(e):"";n=bi.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=bi.getInertBodyElement(i)}while(i!==s);return(new di).sanitizeChildren(_i(n)||n)}finally{if(n){const t=_i(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function _i(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var yi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function vi(t){const e=xi();return e?e.sanitize(yi.HTML,t)||"":Hn(t,"HTML")?zn(t):gi(Ot(),mt(t))}function wi(t){const e=xi();return e?e.sanitize(yi.URL,t)||"":Hn(t,"URL")?zn(t):ti(mt(t))}function xi(){const t=Wt();return t&&t[12]}function Ci(t){return t.ngDebugContext}function Si(t){return t.ngOriginalError}function Ei(t,...e){t.error(...e)}class ki{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||Ei}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Ci(t)?Ci(t):this._findContext(Si(t)):null}_findOriginalError(t){let e=Si(t);for(;e&&Si(e);)e=Si(e);return e}}function Oi(t,e){t.__ngContext__=e}const Ai=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F))();function Di(t){return{name:"window",target:t.ownerDocument.defaultView}}function Ii(t){return{name:"body",target:t.ownerDocument.body}}function Ti(t){return t instanceof Function?t():t}var Li=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Pi(t,e){return(void 0)(t,e)}function Ri(t){const e=t[3];return ct(e)?e[3]:e}function Mi(t){return Fi(t[13])}function ji(t){return Fi(t[4])}function Fi(t){for(;null!==t&&!ct(t);)t=t[4];return t}function Ni(t,e,n,i,r){if(null!=i){let s,o=!1;ct(i)?s=i:at(i)&&(o=!0,i=i[0]);const a=It(i);0===t&&null!==n?null==r?qi(e,n,a):Ki(e,n,a,r||null,!0):1===t&&null!==n?Ki(e,n,a,r||null,!0):2===t?function(t,e,n){const i=Zi(t,e);i&&function(t,e,n,i){At(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,n,i,r){const s=n[7];s!==It(n)&&Ni(e,t,i,s,r);for(let o=ot;o0&&(t[n-1][4]=i[4]);const o=mn(t,ot+e);er(i[1],r=i,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var r;return i}function zi(t,e){if(!(256&e[2])){const n=e[11];At(n)&&n.destroyNode&&er(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Hi(t[1],t);for(;e;){let n=null;if(at(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)at(e)&&Hi(e[1],e),e=e[3];null===e&&(e=t),at(e)&&Hi(e[1],e),n=e&&e[4]}e=n}}(e)}}function Hi(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),t+=2}else{const e=i[r=n[t+1]];n[t].call(e)}if(null!==i)for(let t=r+1;ts?"":r[h+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==sr(e,l,0)||2&i&&l!==t){if(ur(i))return!1;o=!0}}}}else{if(!o&&!ur(i)&&!ur(c))return!1;if(o&&ur(c))continue;o=!1,i=c|1&i}}return ur(i)||o}function ur(t){return 0==(1&t)}function dr(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||ur(o)||(e+=mr(s,r),r=""),i=o,s=s||!ur(i);n++}return""!==r&&(e+=mr(s,r)),e}const gr={};function _r(t){yr(Kt(),Wt(),ge()+t,Qt())}function yr(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ce(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Se(e,i,0,n)}_e(n)}function vr(t,e){return t<<17|e<<2}function wr(t){return t>>17&32767}function xr(t){return 2|t}function Cr(t){return(131068&t)>>2}function Sr(t,e){return-131069&t|e<<2}function Er(t){return 1|t}function kr(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;ist&&yr(t,e,st,Qt()),n(i,r)}finally{_e(s)}}function Rr(t,e,n){if(lt(e)){const i=e.directiveEnd;for(let r=e.directiveStart;r0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=s&&n.push(s),n.push(i,r,o)}}function Wr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Kr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function qr(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&ts(n)}}function ts(t){for(let n=Mi(t);null!==n;n=ji(n))for(let t=ot;t0&&ts(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&ts(i)}}function es(t,e){const n=Mt(e,t),i=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function cs(t){return t[7]||(t[7]=[])}function ls(t){return t.cleanup||(t.cleanup=[])}function hs(t,e,n){return(null===t||dt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function us(t,e){const n=t[9],i=n?n.get(ki,null):null;i&&i.handleError(e)}function ds(t,e,n,i,r){for(let s=0;sthis.processProvider(n,t,e)),fn([t],t=>this.processInjectorType(t,[],r)),this.records.set(ms,Os(void 0,this));const s=this.records.get(gs);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:h(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Sn,n=k.Default){this.assertNotDestroyed();const i=Dn(this);try{if(!(n&k.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof ln)&&y(t);e=n&&this.injectableDefInScope(n)?Os(Es(t),_s):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&k.Self?xs():this.parent).get(t,e=n&k.Optional&&e===Sn?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(h(t)),i)throw s;return function(t,e,n,i){const r=t.ngTempTokenPath;throw e[kn]&&r.unshift(e[kn]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=h(e);if(Array.isArray(e))r=e.map(h).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):h(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(En,"\n ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{Dn(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(h(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=p(t)))return!1;let i=w(t);const r=null==i&&t.ngModule||void 0,s=void 0===r?t:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=w(r)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(s);try{fn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||vs))}}this.injectorDefTypes.add(s),this.records.set(s,Os(i.factory,_s));const a=i.providers;if(null!=a&&!o){const e=t;fn(a,t=>this.processProvider(t,e,a))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=Ds(t=p(t))?t:p(t&&t.provide);const r=function(t,e,n){return As(t)?Os(void 0,t.useValue):Os(ks(t),_s)}(t);if(Ds(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Os(void 0,_s,!0),e.factory=()=>Pn(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){var n;return e.value===_s&&(e.value=ys,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Es(t){const e=y(t),n=null!==e?e.factory:ft(t);if(null!==n)return n;const i=w(t);if(null!==i)return i.factory;if(t instanceof ln)throw new Error(`Token ${h(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=bn(e,"?");throw new Error(`Can't resolve all parameters for ${h(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[x]||t[S]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function ks(t,e,n){let i=void 0;if(Ds(t)){const e=p(t);return ft(e)||Es(e)}if(As(t))i=()=>p(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...Pn(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Tn(p(t.useExisting));else{const e=p(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ft(e)||Es(e);i=()=>new e(...Pn(t.deps))}var r;return i}function Os(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function As(t){return null!==t&&"object"==typeof t&&On in t}function Ds(t){return"function"==typeof t}const Is=function(t,e,n){return function(t,e=null,n=null,i){const r=Cs(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let Ts=(()=>{class t{static create(t,e){return Array.isArray(t)?Is(t,e,""):Is(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Sn,t.NULL=new bs,t.\u0275prov=b({token:t,providedIn:"any",factory:()=>Tn(ms)}),t.__NG_ELEMENT_ID__=-1,t})();function Ls(t,e){xe(jt(t)[1],Yt())}function Ps(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let r=void 0;if(dt(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);const e=t;e.inputs=Rs(t.inputs),e.declaredInputs=Rs(t.declaredInputs),e.outputs=Rs(t.outputs);const n=r.hostBindings;n&&Fs(t,n);const s=r.viewQuery,o=r.contentQueries;if(s&&Ms(t,s),o&&js(t,o),l(t.inputs,r.inputs),l(t.declaredInputs,r.declaredInputs),l(t.outputs,r.outputs),dt(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}}const e=r.features;if(e)for(let i=0;i=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Pe(r.hostAttrs,n=Pe(n,r.hostAttrs))}}(i)}function Rs(t){return t===N?{}:t===V?[]:t}function Ms(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function js(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function Fs(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let Ns=null;function Vs(){if(!Ns){const t=F.Symbol;if(t&&t.iterator)Ns=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(It(t[i.index])).target:i.index;if(At(n)){let o=null;if(!a&&c&&(o=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let s=0;sn?t[n]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,u=!1;else{s=po(i,e,s,!1);const t=n.listen(f.name||p,r,s);h.push(s,t),l&&l.push(r,b,m,m+1)}}else s=po(i,e,s,!0),p.addEventListener(r,s,o),h.push(s),l&&l.push(r,b,m,o)}else s=po(i,e,s,!1);const d=i.outputs;let f;if(u&&null!==d&&(f=d[r])){const t=f.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,zt.lFrame.contextLView))[8]}(t)}function bo(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r=0}const So={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Eo(t){return t.substring(So.key,So.keyEnd)}function ko(t,e){const n=So.textEnd;return n===e?-1:(e=So.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,So.key=e,n),Oo(t,e,n))}function Oo(t,e,n){for(;e=0;n=ko(e,n))gn(t,Eo(e),!0)}function Lo(t,e,n,i){const r=Wt(),s=Kt(),o=ie(2);s.firstUpdatePass&&Mo(s,t,o,i),e!==gr&&Ws(r,o,e)&&No(s,s.data[ge()],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=h(zn(t)))),t}(e,n),i,o)}function Po(t,e,n,i){const r=Kt(),s=ie(2);r.firstUpdatePass&&Mo(r,null,s,i);const o=Wt();if(n!==gr&&Ws(o,s,n)){const a=r.data[ge()];if(Bo(a,i)&&!Ro(r,s)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=u(t,n||"")),Js(r,a,o,n,i)}else!function(t,e,n,i,r,s,o,a){r===gr&&(r=wo);let c=0,l=0,h=0=t.expandoStartIndex}function Mo(t,e,n,i){const r=t.data;if(null===r[n+1]){const s=r[ge()],o=Ro(t,n);Bo(s,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const r=oe(t);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=Fo(n=jo(null,t,e,n,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=jo(r,t,e,n,i),null===s){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Cr(i))return t[wr(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=jo(null,t,e,n[1],i),n=Fo(n,e.attrs,i),function(t,e,n,i){t[wr(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else s=function(t,e,n){let i=void 0;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s0)&&(h=!0)}else l=n;if(r)if(0!==c){const e=wr(t[a+1]);t[i+1]=vr(e,a),0!==e&&(t[e+1]=Sr(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=vr(a,0),0!==a&&(t[a+1]=Sr(t[a+1],i)),a=i;else t[i+1]=vr(c,0),0===a?a=i:t[c+1]=Sr(t[c+1],i),c=i;h&&(t[i+1]=xr(t[i+1])),xo(t,l,i,!0),xo(t,l,i,!1),function(t,e,n,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&yn(s,e)>=0&&(n[i+1]=Er(n[i+1]))}(e,l,t,i,s),o=vr(a,c),s?e.classBindings=o:e.styleBindings=o}(r,s,e,n,o,i)}}function jo(t,e,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[r],s=Array.isArray(e),c=s?e[1]:e,l=null===c;let h=n[r+1];h===gr&&(h=l?wo:void 0);let u=l?_n(h,i):c===i?h:void 0;if(s&&!Uo(u)&&(u=_n(e,i)),Uo(u)&&(a=u,o))return a;const d=t[r+1];r=o?wr(d):Cr(d)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=_n(t,i))}return a}function Uo(t){return void 0!==t}function Bo(t,e){return 0!=(t.flags&(e?16:32))}function zo(t,e=""){const n=Wt(),i=Kt(),r=t+st,s=i.firstCreatePass?Ar(i,r,1,e,null):i.data[r],o=n[r]=function(t,e){return At(t)?t.createText(e):t.createTextNode(e)}(n[11],e);$i(i,n,o,s),Xt(s,!1)}function Ho(t){return Wo("",t,""),Ho}function Wo(t,e,n){const i=Wt(),r=Ys(i,t,e,n);return r!==gr&&fs(i,ge(),r),Wo}function Ko(t,e,n,i,r){const s=Wt(),o=function(t,e,n,i,r,s){const o=Ks(t,ee(),n,r);return ie(2),o?e+mt(n)+i+mt(r)+s:gr}(s,t,e,n,i,r);return o!==gr&&fs(s,ge(),o),Ko}function qo(t,e,n,i,r,s,o,a,c){const l=Wt(),h=function(t,e,n,i,r,s,o,a,c,l){const h=function(t,e,n,i,r,s){const o=Ks(t,e,n,i);return Ks(t,e+2,r,s)||o}(t,ee(),n,r,o,c);return ie(4),h?e+mt(n)+i+mt(r)+s+mt(o)+a+mt(c)+l:gr}(l,t,e,n,i,r,s,o,a,c);return h!==gr&&fs(l,ge(),h),qo}function Yo(t,e,n){Po(gn,To,Ys(Wt(),t,e,n),!0)}function Zo(t,e,n){const i=Wt();return Ws(i,ne(),e)&&Br(Kt(),ye(),i,t,e,i[11],n,!0),Zo}function Xo(t,e,n){const i=Wt();if(Ws(i,ne(),e)){const r=Kt(),s=ye();Br(r,s,i,t,e,hs(oe(r.data),s,i),n,!0)}return Xo}const Go=void 0;var $o=["en",[["a","p"],["AM","PM"],Go],[["AM","PM"],Go,Go],[["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"]],Go,[["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"]],Go,[["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}",Go,"{1} 'at' {0}",Go],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Qo={};function Jo(t,e,n){"string"!=typeof e&&(n=e,e=t[ra.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Qo[e]=t,n&&(Qo[e][ra.ExtraData]=n)}function ta(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ia(e);if(n)return n;const i=e.split("-")[0];if(n=ia(i),n)return n;if("en"===i)return $o;throw new Error(`Missing locale data for the locale "${t}".`)}function ea(t){return ta(t)[ra.CurrencyCode]||null}function na(t){return ta(t)[ra.PluralCase]}function ia(t){return t in Qo||(Qo[t]=F.ng&&F.ng.common&&F.ng.common.locales&&F.ng.common.locales[t]),Qo[t]}var ra=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const sa="en-US";let oa=sa;function aa(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(oa=t.toLowerCase().replace(/_/g,"-"))}function ca(t,e,n,i,r){if(t=p(t),Array.isArray(t))for(let s=0;s>20;if(Ds(t)||!t.multi){const i=new De(c,r,Gs),f=ua(a,e,r?h:h+d,u);-1===f?(Ke(Be(l,o),s,a),la(s,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(i),o.push(i)):(n[f]=i,o[f]=i)}else{const f=ua(a,e,h+d,u),p=ua(a,e,h,h+d),m=f>=0&&n[f],b=p>=0&&n[p];if(r&&!b||!r&&!m){Ke(Be(l,o),s,a);const h=function(t,e,n,i,r){const s=new De(t,n,Gs);return s.multi=[],s.index=e,s.componentProviders=0,ha(s,r,i&&!n),s}(r?fa:da,n.length,r,i,c);!r&&b&&(n[p].providerFactory=h),la(s,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(h),o.push(h)}else la(s,t,f>-1?f:p,ha(n[r?p:f],c,!r&&i));!r&&i&&b&&n[p].componentProviders++}}}function la(t,e,n,i){const r=Ds(e);if(r||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,s]):o[t+1].push(i,s)}else o.push(n,s)}}}function ha(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ua(t,e,n,i){for(let r=n;r{n.providersResolver=(n,i)=>function(t,e,n){const i=Kt();if(i.firstCreatePass){const r=dt(t);ca(n,i.data,i.blueprint,r,!0),ca(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class ba{}class ga{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${h(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let _a=(()=>{class t{}return t.NULL=new ga,t})();function ya(...t){}function va(t,e){return new xa(Lt(t,e))}const wa=function(){return va(Yt(),Wt())};let xa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=wa,t})();class Ca{}let Sa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ea(),t})();const Ea=function(){const t=Wt(),e=Mt(Yt().index,t);return function(t){return t[11]}(at(e)?e:t)};let ka=(()=>{class t{}return t.\u0275prov=b({token:t,providedIn:"root",factory:()=>null}),t})();class Oa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Aa=new Oa("11.0.5");class Da{constructor(){}supports(t){return Bs(t)}create(t){return new Ta(t)}}const Ia=(t,e)=>e;class Ta{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ia}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,r=null;for(;e||n;){const s=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),s=!0),r=r._next,e++}),this.length=e;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):t=this._addAfter(new La(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ra),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ra),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class La{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Pa{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Ra{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Pa,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ma(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new Na(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Na{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Va=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Cn,new wn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=b({token:t,providedIn:"root",factory:()=>new t([new Da])}),t})(),Ua=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Cn,new wn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=b({token:t,providedIn:"root",factory:()=>new t([new ja])}),t})();function Ba(t,e,n,i,r=!1){for(;null!==n;){const s=e[n.index];if(null!==s&&i.push(It(s)),ct(s))for(let t=ot;t-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}zi(this._lView[1],this._lView)}onDestroy(t){Vr(this._lView[1],this._lView,null,t)}markForCheck(){is(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){rs(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Jt(!0);try{rs(t,e,n)}finally{Jt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,er(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ha extends za{constructor(t){super(t),this._view=t}detectChanges(){ss(this._view)}checkNoChanges(){!function(t){Jt(!0);try{ss(t)}finally{Jt(!1)}}(this._view)}get context(){return null}}const Wa=qa;let Ka=(()=>{class t{}return t.__NG_ELEMENT_ID__=Wa,t.__ChangeDetectorRef__=!0,t})();function qa(t=!1){return function(t,e,n){if(!n&&ht(t)){const n=Mt(t.index,e);return new za(n,n)}return 47&t.type?new za(e[16],e):null}(Yt(),Wt(),t)}const Ya=[new ja],Za=new Va([new Da]),Xa=new Ua(Ya),Ga=function(){return tc(Yt(),Wt())};let $a=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ga,t})();const Qa=$a,Ja=class extends Qa{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Or(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Ir(e,n,t),new za(n)}};function tc(t,e){return 4&t.type?new Ja(e,t,va(t,e)):null}class ec{}class nc{}const ic=function(){return lc(Yt(),Wt())};let rc=(()=>{class t{}return t.__NG_ELEMENT_ID__=ic,t})();const sc=rc,oc=class extends sc{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return va(this._hostTNode,this._hostLView)}get injector(){return new nn(this._hostTNode,this._hostLView)}get parentInjector(){const t=We(this._hostTNode,this._hostLView);if(Me(t)){const e=Fe(t,this._hostLView),n=je(t);return new nn(e[1].data[n+8],e)}return new nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=ac(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ot}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const s=n||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(ec,null);t&&(r=t)}const o=t.create(s,i,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(ct(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new oc(e,e[6],e[3]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e),s=this._lContainer;!function(t,e,n,i){const r=ot+i,s=n.length;i>0&&(n[r-1][4]=e),iAi});class pc extends ba{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(br).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return dc(this.componentDef.inputs)}get outputs(){return dc(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const s=t.get(n,hc,r);return s!==hc||i===hc?s:e.get(n,i,r)}}}(t,i.injector):t,s=r.get(Ca,Dt),o=r.get(ka,null),a=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?function(t,e,n){if(At(t))return t.selectRootElement(e,n===L.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Vi(s.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?St:"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:Ai,clean:as,playerHandler:null,flags:0},d=Nr(0,null,null,1,0,null,null,null,null,null),f=Or(null,d,u,h,null,null,s,a,o,r);let p,m;ue(f);try{const t=function(t,e,n,i,r,s){const o=n[1];n[20]=t;const a=Ar(o,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(ps(a,c,!0),null!==t&&(Ie(r,t,c),null!==a.classes&&rr(r,t,a.classes),null!==a.styles&&ir(r,t,a.styles)));const l=i.createRenderer(t,e),h=Or(n,Fr(e),null,e.onPush?64:16,n[20],a,i,l,null,null);return o.firstCreatePass&&(Ke(Be(a,n),o,e.type),Kr(o,a),Yr(a,n.length,1)),ns(n,h),n[20]=h}(l,this.componentDef,f,s,a);if(l)if(n)Ie(a,l,["ng-version",Aa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i0&&rr(a,l,e.join(" "))}if(m=Pt(d,st),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Yt();e.contentQueries(1,o,t.directiveStart)}const a=Yt();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(_e(a.index),Hr(n[1],a,0,a.directiveStart,a.directiveEnd,e),Wr(e,o)),o}(t,this.componentDef,f,u,[Ls]),Ir(d,f,null)}finally{be()}return new mc(this.componentType,p,va(m,f),f,m)}}class mc extends class{}{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new Ha(i),this.componentType=t}get injector(){return new nn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const bc=new Map;class gc extends ec{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new uc(this);const n=rt(t),i=t[W]||null;i&&aa(i),this._bootstrapComponents=Ti(n.bootstrap),this._r3Injector=Cs(t,e,[{provide:ec,useValue:this},{provide:_a,useValue:this.componentFactoryResolver}],h(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ts.THROW_IF_NOT_FOUND,n=k.Default){return t===Ts||t===ec||t===ms?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class _c extends nc{constructor(t){super(),this.moduleType=t,null!==rt(t)&&function(t){const e=new Set;!function t(n){const i=rt(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${h(e)} vs ${h(e.name)}`)}(r,bc.get(r),n),bc.set(r,n));const s=Ti(i.imports);for(const o of s)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new gc(this.moduleType,t)}}function yc(t,e,n){const i=te()+t,r=Wt();return r[i]===gr?Hs(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function vc(t,e,n,i){return Sc(Wt(),te(),t,e,n,i)}function wc(t,e,n,i,r){return Ec(Wt(),te(),t,e,n,i,r)}function xc(t,e,n,i,r,s){return kc(Wt(),te(),t,e,n,i,r,s)}function Cc(t,e){const n=t[e];return n===gr?void 0:n}function Sc(t,e,n,i,r,s){const o=e+n;return Ws(t,o,r)?Hs(t,o+1,s?i.call(s,r):i(r)):Cc(t,o+1)}function Ec(t,e,n,i,r,s,o){const a=e+n;return Ks(t,a,r,s)?Hs(t,a+2,o?i.call(o,r,s):i(r,s)):Cc(t,a+2)}function kc(t,e,n,i,r,s,o,a){const c=e+n;return function(t,e,n,i,r){const s=Ks(t,e,n,i);return Ws(t,e+2,r)||s}(t,c,r,s,o)?Hs(t,c+3,a?i.call(a,r,s,o):i(r,s,o)):Cc(t,c+3)}function Oc(t,e){const n=Kt();let i;const r=t+st;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new pt("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=ft(i.type)),o=A(Gs);try{const t=Ve(!1),e=s();return Ve(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,Wt(),r,e),e}finally{A(o)}}function Ac(t,e,n){const i=t+st,r=Wt(),s=Rt(r,i);return Lc(r,Tc(r,i)?Sc(r,te(),e,s.transform,n,s):s.transform(n))}function Dc(t,e,n,i){const r=t+st,s=Wt(),o=Rt(s,r);return Lc(s,Tc(s,r)?Ec(s,te(),e,o.transform,n,i,o):o.transform(n,i))}function Ic(t,e,n,i,r){const s=t+st,o=Wt(),a=Rt(o,s);return Lc(o,Tc(o,s)?kc(o,te(),e,a.transform,n,i,r,a):a.transform(n,i,r))}function Tc(t,e){return t[1].data[e].pure}function Lc(t,e){return Us.isWrapped(e)&&(e=Us.unwrap(e),t[ee()]=gr),e}const Pc=class extends i.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,s=t=>null,o=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(i,s,o);return t instanceof r.a&&t.add(a),a}};function Rc(){return this._results[Vs()]()}class Mc{constructor(){this.dirty=!0,this._results=[],this.changes=new Pc,this.length=0;const t=Vs(),e=Mc.prototype;e[t]||(e[t]=Rc)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=dn(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class jc{constructor(t){this.queryList=t,this.matches=null}clone(){return new jc(this.queryList)}setDirty(){this.queryList.setDirty()}}class Fc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t0)i.push(o[t/2]);else{const r=s[t+1],o=e[-n];for(let t=ot;t{class t{constructor(t){this.appInits=t,this.resolve=ya,this.reject=ya,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Tn(rl,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const ol=new ln("AppId"),al={provide:ol,useFactory:function(){return`${cl()}${cl()}${cl()}`},deps:[]};function cl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ll=new ln("Platform Initializer"),hl=new ln("Platform ID"),ul=new ln("appBootstrapListener");let dl=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const fl=new ln("LocaleId"),pl=new ln("DefaultCurrencyCode");class ml{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const bl=function(t){return new _c(t)},gl=bl,_l=function(t){return Promise.resolve(bl(t))},yl=function(t){const e=bl(t),n=Ti(rt(t).declarations).reduce((t,e)=>{const n=it(e);return n&&t.push(new pc(n)),t},[]);return new ml(e,n)},vl=yl,wl=function(t){return Promise.resolve(yl(t))};let xl=(()=>{class t{constructor(){this.compileModuleSync=gl,this.compileModuleAsync=_l,this.compileModuleAndAllComponentsSync=vl,this.compileModuleAndAllComponentsAsync=wl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const Cl=(()=>Promise.resolve(0))();function Sl(t){"undefined"==typeof Zone?Cl.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class El{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pc(!1),this.onMicrotaskEmpty=new Pc(!1),this.onStable=new Pc(!1),this.onError=new Pc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=F.requestAnimationFrame,e=F.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(F,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Al(t),Ol(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Al(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,r,s,o,a)=>{try{return Dl(t),n.invokeTask(r,s,o,a)}finally{e&&"eventTask"===s.type&&e(),Il(t)}},onInvoke:(e,n,i,r,s,o,a)=>{try{return Dl(t),e.invoke(i,r,s,o,a)}finally{Il(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Al(t),Ol(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!El.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(El.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,t,kl,ya,ya);try{return r.runTask(s,e,n)}finally{r.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const kl={};function Ol(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Al(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Dl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Il(t){t._nesting--,Ol(t)}class Tl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pc,this.onMicrotaskEmpty=new Pc,this.onStable=new Pc,this.onError=new Pc}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let Ll=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{El.assertNotInAngularZone(),Sl(()=>{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())Sl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Tn(El))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})(),Pl=(()=>{class t{constructor(){this._applications=new Map,Fl.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Fl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();class Rl{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Ml(t){Fl=t}let jl,Fl=new Rl,Nl=!0,Vl=!1;function Ul(){return Vl=!0,Nl}function Bl(){if(Vl)throw new Error("Cannot enable prod mode after platform setup.");Nl=!1}const zl=new ln("AllowMultipleToken");class Hl{constructor(t,e){this.name=t,this.token=e}}function Wl(t,e,n=[]){const i="Platform: "+e,r=new ln(i);return(e=[])=>{let s=Kl();if(!s||s.injector.get(zl,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:gs,useValue:"platform"});!function(t){if(jl&&!jl.destroyed&&!jl.injector.get(zl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");jl=t.get(ql);const e=t.get(ll,null);e&&e.forEach(t=>t())}(Ts.create({providers:t,name:i}))}return function(t){const e=Kl();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Kl(){return jl&&!jl.destroyed?jl:null}let ql=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Tl:("zone.js"===t?void 0:t)||new El({enableLongStackTrace:Ul(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:El,useValue:n}];return n.run(()=>{const e=Ts.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(e),s=r.injector.get(ki,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{s.handleError(t)}});r.onDestroy(()=>{Xl(this._modules,r),t.unsubscribe()})}),function(t,e,n){try{const i=n();return ao(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(s,n,()=>{const t=r.injector.get(sl);return t.runInitializers(),t.donePromise.then(()=>(aa(r.injector.get(fl,sa)||sa),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=Yl({},e);return function(t,e,n){const i=new _c(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Zl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${h(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Tn(Ts))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function Yl(t,e){return Array.isArray(e)?e.reduce(Yl,t):Object.assign(Object.assign({},t),e)}let Zl=(()=>{class t{constructor(t,e,n,i,r,c){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new s.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),h=new s.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{El.assertNotInAngularZone(),Sl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{El.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(l,h.pipe(Object(a.a)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof ba?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(ec),r=n.create(Ts.NULL,[],e||n.selector,i),s=r.location.nativeElement,o=r.injector.get(Ll,null),a=o&&r.injector.get(Pl);return o&&a&&a.registerApplication(s,o),r.onDestroy(()=>{this.detachView(r.hostView),Xl(this.components,r),a&&a.unregisterApplication(s)}),this._loadComponent(r),Ul()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Xl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ul,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Tn(El),Tn(dl),Tn(Ts),Tn(ki),Tn(_a),Tn(sl))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function Xl(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Gl{}class $l{}const Ql={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Jl=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Ql}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>th(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+r]).then(t=>th(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(Tn(xl),Tn($l,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function th(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}class eh extends Ka{}class nh extends eh{}const ih=function(t){return null},rh=Wl(null,"core",[{provide:hl,useValue:"unknown"},{provide:ql,deps:[Ts]},{provide:Pl,deps:[]},{provide:dl,deps:[]}]),sh=[{provide:Zl,useClass:Zl,deps:[El,dl,Ts,ki,_a,sl]},{provide:fc,deps:[El],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:sl,useClass:sl,deps:[[new wn,rl]]},{provide:xl,useClass:xl,deps:[]},al,{provide:Va,useFactory:function(){return Za},deps:[]},{provide:Ua,useFactory:function(){return Xa},deps:[]},{provide:fl,useFactory:function(t){return aa(t=t||"undefined"!=typeof $localize&&$localize.locale||sa),t},deps:[[new vn(fl),new wn,new Cn]]},{provide:pl,useValue:"USD"}];let oh=(()=>{class t{constructor(t){}}return t.\u0275mod=Q({type:t}),t.\u0275inj=_({factory:function(e){return new(e||t)(Tn(Zl))},providers:sh}),t})()},"8cin":function(t,e,n){"use strict";t.exports=h;var i=n("0ROu").codes,r=i.ERR_METHOD_NOT_IMPLEMENTED,s=i.ERR_MULTIPLE_CALLBACK,o=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=i.ERR_TRANSFORM_WITH_LENGTH_0,c=n("Xn1i");function l(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new s);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),i(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length>>32-e}function l(t,e,n,i,r,s,o){return c(t+(e&n|~e&i)+r+s|0,o)+e|0}function h(t,e,n,i,r,s,o){return c(t+(e&i|n&~i)+r+s|0,o)+e|0}function u(t,e,n,i,r,s,o){return c(t+(e^n^i)+r+s|0,o)+e|0}function d(t,e,n,i,r,s,o){return c(t+(n^(e|~i))+r+s|0,o)+e|0}i(a,r),a.prototype._update=function(){for(var t=o,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,i=this._b,r=this._c,s=this._d;n=l(n,i,r,s,t[0],3614090360,7),s=l(s,n,i,r,t[1],3905402710,12),r=l(r,s,n,i,t[2],606105819,17),i=l(i,r,s,n,t[3],3250441966,22),n=l(n,i,r,s,t[4],4118548399,7),s=l(s,n,i,r,t[5],1200080426,12),r=l(r,s,n,i,t[6],2821735955,17),i=l(i,r,s,n,t[7],4249261313,22),n=l(n,i,r,s,t[8],1770035416,7),s=l(s,n,i,r,t[9],2336552879,12),r=l(r,s,n,i,t[10],4294925233,17),i=l(i,r,s,n,t[11],2304563134,22),n=l(n,i,r,s,t[12],1804603682,7),s=l(s,n,i,r,t[13],4254626195,12),r=l(r,s,n,i,t[14],2792965006,17),n=h(n,i=l(i,r,s,n,t[15],1236535329,22),r,s,t[1],4129170786,5),s=h(s,n,i,r,t[6],3225465664,9),r=h(r,s,n,i,t[11],643717713,14),i=h(i,r,s,n,t[0],3921069994,20),n=h(n,i,r,s,t[5],3593408605,5),s=h(s,n,i,r,t[10],38016083,9),r=h(r,s,n,i,t[15],3634488961,14),i=h(i,r,s,n,t[4],3889429448,20),n=h(n,i,r,s,t[9],568446438,5),s=h(s,n,i,r,t[14],3275163606,9),r=h(r,s,n,i,t[3],4107603335,14),i=h(i,r,s,n,t[8],1163531501,20),n=h(n,i,r,s,t[13],2850285829,5),s=h(s,n,i,r,t[2],4243563512,9),r=h(r,s,n,i,t[7],1735328473,14),n=u(n,i=h(i,r,s,n,t[12],2368359562,20),r,s,t[5],4294588738,4),s=u(s,n,i,r,t[8],2272392833,11),r=u(r,s,n,i,t[11],1839030562,16),i=u(i,r,s,n,t[14],4259657740,23),n=u(n,i,r,s,t[1],2763975236,4),s=u(s,n,i,r,t[4],1272893353,11),r=u(r,s,n,i,t[7],4139469664,16),i=u(i,r,s,n,t[10],3200236656,23),n=u(n,i,r,s,t[13],681279174,4),s=u(s,n,i,r,t[0],3936430074,11),r=u(r,s,n,i,t[3],3572445317,16),i=u(i,r,s,n,t[6],76029189,23),n=u(n,i,r,s,t[9],3654602809,4),s=u(s,n,i,r,t[12],3873151461,11),r=u(r,s,n,i,t[15],530742520,16),n=d(n,i=u(i,r,s,n,t[2],3299628645,23),r,s,t[0],4096336452,6),s=d(s,n,i,r,t[7],1126891415,10),r=d(r,s,n,i,t[14],2878612391,15),i=d(i,r,s,n,t[5],4237533241,21),n=d(n,i,r,s,t[12],1700485571,6),s=d(s,n,i,r,t[3],2399980690,10),r=d(r,s,n,i,t[10],4293915773,15),i=d(i,r,s,n,t[1],2240044497,21),n=d(n,i,r,s,t[8],1873313359,6),s=d(s,n,i,r,t[15],4264355552,10),r=d(r,s,n,i,t[6],2734768916,15),i=d(i,r,s,n,t[13],1309151649,21),n=d(n,i,r,s,t[4],4149444226,6),s=d(s,n,i,r,t[11],3174756917,10),r=d(r,s,n,i,t[2],718787259,15),i=d(i,r,s,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+i|0,this._c=this._c+r|0,this._d=this._d+s|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=s.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=a},"9b/N":function(t,e,n){"use strict";n.d(e,"a",function(){return h}),n.d(e,"b",function(){return l}),n.d(e,"c",function(){return u});var i=n("8LU1"),r=n("8Y7J"),s=n("HDdC"),o=n("XNiG"),a=n("Kj3r");let c=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),l=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Object(i.e)(t);return new s.a(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.a,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(c))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(c))},token:t,providedIn:"root"}),t})(),h=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new r.o,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(i.c)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Object(i.f)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Object(a.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(l),r.Pb(r.l),r.Pb(r.B))},t.\u0275dir=r.Kb({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),u=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},providers:[c]}),t})()},"9gLZ":function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return o});var i=n("8Y7J"),r=n("SVse");const s=new i.s("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.Y)(r.d)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.o,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(s,8))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(s,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})()},"9ppp":function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},ANxK:function(t,e,n){var i=n("WKKt"),r=n("wk3p"),s=n("Vh22"),o={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(t){var e=new Buffer(r[t].prime,"hex"),n=new Buffer(r[t].gen,"hex");return new s(e,n)},e.createDiffieHellman=e.DiffieHellman=function t(e,n,r,a){return Buffer.isBuffer(n)||void 0===o[n]?t(e,"binary",n,r):(n=n||"binary",a=a||"binary",r=r||new Buffer([2]),Buffer.isBuffer(r)||(r=new Buffer(r,a)),"number"==typeof e?new s(i(e,r),r,!0):(Buffer.isBuffer(e)||(e=new Buffer(e,n)),new s(e,r,!0)))}},AQYT:function(t,e,n){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function s(t,e,n){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o=n(5).Buffer}catch(S){}function a(t,e,n){for(var i=0,r=Math.min(t.length,n),s=e;s=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return i}function c(t,e,n,i){for(var r=0,s=Math.min(t.length,n),o=e;o=49?a-49+10:a>=17?a-17+10:a}return r}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===e?this._parseHex(t,r):this._parseBase(t,e,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},s.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},s.prototype._initArray=function(t,e,n){if(i("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===n)for(r=0,s=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=6)r=a(t,n,n+6),this.words[i]|=r<>>26-s&4194303,(s+=24)>=26&&(s-=26,i++);n+6!==e&&(r=a(t,e,n+6),this.words[i]|=r<>>26-s&4194303),this.strip()},s.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,r=1;r<=67108863;r*=e)i++;i--,r=r/e|0;for(var s=t.length-n,o=s%i,a=Math.min(s,s-o)+n,l=0,h=n;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var 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"],h=[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],u=[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 d(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;n.words[0]=67108863&o;for(var c=1;c>>26,h=67108863&a,u=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=u;d++)l+=(o=(r=0|t.words[c-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;n.words[c]=0|h,a=0|l}return 0!==a?n.words[c]=0|a:n.length--,n.strip()}s.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var r=0,s=0,o=0;o>>24-r&16777215)||o!==this.length-1?l[6-c.length]+c+n:c+n,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(n=s.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var d=h[t],f=u[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);n=(p=p.idivn(f)).isZero()?m+n:l[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return i(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,n){var r=this.byteLength(),s=n||Math.max(1,r);i(r<=s,"byte array longer than desired length"),i(s>0,"Requested array length <= 0"),this.strip();var o,a,c="le"===e,l=new t(s),h=this.clone();if(c){for(a=0;!h.isZero();a++)o=h.andln(255),h.iushrn(8),l[a]=o;for(;a=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;it.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var n=t/26|0,r=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,i=t):(n=t,i=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=n.length,0!==r)this.words[this.length]=r,this.length++;else if(n!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(n=this,i=t):(n=t,i=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,f=0|o[1],p=8191&f,m=f>>>13,b=0|o[2],g=8191&b,_=b>>>13,y=0|o[3],v=8191&y,w=y>>>13,x=0|o[4],C=8191&x,S=x>>>13,E=0|o[5],k=8191&E,O=E>>>13,A=0|o[6],D=8191&A,I=A>>>13,T=0|o[7],L=8191&T,P=T>>>13,R=0|o[8],M=8191&R,j=R>>>13,F=0|o[9],N=8191&F,V=F>>>13,U=0|a[0],B=8191&U,z=U>>>13,H=0|a[1],W=8191&H,K=H>>>13,q=0|a[2],Y=8191&q,Z=q>>>13,X=0|a[3],G=8191&X,$=X>>>13,Q=0|a[4],J=8191&Q,tt=Q>>>13,et=0|a[5],nt=8191&et,it=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var bt=(l+(i=Math.imul(u,B))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,B)|0))<<13)|0;l=((s=Math.imul(d,z))+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(p,B),r=(r=Math.imul(p,z))+Math.imul(m,B)|0,s=Math.imul(m,z);var gt=(l+(i=i+Math.imul(u,W)|0)|0)+((8191&(r=(r=r+Math.imul(u,K)|0)+Math.imul(d,W)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(g,B),r=(r=Math.imul(g,z))+Math.imul(_,B)|0,s=Math.imul(_,z),i=i+Math.imul(p,W)|0,r=(r=r+Math.imul(p,K)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,K)|0;var _t=(l+(i=i+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,Z)|0)+Math.imul(d,Y)|0))<<13)|0;l=((s=s+Math.imul(d,Z)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(v,B),r=(r=Math.imul(v,z))+Math.imul(w,B)|0,s=Math.imul(w,z),i=i+Math.imul(g,W)|0,r=(r=r+Math.imul(g,K)|0)+Math.imul(_,W)|0,s=s+Math.imul(_,K)|0,i=i+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,Z)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,Z)|0;var yt=(l+(i=i+Math.imul(u,G)|0)|0)+((8191&(r=(r=r+Math.imul(u,$)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,$)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(C,B),r=(r=Math.imul(C,z))+Math.imul(S,B)|0,s=Math.imul(S,z),i=i+Math.imul(v,W)|0,r=(r=r+Math.imul(v,K)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,K)|0,i=i+Math.imul(g,Y)|0,r=(r=r+Math.imul(g,Z)|0)+Math.imul(_,Y)|0,s=s+Math.imul(_,Z)|0,i=i+Math.imul(p,G)|0,r=(r=r+Math.imul(p,$)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,$)|0;var vt=(l+(i=i+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,J)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(k,B),r=(r=Math.imul(k,z))+Math.imul(O,B)|0,s=Math.imul(O,z),i=i+Math.imul(C,W)|0,r=(r=r+Math.imul(C,K)|0)+Math.imul(S,W)|0,s=s+Math.imul(S,K)|0,i=i+Math.imul(v,Y)|0,r=(r=r+Math.imul(v,Z)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,Z)|0,i=i+Math.imul(g,G)|0,r=(r=r+Math.imul(g,$)|0)+Math.imul(_,G)|0,s=s+Math.imul(_,$)|0,i=i+Math.imul(p,J)|0,r=(r=r+Math.imul(p,tt)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,tt)|0;var wt=(l+(i=i+Math.imul(u,nt)|0)|0)+((8191&(r=(r=r+Math.imul(u,it)|0)+Math.imul(d,nt)|0))<<13)|0;l=((s=s+Math.imul(d,it)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(D,B),r=(r=Math.imul(D,z))+Math.imul(I,B)|0,s=Math.imul(I,z),i=i+Math.imul(k,W)|0,r=(r=r+Math.imul(k,K)|0)+Math.imul(O,W)|0,s=s+Math.imul(O,K)|0,i=i+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,Z)|0)+Math.imul(S,Y)|0,s=s+Math.imul(S,Z)|0,i=i+Math.imul(v,G)|0,r=(r=r+Math.imul(v,$)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,$)|0,i=i+Math.imul(g,J)|0,r=(r=r+Math.imul(g,tt)|0)+Math.imul(_,J)|0,s=s+Math.imul(_,tt)|0,i=i+Math.imul(p,nt)|0,r=(r=r+Math.imul(p,it)|0)+Math.imul(m,nt)|0,s=s+Math.imul(m,it)|0;var xt=(l+(i=i+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(L,B),r=(r=Math.imul(L,z))+Math.imul(P,B)|0,s=Math.imul(P,z),i=i+Math.imul(D,W)|0,r=(r=r+Math.imul(D,K)|0)+Math.imul(I,W)|0,s=s+Math.imul(I,K)|0,i=i+Math.imul(k,Y)|0,r=(r=r+Math.imul(k,Z)|0)+Math.imul(O,Y)|0,s=s+Math.imul(O,Z)|0,i=i+Math.imul(C,G)|0,r=(r=r+Math.imul(C,$)|0)+Math.imul(S,G)|0,s=s+Math.imul(S,$)|0,i=i+Math.imul(v,J)|0,r=(r=r+Math.imul(v,tt)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,tt)|0,i=i+Math.imul(g,nt)|0,r=(r=r+Math.imul(g,it)|0)+Math.imul(_,nt)|0,s=s+Math.imul(_,it)|0,i=i+Math.imul(p,st)|0,r=(r=r+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(l+(i=i+Math.imul(u,ct)|0)|0)+((8191&(r=(r=r+Math.imul(u,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(M,B),r=(r=Math.imul(M,z))+Math.imul(j,B)|0,s=Math.imul(j,z),i=i+Math.imul(L,W)|0,r=(r=r+Math.imul(L,K)|0)+Math.imul(P,W)|0,s=s+Math.imul(P,K)|0,i=i+Math.imul(D,Y)|0,r=(r=r+Math.imul(D,Z)|0)+Math.imul(I,Y)|0,s=s+Math.imul(I,Z)|0,i=i+Math.imul(k,G)|0,r=(r=r+Math.imul(k,$)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,$)|0,i=i+Math.imul(C,J)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(S,J)|0,s=s+Math.imul(S,tt)|0,i=i+Math.imul(v,nt)|0,r=(r=r+Math.imul(v,it)|0)+Math.imul(w,nt)|0,s=s+Math.imul(w,it)|0,i=i+Math.imul(g,st)|0,r=(r=r+Math.imul(g,ot)|0)+Math.imul(_,st)|0,s=s+Math.imul(_,ot)|0,i=i+Math.imul(p,ct)|0,r=(r=r+Math.imul(p,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var St=(l+(i=i+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(N,B),r=(r=Math.imul(N,z))+Math.imul(V,B)|0,s=Math.imul(V,z),i=i+Math.imul(M,W)|0,r=(r=r+Math.imul(M,K)|0)+Math.imul(j,W)|0,s=s+Math.imul(j,K)|0,i=i+Math.imul(L,Y)|0,r=(r=r+Math.imul(L,Z)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,Z)|0,i=i+Math.imul(D,G)|0,r=(r=r+Math.imul(D,$)|0)+Math.imul(I,G)|0,s=s+Math.imul(I,$)|0,i=i+Math.imul(k,J)|0,r=(r=r+Math.imul(k,tt)|0)+Math.imul(O,J)|0,s=s+Math.imul(O,tt)|0,i=i+Math.imul(C,nt)|0,r=(r=r+Math.imul(C,it)|0)+Math.imul(S,nt)|0,s=s+Math.imul(S,it)|0,i=i+Math.imul(v,st)|0,r=(r=r+Math.imul(v,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,i=i+Math.imul(g,ct)|0,r=(r=r+Math.imul(g,lt)|0)+Math.imul(_,ct)|0,s=s+Math.imul(_,lt)|0,i=i+Math.imul(p,ut)|0,r=(r=r+Math.imul(p,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var Et=(l+(i=i+Math.imul(u,pt)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(N,W),r=(r=Math.imul(N,K))+Math.imul(V,W)|0,s=Math.imul(V,K),i=i+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,Z)|0)+Math.imul(j,Y)|0,s=s+Math.imul(j,Z)|0,i=i+Math.imul(L,G)|0,r=(r=r+Math.imul(L,$)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,$)|0,i=i+Math.imul(D,J)|0,r=(r=r+Math.imul(D,tt)|0)+Math.imul(I,J)|0,s=s+Math.imul(I,tt)|0,i=i+Math.imul(k,nt)|0,r=(r=r+Math.imul(k,it)|0)+Math.imul(O,nt)|0,s=s+Math.imul(O,it)|0,i=i+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(S,st)|0,s=s+Math.imul(S,ot)|0,i=i+Math.imul(v,ct)|0,r=(r=r+Math.imul(v,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,i=i+Math.imul(g,ut)|0,r=(r=r+Math.imul(g,dt)|0)+Math.imul(_,ut)|0,s=s+Math.imul(_,dt)|0;var kt=(l+(i=i+Math.imul(p,pt)|0)|0)+((8191&(r=(r=r+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(N,Y),r=(r=Math.imul(N,Z))+Math.imul(V,Y)|0,s=Math.imul(V,Z),i=i+Math.imul(M,G)|0,r=(r=r+Math.imul(M,$)|0)+Math.imul(j,G)|0,s=s+Math.imul(j,$)|0,i=i+Math.imul(L,J)|0,r=(r=r+Math.imul(L,tt)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,tt)|0,i=i+Math.imul(D,nt)|0,r=(r=r+Math.imul(D,it)|0)+Math.imul(I,nt)|0,s=s+Math.imul(I,it)|0,i=i+Math.imul(k,st)|0,r=(r=r+Math.imul(k,ot)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,ot)|0,i=i+Math.imul(C,ct)|0,r=(r=r+Math.imul(C,lt)|0)+Math.imul(S,ct)|0,s=s+Math.imul(S,lt)|0,i=i+Math.imul(v,ut)|0,r=(r=r+Math.imul(v,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var Ot=(l+(i=i+Math.imul(g,pt)|0)|0)+((8191&(r=(r=r+Math.imul(g,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((s=s+Math.imul(_,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(N,G),r=(r=Math.imul(N,$))+Math.imul(V,G)|0,s=Math.imul(V,$),i=i+Math.imul(M,J)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(j,J)|0,s=s+Math.imul(j,tt)|0,i=i+Math.imul(L,nt)|0,r=(r=r+Math.imul(L,it)|0)+Math.imul(P,nt)|0,s=s+Math.imul(P,it)|0,i=i+Math.imul(D,st)|0,r=(r=r+Math.imul(D,ot)|0)+Math.imul(I,st)|0,s=s+Math.imul(I,ot)|0,i=i+Math.imul(k,ct)|0,r=(r=r+Math.imul(k,lt)|0)+Math.imul(O,ct)|0,s=s+Math.imul(O,lt)|0,i=i+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(S,ut)|0,s=s+Math.imul(S,dt)|0;var At=(l+(i=i+Math.imul(v,pt)|0)|0)+((8191&(r=(r=r+Math.imul(v,mt)|0)+Math.imul(w,pt)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(N,J),r=(r=Math.imul(N,tt))+Math.imul(V,J)|0,s=Math.imul(V,tt),i=i+Math.imul(M,nt)|0,r=(r=r+Math.imul(M,it)|0)+Math.imul(j,nt)|0,s=s+Math.imul(j,it)|0,i=i+Math.imul(L,st)|0,r=(r=r+Math.imul(L,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,i=i+Math.imul(D,ct)|0,r=(r=r+Math.imul(D,lt)|0)+Math.imul(I,ct)|0,s=s+Math.imul(I,lt)|0,i=i+Math.imul(k,ut)|0,r=(r=r+Math.imul(k,dt)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,dt)|0;var Dt=(l+(i=i+Math.imul(C,pt)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(S,pt)|0))<<13)|0;l=((s=s+Math.imul(S,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,i=Math.imul(N,nt),r=(r=Math.imul(N,it))+Math.imul(V,nt)|0,s=Math.imul(V,it),i=i+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,i=i+Math.imul(L,ct)|0,r=(r=r+Math.imul(L,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,i=i+Math.imul(D,ut)|0,r=(r=r+Math.imul(D,dt)|0)+Math.imul(I,ut)|0,s=s+Math.imul(I,dt)|0;var It=(l+(i=i+Math.imul(k,pt)|0)|0)+((8191&(r=(r=r+Math.imul(k,mt)|0)+Math.imul(O,pt)|0))<<13)|0;l=((s=s+Math.imul(O,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(N,st),r=(r=Math.imul(N,ot))+Math.imul(V,st)|0,s=Math.imul(V,ot),i=i+Math.imul(M,ct)|0,r=(r=r+Math.imul(M,lt)|0)+Math.imul(j,ct)|0,s=s+Math.imul(j,lt)|0,i=i+Math.imul(L,ut)|0,r=(r=r+Math.imul(L,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Tt=(l+(i=i+Math.imul(D,pt)|0)|0)+((8191&(r=(r=r+Math.imul(D,mt)|0)+Math.imul(I,pt)|0))<<13)|0;l=((s=s+Math.imul(I,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(N,ct),r=(r=Math.imul(N,lt))+Math.imul(V,ct)|0,s=Math.imul(V,lt),i=i+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(j,ut)|0,s=s+Math.imul(j,dt)|0;var Lt=(l+(i=i+Math.imul(L,pt)|0)|0)+((8191&(r=(r=r+Math.imul(L,mt)|0)+Math.imul(P,pt)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,i=Math.imul(N,ut),r=(r=Math.imul(N,dt))+Math.imul(V,ut)|0,s=Math.imul(V,dt);var Pt=(l+(i=i+Math.imul(M,pt)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(j,pt)|0))<<13)|0;l=((s=s+Math.imul(j,mt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863;var Rt=(l+(i=Math.imul(N,pt))|0)+((8191&(r=(r=Math.imul(N,mt))+Math.imul(V,pt)|0))<<13)|0;return l=((s=Math.imul(V,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=bt,c[1]=gt,c[2]=_t,c[3]=yt,c[4]=vt,c[5]=wt,c[6]=xt,c[7]=Ct,c[8]=St,c[9]=Et,c[10]=kt,c[11]=Ot,c[12]=At,c[13]=Dt,c[14]=It,c[15]=Tt,c[16]=Lt,c[17]=Pt,c[18]=Rt,0!==l&&(c[19]=l,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(f=d),s.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,r=0,s=0;s>>26)|0)>>>26,o&=67108863}n.words[s]=a,i=o,o=r}return 0!==i?n.words[s]=i:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=s.prototype._countBits(t)-1,i=0;i>=1;return i},m.prototype.permute=function(t,e,n,i,r,s){for(var o=0;o>>=1)r++;return 1<>>=13),s>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=s>>>26,this.words[n]=67108863&s}return 0!==e&&(this.words[n]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i}return e}(t);if(0===e.length)return new s(1);for(var n=this,i=0;i=0);var e,n=t%26,r=(t-n)/26,s=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(e=0;e>>26-n}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==h||l>=r);l--){var u=0|this.words[l];this.words[l]=h<<26-s|u>>>s,h=u&a}return c&&0!==h&&(c.words[c.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;return!(this.length<=n||!(this.words[n]&1<=0);var e=t%26,n=(t-e)/26;return i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n?this:(0!==e&&n++,this.length=Math.min(n,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[r+n]=67108863&s}for(;r>26,this.words[r+n]=67108863&s;if(0===o)return this.strip();for(i(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var n,i=this.clone(),r=t,o=0|r.words[r.length-1];0!=(n=26-this._countBits(o))&&(r=r.ushln(n),i.iushln(n),o=0|r.words[r.length-1]);var a,c=i.length-r.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;u--){var d=67108864*(0|i.words[r.length+u])+(0|i.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),i._ishlnsubmul(r,d,u);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(r,1,u),i.isZero()||(i.negative^=1);a&&(a.words[u]=d)}return a&&a.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:a||null,mod:i}},s.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),r=t.andln(1),s=n.cmp(i);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,n=0,r=this.length-1;r>=0;r--)n=(e*n+(0|this.words[r]))%t;return n},s.prototype.idivn=function(t){i(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*e;this.words[n]=r/t|0,e=r%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var h=n.clone(),u=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(h),c.isub(u)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),r.isub(a),o.isub(c)):(n.isub(e),a.isub(r),c.isub(o))}return{a:a,b:c,gcd:n.iushln(l)}},s.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),c=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,h=1;0==(e.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var u=0,d=1;0==(n.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(n.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(a)):(n.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var r=e.cmp(n);if(r<0){var s=e;e=n,n=s}else if(0===r||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,n=(t-e)/26,r=1<>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;n--){var i=0|this.words[n],r=0|t.words[n];if(i!==r){ir&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new x(t)},s.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},r(_,g),_.prototype.split=function(t,e){for(var n=4194303,i=Math.min(t.length,9),r=0;r>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},_.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=r,e=i}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new _;else if("p224"===t)e=new y;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return b[t]=e,e},x.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var n=this.m.add(new s(1)).iushrn(2);return this.pow(t,n)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);i(!r.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,l).cmp(c);)h.redIAdd(c);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=o;0!==f.cmp(a);){for(var m=f,b=0;0!==m.cmp(a);b++)m=m.redSqr();i(b=0;i--){for(var l=e.words[i],h=c-1;h>=0;h--){var u=l>>h&1;r!==n[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===i&&0===h)&&(r=this.mul(r,n[o]),a=0,o=0)):a=0}c=26}return r},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new C(t)},r(C,x),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n("YuTi")(t))},AUX7:function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},AYSA:function(t,e,n){"use strict";var i=n("2j6C");function r(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=r,r.prototype._init=function(){},r.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},r.prototype._buffer=function(t,e){for(var n=Math.min(this.buffer.length-this.bufferOff,t.length-e),i=0;i0;i--)e+=this._buffer(t,e),n+=this._flushBuffer(r,n);return e+=this._buffer(t,e),r},r.prototype.final=function(t){var e,n;return t&&(e=this.update(t)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},r.prototype._pad=function(t,e){if(0===e)return!1;for(;e{class t{validate(t){return this.min?i.t.min(+this.min)(t):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Kb({type:t,selectors:[["input","min",""]],inputs:{min:"min"},features:[r.Cb([{provide:i.j,useExisting:t,multi:!0}])]}),t})()},BCVQ:function(t,e){var n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",i="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";e.KANJI=new RegExp(n,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(i,"g"),e.NUMERIC=new RegExp("[0-9]+","g"),e.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var r=new RegExp("^"+n+"$"),s=new RegExp("^[0-9]+$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return r.test(t)},e.testNumeric=function(t){return s.test(t)},e.testAlphanumeric=function(t){return o.test(t)}},BSbQ:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a});var i=n("8LU1"),r=n("UhP/"),s=n("8Y7J");let o=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=Object(i.c)(t)}get inset(){return this._inset}set inset(t){this._inset=Object(i.c)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(s.Eb("aria-orientation",e.vertical?"vertical":"horizontal"),s.Hb("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[r.i],r.i]}),t})()},BTe0:function(t,e,n){"use strict";n.d(e,"a",function(){return b}),n.d(e,"b",function(){return _});var i=n("8Y7J"),r=n("SVse"),s=n("UhP/"),o=n("8LU1"),a=n("omvX"),c=n("quSY"),l=n("xgIS"),h=n("pLZG");const u=["primaryValueBar"];class d{constructor(t){this._elementRef=t}}const f=Object(s.x)(d,"primary"),p=new i.s("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=Object(i.Y)(r.d),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let m=0,b=(()=>{class t extends f{constructor(t,e,n,r){super(t),this._elementRef=t,this._ngZone=e,this._animationMode=n,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new i.o,this._animationEndSubscription=c.a.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+m++;const s=r?r.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${s}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===n}get value(){return this._value}set value(t){this._value=g(Object(o.f)(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=g(t||0)}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=Object(l.a)(t,"transitionend").pipe(Object(h.a)(e=>e.target===t)).subscribe(()=>{"determinate"!==this.mode&&"buffer"!==this.mode||this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(i.B),i.Pb(a.a,8),i.Pb(p,8))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){if(1&t&&i.Pc(u,!0),2&t){let t;i.vc(t=i.ec())&&(e._primaryValueBar=t.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(i.Eb("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),i.Hb("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[i.Ab],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(i.gc(),i.Vb(0,"svg",0),i.Vb(1,"defs"),i.Vb(2,"pattern",1),i.Qb(3,"circle",2),i.Ub(),i.Ub(),i.Qb(4,"rect",3),i.Ub(),i.fc(),i.Qb(5,"div",4),i.Qb(6,"div",5,6),i.Qb(8,"div",7)),2&t&&(i.Db(2),i.oc("id",e.progressbarId),i.Db(2),i.Eb("fill",e._rectangleFillValue),i.Db(1),i.oc("ngStyle",e._bufferTransform()),i.Db(1),i.oc("ngStyle",e._primaryTransform()))},directives:[r.p],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function g(t,e=0,n=100){return Math.max(e,Math.min(n,t))}let _=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[r.c,s.i],s.i]}),t})()},BfC4:function(t,e,n){"use strict";var i=n("0ROu").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,n,r){var s=function(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}(e,r,n);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new i(r?n:"highWaterMark",s);return Math.floor(s)}return t.objectMode?16:16384}}},"C+gy":function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},CH9F:function(t,e,n){var i=n("P7XM"),r=n("tnIz"),s=n("hwdV").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,r.call(this,64,56)}function l(t){return t<<30|t>>>2}function h(t,e,n,i){return 0===t?e&n|~e&i:2===t?e&n|e&i|n&i:e^n^i}i(c,r),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,r=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,u=0;u<16;++u)n[u]=t.readInt32BE(4*u);for(;u<80;++u)n[u]=n[u-3]^n[u-8]^n[u-14]^n[u-16];for(var d=0;d<80;++d){var f=~~(d/20),p=0|((e=i)<<5|e>>>27)+h(f,r,s,a)+c+n[d]+o[f];c=a,a=s,s=l(r),r=i,i=p}this._a=i+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=s.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},CWBI:function(t,e,n){t.exports=n("sZro")},CfXC:function(t,e,n){var i=n("OfWw"),r=n("hwdV").Buffer,s=n("ZDAU");function o(t,e,n,o){s.call(this),this._cipher=new i.AES(e),this._prev=r.from(n),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=o,this._mode=t}n("P7XM")(o,s),o.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},t.exports=o},Cfvw:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("HDdC"),r=n("SeVD"),s=n("quSY"),o=n("kJWO"),a=n("jZKg"),c=n("Lhse"),l=n("c2HN"),h=n("I55L");function u(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new i.a(n=>{const i=new s.a;return i.add(e.schedule(()=>{const r=t[o.a]();i.add(r.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(Object(l.a)(t))return function(t,e){return new i.a(n=>{const i=new s.a;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(Object(h.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[c.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.a(n=>{const i=new s.a;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=t[c.a](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.a?t:new i.a(Object(r.a)(t))}},CqXF:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q");function r(t){return e=>e.lift(new s(t))}class s{constructor(t){this.value=t}call(t,e){return e.subscribe(new o(t,this.value))}}class o extends i.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}},CtHx:function(t,e,n){"use strict";n.d(e,"a",function(){return l}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return d}),n.d(e,"d",function(){return f}),n.d(e,"e",function(){return h}),n.d(e,"f",function(){return u}),n.d(e,"g",function(){return p}),n.d(e,"h",function(){return c});var i=n("7+OI"),r=n("LRne"),s=n("XNiG"),o=n("8Y7J");class a{}function c(t){return t&&"function"==typeof t.connect}class l extends a{constructor(t){super(),this._data=t}connect(){return Object(i.a)(this._data)?this._data:Object(r.a)(this._data)}disconnect(){}}class h{applyChanges(t,e,n,i,r){t.forEachOperation((t,i,s)=>{let o,a;if(null==t.previousIndex){const r=n(t,i,s);o=e.createEmbeddedView(r.templateRef,r.context,r.index),a=1}else null==s?(e.remove(i),a=3):(o=e.get(i),e.move(o,s),a=2);r&&r({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class u{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,r){t.forEachOperation((t,s,o)=>{let a,c;null==t.previousIndex?(a=this._insertView(()=>n(t,s,o),o,e,i(t)),c=a?1:0):null==o?(this._detachAndCacheView(s,e),c=3):(a=this._moveView(s,o,e,i(t)),c=2),r&&r({context:null==a?void 0:a.context,operation:c,record:t})})}detach(){for(const t of this._viewCache)t.destroy()}_insertView(t,e,n,i){let r=this._insertViewFromCache(e,n);if(r)return void(r.context.$implicit=i);const s=t();return n.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(t,e){const n=this._detachView(t,e);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const r=n.get(t);return n.move(r,e),r.context.$implicit=i,r}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let f=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(o.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const p=new o.s("_ViewRepeater")},Cyaj:function(t,e,n){!function(e){"use strict";var i={};t.exports?(i.bytesToHex=n("bCQu").bytesToHex,i.convertString=n("Qi+P"),t.exports=a):(i.bytesToHex=e.convertHex.bytesToHex,i.convertString=e.convertString,e.sha256=a);var r=[];!function(){function t(t){for(var e=Math.sqrt(t),n=2;n<=e;n++)if(!(t%n))return!1;return!0}function e(t){return 4294967296*(t-(0|t))|0}for(var n=2,i=0;i<64;)t(n)&&(r[i]=e(Math.pow(n,1/3)),i++),n++}();var s=[],o=function(t,e,n){for(var i=t[0],o=t[1],a=t[2],c=t[3],l=t[4],h=t[5],u=t[6],d=t[7],f=0;f<64;f++){if(f<16)s[f]=0|e[n+f];else{var p=s[f-15],m=s[f-2];s[f]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+s[f-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+s[f-16]}var b=i&o^i&a^o&a,g=d+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&h^~l&u)+r[f]+s[f];d=u,u=h,h=l,l=c+g|0,c=a,a=o,o=i,i=g+(((i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22))+b)|0}t[0]=t[0]+i|0,t[1]=t[1]+o|0,t[2]=t[2]+a|0,t[3]=t[3]+c|0,t[4]=t[4]+l|0,t[5]=t[5]+h|0,t[6]=t[6]+u|0,t[7]=t[7]+d|0};function a(t,e){t.constructor===String&&(t=i.convertString.UTF8.stringToBytes(t));var n=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],r=function(t){for(var e=[],n=0,i=0;n>>5]|=t[n]<<24-i%32;return e}(t),s=8*t.length;r[s>>5]|=128<<24-s%32,r[15+(s+64>>9<<4)]=s;for(var a=0;a>>5]>>>24-n%32&255);return e}(n);return e&&e.asBytes?c:e&&e.asString?i.convertString.bytesToString(c):i.bytesToHex(c)}a.x2=function(t,e){return a(a(t,{asBytes:!0}),e)}}(this)},D0XW:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("3N8a");const r=new(n("IjjT").a)(i.a)},D9sq:function(t,e,n){"use strict";n.d(e,"a",function(){return E});var i=n("mrSG"),r=n("7bNT"),s=n("XNiG"),o=n("LRne"),a=n("zp1y"),c=n("5+tZ"),l=n("1G5W"),h=n("lJxs"),u=n("JIr8"),d=n("AytR"),f=n("V8Fa"),p=n("lF6s"),m=n("/uX3"),b=n("bdpe"),g=n("8Y7J"),_=n("IheW"),y=n("tqRt"),v=n("mZtN"),w=n("cpEJ"),x=n("7o2P"),C=n("iInd"),S=n("SVse");let E=(()=>{class t{constructor(t,e,n,i,f,g,_,y){this.actions$=t,this.httpClient=e,this.store=n,this.sessionService=i,this.logger=f,this.commonService=g,this.router=_,this.location=y,this.CHILD_API_URL=d.a+"/ecl",this.unSubs=[new s.a,new s.a],this.infoFetchECL=this.actions$.pipe(Object(r.d)(p.o),Object(a.a)(this.store.select("root")),Object(c.a)(([t,e])=>(this.store.dispatch(new p.e("FetchInfo")),this.httpClient.get(this.CHILD_API_URL+d.b.GETINFO_API).pipe(Object(l.a)(this.actions$.pipe(Object(r.d)(m.O))),Object(h.a)(e=>(this.logger.info(e),this.initializeRemainingData(e,t.payload.loadPage),{type:p.Z,payload:e||{}})),Object(u.a)(t=>(this.router.navigate(["/error"],{state:{errorCode:t.error&&t.error.error&&t.error.error.message&&t.error.error.message.code?t.error.error.message.code:t.error&&t.error.error&&t.error.error.code?t.error.error.code:t.status?t.status:"",errorMessage:(t.error&&t.error.message?t.error.message+" ":"")+(t.error&&t.error.error&&t.error.error.error&&"string"==typeof t.error.error.error?t.error.error.error:t.error&&t.error.error&&t.error.error.errno&&"string"==typeof t.error.error.errno?t.error.error.errno:t.error&&t.error.error&&"string"==typeof t.error.error?t.error.error:t.error&&"string"==typeof t.error?t.error:"Unknown Error")}}),this.handleErrorWithoutAlert("FetchInfo","Fetching Node Info Failed.",t),Object(o.a)({type:m.bb}))))))),this.fetchFees=this.actions$.pipe(Object(r.d)(p.n),Object(c.a)(t=>(this.store.dispatch(new p.e("FetchFees")),this.httpClient.get(this.CHILD_API_URL+d.b.FEES_API+"/fees").pipe(Object(h.a)(t=>(this.logger.info(t),{type:p.X,payload:t||{}}),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchFees","Fetching Fees Failed.",t),Object(o.a)({type:m.bb})))))))),this.fetchPayments=this.actions$.pipe(Object(r.d)(p.r),Object(c.a)(t=>(this.store.dispatch(new p.e("FetchPayments")),this.httpClient.get(this.CHILD_API_URL+d.b.FEES_API+"/payments").pipe(Object(h.a)(t=>(this.logger.info(t),{type:p.fb,payload:t||{}}),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchPayments","Fetching Payments Failed.",t),Object(o.a)({type:m.bb})))))))),this.channelsFetch=this.actions$.pipe(Object(r.d)(p.l),Object(c.a)(t=>(this.store.dispatch(new p.e("FetchChannels")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_API).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new p.pb(e&&e.activeChannels.length>0?e.activeChannels:[])),this.store.dispatch(new p.ub(e&&e.pendingChannels.length>0?e.pendingChannels:[])),this.store.dispatch(new p.rb(e&&e.inactiveChannels.length>0?e.inactiveChannels:[])),this.store.dispatch(new p.sb(e.lightningBalances)),t.payload.fetchPayments&&this.store.dispatch(new p.z),{type:p.U,payload:e.channelStatus}),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchChannels","Fetching Channels Failed.",t),Object(o.a)({type:m.bb})))))))),this.channelStatsFetch=this.actions$.pipe(Object(r.d)(p.m),Object(c.a)(t=>(this.store.dispatch(new p.e("FetchChannelStats")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_API+"/stats").pipe(Object(h.a)(t=>(this.logger.info(t),{type:p.V,payload:t&&t.length>0?t:[]}),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchChannelStats","Fetching Channel Stats Failed.",t),Object(o.a)({type:m.bb})))))))),this.fetchOnchainBalance=this.actions$.pipe(Object(r.d)(p.q),Object(c.a)(t=>(this.store.dispatch(new p.e("FetchOnchainBalance")),this.httpClient.get(this.CHILD_API_URL+d.b.ON_CHAIN_API+"/balance"))),Object(h.a)(t=>(this.logger.info(t),{type:p.eb,payload:t||{}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchOnchainBalance","Fetching Onchain Balances Failed.",t),Object(o.a)({type:m.bb})))),this.peersFetch=this.actions$.pipe(Object(r.d)(p.s),Object(c.a)(t=>(this.store.dispatch(new p.e("FetchPeers")),this.httpClient.get(this.CHILD_API_URL+d.b.PEERS_API).pipe(Object(h.a)(t=>(this.logger.info(t),{type:p.gb,payload:t&&t.length?t:[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchPeers","Fetching Peers Failed.",t),Object(o.a)({type:m.bb}))))))),this.getNewAddress=this.actions$.pipe(Object(r.d)(p.C),Object(c.a)(t=>this.httpClient.get(this.CHILD_API_URL+d.b.ON_CHAIN_API).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),{type:p.db,payload:t})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Generate New Address Failed",this.CHILD_API_URL+d.b.ON_CHAIN_API,t),Object(o.a)({type:m.bb})))))),this.setNewAddress=this.actions$.pipe(Object(r.d)(p.db),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.saveNewPeer=this.actions$.pipe(Object(r.d)(p.O),Object(a.a)(this.store.select("ecl")),Object(c.a)(([t,e])=>(this.store.dispatch(new p.e("SaveNewPeer")),this.httpClient.post(this.CHILD_API_URL+d.b.PEERS_API+(t.payload.id.includes("@")?"?uri=":"?nodeId=")+t.payload.id,{}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),this.store.dispatch(new p.tb(t&&t.length?t:[])),{type:p.G,payload:{peer:t[0]}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SaveNewPeer","Peer Connection Failed.",t),Object(o.a)({type:m.bb}))))))),this.detachPeer=this.actions$.pipe(Object(r.d)(p.h),Object(c.a)(t=>this.httpClient.delete(this.CHILD_API_URL+d.b.PEERS_API+"/"+t.payload.nodeId).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new m.i),this.store.dispatch(new m.E("Disconnecting Peer!")),{type:p.K,payload:{nodeId:t.payload.nodeId}})),Object(u.a)(e=>(this.handleErrorWithAlert("ERROR","Unable to Detach Peer. Try again later.",this.CHILD_API_URL+d.b.PEERS_API+"/"+t.payload.nodeId,e),Object(o.a)({type:m.bb})))))),this.openNewChannel=this.actions$.pipe(Object(r.d)(p.N),Object(c.a)(t=>(this.store.dispatch(new p.e("SaveNewChannel")),this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_API,t.payload.feeRate&&t.payload.feeRate>0?{nodeId:t.payload.nodeId,fundingSatoshis:t.payload.amount,channelFlags:+!t.payload.private,fundingFeerateSatByte:t.payload.feeRate}:{nodeId:t.payload.nodeId,fundingSatoshis:t.payload.amount,channelFlags:+!t.payload.private}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new p.A),this.store.dispatch(new p.y),this.store.dispatch(new m.i),this.store.dispatch(new m.E("Channel Added Successfully!")),{type:p.l})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SaveNewChannel","Opening Channel Failed.",t),Object(o.a)({type:m.bb}))))))),this.updateChannel=this.actions$.pipe(Object(r.d)(p.wb),Object(c.a)(t=>{let e="?feeBaseMsat="+t.payload.baseFeeMsat+"&feeProportionalMillionths="+t.payload.feeRate;return e=t.payload.channelIds?e+"&channelIds="+t.payload.channelIds:e+"&channelId="+t.payload.channelId,this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_API+"/updateRelayFee"+e,{}).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new m.i),this.store.dispatch(new m.E(t.payload.channelIds?"Channels Updated Successfully.":"Channel Updated Successfully!")),{type:p.l})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Update Channel Failed",this.CHILD_API_URL+d.b.CHANNELS_API,t),Object(o.a)({type:m.bb}))))})),this.closeChannel=this.actions$.pipe(Object(r.d)(p.c),Object(c.a)(t=>this.httpClient.delete(this.CHILD_API_URL+d.b.CHANNELS_API+"?channelId="+t.payload.channelId+"&force="+t.payload.force).pipe(Object(h.a)(e=>(this.logger.info(e),setTimeout(()=>{this.store.dispatch(new m.i),this.store.dispatch(new p.u({fetchPayments:!1})),this.store.dispatch(new m.E(t.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"))},2e3),{type:m.bb})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Unable to Close Channel. Try again later.",this.CHILD_API_URL+d.b.CHANNELS_API,t),Object(o.a)({type:m.bb})))))),this.queryRoutesFetch=this.actions$.pipe(Object(r.d)(p.D),Object(c.a)(t=>this.httpClient.get(this.CHILD_API_URL+d.b.PAYMENTS_API+"/route?nodeId="+t.payload.nodeId+"&amountMsat="+t.payload.amount).pipe(Object(h.a)(t=>(this.logger.info(t),{type:p.ib,payload:t})),Object(u.a)(e=>(this.store.dispatch(new p.vb([])),this.handleErrorWithAlert("ERROR","Get Query Routes Failed",this.CHILD_API_URL+d.b.PAYMENTS_API+"/route?nodeId="+t.payload.nodeId+"&amountMsat="+t.payload.amount,e),Object(o.a)({type:m.bb})))))),this.setQueryRoutes=this.actions$.pipe(Object(r.d)(p.ib),Object(h.a)(t=>t.payload)),this.sendPayment=this.actions$.pipe(Object(r.d)(p.R),Object(a.a)(this.store.select("root")),Object(c.a)(([t,e])=>(this.store.dispatch(new p.e("SendPayment")),this.httpClient.post(this.CHILD_API_URL+d.b.PAYMENTS_API,t.payload).pipe(Object(h.a)(e=>{if(this.logger.info(e),e.error){this.store.dispatch(new m.i),this.logger.error("Error: "+e.payment_error);const n={status:e.payment_error.status,error:e.payment_error.error&&e.payment_error.error.error&&"object"==typeof e.payment_error.error.error?e.payment_error.error.error:{error:e.payment_error.error&&e.payment_error.error.error?e.payment_error.error.error:"Unknown Error"}};return t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):this.handleErrorWithAlert("ERROR","Send Payment Failed",this.CHILD_API_URL+d.b.PAYMENTS_API,n),Object(o.a)({type:m.bb})}return setTimeout(()=>{this.store.dispatch(new p.ob(e)),this.store.dispatch(new m.i),this.store.dispatch(new p.u({fetchPayments:!0})),this.store.dispatch(new p.z),this.store.dispatch(new m.E("Payment Submitted!"))},3e3),{type:m.bb}}),Object(u.a)(e=>{this.logger.error("Error: "+JSON.stringify(e));const n={status:e.status,error:e.error&&e.error.error&&"object"==typeof e.error.error?e.error.error:{error:e.error&&e.error.error?e.error.error:"Unknown Error"}};return t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):this.handleErrorWithAlert("ERROR","Send Payment Failed",this.CHILD_API_URL+d.b.PAYMENTS_API,n),Object(o.a)({type:m.bb})}))))),this.transactionsFetch=this.actions$.pipe(Object(r.d)(p.t),Object(c.a)(t=>(this.store.dispatch(new p.e("FetchTransactions")),this.httpClient.get(this.CHILD_API_URL+d.b.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),Object(h.a)(t=>(this.logger.info(t),{type:p.jb,payload:t&&t.length>0?t:[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchTransactions","Fetching Transactions Failed.",t),Object(o.a)({type:m.bb})))),this.SendOnchainFunds=this.actions$.pipe(Object(r.d)(p.P),Object(c.a)(t=>(this.store.dispatch(new p.e("SendOnchainFunds")),this.httpClient.post(this.CHILD_API_URL+d.b.ON_CHAIN_API,t.payload).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),this.store.dispatch(new p.y),{type:p.Q,payload:t})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SendOnchainFunds","Sending Fund Failed.",t),Object(o.a)({type:m.bb}))))))),this.createInvoice=this.actions$.pipe(Object(r.d)(p.d),Object(c.a)(t=>(this.store.dispatch(new p.e("CreateInvoice")),this.httpClient.post(this.CHILD_API_URL+d.b.INVOICES_API,t.payload).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new m.i),e.amount=t.payload.amountMsat,e.timestamp=(new Date).getTime()/1e3,e.timestampStr=this.commonService.convertTimestampToDate(+e.timestamp),e.expiresAt=Math.round(e.timestamp+t.payload.expireIn),e.expiresAtStr=this.commonService.convertTimestampToDate(+e.expiresAt),e.description=t.payload.description,e.status="unpaid",this.store.dispatch(new m.C({data:{invoice:e,newlyAdded:!1,component:b.a}})),{type:p.p})),Object(u.a)(t=>(this.handleErrorWithoutAlert("CreateInvoice","Create Invoice Failed.",t),Object(o.a)({type:m.bb}))))))),this.invoicesFetch=this.actions$.pipe(Object(r.d)(p.p),Object(c.a)(t=>(this.store.dispatch(new p.e("FetchInvoices")),this.httpClient.get(this.CHILD_API_URL+d.b.INVOICES_API).pipe(Object(h.a)(t=>(this.logger.info(t),{type:p.ab,payload:t})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchInvoices","Fetching Invoices Failed.",t),Object(o.a)({type:m.bb}))))))),this.peerLookup=this.actions$.pipe(Object(r.d)(p.H),Object(c.a)(t=>(this.store.dispatch(new p.e("Lookup")),this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/nodes/"+t.payload).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),{type:p.cb,payload:t})),Object(u.a)(e=>(this.store.dispatch(new p.k({action:"Lookup",code:e.status,message:e.error.message})),this.handleErrorWithAlert("ERROR","Peer Lookup Failed",this.CHILD_API_URL+d.b.NETWORK_API+"/nodes/"+t.payload,e),Object(o.a)({type:m.bb}))))))),this.setLookup=this.actions$.pipe(Object(r.d)(p.cb),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.store.select("ecl").pipe(Object(l.a)(this.unSubs[0])).subscribe(t=>{"INCOMPLETE"===t.initialAPIResponseStatus[0]&&t.initialAPIResponseStatus.length>4&&(t.initialAPIResponseStatus[0]="COMPLETE",this.store.dispatch(new m.i))})}initializeRemainingData(t,e){this.sessionService.setItem("eclUnlocked","true");const n={identity_pubkey:t.nodeId,alias:t.alias,testnet:"testnet"===t.network,chains:t.publicAddresses,uris:t.uris,version:t.version,currency_unit:"BTC",smaller_currency_unit:"Sats",numberOfPendingChannels:0};this.store.dispatch(new m.F("Initializing Node Data...")),this.store.dispatch(new m.T(n)),this.store.dispatch(new p.u({fetchPayments:!0})),this.store.dispatch(new p.v),this.store.dispatch(new p.y),this.store.dispatch(new p.A);let i=this.location.path();i.includes("/lnd/")?i=i.replace("/lnd/","/ecl/"):i.includes("/cl/")&&(i=i.replace("/cl/","/ecl/")),(i.includes("/login")||i.includes("/error")||""===i||"HOME"===e||i.includes("?access-key="))&&(i="/ecl/home"),this.router.navigate([i])}handleErrorWithoutAlert(t,e,n){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(n)),401===n.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new m.g),this.store.dispatch(new m.x),this.store.dispatch(new m.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new m.i),this.store.dispatch(new p.k({action:t,code:n.status.toString(),message:n.error&&n.error.error&&"string"==typeof n.error.error?n.error.error:e})))}handleErrorWithAlert(t,e,n,i){this.logger.error(i),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new m.g),this.store.dispatch(new m.x),this.store.dispatch(new m.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new m.i),this.store.dispatch(new m.C({data:{type:t,alertTitle:e,message:{code:i.status,message:i.error.error&&i.error.error.error&&i.error.error.error.error&&"string"==typeof i.error.error.error.error?i.error.error.error.error:i.error.error&&i.error.error.error&&"string"==typeof i.error.error.error?i.error.error.error:i.error&&i.error.error&&"string"==typeof i.error.error?i.error.error:"string"==typeof i.error?i.error:"Unknown Error",URL:n},component:f.a}})))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(g.Zb(r.a),g.Zb(_.b),g.Zb(y.h),g.Zb(v.a),g.Zb(w.b),g.Zb(x.a),g.Zb(C.g),g.Zb(S.j))},t.\u0275prov=g.Lb({token:t,factory:t.\u0275fac}),Object(i.a)([Object(r.b)()],t.prototype,"infoFetchECL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchFees",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchPayments",void 0),Object(i.a)([Object(r.b)()],t.prototype,"channelsFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"channelStatsFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchOnchainBalance",void 0),Object(i.a)([Object(r.b)()],t.prototype,"peersFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"getNewAddress",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setNewAddress",void 0),Object(i.a)([Object(r.b)()],t.prototype,"saveNewPeer",void 0),Object(i.a)([Object(r.b)()],t.prototype,"detachPeer",void 0),Object(i.a)([Object(r.b)()],t.prototype,"openNewChannel",void 0),Object(i.a)([Object(r.b)()],t.prototype,"updateChannel",void 0),Object(i.a)([Object(r.b)()],t.prototype,"closeChannel",void 0),Object(i.a)([Object(r.b)()],t.prototype,"queryRoutesFetch",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setQueryRoutes",void 0),Object(i.a)([Object(r.b)()],t.prototype,"sendPayment",void 0),Object(i.a)([Object(r.b)()],t.prototype,"transactionsFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"SendOnchainFunds",void 0),Object(i.a)([Object(r.b)()],t.prototype,"createInvoice",void 0),Object(i.a)([Object(r.b)()],t.prototype,"invoicesFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"peerLookup",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setLookup",void 0),t})()},DH7j:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},DLvh:function(t,e,n){"use strict";var i,r=e,s=n("fZJM"),o=n("QTa/"),a=n("86MQ").assert;function c(t){this.curve="short"===t.type?new o.short(t):"edwards"===t.type?new o.edwards(t):new o.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(t,e){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){var n=new c(e);return Object.defineProperty(r,t,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=c,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:s.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:s.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:s.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:s.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:s.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=n("QJsb")}catch(h){i=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:s.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},DaRl:function(t,e,n){"use strict";var i=n("2j6C"),r=n("P7XM"),s={};function o(t){i.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e{class t extends u{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of l)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.l),s.Pb(o.h),s.Pb(r.a,8))},t.\u0275cmp=s.Jb({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&s.Pc(i.r,!0),2&t){let t;s.vc(t=s.ec())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(s.Eb("disabled",e.disabled||null),s.Hb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.Ab],attrs:a,ngContentSelectors:c,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(s.nc(),s.Vb(0,"span",0),s.mc(1),s.Ub(),s.Qb(2,"span",1),s.Qb(3,"span",2)),2&t&&(s.Db(2),s.Hb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.oc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.r],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[i.s,i.i],i.i]}),t})()},DyzK:function(t,e,n){var i=n("Ku4m"),r=n("9GDS"),s=n("g9U9"),o=n("AQYT"),a=n("qVij"),c=n("mObS"),l=n("UpF+"),h=n("hwdV").Buffer;t.exports=function(t,e,n){var u;u=t.padding?t.padding:n?1:4;var d,f=i(t),p=f.modulus.byteLength();if(e.length>p||new o(e).cmp(f.modulus)>=0)throw new Error("decryption error");d=n?l(new o(e),f):a(e,f);var m=h.alloc(p-d.length);if(d=h.concat([m,d],p),4===u)return function(t,e){var n=t.modulus.byteLength(),i=c("sha1").update(h.alloc(0)).digest(),o=i.length;if(0!==e[0])throw new Error("decryption error");var a=e.slice(1,o+1),l=e.slice(o+1),u=s(a,r(l,o)),d=s(l,r(u,n-o-1));if(function(t,e){t=h.from(t),e=h.from(e);var n=0,i=t.length;t.length!==e.length&&(n++,i=Math.min(t.length,e.length));for(var r=-1;++r=e.length){s++;break}var o=e.slice(2,r-1);if(("0002"!==i.toString("hex")&&!n||"0001"!==i.toString("hex")&&n)&&s++,o.length<8&&s++,s)throw new Error("decryption error");return e.slice(r)}(0,d,n);if(3===u)return d;throw new Error("unknown padding")}},"E+IA":function(t,e,n){"use strict";var i=n("w8CP"),r=n("7ckf"),s=n("qlaj"),o=i.rotl32,a=i.sum32,c=i.sum32_5,l=s.ft_1,h=r.BlockHash,u=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(d,h),t.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;iu)&&(s[c]=u,d.push(c,u),r[c]=a));if(void 0!==n&&void 0===s[n]){var f=["Could not find a path from ",e," to ",n,"."].join("");throw new Error(f)}return r},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],i=e;i;)n.push(i),i=t[i];return n.reverse(),n},find_path:function(t,e,n){var r=i.single_source_shortest_paths(t,e,n);return i.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(t){var e,n=i.PriorityQueue,r={};for(e in t=t||{},n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r.queue=[],r.sorter=t.sorter||n.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){this.queue.push({value:t,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=i},EW2V:function(t,e,n){t.exports=n("tOiH")},EY2u:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return s});var i=n("HDdC");const r=new i.a(t=>t.complete());function s(t){return t?function(t){return new i.a(e=>t.schedule(()=>e.complete()))}(t):r}},Edxu:function(t,e,n){"use strict";var i=65536,r=n("hwdV").Buffer,s=global.crypto||global.msCrypto;t.exports=s&&s.getRandomValues?function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var n=r.allocUnsafe(t);if(t>0)if(t>i)for(var o=0;o{class t{constructor(t,e,n,i,p,_,y,v,w){this.actions$=t,this.httpClient=e,this.store=n,this.logger=i,this.commonService=p,this.sessionService=_,this.dialog=y,this.router=v,this.location=w,this.CHILD_API_URL=d.a+"/lnd",this.unSubs=[new s.a,new s.a],this.infoFetch=this.actions$.pipe(Object(r.d)(g.t),Object(a.a)(this.store.select("root")),Object(c.a)(([t,e])=>(this.store.dispatch(new g.i("FetchInfo")),this.httpClient.get(this.CHILD_API_URL+d.b.GETINFO_API).pipe(Object(l.a)(this.actions$.pipe(Object(r.d)(b.O))),Object(h.a)(e=>(this.logger.info(e),e.identity_pubkey?(e.lnImplementation="LND",this.initializeRemainingData(e,t.payload.loadPage),{type:g.Eb,payload:e||{}}):(this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:g.Eb,payload:{}}))),Object(u.a)(t=>("string"==typeof t.error.error&&t.error.error.includes("Not Found")||502===t.status?(this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo","Fetching Node Info Failed.",t)):(this.router.navigate(["/error"],{state:{errorCode:t.error&&t.error.error&&t.error.error.message&&t.error.error.message.code?t.error.error.message.code:t.error&&t.error.error&&t.error.error.code?t.error.error.code:t.status?t.status:"",errorMessage:(t.error.message?t.error.message+" ":"")+(t.error.error&&t.error.error.error&&t.error.error.error.error&&t.error.error.error.error.error&&"string"==typeof t.error.error.error.error.error?t.error.error.error.error.error:t.error.error&&t.error.error.error&&t.error.error.error.error&&"string"==typeof t.error.error.error.error?t.error.error.error.error:t.error.error&&t.error.error.error&&"string"==typeof t.error.error.error?t.error.error.error:t.error.error&&"string"==typeof t.error.error?t.error.error:"string"==typeof t.error?t.error:"Unknown Error")}}),this.handleErrorWithoutAlert("FetchInfo","Fetching Node Info Failed.",t)),Object(o.a)({type:b.bb}))))))),this.peersFetch=this.actions$.pipe(Object(r.d)(g.y),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchPeers")),this.httpClient.get(this.CHILD_API_URL+d.b.PEERS_API).pipe(Object(h.a)(t=>(this.logger.info(t),{type:g.Lb,payload:t||[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchPeers","Fetching Peers Failed.",t),Object(o.a)({type:b.bb}))))))),this.saveNewPeer=this.actions$.pipe(Object(r.d)(g.sb),Object(a.a)(this.store.select("lnd")),Object(c.a)(([t,e])=>(this.store.dispatch(new g.i("SaveNewPeer")),this.httpClient.post(this.CHILD_API_URL+d.b.PEERS_API,{pubkey:t.payload.pubkey,host:t.payload.host,perm:t.payload.perm}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),this.store.dispatch(new g.ac(t&&t.length>0?t:[])),{type:g.db,payload:{peer:t[0]}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SaveNewPeer","Peer Connection Failed.",t),Object(o.a)({type:b.bb}))))))),this.detachPeer=this.actions$.pipe(Object(r.d)(g.k),Object(c.a)(t=>this.httpClient.delete(this.CHILD_API_URL+d.b.PEERS_API+"/"+t.payload.pubkey).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new b.i),this.store.dispatch(new b.E("Peer Disconnected Successfully.")),{type:g.ib,payload:{pubkey:t.payload.pubkey}})),Object(u.a)(e=>(this.handleErrorWithAlert("ERROR","Unable to Detach Peer. Try again later.",this.CHILD_API_URL+d.b.PEERS_API+"/"+t.payload.pubkey,e),Object(o.a)({type:b.bb})))))),this.saveNewInvoice=this.actions$.pipe(Object(r.d)(g.rb),Object(c.a)(t=>(this.store.dispatch(new g.i("SaveNewInvoice")),this.httpClient.post(this.CHILD_API_URL+d.b.INVOICES_API,{memo:t.payload.memo,amount:t.payload.invoiceValue,private:t.payload.private,expiry:t.payload.expiry}).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new g.I({num_max_invoices:t.payload.pageSize,reversed:!0})),t.payload.openModal?(e.memo=t.payload.memo,e.value=t.payload.invoiceValue,e.expiry=t.payload.expiry,e.cltv_expiry="144",e.private=t.payload.private,e.creation_date=Math.round((new Date).getTime()/1e3).toString(),e.creation_date_str=this.commonService.convertTimestampToDate(+e.creation_date),this.store.dispatch(new b.i),{type:b.y,payload:{data:{invoice:e,newlyAdded:!0,component:f.a}}}):{type:g.eb,payload:{paymentRequest:e.payment_request}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SaveNewInvoice","Add Invoice Failed.",t),Object(o.a)({type:b.bb}))))))),this.openNewChannel=this.actions$.pipe(Object(r.d)(g.qb),Object(c.a)(t=>(this.store.dispatch(new g.i("SaveNewChannel")),this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_API,{node_pubkey:t.payload.selectedPeerPubkey,local_funding_amount:t.payload.fundingAmount,private:t.payload.private,trans_type:t.payload.transType,trans_type_value:t.payload.transTypeValue,spend_unconfirmed:t.payload.spendUnconfirmed}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),this.store.dispatch(new g.D("blockchain")),this.store.dispatch(new g.C),this.store.dispatch(new g.d({channelPoint:"ALL",showMessage:"Channel Added Successfully!"})),{type:g.z})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SaveNewChannel","Opening Channel Failed.",t),Object(o.a)({type:b.bb}))))))),this.updateChannel=this.actions$.pipe(Object(r.d)(g.fc),Object(c.a)(t=>this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_API+"/chanPolicy",{baseFeeMsat:t.payload.baseFeeMsat,feeRate:t.payload.feeRate,timeLockDelta:t.payload.timeLockDelta,chanPoint:t.payload.chanPoint}).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new b.i),this.store.dispatch(new b.E("all"===t.payload.chanPoint?"All Channels Updated Successfully.":"Channel Updated Successfully!")),{type:g.o})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Update Channel Failed",this.CHILD_API_URL+d.b.CHANNELS_API+"/chanPolicy",t),Object(o.a)({type:b.bb})))))),this.closeChannel=this.actions$.pipe(Object(r.d)(g.g),Object(c.a)(t=>{let e=this.CHILD_API_URL+d.b.CHANNELS_API+"/"+t.payload.channelPoint+"?force="+t.payload.forcibly;return t.payload.targetConf&&(e=e+"&target_conf="+t.payload.targetConf),t.payload.satPerByte&&(e=e+"&sat_per_byte="+t.payload.satPerByte),this.httpClient.delete(e).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new b.i),this.store.dispatch(new g.D("channels")),this.store.dispatch(new g.D("blockchain")),this.store.dispatch(new g.C),this.store.dispatch(t.payload.forcibly?new g.N:new g.E),this.store.dispatch(new g.d({channelPoint:"ALL",showMessage:"Channel Closed Successfully!"})),{type:g.hb,payload:{channelPoint:t.payload.channelPoint}})),Object(u.a)(e=>(this.handleErrorWithAlert("ERROR","Unable to Close Channel. Try again later.",this.CHILD_API_URL+d.b.CHANNELS_API+"/"+t.payload.channelPoint+"?force="+t.payload.forcibly,e),Object(o.a)({type:b.bb}))))})),this.backupChannels=this.actions$.pipe(Object(r.d)(g.b),Object(c.a)(t=>(this.store.dispatch(new g.i("BackupChannels")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_BACKUP_API+"/"+t.payload.channelPoint).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new b.i),this.store.dispatch(new b.E(t.payload.showMessage+" "+e.message)),{type:g.c,payload:e.message})),Object(u.a)(e=>(this.store.dispatch(new g.n({action:"BackupChannels",code:e.status,message:e.error.error})),this.handleErrorWithAlert("ERROR",t.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+d.b.CHANNELS_BACKUP_API+"/"+t.payload.channelPoint,e),Object(o.a)({type:b.bb}))))))),this.verifyChannels=this.actions$.pipe(Object(r.d)(g.ic),Object(c.a)(t=>(this.store.dispatch(new g.i("VerifyChannels")),this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_BACKUP_API+"/verify/"+t.payload.channelPoint,{}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),this.store.dispatch(new b.E(t.message)),{type:g.jc,payload:t.message})),Object(u.a)(e=>(this.store.dispatch(new g.n({action:"VerifyChannels",code:e.status,message:e.error.error})),this.handleErrorWithAlert("ERROR","Unable to Verify Channel. Try again later.",this.CHILD_API_URL+d.b.CHANNELS_BACKUP_API+"/verify/"+t.payload.channelPoint,e),Object(o.a)({type:b.bb}))))))),this.restoreChannels=this.actions$.pipe(Object(r.d)(g.lb),Object(c.a)(t=>(this.store.dispatch(new g.i("RestoreChannels")),this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_BACKUP_API+"/restore/"+t.payload.channelPoint,{}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),this.store.dispatch(new b.E(t.message)),this.store.dispatch(new g.cc(t.list)),{type:g.mb,payload:t.message})),Object(u.a)(e=>(this.store.dispatch(new g.n({action:"RestoreChannels",code:e.status,message:e.error.error})),this.handleErrorWithAlert("ERROR","Unable to Restore Channel. Try again later.",this.CHILD_API_URL+d.b.CHANNELS_BACKUP_API+"/restore/"+t.payload.channelPoint,e),Object(o.a)({type:b.bb}))))))),this.fetchFees=this.actions$.pipe(Object(r.d)(g.r),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchFees")),this.httpClient.get(this.CHILD_API_URL+d.b.FEES_API))),Object(h.a)(t=>(this.logger.info(t),t.forwarding_events_history&&(this.store.dispatch(new g.Yb(t.forwarding_events_history)),delete t.forwarding_events_history),{type:g.Bb,payload:t||{}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchFees","Fetching Fees Failed.",t),Object(o.a)({type:b.bb})))),this.balanceFetch=this.actions$.pipe(Object(r.d)(g.p),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchBalance/"+t.payload)),this.httpClient.get(this.CHILD_API_URL+d.b.BALANCE_API+"/"+t.payload).pipe(Object(h.a)(e=>("channels"===t.payload&&this.store.dispatch(new g.D("blockchain")),this.logger.info(e),{type:g.wb,payload:e?{target:t.payload,balance:e}:{target:t.payload,balance:"channels"===t.payload?{balance:"",btc_balance:""}:{total_balance:"",btc_total_balance:""}}})),Object(u.a)(e=>(this.handleErrorWithoutAlert("FetchBalance/"+t.payload,"Fetching"+this.commonService.titleCase(t.payload)+" Balance Failed.",e),Object(o.a)({type:b.bb}))))))),this.networkInfoFetch=this.actions$.pipe(Object(r.d)(g.w),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchNetwork")),this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/info"))),Object(h.a)(t=>(this.logger.info(t),{type:g.Ib,payload:t||{}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchNetwork","Fetching Network Failed.",t),Object(o.a)({type:b.bb})))),this.channelsAllFetch=this.actions$.pipe(Object(r.d)(g.o),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchChannels/all")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_API).pipe(Object(h.a)(t=>(this.logger.info(t),{type:g.vb,payload:t&&t.channels&&t.channels.length>0?t.channels:[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchChannels/all","Fetching All Channels Failed.",t),Object(o.a)({type:b.bb}))))))),this.channelsPendingFetch=this.actions$.pipe(Object(r.d)(g.z),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchChannels/pending")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_API+"/pending").pipe(Object(h.a)(t=>{this.logger.info(t);let e={open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0};return t&&(e.total_limbo_balance=t.total_limbo_balance,t.pending_closing_channels&&(e.closing.num_channels=t.pending_closing_channels.length,e.total_channels=e.total_channels+t.pending_closing_channels.length,t.pending_closing_channels.forEach(t=>{e.closing.limbo_balance=+e.closing.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)})),t.pending_force_closing_channels&&(e.force_closing.num_channels=t.pending_force_closing_channels.length,e.total_channels=e.total_channels+t.pending_force_closing_channels.length,t.pending_force_closing_channels.forEach(t=>{e.force_closing.limbo_balance=+e.force_closing.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)})),t.pending_open_channels&&(e.open.num_channels=t.pending_open_channels.length,e.total_channels=e.total_channels+t.pending_open_channels.length,t.pending_open_channels.forEach(t=>{e.open.limbo_balance=+e.open.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)})),t.waiting_close_channels&&(e.waiting_close.num_channels=t.waiting_close_channels.length,e.total_channels=e.total_channels+t.waiting_close_channels.length,t.waiting_close_channels.forEach(t=>{e.waiting_close.limbo_balance=+e.waiting_close.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)}))),{type:g.Mb,payload:t?{channels:t,pendingChannels:e}:{channels:{},pendingChannels:e}}}),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchChannels/pending","Fetching Pending Channels Failed.",t),Object(o.a)({type:b.bb}))))))),this.channelsClosedFetch=this.actions$.pipe(Object(r.d)(g.q),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchChannels/closed")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_API+"/closed").pipe(Object(h.a)(t=>(this.logger.info(t),{type:g.Ab,payload:t&&t.channels&&t.channels.length>0?t.channels:[]}),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchChannels/closed","Fetching Closed Channels Failed.",t),Object(o.a)({type:b.bb})))))))),this.invoicesFetch=this.actions$.pipe(Object(r.d)(g.u),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchInvoices")),this.httpClient.get(this.CHILD_API_URL+d.b.INVOICES_API+"?num_max_invoices="+(t.payload.num_max_invoices?t.payload.num_max_invoices:100)+"&index_offset="+(t.payload.index_offset?t.payload.index_offset:0)+"&reversed="+(!!t.payload.reversed&&t.payload.reversed)).pipe(Object(h.a)(e=>(this.logger.info(e),t.payload.reversed&&!t.payload.index_offset&&this.store.dispatch(new g.dc(+e.last_index_offset)),{type:g.Fb,payload:e})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchInvoices","Fetching Invoices Failed.",t),Object(o.a)({type:b.bb}))))))),this.transactionsFetch=this.actions$.pipe(Object(r.d)(g.A),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchTransactions")),this.httpClient.get(this.CHILD_API_URL+d.b.TRANSACTIONS_API))),Object(h.a)(t=>(this.logger.info(t),{type:g.Qb,payload:t&&t.length>0?t:[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchTransactions","Fetching Transactions Failed.",t),Object(o.a)({type:b.bb})))),this.utxosFetch=this.actions$.pipe(Object(r.d)(g.B),Object(a.a)(this.store.select("lnd")),Object(c.a)(([t,e])=>(this.store.dispatch(new g.i("FetchUTXOs")),this.httpClient.get(this.CHILD_API_URL+d.b.WALLET_API+"/getUTXOs?max_confs="+(e.information&&e.information.block_height?e.information.block_height:1e9)))),Object(h.a)(t=>(this.logger.info(t),{type:g.Rb,payload:t&&t.length>0?t:[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchUTXOs","Fetching UTXOs Failed.",t),Object(o.a)({type:b.bb})))),this.paymentsFetch=this.actions$.pipe(Object(r.d)(g.x),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchPayments")),this.httpClient.get(this.CHILD_API_URL+d.b.PAYMENTS_API))),Object(h.a)(t=>(this.logger.info(t),{type:g.Kb,payload:t||[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchPayments","Fetching Payments Failed.",t),Object(o.a)({type:b.bb})))),this.sendPayment=this.actions$.pipe(Object(r.d)(g.tb),Object(a.a)(this.store.select("root")),Object(c.a)(([t,e])=>{this.store.dispatch(new g.i("SendPayment"));let n={};return t.payload.outgoingChannel&&(n.outgoingChannel=t.payload.outgoingChannel.chan_id),t.payload.allowSelfPayment&&(n.allowSelfPayment=t.payload.allowSelfPayment),t.payload.lastHopPubkey&&(n.lastHopPubkey=t.payload.lastHopPubkey),t.payload.feeLimitType&&t.payload.feeLimitType!==m.i[0]&&(n.feeLimit={},n.feeLimit[t.payload.feeLimitType.id]=t.payload.feeLimit),t.payload.zeroAmtInvoice?n.paymentDecoded=t.payload.paymentDecoded:n.paymentReq=t.payload.paymentReq,this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_API+"/transactions",n).pipe(Object(h.a)(e=>{if(this.logger.info(e),e.payment_error){if(t.payload.allowSelfPayment)return this.store.dispatch(new g.I({num_max_invoices:m.n,reversed:!0})),{type:g.ub,payload:e};{this.logger.error("Error: "+e.payment_error);const n={status:e.payment_error.status,error:e.payment_error.error&&e.payment_error.error.error&&"object"==typeof e.payment_error.error.error?e.payment_error.error.error:{error:e.payment_error.error&&e.payment_error.error.error?e.payment_error.error.error:"Unknown Error"}};return t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):this.handleErrorWithAlert("ERROR","Send Payment Failed",this.CHILD_API_URL+d.b.CHANNELS_API+"/transactions",n),Object(o.a)({type:b.bb})}}if(this.store.dispatch(new g.C),this.store.dispatch(new g.D("channels")),this.store.dispatch(new g.L),t.payload.allowSelfPayment)this.store.dispatch(new g.I({num_max_invoices:m.n,reversed:!0}));else{this.store.dispatch(new b.i);let t="Payment Sent Successfully.";e.payment_route&&e.payment_route.total_fees_msat&&(t="Payment sent successfully with the total fee "+e.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch(new b.E(t))}return{type:g.ub,payload:e}}),Object(u.a)(e=>{if(t.payload.allowSelfPayment)return this.store.dispatch(new g.I({num_max_invoices:m.n,reversed:!0})),Object(o.a)({type:g.ub,payload:e});{this.logger.error("Error: "+JSON.stringify(e));const n={status:e.status,error:e.error&&e.error.error&&"object"==typeof e.error.error?e.error.error:{error:e.error&&e.error.error?e.error.error:"Unknown Error"}};return t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):this.handleErrorWithAlert("ERROR","Send Payment Failed",this.CHILD_API_URL+d.b.CHANNELS_API+"/transactions",n),Object(o.a)({type:b.bb})}}))})),this.graphNodeFetch=this.actions$.pipe(Object(r.d)(g.s),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchGraphNode")),this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/node/"+t.payload.pubkey).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),{type:g.Db,payload:t&&t.node?{node:t.node}:{node:null}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchGraphNode","Fetching Graph Node Failed.",t),Object(o.a)({type:b.bb}))))))),this.setGraphNode=this.actions$.pipe(Object(r.d)(g.Db),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.getNewAddress=this.actions$.pipe(Object(r.d)(g.T),Object(c.a)(t=>this.httpClient.get(this.CHILD_API_URL+d.b.NEW_ADDRESS_API+"?type="+t.payload.addressId).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),{type:g.Jb,payload:t&&t.address?t.address:{}})),Object(u.a)(e=>(this.handleErrorWithAlert("ERROR","Generate New Address Failed",this.CHILD_API_URL+d.b.NEW_ADDRESS_API+"?type="+t.payload.addressId,e),Object(o.a)({type:b.bb})))))),this.setNewAddress=this.actions$.pipe(Object(r.d)(g.Jb),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.SetChannelTransaction=this.actions$.pipe(Object(r.d)(g.xb),Object(c.a)(t=>(this.store.dispatch(new g.i("SetChannelTransaction")),this.httpClient.post(this.CHILD_API_URL+d.b.TRANSACTIONS_API,{amount:t.payload.amount,address:t.payload.address,sendAll:t.payload.sendAll,fees:t.payload.fees,blocks:t.payload.blocks}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),this.store.dispatch(new g.O),this.store.dispatch(new g.D("blockchain")),{type:g.yb,payload:t})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SetChannelTransaction","Sending Fund Failed.",t),Object(o.a)({type:b.bb}))))))),this.fetchForwardingHistory=this.actions$.pipe(Object(r.d)(g.S),Object(c.a)(t=>(this.store.dispatch(new g.i("GetForwardingHistory")),this.httpClient.post(this.CHILD_API_URL+d.b.SWITCH_API,{num_max_events:t.payload.num_max_events,index_offset:t.payload.index_offset,end_time:t.payload.end_time,start_time:t.payload.start_time}).pipe(Object(h.a)(t=>(this.logger.info(t),{type:g.Cb,payload:t})),Object(u.a)(t=>(this.store.dispatch(new g.n({action:"GetForwardingHistory",code:t.status,message:t.error.error})),this.handleErrorWithAlert("ERROR","Get Forwarding History Failed",this.CHILD_API_URL+d.b.SWITCH_API,t),Object(o.a)({type:b.bb}))))))),this.queryRoutesFetch=this.actions$.pipe(Object(r.d)(g.U),Object(c.a)(t=>{let e=this.CHILD_API_URL+d.b.NETWORK_API+"/routes/"+t.payload.destPubkey+"/"+t.payload.amount;return t.payload.outgoingChanId&&(e=e+"?outgoing_chan_id="+t.payload.outgoingChanId),this.httpClient.get(e).pipe(Object(h.a)(t=>(this.logger.info(t),{type:g.Nb,payload:t})),Object(u.a)(t=>(this.store.dispatch(new g.bc({})),this.handleErrorWithAlert("ERROR","Get Query Routes Failed",this.CHILD_API_URL+d.b.NETWORK_API,t),Object(o.a)({type:b.bb}))))})),this.setQueryRoutes=this.actions$.pipe(Object(r.d)(g.Nb),Object(h.a)(t=>t.payload)),this.genSeed=this.actions$.pipe(Object(r.d)(g.Q),Object(c.a)(t=>this.httpClient.get(this.CHILD_API_URL+d.b.WALLET_API+"/genseed/"+t.payload).pipe(Object(h.a)(t=>(this.logger.info("Generated GenSeed!"),this.logger.info(t),this.store.dispatch(new b.i),{type:g.R,payload:t.cipher_seed_mnemonic})),Object(u.a)(e=>(this.handleErrorWithAlert("ERROR","Genseed Generation Failed",this.CHILD_API_URL+d.b.WALLET_API+"/genseed/"+t.payload,e),Object(o.a)({type:b.bb})))))),this.updateSelNodeOptions=this.actions$.pipe(Object(r.d)(b.Y),Object(c.a)(t=>this.httpClient.get(this.CHILD_API_URL+d.b.WALLET_API+"/updateSelNodeOptions").pipe(Object(h.a)(t=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(t),this.store.dispatch(new b.i),{type:b.bb})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",t),Object(o.a)({type:b.bb})))))),this.genSeedResponse=this.actions$.pipe(Object(r.d)(g.R),Object(h.a)(t=>t.payload)),this.initWalletRes=this.actions$.pipe(Object(r.d)(g.ab),Object(h.a)(t=>t.payload)),this.initWallet=this.actions$.pipe(Object(r.d)(g.Z),Object(c.a)(t=>this.httpClient.post(this.CHILD_API_URL+d.b.WALLET_API+"/wallet/initwallet",{wallet_password:t.payload.pwd,cipher_seed_mnemonic:t.payload.cipher?t.payload.cipher:"",aezeed_passphrase:t.payload.passphrase?t.payload.passphrase:""}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),{type:g.ab,payload:t})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Wallet Initialization Failed",this.CHILD_API_URL+d.b.WALLET_API+"/initwallet",t),Object(o.a)({type:b.bb})))))),this.unlockWallet=this.actions$.pipe(Object(r.d)(g.ec),Object(c.a)(t=>this.httpClient.post(this.CHILD_API_URL+d.b.WALLET_API+"/wallet/unlockwallet",{wallet_password:t.payload.pwd}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),this.store.dispatch(new b.F("Initializing Node...")),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),setTimeout(()=>{this.store.dispatch(new b.i),this.logger.info("Successfully Initialized!"),this.store.dispatch(new g.H({loadPage:"HOME"}))},5e3),{type:b.bb})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Unlock Wallet Failed",this.CHILD_API_URL+d.b.WALLET_API+"/unlockwallet",t),Object(o.a)({type:b.bb})))))),this.peerLookup=this.actions$.pipe(Object(r.d)(g.fb),Object(c.a)(t=>(this.store.dispatch(new g.i("Lookup")),this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/node/"+t.payload).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),{type:g.Gb,payload:t})),Object(u.a)(e=>(this.store.dispatch(new g.n({action:"Lookup",code:e.status,message:e.error.message})),this.handleErrorWithAlert("ERROR","Peer Lookup Failed",this.CHILD_API_URL+d.b.NETWORK_API+"/node/"+t.payload,e),Object(o.a)({type:b.bb}))))))),this.channelLookup=this.actions$.pipe(Object(r.d)(g.e),Object(c.a)(t=>(this.store.dispatch(new g.i("Lookup")),this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/edge/"+t.payload).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),{type:g.Gb,payload:t})),Object(u.a)(e=>(this.store.dispatch(new g.n({action:"Lookup",code:e.status,message:e.error.message})),this.handleErrorWithAlert("ERROR","Channel Lookup Failed",this.CHILD_API_URL+d.b.NETWORK_API+"/edge/"+t.payload,e),this.store.dispatch(new g.Zb({})),Object(o.a)({type:b.bb}))))))),this.invoiceLookup=this.actions$.pipe(Object(r.d)(g.bb),Object(c.a)(t=>(this.store.dispatch(new g.i("Lookup")),this.httpClient.get(this.CHILD_API_URL+d.b.INVOICES_API+"/"+t.payload).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),{type:g.Gb,payload:t})),Object(u.a)(e=>(this.store.dispatch(new g.n({action:"Lookup",code:e.status,message:e.error.message})),this.handleErrorWithAlert("ERROR","Invoice Lookup Failed",this.CHILD_API_URL+d.b.INVOICES_API+"/"+t.payload,e),Object(o.a)({type:b.bb}))))))),this.setLookup=this.actions$.pipe(Object(r.d)(g.Gb),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.getRestoreChannelList=this.actions$.pipe(Object(r.d)(g.kb),Object(c.a)(t=>(this.store.dispatch(new g.i("RestoreChannelsList")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_BACKUP_API+"/restore/list").pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),{type:g.Ob,payload:t||{all_restore_exists:!1,files:[]}})),Object(u.a)(t=>(this.store.dispatch(new g.n({action:"RestoreChannelsList",code:t.status,message:t.error.message})),this.handleErrorWithAlert("ERROR","Restore Channels List Failed",this.CHILD_API_URL+d.b.CHANNELS_BACKUP_API,t),Object(o.a)({type:b.bb}))))))),this.setRestoreChannelList=this.actions$.pipe(Object(r.d)(g.Ob),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.getLoopSwaps=this.actions$.pipe(Object(r.d)(g.v),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchSwaps")),this.httpClient.get(this.CHILD_API_URL+d.b.LOOP_API+"/swaps").pipe(Object(h.a)(t=>(this.logger.info(t),{type:g.Hb,payload:t})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchSwaps","Fetching Swaps Failed.",t),Object(o.a)({type:b.bb}))))))),this.store.select("lnd").pipe(Object(l.a)(this.unSubs[0])).subscribe(t=>{"INCOMPLETE"===t.initialAPIResponseStatus[0]&&t.initialAPIResponseStatus.length>8&&(t.initialAPIResponseStatus[0]="COMPLETE",this.store.dispatch(new b.i))})}initializeRemainingData(t,e){if(this.sessionService.setItem("lndUnlocked","true"),t.chains){if("string"==typeof t.chains[0])t.smaller_currency_unit=t.chains[0].toString().toLowerCase().indexOf("bitcoin")<0?m.g.LITOSHIS:m.g.SATS,t.currency_unit=t.chains[0].toString().toLowerCase().indexOf("bitcoin")<0?m.g.LTC:m.g.BTC;else if("object"==typeof t.chains[0]&&t.chains[0].hasOwnProperty("chain")){const e=t.chains[0];t.smaller_currency_unit=e.chain.toLowerCase().indexOf("bitcoin")<0?m.g.LITOSHIS:m.g.SATS,t.currency_unit=e.chain.toLowerCase().indexOf("bitcoin")<0?m.g.LTC:m.g.BTC}t.version=t.version?t.version.split(" ")[0]:""}else t.smaller_currency_unit=m.g.SATS,t.currency_unit=m.g.BTC,t.version=t.version?t.version.split(" ")[0]:"";const n={identity_pubkey:t.identity_pubkey,alias:t.alias,testnet:t.testnet,chains:t.chains,uris:t.uris,version:t.version,currency_unit:t.currency_unit,smaller_currency_unit:t.smaller_currency_unit};this.store.dispatch(new b.F("Initializing Node Data...")),this.store.dispatch(new b.T(n)),this.store.dispatch(new g.M),this.store.dispatch(new g.D("channels")),this.store.dispatch(new g.K),this.store.dispatch(new g.C),this.store.dispatch(new g.N),this.store.dispatch(new g.E),this.store.dispatch(new g.I({num_max_invoices:10,reversed:!0})),this.store.dispatch(new g.L),this.store.dispatch(new g.F);let i=this.location.path();i.includes("/cl/")?i=i.replace("/cl/","/lnd/"):i.includes("/ecl/")&&(i=i.replace("/ecl/","/lnd/")),(i.includes("/unlock")||i.includes("/login")||i.includes("/error")||""===i||"HOME"===e||i.includes("?access-key="))&&(i="/lnd/home"),this.router.navigate([i])}handleErrorWithoutAlert(t,e,n){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(n)),401===n.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new b.g),this.store.dispatch(new b.x),this.store.dispatch(new b.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new b.i),this.store.dispatch(new g.n({action:t,code:n.status.toString(),message: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.error&&n.error.error.error&&n.error.error.error.error&&"string"==typeof n.error.error.error.error?n.error.error.error.error:n.error.error&&n.error.error.error&&"string"==typeof n.error.error.error?n.error.error.error:n.error.error&&"string"==typeof n.error.error?n.error.error:"string"==typeof n.error?n.error:e})))}handleErrorWithAlert(t,e,n,i){this.logger.error(i),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new b.g),this.store.dispatch(new b.x),this.store.dispatch(new b.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new b.i),this.store.dispatch(new b.C({data:{type:t,alertTitle:e,message:{code:i.status,message:i.error.error&&i.error.error.error&&i.error.error.error.error&&i.error.error.error.error.error&&"string"==typeof i.error.error.error.error.error?i.error.error.error.error.error:i.error.error&&i.error.error.error&&i.error.error.error.error&&"string"==typeof i.error.error.error.error?i.error.error.error.error:i.error.error&&i.error.error.error&&"string"==typeof i.error.error.error?i.error.error.error:i.error.error&&"string"==typeof i.error.error?i.error.error:"string"==typeof i.error?i.error:"Unknown Error",URL:n},component:p.a}})))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(_.Zb(r.a),_.Zb(y.b),_.Zb(v.h),_.Zb(w.b),_.Zb(x.a),_.Zb(C.a),_.Zb(S.c),_.Zb(E.g),_.Zb(k.j))},t.\u0275prov=_.Lb({token:t,factory:t.\u0275fac}),Object(i.a)([Object(r.b)()],t.prototype,"infoFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"peersFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"saveNewPeer",void 0),Object(i.a)([Object(r.b)()],t.prototype,"detachPeer",void 0),Object(i.a)([Object(r.b)()],t.prototype,"saveNewInvoice",void 0),Object(i.a)([Object(r.b)()],t.prototype,"openNewChannel",void 0),Object(i.a)([Object(r.b)()],t.prototype,"updateChannel",void 0),Object(i.a)([Object(r.b)()],t.prototype,"closeChannel",void 0),Object(i.a)([Object(r.b)()],t.prototype,"backupChannels",void 0),Object(i.a)([Object(r.b)()],t.prototype,"verifyChannels",void 0),Object(i.a)([Object(r.b)()],t.prototype,"restoreChannels",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchFees",void 0),Object(i.a)([Object(r.b)()],t.prototype,"balanceFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"networkInfoFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"channelsAllFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"channelsPendingFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"channelsClosedFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"invoicesFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"transactionsFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"utxosFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"paymentsFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"sendPayment",void 0),Object(i.a)([Object(r.b)()],t.prototype,"graphNodeFetch",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setGraphNode",void 0),Object(i.a)([Object(r.b)()],t.prototype,"getNewAddress",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setNewAddress",void 0),Object(i.a)([Object(r.b)()],t.prototype,"SetChannelTransaction",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchForwardingHistory",void 0),Object(i.a)([Object(r.b)()],t.prototype,"queryRoutesFetch",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setQueryRoutes",void 0),Object(i.a)([Object(r.b)()],t.prototype,"genSeed",void 0),Object(i.a)([Object(r.b)()],t.prototype,"updateSelNodeOptions",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"genSeedResponse",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"initWalletRes",void 0),Object(i.a)([Object(r.b)()],t.prototype,"initWallet",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"unlockWallet",void 0),Object(i.a)([Object(r.b)()],t.prototype,"peerLookup",void 0),Object(i.a)([Object(r.b)()],t.prototype,"channelLookup",void 0),Object(i.a)([Object(r.b)()],t.prototype,"invoiceLookup",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setLookup",void 0),Object(i.a)([Object(r.b)()],t.prototype,"getRestoreChannelList",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setRestoreChannelList",void 0),Object(i.a)([Object(r.b)()],t.prototype,"getLoopSwaps",void 0),t})()},FUXG:function(t,e,n){"use strict";e.utils=n("Xudb"),e.Cipher=n("AYSA"),e.DES=n("Titl"),e.CBC=n("DaRl"),e.EDE=n("H+yo")},GS7A:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"d",function(){return b}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return f}),n.d(e,"g",function(){return u}),n.d(e,"h",function(){return p}),n.d(e,"i",function(){return c}),n.d(e,"j",function(){return h}),n.d(e,"k",function(){return l}),n.d(e,"l",function(){return d}),n.d(e,"m",function(){return o}),n.d(e,"n",function(){return g}),n.d(e,"o",function(){return _});class i{}class r{}const s="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function c(t,e=null){return{type:2,steps:t,options:e}}function l(t){return{type:6,styles:t,offset:null}}function h(t,e,n){return{type:0,name:t,styles:e,options:n}}function u(t){return{type:5,steps:t}}function d(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function f(t=null){return{type:9,options:t}}function p(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function m(t){Promise.resolve(null).then(t)}class b{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class g{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const r=this.players.length;0==r?m(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==r&&this._onFinish()}),t.onDestroy(()=>{++n==r&&this._onDestroy()}),t.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const _="!"},Giow:function(t,e,n){"use strict";var i=n("P7XM"),r=n("1CSz"),s=n("ZDAU"),o=n("hwdV").Buffer,a=n("WnY+"),c=n("tcrS"),l=n("afKu"),h=o.alloc(128);function u(t,e){s.call(this,"digest"),"string"==typeof e&&(e=o.from(e));var n="sha512"===t||"sha384"===t?128:64;this._alg=t,this._key=e,e.length>n?e=("rmd160"===t?new c:l(t)).update(e).digest():e.length0?o-4:o;for(n=0;n>16&255,c[h++]=e>>8&255,c[h++]=255&e;return 2===a&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[h++]=255&e),1===a&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[h++]=e>>8&255,c[h++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,s=[],o=16383,a=0,c=n-r;ac?c:a+o));return 1===r?s.push(i[(e=t[n-1])>>2]+i[e<<4&63]+"=="):2===r&&s.push(i[(e=(t[n-2]<<8)+t[n-1])>>10]+i[e>>4&63]+i[e<<2&63]+"="),s.join("")};for(var i=[],r=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function h(t,e,n){for(var r,s=[],o=e;o>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},HDdC:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("7o/Q"),r=n("2QA8"),s=n("gRHU"),o=n("kJWO"),a=n("SpAZ"),c=n("2fFW");let l=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[r.a])return t[r.a]()}return t||e||n?new i.a(t,e,n):new i.a(s.a)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof i.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=h(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(r){n(r),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.a](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.a:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=h(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function h(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},HEbw:function(t,e,n){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=n("Edxu"),e.createHash=e.Hash=n("mObS"),e.createHmac=e.Hmac=n("Giow");var i=n("EW2V"),r=Object.keys(i),s=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r);e.getHashes=function(){return s};var o=n("oJl4");e.pbkdf2=o.pbkdf2,e.pbkdf2Sync=o.pbkdf2Sync;var a=n("lWpZ");e.Cipher=a.Cipher,e.createCipher=a.createCipher,e.Cipheriv=a.Cipheriv,e.createCipheriv=a.createCipheriv,e.Decipher=a.Decipher,e.createDecipher=a.createDecipher,e.Decipheriv=a.Decipheriv,e.createDecipheriv=a.createDecipheriv,e.getCiphers=a.getCiphers,e.listCiphers=a.listCiphers;var c=n("ANxK");e.DiffieHellmanGroup=c.DiffieHellmanGroup,e.createDiffieHellmanGroup=c.createDiffieHellmanGroup,e.getDiffieHellman=c.getDiffieHellman,e.createDiffieHellman=c.createDiffieHellman,e.DiffieHellman=c.DiffieHellman;var l=n("tpL1");e.createSign=l.createSign,e.Sign=l.Sign,e.createVerify=l.createVerify,e.Verify=l.Verify,e.createECDH=n("4dMO");var h=n("ZEK9");e.publicEncrypt=h.publicEncrypt,e.privateEncrypt=h.privateEncrypt,e.publicDecrypt=h.publicDecrypt,e.privateDecrypt=h.privateDecrypt;var u=n("dcwN");e.randomFill=u.randomFill,e.randomFillSync=u.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},HeVh:function(t,e,n){"use strict";n.d(e,"a",function(){return w}),n.d(e,"b",function(){return C}),n.d(e,"c",function(){return b});var i=n("8Y7J"),r=n("8LU1"),s=n("XNiG"),o=n("itXk"),a=n("GyhO"),c=n("HDdC"),l=n("IzEk"),h=n("zP0r"),u=n("Kj3r"),d=n("lJxs"),f=n("JX91"),p=n("1G5W"),m=n("SCoL");let b=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})();const g=new Set;let _,y=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):v}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!g.has(t))try{_||(_=document.createElement("style"),_.setAttribute("type","text/css"),document.head.appendChild(_)),_.sheet&&(_.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),g.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(m.a))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(m.a))},token:t,providedIn:"root"}),t})();function v(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let w=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new s.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return x(Object(r.b)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=x(Object(r.b)(t)).map(t=>this._registerQuery(t).observable);let n=Object(o.b)(e);return n=Object(a.a)(n.pipe(Object(l.a)(1)),n.pipe(Object(h.a)(1),Object(u.a)(0))),n.pipe(Object(d.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new c.a(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Object(f.a)(e),Object(d.a)(({matches:e})=>({query:t,matches:e})),Object(p.a)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(y),i.Zb(i.B))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(y),Object(i.Zb)(i.B))},token:t,providedIn:"root"}),t})();function x(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const C={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},Hjy1:function(t,e,n){var i=n("ZDAU"),r=n("FUXG"),s=n("P7XM"),o=n("hwdV").Buffer,a={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};function c(t){i.call(this);var e,n=t.mode.toLowerCase(),r=a[n];e=t.decrypt?"decrypt":"encrypt";var s=t.key;o.isBuffer(s)||(s=o.from(s)),"des-ede"!==n&&"des-ede-cbc"!==n||(s=o.concat([s,s.slice(0,8)]));var c=t.iv;o.isBuffer(c)||(c=o.from(c)),this._des=r.create({key:s,iv:c,type:e})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],t.exports=c,s(c,i),c.prototype._update=function(t){return o.from(this._des.update(t))},c.prototype._final=function(){return o.from(this._des.final())}},"Ht+U":function(t,e,n){"use strict";n.d(e,"a",function(){return _}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return m}),n.d(e,"d",function(){return h}),n.d(e,"e",function(){return s}),n.d(e,"f",function(){return o}),n.d(e,"g",function(){return u}),n.d(e,"h",function(){return d}),n.d(e,"i",function(){return g}),n.d(e,"j",function(){return l}),n.d(e,"k",function(){return c}),n.d(e,"l",function(){return p}),n.d(e,"m",function(){return a}),n.d(e,"n",function(){return r}),n.d(e,"o",function(){return f}),n.d(e,"p",function(){return y}),n.d(e,"q",function(){return b}),n.d(e,"r",function(){return v});const i=8,r=9,s=13,o=27,a=32,c=33,l=34,h=35,u=36,d=37,f=38,p=39,m=40,b=48,g=57,_=65,y=90;function v(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},I55L:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},IG1u:function(t,e,n){var i,r=n("hwdV").Buffer,s=n("fSpj"),o=n("n53Y"),a=n("4Hv8"),c=n("i+bA"),l=global.crypto&&global.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},u=[];function d(t,e,n,i,s){return l.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return l.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:{name:s}},t,i<<3)}).then(function(t){return r.from(t)})}t.exports=function(t,e,n,f,p,m){"function"==typeof p&&(m=p,p=void 0);var b=h[(p=p||"sha1").toLowerCase()];if(!b||"function"!=typeof global.Promise)return process.nextTick(function(){var i;try{i=a(t,e,n,f,p)}catch(r){return m(r)}m(null,i)});if(s(n,f),t=c(t,o,"Password"),e=c(e,o,"Salt"),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then(function(t){process.nextTick(function(){e(null,t)})},function(t){process.nextTick(function(){e(t)})})}(function(t){if(global.process&&!global.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==u[t])return u[t];var e=d(i=i||r.alloc(8),i,10,128,t).then(function(){return!0}).catch(function(){return!1});return u[t]=e,e}(b).then(function(i){return i?d(t,e,n,f,b):a(t,e,n,f,p)}),m)}},IPZY:function(t,e,n){"use strict";const i=e;i.der=n("z71Z"),i.pem=n("jfd1")},ITfd:function(t,e,n){"use strict";var i=n("w8CP"),r=n("2j6C");function s(t,e,n){if(!(this instanceof s))return new s(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(e,n))}t.exports=s,s.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),r(t.length<=this.blockSize);for(var e=t.length;e{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class f{encodeKey(t){return p(t)}encodeValue(t){return p(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function p(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new f,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[r,s]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(r)||[];o.push(s),n.set(r,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function b(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function g(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _(t){return"undefined"!=typeof FormData&&t instanceof FormData}class y{constructor(t,e,n,i){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new d),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new y(e,n,r,{params:c,headers:a,reportProgress:o,responseType:i,withCredentials:s})}}var v=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class w{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class x extends w{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new x({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class C extends w{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new C({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class S extends w{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function E(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let k=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof y)i=t;else{let r=void 0;r=n.headers instanceof d?n.headers:new d(n.headers);let s=void 0;n.params&&(s=n.params instanceof m?n.params:new m({fromObject:n.params})),i=new y(t,e,void 0!==n.body?n.body:null,{headers:r,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Object(r.a)(i).pipe(Object(o.a)(t=>this.handler.handle(t)));if(t instanceof y||"events"===n.observe)return s;const l=s.pipe(Object(a.a)(t=>t instanceof C));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(Object(c.a)(t=>t.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,E(n,e))}post(t,e,n={}){return this.request("POST",t,E(n,e))}put(t,e,n={}){return this.request("PUT",t,E(n,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(h))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();class O{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const A=new i.s("HTTP_INTERCEPTORS");let D=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();const I=/^\)\]\}',?\n/;class T{}let L=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),P=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new s.a(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",s=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return r=new x({headers:s,status:e,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:a}=s(),c=null;204!==r&&(c=void 0===n.response?n.responseText:n.response),0===r&&(r=c?200:0);let l=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(I,"");try{c=""!==c?JSON.parse(c):null}catch(h){c=t,l&&(l=!1,c={error:h,text:c})}}l?(e.next(new C({body:c,headers:i,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new S({error:c,headers:i,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=s(),r=new S({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let c=!1;const l=i=>{c||(e.next(s()),c=!0);let r={type:v.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},h=t=>{let n={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",l),null!==i&&n.upload&&n.upload.addEventListener("progress",h)),n.send(i),e.next({type:v.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",l),null!==i&&n.upload&&n.upload.removeEventListener("progress",h)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(T))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();const R=new i.s("XSRF_COOKIE_NAME"),M=new i.s("XSRF_HEADER_NAME");class j{}let F=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(l.F)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(l.d),i.Zb(i.D),i.Zb(R))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),N=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(j),i.Zb(M))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(A,[]);this.chain=t.reduceRight((t,e)=>new O(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(u),i.Zb(i.t))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),U=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:N,useClass:D}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:R,useValue:e.cookieName}:[],e.headerName?{provide:M,useValue:e.headerName}:[]]}}}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[N,{provide:A,useExisting:N,multi:!0},{provide:j,useClass:F},{provide:R,useValue:"XSRF-TOKEN"},{provide:M,useValue:"X-XSRF-TOKEN"}]}),t})(),B=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[k,{provide:h,useClass:V},P,{provide:u,useExisting:P},L,{provide:T,useExisting:L}],imports:[[U.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},IjjT:function(t,e,n){"use strict";n.d(e,"a",function(){return r});let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class r extends i{constructor(t,e=i.now){super(t,()=>r.delegate&&r.delegate!==this?r.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return r.delegate&&r.delegate!==this?r.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},Iqt3:function(t,e,n){"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n("tjlA").Buffer,o=n(2).inspect,a=o&&o.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e;return(e=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return s.alloc(0);for(var e=s.allocUnsafe(t>>>0),n=this.head,i=0;n;)s.prototype.copy.call(n.data,e,i),i+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return tr.length?r.length:t;if(i+=s===r.length?r:r.slice(0,t),0==(t-=s)){s===r.length?(++n,this.head=e.next?e.next:this.tail=null):(this.head=e,e.data=r.slice(s));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var r=n.data,o=t>r.length?r.length:t;if(r.copy(e,e.length-t,0,o),0==(t-=o)){o===r.length?(++i,this.head=n.next?n.next:this.tail=null):(this.head=n,n.data=r.slice(o));break}++i}return this.length-=i,e}},{key:a,value:function(t,e){return o(this,function(t){for(var e=1;e0===t?Object(s.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new r.a}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends i.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},IzUq:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},J6Nv:function(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},J78i:function(t,e,n){"use strict";t.exports=o;var i=n("sZro"),r=Object.create(n("Onz0"));function s(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),i(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.lengthr.createHmac(t,Buffer.from(e,"hex")).update(Buffer.from(n,"hex")).digest().toString("hex"),e.createRandomBytes=(t,e)=>r.randomBytes(t).toString(e)},JIr8:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("zx2A");function r(t){return function(e){const n=new s(t),i=e.lift(n);return n.caught=i}}class s{constructor(t){this.selector=t}call(t,e){return e.subscribe(new o(t,this.selector,this.caught))}}class o extends i.b{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new i.a(this);this.add(r);const s=Object(i.c)(n,r);s!==r&&this.add(s)}}}},JX91:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("GyhO"),r=n("z+Ro");function s(...t){const e=t[t.length-1];return Object(r.a)(e)?(t.pop(),n=>Object(i.a)(t,n,e)):e=>Object(i.a)(t,e)}},JzKC:function(t,e,n){var i=n("Wogr"),r=n("aZ40");e.mul=function(t,e){var n=new i(t.length+e.length-1);n.fill(0);for(var s=0;s=0;){for(var s=n[0],o=0;on.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.a{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function c(t){t.debouncedNext()}},Kqap:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q");function r(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new s(t,e,n))}}class s{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new o(t,this.accumulator,this.seed,this.hasSeed))}}class o extends i.a{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}},Ku4m:function(t,e,n){var i=n("QRH4"),r=n("1w4i"),s=n("TdD3"),o=n("/ab2"),a=n("oJl4"),c=n("hwdV").Buffer;function l(t){var e;"object"!=typeof t||c.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=c.from(t));var n,l,h=s(t,e),u=h.tag,d=h.data;switch(u){case"CERTIFICATE":l=i.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(l||(l=i.PublicKey.decode(d,"der")),n=l.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(l.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return l.subjectPrivateKey=l.subjectPublicKey,{type:"ec",data:l};case"1.2.840.10040.4.1":return l.algorithm.params.pub_key=i.DSAparam.decode(l.subjectPublicKey.data,"der"),{type:"dsa",data:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":d=function(t,e){var n=t.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),s=r[t.algorithm.decrypt.cipher.algo.join(".")],l=t.algorithm.decrypt.cipher.iv,h=t.subjectPrivateKey,u=parseInt(s.split("-")[1],10)/8,d=a.pbkdf2Sync(e,n,i,u,"sha1"),f=o.createDecipheriv(s,d,l),p=[];return p.push(f.update(h)),p.push(f.final()),c.concat(p)}(d=i.EncryptedPrivateKey.decode(d,"der"),e);case"PRIVATE KEY":switch(n=(l=i.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(l.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:l.algorithm.curve,privateKey:i.ECPrivateKey.decode(l.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return l.algorithm.params.priv_key=i.DSAparam.decode(l.subjectPrivateKey,"der"),{type:"dsa",params:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=i.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+u)}}t.exports=l,l.signature=i.signature},"Kz+i":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("J9en"),r=n("fkiA"),s=n("g9mE");const o=new s.HOTP({createDigest:i.createDigest}),a=new s.TOTP({createDigest:i.createDigest}),c=new s.Authenticator({createDigest:i.createDigest,createRandomBytes:i.createRandomBytes,keyDecoder:r.keyDecoder,keyEncoder:r.keyEncoder});e.authenticator=c,e.hotp=o,e.totp=a},LGOv:function(t,e,n){t.exports=n("3BRs")},LRne:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("z+Ro"),r=n("yCtX"),s=n("jZKg");function o(...t){let e=t[t.length-1];return Object(i.a)(e)?(t.pop(),Object(s.a)(t,e)):Object(r.a)(t)}},LUZP:function(t,e,n){"use strict";n.d(e,"a",function(){return g}),n.d(e,"b",function(){return E}),n.d(e,"c",function(){return k});var i=n("8Y7J"),r=n("8LU1"),s=n("UhP/"),o=n("Ht+U"),a=n("XNiG"),c=n("VRyK"),l=n("GS7A"),h=n("SVse"),u=n("YEUz");const d=["mat-sort-header",""];function f(t,e){if(1&t){const t=i.Wb();i.Vb(0,"div",3),i.dc("@arrowPosition.start",function(){return i.zc(t),i.hc()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return i.zc(t),i.hc()._disableViewStateAnimation=!1}),i.Qb(1,"div",4),i.Vb(2,"div",5),i.Qb(3,"div",6),i.Qb(4,"div",7),i.Qb(5,"div",8),i.Ub(),i.Ub()}if(2&t){const t=i.hc();i.oc("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),i.Db(2),i.oc("@indicator",t._getArrowDirectionState()),i.Db(1),i.oc("@leftPointer",t._getArrowDirectionState()),i.Db(1),i.oc("@rightPointer",t._getArrowDirectionState())}}const p=["*"];class m{}const b=Object(s.B)(Object(s.z)(m));let g=(()=>{class t extends b{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new a.a,this.start="asc",this._direction="",this.sortChange=new i.o}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Object(r.c)(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let e=function(t,e){let n=["asc","desc"];return"desc"==t&&n.reverse(),e||n.push(""),n}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),n=e.indexOf(this.direction)+1;return n>=e.length&&(n=0),e[n]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return _(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.Ab,i.Bb]}),t})();const _=i.Xb(g),y=s.b.ENTERING+" "+s.a.STANDARD_CURVE,v={indicator:Object(l.m)("indicator",[Object(l.j)("active-asc, asc",Object(l.k)({transform:"translateY(0px)"})),Object(l.j)("active-desc, desc",Object(l.k)({transform:"translateY(10px)"})),Object(l.l)("active-asc <=> active-desc",Object(l.e)(y))]),leftPointer:Object(l.m)("leftPointer",[Object(l.j)("active-asc, asc",Object(l.k)({transform:"rotate(-45deg)"})),Object(l.j)("active-desc, desc",Object(l.k)({transform:"rotate(45deg)"})),Object(l.l)("active-asc <=> active-desc",Object(l.e)(y))]),rightPointer:Object(l.m)("rightPointer",[Object(l.j)("active-asc, asc",Object(l.k)({transform:"rotate(45deg)"})),Object(l.j)("active-desc, desc",Object(l.k)({transform:"rotate(-45deg)"})),Object(l.l)("active-asc <=> active-desc",Object(l.e)(y))]),arrowOpacity:Object(l.m)("arrowOpacity",[Object(l.j)("desc-to-active, asc-to-active, active",Object(l.k)({opacity:1})),Object(l.j)("desc-to-hint, asc-to-hint, hint",Object(l.k)({opacity:.54})),Object(l.j)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Object(l.k)({opacity:0})),Object(l.l)("* => asc, * => desc, * => active, * => hint, * => void",Object(l.e)("0ms")),Object(l.l)("* <=> *",Object(l.e)(y))]),arrowPosition:Object(l.m)("arrowPosition",[Object(l.l)("* => desc-to-hint, * => desc-to-active",Object(l.e)(y,Object(l.g)([Object(l.k)({transform:"translateY(-25%)"}),Object(l.k)({transform:"translateY(0)"})]))),Object(l.l)("* => hint-to-desc, * => active-to-desc",Object(l.e)(y,Object(l.g)([Object(l.k)({transform:"translateY(0)"}),Object(l.k)({transform:"translateY(25%)"})]))),Object(l.l)("* => asc-to-hint, * => asc-to-active",Object(l.e)(y,Object(l.g)([Object(l.k)({transform:"translateY(25%)"}),Object(l.k)({transform:"translateY(0)"})]))),Object(l.l)("* => hint-to-asc, * => active-to-asc",Object(l.e)(y,Object(l.g)([Object(l.k)({transform:"translateY(0)"}),Object(l.k)({transform:"translateY(-25%)"})]))),Object(l.j)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Object(l.k)({transform:"translateY(0)"})),Object(l.j)("hint-to-desc, active-to-desc, desc",Object(l.k)({transform:"translateY(-25%)"})),Object(l.j)("hint-to-asc, active-to-asc, asc",Object(l.k)({transform:"translateY(25%)"}))]),allowChildren:Object(l.m)("allowChildren",[Object(l.l)("* <=> *",[Object(l.h)("@*",Object(l.f)(),{optional:!0})])])};let w=(()=>{class t{constructor(){this.changes=new a.a,this.sortButtonLabel=t=>"Change sorting for "+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const x={provide:w,deps:[[new i.C,new i.M,w]],useFactory:function(t){return t||new w}};class C{}const S=Object(s.z)(C);let E=(()=>{class t extends S{constructor(t,e,n,i,r,s){super(),this._intl=t,this._sort=n,this._columnDef=i,this._focusMonitor=r,this._elementRef=s,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._rerenderSubscription=Object(c.a)(n.sortChange,n._stateChanges,t.changes).subscribe(()=>{this._isSorted()&&this._updateArrowDirection(),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),e.markForCheck()})}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Object(r.c)(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>this._setIndicatorHintVisible(!!t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);const t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}_handleClick(){this._isDisabled()||this._toggleOnInteraction()}_handleKeydown(t){this._isDisabled()||t.keyCode!==o.m&&t.keyCode!==o.e||(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?t+"-to-":"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(w),i.Pb(i.h),i.Pb(g,8),i.Pb("MAT_SORT_HEADER_COLUMN_DEF",8),i.Pb(u.h),i.Pb(i.l))},t.\u0275cmp=i.Jb({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&i.dc("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(i.Eb("aria-sort",e._getAriaSortAttribute()),i.Hb("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[i.Ab],attrs:d,ngContentSelectors:p,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(i.nc(),i.Vb(0,"div",0),i.Vb(1,"div",1),i.mc(2),i.Ub(),i.Ic(3,f,6,6,"div",2),i.Ub()),2&t&&(i.Hb("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),i.Eb("tabindex",e._isDisabled()?null:0),i.Db(3),i.oc("ngIf",e._renderArrow()))},directives:[h.o],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[v.indicator,v.leftPointer,v.rightPointer,v.arrowOpacity,v.arrowPosition,v.allowChildren]},changeDetection:0}),t})(),k=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[x],imports:[[h.c,s.i]]}),t})()},Lhse:function(t,e,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",function(){return r});const r=i()},Lnru:function(t,e,n){"use strict";n.d(e,"a",function(){return Xo}),n.d(e,"b",function(){return Yo}),n.d(e,"c",function(){return la});var i=n("8Y7J"),r=n("SVse"),s=n("GS7A"),o=n("1z/I"),a=n("mrSG"),c=n("xgIS"),l=n("Kj3r");function h(){}var u=function(t){return null==t?h:function(){return this.querySelector(t)}};function d(){return[]}var f=function(t){return null==t?d:function(){return this.querySelectorAll(t)}},p=function(t){return function(){return this.matches(t)}},m=function(t){return new Array(t.length)};function b(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function g(t,e,n,i,r,s){for(var o,a=0,c=e.length,l=s.length;ae?1:t>=e?0:NaN}b.prototype={constructor:b,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var v="http://www.w3.org/1999/xhtml",w={svg:"http://www.w3.org/2000/svg",xhtml:v,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},x=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),w.hasOwnProperty(e)?{space:w[e],local:t}:t};function C(t){return function(){this.removeAttribute(t)}}function S(t){return function(){this.removeAttributeNS(t.space,t.local)}}function E(t,e){return function(){this.setAttribute(t,e)}}function k(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function O(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function A(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var D=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function I(t){return function(){this.style.removeProperty(t)}}function T(t,e,n){return function(){this.style.setProperty(t,e,n)}}function L(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function P(t,e){return t.style.getPropertyValue(e)||D(t).getComputedStyle(t,null).getPropertyValue(e)}function R(t){return function(){delete this[t]}}function M(t,e){return function(){this[t]=e}}function j(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function F(t){return t.trim().split(/^|\s+/)}function N(t){return t.classList||new V(t)}function V(t){this._node=t,this._names=F(t.getAttribute("class")||"")}function U(t,e){for(var n=N(t),i=-1,r=e.length;++i=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var et=function(t){var e=x(t);return(e.local?tt:J)(e)};function nt(){return null}function it(){var t=this.parentNode;t&&t.removeChild(this)}function rt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function st(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var ot={},at=null;function ct(t,e,n){return t=lt(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function lt(t,e,n){return function(i){var r=at;at=i;try{t.call(this,this.__data__,e,n)}finally{at=r}}}function ht(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function ut(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,s=e.length;i=C&&(C=x+1);!(w=y[C])&&++C=0;)(i=r[s])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=y);for(var n=this._groups,i=n.length,r=new Array(i),s=0;s1?this.each((null==e?I:"function"==typeof e?L:T)(t,e,null==n?"":n)):P(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?R:"function"==typeof e?j:M)(t,e)):this.node()[t]},classed:function(t,e){var n=F(t+"");if(arguments.length<2){for(var i=N(this.node()),r=-1,s=n.length;++r=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function St(t,e){for(var n,i=0,r=t.length;i0)for(var n,i,r=new Array(n),s=0;s>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Yt(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Yt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jt.exec(t))?new Gt(e[1],e[2],e[3],1):(e=Ft.exec(t))?new Gt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Nt.exec(t))?Yt(e[1],e[2],e[3],e[4]):(e=Vt.exec(t))?Yt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ut.exec(t))?te(e[1],e[2]/100,e[3]/100,1):(e=Bt.exec(t))?te(e[1],e[2]/100,e[3]/100,e[4]):zt.hasOwnProperty(t)?qt(zt[t]):"transparent"===t?new Gt(NaN,NaN,NaN,0):null}function qt(t){return new Gt(t>>16&255,t>>8&255,255&t,1)}function Yt(t,e,n,i){return i<=0&&(t=e=n=NaN),new Gt(t,e,n,i)}function Zt(t){return t instanceof Dt||(t=Kt(t)),t?new Gt((t=t.rgb()).r,t.g,t.b,t.opacity):new Gt}function Xt(t,e,n,i){return 1===arguments.length?Zt(t):new Gt(t,e,n,null==i?1:i)}function Gt(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function $t(){return"#"+Jt(this.r)+Jt(this.g)+Jt(this.b)}function Qt(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Jt(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function te(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ne(t,e,n,i)}function ee(t){if(t instanceof ne)return new ne(t.h,t.s,t.l,t.opacity);if(t instanceof Dt||(t=Kt(t)),!t)return new ne;if(t instanceof ne)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),s=Math.max(e,n,i),o=NaN,a=s-r,c=(s+r)/2;return a?(o=e===s?(n-i)/a+6*(n0&&c<1?0:o,new ne(o,a,c,t.opacity)}function ne(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function ie(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function re(t,e,n,i,r){var s=t*t,o=s*t;return((1-3*t+3*s-o)*e+(4-6*s+3*o)*n+(1+3*t+3*s-3*o)*i+o*r)/6}Ot(Dt,Kt,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ht,formatHex:Ht,formatHsl:function(){return ee(this).formatHsl()},formatRgb:Wt,toString:Wt}),Ot(Gt,Xt,At(Dt,{brighter:function(t){return t=null==t?Tt:Math.pow(Tt,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?It:Math.pow(It,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$t,formatHex:$t,formatRgb:Qt,toString:Qt})),Ot(ne,function(t,e,n,i){return 1===arguments.length?ee(t):new ne(t,e,n,null==i?1:i)},At(Dt,{brighter:function(t){return t=null==t?Tt:Math.pow(Tt,t),new ne(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?It:Math.pow(It,t),new ne(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Gt(ie(t>=240?t-240:t+120,r,i),ie(t,r,i),ie(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var se=function(t){return function(){return t}};function oe(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):se(isNaN(t)?e:t)}var ae=function t(e){var n=function(t){return 1==(t=+t)?oe:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):se(isNaN(e)?n:e)}}(e);function i(t,e){var i=n((t=Xt(t)).r,(e=Xt(e)).r),r=n(t.g,e.g),s=n(t.b,e.b),o=oe(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=s(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function ce(t){return function(e){var n,i,r=e.length,s=new Array(r),o=new Array(r),a=new Array(r);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),r=t[i],s=t[i+1];return re((n-i/e)*e,i>0?t[i-1]:2*r-s,r,s,is&&(r=e.slice(s,r),a[o]?a[o]+=r:a[++o]=r),(n=n[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,c.push({i:o,x:pe(n,i)})),s=ge.lastIndex;return s=0&&e._call.call(null,t),e=e._next;--ve}()}finally{ve=0,function(){for(var t,e,n=ue,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ue=e);de=t,Re(i)}(),Se=0}}function Pe(){var t=ke.now(),e=t-Ce;e>1e3&&(Ee-=e,Ce=t)}function Re(t){ve||(we&&(we=clearTimeout(we)),t-Se>24?(t<1/0&&(we=setTimeout(Le,t-ke.now()-Ee)),xe&&(xe=clearInterval(xe))):(xe||(Ce=ke.now(),xe=setInterval(Pe,1e3)),ve=1,Oe(Le)))}Ie.prototype=Te.prototype={constructor:Ie,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Ae():+n)+(null==e?0:+e),this._next||de===this||(de?de._next=this:ue=this,de=this),this._call=t,this._time=n,Re()},stop:function(){this._call&&(this._call=null,this._time=1/0,Re())}};var Me=function(t,e,n){var i=new Ie;return i.restart(function(n){i.stop(),t(n+e)},e=null==e?0:+e,n),i},je=kt("start","end","cancel","interrupt"),Fe=[],Ne=function(t,e,n,i,r,s){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function s(c){var l,h,u,d;if(1!==n.state)return a();for(l in r)if((d=r[l]).name===n.name){if(3===d.state)return Me(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[l]):+l0)throw new Error("too late; already scheduled");return n}function Ue(t,e){var n=Be(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Be(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var ze,He,We,Ke,qe=180/Math.PI,Ye={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Ze=function(t,e,n,i,r,s){var o,a,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*i)&&(n-=t*c,i-=e*c),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,c/=a),t*i180?e+=360:e-t>180&&(t+=360),s.push({i:n.push(r(n)+"rotate(",null,i)-2,x:pe(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(s.rotate,o.rotate,a,c),function(t,e,n,s){t!==e?s.push({i:n.push(r(n)+"skewX(",null,i)-2,x:pe(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(s.skewX,o.skewX,a,c),function(t,e,n,i,s,o){if(t!==n||e!==i){var a=s.push(r(s)+"scale(",null,",",null,")");o.push({i:a-4,x:pe(t,n)},{i:a-2,x:pe(e,i)})}else 1===n&&1===i||s.push(r(s)+"scale("+n+","+i+")")}(s.scaleX,s.scaleY,o.scaleX,o.scaleY,a,c),s=o=null,function(t){for(var e,n=-1,i=c.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Ve:Ue;return function(){var o=s(this,t),a=o.on;a!==i&&(r=(i=a).copy()).on(e,n),o.on=r}}var yn=yt.prototype.constructor;function vn(t){return function(){this.style.removeProperty(t)}}function wn(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function xn(t,e,n){var i,r;function s(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&wn(t,s,n)),i}return s._value=e,s}function Cn(t){return function(e){this.textContent=t.call(this,e)}}function Sn(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Cn(i)),e}return i._value=t,i}var En=0;function kn(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function On(){return++En}var An=yt.prototype;kn.prototype=(function(t){return yt().transition(t)}).prototype={constructor:kn,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=u(t));for(var i=this._groups,r=i.length,s=new Array(r),o=0;o2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete s[r]):o=!1;o&&delete t.__transition}}(this,t)})},yt.prototype.transition=function(t){var e,n;t instanceof kn?(e=t._id,t=t._name):(e=On(),(n=Dn).time=Ae(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,s=0;se?1:t>=e?0:NaN},Pn=function(t){let e=t,n=t;function i(t,e,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i>>1;n(t[s],e)<0?i=s+1:r=s}return i}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>Ln(t(e),n)}(t)),{left:i,center:function(t,n,r,s){null==r&&(r=0),null==s&&(s=t.length);const o=i(t,n,r,s-1);return o>r&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i>>1;n(t[s],e)>0?r=s:i=s+1}return i}}},Rn=Math.sqrt(50),Mn=Math.sqrt(10),jn=Math.sqrt(2);function Fn(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),s=i/Math.pow(10,r);return r>=0?(s>=Rn?10:s>=Mn?5:s>=jn?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(s>=Rn?10:s>=Mn?5:s>=jn?2:1)}var Nn=new Date,Vn=new Date;function Un(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=function(e){return t(e=new Date(+e)),e},r.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},r.round=function(t){var e=r(t),n=r.ceil(t);return t-e0))return a;do{a.push(o=new Date(+n)),e(n,s),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););})},n&&(r.count=function(e,i){return Nn.setTime(+e),Vn.setTime(+i),t(Nn),t(Vn),Math.floor(n(Nn,Vn))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?function(e){return i(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}Un(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}).every=function(t){return isFinite(t=Math.floor(t))&&t>0?Un(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null},Un(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});var Bn=1e3,zn=6e4,Hn=36e5;function Wn(t){return Un(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*zn)/6048e5})}Wn(0),Wn(1),Wn(2),Wn(3),Wn(4),Wn(5),Wn(6),Un(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*zn)/864e5,t=>t.getDate()-1),Un(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bn-t.getMinutes()*zn)},function(t,e){t.setTime(+t+e*Hn)},function(t,e){return(e-t)/Hn},function(t){return t.getHours()}),Un(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bn)},function(t,e){t.setTime(+t+e*zn)},function(t,e){return(e-t)/zn},function(t){return t.getMinutes()}),Un(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*Bn)},function(t,e){return(e-t)/Bn},function(t){return t.getUTCSeconds()});var Kn=Un(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Kn.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Un(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):Kn:null};var qn=new Date,Yn=new Date;function Zn(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=function(e){return t(e=new Date(+e)),e},r.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},r.round=function(t){var e=r(t),n=r.ceil(t);return t-e0))return a;do{a.push(o=new Date(+n)),e(n,s),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););})},n&&(r.count=function(e,i){return qn.setTime(+e),Yn.setTime(+i),t(qn),t(Yn),Math.floor(n(qn,Yn))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?function(e){return i(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}var Xn=864e5,Gn=6048e5;function $n(t){return Zn(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/Gn})}var Qn=$n(0),Jn=$n(1),ti=($n(2),$n(3),$n(4)),ei=($n(5),$n(6),Zn(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Xn},function(t){return t.getUTCDate()-1}));function ni(t){return Zn(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/Gn})}var ii=ni(0),ri=ni(1),si=(ni(2),ni(3),ni(4)),oi=(ni(5),ni(6),Zn(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/Xn},function(t){return t.getDate()-1})),ai=Zn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});ai.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zn(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var ci=ai,li=Zn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});li.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zn(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var hi=li;var ui={"-":"",_:" ",0:"0"},di=/[\\^$*+?|[\]().{}]/g;function fi(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",s=r.length;return i+(s=4||0===e?si(t):si.ceil(t)}function Di(t,e){return t=Ai(t),fi(si.count(ci(t),t)+(4===ci(t).getDay()),e,2)}function Ii(t){return t.getDay()}function Ti(t,e){return fi(ri.count(ci(t)-1,t),e,2)}function Li(t,e){return fi(t.getFullYear()%100,e,2)}function Pi(t,e){return fi((t=Ai(t)).getFullYear()%100,e,2)}function Ri(t,e){return fi(t.getFullYear()%1e4,e,4)}function Mi(t,e){var n=t.getDay();return fi((t=n>=4||0===n?si(t):si.ceil(t)).getFullYear()%1e4,e,4)}function ji(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+fi(e/60|0,"0",2)+fi(e%60,"0",2)}function Fi(t,e){return fi(t.getUTCDate(),e,2)}function Ni(t,e){return fi(t.getUTCHours(),e,2)}function Vi(t,e){return fi(t.getUTCHours()%12||12,e,2)}function Ui(t,e){return fi(1+ei.count(hi(t),t),e,3)}function Bi(t,e){return fi(t.getUTCMilliseconds(),e,3)}function zi(t,e){return Bi(t,e)+"000"}function Hi(t,e){return fi(t.getUTCMonth()+1,e,2)}function Wi(t,e){return fi(t.getUTCMinutes(),e,2)}function Ki(t,e){return fi(t.getUTCSeconds(),e,2)}function qi(t){var e=t.getUTCDay();return 0===e?7:e}function Yi(t,e){return fi(Qn.count(hi(t)-1,t),e,2)}function Zi(t){var e=t.getUTCDay();return e>=4||0===e?ti(t):ti.ceil(t)}function Xi(t,e){return t=Zi(t),fi(ti.count(hi(t),t)+(4===hi(t).getUTCDay()),e,2)}function Gi(t){return t.getUTCDay()}function $i(t,e){return fi(Jn.count(hi(t)-1,t),e,2)}function Qi(t,e){return fi(t.getUTCFullYear()%100,e,2)}function Ji(t,e){return fi((t=Zi(t)).getUTCFullYear()%100,e,2)}function tr(t,e){return fi(t.getUTCFullYear()%1e4,e,4)}function er(t,e){var n=t.getUTCDay();return fi((t=n>=4||0===n?ti(t):ti.ceil(t)).getUTCFullYear()%1e4,e,4)}function nr(){return"+0000"}function ir(){return"%"}function rr(t){return+t}function sr(t){return Math.floor(+t/1e3)}!function(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,s=t.days,o=t.shortDays,a=t.months,c=t.shortMonths,l=(mi(r),bi(r),mi(s),bi(s),mi(o),bi(o),mi(a),bi(a),mi(c),bi(c),{a:function(t){return o[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:gi,e:gi,f:xi,g:Pi,G:Mi,H:_i,I:yi,j:vi,L:wi,m:Ci,M:Si,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:rr,s:sr,S:Ei,u:ki,U:Oi,V:Di,w:Ii,W:Ti,x:null,X:null,y:Li,Y:Ri,Z:ji,"%":ir}),h={a:function(t){return o[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:Fi,e:Fi,f:zi,g:Ji,G:er,H:Ni,I:Vi,j:Ui,L:Bi,m:Hi,M:Wi,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:rr,s:sr,S:Ki,u:qi,U:Yi,V:Xi,w:Gi,W:$i,x:null,X:null,y:Qi,Y:tr,Z:nr,"%":ir};function u(t,e){return function(n){var i,r,s,o=[],a=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++a(e=o[c-1])&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),i=c>2?mr:pr,r=s=null,u}function u(e){return isNaN(e=+e)?n:(r||(r=i(o.map(t),a,c)))(t(l(e)))}return u.invert=function(n){return l(e((s||(s=i(a,o.map(t),pe)))(n)))},u.domain=function(t){return arguments.length?(o=Array.from(t,hr),h()):o.slice()},u.range=function(t){return arguments.length?(a=Array.from(t),h()):a.slice()},u.rangeRound=function(t){return a=Array.from(t),c=lr,h()},u.clamp=function(t){return arguments.length?(l=!!t||dr,h()):l!==dr},u.interpolate=function(t){return arguments.length?(c=t,h()):c},u.unknown=function(t){return arguments.length?(n=t,u):n},function(n,i){return t=n,e=i,h()}}()(dr,dr)}function _r(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var yr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vr(t){if(!(e=yr.exec(t)))throw new Error("invalid format: "+t);var e;return new wr({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function wr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function xr(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}vr.prototype=wr.prototype,wr.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};var Cr,Sr,Er,kr,Or=function(t){return(t=xr(Math.abs(t)))?t[1]:NaN},Ar=function(t,e){var n=xr(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")},Dr={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Ar(100*t,e)},r:Ar,s:function(t,e){var n=xr(t,e);if(!n)return t+"";var i=n[0],r=n[1],s=r-(Cr=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,o=i.length;return s===o?i:s>o?i+new Array(s-o+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+xr(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Ir=function(t){return t},Tr=Array.prototype.map,Lr=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Pr(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var i,r,s,o,a=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((i=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),s=new Array(r=Math.ceil(e-t+1));++a=Rn?r*=10:s>=Mn?r*=5:s>=jn&&(r*=2),e0;){if((r=Fn(c,l,n))===i)return s[o]=c,s[a]=l,e(s);if(r>0)c=Math.floor(c/r)*r,l=Math.ceil(l/r)*r;else{if(!(r<0))break;c=Math.ceil(c*r)/r,l=Math.floor(l*r)/r}i=r}return t},t}function Rr(){var t=gr();return t.copy=function(){return br(t,Rr())},_r.apply(t,arguments),Pr(t)}Sr=function(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?Ir:(e=Tr.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var r=t.length,s=[],o=0,a=e[0],c=0;r>0&&a>0&&(c+a+1>i&&(a=Math.max(1,i-c)),s.push(t.substring(r-=a,r+a)),!((c+=a+1)>i));)a=e[o=(o+1)%e.length];return s.reverse().join(n)}),r=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?Ir:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(Tr.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"-":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function u(t){var e=(t=vr(t)).fill,n=t.align,u=t.sign,d=t.symbol,f=t.zero,p=t.width,m=t.comma,b=t.precision,g=t.trim,_=t.type;"n"===_?(m=!0,_="g"):Dr[_]||(void 0===b&&(b=12),g=!0,_="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var y="$"===d?r:"#"===d&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",v="$"===d?s:/[%p]/.test(_)?c:"",w=Dr[_],x=/[defgprs%]/.test(_);function C(t){var r,s,c,d=y,C=v;if("c"===_)C=w(t)+C,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?h:w(Math.abs(t),b),g&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==u&&(S=!1),d=(S?"("===u?u:l:"-"===u||"("===u?"":u)+d,C=("s"===_?Lr[8+Cr/3]:"")+C+(S&&"("===u?")":""),x)for(r=-1,s=t.length;++r(c=t.charCodeAt(r))||c>57){C=(46===c?o+t.slice(r+1):t.slice(r))+C,t=t.slice(0,r);break}}m&&!f&&(t=i(t,1/0));var E=d.length+t.length+C.length,k=E>1)+d+t+C+k.slice(E);break;default:t=k+d+t+C}return a(t)}return b=void 0===b?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),C.toString=function(){return t+""},C}return{format:u,formatPrefix:function(t,e){var n=u(((t=vr(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Or(e)/3))),r=Math.pow(10,-i),s=Lr[8+i/3];return function(t){return n(r*t)+s}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Er=Sr.format,kr=Sr.formatPrefix;var Mr=function(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((e-t)/n)),s=new Array(r);++i=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,s=Math.floor(r),o=+n(t[s],s,t);return o+(+n(t[s+1],s+1,t)-o)*(r-s)}}function Ur(){var t,e=[],n=[],i=[];function r(){var t=0,r=Math.max(1,n.length);for(i=new Array(r-1);++t0?i[r-1]:e[0],rWr)if(Math.abs(h*a-c*l)>Wr&&r){var d=n-s,f=i-o,p=a*a+c*c,m=d*d+f*f,b=Math.sqrt(p),g=Math.sqrt(u),_=r*Math.tan((zr-Math.acos((p+u-m)/(2*b*g)))/2),y=_/g,v=_/b;Math.abs(y-1)>Wr&&(this._+="L"+(t+y*l)+","+(e+y*h)),this._+="A"+r+","+r+",0,0,"+ +(h*d>l*f)+","+(this._x1=t+v*a)+","+(this._y1=e+v*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,s){t=+t,e=+e,s=!!s;var o=(n=+n)*Math.cos(i),a=n*Math.sin(i),c=t+o,l=e+a,h=1^s,u=s?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>Wr||Math.abs(this._y1-l)>Wr)&&(this._+="L"+c+","+l),n&&(u<0&&(u=u%Hr+Hr),u>Kr?this._+="A"+n+","+n+",0,1,"+h+","+(t-o)+","+(e-a)+"A"+n+","+n+",0,1,"+h+","+(this._x1=c)+","+(this._y1=l):u>Wr&&(this._+="A"+n+","+n+",0,"+ +(u>=zr)+","+h+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var Yr=function(){};function Zr(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Xr(t,e){this._context=t,this._k=(1-e)/6}function Gr(t,e){this._context=t,this._k=(1-e)/6}function $r(t){this._curve=t}Xr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Zr(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Zr(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new Xr(t,e)}return n.tension=function(e){return t(+e)},n}(0),Gr.prototype={areaStart:Yr,areaEnd:Yr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Zr(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new Gr(t,e)}return n.tension=function(e){return t(+e)},n}(0),$r.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math;var Qr=function(t,e,n,i,r){for(var s,o=t.children,a=-1,c=o.length,l=t.value&&(i-e)/t.value;++a=0;)e+=n[i].value;else e=1;t.value=e}function es(t,e){var n,i,r,s,o,a=new ss(t),c=+t.value&&(a.value=t.value),l=[a];for(null==e&&(e=ns);n=l.pop();)if(c&&(n.value=+n.data.value),(r=e(n.data))&&(o=r.length))for(n.children=new Array(o),s=o-1;s>=0;--s)l.push(i=n.children[s]=new ss(r[s])),i.parent=n,i.depth=n.depth+1;return a.eachBefore(rs)}function ns(t){return t.children}function is(t){t.data=t.data.data}function rs(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function ss(t){this.data=t,this.depth=this.height=0,this.parent=null}!function t(e){function n(t,n,i,r,s){!function(t,e,n,i,r,s){for(var o,a,c,l,h,u,d,f,p,m,b,g=[],_=e.children,y=0,v=0,w=_.length,x=e.value;yd&&(d=a),b=h*h*m,(f=Math.max(d/b,b/u))>p){h-=a;break}p=f}g.push(o={value:h,dice:c1?e:1)},n}((1+Math.sqrt(5))/2),ss.prototype=es.prototype={constructor:ss,count:function(){return this.eachAfter(ts)},each:function(t){var e,n,i,r,s=this,o=[s];do{for(e=o.reverse(),o=[];s=e.pop();)if(t(s),n=s.children)for(i=0,r=n.length;i=0;--n)r.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,i=e.children,r=i&&i.length;--r>=0;)n+=i[r].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),r=null;for(t=n.pop(),e=i.pop();t===e;)r=t,t=n.pop(),e=i.pop();return r}(e,t),i=[e];e!==n;)i.push(e=e.parent);for(var r=i.length;t!==n;)i.splice(r,0,t),t=t.parent;return i},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return es(this).eachBefore(is)}};var os=n("cUpR");const as=["caretElm"];function cs(t,e){}const ls=function(t){return{model:t}};function hs(t,e){if(1&t&&(i.Vb(0,"span"),i.Ic(1,cs,0,0,"ng-template",5),i.Ub()),2&t){const t=i.hc();i.Db(1),i.oc("ngTemplateOutlet",t.template)("ngTemplateOutletContext",i.sc(2,ls,t.context))}}function us(t,e){if(1&t&&i.Qb(0,"span",6),2&t){const t=i.hc();i.oc("innerHTML",t.title,i.Ac)}}function ds(t,e){if(1&t&&(i.gc(),i.fc(),i.Qb(0,"ngx-charts-scale-legend",4)),2&t){const t=i.hc();i.oc("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("valueRange",t.legendOptions.domain)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)}}function fs(t,e){if(1&t){const t=i.Wb();i.gc(),i.fc(),i.Vb(0,"ngx-charts-legend",5),i.dc("labelClick",function(e){return i.zc(t),i.hc().legendLabelClick.emit(e)})("labelActivate",function(e){return i.zc(t),i.hc().legendLabelActivate.emit(e)})("labelDeactivate",function(e){return i.zc(t),i.hc().legendLabelDeactivate.emit(e)}),i.Ub()}if(2&t){const t=i.hc();i.oc("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("data",t.legendOptions.domain)("title",t.legendOptions.title)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)("activeEntries",t.activeEntries)}}const ps=["*"],ms=["ngx-charts-axis-label",""],bs=["ticksel"],gs=["ngx-charts-x-axis-ticks",""];function _s(t,e){if(1&t&&(i.gc(),i.Vb(0,"g",3),i.Vb(1,"title"),i.Kc(2),i.Ub(),i.Vb(3,"text",4),i.Kc(4),i.Ub(),i.Ub()),2&t){const t=e.$implicit,n=i.hc();i.Eb("transform",n.tickTransform(t)),i.Db(2),i.Lc(n.tickFormat(t)),i.Db(1),i.Fc("font-size","12px"),i.Eb("text-anchor",n.textAnchor)("transform",n.textTransform),i.Db(1),i.Mc(" ",n.tickTrim(n.tickFormat(t))," ")}}function ys(t,e){if(1&t&&(i.gc(),i.Vb(0,"g"),i.Qb(1,"line",6),i.Ub()),2&t){const t=i.hc(2);i.Eb("transform",t.gridLineTransform()),i.Db(1),i.Eb("y1",-t.gridLineHeight)}}function vs(t,e){if(1&t&&(i.gc(),i.Vb(0,"g"),i.Ic(1,ys,2,2,"g",5),i.Ub()),2&t){const t=e.$implicit,n=i.hc();i.Eb("transform",n.tickTransform(t)),i.Db(1),i.oc("ngIf",n.showGridLines)}}const ws=["ngx-charts-x-axis",""];function xs(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",2),i.dc("dimensionsChanged",function(e){return i.zc(t),i.hc().emitTicksHeight(e)}),i.Ub()}if(2&t){const t=i.hc();i.oc("trimTicks",t.trimTicks)("rotateTicks",t.rotateTicks)("maxTickLength",t.maxTickLength)("tickFormatting",t.tickFormatting)("tickArguments",t.tickArguments)("tickStroke",t.tickStroke)("scale",t.xScale)("orient",t.xOrient)("showGridLines",t.showGridLines)("gridLineHeight",t.dims.height)("width",t.dims.width)("tickValues",t.ticks)}}function Cs(t,e){if(1&t&&(i.gc(),i.Qb(0,"g",3)),2&t){const t=i.hc();i.oc("label",t.labelText)("offset",t.labelOffset)("orient","bottom")("height",t.dims.height)("width",t.dims.width)}}const Ss=["ngx-charts-y-axis-ticks",""];function Es(t,e){if(1&t&&(i.gc(),i.Vb(0,"g",4),i.Vb(1,"title"),i.Kc(2),i.Ub(),i.Vb(3,"text",5),i.Kc(4),i.Ub(),i.Ub()),2&t){const t=e.$implicit,n=i.hc();i.Eb("transform",n.transform(t)),i.Db(2),i.Lc(n.tickFormat(t)),i.Db(1),i.Fc("font-size","12px"),i.Eb("dy",n.dy)("x",n.x1)("y",n.y1)("text-anchor",n.textAnchor),i.Db(1),i.Mc(" ",n.tickTrim(n.tickFormat(t))," ")}}function ks(t,e){if(1&t&&(i.gc(),i.Qb(0,"path",6)),2&t){const t=i.hc();i.Eb("d",t.referenceAreaPath)("transform",t.gridLineTransform())}}function Os(t,e){if(1&t&&(i.gc(),i.Qb(0,"line",9)),2&t){const t=i.hc(3);i.Eb("x2",t.gridLineWidth)}}function As(t,e){if(1&t&&(i.gc(),i.Qb(0,"line",9)),2&t){const t=i.hc(3);i.Eb("x2",-t.gridLineWidth)}}function Ds(t,e){if(1&t&&(i.gc(),i.Vb(0,"g"),i.Ic(1,Os,1,1,"line",8),i.Ic(2,As,1,1,"line",8),i.Ub()),2&t){const t=i.hc(2);i.Eb("transform",t.gridLineTransform()),i.Db(1),i.oc("ngIf","left"===t.orient),i.Db(1),i.oc("ngIf","right"===t.orient)}}function Is(t,e){if(1&t&&(i.gc(),i.Vb(0,"g"),i.Ic(1,Ds,3,3,"g",7),i.Ub()),2&t){const t=e.$implicit,n=i.hc();i.Eb("transform",n.transform(t)),i.Db(1),i.oc("ngIf",n.showGridLines)}}function Ts(t,e){if(1&t&&(i.gc(),i.Vb(0,"g"),i.Vb(1,"title"),i.Kc(2),i.Ub(),i.Vb(3,"text",11),i.Kc(4),i.Ub(),i.Ub()),2&t){const t=i.hc(2).$implicit,e=i.hc();i.Db(2),i.Lc(e.tickTrim(e.tickFormat(t.value))),i.Db(1),i.Eb("dy",e.dy)("y",-6)("x",e.gridLineWidth)("text-anchor",e.textAnchor),i.Db(1),i.Mc(" ",t.name," ")}}function Ls(t,e){if(1&t&&(i.gc(),i.Vb(0,"g"),i.Qb(1,"line",10),i.Ic(2,Ts,5,6,"g",7),i.Ub()),2&t){const t=i.hc().$implicit,e=i.hc();i.Eb("transform",e.transform(t.value)),i.Db(1),i.Eb("x2",e.gridLineWidth)("transform",e.gridLineTransform()),i.Db(1),i.oc("ngIf",e.showRefLabels)}}function Ps(t,e){if(1&t&&(i.gc(),i.Vb(0,"g"),i.Ic(1,Ls,3,4,"g",7),i.Ub()),2&t){const t=i.hc();i.Db(1),i.oc("ngIf",t.showRefLines)}}const Rs=["ngx-charts-y-axis",""];function Ms(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",2),i.dc("dimensionsChanged",function(e){return i.zc(t),i.hc().emitTicksWidth(e)}),i.Ub()}if(2&t){const t=i.hc();i.oc("trimTicks",t.trimTicks)("maxTickLength",t.maxTickLength)("tickFormatting",t.tickFormatting)("tickArguments",t.tickArguments)("tickValues",t.ticks)("tickStroke",t.tickStroke)("scale",t.yScale)("orient",t.yOrient)("showGridLines",t.showGridLines)("gridLineWidth",t.dims.width)("referenceLines",t.referenceLines)("showRefLines",t.showRefLines)("showRefLabels",t.showRefLabels)("height",t.dims.height)}}function js(t,e){if(1&t&&(i.gc(),i.Qb(0,"g",3)),2&t){const t=i.hc();i.oc("label",t.labelText)("offset",t.labelOffset)("orient",t.yOrient)("height",t.dims.height)("width",t.dims.width)}}const Fs=["ngx-charts-grid-panel",""],Ns=["ngx-charts-grid-panel-series",""];function Vs(t,e){if(1&t&&(i.gc(),i.Qb(0,"g",1)),2&t){const t=e.$implicit;i.Hb("grid-panel",!0)("odd","odd"===t.class)("even","even"===t.class),i.oc("height",t.height)("width",t.width)("x",t.x)("y",t.y)}}const Us=["ngx-charts-svg-linear-gradient",""];function Bs(t,e){if(1&t&&(i.gc(),i.Qb(0,"stop")),2&t){const t=e.$implicit;i.Fc("stop-color",t.color)("stop-opacity",t.opacity),i.Eb("offset",t.offset+"%")}}function zs(t,e){if(1&t&&(i.Vb(0,"header",4),i.Vb(1,"span",5),i.Kc(2),i.Ub(),i.Ub()),2&t){const t=i.hc();i.Db(2),i.Lc(t.title)}}function Hs(t,e){if(1&t){const t=i.Wb();i.Vb(0,"li",6),i.Vb(1,"ngx-charts-legend-entry",7),i.dc("select",function(e){return i.zc(t),i.hc().labelClick.emit(e)})("activate",function(e){return i.zc(t),i.hc().activate(e)})("deactivate",function(e){return i.zc(t),i.hc().deactivate(e)}),i.Ub(),i.Ub()}if(2&t){const t=e.$implicit,n=i.hc();i.Db(1),i.oc("label",t.label)("formattedLabel",t.formattedLabel)("color",t.color)("isActive",n.isActive(t))}}const Ws=["tooltipTemplate"],Ks=function(t,e){return[t,e]},qs=".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}",Ys=["ngx-charts-bar",""];function Zs(t,e){if(1&t&&(i.gc(),i.Vb(0,"defs"),i.Qb(1,"g",2),i.Ub()),2&t){const t=i.hc();i.Db(1),i.oc("orientation",t.orientation)("name",t.gradientId)("stops",t.gradientStops)}}function Xs(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",5),i.dc("dimensionsChanged",function(e){return i.zc(t),i.hc().updateXAxisHeight(e)}),i.Ub()}if(2&t){const t=i.hc();i.oc("xScale",t.xScale)("dims",t.dims)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)("xAxisOffset",t.dataLabelMaxHeight.negative)}}function Gs(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",6),i.dc("dimensionsChanged",function(e){return i.zc(t),i.hc().updateYAxisWidth(e)}),i.Ub()}if(2&t){const t=i.hc();i.oc("yScale",t.yScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function $s(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",6),i.dc("dimensionsChanged",function(e){return i.zc(t),i.hc().updateXAxisHeight(e)}),i.Ub()}if(2&t){const t=i.hc();i.oc("xScale",t.groupScale)("dims",t.dims)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)("xAxisOffset",t.dataLabelMaxHeight.negative)}}function Qs(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",7),i.dc("dimensionsChanged",function(e){return i.zc(t),i.hc().updateYAxisWidth(e)}),i.Ub()}if(2&t){const t=i.hc();i.oc("yScale",t.valueScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function Js(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",8),i.dc("select",function(n){i.zc(t);const r=e.$implicit;return i.hc().onClick(n,r)})("activate",function(n){i.zc(t);const r=e.$implicit;return i.hc().onActivate(n,r)})("deactivate",function(n){i.zc(t);const r=e.$implicit;return i.hc().onDeactivate(n,r)})("dataLabelHeightChanged",function(n){i.zc(t);const r=e.index;return i.hc().onDataLabelMaxHeightChanged(n,r)}),i.Ub()}if(2&t){const t=e.$implicit,n=i.hc();i.oc("@animationState","active")("activeEntries",n.activeEntries)("xScale",n.innerScale)("yScale",n.valueScale)("colors",n.colors)("series",t.series)("dims",n.dims)("gradient",n.gradient)("tooltipDisabled",n.tooltipDisabled)("tooltipTemplate",n.tooltipTemplate)("showDataLabel",n.showDataLabel)("dataLabelFormatting",n.dataLabelFormatting)("seriesName",t.name)("roundEdges",n.roundEdges)("animations",n.animations)("noBarWhenZero",n.noBarWhenZero),i.Eb("transform",n.groupTransform(t))}}const to=["ngx-charts-series-vertical",""];function eo(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",2),i.dc("select",function(e){return i.zc(t),i.hc().onClick(e)})("activate",function(e){return i.zc(t),i.hc().activate.emit(e)})("deactivate",function(e){return i.zc(t),i.hc().deactivate.emit(e)}),i.Ub()}if(2&t){const t=e.$implicit,n=i.hc();i.oc("@animationState","active")("@.disabled",!n.animations)("width",t.width)("height",t.height)("x",t.x)("y",t.y)("fill",t.color)("stops",t.gradientStops)("data",t.data)("orientation","vertical")("roundEdges",t.roundEdges)("gradient",n.gradient)("ariaLabel",t.ariaLabel)("isActive",n.isActive(t.data))("tooltipDisabled",n.tooltipDisabled)("tooltipPlacement",n.tooltipPlacement)("tooltipType",n.tooltipType)("tooltipTitle",n.tooltipTemplate?void 0:t.tooltipText)("tooltipTemplate",n.tooltipTemplate)("tooltipContext",t.data)("noBarWhenZero",n.noBarWhenZero)("animations",n.animations)}}function no(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",4),i.dc("dimensionsChanged",function(n){i.zc(t);const r=e.index;return i.hc(2).dataLabelHeightChanged.emit({size:n,index:r})}),i.Ub()}if(2&t){const t=e.$implicit,n=i.hc(2);i.oc("barX",t.x)("barY",t.y)("barWidth",t.width)("barHeight",t.height)("value",t.total)("valueFormatting",n.dataLabelFormatting)("orientation","vertical")}}function io(t,e){if(1&t&&(i.gc(),i.Vb(0,"g"),i.Ic(1,no,1,7,"g",3),i.Ub()),2&t){const t=i.hc();i.Db(1),i.oc("ngForOf",t.barsForDataLabels)("ngForTrackBy",t.trackDataLabelBy)}}const ro=["ngx-charts-bar-label",""];let so=(()=>{class t{constructor(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const n=Object.getOwnPropertyNames(e.inputs);for(const i of n)t.instance[i]=e.inputs[i]}if(void 0!==e.outputs){const n=Object.getOwnPropertyNames(e.outputs);for(const i of n)t.instance[i]=e.outputs[i]}}return t}appendComponent(t,e={},n){n||(n=this.getRootViewContainer());const i=this.getComponentRootNode(n),r=new o.e(i,this.componentFactoryResolver,this.applicationRef,this.injector),s=new o.d(t),a=r.attach(s);return this.projectComponentBindings(a,e),a}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(i.g),i.Zb(i.j),i.Zb(i.t))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function oo(t,e,n){let i,r,s;n=n||{};let o=null,a=0;function c(){a=!1===n.leading?0:+new Date,o=null,s=t.apply(i,r)}return function(){const l=+new Date;a||!1!==n.leading||(a=l);const h=e-(l-a);return i=this,r=arguments,h<=0?(clearTimeout(o),o=null,a=l,s=t.apply(i,r)):o||!1===n.trailing||(o=setTimeout(c,h)),s}}var ao=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function co(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function lo(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}class ho{static calculateVerticalAlignment(t,e,n){let i=co(t,e,n);return i+e.height>window.innerHeight&&(i=window.innerHeight-e.height),i}static calculateVerticalCaret(t,e,n,i){let r;"top"===i&&(r=t.height/2-n.height/2+7),"bottom"===i&&(r=e.height-t.height/2-n.height/2-7),"center"===i&&(r=e.height/2-n.height/2);const s=co(t,e,i);return s+e.height>window.innerHeight&&(r+=s+e.height-window.innerHeight),r}static calculateHorizontalAlignment(t,e,n){let i=lo(t,e,n);return i+e.width>window.innerWidth&&(i=window.innerWidth-e.width),i}static calculateHorizontalCaret(t,e,n,i){let r;"left"===i&&(r=t.width/2-n.width/2+7),"right"===i&&(r=e.width-t.width/2-n.width/2-7),"center"===i&&(r=e.width/2-n.width/2);const s=lo(t,e,i);return s+e.width>window.innerWidth&&(r+=s+e.width-window.innerWidth),r}static shouldFlip(t,e,n,i){let r=!1;return"right"===n&&t.left+t.width+e.width+i>window.innerWidth&&(r=!0),"left"===n&&t.left-e.width-i<0&&(r=!0),"top"===n&&t.top-e.height-i<0&&(r=!0),"bottom"===n&&t.top+t.height+e.height+i>window.innerHeight&&(r=!0),r}static positionCaret(t,e,n,i,r){let s=0,o=0;return t===ao.right?(o=-7,s=ho.calculateVerticalCaret(n,e,i,r)):t===ao.left?(o=e.width,s=ho.calculateVerticalCaret(n,e,i,r)):t===ao.top?(s=e.height,o=ho.calculateHorizontalCaret(n,e,i,r)):t===ao.bottom&&(s=-7,o=ho.calculateHorizontalCaret(n,e,i,r)),{top:s,left:o}}static positionContent(t,e,n,i,r){let s=0,o=0;return t===ao.right?(o=n.left+n.width+i,s=ho.calculateVerticalAlignment(n,e,r)):t===ao.left?(o=n.left-e.width-i,s=ho.calculateVerticalAlignment(n,e,r)):t===ao.top?(s=n.top-e.height-i,o=ho.calculateHorizontalAlignment(n,e,r)):t===ao.bottom&&(s=n.top+n.height+i,o=ho.calculateHorizontalAlignment(n,e,r)),{top:s,left:o}}static determinePlacement(t,e,n,i){if(ho.shouldFlip(n,e,t,i)){if(t===ao.right)return ao.left;if(t===ao.left)return ao.right;if(t===ao.top)return ao.bottom;if(t===ao.bottom)return ao.top}return t}}let uo=(()=>{class t{constructor(t,e){this.element=t,this.renderer=e}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=" position-"+this.placement,t+=" type-"+this.type,t+=" "+this.cssClass,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const n=t.getBoundingClientRect();this.checkFlip(e,n),this.positionContent(t,e,n),this.showCaret&&this.positionCaret(e,n),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,n){const{top:i,left:r}=ho.positionContent(this.placement,n,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",i+"px"),this.renderer.setStyle(t,"left",r+"px")}positionCaret(t,e){const n=this.caretElm.nativeElement,i=n.getBoundingClientRect(),{top:r,left:s}=ho.positionCaret(this.placement,e,t,i,this.alignment);this.renderer.setStyle(n,"top",r+"px"),this.renderer.setStyle(n,"left",s+"px")}checkFlip(t,e){this.placement=ho.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(i.G))},t.\u0275cmp=i.Jb({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){if(1&t&&i.Pc(as,!0),2&t){let t;i.vc(t=i.ec())&&(e.caretElm=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&i.dc("resize",function(){return e.onWindowResize()},!1,i.yc),2&t&&i.Fb(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(t,e){1&t&&(i.Vb(0,"div"),i.Qb(1,"span",0,1),i.Vb(3,"div",2),i.Ic(4,hs,2,4,"span",3),i.Ic(5,us,1,1,"span",4),i.Ub(),i.Ub()),2&t&&(i.Db(1),i.Gb("tooltip-caret position-",e.placement,""),i.oc("hidden",!e.showCaret),i.Db(3),i.oc("ngIf",!e.title),i.Db(1),i.oc("ngIf",e.title))},directives:[r.o,r.t],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),Object(a.a)([(100,function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:oo(n.value,100,undefined)}),this[e]}}})],t.prototype,"onWindowResize",null),t})(),fo=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const n=this.injectComponent(t,e);return this.register(t,n),n}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=uo}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(so))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),po=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new i.o,this.legendLabelActivate=new i.o,this.legendLabelDeactivate=new i.o}ngOnChanges(t){this.update()}update(){let t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[i.Cb([fo]),i.Bb],ngContentSelectors:ps,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(i.nc(),i.Vb(0,"div",0),i.gc(),i.Vb(1,"svg",1),i.mc(2),i.Ub(),i.Ic(3,ds,1,5,"ngx-charts-scale-legend",2),i.Ic(4,fs,1,7,"ngx-charts-legend",3),i.Ub()),2&t&&(i.Fc("width",e.view[0],"px"),i.oc("@animationState","active")("@.disabled",!e.animations),i.Db(1),i.Eb("width",e.chartWidth)("height",e.view[1]),i.Db(2),i.oc("ngIf",e.showLegend&&"scaleLegend"===e.legendType),i.Db(1),i.oc("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[r.o,Uo,No]},encapsulation:2,data:{animation:[Object(s.m)("animationState",[Object(s.l)(":enter",[Object(s.k)({opacity:0}),Object(s.e)("500ms 100ms",Object(s.k)({opacity:1}))])])]},changeDetection:0}),t})(),mo=(()=>{class t{constructor(t,e){this.element=t,this.zone=e,this.visible=new i.o,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const t=()=>{if(!this.element)return;const{offsetHeight:e,offsetWidth:n}=this.element.nativeElement;e&&n?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t())})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(i.B))},t.\u0275dir=i.Kb({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),bo=(()=>{class t{constructor(t,e,n){this.chartElement=t,this.zone=e,this.cd=n,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new i.o}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new mo(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(t){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const t=this.getContainerDims();t&&(this.width=t.width,this.height=t.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let t,e;const n=this.chartElement.nativeElement;if(null!==n.parentNode){const i=n.parentNode.getBoundingClientRect();t=i.width,e=i.height}return t&&e?{width:t,height:e}:null}formatDates(){for(let t=0;t{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=t}cloneData(t){const e=[];for(const n of t){const t={name:n.name};if(void 0!==n.value&&(t.value=n.value),void 0!==n.series){t.series=[];for(const e of n.series){const n=Object.assign({},e);t.series.push(n)}}void 0!==n.extra&&(t.extra=JSON.parse(JSON.stringify(n.extra))),e.push(t)}return e}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(i.B),i.Pb(i.h))},t.\u0275cmp=i.Jb({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[i.Bb],decls:1,vars:0,template:function(t,e){1&t&&i.Qb(0,"div")},encapsulation:2}),t})(),go=(()=>{class t{constructor(t){this.textHeight=25,this.margin=5,this.element=t.nativeElement}ngOnChanges(t){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l))},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[i.Bb],attrs:ms,decls:2,vars:6,template:function(t,e){1&t&&(i.gc(),i.Vb(0,"text"),i.Kc(1),i.Ub()),2&t&&(i.Eb("stroke-width",e.strokeWidth)("x",e.x)("y",e.y)("text-anchor",e.textAnchor)("transform",e.transform),i.Db(1),i.Mc(" ",e.label," "))},encapsulation:2,changeDetection:0}),t})();function _o(t,e=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=e?t:t.slice(0,e)+"..."}function yo(t,e){if(t.length>e){const n=[],i=Math.floor(t.length/e);for(let e=0;e{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new i.o,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(t){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const t=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);t!==this.height&&(this.height=t,this.dimensionsChanged.emit({height:t}),setTimeout(()=>this.updateDims()))}update(){const t=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:t.tickFormat?t.tickFormat.apply(t,this.tickArguments):function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()};const e=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(t){return this.scale(t)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",e&&0!==e?(this.textTransform=`rotate(${e})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(t){let e=0;this.maxTicksLength=0;for(let s=0;sthis.maxTicksLength&&(this.maxTicksLength=n)}const n=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let i=n;const r=Math.floor(this.width/t.length);for(;i>r&&e>-90;)e-=30,i=Math.cos(e*(Math.PI/180))*n;return e}getTicks(){let t;const e=this.getMaxTicks(20),n=this.getMaxTicks(100);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[n]):(t=this.scale.domain(),t=yo(t,e)),t}getMaxTicks(t){return Math.floor(this.width/t)}tickTransform(t){return"translate("+this.adjustedScale(t)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(t){return this.trimTicks?_o(t,this.maxTickLength):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(t,e){if(1&t&&i.Pc(bs,!0),2&t){let t;i.vc(t=i.ec())&&(e.ticksElement=t.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[i.Bb],attrs:gs,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(t,e){1&t&&(i.gc(),i.Vb(0,"g",null,0),i.Ic(2,_s,5,7,"g",1),i.Ub(),i.Ic(3,vs,2,2,"g",2)),2&t&&(i.Db(2),i.oc("ngForOf",e.ticks),i.Db(1),i.oc("ngForOf",e.ticks))},directives:[r.n,r.o],encapsulation:2,changeDetection:0}),t})(),wo=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new i.o,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(t){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:t}){const e=t+25+5;e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({height:t})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(t,e){if(1&t&&i.Pc(vo,!0),2&t){let t;i.vc(t=i.ec())&&(e.ticksComponent=t.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[i.Bb],attrs:ws,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(t,e){1&t&&(i.gc(),i.Vb(0,"g"),i.Ic(1,xs,1,12,"g",0),i.Ic(2,Cs,1,5,"g",1),i.Ub()),2&t&&(i.Eb("class",e.xAxisClassName)("transform",e.transform),i.Db(1),i.oc("ngIf",e.xScale),i.Db(1),i.oc("ngIf",e.showLabel))},directives:[r.o,vo,go],encapsulation:2,changeDetection:0}),t})();function xo(t,e,n,i,r,[s,o,a,c]){let l="";return l="M"+[t+r,e],l+="h"+((n=0===(n=Math.floor(n))?1:n)-2*r),l+=o?`a${[r,r]} 0 0 1 ${[r,r]}`:`h${r}v${r}`,l+="v"+((i=0===(i=Math.floor(i))?1:i)-2*r),l+=c?`a${[r,r]} 0 0 1 ${[-r,r]}`:`v${r}h${-r}`,l+="h"+(2*r-n),l+=a?`a${[r,r]} 0 0 1 ${[-r,-r]}`:`h${-r}v${-r}`,l+="v"+(2*r-i),l+=s?`a${[r,r]} 0 0 1 ${[r,-r]}`:`v${-r}h${r}`,l+="z",l}let Co=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new i.o,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(t){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const t=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);t!==this.width&&(this.width=t,this.dimensionsChanged.emit({width:t}),setTimeout(()=>this.updateDims()))}update(){let t;const e="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,t=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:t.tickFormat?t.tickFormat.apply(t,this.tickArguments):function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()},this.adjustedScale=t.bandwidth?function(e){return t(e)+.5*t.bandwidth()}:t,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(t){return"translate("+this.adjustedScale(t)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*e,this.y1=this.tickSpacing*e,this.dy=e<0?"0em":".71em";break;case"left":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-e,this.x1=this.tickSpacing*-e,this.dy=".32em";break;case"right":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-e,this.x1=this.tickSpacing*-e,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(t=>t.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(t=>t.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=xo(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let t;const e=this.getMaxTicks(20),n=this.getMaxTicks(50);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[n]):(t=this.scale.domain(),t=yo(t,e)),t}getMaxTicks(t){return Math.floor(this.height/t)}tickTransform(t){return`translate(${this.adjustedScale(t)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(t){return this.trimTicks?_o(t,this.maxTickLength):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(t,e){if(1&t&&i.Pc(bs,!0),2&t){let t;i.vc(t=i.ec())&&(e.ticksElement=t.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[i.Bb],attrs:Ss,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(t,e){1&t&&(i.gc(),i.Vb(0,"g",null,0),i.Ic(2,Es,5,9,"g",1),i.Ub(),i.Ic(3,ks,1,2,"path",2),i.Ic(4,Is,2,2,"g",3),i.Ic(5,Ps,2,1,"g",3)),2&t&&(i.Db(2),i.oc("ngForOf",e.ticks),i.Db(1),i.oc("ngIf",e.referenceLineLength>1&&e.refMax&&e.refMin&&e.showRefLines),i.Db(1),i.oc("ngForOf",e.ticks),i.Db(1),i.oc("ngForOf",e.referenceLines))},directives:[r.n,r.o],encapsulation:2,changeDetection:0}),t})(),So=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new i.o,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(t){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:t}){t!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=t+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:t})},0)):t!==this.labelOffset&&(this.labelOffset=t,setTimeout(()=>{this.dimensionsChanged.emit({width:t})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(t,e){if(1&t&&i.Pc(Co,!0),2&t){let t;i.vc(t=i.ec())&&(e.ticksComponent=t.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[i.Bb],attrs:Rs,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(t,e){1&t&&(i.gc(),i.Vb(0,"g"),i.Ic(1,Ms,1,14,"g",0),i.Ic(2,js,1,5,"g",1),i.Ub()),2&t&&(i.Eb("class",e.yAxisClassName)("transform",e.transform),i.Db(1),i.oc("ngIf",e.yScale),i.Db(1),i.oc("ngIf",e.showLabel))},directives:[r.o,Co,go],encapsulation:2,changeDetection:0}),t})(),Eo=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[r.c]]}),t})();var ko=function(t){return t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip",t}({}),Oo=function(t){return t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right",t}({}),Ao=function(t){return t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover",t}({});let Do=(()=>{class t{constructor(t,e,n){this.tooltipService=t,this.viewContainerRef=e,this.renderer=n,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=ao.top,this.tooltipAlignment=Oo.center,this.tooltipType=ko.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Ao.all,this.tooltipImmediateExit=!1,this.show=new i.o,this.hide=new i.o}get listensForFocus(){return this.tooltipShowEvent===Ao.all||this.tooltipShowEvent===Ao.focus}get listensForHover(){return this.tooltipShowEvent===Ao.all||this.tooltipShowEvent===Ao.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(t){if(this.component||this.tooltipDisabled)return;const e=t?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const t=this.createBoundOptions();this.component=this.tooltipService.create(t),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},e)}addHideListeners(t){this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",e=>{t.contains(e.target)||this.hideTooltip()}))}hideTooltip(t=!1){if(!this.component)return;const e=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),t?e():this.timeout=setTimeout(e,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(fo),i.Pb(i.S),i.Pb(i.G))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&i.dc("focusin",function(){return e.onFocus()})("blur",function(){return e.onBlur()})("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(t){return e.onMouseLeave(t.target)})("click",function(){return e.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),Io=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[so,fo],imports:[[r.c]]}),t})();function To(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}const Lo={};function Po(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t="a"+t,Lo[t]?Po():(Lo[t]=!0,t)}let Ro,Mo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{path:"path",width:"width",height:"height",x:"x",y:"y"},attrs:Fs,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(t,e){1&t&&(i.gc(),i.Qb(0,"rect",0)),2&t&&i.Eb("height",e.height)("width",e.width)("x",e.x)("y",e.y)},encapsulation:2,changeDetection:0}),t})(),jo=(()=>{class t{ngOnChanges(t){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(t=>{let e,n,i,r,s,o="odd";if("vertical"===this.orient){const a=this.xScale(t.name);Number.parseInt((a/this.xScale.step()).toString(),10)%2==1&&(o="even"),e=this.xScale.bandwidth()*this.xScale.paddingInner(),n=this.xScale.bandwidth()+e,i=this.dims.height,r=this.xScale(t.name)-e/2,s=0}else if("horizontal"===this.orient){const a=this.yScale(t.name);Number.parseInt((a/this.yScale.step()).toString(),10)%2==1&&(o="even"),e=this.yScale.bandwidth()*this.yScale.paddingInner(),n=this.dims.width,i=this.yScale.bandwidth()+e,r=0,s=this.yScale(t.name)-e/2}return{name:t.name,class:o,height:i,width:n,x:r,y:s}})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[i.Bb],attrs:Ns,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]],template:function(t,e){1&t&&i.Ic(0,Vs,1,10,"g",0),2&t&&i.oc("ngForOf",e.gridPanels)},directives:[r.n,Mo],encapsulation:2,changeDetection:0}),t})(),Fo=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(t){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[i.Bb],attrs:Us,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(i.gc(),i.Vb(0,"linearGradient",0),i.Ic(1,Bs,1,5,"stop",1),i.Ub()),2&t&&(i.oc("id",e.name),i.Eb("x1",e.x1)("y1",e.y1)("x2",e.x2)("y2",e.y2),i.Db(1),i.oc("ngForOf",e.stops))},directives:[r.n],encapsulation:2,changeDetection:0}),t})();"undefined"!=typeof window?Ro=window:"undefined"!=typeof global&&(Ro=global);let No=(()=>{class t{constructor(t){this.cd=t,this.horizontal=!1,this.labelClick=new i.o,this.labelActivate=new i.o,this.labelDeactivate=new i.o,this.legendEntries=[]}ngOnChanges(t){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const t=[];for(const e of this.data){const n=To(e);-1===t.findIndex(t=>t.label===n)&&t.push({label:e,formattedLabel:n,color:this.colors.getColor(e)})}return t}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.label===e.name)}activate(t){this.labelActivate.emit(t)}deactivate(t){this.labelDeactivate.emit(t)}trackBy(t,e){return e.label}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.h))},t.\u0275cmp=i.Jb({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[i.Bb],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(t,e){1&t&&(i.Vb(0,"div"),i.Ic(1,zs,3,1,"header",0),i.Vb(2,"div",1),i.Vb(3,"ul",2),i.Ic(4,Hs,2,4,"li",3),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Fc("width",e.width,"px"),i.Db(1),i.oc("ngIf",(null==e.title?null:e.title.length)>0),i.Db(2),i.Fc("max-height",e.height-45,"px"),i.Hb("horizontal-legend",e.horizontal),i.Db(1),i.oc("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[r.o,r.n,Vo]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),Vo=(()=>{class t{constructor(){this.isActive=!1,this.select=new i.o,this.activate=new i.o,this.deactivate=new i.o,this.toggle=new i.o}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&i.dc("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(i.Vb(0,"span",0),i.dc("click",function(){return e.select.emit(e.formattedLabel)}),i.Vb(1,"span",1),i.dc("click",function(){return e.toggle.emit(e.formattedLabel)}),i.Ub(),i.Vb(2,"span",2),i.Kc(3),i.Ub(),i.Ub()),2&t&&(i.Hb("active",e.isActive),i.oc("title",e.formattedLabel),i.Db(1),i.Fc("background-color",e.color),i.Db(2),i.Mc(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Uo=(()=>{class t{constructor(t){this.sanitizer=t,this.horizontal=!1}ngOnChanges(t){const e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${e})`)}gradientString(t,e){e.push(1);const n=[];return t.reverse().forEach((t,i)=>{n.push(`${t} ${Math.round(100*e[i])}%`)}),n.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(os.b))},t.\u0275cmp=i.Jb({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[i.Bb],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"span"),i.Kc(3),i.Ub(),i.Ub(),i.Qb(4,"div",2),i.Vb(5,"div",1),i.Vb(6,"span"),i.Kc(7),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Fc("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),i.Hb("horizontal-legend",e.horizontal),i.Db(3),i.Lc(e.valueRange[1].toLocaleString()),i.Db(1),i.Fc("background",e.gradient),i.Db(3),i.Lc(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Bo=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[r.c,Eo,Io],r.c,Eo,Io]}),t})();function zo({width:t,height:e,margins:n,showXAxis:i=!1,showYAxis:r=!1,xAxisHeight:s=0,yAxisWidth:o=0,showXLabel:a=!1,showYLabel:c=!1,showLegend:l=!1,legendType:h="ordinal",legendPosition:u="right",columns:d=12}){let f=n[3],p=t,m=e-n[0]-n[2];if(l&&"right"===u&&(d-="ordinal"===h?2:1),p=p*d/12,p=p-n[1]-n[3],i&&(m-=5,m-=s,a)&&(m-=30),r&&(p-=5,p-=o,f+=o,f+=10,c)){const t=30;p-=t,f+=t}return p=Math.max(0,p),m=Math.max(0,m),{width:Math.floor(p),height:Math.floor(m),xOffset:Math.floor(f)}}let Ho=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Wo{constructor(t,e,n,i){"string"==typeof t&&(t=Ho.find(e=>e.name===t)),this.colorDomain=t.domain,this.scaleType=e,this.domain=n,this.customColors=i,this.scale=this.generateColorScheme(t,e,this.domain)}generateColorScheme(t,e,n){let i;if("string"==typeof t&&(t=Ho.find(e=>e.name===t)),"quantile"===e)i=Ur().range(t.domain).domain(n);else if("ordinal"===e)i=Fr().range(t.domain).domain(n);else if("linear"===e){const e=[...t.domain];1===e.length&&(e.push(e[0]),this.colorDomain=e);const n=Mr(0,1,1/e.length);i=Rr().domain(n).range(e)}return i}getColor(t){if(null==t)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=Rr().domain(this.domain).range([0,1]);return this.scale(e(t))}{if("function"==typeof this.customColors)return this.customColors(t);const e=t.toString();let n;return this.customColors&&this.customColors.length>0&&(n=this.customColors.find(t=>t.name.toLowerCase()===e.toLowerCase())),n?n.value:this.scale(t)}}getLinearGradientStops(t,e){void 0===e&&(e=this.domain[0]);const n=Rr().domain(this.domain).range([0,1]),i=Nr().domain(this.colorDomain).range([0,1]),r=this.getColor(t),s=n(e),o=this.getColor(e),a=n(t);let c=1,l=s;const h=[];for(h.push({color:o,offset:s,originalOffset:s,opacity:1});l=(a-i.bandwidth()).toFixed(4))break;h.push({color:t,offset:e,opacity:1}),l=e,c++}}if(h[h.length-1].offset<100&&h.push({color:r,offset:a,opacity:1}),a===s)h[0].offset=0,h[1].offset=100;else if(100!==h[h.length-1].offset)for(const u of h)u.offset=(u.offset-s)/(a-s)*100;return h}}let Ko=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo]]}),t})(),qo=(()=>{class t{constructor(t){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new i.o,this.activate=new i.o,this.deactivate=new i.o,this.hasGradient=!1,this.hideBar=!1,this.element=t.nativeElement}ngOnChanges(t){t.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+Po().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const t=(n=this.element,"string"==typeof n?new gt([[document.querySelector(n)]],[document.documentElement]):new gt([[n]],bt)).select(".bar"),e=this.getPath();var n;this.animations?t.transition().duration(500).attr("d",e):t.attr("d",e)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=xo(this.x,this.y+this.height,this.width,1,0,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=xo(this.x,this.y,1,this.height,0,this.edges)):"vertical"===this.orientation?t=xo(this.x,this.y+this.height,this.width,1,0,this.edges):"horizontal"===this.orientation&&(t=xo(this.x,this.y,1,this.height,0,this.edges)),t}getPath(){let t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=xo(this.x,this.y,this.width,this.height,e,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=xo(this.x,this.y,this.width,this.height,e,this.edges)):t=xo(this.x,this.y,this.width,this.height,e,this.edges),t}getRadius(){let t=0;return this.roundEdges&&this.height>5&&this.width>5&&(t=Math.floor(Math.min(5,this.height/2,this.width/2))),t}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let t=[!1,!1,!1,!1];return this.roundEdges&&("vertical"===this.orientation?t=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:"horizontal"===this.orientation&&(t=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),t}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&("vertical"===this.orientation&&0===this.height||"horizontal"===this.orientation&&0===this.width)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l))},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(t,e){1&t&&i.dc("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[i.Bb],attrs:Ys,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(t,e){1&t&&(i.Ic(0,Zs,2,3,"defs",0),i.gc(),i.Vb(1,"path",1),i.dc("click",function(){return e.select.emit(e.data)}),i.Ub()),2&t&&(i.oc("ngIf",e.hasGradient),i.Db(1),i.Hb("active",e.isActive)("hidden",e.hideBar),i.Eb("d",e.path)("aria-label",e.ariaLabel)("fill",e.hasGradient?e.gradientFill:e.fill))},directives:[r.o,Fo],encapsulation:2,changeDetection:0}),t})(),Yo=(()=>{class t extends bo{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new i.o,this.deactivate=new i.o,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=zo({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const t=this.xDomain.length/(this.dims.width/this.barPadding+1);return Nr().range([0,this.dims.width]).paddingInner(t).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const t=Rr().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?t.nice():t}getXDomain(){return this.results.map(t=>t.label)}getYDomain(){const t=this.results.map(t=>t.value);let e=this.yScaleMin?Math.min(this.yScaleMin,...t):Math.min(0,...t);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(e=Math.min(e,...this.yAxisTicks));let n=this.yScaleMax?Math.max(this.yScaleMax,...t):Math.max(0,...t);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(n=Math.max(n,...this.yAxisTicks)),[e,n]}onClick(t){this.select.emit(t)}setColors(){let t;t="ordinal"===this.schemeType?this.xDomain:this.yDomain,this.colors=new Wo(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===t.scaleType?(t.domain=this.xDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onDataLabelMaxHeightChanged(t){t.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,t.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,t.size.height),t.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(t,e=!1){t=this.results.find(n=>e?n.label===t.name:n.name===t.name),this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t,e=!1){t=this.results.find(n=>e?n.label===t.name:n.name===t.name);const n=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series);this.activeEntries.splice(n,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}}return t.\u0275fac=function(e){return Zo(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(t,e,n){if(1&t&&i.Ib(n,Ws,!0),2&t){let t;i.vc(t=i.ec())&&(e.tooltipTemplate=t.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[i.Ab],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(t,e){1&t&&(i.Vb(0,"ngx-charts-chart",0),i.dc("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t,!0)})("legendLabelDeactivate",function(t){return e.onDeactivate(t,!0)}),i.gc(),i.Vb(1,"g",1),i.Ic(2,Xs,1,10,"g",2),i.Ic(3,Gs,1,9,"g",3),i.Vb(4,"g",4),i.dc("activate",function(t){return e.onActivate(t)})("deactivate",function(t){return e.onDeactivate(t)})("select",function(t){return e.onClick(t)})("dataLabelHeightChanged",function(t){return e.onDataLabelMaxHeightChanged(t)}),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.oc("view",i.tc(22,Ks,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),i.Db(1),i.Eb("transform",e.transform),i.Db(1),i.oc("ngIf",e.xAxis),i.Db(1),i.oc("ngIf",e.yAxis),i.Db(1),i.oc("xScale",e.xScale)("yScale",e.yScale)("colors",e.colors)("series",e.results)("dims",e.dims)("gradient",e.gradient)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("showDataLabel",e.showDataLabel)("dataLabelFormatting",e.dataLabelFormatting)("activeEntries",e.activeEntries)("roundEdges",e.roundEdges)("animations",e.animations)("noBarWhenZero",e.noBarWhenZero))},directives:function(){return[po,r.o,Qo,wo,So]},styles:[qs],encapsulation:2,changeDetection:0}),t})();const Zo=i.Xb(Yo);let Xo=(()=>{class t extends bo{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.scaleType="ordinal",this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new i.o,this.deactivate=new i.o,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=zo({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valuesDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(t,e){t.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,t.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,t.size.height),e===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const t=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Nr().rangeRound([0,this.dims.width]).paddingInner(t).paddingOuter(t/2).domain(this.groupDomain)}getInnerScale(){const t=this.groupScale.bandwidth(),e=this.innerDomain.length/(t/this.barPadding+1);return Nr().rangeRound([0,t]).paddingInner(e).domain(this.innerDomain)}getValueScale(){const t=Rr().range([this.dims.height,0]).domain(this.valuesDomain);return this.roundDomains?t.nice():t}getGroupDomain(){const t=[];for(const e of this.results)t.includes(e.label)||t.push(e.label);return t}getInnerDomain(){const t=[];for(const e of this.results)for(const n of e.series)t.includes(n.label)||t.push(n.label);return t}getValueDomain(){const t=[];for(const e of this.results)for(const n of e.series)t.includes(n.value)||t.push(n.value);return[Math.min(0,...t),this.yScaleMax?Math.max(this.yScaleMax,...t):Math.max(0,...t)]}groupTransform(t){return`translate(${this.groupScale(t.label)}, 0)`}onClick(t,e){e&&(t.series=e.name),this.select.emit(t)}trackBy(t,e){return e.name}setColors(){let t;t="ordinal"===this.schemeType?this.innerDomain:this.valuesDomain,this.colors=new Wo(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valuesDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onActivate(t,e,n=!1){const i=Object.assign({},t);e&&(i.series=e.name);const r=this.results.map(t=>t.series).flat().filter(t=>n?t.label===i.name:t.name===i.name&&t.series===i.series);this.activeEntries=[...r],this.activate.emit({value:i,entries:this.activeEntries})}onDeactivate(t,e,n=!1){const i=Object.assign({},t);e&&(i.series=e.name),this.activeEntries=this.activeEntries.filter(t=>n?t.label!==i.name:!(t.name===i.name&&t.series===i.series)),this.deactivate.emit({value:i,entries:this.activeEntries})}}return t.\u0275fac=function(e){return Go(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(t,e,n){if(1&t&&i.Ib(n,Ws,!0),2&t){let t;i.vc(t=i.ec())&&(e.tooltipTemplate=t.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[i.Ab],decls:6,vars:17,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","","orient","vertical",3,"xScale","yScale","data","dims"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(t,e){1&t&&(i.Vb(0,"ngx-charts-chart",0),i.dc("legendLabelActivate",function(t){return e.onActivate(t,void 0,!0)})("legendLabelDeactivate",function(t){return e.onDeactivate(t,void 0,!0)})("legendLabelClick",function(t){return e.onClick(t)}),i.gc(),i.Vb(1,"g",1),i.Qb(2,"g",2),i.Ic(3,$s,1,10,"g",3),i.Ic(4,Qs,1,9,"g",4),i.Ic(5,Js,1,17,"g",5),i.Ub(),i.Ub()),2&t&&(i.oc("view",i.tc(14,Ks,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),i.Db(1),i.Eb("transform",e.transform),i.Db(1),i.oc("xScale",e.groupScale)("yScale",e.valueScale)("data",e.results)("dims",e.dims),i.Db(1),i.oc("ngIf",e.xAxis),i.Db(1),i.oc("ngIf",e.yAxis),i.Db(1),i.oc("ngForOf",e.results)("ngForTrackBy",e.trackBy))},directives:function(){return[po,jo,r.o,r.n,wo,So,Qo]},styles:[qs],encapsulation:2,data:{animation:[Object(s.m)("animationState",[Object(s.l)(":leave",[Object(s.k)({opacity:1,transform:"*"}),Object(s.e)(500,Object(s.k)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),t})();const Go=i.Xb(Xo);var $o=function(t){return t.positive="positive",t.negative="negative",t}({});let Qo=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new i.o,this.activate=new i.o,this.deactivate=new i.o,this.dataLabelHeightChanged=new i.o,this.barsForDataLabels=[]}ngOnChanges(t){this.update()}update(){let t;this.updateTooltipSettings(),this.series.length&&(t=this.xScale.bandwidth()),t=Math.round(t);const e=Math.max(this.yScale.domain()[0],0),n={[$o.positive]:0,[$o.negative]:0};let i,r=$o.positive;"normalized"===this.type&&(i=this.series.map(t=>t.value).reduce((t,e)=>t+e,0)),this.bars=this.series.map((s,o)=>{let a=s.value;const c=this.getLabel(s),l=To(c);r=a>0?$o.positive:$o.negative;const h={value:a,label:c,roundEdges:this.roundEdges,data:s,width:t,formattedLabel:l,height:0,x:0,y:0};if("standard"===this.type)h.height=Math.abs(this.yScale(a)-this.yScale(e)),h.x=this.xScale(c),h.y=this.yScale(a<0?0:a);else if("stacked"===this.type){const t=n[r],e=t+a;n[r]+=a,h.height=this.yScale(t)-this.yScale(e),h.x=0,h.y=this.yScale(e),h.offset0=t,h.offset1=e}else if("normalized"===this.type){let t=n[r],e=t+a;n[r]+=a,i>0?(t=100*t/i,e=100*e/i):(t=0,e=0),h.height=this.yScale(t)-this.yScale(e),h.x=0,h.y=this.yScale(e),h.offset0=t,h.offset1=e,a=(e-t).toFixed(2)+"%"}"ordinal"===this.colors.scaleType?h.color=this.colors.getColor(c):"standard"===this.type?(h.color=this.colors.getColor(a),h.gradientStops=this.colors.getLinearGradientStops(a)):(h.color=this.colors.getColor(h.offset1),h.gradientStops=this.colors.getLinearGradientStops(h.offset1,h.offset0));let u=l;return h.ariaLabel=l+" "+a.toLocaleString(),this.seriesName&&(u=`${this.seriesName} \u2022 ${l}`,h.data.series=this.seriesName,h.ariaLabel=this.seriesName+" "+h.ariaLabel),h.tooltipText=this.tooltipDisabled?void 0:`\n ${function(t){return t.toLocaleString().replace(/[&'`"<>]/g,t=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[t]))}(u)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(a):a.toLocaleString()}\n `,h}),this.updateDataLabels()}updateDataLabels(){if("stacked"===this.type){this.barsForDataLabels=[];const t={};t.series=this.seriesName;const e=this.series.map(t=>t.value).reduce((t,e)=>e>0?t+e:t,0),n=this.series.map(t=>t.value).reduce((t,e)=>e<0?t+e:t,0);t.total=e+n,t.x=0,t.y=0,t.height=this.yScale(t.total>0?e:n),t.width=this.xScale.bandwidth(),this.barsForDataLabels.push(t)}else this.barsForDataLabels=this.series.map(t=>{const e={};return e.series=this.seriesName?this.seriesName:t.label,e.total=t.value,e.x=this.xScale(t.label),e.y=this.yScale(0),e.height=this.yScale(e.total)-this.yScale(0),e.width=this.xScale.bandwidth(),e})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.name===e.name&&t.series===e.series)}onClick(t){this.select.emit(t)}getLabel(t){return t.label?t.label:t.name}trackBy(t,e){return e.label}trackDataLabelBy(t,e){return t+"#"+e.series+"#"+e.total}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[i.Bb],attrs:to,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(t,e){1&t&&(i.Ic(0,eo,1,22,"g",0),i.Ic(1,io,2,2,"g",1)),2&t&&(i.oc("ngForOf",e.bars)("ngForTrackBy",e.trackBy),i.Db(1),i.oc("ngIf",e.showDataLabel))},directives:function(){return[r.n,r.o,qo,Do,Jo]},encapsulation:2,data:{animation:[Object(s.m)("animationState",[Object(s.l)(":leave",[Object(s.k)({opacity:1}),Object(s.e)(500,Object(s.k)({opacity:0}))])])]},changeDetection:0}),t})(),Jo=(()=>{class t{constructor(t){this.dimensionsChanged=new i.o,this.horizontalPadding=2,this.verticalPadding=5,this.element=t.nativeElement}ngOnChanges(t){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):To(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l))},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[i.Bb],attrs:ro,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(t,e){1&t&&(i.gc(),i.Vb(0,"text",0),i.Kc(1),i.Ub()),2&t&&(i.Eb("text-anchor",e.textAnchor)("transform",e.transform)("x",e.x)("y",e.y),i.Db(1),i.Mc(" ",e.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),t})(),ta=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo]]}),t})(),ea=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo]]}),t})(),na=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo]]}),t})(),ia=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo]]}),t})();Math;let ra=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo]]}),t})(),sa=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo,ra,ia]]}),t})(),oa=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo]]}),t})(),aa=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo]]}),t})(),ca=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo,ra,ta]]}),t})(),la=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[Bo,Ko,ta,ea,na,ia,sa,oa,ra,aa,ca]}),t})()},LvnZ:function(t,e,n){"use strict";n.d(e,"W",function(){return i}),n.d(e,"d",function(){return r}),n.d(e,"o",function(){return s}),n.d(e,"hb",function(){return o}),n.d(e,"u",function(){return a}),n.d(e,"mb",function(){return c}),n.d(e,"s",function(){return l}),n.d(e,"jb",function(){return h}),n.d(e,"t",function(){return u}),n.d(e,"kb",function(){return d}),n.d(e,"q",function(){return f}),n.d(e,"db",function(){return p}),n.d(e,"w",function(){return m}),n.d(e,"ob",function(){return b}),n.d(e,"L",function(){return g}),n.d(e,"qb",function(){return _}),n.d(e,"z",function(){return y}),n.d(e,"vb",function(){return v}),n.d(e,"y",function(){return w}),n.d(e,"sb",function(){return x}),n.d(e,"ab",function(){return C}),n.d(e,"R",function(){return S}),n.d(e,"b",function(){return E}),n.d(e,"k",function(){return k}),n.d(e,"V",function(){return O}),n.d(e,"r",function(){return A}),n.d(e,"eb",function(){return D}),n.d(e,"Ib",function(){return I}),n.d(e,"Y",function(){return T}),n.d(e,"e",function(){return L}),n.d(e,"U",function(){return P}),n.d(e,"x",function(){return R}),n.d(e,"rb",function(){return M}),n.d(e,"i",function(){return j}),n.d(e,"ib",function(){return F}),n.d(e,"bb",function(){return N}),n.d(e,"cb",function(){return V}),n.d(e,"M",function(){return U}),n.d(e,"tb",function(){return B}),n.d(e,"S",function(){return z}),n.d(e,"c",function(){return H}),n.d(e,"Q",function(){return W}),n.d(e,"pb",function(){return K}),n.d(e,"K",function(){return q}),n.d(e,"lb",function(){return Y}),n.d(e,"v",function(){return Z}),n.d(e,"nb",function(){return X}),n.d(e,"ub",function(){return G}),n.d(e,"Z",function(){return $}),n.d(e,"a",function(){return Q}),n.d(e,"j",function(){return J}),n.d(e,"fb",function(){return tt}),n.d(e,"gb",function(){return et}),n.d(e,"g",function(){return nt}),n.d(e,"p",function(){return it}),n.d(e,"X",function(){return rt}),n.d(e,"Bb",function(){return st}),n.d(e,"E",function(){return ot}),n.d(e,"D",function(){return at}),n.d(e,"C",function(){return ct}),n.d(e,"A",function(){return lt}),n.d(e,"G",function(){return ht}),n.d(e,"O",function(){return ut}),n.d(e,"I",function(){return dt}),n.d(e,"Fb",function(){return ft}),n.d(e,"yb",function(){return pt}),n.d(e,"n",function(){return mt}),n.d(e,"H",function(){return bt}),n.d(e,"l",function(){return gt}),n.d(e,"Cb",function(){return _t}),n.d(e,"zb",function(){return yt}),n.d(e,"P",function(){return vt}),n.d(e,"Gb",function(){return wt}),n.d(e,"B",function(){return xt}),n.d(e,"Jb",function(){return Ct}),n.d(e,"wb",function(){return St}),n.d(e,"h",function(){return Et}),n.d(e,"T",function(){return kt}),n.d(e,"f",function(){return Ot}),n.d(e,"Eb",function(){return At}),n.d(e,"N",function(){return Dt}),n.d(e,"Db",function(){return It}),n.d(e,"F",function(){return Tt}),n.d(e,"Hb",function(){return Lt}),n.d(e,"xb",function(){return Pt}),n.d(e,"m",function(){return Rt}),n.d(e,"Ab",function(){return Mt}),n.d(e,"J",function(){return jt});const i="RESET_CL_STORE",r="CLEAR_EFFECT_ERROR_CL",s="EFFECT_ERROR_CL",o="SET_CHILD_NODE_SETTINGS_CL",a="FETCH_INFO_CL_CL",c="SET_INFO_CL",l="FETCH_FEES_CL",h="SET_FEES_CL",u="FETCH_FEE_RATES_CL",d="SET_FEE_RATES_CL",f="FETCH_BALANCE_CL",p="SET_BALANCE_CL",m="FETCH_LOCAL_REMOTE_BALANCE_CL",b="SET_LOCAL_REMOTE_BALANCE_CL",g="GET_NEW_ADDRESS_CL",_="SET_NEW_ADDRESS_CL",y="FETCH_TRANSACTIONS_CL",v="SET_TRANSACTIONS_CL",w="FETCH_PEERS_CL",x="SET_PEERS_CL",C="SAVE_NEW_PEER_CL",S="NEWLY_ADDED_PEER_CL",E="ADD_PEER_CL",k="DETACH_PEER_CL",O="REMOVE_PEER_CL",A="FETCH_CHANNELS_CL",D="SET_CHANNELS_CL",I="UPDATE_CHANNELS_CL",T="SAVE_NEW_CHANNEL_CL",L="CLOSE_CHANNEL_CL",P="REMOVE_CHANNEL_CL",R="FETCH_PAYMENTS_CL",M="SET_PAYMENTS_CL",j="DECODE_PAYMENT_CL",F="SET_DECODED_PAYMENT_CL",N="SEND_PAYMENT_CL",V="SEND_PAYMENT_STATUS_CL",U="GET_QUERY_ROUTES_CL",B="SET_QUERY_ROUTES_CL",z="PEER_LOOKUP_CL",H="CHANNEL_LOOKUP_CL",W="INVOICE_LOOKUP_CL",K="SET_LOOKUP_CL",q="GET_FORWARDING_HISTORY_CL",Y="SET_FORWARDING_HISTORY_CL",Z="FETCH_INVOICES_CL",X="SET_INVOICES_CL",G="SET_TOTAL_INVOICES_CL",$="SAVE_NEW_INVOICE_CL",Q="ADD_INVOICE_CL",J="DELETE_EXPIRED_INVOICE_CL",tt="SET_CHANNEL_TRANSACTION_CL",et="SET_CHANNEL_TRANSACTION_RES_CL";class nt{constructor(t){this.payload=t,this.type=r}}class it{constructor(t){this.payload=t,this.type=s}}class rt{constructor(t){this.payload=t,this.type=i}}class st{constructor(t){this.payload=t,this.type=o}}class ot{constructor(t){this.payload=t,this.type=a}}class at{constructor(){this.type=l}}class ct{constructor(t){this.payload=t,this.type=u}}class lt{constructor(){this.type=f}}class ht{constructor(){this.type=m}}class ut{constructor(t){this.payload=t,this.type=g}}class dt{constructor(){this.type=w}}class ft{constructor(t){this.payload=t,this.type=x}}class pt{constructor(t){this.payload=t,this.type=C}}class mt{constructor(t){this.payload=t,this.type=k}}class bt{constructor(){this.type=R}}class gt{constructor(t){this.payload=t,this.type=j}}class _t{constructor(t){this.payload=t,this.type=F}}class yt{constructor(t){this.payload=t,this.type=N}}class vt{constructor(t){this.payload=t,this.type=U}}class wt{constructor(t){this.payload=t,this.type=B}}class xt{constructor(){this.type=A}}class Ct{constructor(t){this.payload=t,this.type=I}}class St{constructor(t){this.payload=t,this.type=T}}class Et{constructor(t){this.payload=t,this.type=L}}class kt{constructor(t){this.payload=t,this.type=z}}class Ot{constructor(t){this.payload=t,this.type=H}}class At{constructor(t){this.payload=t,this.type=K}}class Dt{constructor(){this.type=q}}class It{constructor(t){this.payload=t,this.type=Y}}class Tt{constructor(t){this.payload=t,this.type=Z}}class Lt{constructor(t){this.payload=t,this.type=G}}class Pt{constructor(t){this.payload=t,this.type=$}}class Rt{constructor(t){this.payload=t,this.type=J}}class Mt{constructor(t){this.payload=t,this.type=tt}}class jt{constructor(){this.type=y}}},Lzq4:function(t,e,n){var i=n("u/Db"),r=n("e/Dd");function s(t){this.mode=i.KANJI,this.data=t}s.getBitsLength=function(t){return 13*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){var e;for(e=0;e=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}t.put(n=192*(n>>>8&255)+(255&n),13)}},t.exports=s},M9ds:function(t,e,n){"use strict";n.d(e,"a",function(){return $}),n.d(e,"b",function(){return ct}),n.d(e,"c",function(){return q}),n.d(e,"d",function(){return wt}),n.d(e,"e",function(){return gt}),n.d(e,"f",function(){return xt});var i=n("YEUz"),r=n("9b/N"),s=n("1z/I"),o=n("SVse"),a=n("8Y7J"),c=n("UhP/"),l=n("omvX"),h=n("XNiG"),u=n("quSY"),d=n("VRyK"),f=n("xgIS"),p=n("LRne"),m=n("PqYM"),b=n("GS7A"),g=n("JX91"),_=n("/uUt"),y=n("1G5W"),v=n("8LU1"),w=n("SCoL"),x=n("Ht+U"),C=n("9gLZ"),S=n("7KAL");function E(t,e){1&t&&a.mc(0)}const k=["*"];function O(t,e){}const A=function(t){return{animationDuration:t}},D=function(t,e){return{value:t,params:e}},I=["tabBodyWrapper"],T=["tabHeader"];function L(t,e){}function P(t,e){if(1&t&&a.Ic(0,L,0,0,"ng-template",9),2&t){const t=a.hc().$implicit;a.oc("cdkPortalOutlet",t.templateLabel)}}function R(t,e){if(1&t&&a.Kc(0),2&t){const t=a.hc().$implicit;a.Lc(t.textLabel)}}function M(t,e){if(1&t){const t=a.Wb();a.Vb(0,"div",6),a.dc("click",function(){a.zc(t);const n=e.$implicit,i=e.index,r=a.hc(),s=a.wc(1);return r._handleClick(n,s,i)}),a.Vb(1,"div",7),a.Ic(2,P,1,1,"ng-template",8),a.Ic(3,R,1,1,"ng-template",8),a.Ub(),a.Ub()}if(2&t){const t=e.$implicit,n=e.index,i=a.hc();a.Hb("mat-tab-label-active",i.selectedIndex==n),a.oc("id",i._getTabLabelId(n))("disabled",t.disabled)("matRippleDisabled",t.disabled||i.disableRipple),a.Eb("tabIndex",i._getTabIndex(t,n))("aria-posinset",n+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(n))("aria-selected",i.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),a.Db(2),a.oc("ngIf",t.templateLabel),a.Db(1),a.oc("ngIf",!t.templateLabel)}}function j(t,e){if(1&t){const t=a.Wb();a.Vb(0,"mat-tab-body",10),a.dc("_onCentered",function(){return a.zc(t),a.hc()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return a.zc(t),a.hc()._setTabBodyWrapperHeight(e)}),a.Ub()}if(2&t){const t=e.$implicit,n=e.index,i=a.hc();a.Hb("mat-tab-body-active",i.selectedIndex==n),a.oc("id",i._getTabContentId(n))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",i.animationDuration),a.Eb("aria-labelledby",i._getTabLabelId(n))}}const F=["tabListContainer"],N=["tabList"],V=["nextPaginator"],U=["previousPaginator"],B=["mat-tab-nav-bar",""],z=new a.s("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let H=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=i}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(a.B),a.Pb(z),a.Pb(l.a,8))},t.\u0275dir=a.Kb({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&a.Hb("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const W=new a.s("MatTabContent"),K=new a.s("MatTabLabel");let q=(()=>{class t extends s.b{}return t.\u0275fac=function(e){return Y(e||t)},t.\u0275dir=a.Kb({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a.Cb([{provide:K,useExisting:t}]),a.Ab]}),t})();const Y=a.Xb(q);class Z{}const X=Object(c.z)(Z),G=new a.s("MAT_TAB_GROUP");let $=(()=>{class t extends X{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new h.a,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new s.i(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.S),a.Pb(G))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){if(1&t&&(a.Ib(n,K,!0),a.Dc(n,W,!0,a.O)),2&t){let t;a.vc(t=a.ec())&&(e.templateLabel=t.first),a.vc(t=a.ec())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&a.Ec(a.O,!0),2&t){let t;a.vc(t=a.ec())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.Ab,a.Bb],ngContentSelectors:k,decls:1,vars:0,template:function(t,e){1&t&&(a.nc(),a.Ic(0,E,1,0,"ng-template"))},encapsulation:2}),t})();const Q={translateTab:Object(b.m)("translateTab",[Object(b.j)("center, void, left-origin-center, right-origin-center",Object(b.k)({transform:"none"})),Object(b.j)("left",Object(b.k)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Object(b.j)("right",Object(b.k)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Object(b.l)("* => left, * => right, left => center, right => center",Object(b.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Object(b.l)("void => left-origin-center",[Object(b.k)({transform:"translate3d(-100%, 0, 0)"}),Object(b.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Object(b.l)("void => right-origin-center",[Object(b.k)({transform:"translate3d(100%, 0, 0)"}),Object(b.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let J=(()=>{class t extends s.c{constructor(t,e,n,i){super(t,e,i),this._host=n,this._centeringSub=u.a.EMPTY,this._leavingSub=u.a.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Object(g.a)(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.j),a.Pb(a.S),a.Pb(Object(a.X)(()=>et)),a.Pb(o.d))},t.\u0275dir=a.Kb({type:t,selectors:[["","matTabBodyHost",""]],features:[a.Ab]}),t})(),tt=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dir=e,this._dirChangeSubscription=u.a.EMPTY,this._translateTabComplete=new h.a,this._onCentering=new a.o,this._beforeCentering=new a.o,this._afterLeavingCenter=new a.o,this._onCentered=new a.o(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe(Object(_.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(C.b,8),a.Pb(a.h))},t.\u0275dir=a.Kb({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),et=(()=>{class t extends tt{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(C.b,8),a.Pb(a.h))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&a.Pc(s.g,!0),2&t){let t;a.vc(t=a.ec())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.Ab],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(a.Vb(0,"div",0,1),a.dc("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),a.Ic(2,O,0,0,"ng-template",2),a.Ub()),2&t&&a.oc("@translateTab",a.tc(3,D,e._position,a.sc(1,A,e.animationDuration)))},directives:[J],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Q.translateTab]}}),t})();const nt=new a.s("MAT_TABS_CONFIG");let it=0;class rt{}class st{constructor(t){this._elementRef=t}}const ot=Object(c.x)(Object(c.y)(st),"primary");let at=(()=>{class t extends ot{constructor(t,e,n,i){super(t),this._changeDetectorRef=e,this._animationMode=i,this._tabs=new a.F,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=u.a.EMPTY,this._tabLabelSubscription=u.a.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.o,this.focusChange=new a.o,this.animationDone=new a.o,this.selectedTabChange=new a.o(!0),this._groupId=it++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=!(!n||null==n.disablePagination)&&n.disablePagination,this.dynamicHeight=!(!n||null==n.dynamicHeight)&&n.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=Object(v.c)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=Object(v.f)(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,n)=>e.isActive=n===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,n)=>{e.position=n-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new rt;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Object(d.a)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(a.h),a.Pb(nt,8),a.Pb(l.a,8))},t.\u0275dir=a.Kb({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.Ab]}),t})(),ct=(()=>{class t extends at{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(a.h),a.Pb(nt,8),a.Pb(l.a,8))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){if(1&t&&a.Ib(n,$,!0),2&t){let t;a.vc(t=a.ec())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(a.Pc(I,!0),a.Pc(T,!0)),2&t){let t;a.vc(t=a.ec())&&(e._tabBodyWrapper=t.first),a.vc(t=a.ec())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&a.Hb("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a.Cb([{provide:G,useExisting:t}]),a.Ab],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(a.Vb(0,"mat-tab-header",0,1),a.dc("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),a.Ic(2,M,4,14,"div",2),a.Ub(),a.Vb(3,"div",3,4),a.Ic(5,j,1,8,"mat-tab-body",5),a.Ub()),2&t&&(a.oc("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),a.Db(2),a.oc("ngForOf",e._tabs),a.Db(1),a.Hb("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.Db(2),a.oc("ngForOf",e._tabs))},directives:function(){return[mt,o.n,ut,c.r,i.e,o.o,s.c,et]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class lt{}const ht=Object(c.z)(lt);let ut=(()=>{class t extends ht{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l))},t.\u0275dir=a.Kb({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(a.Eb("aria-disabled",!!e.disabled),a.Hb("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[a.Ab]}),t})();const dt=Object(w.f)({passive:!0});let ft=(()=>{class t{constructor(t,e,n,i,r,s,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=i,this._ngZone=r,this._platform=s,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new h.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new h.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.o,this.indexFocused=new a.o,r.runOutsideAngular(()=>{Object(f.a)(t.nativeElement,"mouseleave").pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=Object(v.f)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){Object(f.a)(this._previousPaginator.nativeElement,"touchstart",dt).pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Object(f.a)(this._nextPaginator.nativeElement,"touchstart",dt).pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Object(p.a)(null),e=this._viewportRuler.change(150),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new i.g(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),Object(d.a)(t,e,this._items.changes).pipe(Object(y.a)(this._destroyed)).subscribe(()=>{Promise.resolve().then(n),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Object(y.a)(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Object(x.r)(t))switch(t.keyCode){case x.e:case x.m:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:r}=e.elementRef.nativeElement;let s,o;"ltr"==this._getLayoutDirection()?(s=i,o=s+r):(o=this._tabList.nativeElement.offsetWidth-i,s=o-r);const a=this.scrollDistance,c=this.scrollDistance+n;sc&&(this.scrollDistance+=o-c+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),Object(m.a)(650,100).pipe(Object(y.a)(Object(d.a)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:n}=this._scrollHeader(t);(0===n||n>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(a.h),a.Pb(S.e),a.Pb(C.b,8),a.Pb(a.B),a.Pb(w.a),a.Pb(l.a,8))},t.\u0275dir=a.Kb({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),pt=(()=>{class t extends ft{constructor(t,e,n,i,r,s,o){super(t,e,n,i,r,s,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(v.c)(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(a.h),a.Pb(S.e),a.Pb(C.b,8),a.Pb(a.B),a.Pb(w.a),a.Pb(l.a,8))},t.\u0275dir=a.Kb({type:t,inputs:{disableRipple:"disableRipple"},features:[a.Ab]}),t})(),mt=(()=>{class t extends pt{constructor(t,e,n,i,r,s,o){super(t,e,n,i,r,s,o)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(a.h),a.Pb(S.e),a.Pb(C.b,8),a.Pb(a.B),a.Pb(w.a),a.Pb(l.a,8))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){if(1&t&&a.Ib(n,ut,!1),2&t){let t;a.vc(t=a.ec())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(a.Ec(H,!0),a.Ec(F,!0),a.Ec(N,!0),a.Pc(V,!0),a.Pc(U,!0)),2&t){let t;a.vc(t=a.ec())&&(e._inkBar=t.first),a.vc(t=a.ec())&&(e._tabListContainer=t.first),a.vc(t=a.ec())&&(e._tabList=t.first),a.vc(t=a.ec())&&(e._nextPaginator=t.first),a.vc(t=a.ec())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&a.Hb("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.Ab],ngContentSelectors:k,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.nc(),a.Vb(0,"div",0,1),a.dc("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),a.Qb(2,"div",2),a.Ub(),a.Vb(3,"div",3,4),a.dc("keydown",function(t){return e._handleKeydown(t)}),a.Vb(5,"div",5,6),a.dc("cdkObserveContent",function(){return e._onContentChanges()}),a.Vb(7,"div",7),a.mc(8),a.Ub(),a.Qb(9,"mat-ink-bar"),a.Ub(),a.Ub(),a.Vb(10,"div",8,9),a.dc("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),a.Qb(12,"div",2),a.Ub()),2&t&&(a.Hb("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.oc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.Db(5),a.Hb("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.Db(5),a.Hb("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.oc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[c.r,r.a,H],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),bt=(()=>{class t extends ft{constructor(t,e,n,i,r,s,o){super(t,i,r,e,n,s,o),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement.classList;e.remove("mat-background-"+this.backgroundColor),t&&e.add("mat-background-"+t),this._backgroundColor=t}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(v.c)(t)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe(Object(g.a)(null),Object(y.a)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const t=this._items.toArray();for(let e=0;e{class t extends bt{constructor(t,e,n,i,r,s,o){super(t,e,n,i,r,s,o)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(C.b,8),a.Pb(a.B),a.Pb(a.h),a.Pb(S.e),a.Pb(w.a),a.Pb(l.a,8))},t.\u0275cmp=a.Jb({type:t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,n){if(1&t&&a.Ib(n,wt,!0),2&t){let t;a.vc(t=a.ec())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(a.Ec(H,!0),a.Ec(F,!0),a.Ec(N,!0),a.Pc(V,!0),a.Pc(U,!0)),2&t){let t;a.vc(t=a.ec())&&(e._inkBar=t.first),a.vc(t=a.ec())&&(e._tabListContainer=t.first),a.vc(t=a.ec())&&(e._tabList=t.first),a.vc(t=a.ec())&&(e._nextPaginator=t.first),a.vc(t=a.ec())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&a.Hb("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())("mat-primary","warn"!==e.color&&"accent"!==e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.Ab],attrs:B,ngContentSelectors:k,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.nc(),a.Vb(0,"div",0,1),a.dc("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),a.Qb(2,"div",2),a.Ub(),a.Vb(3,"div",3,4),a.dc("keydown",function(t){return e._handleKeydown(t)}),a.Vb(5,"div",5,6),a.dc("cdkObserveContent",function(){return e._onContentChanges()}),a.Vb(7,"div",7),a.mc(8),a.Ub(),a.Qb(9,"mat-ink-bar"),a.Ub(),a.Ub(),a.Vb(10,"div",8,9),a.dc("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),a.Qb(12,"div",2),a.Ub()),2&t&&(a.Hb("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.oc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.Db(5),a.Hb("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.Db(5),a.Hb("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.oc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[c.r,r.a,H],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),t})();class _t{}const yt=Object(c.C)(Object(c.y)(Object(c.z)(_t)));let vt=(()=>{class t extends yt{constructor(t,e,n,i,r,s){super(),this._tabNavBar=t,this.elementRef=e,this._focusMonitor=r,this._isActive=!1,this.rippleConfig=n||{},this.tabIndex=parseInt(i)||0,"NoopAnimations"===s&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(t){Object(v.c)(t)!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(bt),a.Pb(a.l),a.Pb(c.h,8),a.ac("tabindex"),a.Pb(i.h),a.Pb(l.a,8))},t.\u0275dir=a.Kb({type:t,inputs:{active:"active"},features:[a.Ab]}),t})(),wt=(()=>{class t extends vt{constructor(t,e,n,i,r,s,o,a){super(t,e,r,s,o,a),this._tabLinkRipple=new c.u(this,n,e,i),this._tabLinkRipple.setupTriggerEvents(e.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(gt),a.Pb(a.l),a.Pb(a.B),a.Pb(w.a),a.Pb(c.h,8),a.ac("tabindex"),a.Pb(i.h),a.Pb(l.a,8))},t.\u0275dir=a.Kb({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(a.Eb("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),a.Hb("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.Ab]}),t})(),xt=(()=>{class t{}return t.\u0275mod=a.Nb({type:t}),t.\u0275inj=a.Mb({factory:function(e){return new(e||t)},imports:[[o.c,c.i,s.h,c.s,r.c,i.a],c.i]}),t})()},MCVq:function(t,e,n){"use strict";n.d(e,"jb",function(){return i}),n.d(e,"f",function(){return r}),n.d(e,"m",function(){return s}),n.d(e,"zb",function(){return o}),n.d(e,"t",function(){return a}),n.d(e,"Eb",function(){return c}),n.d(e,"y",function(){return l}),n.d(e,"Lb",function(){return h}),n.d(e,"sb",function(){return u}),n.d(e,"db",function(){return d}),n.d(e,"k",function(){return f}),n.d(e,"ib",function(){return p}),n.d(e,"rb",function(){return m}),n.d(e,"eb",function(){return b}),n.d(e,"a",function(){return g}),n.d(e,"r",function(){return _}),n.d(e,"Bb",function(){return y}),n.d(e,"p",function(){return v}),n.d(e,"wb",function(){return w}),n.d(e,"w",function(){return x}),n.d(e,"Ib",function(){return C}),n.d(e,"o",function(){return S}),n.d(e,"z",function(){return E}),n.d(e,"q",function(){return k}),n.d(e,"vb",function(){return O}),n.d(e,"Mb",function(){return A}),n.d(e,"Ab",function(){return D}),n.d(e,"fc",function(){return I}),n.d(e,"qb",function(){return T}),n.d(e,"g",function(){return L}),n.d(e,"hb",function(){return P}),n.d(e,"b",function(){return R}),n.d(e,"ic",function(){return M}),n.d(e,"c",function(){return j}),n.d(e,"jc",function(){return F}),n.d(e,"kb",function(){return N}),n.d(e,"Ob",function(){return V}),n.d(e,"lb",function(){return U}),n.d(e,"mb",function(){return B}),n.d(e,"u",function(){return z}),n.d(e,"Fb",function(){return H}),n.d(e,"Pb",function(){return W}),n.d(e,"A",function(){return K}),n.d(e,"Qb",function(){return q}),n.d(e,"B",function(){return Y}),n.d(e,"Rb",function(){return Z}),n.d(e,"x",function(){return X}),n.d(e,"Kb",function(){return G}),n.d(e,"tb",function(){return $}),n.d(e,"ub",function(){return Q}),n.d(e,"s",function(){return J}),n.d(e,"Db",function(){return tt}),n.d(e,"T",function(){return et}),n.d(e,"Jb",function(){return nt}),n.d(e,"xb",function(){return it}),n.d(e,"yb",function(){return rt}),n.d(e,"Q",function(){return st}),n.d(e,"R",function(){return ot}),n.d(e,"Z",function(){return at}),n.d(e,"ab",function(){return ct}),n.d(e,"ec",function(){return lt}),n.d(e,"fb",function(){return ht}),n.d(e,"e",function(){return ut}),n.d(e,"bb",function(){return dt}),n.d(e,"Gb",function(){return ft}),n.d(e,"S",function(){return pt}),n.d(e,"Cb",function(){return mt}),n.d(e,"U",function(){return bt}),n.d(e,"Nb",function(){return gt}),n.d(e,"v",function(){return _t}),n.d(e,"Hb",function(){return yt}),n.d(e,"i",function(){return vt}),n.d(e,"n",function(){return wt}),n.d(e,"nb",function(){return xt}),n.d(e,"Xb",function(){return Ct}),n.d(e,"H",function(){return St}),n.d(e,"M",function(){return Et}),n.d(e,"ac",function(){return kt}),n.d(e,"Ub",function(){return Ot}),n.d(e,"l",function(){return At}),n.d(e,"Tb",function(){return Dt}),n.d(e,"F",function(){return It}),n.d(e,"D",function(){return Tt}),n.d(e,"K",function(){return Lt}),n.d(e,"C",function(){return Pt}),n.d(e,"N",function(){return Rt}),n.d(e,"E",function(){return Mt}),n.d(e,"hc",function(){return jt}),n.d(e,"Sb",function(){return Ft}),n.d(e,"j",function(){return Nt}),n.d(e,"d",function(){return Vt}),n.d(e,"kc",function(){return Ut}),n.d(e,"pb",function(){return Bt}),n.d(e,"cc",function(){return zt}),n.d(e,"ob",function(){return Ht}),n.d(e,"I",function(){return Wt}),n.d(e,"dc",function(){return Kt}),n.d(e,"O",function(){return qt}),n.d(e,"P",function(){return Yt}),n.d(e,"L",function(){return Zt}),n.d(e,"Vb",function(){return Xt}),n.d(e,"G",function(){return Gt}),n.d(e,"X",function(){return $t}),n.d(e,"Wb",function(){return Qt}),n.d(e,"V",function(){return Jt}),n.d(e,"cb",function(){return te}),n.d(e,"gc",function(){return ee}),n.d(e,"gb",function(){return ne}),n.d(e,"h",function(){return ie}),n.d(e,"Zb",function(){return re}),n.d(e,"W",function(){return se}),n.d(e,"Yb",function(){return oe}),n.d(e,"Y",function(){return ae}),n.d(e,"bc",function(){return ce}),n.d(e,"J",function(){return le});const i="RESET_LND_STORE",r="CLEAR_EFFECT_ERROR_LND",s="EFFECT_ERROR_LND",o="SET_CHILD_NODE_SETTINGS_LND",a="FETCH_INFO_LND",c="SET_INFO_LND",l="FETCH_PEERS_LND",h="SET_PEERS_LND",u="SAVE_NEW_PEER_LND",d="NEWLY_ADDED_PEER_LND",f="DETACH_PEER_LND",p="REMOVE_PEER_LND",m="SAVE_NEW_INVOICE_LND",b="NEWLY_SAVED_INVOICE_LND",g="ADD_INVOICE_LND",_="FETCH_FEES_LND",y="SET_FEES_LND",v="FETCH_BALANCE_LND",w="SET_BALANCE_LND",x="FETCH_NETWORK_LND",C="SET_NETWORK_LND",S="FETCH_ALL_CHANNELS_LND",E="FETCH_PENDING_CHANNELS_LND",k="FETCH_CLOSED_CHANNELS_LND",O="SET_ALL_CHANNELS_LND",A="SET_PENDING_CHANNELS_LND",D="SET_CLOSED_CHANNELS_LND",I="UPDATE_CHANNELS_LND",T="SAVE_NEW_CHANNEL_LND",L="CLOSE_CHANNEL_LND",P="REMOVE_CHANNEL_LND",R="BACKUP_CHANNELS_LND",M="VERIFY_CHANNELS_LND",j="BACKUP_CHANNELS_RES_LND",F="VERIFY_CHANNELS_RES_LND",N="RESTORE_CHANNELS_LIST_LND",V="SET_RESTORE_CHANNELS_LIST_LND",U="RESTORE_CHANNELS_LND",B="RESTORE_CHANNELS_RES_LND",z="FETCH_INVOICES_LND",H="SET_INVOICES_LND",W="SET_TOTAL_INVOICES_LND",K="FETCH_TRANSACTIONS_LND",q="SET_TRANSACTIONS_LND",Y="FETCH_UTXOS_LND",Z="SET_UTXOS_LND",X="FETCH_PAYMENTS_LND",G="SET_PAYMENTS_LND",$="SEND_PAYMENT_LND",Q="SEND_PAYMENT_STATUS_LND",J="FETCH_GRAPH_NODE_LND",tt="SET_GRAPH_NODE_LND",et="GET_NEW_ADDRESS_LND",nt="SET_NEW_ADDRESS_LND",it="SET_CHANNEL_TRANSACTION_LND",rt="SET_CHANNEL_TRANSACTION_RES_LND",st="GEN_SEED_LND",ot="GEN_SEED_RESPONSE_LND",at="INIT_WALLET_LND",ct="INIT_WALLET_RESPONSE_LND",lt="UNLOCK_WALLET_LND",ht="PEER_LOOKUP_LND",ut="CHANNEL_LOOKUP_LND",dt="INVOICE_LOOKUP_LND",ft="SET_LOOKUP_LND",pt="GET_FORWARDING_HISTORY_LND",mt="SET_FORWARDING_HISTORY_LND",bt="GET_QUERY_ROUTES_LND",gt="SET_QUERY_ROUTES_LND",_t="FETCH_LOOP_SWAPS_LND",yt="SET_LOOP_SWAPS_LND";class vt{constructor(t){this.payload=t,this.type=r}}class wt{constructor(t){this.payload=t,this.type=s}}class xt{constructor(t){this.payload=t,this.type=i}}class Ct{constructor(t){this.payload=t,this.type=o}}class St{constructor(t){this.payload=t,this.type=a}}class Et{constructor(){this.type=l}}class kt{constructor(t){this.payload=t,this.type=h}}class Ot{constructor(t){this.payload=t,this.type=u}}class At{constructor(t){this.payload=t,this.type=f}}class Dt{constructor(t){this.payload=t,this.type=m}}class It{constructor(){this.type=_}}class Tt{constructor(t){this.payload=t,this.type=v}}class Lt{constructor(){this.type=x}}class Pt{constructor(){this.type=S}}class Rt{constructor(){this.type=E}}class Mt{constructor(){this.type=k}}class jt{constructor(t){this.payload=t,this.type=I}}class Ft{constructor(t){this.payload=t,this.type=T}}class Nt{constructor(t){this.payload=t,this.type=L}}class Vt{constructor(t){this.payload=t,this.type=R}}class Ut{constructor(t){this.payload=t,this.type=M}}class Bt{constructor(){this.type=N}}class zt{constructor(t){this.payload=t,this.type=V}}class Ht{constructor(t){this.payload=t,this.type=U}}class Wt{constructor(t){this.payload=t,this.type=z}}class Kt{constructor(t){this.payload=t,this.type=W}}class qt{constructor(){this.type=K}}class Yt{constructor(){this.type=Y}}class Zt{constructor(){this.type=X}}class Xt{constructor(t){this.payload=t,this.type=$}}class Gt{constructor(t){this.payload=t,this.type=J}}class $t{constructor(t){this.payload=t,this.type=et}}class Qt{constructor(t){this.payload=t,this.type=it}}class Jt{constructor(t){this.payload=t,this.type=st}}class te{constructor(t){this.payload=t,this.type=at}}class ee{constructor(t){this.payload=t,this.type=lt}}class ne{constructor(t){this.payload=t,this.type=ht}}class ie{constructor(t){this.payload=t,this.type=ut}}class re{constructor(t){this.payload=t,this.type=ft}}class se{constructor(t){this.payload=t,this.type=pt}}class oe{constructor(t){this.payload=t,this.type=mt}}class ae{constructor(t){this.payload=t,this.type=bt}}class ce{constructor(t){this.payload=t,this.type=gt}}class le{constructor(){this.type=_t}}},MwBp:function(t,e,n){"use strict";var i=n("86MQ"),r=n("AQYT"),s=n("P7XM"),o=n("6lN/"),a=i.assert;function c(t){o.call(this,"short",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(t,e,n,i){o.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new r(e,16),this.y=new r(n,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function h(t,e,n,i){o.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new r(0)):(this.x=new r(e,16),this.y=new r(n,16),this.z=new r(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}s(c,o),t.exports=c,c.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,n;if(t.beta)e=new r(t.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);e=(e=i[0].cmp(i[1])<0?i[0]:i[1]).toRed(this.red)}if(t.lambda)n=new r(t.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(e))?n=s[0]:a(0===this.g.mul(n=s[1]).x.cmp(this.g.x.redMul(e)))}return{beta:e,lambda:n,basis:t.basis?t.basis.map(function(t){return{a:new r(t.a,16),b:new r(t.b,16)}}):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:r.mont(t),n=new r(2).toRed(e).redInvm(),i=n.redNeg(),s=new r(3).toRed(e).redNeg().redSqrt().redMul(n);return[i.redAdd(s).fromRed(),i.redSub(s).fromRed()]},c.prototype._getEndoBasis=function(t){for(var e,n,i,s,o,a,c,l,h,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=t,f=this.n.clone(),p=new r(1),m=new r(0),b=new r(0),g=new r(1),_=0;0!==d.cmpn(0);){var y=f.div(d);l=f.sub(y.mul(d)),h=b.sub(y.mul(p));var v=g.sub(y.mul(m));if(!i&&l.cmp(u)<0)e=c.neg(),n=p,i=l.neg(),s=h;else if(i&&2==++_)break;c=l,f=d,d=l,b=p,p=h,g=m,m=v}o=l.neg(),a=h;var w=i.sqr().add(s.sqr());return o.sqr().add(a.sqr()).cmp(w)>=0&&(o=e,a=n),i.negative&&(i=i.neg(),s=s.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:i,b:s},{a:o,b:a}]},c.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],i=e[1],r=i.b.mul(t).divRound(this.n),s=n.b.neg().mul(t).divRound(this.n),o=r.mul(n.a),a=s.mul(i.a),c=r.mul(n.b),l=s.mul(i.b);return{k1:t.sub(o).sub(a),k2:c.add(l).neg()}},c.prototype.pointFromX=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(0!==i.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var s=i.fromRed().isOdd();return(e&&!s||!e&&s)&&(i=i.redNeg()),this.point(t,i)},c.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,i=this.a.redMul(e),r=e.redSqr().redMul(e).redIAdd(i).redIAdd(this.b);return 0===n.redSqr().redISub(r).cmpn(0)},c.prototype._endoWnafMulAdd=function(t,e,n){for(var i=this._endoWnafT1,r=this._endoWnafT2,s=0;s":""},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),i=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)},l.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),i=t.redInvm(),r=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(i),s=r.redSqr().redISub(this.x.redAdd(this.x)),o=r.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(t){return t=new r(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},l.prototype.mulAdd=function(t,e,n){var i=[this,e],r=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,r):this.curve._wnafMulAdd(1,i,r,2)},l.prototype.jmulAdd=function(t,e,n){var i=[this,e],r=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,r,!0):this.curve._wnafMulAdd(1,i,r,2,!0)},l.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},l.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,i=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return e},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},s(h,o.BasePoint),c.prototype.jpoint=function(t,e,n){return new h(this,t,e,n)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),i=this.y.redMul(e).redMul(t);return this.curve.point(n,i)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(e),r=t.x.redMul(n),s=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(n.redMul(this.z)),a=i.redSub(r),c=s.redSub(o);if(0===a.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),h=l.redMul(a),u=i.redMul(l),d=c.redSqr().redIAdd(h).redISub(u).redISub(u),f=c.redMul(u.redISub(d)).redISub(s.redMul(h)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(d,f,p)},h.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,i=t.x.redMul(e),r=this.y,s=t.y.redMul(e).redMul(this.z),o=n.redSub(i),a=r.redSub(s);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),l=c.redMul(o),h=n.redMul(c),u=a.redSqr().redIAdd(l).redISub(h).redISub(h),d=a.redMul(h.redISub(u)).redISub(r.redMul(l)),f=this.z.redMul(o);return this.curve.jpoint(u,d,f)},h.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,n=0;n=0)return!1;if(n.redIAdd(r),0===this.x.cmp(n))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},MzeL:function(t,e,n){"use strict";var i=e;i.version=n("KAEN").version,i.utils=n("86MQ"),i.rand=n("/ayr"),i.curve=n("QTa/"),i.curves=n("DLvh"),i.ec=n("uagp"),i.eddsa=n("lF1L")},N2jm:function(t,e,n){"use strict";const i=n("P7XM"),r=n("xZGU").Buffer,s=n("g2Dh"),o=n("i3FT");function a(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new c,this.tree._init(t.body)}function c(t){s.call(this,"der",t)}function l(t){return t<10?"0"+t:t}t.exports=a,a.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},i(c,s),c.prototype._encodeComposite=function(t,e,n,i){const s=function(t,e,n,i){let r;if("seqof"===t?t="seq":"setof"===t&&(t="set"),o.tagByName.hasOwnProperty(t))r=o.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return i.error("Unknown tag: "+t);r=t}return r>=31?i.error("Multi-octet tag encoding unsupported"):(e||(r|=32),r|=o.tagClassByName[n||"universal"]<<6,r)}(t,e,n,this.reporter);if(i.length<128){const t=r.alloc(2);return t[0]=s,t[1]=i.length,this._createEncoderBuffer([t,i])}let a=1;for(let r=i.length;r>=256;r>>=8)a++;const c=r.alloc(2+a);c[0]=s,c[1]=128|a;for(let r=1+a,o=i.length;o>0;r--,o>>=8)c[r]=255&o;return this._createEncoderBuffer([c,i])},c.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){const e=r.alloc(2*t.length);for(let n=0;n=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}let i=0;for(let r=0;r=128;e>>=7)i++}const s=r.alloc(i);let o=s.length-1;for(let r=t.length-1;r>=0;r--){let e=t[r];for(s[o--]=127&e;(e>>=7)>0;)s[o--]=128|127&e}return this._createEncoderBuffer(s)},c.prototype._encodeTime=function(t,e){let n;const i=new Date(t);return"gentime"===e?n=[l(i.getUTCFullYear()),l(i.getUTCMonth()+1),l(i.getUTCDate()),l(i.getUTCHours()),l(i.getUTCMinutes()),l(i.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[l(i.getUTCFullYear()%100),l(i.getUTCMonth()+1),l(i.getUTCDate()),l(i.getUTCHours()),l(i.getUTCMinutes()),l(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!r.isBuffer(t)){const e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=r.from(e)}if(r.isBuffer(t)){let e=t.length;0===t.length&&e++;const n=r.alloc(e);return t.copy(n),0===t.length&&(n[0]=0),this._createEncoderBuffer(n)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let n=1;for(let r=t;r>=256;r>>=8)n++;const i=new Array(n);for(let r=i.length-1;r>=0;r--)i[r]=255&t,t>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(r.from(i))},c.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},c.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},c.prototype._skipDefault=function(t,e,n){const i=this._baseState;let r;if(null===i.default)return!1;const s=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,n).join()),s.length!==i.defaultBuffer.length)return!1;for(r=0;r{throw t},0)}n.d(e,"a",function(){return i})},NNVn:function(t,e,n){(e=t.exports=n("zzXz")).Stream=e,e.Readable=e,e.Writable=n("Sc7j"),e.Duplex=n("Xn1i"),e.Transform=n("8cin"),e.PassThrough=n("nSiv"),e.finished=n("QqdZ"),e.pipeline=n("rE/R")},NPxG:function(t,e,n){var i=n("ekOh"),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case i.L:return r[4*(t-1)+0];case i.M:return r[4*(t-1)+1];case i.Q:return r[4*(t-1)+2];case i.H:return r[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case i.L:return s[4*(t-1)+0];case i.M:return s[4*(t-1)+1];case i.Q:return s[4*(t-1)+2];case i.H:return s[4*(t-1)+3];default:return}}},NQVK:function(t,e,n){var i=n("hwdV").Buffer,r=n("jIre");function s(t,e,n){var s=e.length,o=r(e,t._cache);return t._cache=t._cache.slice(s),t._prev=i.concat([t._prev,n?e:o]),o}e.encrypt=function(t,e,n){for(var r,o=i.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=i.allocUnsafe(0)),!(t._cache.length<=e.length)){o=i.concat([o,s(t,e,n)]);break}o=i.concat([o,s(t,e.slice(0,r=t._cache.length),n)]),e=e.slice(r)}return o}},NXyV:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("HDdC"),r=n("Cfvw"),s=n("EY2u");function o(t){return new i.a(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?Object(r.a)(n):Object(s.b)()).subscribe(e)})}},"Nv++":function(t,e,n){"use strict";n.d(e,"a",function(){return Ot}),n.d(e,"b",function(){return At});var i=n("8Y7J");function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){for(var e=1;e0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function Z(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function X(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,": ").concat(t[n],";")},"")}function G(t){return t.size!==q.size||t.x!==q.x||t.y!==q.y||t.rotate!==q.rotate||t.flipX||t.flipY}function $(t){var e=t.transform,n=t.iconWidth,i={transform:"translate(".concat(t.containerWidth/2," 256)")},r="translate(".concat(32*e.x,", ").concat(32*e.y,") "),s="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),o="rotate(".concat(e.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(r," ").concat(s," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}var Q={x:0,y:0,width:"100%",height:"100%"};function J(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function tt(t){var e=t.icons,n=e.main,i=e.mask,r=t.prefix,s=t.iconName,a=t.transform,c=t.symbol,l=t.title,h=t.maskId,u=t.titleId,d=t.extra,f=t.watchable,p=void 0!==f&&f,m=i.found?i:n,b=m.width,g=m.height,_="fak"===r,y=_?"":"fa-w-".concat(Math.ceil(b/g*16)),v=[w.replacementClass,s?"".concat(w.familyPrefix,"-").concat(s):"",y].filter(function(t){return-1===d.classes.indexOf(t)}).filter(function(t){return""!==t||!!t}).concat(d.classes).join(" "),x={children:[],attributes:o({},d.attributes,{"data-prefix":r,"data-icon":s,class:v,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(b," ").concat(g)})},C=_&&!~d.classes.indexOf("fa-fw")?{width:"".concat(b/g*16*.0625,"em")}:{};p&&(x.attributes["data-fa-i2svg"]=""),l&&x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(u||Y())},children:[l]});var S=o({},x,{prefix:r,iconName:s,main:n,mask:i,maskId:h,transform:a,symbol:c,styles:o({},C,d.styles)}),E=i.found&&n.found?function(t){var e,n=t.children,i=t.attributes,r=t.main,s=t.mask,a=t.maskId,c=r.icon,l=s.icon,h=$({transform:t.transform,containerWidth:s.width,iconWidth:r.width}),u={tag:"rect",attributes:o({},Q,{fill:"white"})},d=c.children?{children:c.children.map(J)}:{},f={tag:"g",attributes:o({},h.inner),children:[J(o({tag:c.tag,attributes:o({},c.attributes,h.path)},d))]},p={tag:"g",attributes:o({},h.outer),children:[f]},m="mask-".concat(a||Y()),b="clip-".concat(a||Y()),g={tag:"mask",attributes:o({},Q,{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[u,p]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(e=l,"g"===e.tag?e.children:[e])},g]};return n.push(_,{tag:"rect",attributes:o({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(m,")")},Q)}),{children:n,attributes:i}}(S):function(t){var e=t.children,n=t.attributes,i=t.main,r=t.transform,s=X(t.styles);if(s.length>0&&(n.style=s),G(r)){var a=$({transform:r,containerWidth:i.width,iconWidth:i.width});e.push({tag:"g",attributes:o({},a.outer),children:[{tag:"g",attributes:o({},a.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:o({},i.icon.attributes,a.path)}]}]})}else e.push(i.icon);return{children:e,attributes:n}}(S),k=E.attributes;return S.children=E.children,S.attributes=k,c?function(t){var e=t.iconName,n=t.children,i=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:o({},t.attributes,{id:!0===i?"".concat(t.prefix,"-").concat(w.familyPrefix,"-").concat(e):i}),children:n}]}]}(S):function(t){var e=t.children,n=t.main,i=t.mask,r=t.attributes,s=t.styles,a=t.transform;if(G(a)&&n.found&&!i.found){var c={x:n.width/n.height/2,y:.5};r.style=X(o({},s,{"transform-origin":"".concat(c.x+a.x/16,"em ").concat(c.y+a.y/16,"em")}))}return[{tag:"svg",attributes:r,children:e}]}(S)}var et=function(t,e,n,i){var r,s,o,a=Object.keys(t),c=a.length,l=void 0!==i?function(t,e){return function(n,i,r,s){return t.call(e,n,i,r,s)}}(e,i):e;for(void 0===n?(r=1,o=t[a[0]]):(r=0,o=n);r2&&void 0!==arguments[2]?arguments[2]:{},i=n.skipHooks,r=void 0!==i&&i,s=Object.keys(e).reduce(function(t,n){var i=e[n];return i.icon?t[i.iconName]=i.icon:t[n]=i,t},{});"function"!=typeof C.hooks.addPack||r?C.styles[t]=o({},C.styles[t]||{},s):C.hooks.addPack(t,s),"fas"===t&&nt("fa",e)}var it=C.styles,rt=C.shims,st=function(){var t=function(t){return et(it,function(e,n,i){return e[i]=et(n,t,{}),e},{})};t(function(t,e,n){return e[3]&&(t[e[3]]=n),t}),t(function(t,e,n){var i=e[2];return t[n]=n,i.forEach(function(e){t[e]=n}),t});var e="far"in it;et(rt,function(t,n){var i=n[1];return"far"!==i||e||(i="fas"),t[n[0]]={prefix:i,iconName:n[2]},t},{})};function ot(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function at(t){var e=t.tag,n=t.attributes,i=void 0===n?{}:n,r=t.children,s=void 0===r?[]:r;return"string"==typeof t?Z(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(Z(t[n]),'" ')},"").trim()}(i),">").concat(s.map(at).join(""),"")}function ct(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}st(),(ct.prototype=Object.create(Error.prototype)).constructor=ct;var lt={fill:"currentColor"},ht={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},ut=(o({},lt,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),o({},ht,{attributeName:"opacity"}));function dt(t){var e=t[0],n=t[1],i=a(t.slice(4),1)[0];return{found:!0,width:e,height:n,icon:Array.isArray(i)?{tag:"g",attributes:{class:"".concat(w.familyPrefix,"-").concat(_.GROUP)},children:[{tag:"path",attributes:{class:"".concat(w.familyPrefix,"-").concat(_.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(w.familyPrefix,"-").concat(_.PRIMARY),fill:"currentColor",d:i[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:i}}}}function ft(){w.autoAddCss&&!_t&&(function(t){if(t&&p){var e=f.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=f.head.childNodes,i=null,r=n.length-1;r>-1;r--){var s=n[r],o=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(i=s)}f.head.insertBefore(e,i)}}(function(){var t="fa",e=m,n=w.familyPrefix,i=w.replacementClass,r='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if(n!==t||i!==e){var s=new RegExp("\\.".concat(t,"\\-"),"g"),o=new RegExp("\\--".concat(t,"\\-"),"g"),a=new RegExp("\\.".concat(e),"g");r=r.replace(s,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(a,".".concat(i))}return r}()),_t=!0)}function pt(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(t){return at(t)})}}),Object.defineProperty(t,"node",{get:function(){if(p){var e=f.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function mt(t){var e=t.prefix,n=void 0===e?"fa":e,i=t.iconName;if(i)return ot(gt.definitions,n,i)||ot(C.styles,n,i)}o({},lt,{cx:"256",cy:"364",r:"28"}),o({},ht,{attributeName:"r",values:"28;14;28;28;14;28;"}),o({},ut,{values:"1;0;1;1;0;1;"}),o({},lt,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),o({},ut,{values:"1;0;0;0;0;1;"}),o({},lt,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),o({},ut,{values:"0;0;1;1;0;0;"});var bt,gt=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e;return(e=[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,i=void 0===n?q:n,r=e.symbol,s=void 0!==r&&r,a=e.mask,c=void 0===a?null:a,l=e.maskId,h=void 0===l?null:l,u=e.title,d=void 0===u?null:u,f=e.titleId,p=void 0===f?null:f,m=e.classes,b=void 0===m?[]:m,g=e.attributes,_=void 0===g?{}:g,y=e.styles,v=void 0===y?{}:y;if(t){var x=t.prefix,C=t.iconName,S=t.icon;return pt(o({type:"icon"},t),function(){return ft(),w.autoA11y&&(d?_["aria-labelledby"]="".concat(w.replacementClass,"-title-").concat(p||Y()):(_["aria-hidden"]="true",_.focusable="false")),tt({icons:{main:dt(S),mask:c?dt(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:x,iconName:C,transform:o({},q,i),symbol:s,title:d,maskId:h,titleId:p,extra:{attributes:_,styles:v,classes:b}})})}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:mt(t||{}),i=e.mask;return i&&(i=(i||{}).icon?i:mt(i||{})),bt(n,o({},e,{mask:i}))}),vt=n("cUpR");const wt=["*"];let xt=(()=>{class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null,this.globalLibrary=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Ct=(()=>{class t{constructor(){this.definitions={}}addIcons(...t){for(const e of t)e.prefix in this.definitions||(this.definitions[e.prefix]={}),this.definitions[e.prefix][e.iconName]=e}addIconPacks(...t){for(const e of t){const t=Object.keys(e).map(t=>e[t]);this.addIcons(...t)}}getIconDefinition(t,e){return t in this.definitions&&e in this.definitions[t]?this.definitions[t][e]:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const St=t=>{const e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip,["fa-"+t.size]:null!==t.size,["fa-rotate-"+t.rotate]:null!==t.rotate,["fa-pull-"+t.pull]:null!==t.pull,["fa-stack-"+t.stackItemSize]:null!=t.stackItemSize};return Object.keys(e).map(t=>e[t]?t:null).filter(t=>t)};let Et=(()=>{class t{constructor(){this.stackItemSize="1x"}ngOnChanges(t){if("size"in t)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[i.Bb]}),t})(),kt=(()=>{class t{constructor(t,e){this.renderer=t,this.elementRef=e}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(t){"size"in t&&(null!=t.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,"fa-"+t.size.currentValue),null!=t.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,"fa-"+t.size.previousValue))}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.G),i.Pb(i.l))},t.\u0275cmp=i.Jb({type:t,selectors:[["fa-stack"]],inputs:{size:"size"},features:[i.Bb],ngContentSelectors:wt,decls:1,vars:0,template:function(t,e){1&t&&(i.nc(),i.mc(0))},encapsulation:2}),t})(),Ot=(()=>{class t{constructor(t,e,n,i,r){this.sanitizer=t,this.config=e,this.iconLibrary=n,this.stackItem=i,this.classes=[],null!=r&&null==i&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(t){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let e=null;if(e=null==this.icon?this.config.fallbackIcon:this.icon,t){const t=this.findIconDefinition(e);if(null!=t){const e=this.buildParams();this.renderIcon(t,e)}}}render(){this.ngOnChanges({})}findIconDefinition(t){const e=((t,e)=>{return void 0!==(n=t).prefix&&void 0!==n.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:e,iconName:t}:void 0;var n})(t,this.config.defaultPrefix);if("icon"in e)return e;const n=this.iconLibrary.getIconDefinition(e.prefix,e.iconName);if(null!=n)return n;const i=mt(e);if(null!=i){const t="Global icon library is deprecated. Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md for the migration instructions.";if("unset"===this.config.globalLibrary)console.error("FontAwesome: "+t);else if(!this.config.globalLibrary)throw new Error(t);return i}return(t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)})(e),null}buildParams(){const t={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},e="string"==typeof this.transform?function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce(function(t,e){var n=e.toLowerCase().split("-"),i=n[0],r=n.slice(1).join("-");if(i&&"h"===r)return t.flipX=!0,t;if(i&&"v"===r)return t.flipY=!0,t;if(r=parseFloat(r),isNaN(r))return t;switch(i){case"grow":t.size=t.size+r;break;case"shrink":t.size=t.size-r;break;case"left":t.x=t.x-r;break;case"right":t.x=t.x+r;break;case"up":t.y=t.y-r;break;case"down":t.y=t.y+r;break;case"rotate":t.rotate=t.rotate+r}return t},e):e}(this.transform):this.transform;return{title:this.title,transform:e,classes:[...St(t),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(t,e){const n=yt(t,e);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(n.html.join("\n"))}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(vt.b),i.Pb(xt),i.Pb(Ct),i.Pb(Et,8),i.Pb(kt,8))},t.\u0275cmp=i.Jb({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t,e){2&t&&(i.Yb("innerHTML",e.renderedIconHTML,i.Ac),i.Eb("title",e.title))},inputs:{classes:"classes",icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",transform:"transform",a11yRole:"a11yRole"},features:[i.Bb],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),At=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})()},O4ig:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class t{constructor(t){this.el=t}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l))},t.\u0275dir=i.Kb({type:t,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),t})()},"OA+I":function(t,e,n){"use strict";var i=n("86MQ"),r=i.assert,s=i.parseBytes,o=i.cachedProperty;function a(t,e){this.eddsa=t,this._secret=s(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=s(e.pub)}a.fromPublic=function(t,e){return e instanceof a?e:new a(t,{pub:e})},a.fromSecret=function(t,e){return e instanceof a?e:new a(t,{secret:e})},a.prototype.secret=function(){return this._secret},o(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),o(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),o(a,"privBytes",function(){var t=this.eddsa,e=this.hash(),n=t.encodingLength-1,i=e.slice(0,t.encodingLength);return i[0]&=248,i[n]&=127,i[n]|=64,i}),o(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),o(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),o(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(t){return r(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},a.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},a.prototype.getSecret=function(t){return r(this._secret,"KeyPair is public only"),i.encode(this.secret(),t)},a.prototype.getPublic=function(t){return i.encode(this.pubBytes(),t)},t.exports=a},OLiY:function(t,e,n){"use strict";n.d(e,"a",function(){return m}),n.d(e,"b",function(){return g}),n.d(e,"c",function(){return w}),n.d(e,"d",function(){return x}),n.d(e,"e",function(){return d}),n.d(e,"f",function(){return f}),n.d(e,"g",function(){return b}),n.d(e,"h",function(){return y});var i=n("y7ui"),r=n("UhP/"),s=n("8LU1"),o=n("CtHx"),a=n("2Vo4"),c=n("VRyK"),l=(n("IzEk"),n("lJxs")),h=n("8Y7J");const u=Object(r.C)(Object(r.z)(i.e));let d=(()=>{class t extends u{constructor(t,e,n){super(t,e),this._elementRef=t,this._tree=e,this.tabIndex=Number(n)||0,this._elementRef.nativeElement.classList.add("mat-tree-node")}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Pb(h.l),h.Pb(i.c),h.ac("tabindex"))},t.\u0275dir=h.Kb({type:t,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[h.Cb([{provide:i.e,useExisting:t}]),h.Ab]}),t})(),f=(()=>{class t extends i.f{}return t.\u0275fac=function(e){return p(e||t)},t.\u0275dir=h.Kb({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[h.Cb([{provide:i.f,useExisting:t}]),h.Ab]}),t})();const p=h.Xb(f);let m=(()=>{class t extends i.b{constructor(t,e,n,i){super(t,e,n),this._elementRef=t,this._tree=e,this._differs=n,this._disabled=!1,this.tabIndex=Number(i)||0,this._elementRef.nativeElement.classList.add("mat-nested-tree-node")}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(s.c)(t)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:0}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Pb(h.l),h.Pb(i.c),h.Pb(h.u),h.ac("tabindex"))},t.\u0275dir=h.Kb({type:t,selectors:[["mat-nested-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[h.Cb([{provide:i.b,useExisting:t},{provide:i.e,useExisting:t},{provide:i.a,useExisting:t}]),h.Ab]}),t})(),b=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(h.Pb(h.S),h.Pb(i.a,8))},t.\u0275dir=h.Kb({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[h.Cb([{provide:i.g,useExisting:t}])]}),t})(),g=(()=>{class t extends i.c{}return t.\u0275fac=function(e){return _(e||t)},t.\u0275cmp=h.Jb({type:t,selectors:[["mat-tree"]],viewQuery:function(t,e){if(1&t&&h.Ec(b,!0),2&t){let t;h.vc(t=h.ec())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[h.Cb([{provide:i.c,useExisting:t}]),h.Ab],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&h.Rb(0,0)},directives:[b],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),t})();const _=h.Xb(g);let y=(()=>{class t extends i.i{get recursive(){return this._recursive}set recursive(t){this._recursive=Object(s.c)(t)}}return t.\u0275fac=function(e){return v(e||t)},t.\u0275dir=h.Kb({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[h.Cb([{provide:i.i,useExisting:t}]),h.Ab]}),t})();const v=h.Xb(y);let w=(()=>{class t{}return t.\u0275mod=h.Nb({type:t}),t.\u0275inj=h.Mb({factory:function(e){return new(e||t)},imports:[[i.d,r.i],r.i]}),t})();class x extends o.b{constructor(){super(...arguments),this._data=new a.a([])}get data(){return this._data.value}set data(t){this._data.next(t)}connect(t){return Object(c.a)(t.viewChange,this._data).pipe(Object(l.a)(()=>this.data))}disconnect(){}}},"OZ/i":function(t,e,n){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function s(t,e,n){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o=n(7).Buffer}catch(O){}function a(t,e,n){for(var r=0,s=Math.min(t.length,n),o=0,a=e;a=49&&l<=54?l-49+10:l>=17&&l<=22?l-17+10:l,o|=c}return i(!(240&o),"Invalid character in "+t),r}function c(t,e,n,r){for(var s=0,o=0,a=Math.min(t.length,n),c=e;c=49?l-49+10:l>=17?l-17+10:l,i(l>=0&&o0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===e?this._parseHex(t,r):this._parseBase(t,e,r),"-"===t[0]&&(this.negative=1),this._strip(),"le"===n&&this._initArray(this.toArray(),e,n)},s.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},s.prototype._initArray=function(t,e,n){if(i("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===n)for(r=0,s=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},s.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=6)r=a(t,n,n+6),this.words[i]|=r<>>26-s&4194303,(s+=24)>=26&&(s-=26,i++);n+6!==e&&(r=a(t,e,n+6),this.words[i]|=r<>>26-s&4194303),this._strip()},s.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,r=1;r<=67108863;r*=e)i++;i--,r=r/e|0;for(var s=t.length-n,o=s%i,a=Math.min(s,s-o)+n,l=0,h=n;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(O){s.prototype.inspect=h}else s.prototype.inspect=h;function h(){return(this.red?""}var u=["","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"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;n.words[0]=67108863&o;for(var c=1;c>>26,h=67108863&a,u=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=u;d++)l+=(o=(r=0|t.words[c-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;n.words[c]=0|h,a=0|l}return 0!==a?n.words[c]=0|a:n.length--,n._strip()}s.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var r=0,s=0,o=0;o>>24-r&16777215)||o!==this.length-1?u[6-c.length]+c+n:c+n,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(n=s.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=d[t],h=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(h).toString(t);n=(p=p.idivn(h)).isZero()?m+n:u[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,n){this._strip();var r=this.byteLength(),s=n||Math.max(1,r);i(r<=s,"byte array longer than desired length"),i(s>0,"Requested array length <= 0");var o=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,r),o},s.prototype._toArrayLikeLE=function(t,e){for(var n=0,i=0,r=0,s=0;r>8&255),n>16&255),6===s?(n>24&255),i=0,s=0):(i=o>>>24,s+=2)}if(n=0&&(t[n--]=o>>8&255),n>=0&&(t[n--]=o>>16&255),6===s?(n>=0&&(t[n--]=o>>24&255),i=0,s=0):(i=o>>>24,s+=2)}if(n>=0)for(t[n--]=i;n>=0;)t[n--]=0},s.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;it.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-n),this._strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var n=t/26|0,r=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,i=t):(n=t,i=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=n.length,0!==r)this.words[this.length]=r,this.length++;else if(n!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(n=this,i=t):(n=t,i=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,f=0|o[1],p=8191&f,m=f>>>13,b=0|o[2],g=8191&b,_=b>>>13,y=0|o[3],v=8191&y,w=y>>>13,x=0|o[4],C=8191&x,S=x>>>13,E=0|o[5],k=8191&E,O=E>>>13,A=0|o[6],D=8191&A,I=A>>>13,T=0|o[7],L=8191&T,P=T>>>13,R=0|o[8],M=8191&R,j=R>>>13,F=0|o[9],N=8191&F,V=F>>>13,U=0|a[0],B=8191&U,z=U>>>13,H=0|a[1],W=8191&H,K=H>>>13,q=0|a[2],Y=8191&q,Z=q>>>13,X=0|a[3],G=8191&X,$=X>>>13,Q=0|a[4],J=8191&Q,tt=Q>>>13,et=0|a[5],nt=8191&et,it=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var bt=(l+(i=Math.imul(u,B))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,B)|0))<<13)|0;l=((s=Math.imul(d,z))+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(p,B),r=(r=Math.imul(p,z))+Math.imul(m,B)|0,s=Math.imul(m,z);var gt=(l+(i=i+Math.imul(u,W)|0)|0)+((8191&(r=(r=r+Math.imul(u,K)|0)+Math.imul(d,W)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(g,B),r=(r=Math.imul(g,z))+Math.imul(_,B)|0,s=Math.imul(_,z),i=i+Math.imul(p,W)|0,r=(r=r+Math.imul(p,K)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,K)|0;var _t=(l+(i=i+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,Z)|0)+Math.imul(d,Y)|0))<<13)|0;l=((s=s+Math.imul(d,Z)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(v,B),r=(r=Math.imul(v,z))+Math.imul(w,B)|0,s=Math.imul(w,z),i=i+Math.imul(g,W)|0,r=(r=r+Math.imul(g,K)|0)+Math.imul(_,W)|0,s=s+Math.imul(_,K)|0,i=i+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,Z)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,Z)|0;var yt=(l+(i=i+Math.imul(u,G)|0)|0)+((8191&(r=(r=r+Math.imul(u,$)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,$)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(C,B),r=(r=Math.imul(C,z))+Math.imul(S,B)|0,s=Math.imul(S,z),i=i+Math.imul(v,W)|0,r=(r=r+Math.imul(v,K)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,K)|0,i=i+Math.imul(g,Y)|0,r=(r=r+Math.imul(g,Z)|0)+Math.imul(_,Y)|0,s=s+Math.imul(_,Z)|0,i=i+Math.imul(p,G)|0,r=(r=r+Math.imul(p,$)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,$)|0;var vt=(l+(i=i+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,J)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(k,B),r=(r=Math.imul(k,z))+Math.imul(O,B)|0,s=Math.imul(O,z),i=i+Math.imul(C,W)|0,r=(r=r+Math.imul(C,K)|0)+Math.imul(S,W)|0,s=s+Math.imul(S,K)|0,i=i+Math.imul(v,Y)|0,r=(r=r+Math.imul(v,Z)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,Z)|0,i=i+Math.imul(g,G)|0,r=(r=r+Math.imul(g,$)|0)+Math.imul(_,G)|0,s=s+Math.imul(_,$)|0,i=i+Math.imul(p,J)|0,r=(r=r+Math.imul(p,tt)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,tt)|0;var wt=(l+(i=i+Math.imul(u,nt)|0)|0)+((8191&(r=(r=r+Math.imul(u,it)|0)+Math.imul(d,nt)|0))<<13)|0;l=((s=s+Math.imul(d,it)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(D,B),r=(r=Math.imul(D,z))+Math.imul(I,B)|0,s=Math.imul(I,z),i=i+Math.imul(k,W)|0,r=(r=r+Math.imul(k,K)|0)+Math.imul(O,W)|0,s=s+Math.imul(O,K)|0,i=i+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,Z)|0)+Math.imul(S,Y)|0,s=s+Math.imul(S,Z)|0,i=i+Math.imul(v,G)|0,r=(r=r+Math.imul(v,$)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,$)|0,i=i+Math.imul(g,J)|0,r=(r=r+Math.imul(g,tt)|0)+Math.imul(_,J)|0,s=s+Math.imul(_,tt)|0,i=i+Math.imul(p,nt)|0,r=(r=r+Math.imul(p,it)|0)+Math.imul(m,nt)|0,s=s+Math.imul(m,it)|0;var xt=(l+(i=i+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(L,B),r=(r=Math.imul(L,z))+Math.imul(P,B)|0,s=Math.imul(P,z),i=i+Math.imul(D,W)|0,r=(r=r+Math.imul(D,K)|0)+Math.imul(I,W)|0,s=s+Math.imul(I,K)|0,i=i+Math.imul(k,Y)|0,r=(r=r+Math.imul(k,Z)|0)+Math.imul(O,Y)|0,s=s+Math.imul(O,Z)|0,i=i+Math.imul(C,G)|0,r=(r=r+Math.imul(C,$)|0)+Math.imul(S,G)|0,s=s+Math.imul(S,$)|0,i=i+Math.imul(v,J)|0,r=(r=r+Math.imul(v,tt)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,tt)|0,i=i+Math.imul(g,nt)|0,r=(r=r+Math.imul(g,it)|0)+Math.imul(_,nt)|0,s=s+Math.imul(_,it)|0,i=i+Math.imul(p,st)|0,r=(r=r+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(l+(i=i+Math.imul(u,ct)|0)|0)+((8191&(r=(r=r+Math.imul(u,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(M,B),r=(r=Math.imul(M,z))+Math.imul(j,B)|0,s=Math.imul(j,z),i=i+Math.imul(L,W)|0,r=(r=r+Math.imul(L,K)|0)+Math.imul(P,W)|0,s=s+Math.imul(P,K)|0,i=i+Math.imul(D,Y)|0,r=(r=r+Math.imul(D,Z)|0)+Math.imul(I,Y)|0,s=s+Math.imul(I,Z)|0,i=i+Math.imul(k,G)|0,r=(r=r+Math.imul(k,$)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,$)|0,i=i+Math.imul(C,J)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(S,J)|0,s=s+Math.imul(S,tt)|0,i=i+Math.imul(v,nt)|0,r=(r=r+Math.imul(v,it)|0)+Math.imul(w,nt)|0,s=s+Math.imul(w,it)|0,i=i+Math.imul(g,st)|0,r=(r=r+Math.imul(g,ot)|0)+Math.imul(_,st)|0,s=s+Math.imul(_,ot)|0,i=i+Math.imul(p,ct)|0,r=(r=r+Math.imul(p,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var St=(l+(i=i+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(N,B),r=(r=Math.imul(N,z))+Math.imul(V,B)|0,s=Math.imul(V,z),i=i+Math.imul(M,W)|0,r=(r=r+Math.imul(M,K)|0)+Math.imul(j,W)|0,s=s+Math.imul(j,K)|0,i=i+Math.imul(L,Y)|0,r=(r=r+Math.imul(L,Z)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,Z)|0,i=i+Math.imul(D,G)|0,r=(r=r+Math.imul(D,$)|0)+Math.imul(I,G)|0,s=s+Math.imul(I,$)|0,i=i+Math.imul(k,J)|0,r=(r=r+Math.imul(k,tt)|0)+Math.imul(O,J)|0,s=s+Math.imul(O,tt)|0,i=i+Math.imul(C,nt)|0,r=(r=r+Math.imul(C,it)|0)+Math.imul(S,nt)|0,s=s+Math.imul(S,it)|0,i=i+Math.imul(v,st)|0,r=(r=r+Math.imul(v,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,i=i+Math.imul(g,ct)|0,r=(r=r+Math.imul(g,lt)|0)+Math.imul(_,ct)|0,s=s+Math.imul(_,lt)|0,i=i+Math.imul(p,ut)|0,r=(r=r+Math.imul(p,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var Et=(l+(i=i+Math.imul(u,pt)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(N,W),r=(r=Math.imul(N,K))+Math.imul(V,W)|0,s=Math.imul(V,K),i=i+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,Z)|0)+Math.imul(j,Y)|0,s=s+Math.imul(j,Z)|0,i=i+Math.imul(L,G)|0,r=(r=r+Math.imul(L,$)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,$)|0,i=i+Math.imul(D,J)|0,r=(r=r+Math.imul(D,tt)|0)+Math.imul(I,J)|0,s=s+Math.imul(I,tt)|0,i=i+Math.imul(k,nt)|0,r=(r=r+Math.imul(k,it)|0)+Math.imul(O,nt)|0,s=s+Math.imul(O,it)|0,i=i+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(S,st)|0,s=s+Math.imul(S,ot)|0,i=i+Math.imul(v,ct)|0,r=(r=r+Math.imul(v,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,i=i+Math.imul(g,ut)|0,r=(r=r+Math.imul(g,dt)|0)+Math.imul(_,ut)|0,s=s+Math.imul(_,dt)|0;var kt=(l+(i=i+Math.imul(p,pt)|0)|0)+((8191&(r=(r=r+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(N,Y),r=(r=Math.imul(N,Z))+Math.imul(V,Y)|0,s=Math.imul(V,Z),i=i+Math.imul(M,G)|0,r=(r=r+Math.imul(M,$)|0)+Math.imul(j,G)|0,s=s+Math.imul(j,$)|0,i=i+Math.imul(L,J)|0,r=(r=r+Math.imul(L,tt)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,tt)|0,i=i+Math.imul(D,nt)|0,r=(r=r+Math.imul(D,it)|0)+Math.imul(I,nt)|0,s=s+Math.imul(I,it)|0,i=i+Math.imul(k,st)|0,r=(r=r+Math.imul(k,ot)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,ot)|0,i=i+Math.imul(C,ct)|0,r=(r=r+Math.imul(C,lt)|0)+Math.imul(S,ct)|0,s=s+Math.imul(S,lt)|0,i=i+Math.imul(v,ut)|0,r=(r=r+Math.imul(v,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var Ot=(l+(i=i+Math.imul(g,pt)|0)|0)+((8191&(r=(r=r+Math.imul(g,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((s=s+Math.imul(_,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(N,G),r=(r=Math.imul(N,$))+Math.imul(V,G)|0,s=Math.imul(V,$),i=i+Math.imul(M,J)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(j,J)|0,s=s+Math.imul(j,tt)|0,i=i+Math.imul(L,nt)|0,r=(r=r+Math.imul(L,it)|0)+Math.imul(P,nt)|0,s=s+Math.imul(P,it)|0,i=i+Math.imul(D,st)|0,r=(r=r+Math.imul(D,ot)|0)+Math.imul(I,st)|0,s=s+Math.imul(I,ot)|0,i=i+Math.imul(k,ct)|0,r=(r=r+Math.imul(k,lt)|0)+Math.imul(O,ct)|0,s=s+Math.imul(O,lt)|0,i=i+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(S,ut)|0,s=s+Math.imul(S,dt)|0;var At=(l+(i=i+Math.imul(v,pt)|0)|0)+((8191&(r=(r=r+Math.imul(v,mt)|0)+Math.imul(w,pt)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(N,J),r=(r=Math.imul(N,tt))+Math.imul(V,J)|0,s=Math.imul(V,tt),i=i+Math.imul(M,nt)|0,r=(r=r+Math.imul(M,it)|0)+Math.imul(j,nt)|0,s=s+Math.imul(j,it)|0,i=i+Math.imul(L,st)|0,r=(r=r+Math.imul(L,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,i=i+Math.imul(D,ct)|0,r=(r=r+Math.imul(D,lt)|0)+Math.imul(I,ct)|0,s=s+Math.imul(I,lt)|0,i=i+Math.imul(k,ut)|0,r=(r=r+Math.imul(k,dt)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,dt)|0;var Dt=(l+(i=i+Math.imul(C,pt)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(S,pt)|0))<<13)|0;l=((s=s+Math.imul(S,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,i=Math.imul(N,nt),r=(r=Math.imul(N,it))+Math.imul(V,nt)|0,s=Math.imul(V,it),i=i+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,i=i+Math.imul(L,ct)|0,r=(r=r+Math.imul(L,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,i=i+Math.imul(D,ut)|0,r=(r=r+Math.imul(D,dt)|0)+Math.imul(I,ut)|0,s=s+Math.imul(I,dt)|0;var It=(l+(i=i+Math.imul(k,pt)|0)|0)+((8191&(r=(r=r+Math.imul(k,mt)|0)+Math.imul(O,pt)|0))<<13)|0;l=((s=s+Math.imul(O,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(N,st),r=(r=Math.imul(N,ot))+Math.imul(V,st)|0,s=Math.imul(V,ot),i=i+Math.imul(M,ct)|0,r=(r=r+Math.imul(M,lt)|0)+Math.imul(j,ct)|0,s=s+Math.imul(j,lt)|0,i=i+Math.imul(L,ut)|0,r=(r=r+Math.imul(L,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Tt=(l+(i=i+Math.imul(D,pt)|0)|0)+((8191&(r=(r=r+Math.imul(D,mt)|0)+Math.imul(I,pt)|0))<<13)|0;l=((s=s+Math.imul(I,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(N,ct),r=(r=Math.imul(N,lt))+Math.imul(V,ct)|0,s=Math.imul(V,lt),i=i+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(j,ut)|0,s=s+Math.imul(j,dt)|0;var Lt=(l+(i=i+Math.imul(L,pt)|0)|0)+((8191&(r=(r=r+Math.imul(L,mt)|0)+Math.imul(P,pt)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,i=Math.imul(N,ut),r=(r=Math.imul(N,dt))+Math.imul(V,ut)|0,s=Math.imul(V,dt);var Pt=(l+(i=i+Math.imul(M,pt)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(j,pt)|0))<<13)|0;l=((s=s+Math.imul(j,mt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863;var Rt=(l+(i=Math.imul(N,pt))|0)+((8191&(r=(r=Math.imul(N,mt))+Math.imul(V,pt)|0))<<13)|0;return l=((s=Math.imul(V,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=bt,c[1]=gt,c[2]=_t,c[3]=yt,c[4]=vt,c[5]=wt,c[6]=xt,c[7]=Ct,c[8]=St,c[9]=Et,c[10]=kt,c[11]=Ot,c[12]=At,c[13]=Dt,c[14]=It,c[15]=Tt,c[16]=Lt,c[17]=Pt,c[18]=Rt,0!==l&&(c[19]=l,n.length++),n};function b(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,r=0,s=0;s>>26)|0)>>>26,o&=67108863}n.words[s]=a,i=o,o=r}return 0!==i?n.words[s]=i:n.length--,n._strip()}function g(t,e,n){return b(t,e,n)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=p),s.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?b(this,t,e):g(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),n=s.prototype._countBits(t)-1,i=0;i>=1;return i},_.prototype.permute=function(t,e,n,i,r,s){for(var o=0;o>>=1)r++;return 1<>>=13),s>>>=13;for(o=2*e;o>=26,n+=s/67108864|0,n+=o>>>26,this.words[r]=67108863&o}return 0!==n&&(this.words[r]=n,this.length++),e?this.ineg():this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>n%26&1;return e}(t);if(0===e.length)return new s(1);for(var n=this,i=0;i=0);var e,n=t%26,r=(t-n)/26,s=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(e=0;e>>26-n}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==h||l>=r);l--){var u=0|this.words[l];this.words[l]=h<<26-s|u>>>s,h=u&a}return c&&0!==h&&(c.words[c.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;return!(this.length<=n||!(this.words[n]&1<=0);var e=t%26,n=(t-e)/26;return i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n?this:(0!==e&&n++,this.length=Math.min(n,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[r+n]=67108863&s}for(;r>26,this.words[r+n]=67108863&s;if(0===o)return this._strip();for(i(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(t,e){var n,i=this.clone(),r=t,o=0|r.words[r.length-1];0!=(n=26-this._countBits(o))&&(r=r.ushln(n),i.iushln(n),o=0|r.words[r.length-1]);var a,c=i.length-r.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;u--){var d=67108864*(0|i.words[r.length+u])+(0|i.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),i._ishlnsubmul(r,d,u);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(r,1,u),i.isZero()||(i.negative^=1);a&&(a.words[u]=d)}return a&&a._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:a||null,mod:i}},s.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modrn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),r=t.andln(1),s=n.cmp(i);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modrn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var n=(1<<26)%t,r=0,s=this.length-1;s>=0;s--)r=(n*r+(0|this.words[s]))%t;return e?-r:r},s.prototype.modn=function(t){return this.modrn(t)},s.prototype.idivn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var n=0,r=this.length-1;r>=0;r--){var s=(0|this.words[r])+67108864*n;this.words[r]=s/t|0,n=s%t}return this._strip(),e?this.ineg():this},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var h=n.clone(),u=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(h),c.isub(u)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),r.isub(a),o.isub(c)):(n.isub(e),a.isub(r),c.isub(o))}return{a:a,b:c,gcd:n.iushln(l)}},s.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),c=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,h=1;0==(e.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var u=0,d=1;0==(n.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(n.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(a)):(n.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var r=e.cmp(n);if(r<0){var s=e;e=n,n=s}else if(0===r||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,n=(t-e)/26,r=1<>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;n--){var i=0|this.words[n],r=0|t.words[n];if(i!==r){ir&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new E(t)},s.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},r(w,v),w.prototype.split=function(t,e){for(var n=4194303,i=Math.min(t.length,9),r=0;r>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=r,e=i}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new x;else if("p192"===t)e=new C;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return y[t]=e,e},E.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var n=this.m.add(new s(1)).iushrn(2);return this.pow(t,n)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);i(!r.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,l).cmp(c);)h.redIAdd(c);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=o;0!==f.cmp(a);){for(var m=f,b=0;0!==m.cmp(a);b++)m=m.redSqr();i(b=0;i--){for(var l=e.words[i],h=c-1;h>=0;h--){var u=l>>h&1;r!==n[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===i&&0===h)&&(r=this.mul(r,n[o]),a=0,o=0)):a=0}c=26}return r},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new k(t)},r(k,E),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n("YuTi")(t))},OaSA:function(t,e,n){"use strict";n.d(e,"a",function(){return Ct}),n.d(e,"b",function(){return ut}),n.d(e,"c",function(){return gt}),n.d(e,"d",function(){return wt}),n.d(e,"e",function(){return mt}),n.d(e,"f",function(){return Pt}),n.d(e,"g",function(){return Ot}),n.d(e,"h",function(){return yt}),n.d(e,"i",function(){return ft}),n.d(e,"j",function(){return Tt}),n.d(e,"k",function(){return Et}),n.d(e,"l",function(){return Mt}),n.d(e,"m",function(){return Dt}),n.d(e,"n",function(){return lt}),n.d(e,"o",function(){return Nt}),n.d(e,"p",function(){return Ft});var i=n("8LU1"),r=n("CtHx"),s=n("8Y7J"),o=n("9gLZ"),a=n("SCoL"),c=n("7KAL"),l=n("SVse"),h=n("XNiG"),u=n("Cfvw"),d=n("2Vo4"),f=n("7+OI"),p=n("LRne"),m=n("1G5W"),b=n("IzEk");const g=[[["caption"]],[["colgroup"],["col"]]],_=["caption","colgroup, col"];function y(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=Object(i.c)(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const v=new s.s("CDK_TABLE");let w=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O))},t.\u0275dir=s.Kb({type:t,selectors:[["","cdkCellDef",""]]}),t})(),x=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O))},t.\u0275dir=s.Kb({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),C=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O))},t.\u0275dir=s.Kb({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class S{}const E=y(S);let k=(()=>{class t extends E{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=Object(i.c)(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(v,8))},t.\u0275dir=s.Kb({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,n){if(1&t&&(s.Ib(n,w,!0),s.Ib(n,x,!0),s.Ib(n,C,!0)),2&t){let t;s.vc(t=s.ec())&&(e.cell=t.first),s.vc(t=s.ec())&&(e.headerCell=t.first),s.vc(t=s.ec())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[s.Cb([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.Ab]}),t})();class O{constructor(t,e){const n=e.nativeElement.classList;for(const i of t._columnCssClassName)n.add(i)}}let A=(()=>{class t extends O{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(k),s.Pb(s.l))},t.\u0275dir=s.Kb({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[s.Ab]}),t})(),D=(()=>{class t extends O{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(k),s.Pb(s.l))},t.\u0275dir=s.Kb({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[s.Ab]}),t})(),I=(()=>{class t extends O{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(k),s.Pb(s.l))},t.\u0275dir=s.Kb({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[s.Ab]}),t})();class T{constructor(){this.tasks=[],this.endTasks=[]}}const L=new s.s("_COALESCED_STYLE_SCHEDULER");let P=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new h.a}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new T,this._getScheduleObservable().pipe(Object(m.a)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new T;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Object(u.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object(b.a)(1))}}return t.\u0275fac=function(e){return new(e||t)(s.Zb(s.B))},t.\u0275prov=s.Lb({token:t,factory:t.\u0275fac}),t})(),R=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof F?t.headerCell.template:this instanceof U?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O),s.Pb(s.u))},t.\u0275dir=s.Kb({type:t,features:[s.Bb]}),t})();class M extends R{}const j=y(M);let F=(()=>{class t extends j{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O),s.Pb(s.u),s.Pb(v,8))},t.\u0275dir=s.Kb({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[s.Ab,s.Bb]}),t})();class N extends R{}const V=y(N);let U=(()=>{class t extends V{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O),s.Pb(s.u),s.Pb(v,8))},t.\u0275dir=s.Kb({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[s.Ab,s.Bb]}),t})(),B=(()=>{class t extends R{constructor(t,e,n){super(t,e),this._table=n}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O),s.Pb(s.u),s.Pb(v,8))},t.\u0275dir=s.Kb({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[s.Ab]}),t})(),z=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.S))},t.\u0275dir=s.Kb({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Rb(0,0)},directives:[z],encapsulation:2}),t})(),W=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Rb(0,0)},directives:[z],encapsulation:2}),t})(),K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Rb(0,0)},directives:[z],encapsulation:2}),t})(),q=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O))},t.\u0275dir=s.Kb({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const Y=["top","bottom","left","right"];class Z{constructor(t,e,n,i,r=!0,s=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=i,this._isBrowser=r,this._needsPositionStickyOnElement=s,this._cachedCellWidths=[]}clearStickyPositioning(t,e){const n=[];for(const i of t)if(i.nodeType===i.ELEMENT_NODE){n.push(i);for(let t=0;t{for(const t of n)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,n,i=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!n.some(t=>t))return;const r=t[0],s=r.children.length,o=this._getCellWidths(r,i),a=this._getStickyStartColumnPositions(o,e),c=this._getStickyEndColumnPositions(o,n);this._scheduleStyleChanges(()=>{const i="rtl"===this.direction,r=i?"right":"left",o=i?"left":"right";for(const l of t)for(let t=0;t{for(let t=0;t{e.some(t=>!t)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0)})}_removeStickyStyle(t,e){for(const n of e)t.style[n]="";Y.some(n=>-1===e.indexOf(n)&&t.style[n])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,n){t.classList.add(this._stickCellCss),t.style[e]=n+"px",t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let n=0;for(const i of Y)t.style[i]&&(n+=e[i]);return n?""+n:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],i=t.children;for(let r=0;r0;r--)e[r]&&(n[r]=i,i+=t[r]);return n}_scheduleStyleChanges(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}let X=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.S),s.Pb(s.l))},t.\u0275dir=s.Kb({type:t,selectors:[["","rowOutlet",""]]}),t})(),G=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.S),s.Pb(s.l))},t.\u0275dir=s.Kb({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),$=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.S),s.Pb(s.l))},t.\u0275dir=s.Kb({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),Q=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.S),s.Pb(s.l))},t.\u0275dir=s.Kb({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),J=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=r,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=c,this._viewportRuler=l,this._onDestroy=new h.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new d.a({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=Object(i.c)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=Object(i.c)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler&&this._viewportRuler.change().pipe(Object(m.a)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Object(r.h)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,e,(t,e,n)=>this._getEmbeddedViewArgs(t.item,n),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const e=t.item;this._renderRow(this._rowOutlet,e.rowDef,i,{$implicit:e.data})}else if(null==i)e.remove(n);else{const t=e.get(n);e.move(t,i)}}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const n=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const n=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...n],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const n=[];for(let i=0;i{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let n=0;n{const r=n&&n.has(i)?n.get(i):[];if(r.length){const t=r.shift();return t.dataIndex=e,t}return{data:t,rowDef:i,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),tt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=tt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=tt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=tt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const n=this._headerRowDefs.reduce(t,!1);n&&this._forceRenderHeaderRows();const i=this._footerRowDefs.reduce(t,!1);return i&&this._forceRenderFooterRows(),e||n||i}_switchDataSource(t){this._data=[],Object(r.h)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;Object(r.h)(this.dataSource)?t=this.dataSource.connect(this):Object(f.a)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Object(p.a)(this.dataSource)),this._renderChangeSubscription=t.pipe(Object(m.a)(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const n=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),i=n.map(t=>t.sticky),r=n.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,i,r,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let n=0;n!n.when||n.when(e,t));else{let i=this._rowDefs.find(n=>n.when&&n.when(e,t))||this._defaultRowDef;i&&n.push(i)}return n}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,n,i={}){const r=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),r}_renderCellTemplateForItem(t,e){for(let n of this._getCellTemplates(t))z.mostRecentCellOutlet&&z.mostRecentCellOutlet._viewContainer.createEmbeddedView(n,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,n=t.length;e{const n=this._columnDefsByName.get(e);return t.extractCellTemplate(n)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const n of e){const e=this._document.createElement(n.tag);e.setAttribute("role","rowgroup");for(const t of n.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Z(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement),(this._dir?this._dir.change:Object(p.a)()).pipe(Object(m.a)(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const n=this._noDataRowOutlet.viewContainer;e?n.createEmbeddedView(t.templateRef):n.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.u),s.Pb(s.h),s.Pb(s.l),s.ac("role"),s.Pb(o.b,8),s.Pb(l.d),s.Pb(a.a),s.Pb(r.g,8),s.Pb(L,8),s.Pb(c.e,8))},t.\u0275cmp=s.Jb({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,n){if(1&t&&(s.Ib(n,q,!0),s.Ib(n,k,!0),s.Ib(n,B,!0),s.Ib(n,F,!0),s.Ib(n,U,!0)),2&t){let t;s.vc(t=s.ec())&&(e._noDataRow=t.first),s.vc(t=s.ec())&&(e._contentColumnDefs=t),s.vc(t=s.ec())&&(e._contentRowDefs=t),s.vc(t=s.ec())&&(e._contentHeaderRowDefs=t),s.vc(t=s.ec())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(s.Ec(X,!0),s.Ec(G,!0),s.Ec($,!0),s.Ec(Q,!0)),2&t){let t;s.vc(t=s.ec())&&(e._rowOutlet=t.first),s.vc(t=s.ec())&&(e._headerRowOutlet=t.first),s.vc(t=s.ec())&&(e._footerRowOutlet=t.first),s.vc(t=s.ec())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.Hb("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[s.Cb([{provide:v,useExisting:t},{provide:r.g,useClass:r.e},{provide:L,useClass:P}])],ngContentSelectors:_,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.nc(g),s.mc(0),s.mc(1,1),s.Rb(2,0),s.Rb(3,1),s.Rb(4,2),s.Rb(5,3))},directives:[G,X,Q,$],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function tt(t,e){return t.concat(Array.from(e))}let et=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[c.d]]}),t})();var nt=n("UhP/"),it=n("quSY"),rt=n("VRyK"),st=n("itXk"),ot=n("lJxs");const at=[[["caption"]],[["colgroup"],["col"]]],ct=["caption","colgroup, col"];let lt=(()=>{class t extends J{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(e){return ht(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.Hb("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[s.Cb([{provide:r.g,useClass:r.e},{provide:J,useExisting:t},{provide:v,useExisting:t},{provide:L,useClass:P}]),s.Ab],ngContentSelectors:ct,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.nc(at),s.mc(0),s.mc(1,1),s.Rb(2,0),s.Rb(3,1),s.Rb(4,2),s.Rb(5,3))},directives:[G,X,Q,$],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky;position:sticky}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})();const ht=s.Xb(lt);let ut=(()=>{class t extends w{}return t.\u0275fac=function(e){return dt(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","matCellDef",""]],features:[s.Cb([{provide:w,useExisting:t}]),s.Ab]}),t})();const dt=s.Xb(ut);let ft=(()=>{class t extends x{}return t.\u0275fac=function(e){return pt(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","matHeaderCellDef",""]],features:[s.Cb([{provide:x,useExisting:t}]),s.Ab]}),t})();const pt=s.Xb(ft);let mt=(()=>{class t extends C{}return t.\u0275fac=function(e){return bt(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","matFooterCellDef",""]],features:[s.Cb([{provide:C,useExisting:t}]),s.Ab]}),t})();const bt=s.Xb(mt);let gt=(()=>{class t extends k{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)}}return t.\u0275fac=function(e){return _t(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[s.Cb([{provide:k,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.Ab]}),t})();const _t=s.Xb(gt);let yt=(()=>{class t extends A{}return t.\u0275fac=function(e){return vt(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[s.Ab]}),t})();const vt=s.Xb(yt);let wt=(()=>{class t extends D{}return t.\u0275fac=function(e){return xt(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[s.Ab]}),t})();const xt=s.Xb(wt);let Ct=(()=>{class t extends I{}return t.\u0275fac=function(e){return St(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[s.Ab]}),t})();const St=s.Xb(Ct);let Et=(()=>{class t extends F{}return t.\u0275fac=function(e){return kt(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[s.Cb([{provide:F,useExisting:t}]),s.Ab]}),t})();const kt=s.Xb(Et);let Ot=(()=>{class t extends U{}return t.\u0275fac=function(e){return At(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[s.Cb([{provide:U,useExisting:t}]),s.Ab]}),t})();const At=s.Xb(Ot);let Dt=(()=>{class t extends B{}return t.\u0275fac=function(e){return It(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[s.Cb([{provide:B,useExisting:t}]),s.Ab]}),t})();const It=s.Xb(Dt);let Tt=(()=>{class t extends H{}return t.\u0275fac=function(e){return Lt(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[s.Cb([{provide:H,useExisting:t}]),s.Ab],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Rb(0,0)},directives:[z],encapsulation:2}),t})();const Lt=s.Xb(Tt);let Pt=(()=>{class t extends W{}return t.\u0275fac=function(e){return Rt(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[s.Cb([{provide:W,useExisting:t}]),s.Ab],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Rb(0,0)},directives:[z],encapsulation:2}),t})();const Rt=s.Xb(Pt);let Mt=(()=>{class t extends K{}return t.\u0275fac=function(e){return jt(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[s.Cb([{provide:K,useExisting:t}]),s.Ab],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Rb(0,0)},directives:[z],encapsulation:2}),t})();const jt=s.Xb(Mt);let Ft=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[et,nt.i],nt.i]}),t})();class Nt extends r.b{constructor(t=[]){super(),this._renderData=new d.a([]),this._filter=new d.a(""),this._internalPageChanges=new h.a,this._renderChangesSubscription=it.a.EMPTY,this.sortingDataAccessor=(t,e)=>{const n=t[e];if(Object(i.a)(n)){const t=Number(n);return t<9007199254740991?t:n}return n},this.sortData=(t,e)=>{const n=e.active,i=e.direction;return n&&""!=i?t.sort((t,e)=>{let r=this.sortingDataAccessor(t,n),s=this.sortingDataAccessor(e,n);const o=typeof r,a=typeof s;o!==a&&("number"===o&&(r+=""),"number"===a&&(s+=""));let c=0;return null!=r&&null!=s?r>s?c=1:r{const n=Object.keys(t).reduce((e,n)=>e+t[n]+"\u25ec","").toLowerCase(),i=e.trim().toLowerCase();return-1!=n.indexOf(i)},this._data=new d.a(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){const t=this._sort?Object(rt.a)(this._sort.sortChange,this._sort.initialized):Object(p.a)(null),e=this._paginator?Object(rt.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Object(p.a)(null),n=this._data,i=Object(st.b)([n,this._filter]).pipe(Object(ot.a)(([t])=>this._filterData(t))),r=Object(st.b)([i,t]).pipe(Object(ot.a)(([t])=>this._orderData(t))),s=Object(st.b)([r,e]).pipe(Object(ot.a)(([t])=>this._pageData(t)));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=s.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,n=Math.min(e.pageIndex,t);n!==e.pageIndex&&(e.pageIndex=n,this._internalPageChanges.next())}})}connect(){return this._renderData}disconnect(){}}},Oaki:function(t,e,n){var i=n("tjlA"),r=i.Buffer;function s(t,e){for(var n in t)e[n]=t[n]}function o(t,e,n){return r(t,e,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=i:(s(i,e),e.Buffer=o),o.prototype=Object.create(r.prototype),s(r,o),o.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,n)},o.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=r(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},OfWw:function(t,e,n){var i=n("hwdV").Buffer;function r(t){i.isBuffer(t)||(t=i.from(t));for(var e=t.length/4|0,n=new Array(e),r=0;r>>24]^h[p>>>16&255]^u[m>>>8&255]^d[255&b]^e[g++],o=l[p>>>24]^h[m>>>16&255]^u[b>>>8&255]^d[255&f]^e[g++],a=l[m>>>24]^h[b>>>16&255]^u[f>>>8&255]^d[255&p]^e[g++],c=l[b>>>24]^h[f>>>16&255]^u[p>>>8&255]^d[255&m]^e[g++],f=s,p=o,m=a,b=c;return s=(i[f>>>24]<<24|i[p>>>16&255]<<16|i[m>>>8&255]<<8|i[255&b])^e[g++],o=(i[p>>>24]<<24|i[m>>>16&255]<<16|i[b>>>8&255]<<8|i[255&f])^e[g++],a=(i[m>>>24]<<24|i[b>>>16&255]<<16|i[f>>>8&255]<<8|i[255&p])^e[g++],c=(i[b>>>24]<<24|i[f>>>16&255]<<16|i[p>>>8&255]<<8|i[255&m])^e[g++],[s>>>=0,o>>>=0,a>>>=0,c>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],i=[],r=[[],[],[],[]],s=[[],[],[],[]],o=0,a=0,c=0;c<256;++c){var l=a^a<<1^a<<2^a<<3^a<<4;n[o]=l=l>>>8^255&l^99,i[l]=o;var h=t[o],u=t[h],d=t[u],f=257*t[l]^16843008*l;r[0][o]=f<<24|f>>>8,r[1][o]=f<<16|f>>>16,r[2][o]=f<<8|f>>>24,r[3][o]=f,s[0][l]=(f=16843009*d^65537*u^257*h^16843008*o)<<24|f>>>8,s[1][l]=f<<16|f>>>16,s[2][l]=f<<8|f>>>24,s[3][l]=f,0===o?o=a=1:(o=h^t[t[t[d^h]]],a^=t[t[a]])}return{SBOX:n,INV_SBOX:i,SUB_MIX:r,INV_SUB_MIX:s}}();function l(t){this._key=r(t),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,i=4*(n+1),r=[],s=0;s>>24)>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=a[s/e|0]<<24):e>6&&s%e==4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),r[s]=r[s-e]^o}for(var l=[],h=0;h>>24]]^c.INV_SUB_MIX[1][c.SBOX[d>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[d>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&d]]}this._nRounds=n,this._keySchedule=r,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(t){return o(t=r(t),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},l.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=i.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},l.prototype.decryptBlock=function(t){var e=(t=r(t))[1];t[1]=t[3],t[3]=e;var n=o(t,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),s=i.allocUnsafe(16);return s.writeUInt32BE(n[0],0),s.writeUInt32BE(n[3],4),s.writeUInt32BE(n[2],8),s.writeUInt32BE(n[1],12),s},l.prototype.scrub=function(){s(this._keySchedule),s(this._invKeySchedule),s(this._key)},t.exports.AES=l},Onz0:function(t,e){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=Buffer.isBuffer},P2KE:function(t,e,n){var i=n("hwdV").Buffer,r=i.alloc(16,0);function s(t){var e=i.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function o(t){this.h=t,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}o.prototype.ghash=function(t){for(var e=-1;++e0;e--)i[e]=i[e]>>>1|(1&i[e-1])<<31;i[0]=i[0]>>>1,n&&(i[0]=i[0]^225<<24)}this.state=s(r)},o.prototype.update=function(t){var e;for(this.cache=i.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},o.prototype.final=function(t,e){return this.cache.length&&this.ghash(i.concat([this.cache,r],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=o},P7XM:function(t,e){t.exports="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},PCNd:function(t,e,n){"use strict";n.d(e,"a",function(){return rt});var i=n("SVse"),r=n("iInd"),s=n("s7LF"),o=n("IheW"),a=n("Nv++"),c=n("8Y7J"),l=n("/q54"),h=n("ura0"),u=n("VDRc");n("8LU1"),new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let d=(()=>{class t{}return t.\u0275mod=c.Nb({type:t}),t.\u0275inj=c.Mb({factory:function(e){return new(e||t)},imports:[[l.c]]}),t})();new c.R("11.0.0-beta.33");let f=(()=>{class t{constructor(t,e){Object(i.B)(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,n=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:l.e,useValue:Object.assign(Object.assign({},l.d),e)},{provide:l.a,useValue:n,multi:!0},{provide:l.g,useValue:!0}]:[{provide:l.e,useValue:Object.assign(Object.assign({},l.d),e)},{provide:l.a,useValue:n,multi:!0}]}}}return t.\u0275mod=c.Nb({type:t}),t.\u0275inj=c.Mb({factory:function(e){return new(e||t)(c.Zb(l.g),c.Zb(c.D))},imports:[[u.d,h.c,d],u.d,h.c,d]}),t})();var p=n("HeVh"),m=n("UhP/"),b=n("iELJ"),g=n("vrAh"),_=n("8Qe2"),y=n("Dxy4");n("CtHx"),n("YEUz");let v=(()=>{class t{}return t.\u0275mod=c.Nb({type:t}),t.\u0275inj=c.Mb({factory:function(e){return new(e||t)},imports:[[m.i,m.s],m.i]}),t})();var w=n("PDjf"),x=n("pMoy"),C=n("TN/R"),S=n("o4Yh"),E=n("40+f"),k=n("Tj54"),O=n("e6WT"),A=n("SqCe"),D=n("rJgo"),I=n("5QHs"),T=n("BTe0"),L=n("pu8Q"),P=n("zQhy"),R=n("ZTz/"),M=n("q7Ft"),j=n("jMqV");n("Ht+U"),n("omvX"),n("SCoL"),n("quSY"),n("9gLZ");let F=(()=>{class t{}return t.\u0275mod=c.Nb({type:t}),t.\u0275inj=c.Mb({factory:function(e){return new(e||t)},imports:[[i.c,m.i],m.i]}),t})();var N=n("zHaW"),V=n("LUZP"),U=n("hzfI"),B=n("OaSA"),z=n("M9ds"),H=n("l0rg"),W=n("ZFy/"),K=n("OLiY"),q=n("Lnru"),Y=n("bwdU"),Z=n("aLe/"),X=n("1O3W");let G=(()=>{class t extends X.e{_createContainer(){const t=document.createElement("div");t.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(t),this._containerElement=t}}return t.\u0275fac=function(e){return $(e||t)},t.\u0275prov=c.Lb({token:t,factory:t.\u0275fac}),t})();const $=c.Xb(G);var Q=n("cpEJ"),J=n("7nzP");const tt={suppressScrollX:!1,suppressScrollY:!1};let et=(()=>{class t extends m.t{format(t,e){if("input"===e){let e=t.getDate().toString();return e=+e<10?"0"+e:e,e+"/"+J.l[t.getMonth()].name.toUpperCase()+"/"+t.getFullYear()}return J.l[t.getMonth()].name.toUpperCase()+" "+t.getFullYear()}}return t.\u0275fac=function(e){return nt(e||t)},t.\u0275prov=c.Lb({token:t,factory:t.\u0275fac}),t})();const nt=c.Xb(et),it={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 rt=(()=>{class t{}return t.\u0275mod=c.Nb({type:t}),t.\u0275inj=c.Mb({factory:function(e){return new(e||t)},providers:[{provide:Q.b,useClass:Q.a},{provide:Z.a,useValue:tt},{provide:N.a,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:b.b,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"55%"}},{provide:m.c,useClass:et},{provide:m.e,useValue:it},{provide:X.e,useClass:G},i.f,i.x,i.e],imports:[[i.c,s.i,s.r,a.b,f,p.c,b.e,y.b,v,w.d,x.b,S.b,E.b,C.c,m.l,k.b,O.c,A.c,D.c,T.b,L.a,P.c,K.c,R.b,M.d,j.b,V.c,B.p,H.b,W.b,_.b,I.c,U.e,F,z.f,N.c,g.b,q.c,Y.b,r.k,o.c,Z.c],s.i,s.r,a.b,f,p.c,b.e,y.b,v,w.d,x.b,S.b,E.b,C.c,m.l,k.b,O.c,A.c,D.c,T.b,L.a,P.c,K.c,R.b,M.d,j.b,V.c,B.p,H.b,W.b,_.b,I.c,U.e,F,z.f,N.c,g.b,q.c,Y.b,Z.c]}),t})()},PDjf:function(t,e,n){"use strict";n.d(e,"a",function(){return f}),n.d(e,"b",function(){return h}),n.d(e,"c",function(){return p}),n.d(e,"d",function(){return m}),n.d(e,"e",function(){return d}),n.d(e,"f",function(){return u});var i=n("omvX"),r=n("UhP/"),s=n("8Y7J");const o=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],c=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],l=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),f=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(i.a,8))},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&s.Hb("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(t,e){1&t&&(s.nc(o),s.mc(0),s.mc(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:l,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(s.nc(c),s.mc(0),s.Vb(1,"div",0),s.mc(2,1),s.Ub(),s.mc(3,2))},encapsulation:2,changeDetection:0}),t})(),m=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[r.i],r.i]}),t})()},"Pa+m":function(t,e,n){"use strict";var i=n("86MQ"),r=n("AQYT"),s=n("P7XM"),o=n("6lN/"),a=i.assert;function c(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,o.call(this,"edwards",t),this.a=new r(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new r(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new r(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function l(t,e,n,i,s){o.BasePoint.call(this,t,"projective"),null===e&&null===n&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new r(e,16),this.y=new r(n,16),this.z=i?new r(i,16):this.curve.one,this.t=s&&new r(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}s(c,o),t.exports=c,c.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},c.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},c.prototype.jpoint=function(t,e,n,i){return this.point(t,e,n,i)},c.prototype.pointFromX=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),i=this.c2.redSub(this.a.redMul(n)),s=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=i.redMul(s.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var c=a.fromRed().isOdd();return(e&&!c||!e&&c)&&(a=a.redNeg()),this.point(t,a)},c.prototype.pointFromY=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),i=n.redSub(this.c2),s=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=i.redMul(s.redInvm());if(0===o.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==e&&(a=a.redNeg()),this.point(a,t)},c.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),n=t.y.redSqr(),i=e.redMul(this.a).redAdd(n),r=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(n)));return 0===i.cmp(r)},s(l,o.BasePoint),c.prototype.pointFromJSON=function(t){return l.fromJSON(this,t)},c.prototype.point=function(t,e,n,i){return new l(this,t,e,n,i)},l.fromJSON=function(t,e){return new l(t,e[0],e[1],e[2])},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var i=this.curve._mulA(t),r=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),s=i.redAdd(e),o=s.redSub(n),a=i.redSub(e),c=r.redMul(o),l=s.redMul(a),h=r.redMul(a),u=o.redMul(s);return this.curve.point(c,l,u,h)},l.prototype._projDbl=function(){var t,e,n,i=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),s=this.y.redSqr();if(this.curve.twisted){var o=(l=this.curve._mulA(r)).redAdd(s);if(this.zOne)t=i.redSub(r).redSub(s).redMul(o.redSub(this.curve.two)),e=o.redMul(l.redSub(s)),n=o.redSqr().redSub(o).redSub(o);else{var a=this.z.redSqr(),c=o.redSub(a).redISub(a);t=i.redSub(r).redISub(s).redMul(c),e=o.redMul(l.redSub(s)),n=o.redMul(c)}}else{var l=r.redAdd(s);a=this.curve._mulC(this.z).redSqr(),c=l.redSub(a).redSub(a),t=this.curve._mulC(i.redISub(l)).redMul(c),e=this.curve._mulC(l).redMul(r.redISub(s)),n=l.redMul(c)}return this.curve.point(t,e,n)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),i=this.t.redMul(this.curve.dd).redMul(t.t),r=this.z.redMul(t.z.redAdd(t.z)),s=n.redSub(e),o=r.redSub(i),a=r.redAdd(i),c=n.redAdd(e),l=s.redMul(o),h=a.redMul(c),u=s.redMul(c),d=o.redMul(a);return this.curve.point(l,h,d,u)},l.prototype._projAdd=function(t){var e,n,i=this.z.redMul(t.z),r=i.redSqr(),s=this.x.redMul(t.x),o=this.y.redMul(t.y),a=this.curve.d.redMul(s).redMul(o),c=r.redSub(a),l=r.redAdd(a),h=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(s).redISub(o),u=i.redMul(c).redMul(h);return this.curve.twisted?(e=i.redMul(l).redMul(o.redSub(this.curve._mulA(s))),n=c.redMul(l)):(e=i.redMul(l).redMul(o.redSub(s)),n=this.curve._mulC(c).redMul(l)),this.curve.point(u,e,n)},l.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},l.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},l.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},l.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},l.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(i),0===this.x.cmp(e))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},PqYM:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("HDdC"),r=n("D0XW"),s=n("Y7HM"),o=n("z+Ro");function a(t=0,e,n){let a=-1;return Object(s.a)(e)?a=Number(e)<1?1:Number(e):Object(o.a)(e)&&(n=e),Object(o.a)(n)||(n=r.a),new i.a(e=>{const i=Object(s.a)(t)?t:+t-n.now();return n.schedule(c,i,{index:0,period:a,subscriber:e})})}function c(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}},Q2Ze:function(t,e,n){"use strict";n.d(e,"a",function(){return Q}),n.d(e,"b",function(){return F}),n.d(e,"c",function(){return J}),n.d(e,"d",function(){return V}),n.d(e,"e",function(){return tt}),n.d(e,"f",function(){return z}),n.d(e,"g",function(){return Y});var i=n("9b/N"),r=n("SVse"),s=n("8Y7J"),o=n("UhP/"),a=n("8LU1"),c=n("XNiG"),l=n("VRyK"),h=n("xgIS"),u=n("JX91"),d=n("1G5W"),f=n("IzEk"),p=n("GS7A"),m=n("omvX"),b=n("9gLZ"),g=n("SCoL");const _=["underline"],y=["connectionContainer"],v=["inputContainer"],w=["label"];function x(t,e){1&t&&(s.Tb(0),s.Vb(1,"div",14),s.Qb(2,"div",15),s.Qb(3,"div",16),s.Qb(4,"div",17),s.Ub(),s.Vb(5,"div",18),s.Qb(6,"div",15),s.Qb(7,"div",16),s.Qb(8,"div",17),s.Ub(),s.Sb())}function C(t,e){1&t&&(s.Vb(0,"div",19),s.mc(1,1),s.Ub())}function S(t,e){if(1&t&&(s.Tb(0),s.mc(1,2),s.Vb(2,"span"),s.Kc(3),s.Ub(),s.Sb()),2&t){const t=s.hc(2);s.Db(3),s.Lc(t._control.placeholder)}}function E(t,e){1&t&&s.mc(0,3,["*ngSwitchCase","true"])}function k(t,e){1&t&&(s.Vb(0,"span",23),s.Kc(1," *"),s.Ub())}function O(t,e){if(1&t){const t=s.Wb();s.Vb(0,"label",20,21),s.dc("cdkObserveContent",function(){return s.zc(t),s.hc().updateOutlineGap()}),s.Ic(2,S,4,1,"ng-container",12),s.Ic(3,E,1,0,"ng-content",12),s.Ic(4,k,2,0,"span",22),s.Ub()}if(2&t){const t=s.hc();s.Hb("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.oc("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.Eb("for",t._control.id)("aria-owns",t._control.id),s.Db(2),s.oc("ngSwitchCase",!1),s.Db(1),s.oc("ngSwitchCase",!0),s.Db(1),s.oc("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function A(t,e){1&t&&(s.Vb(0,"div",24),s.mc(1,4),s.Ub())}function D(t,e){if(1&t&&(s.Vb(0,"div",25,26),s.Qb(2,"span",27),s.Ub()),2&t){const t=s.hc();s.Db(2),s.Hb("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function I(t,e){if(1&t&&(s.Vb(0,"div"),s.mc(1,5),s.Ub()),2&t){const t=s.hc();s.oc("@transitionMessages",t._subscriptAnimationState)}}function T(t,e){if(1&t&&(s.Vb(0,"div",31),s.Kc(1),s.Ub()),2&t){const t=s.hc(2);s.oc("id",t._hintLabelId),s.Db(1),s.Lc(t.hintLabel)}}function L(t,e){if(1&t&&(s.Vb(0,"div",28),s.Ic(1,T,2,2,"div",29),s.mc(2,6),s.Qb(3,"div",30),s.mc(4,7),s.Ub()),2&t){const t=s.hc();s.oc("@transitionMessages",t._subscriptAnimationState),s.Db(1),s.oc("ngIf",t.hintLabel)}}const P=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],R=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let M=0;const j=new s.s("MatError");let F=(()=>{class t{constructor(){this.id="mat-error-"+M++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.Eb("id",e.id)},inputs:{id:"id"},features:[s.Cb([{provide:j,useExisting:t}])]}),t})();const N={transitionMessages:Object(p.m)("transitionMessages",[Object(p.j)("enter",Object(p.k)({opacity:1,transform:"translateY(0%)"})),Object(p.l)("void => enter",[Object(p.k)({opacity:0,transform:"translateY(-100%)"}),Object(p.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t}),t})(),U=0;const B=new s.s("MatHint");let z=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+U++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.Eb("id",e.id)("align",null),s.Hb("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[s.Cb([{provide:B,useExisting:t}])]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-label"]]}),t})(),W=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-placeholder"]]}),t})();const K=new s.s("MatPrefix"),q=new s.s("MatSuffix");let Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","matSuffix",""]],features:[s.Cb([{provide:q,useExisting:t}])]}),t})(),Z=0;class X{constructor(t){this._elementRef=t}}const G=Object(o.x)(X,"primary"),$=new s.s("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Q=new s.s("MatFormField");let J=(()=>{class t extends G{constructor(t,e,n,i,r,s,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=r,this._platform=s,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new c.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Z++,this._labelId="mat-form-field-label-"+Z++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Object(a.c)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(Object(u.a)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(d.a)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Object(d.a)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(l.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(u.a)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(u.a)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(d.a)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(h.a)(this._label.nativeElement,"transitionend").pipe(Object(f.a)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),s=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const r=i.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const s=this._getStartEnd(r),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let o=0;o{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[r.c,o.i,i.c],o.i]}),t})()},QAZZ:function(t,e,n){var i=n("Rb7d");function r(t,e){var n=t.a/255,i=e+'="'+t.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function s(t,e,n){var i=t+e;return void 0!==n&&(i+=" "+n),i}e.render=function(t,e,n){var o=i.getOptions(e),a=t.modules.size,c=t.modules.data,l=a+2*o.margin,h=o.color.light.a?"':"",u="0&&l>0&&t[c-1]||(i+=o?s("M",l+n,.5+h+n):s("m",r,0),r=0,o=!1),l+1',d=''+h+u+"\n";return"function"==typeof n&&n(null,d),d}},QJsb:function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},QRH4:function(t,e,n){"use strict";var i=n("f3pb");e.certificate=n("VrUr");var r=i.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});e.RSAPrivateKey=r;var s=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=s;var o=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});e.PublicKey=o;var a=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});e.PrivateKey=c;var l=i.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});e.EncryptedPrivateKey=l;var h=i.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});e.DSAPrivateKey=h,e.DSAparam=i.define("DSAparam",function(){this.int()});var u=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())});e.ECPrivateKey=u;var d=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});e.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},"QTa/":function(t,e,n){"use strict";var i=e;i.base=n("6lN/"),i.short=n("MwBp"),i.mont=n("Z2+3"),i.edwards=n("Pa+m")},QUaw:function(t,e,n){var i=n("Rb7d");e.render=function(t,e,n){var r=n,s=e;void 0!==r||e&&e.getContext||(r=e,e=void 0),e||(s=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),r=i.getOptions(r);var o=i.getImageWidth(t.modules.size,r),a=s.getContext("2d"),c=a.createImageData(o,o);return i.qrToImageData(c.data,t,r),function(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}(a,s,o),a.putImageData(c,0,0),s},e.renderToDataURL=function(t,n,i){var r=i;return void 0!==r||n&&n.getContext||(r=n,n=void 0),r||(r={}),e.render(t,n,r).toDataURL(r.type||"image/png",(r.rendererOpts||{}).quality)}},"Qd/k":function(t,e,n){"use strict";const i=e;i.Reporter=n("0cit").Reporter,i.DecoderBuffer=n("YoN+").DecoderBuffer,i.EncoderBuffer=n("YoN+").EncoderBuffer,i.Node=n("g2Dh")},"Qi+P":function(t,e,n){!function(e){"use strict";var n={bytesToString:function(t){return t.map(function(t){return String.fromCharCode(t)}).join("")},stringToBytes:function(t){return t.split("").map(function(t){return t.charCodeAt(0)})}};n.UTF8={bytesToString:function(t){return decodeURIComponent(escape(n.bytesToString(t)))},stringToBytes:function(t){return n.stringToBytes(unescape(encodeURIComponent(t)))}},t.exports?t.exports=n:e.convertString=n}(this)},QihY:function(t,e,n){var i=n("gvAe"),r=n("hwdV").Buffer,s=n("usKN"),o=n("CfXC"),a=n("ZDAU"),c=n("OfWw"),l=n("roQf");function h(t,e,n){a.call(this),this._cache=new u,this._last=void 0,this._cipher=new c.AES(e),this._prev=r.from(n),this._mode=t,this._autopadding=!0}function u(){this.cache=r.allocUnsafe(0)}function d(t,e,n){var a=s[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=r.from(n)),"GCM"!==a.mode&&n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof e&&(e=r.from(e)),e.length!==a.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===a.type?new o(a.module,e,n,!0):"auth"===a.type?new i(a.module,e,n,!0):new h(a.module,e,n)}n("P7XM")(h,a),h.prototype._update=function(t){var e,n;this._cache.add(t);for(var i=[];e=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,e),i.push(n);return r.concat(i)},h.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var n=-1;++n16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var n=s[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=l(e,!1,n.key,n.iv);return d(t,i.key,i.iv)},e.createDecipheriv=d},QpuX:function(t,e,n){t.exports=n("+qE3").EventEmitter},QqdZ:function(t,e,n){"use strict";var i=n("0ROu").codes.ERR_STREAM_PREMATURE_CLOSE;function r(){}t.exports=function t(e,n,s){if("function"==typeof n)return t(e,null,n);n||(n={}),s=function(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,i=new Array(n),r=0;r8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");var n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});var e=t.width&&t.width>=21?t.width:void 0;return{width:e,scale:e?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,n){var i=e.getScale(t,n);return Math.floor((t+2*n.margin)*i)},e.qrToImageData=function(t,n,i){for(var r=n.modules.size,s=n.modules.data,o=e.getScale(r,i),a=Math.floor((r+2*i.margin)*o),c=i.margin*o,l=[i.color.light,i.color.dark],h=0;h=c&&u>=c&&h{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(r.A)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!s)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(i.D))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(i.D))},token:t,providedIn:"root"}),t})(),c=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})();const l=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function h(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(l),o;let t=document.createElement("input");return o=new Set(l.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let u,d,f,p;function m(t){return function(){if(null==u&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>u=!0}))}finally{u=u||!1}return u}()?t:!!t.capture}function b(){if(null==f)if("object"==typeof document&&document||(f=!1),"scrollBehavior"in document.documentElement.style)f=!0;else{const t=Element.prototype.scrollTo;f=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}return f}function g(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function _(t){if(function(){if(null==p){const t="undefined"!=typeof document?document.head:null;p=!(!t||!t.createShadowRoot&&!t.attachShadow)}return p}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},SVse:function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return It}),n.d(e,"c",function(){return Vt}),n.d(e,"d",function(){return c}),n.d(e,"e",function(){return Mt}),n.d(e,"f",function(){return Ft}),n.d(e,"g",function(){return x}),n.d(e,"h",function(){return jt}),n.d(e,"i",function(){return u}),n.d(e,"j",function(){return C}),n.d(e,"k",function(){return _}),n.d(e,"l",function(){return Tt}),n.d(e,"m",function(){return dt}),n.d(e,"n",function(){return pt}),n.d(e,"o",function(){return bt}),n.d(e,"p",function(){return Ct}),n.d(e,"q",function(){return vt}),n.d(e,"r",function(){return wt}),n.d(e,"s",function(){return xt}),n.d(e,"t",function(){return St}),n.d(e,"u",function(){return w}),n.d(e,"v",function(){return l}),n.d(e,"w",function(){return Nt}),n.d(e,"x",function(){return Pt}),n.d(e,"y",function(){return Rt}),n.d(e,"z",function(){return Ht}),n.d(e,"A",function(){return Bt}),n.d(e,"B",function(){return zt}),n.d(e,"C",function(){return a}),n.d(e,"D",function(){return Ut}),n.d(e,"E",function(){return s}),n.d(e,"F",function(){return ut}),n.d(e,"G",function(){return o});var i=n("8Y7J");let r=null;function s(){return r}function o(t){r||(r=t)}class a{}const c=new i.s("DocumentToken");let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Lb)({factory:h,token:t,providedIn:"platform"}),t})();function h(){return Object(i.Zb)(d)}const u=new i.s("Location Initialized");let d=(()=>{class t extends l{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=s().getLocation(),this._history=s().getHistory()}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(t){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){s().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){f()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){f()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(c))},t.\u0275prov=Object(i.Lb)({factory:p,token:t,providedIn:"platform"}),t})();function f(){return!!window.history.pushState}function p(){return new d(Object(i.Zb)(c))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function b(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function g(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Lb)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=Object(i.Zb)(c).location;return new w(Object(i.Zb)(l),e&&e.origin||"")}const v=new i.s("appBaseHref");let w=(()=>{class t extends _{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const r=this.prepareExternalUrl(n+g(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+g(i));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(l),i.Zb(v,8))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t extends _{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){let r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(l),i.Zb(v,8))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new i.o,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=b(E(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+g(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,E(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+g(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+g(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(_),i.Zb(l))},t.normalizeQueryParams=g,t.joinWithSlash=m,t.stripTrailingSlash=b,t.\u0275prov=Object(i.Lb)({factory:S,token:t,providedIn:"root"}),t})();function S(){return new C(Object(i.Zb)(_),Object(i.Zb)(l))}function E(t){return t.replace(/\/index.html$/,"")}var k=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),O=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),A=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),D=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),I=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),T=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function L(t,e){return N(Object(i.nb)(t)[i.eb.DateFormat],e)}function P(t,e){return N(Object(i.nb)(t)[i.eb.TimeFormat],e)}function R(t,e){return N(Object(i.nb)(t)[i.eb.DateTimeFormat],e)}function M(t,e){const n=Object(i.nb)(t),r=n[i.eb.NumberSymbols][e];if(void 0===r){if(e===T.CurrencyDecimal)return n[i.eb.NumberSymbols][T.Decimal];if(e===T.CurrencyGroup)return n[i.eb.NumberSymbols][T.Group]}return r}const j=i.qb;function F(t){if(!t[i.eb.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[i.eb.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function N(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function V(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const U=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,B={},z=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?: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}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var H=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),W=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),K=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function q(t,e,n,i){let r=function(t){if(rt(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,i]=t.split("-").map(t=>+t);return new Date(e,n-1,i)}let n;if(n=t.match(U))return function(t){const e=new Date(0);let n=0,i=0;const r=t[8]?e.setUTCFullYear:e.setFullYear,s=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-i,c=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(e,o,a,c,l),e}(n)}const e=new Date(t);if(!rt(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Y(n,e)||e;let s,o=[];for(;e;){if(s=z.exec(e),!s){o.push(e);break}{o=o.concat(s.slice(1));const t=o.pop();if(!t)break;e=t}}let a=r.getTimezoneOffset();i&&(a=it(i,a),r=function(t,e,n){const i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(it(e,i)-i))}(r,i));let c="";return o.forEach(t=>{const e=function(t){if(nt[t])return nt[t];let e;switch(t){case"G":case"GG":case"GGG":e=$(K.Eras,D.Abbreviated);break;case"GGGG":e=$(K.Eras,D.Wide);break;case"GGGGG":e=$(K.Eras,D.Narrow);break;case"y":e=G(W.FullYear,1,0,!1,!0);break;case"yy":e=G(W.FullYear,2,0,!0,!0);break;case"yyy":e=G(W.FullYear,3,0,!1,!0);break;case"yyyy":e=G(W.FullYear,4,0,!1,!0);break;case"Y":e=et(1);break;case"YY":e=et(2,!0);break;case"YYY":e=et(3);break;case"YYYY":e=et(4);break;case"M":case"L":e=G(W.Month,1,1);break;case"MM":case"LL":e=G(W.Month,2,1);break;case"MMM":e=$(K.Months,D.Abbreviated);break;case"MMMM":e=$(K.Months,D.Wide);break;case"MMMMM":e=$(K.Months,D.Narrow);break;case"LLL":e=$(K.Months,D.Abbreviated,A.Standalone);break;case"LLLL":e=$(K.Months,D.Wide,A.Standalone);break;case"LLLLL":e=$(K.Months,D.Narrow,A.Standalone);break;case"w":e=tt(1);break;case"ww":e=tt(2);break;case"W":e=tt(1,!0);break;case"d":e=G(W.Date,1);break;case"dd":e=G(W.Date,2);break;case"E":case"EE":case"EEE":e=$(K.Days,D.Abbreviated);break;case"EEEE":e=$(K.Days,D.Wide);break;case"EEEEE":e=$(K.Days,D.Narrow);break;case"EEEEEE":e=$(K.Days,D.Short);break;case"a":case"aa":case"aaa":e=$(K.DayPeriods,D.Abbreviated);break;case"aaaa":e=$(K.DayPeriods,D.Wide);break;case"aaaaa":e=$(K.DayPeriods,D.Narrow);break;case"b":case"bb":case"bbb":e=$(K.DayPeriods,D.Abbreviated,A.Standalone,!0);break;case"bbbb":e=$(K.DayPeriods,D.Wide,A.Standalone,!0);break;case"bbbbb":e=$(K.DayPeriods,D.Narrow,A.Standalone,!0);break;case"B":case"BB":case"BBB":e=$(K.DayPeriods,D.Abbreviated,A.Format,!0);break;case"BBBB":e=$(K.DayPeriods,D.Wide,A.Format,!0);break;case"BBBBB":e=$(K.DayPeriods,D.Narrow,A.Format,!0);break;case"h":e=G(W.Hours,1,-12);break;case"hh":e=G(W.Hours,2,-12);break;case"H":e=G(W.Hours,1);break;case"HH":e=G(W.Hours,2);break;case"m":e=G(W.Minutes,1);break;case"mm":e=G(W.Minutes,2);break;case"s":e=G(W.Seconds,1);break;case"ss":e=G(W.Seconds,2);break;case"S":e=G(W.FractionalSeconds,1);break;case"SS":e=G(W.FractionalSeconds,2);break;case"SSS":e=G(W.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Q(H.Short);break;case"ZZZZZ":e=Q(H.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Q(H.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Q(H.Long);break;default:return null}return nt[t]=e,e}(t);c+=e?e(r,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Y(t,e){const n=function(t){return Object(i.nb)(t)[i.eb.LocaleId]}(t);if(B[n]=B[n]||{},B[n][e])return B[n][e];let r="";switch(e){case"shortDate":r=L(t,I.Short);break;case"mediumDate":r=L(t,I.Medium);break;case"longDate":r=L(t,I.Long);break;case"fullDate":r=L(t,I.Full);break;case"shortTime":r=P(t,I.Short);break;case"mediumTime":r=P(t,I.Medium);break;case"longTime":r=P(t,I.Long);break;case"fullTime":r=P(t,I.Full);break;case"short":const e=Y(t,"shortTime"),n=Y(t,"shortDate");r=Z(R(t,I.Short),[e,n]);break;case"medium":const i=Y(t,"mediumTime"),s=Y(t,"mediumDate");r=Z(R(t,I.Medium),[i,s]);break;case"long":const o=Y(t,"longTime"),a=Y(t,"longDate");r=Z(R(t,I.Long),[o,a]);break;case"full":const c=Y(t,"fullTime"),l=Y(t,"fullDate");r=Z(R(t,I.Full),[c,l])}return r&&(B[n][e]=r),r}function Z(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function X(t,e,n="-",i,r){let s="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,s=n));let o=String(t);for(;o.length0||a>-n)&&(a+=n),t===W.Hours)0===a&&-12===n&&(a=12);else if(t===W.FractionalSeconds)return c=e,X(a,3).substr(0,c);var c;const l=M(o,T.MinusSign);return X(a,e,l,i,r)}}function $(t,e,n=A.Format,r=!1){return function(s,o){return function(t,e,n,r,s,o){switch(n){case K.Months:return function(t,e,n){const r=Object(i.nb)(t),s=N([r[i.eb.MonthsFormat],r[i.eb.MonthsStandalone]],e);return N(s,n)}(e,s,r)[t.getMonth()];case K.Days:return function(t,e,n){const r=Object(i.nb)(t),s=N([r[i.eb.DaysFormat],r[i.eb.DaysStandalone]],e);return N(s,n)}(e,s,r)[t.getDay()];case K.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(o){const t=function(t){const e=Object(i.nb)(t);return F(e),(e[i.eb.ExtraData][2]||[]).map(t=>"string"==typeof t?V(t):[V(t[0]),V(t[1])])}(e),n=function(t,e,n){const r=Object(i.nb)(t);F(r);const s=N([r[i.eb.ExtraData][0],r[i.eb.ExtraData][1]],e)||[];return N(s,n)||[]}(e,s,r),o=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,i=a>=e.hours&&c>=e.minutes,r=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case H.Short:return(r>=0?"+":"")+X(o,2,s)+X(Math.abs(r%60),2,s);case H.ShortGMT:return"GMT"+(r>=0?"+":"")+X(o,1,s);case H.Long:return"GMT"+(r>=0?"+":"")+X(o,2,s)+":"+X(Math.abs(r%60),2,s);case H.Extended:return 0===i?"Z":(r>=0?"+":"")+X(o,2,s)+":"+X(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}function J(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function tt(t,e=!1){return function(n,i){let r;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();r=1+Math.floor((e+t)/7)}else{const t=J(n),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),i=t.getTime()-e.getTime();r=1+Math.round(i/6048e5)}return X(r,t,M(i,T.MinusSign))}}function et(t,e=!1){return function(n,i){return X(J(n).getFullYear(),t,M(i,T.MinusSign),e)}}const nt={};function it(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function rt(t){return t instanceof Date&&!isNaN(t.valueOf())}const st=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ot=".",at="0";function ct(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class lt{}let ht=(()=>{class t extends lt{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(j(e||this.locale)(t)){case O.Zero:return"zero";case O.One:return"one";case O.Two:return"two";case O.Few:return"few";case O.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(i.w))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();function ut(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}let dt=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(i.tb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(i.yb)(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.u),i.Pb(i.v),i.Pb(i.l),i.Pb(i.G))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ft{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 pt=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new ft(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new mt(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new mt(t,r);e.push(s)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.S),i.Pb(i.O),i.Pb(i.u))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class mt{constructor(t,e){this.record=t,this.view=e}}let bt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new gt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){_t("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){_t("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.S),i.Pb(i.O))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class gt{constructor(){this.$implicit=null,this.ngIf=null}}function _t(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(i.yb)(e)}'.`)}class yt{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let vt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new yt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.S),i.Pb(i.O),i.Pb(vt,1))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),xt=(()=>{class t{constructor(t,e,n){n._addDefault(new yt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.S),i.Pb(i.O),i.Pb(vt,1))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Ct=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(i.v),i.Pb(i.G))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),St=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.S))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.Bb]}),t})();function Et(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(i.yb)(t)}'`)}class kt{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Ot{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const At=new Ot,Dt=new kt;let It=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Object(i.vb)(e))return At;if(Object(i.ub)(e))return Dt;throw Et(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.bc())},t.\u0275pipe=i.Ob({name:"async",type:t,pure:!1}),t})(),Tt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Et(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Ob({name:"lowercase",type:t,pure:!0}),t})();const Lt=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let Pt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Et(t,e);return e.replace(Lt,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Ob({name:"titlecase",type:t,pure:!0}),t})(),Rt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Et(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Ob({name:"uppercase",type:t,pure:!0}),t})(),Mt=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",i,r){if(null==e||""===e||e!=e)return null;try{return q(e,n,r||this.locale,i)}catch(s){throw Et(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.w))},t.\u0275pipe=i.Ob({name:"date",type:t,pure:!0}),t})(),jt=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Ob({name:"json",type:t,pure:!1}),t})(),Ft=(()=>{class t{constructor(t){this._locale=t}transform(e,n,r){if(!function(t){return!(null==t||""===t||t!=t)}(e))return null;r=r||this._locale;try{return function(t,e,n){return function(t,e,n,i,r,s,o=!1){let a="",c=!1;if(isFinite(t)){let l=function(t){let e,n,i,r,s,o=Math.abs(t)+"",a=0;for((n=o.indexOf(ot))>-1&&(o=o.replace(ot,"")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;o.charAt(i)===at;i++);if(i===(s=o.length))e=[0],n=1;else{for(s--;o.charAt(s)===at;)s--;for(n-=i,e=[],r=0;i<=s;i++,r++)e[r]=Number(o.charAt(i))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);o&&(l=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(l));let h=e.minInt,u=e.minFrac,d=e.maxFrac;if(s){const t=s.match(st);if(null===t)throw new Error(s+" is not a valid digit info");const e=t[1],n=t[3],i=t[5];null!=e&&(h=ct(e)),null!=n&&(u=ct(n)),null!=i?d=ct(i):null!=n&&u>d&&(d=u)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let i=t.digits,r=i.length-t.integerLen;const s=Math.min(Math.max(e,r),n);let o=s+t.integerLen,a=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(let t=o;t=5)if(o-1<0){for(let e=0;e>o;e--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;r=l?i.pop():c=!1),e>=10?1:0},0);h&&(i.unshift(h),t.integerLen++)}(l,u,d);let f=l.digits,p=l.integerLen;const m=l.exponent;let b=[];for(c=f.every(t=>!t);p0?b=f.splice(p,f.length):(b=f,f=[0]);const g=[];for(f.length>=e.lgSize&&g.unshift(f.splice(-e.lgSize,f.length).join(""));f.length>e.gSize;)g.unshift(f.splice(-e.gSize,f.length).join(""));f.length&&g.unshift(f.join("")),a=g.join(M(n,i)),b.length&&(a+=M(n,r)+b.join("")),m&&(a+=M(n,T.Exponential)+"+"+m)}else a=M(n,T.Infinity);return a=t<0&&!c?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],s=i[1],o=-1!==r.indexOf(ot)?r.split(ot):[r.substring(0,r.lastIndexOf(at)+1),r.substring(r.lastIndexOf(at)+1)],a=o[0],c=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let h=0;h{class t{transform(e,n,i){if(null==e)return null;if(!this.supports(e))throw Et(t,e);return e.slice(n,i)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Ob({name:"slice",type:t,pure:!1}),t})(),Vt=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[{provide:lt,useClass:ht}]}),t})();const Ut="browser";function Bt(t){return t===Ut}function zt(t){return"server"===t}let Ht=(()=>{class t{}return t.\u0275prov=Object(i.Lb)({token:t,providedIn:"root",factory:()=>new Wt(Object(i.Zb)(c),window,Object(i.Zb)(i.n))}),t})();class Wt{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Kt(this.window.history)||Kt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Kt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},Sc7j:function(t,e,n){"use strict";function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var i=t.entry;for(t.entry=null;i;){var r=i.callback;e.pendingcb--,r(void 0),i=i.next}e.corkedRequestsFree.next=t}(e,t)}}var r;t.exports=S,S.WritableState=C;var s,o={deprecate:n("t9FE")},a=n("8Spv"),c=n("tjlA").Buffer,l=global.Uint8Array||function(){},h=n("kBkV"),u=n("BfC4").getHighWaterMark,d=n("0ROu").codes,f=d.ERR_INVALID_ARG_TYPE,p=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,g=d.ERR_STREAM_DESTROYED,_=d.ERR_STREAM_NULL_VALUES,y=d.ERR_STREAM_WRITE_AFTER_END,v=d.ERR_UNKNOWN_ENCODING,w=h.errorOrDestroy;function x(){}function C(t,e,s){r=r||n("Xn1i"),"boolean"!=typeof s&&(s=e instanceof r),this.objectMode=!!(t=t||{}).objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=u(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===t.decodeStrings),this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,r=n.writecb;if("function"!=typeof r)throw new m;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,r){--e.pendingcb,n?(process.nextTick(r,i),process.nextTick(I,t,e),t._writableState.errorEmitted=!0,w(t,i)):(r(i),t._writableState.errorEmitted=!0,w(t,i),I(t,e))}(t,n,i,e,r);else{var s=A(n)||t.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||O(t,n),i?process.nextTick(k,t,n,s,r):k(t,n,s,r)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function S(t){var e=this instanceof(r=r||n("Xn1i"));if(!e&&!s.call(S,this))return new S(t);this._writableState=new C(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),a.call(this)}function E(t,e,n,i,r,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new g("write")):n?t._writev(r,e.onwrite):t._write(r,s,e.onwrite),e.sync=!1}function k(t,e,n,i){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,i(),I(t,e)}function O(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=new Array(e.bufferedRequestCount),s=e.corkedRequestsFree;s.entry=n;for(var o=0,a=!0;n;)r[o]=n,n.isBuf||(a=!1),n=n.next,o+=1;r.allBuffers=a,E(t,e,!0,e.length,r,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;n;){var c=n.chunk;if(E(t,e,!1,e.objectMode?1:c.length,c,n.encoding,n.callback),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function A(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function D(t,e){t._final(function(n){e.pendingcb--,n&&w(t,n),e.prefinished=!0,t.emit("prefinish"),I(t,e)})}function I(t,e){var n=A(e);if(n&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,process.nextTick(D,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return n}n("2q5Q")(S,a),C.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(C.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(t){return!!s.call(this,t)||this===S&&t&&t._writableState instanceof C}})):s=function(t){return t instanceof this},S.prototype.pipe=function(){w(this,new b)},S.prototype.write=function(t,e,n){var i,r=this._writableState,s=!1,o=!r.objectMode&&(c.isBuffer(i=t)||i instanceof l);return o&&!c.isBuffer(t)&&(t=function(t){return c.from(t)}(t)),"function"==typeof e&&(n=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=x),r.ending?function(t,e){var n=new y;w(t,n),process.nextTick(e,n)}(this,n):(o||function(t,e,n,i){var r;return null===n?r=new _:"string"==typeof n||e.objectMode||(r=new f("chunk",["string","Buffer"],n)),!r||(w(t,r),process.nextTick(i,r),!1)}(this,r,t,n))&&(r.pendingcb++,s=function(t,e,n,i,r,s){if(!n){var o=function(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=c.from(e,n)),e}(e,i,r);i!==o&&(n=!0,r="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length-1))throw new v(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(t,e,n){n(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(t,e,n){var i=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,n){e.ending=!0,I(t,e),n&&(e.finished?process.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,i,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),S.prototype.destroy=h.destroy,S.prototype._undestroy=h.undestroy,S.prototype._destroy=function(t,e){e(t)}},SeVD:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n("ngJS"),r=n("NJ4a"),s=n("Lhse"),o=n("kJWO"),a=n("I55L"),c=n("c2HN"),l=n("XoHu");const h=t=>{if(t&&"function"==typeof t[o.a])return h=t,t=>{const e=h[o.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(i.a)(t);if(Object(c.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,r.a),t);if(t&&"function"==typeof t[s.a])return e=t,t=>{const n=e[s.a]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=Object(l.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,h}},SpAZ:function(t,e,n){"use strict";function i(t){return t}n.d(e,"a",function(){return i})},SqCe:function(t,e,n){"use strict";n.d(e,"a",function(){return y}),n.d(e,"b",function(){return x}),n.d(e,"c",function(){return C});var i=n("SVse"),r=n("8Y7J"),s=n("UhP/"),o=n("8LU1"),a=n("XNiG"),c=n("1G5W"),l=(n("JX91"),n("YEUz"),n("CtHx"),n("Ht+U"),n("s7LF"),n("BSbQ"));const h=["*"],u=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],d=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class f{}const p=Object(s.z)(Object(s.y)(f));class m{}const b=Object(s.y)(m),g=new r.s("MatList"),_=new r.s("MatNavList");let y=(()=>{class t extends p{constructor(t){super(),this._elementRef=t,this._stateChanges=new a.a,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(r.l))},t.\u0275cmp=r.Jb({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[r.Cb([{provide:g,useExisting:t}]),r.Ab,r.Bb],ngContentSelectors:h,decls:1,vars:0,template:function(t,e){1&t&&(r.nc(),r.mc(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Kb({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Kb({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),x=(()=>{class t extends b{constructor(t,e,n,i){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new a.a,this._disabled=!1,this._isInteractiveList=!!(n||i&&"action-list"===i._getListType()),this._list=n||i;const r=this._getHostElement();"button"!==r.nodeName.toLowerCase()||r.hasAttribute("type")||r.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Object(c.a)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=Object(o.c)(t)}ngAfterContentInit(){Object(s.D)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(r.l),r.Pb(r.h),r.Pb(_,8),r.Pb(g,8))},t.\u0275cmp=r.Jb({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){if(1&t&&(r.Ib(n,v,!0),r.Ib(n,w,!0),r.Ib(n,s.j,!0)),2&t){let t;r.vc(t=r.ec())&&(e._avatar=t.first),r.vc(t=r.ec())&&(e._icon=t.first),r.vc(t=r.ec())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&r.Hb("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[r.Ab],ngContentSelectors:d,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(r.nc(u),r.Vb(0,"div",0),r.Qb(1,"div",1),r.mc(2),r.Vb(3,"div",2),r.mc(4,1),r.Ub(),r.mc(5,2),r.Ub()),2&t&&(r.Db(1),r.oc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[s.r],encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},imports:[[s.k,s.s,s.i,s.q,i.c],s.k,s.i,s.q,l.b]}),t})()},SxV6:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("sVev"),r=n("pLZG"),s=n("IzEk"),o=n("xbPD"),a=n("XDbj"),c=n("SpAZ");function l(t,e){const n=arguments.length>=2;return l=>l.pipe(t?Object(r.a)((e,n)=>t(e,n,l)):c.a,Object(s.a)(1),n?Object(o.a)(e):Object(a.a)(()=>new i.a))}},T9HO:function(t,e,n){var i=n("P7XM"),r=n("tnIz"),s=n("hwdV").Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function c(){this.init(),this._w=a,r.call(this,128,112)}function l(t,e,n){return n^t&(e^n)}function h(t,e,n){return t&e|n&(t|e)}function u(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function b(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function g(t,e){return t>>>0>>0?1:0}i(c,r),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(t){for(var e=this._w,n=0|this._ah,i=0|this._bh,r=0|this._ch,s=0|this._dh,a=0|this._eh,c=0|this._fh,_=0|this._gh,y=0|this._hh,v=0|this._al,w=0|this._bl,x=0|this._cl,C=0|this._dl,S=0|this._el,E=0|this._fl,k=0|this._gl,O=0|this._hl,A=0;A<32;A+=2)e[A]=t.readInt32BE(4*A),e[A+1]=t.readInt32BE(4*A+4);for(;A<160;A+=2){var D=e[A-30],I=e[A-30+1],T=f(D,I),L=p(I,D),P=m(D=e[A-4],I=e[A-4+1]),R=b(I,D),M=e[A-32],j=e[A-32+1],F=L+e[A-14+1]|0,N=T+e[A-14]+g(F,L)|0;N=(N=N+P+g(F=F+R|0,R)|0)+M+g(F=F+j|0,j)|0,e[A]=N,e[A+1]=F}for(var V=0;V<160;V+=2){N=e[V],F=e[V+1];var U=h(n,i,r),B=h(v,w,x),z=u(n,v),H=u(v,n),W=d(a,S),K=d(S,a),q=o[V],Y=o[V+1],Z=l(a,c,_),X=l(S,E,k),G=O+K|0,$=y+W+g(G,O)|0;$=($=($=$+Z+g(G=G+X|0,X)|0)+q+g(G=G+Y|0,Y)|0)+N+g(G=G+F|0,F)|0;var Q=H+B|0,J=z+U+g(Q,H)|0;y=_,O=k,_=c,k=E,c=a,E=S,a=s+$+g(S=C+G|0,C)|0,s=r,C=x,r=i,x=w,i=n,w=v,n=$+J+g(v=G+Q|0,G)|0}this._al=this._al+v|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+C|0,this._el=this._el+S|0,this._fl=this._fl+E|0,this._gl=this._gl+k|0,this._hl=this._hl+O|0,this._ah=this._ah+n+g(this._al,v)|0,this._bh=this._bh+i+g(this._bl,w)|0,this._ch=this._ch+r+g(this._cl,x)|0,this._dh=this._dh+s+g(this._dl,C)|0,this._eh=this._eh+a+g(this._el,S)|0,this._fh=this._fh+c+g(this._fl,E)|0,this._gh=this._gh+_+g(this._gl,k)|0,this._hh=this._hh+y+g(this._hl,O)|0},c.prototype._hash=function(){var t=s.allocUnsafe(64);function e(e,n,i){t.writeInt32BE(e,i),t.writeInt32BE(n,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=c},"TN/R":function(t,e,n){"use strict";n.d(e,"a",function(){return gt}),n.d(e,"b",function(){return Ct}),n.d(e,"c",function(){return kt}),n.d(e,"d",function(){return Et});var i=n("YEUz"),r=n("1O3W"),s=n("1z/I"),o=n("SVse"),a=n("8Y7J"),c=n("Dxy4"),l=n("iELJ"),h=n("7KAL"),u=n("UhP/"),d=n("XNiG"),f=n("quSY"),p=n("VRyK"),m=n("LRne"),b=n("Ht+U"),g=n("IzEk"),_=n("JX91"),y=n("pLZG"),v=n("8LU1"),w=n("GS7A"),x=n("s7LF"),C=n("Q2Ze"),S=n("e6WT"),E=n("9gLZ");const k=["mat-calendar-body",""];function O(t,e){if(1&t&&(a.Vb(0,"tr",2),a.Vb(1,"td",3),a.Kc(2),a.Ub(),a.Ub()),2&t){const t=a.hc();a.Db(1),a.Fc("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.Eb("colspan",t.numCols),a.Db(1),a.Mc(" ",t.label," ")}}function A(t,e){if(1&t&&(a.Vb(0,"td",7),a.Kc(1),a.Ub()),2&t){const t=a.hc(2);a.Fc("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.Eb("colspan",t._firstRowOffset),a.Db(1),a.Mc(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function D(t,e){if(1&t){const t=a.Wb();a.Vb(0,"td",8),a.dc("click",function(n){a.zc(t);const i=e.$implicit;return a.hc(2)._cellClicked(i,n)}),a.Vb(1,"div",9),a.Kc(2),a.Ub(),a.Qb(3,"div",10),a.Ub()}if(2&t){const t=e.$implicit,n=e.index,i=a.hc().index,r=a.hc();a.Fc("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),a.Hb("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",r._isActiveCell(i,n))("mat-calendar-body-range-start",r._isRangeStart(t.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",r._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(t.compareValue,i,n))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(t.compareValue,i,n))("mat-calendar-body-comparison-start",r._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",r._isInPreview(t.compareValue)),a.oc("ngClass",t.cssClasses)("tabindex",r._isActiveCell(i,n)?0:-1),a.Eb("data-mat-row",i)("data-mat-col",n)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",r._isSelected(t.compareValue)),a.Db(1),a.Hb("mat-calendar-body-selected",r._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",r.todayValue===t.compareValue),a.Db(1),a.Mc(" ",t.displayValue," ")}}function I(t,e){if(1&t&&(a.Vb(0,"tr",4),a.Ic(1,A,2,6,"td",5),a.Ic(2,D,4,46,"td",6),a.Ub()),2&t){const t=e.$implicit,n=e.index,i=a.hc();a.Db(1),a.oc("ngIf",0===n&&i._firstRowOffset),a.Db(1),a.oc("ngForOf",t)}}function T(t,e){if(1&t&&(a.Vb(0,"th",5),a.Kc(1),a.Ub()),2&t){const t=e.$implicit;a.Eb("aria-label",t.long),a.Db(1),a.Lc(t.narrow)}}const L=["*"];function P(t,e){}function R(t,e){if(1&t){const t=a.Wb();a.Vb(0,"mat-month-view",5),a.dc("activeDateChange",function(e){return a.zc(t),a.hc().activeDate=e})("_userSelection",function(e){return a.zc(t),a.hc()._dateSelected(e)}),a.Ub()}if(2&t){const t=a.hc();a.oc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function M(t,e){if(1&t){const t=a.Wb();a.Vb(0,"mat-year-view",6),a.dc("activeDateChange",function(e){return a.zc(t),a.hc().activeDate=e})("monthSelected",function(e){return a.zc(t),a.hc()._monthSelectedInYearView(e)})("selectedChange",function(e){return a.zc(t),a.hc()._goToDateInView(e,"month")}),a.Ub()}if(2&t){const t=a.hc();a.oc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function j(t,e){if(1&t){const t=a.Wb();a.Vb(0,"mat-multi-year-view",7),a.dc("activeDateChange",function(e){return a.zc(t),a.hc().activeDate=e})("yearSelected",function(e){return a.zc(t),a.hc()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return a.zc(t),a.hc()._goToDateInView(e,"year")}),a.Ub()}if(2&t){const t=a.hc();a.oc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}const F=["button"];function N(t,e){1&t&&(a.gc(),a.Vb(0,"svg",3),a.Qb(1,"path",4),a.Ub())}const V=[[["","matDatepickerToggleIcon",""]]],U=["[matDatepickerToggleIcon]"];let B=(()=>{class t{constructor(){this.changes=new d.a,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 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(a.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();class z{constructor(t,e,n,i,r={},s=t,o){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=i,this.cssClasses=r,this.compareValue=s,this.rawValue=o}}let H=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new a.o,this.previewChange=new a.o,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&W(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:n,numCols:i}=this;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/i+"%"),!e&&this._cellWidth||(this._cellWidth=100/i+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Object(g.a)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return K(t,this.startValue,this.endValue)}_isRangeEnd(t){return q(t,this.startValue,this.endValue)}_isInRange(t){return Y(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return K(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,n){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let i=this.rows[e][n-1];if(!i){const t=this.rows[e-1];i=t&&t[t.length-1]}return i&&!this._isRangeEnd(i.compareValue)}_isComparisonBridgeEnd(t,e,n){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let i=this.rows[e][n+1];if(!i){const t=this.rows[e+1];i=t&&t[0]}return i&&!this._isRangeStart(i.compareValue)}_isComparisonEnd(t){return q(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return Y(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return K(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return q(t,this.previewStart,this.previewEnd)}_isInPreview(t){return Y(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(W(t)?e=t:W(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),n=e.getAttribute("data-mat-col");if(t&&n)return this.rows[parseInt(t)][parseInt(n)]}return null}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(a.B))},t.\u0275cmp=a.Jb({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[a.Bb],attrs:k,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(a.Ic(0,O,3,6,"tr",0),a.Ic(1,I,3,2,"tr",1)),2&t&&(a.oc("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function W(t){return"TD"===t.nodeName}function K(t,e,n){return null!==n&&e!==n&&t=e&&t===n}function Y(t,e,n,i){return i&&null!==e&&null!==n&&e!==n&&t>=e&&t<=n}class Z{constructor(t,e){this.start=t,this.end=e}}let X=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new d.a,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){this.selection=t,this._selectionChanged.next({selection:t,source:e})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(void 0),a.Pb(u.c))},t.\u0275dir=a.Kb({type:t}),t})(),G=(()=>{class t extends X{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}}return t.\u0275fac=function(e){return new(e||t)(a.Zb(u.c))},t.\u0275prov=a.Lb({token:t,factory:t.\u0275fac}),t})();const $={provide:X,deps:[[new a.C,new a.M,X],u.c],useFactory:function(t,e){return t||new G(e)}},Q=new a.s("MAT_DATE_RANGE_SELECTION_STRATEGY");let J=(()=>{class t{constructor(t,e,n,i,r){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=i,this._rangeStrategy=r,this._rerenderSubscription=f.a.EMPTY,this.selectedChange=new a.o,this._userSelection=new a.o,this.activeDateChange=new a.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof Z?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(_.a)(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,n=this._dateAdapter.getYear(this.activeDate),i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.createDate(n,i,e);let s,o;this._selected instanceof Z?(s=this._getDateInCurrentMonth(this._selected.start),o=this._getDateInCurrentMonth(this._selected.end)):s=o=this._getDateInCurrentMonth(this._selected),s===e&&o===e||this.selectedChange.emit(r),this._userSelection.emit({value:r,event:t.event})}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case b.h:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case b.l:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case b.o:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case b.c:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case b.g:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case b.d:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case b.k:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case b.j:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case b.e:case b.m:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case b.f:return void(null==this._previewEnd||Object(b.r)(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const n=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let n=this._dateAdapter.getDayOfWeekNames("long").map((t,n)=>({long:t,narrow:e[n]}));this._weekdays=n.slice(t).concat(n.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let n=0,i=this._firstWeekOffset;n=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),n=this._dateAdapter.getMonth(t),i=this._dateAdapter.getDate(t);return new Date(e,n,i).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof Z?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.h),a.Pb(u.e,8),a.Pb(u.c,8),a.Pb(E.b,8),a.Pb(Q,8))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&a.Pc(H,!0),2&t){let t;a.vc(t=a.ec())&&(e._matCalendarBody=t.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[a.Bb],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(a.Vb(0,"table",0),a.Vb(1,"thead",1),a.Vb(2,"tr"),a.Ic(3,T,2,2,"th",2),a.Ub(),a.Vb(4,"tr"),a.Qb(5,"th",3),a.Ub(),a.Ub(),a.Vb(6,"tbody",4),a.dc("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),a.Ub(),a.Ub()),2&t&&(a.Db(3),a.oc("ngForOf",e._weekdays),a.Db(3),a.oc("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[o.n,H],encapsulation:2,changeDetection:0}),t})();const tt=24;let et=(()=>{class t{constructor(t,e,n){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=n,this._rerenderSubscription=f.a.EMPTY,this.selectedChange=new a.o,this.yearSelected=new a.o,this.activeDateChange=new a.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),nt(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof Z?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(_.a)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-it(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,n=[];ethis._createCellForYear(t))),n=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));this.selectedChange.emit(this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case b.h:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case b.l:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case b.o:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case b.c:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case b.g:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-it(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case b.d:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt-it(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case b.k:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case b.j:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:tt);break;case b.e:case b.m:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return it(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),n=this._dateAdapter.getYearName(e),i=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new z(t,n,n,this._shouldEnableYear(t),i)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,n,i){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=f.a.EMPTY,this.selectedChange=new a.o,this.monthSelected=new a.o,this.activeDateChange=new a.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof Z?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(_.a)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(n);const i=this._dateAdapter.getNumDaysInMonth(n);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case b.h:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case b.l:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case b.o:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case b.c:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case b.g:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case b.d:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case b.k:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case b.j:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case b.e:case b.m:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),i=this._dateAdapter.format(n,this._dateFormats.display.monthYearA11yLabel),r=this.dateClass?this.dateClass(n,"year"):void 0;return new z(t,e.toLocaleUpperCase(),i,this._shouldEnableMonth(t),r)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let n=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(n)==t;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const n=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return t>n||t===n&&e>i}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,n,i,r){this._intl=t,this.calendar=e,this._dateAdapter=n,this._dateFormats=i,this._buttonDescriptionId="mat-calendar-button-"+ot++,this.calendar.stateChanges.subscribe(()=>r.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-it(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+tt-1,n=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),i=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(n,i)}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:tt)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):nt(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(B),a.Pb(Object(a.X)(()=>ct)),a.Pb(u.c,8),a.Pb(u.e,8),a.Pb(a.h))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:L,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(t,e){1&t&&(a.nc(),a.Vb(0,"div",0),a.Vb(1,"div",1),a.Vb(2,"button",2),a.dc("click",function(){return e.currentPeriodClicked()}),a.Vb(3,"span"),a.Kc(4),a.Ub(),a.Qb(5,"div",3),a.Ub(),a.Qb(6,"div",4),a.mc(7),a.Vb(8,"button",5),a.dc("click",function(){return e.previousClicked()}),a.Ub(),a.Vb(9,"button",6),a.dc("click",function(){return e.nextClicked()}),a.Ub(),a.Ub(),a.Ub()),2&t&&(a.Db(2),a.Eb("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),a.Db(1),a.Eb("id",e._buttonDescriptionId),a.Db(1),a.Lc(e.periodButtonText),a.Db(1),a.Hb("mat-calendar-invert","month"!==e.calendar.currentView),a.Db(3),a.oc("disabled",!e.previousEnabled()),a.Eb("aria-label",e.prevButtonLabel),a.Db(1),a.oc("disabled",!e.nextEnabled()),a.Eb("aria-label",e.nextButtonLabel))},directives:[c.a,i.d],encapsulation:2,changeDetection:0}),t})(),ct=(()=>{class t{constructor(t,e,n,i){this._dateAdapter=e,this._dateFormats=n,this._changeDetectorRef=i,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new a.o,this.yearSelected=new a.o,this.monthSelected=new a.o,this.viewChanged=new a.o(!0),this._userSelection=new a.o,this.stateChanges=new d.a,this._intlChanges=t.changes.subscribe(()=>{i.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof Z?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new s.d(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(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof Z||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(B),a.Pb(u.c,8),a.Pb(u.e,8),a.Pb(a.h))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(a.Pc(J,!0),a.Pc(st,!0),a.Pc(et,!0)),2&t){let t;a.vc(t=a.ec())&&(e.monthView=t.first),a.vc(t=a.ec())&&(e.yearView=t.first),a.vc(t=a.ec())&&(e.multiYearView=t.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a.Cb([$]),a.Bb],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(t,e){1&t&&(a.Ic(0,P,0,0,"ng-template",0),a.Vb(1,"div",1),a.Ic(2,R,1,8,"mat-month-view",2),a.Ic(3,M,1,6,"mat-year-view",3),a.Ic(4,j,1,6,"mat-multi-year-view",4),a.Ub()),2&t&&(a.oc("cdkPortalOutlet",e._calendarHeaderPortal),a.Db(1),a.oc("ngSwitch",e.currentView),a.Db(1),a.oc("ngSwitchCase","month"),a.Db(1),a.oc("ngSwitchCase","year"),a.Db(1),a.oc("ngSwitchCase","multi-year"))},directives:[s.c,i.e,o.q,o.r,J,st,et],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const lt={transformPanel:Object(w.m)("transformPanel",[Object(w.j)("void",Object(w.k)({opacity:0,transform:"scale(1, 0.8)"})),Object(w.l)("void => enter",Object(w.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(w.k)({opacity:1,transform:"scale(1, 1)"}))),Object(w.l)("* => void",Object(w.e)("100ms linear",Object(w.k)({opacity:0})))]),fadeInCalendar:Object(w.m)("fadeInCalendar",[Object(w.j)("void",Object(w.k)({opacity:0})),Object(w.j)("enter",Object(w.k)({opacity:1})),Object(w.l)("void => *",Object(w.e)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ht=0;const ut=new a.s("mat-datepicker-scroll-strategy"),dt={provide:ut,deps:[r.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class ft{constructor(t){this._elementRef=t}}const pt=Object(u.x)(ft);let mt=(()=>{class t extends pt{constructor(t,e,n,i,r,s){super(t),this._changeDetectorRef=e,this._model=n,this._dateAdapter=i,this._rangeSelectionStrategy=r,this._subscriptions=new f.a,this._animationState="enter",this._animationDone=new d.a,this._closeButtonText=(null==s?void 0:s.closeCalendarLabel)||"Close calendar"}ngAfterViewInit(){this._subscriptions.add(this.datepicker._stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){const e=this._model.selection,n=t.value,i=e instanceof Z;if(i&&this._rangeSelectionStrategy){const i=this._rangeSelectionStrategy.selectionFinished(n,e,t.event);this._model.updateSelection(i,this)}else!n||!i&&this._dateAdapter.sameDate(n,e)||this._model.add(n);this._model&&!this._model.isComplete()||this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(a.h),a.Pb(X),a.Pb(u.c),a.Pb(Q,8),a.Pb(B))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&a.Pc(ct,!0),2&t){let t;a.vc(t=a.ec())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&a.Gc("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(a.Hc("@transformPanel",e._animationState),a.Hb("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.Ab],decls:4,vars:16,consts:[["cdkTrapFocus",""],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],["type","button","mat-raised-button","","color","primary",1,"mat-datepicker-close-button",3,"focus","blur","click"]],template:function(t,e){1&t&&(a.Vb(0,"div",0),a.Vb(1,"mat-calendar",1),a.dc("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),a.Ub(),a.Vb(2,"button",2),a.dc("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),a.Kc(3),a.Ub(),a.Ub()),2&t&&(a.Db(1),a.oc("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),a.Db(1),a.Hb("cdk-visually-hidden",!e._closeButtonFocused),a.Db(1),a.Lc(e._closeButtonText))},directives:[i.f,ct,o.m,c.a],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"],encapsulation:2,data:{animation:[lt.transformPanel,lt.fadeInCalendar]},changeDetection:0}),t})(),bt=(()=>{class t{constructor(t,e,n,i,r,s,o,c,l){this._dialog=t,this._overlay=e,this._ngZone=n,this._viewContainerRef=i,this._dateAdapter=s,this._dir=o,this._document=c,this._model=l,this._inputStateChanges=f.a.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this.yearSelected=new a.o,this.monthSelected=new a.o,this.viewChanged=new a.o(!0),this.openedStream=new a.o,this.closedStream=new a.o,this._opened=!1,this.id="mat-datepicker-"+ht++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=this.id+"-backdrop",this._stateChanges=new d.a,this._scrollStrategy=r}get startAt(){return this._startAt||(this._datepickerInput?this._datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this._datepickerInput?this._datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=Object(v.c)(t)}get disabled(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled}set disabled(t){const e=Object(v.c)(t);e!==this._disabled&&(this._disabled=e,this._stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=Object(v.g)(t)}get opened(){return this._opened}set opened(t){Object(v.c)(t)?this.open():this.close()}_getMinDate(){return this._datepickerInput&&this._datepickerInput.min}_getMaxDate(){return this._datepickerInput&&this._datepickerInput.max}_getDateFilter(){return this._datepickerInput&&this._datepickerInput.dateFilter}ngOnChanges(t){const e=t.xPosition||t.yPosition;e&&!e.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this._stateChanges.next(void 0)}ngOnDestroy(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this._stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}_registerInput(t){return this._inputStateChanges.unsubscribe(),this._datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this._stateChanges.next(void 0)),this._model}open(){this._opened||this.disabled||(this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._popupComponentRef&&this._popupRef){const t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(Object(g.a)(1)).subscribe(()=>this._destroyPopup())}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(mt,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,backdropClass:["cdk-overlay-dark-backdrop",this._backdropHarnessClass],width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._forwardContentValues(this._dialogRef.componentInstance)}_openAsPopup(){const t=new s.d(mt,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(t),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.pipe(Object(g.a)(1)).subscribe(()=>{this._popupRef.updatePosition()})}_forwardContentValues(t){t.datepicker=this,t.color=this.color}_createPopup(){const t=this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),e=new r.d({positionStrategy:this._setConnectedPositions(t),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(e),this._popupRef.overlayElement.setAttribute("role","dialog"),Object(p.a)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Object(y.a)(t=>t.keyCode===b.f&&!Object(b.r)(t)||this._datepickerInput&&Object(b.r)(t,"altKey")&&t.keyCode===b.o))).subscribe(t=>{t&&t.preventDefault(),this.close()})}_destroyPopup(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",n="start"===e?"end":"start",i="above"===this.yPosition?"bottom":"top",r="top"===i?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:i},{originX:e,originY:i,overlayX:e,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:r}])}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(l.c),a.Pb(r.c),a.Pb(a.B),a.Pb(a.S),a.Pb(ut),a.Pb(u.c,8),a.Pb(E.b,8),a.Pb(o.d,8),a.Pb(X))},t.\u0275dir=a.Kb({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[a.Bb]}),t})(),gt=(()=>{class t extends bt{}return t.\u0275fac=function(e){return _t(e||t)},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a.Cb([$]),a.Ab],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();const _t=a.Xb(gt);class yt{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let vt=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dateAdapter=e,this._dateFormats=n,this.dateChange=new a.o,this.dateInput=new a.o,this._valueChange=new a.o,this.stateChanges=new d.a,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=f.a.EMPTY,this._localeSubscription=f.a.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),n=this._getMinDate();return!n||!e||this._dateAdapter.compareDate(n,e)<=0?null:{matDatepickerMin:{min:n,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),n=this._getMaxDate();return!n||!e||this._dateAdapter.compareDate(n,e)>=0?null:{matDatepickerMax:{max:n,actual:e}}},this._lastValueValid=!1,this._localeSubscription=e.localeChanges.subscribe(()=>{this.value=this.value})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t);const e=this.value;this._assignValue(t),this._formatValue(t),this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=Object(v.c)(t),n=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&n.blur&&n.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(t.source!==this){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this._canEmitChangeEvent(t)&&(this.dateInput.emit(new yt(this,this._elementRef.nativeElement)),this.dateChange.emit(new yt(this,this._elementRef.nativeElement))),this._outsideValueChanged&&this._outsideValueChanged()}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const n=Object.keys(t);for(let i of n){const{previousValue:n,currentValue:r}=t[i];if(!e.isDateInstance(n)||!e.isDateInstance(r))return!0;if(!e.sameDate(n,r))return!0}return!1})(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this.value=t}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&t.keyCode===b.c&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let n=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(n),n=this._dateAdapter.getValidDateOrNull(n),this._dateAdapter.sameDate(n,this.value)?(t&&!this.value&&this._cvaOnChange(n),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(n),this._cvaOnChange(n),this._valueChange.emit(n),this.dateInput.emit(new yt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new yt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(u.c,8),a.Pb(u.e,8))},t.\u0275dir=a.Kb({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.Bb]}),t})();const wt={provide:x.k,useExisting:Object(a.X)(()=>Ct),multi:!0},xt={provide:x.j,useExisting:Object(a.X)(()=>Ct),multi:!0};let Ct=(()=>{class t extends vt{constructor(t,e,n,i){super(t,e,n),this._formField=i,this._validator=x.t.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._registerModel(t._registerInput(this)))}get min(){return this._min}set min(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._min)||(this._min=e,this._validatorOnChange())}get max(){return this._max}set max(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._max)||(this._max=e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_canEmitChangeEvent(){return!0}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(u.c,8),a.Pb(u.e,8),a.Pb(C.a,8))},t.\u0275dir=a.Kb({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&a.dc("input",function(t){return e._onInput(t.target.value)})("change",function(){return e._onChange()})("blur",function(){return e._onBlur()})("keydown",function(t){return e._onKeydown(t)}),2&t&&(a.Yb("disabled",e.disabled),a.Eb("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a.Cb([wt,xt,{provide:S.a,useExisting:t}]),a.Ab]}),t})(),St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Kb({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),Et=(()=>{class t{constructor(t,e,n){this._intl=t,this._changeDetectorRef=e,this._stateChanges=f.a.EMPTY;const i=Number(n);this.tabIndex=i||0===i?i:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=Object(v.c)(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker._stateChanges:Object(m.a)(),e=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput.stateChanges:Object(m.a)(),n=this.datepicker?Object(p.a)(this.datepicker.openedStream,this.datepicker.closedStream):Object(m.a)();this._stateChanges.unsubscribe(),this._stateChanges=Object(p.a)(this._intl.changes,t,e,n).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(B),a.Pb(a.h),a.ac("tabindex"))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,n){if(1&t&&a.Ib(n,St,!0),2&t){let t;a.vc(t=a.ec())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&a.Pc(F,!0),2&t){let t;a.vc(t=a.ec())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&a.dc("focus",function(){return e._button.focus()}),2&t&&(a.Eb("tabindex",e.disabled?null:-1)("data-mat-calendar",e.datepicker?e.datepicker.id:null),a.Hb("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.Bb],ngContentSelectors:U,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(a.nc(V),a.Vb(0,"button",0,1),a.dc("click",function(t){return e._open(t)}),a.Ic(2,N,2,0,"svg",2),a.mc(3),a.Ub()),2&t&&(a.oc("disabled",e.disabled)("disableRipple",e.disableRipple),a.Eb("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),a.Db(2),a.oc("ngIf",!e._customIcon))},directives:[c.a,o.o],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}\n"],encapsulation:2,changeDetection:0}),t})(),kt=(()=>{class t{}return t.\u0275mod=a.Nb({type:t}),t.\u0275inj=a.Mb({factory:function(e){return new(e||t)},providers:[B,dt],imports:[[o.c,c.b,l.e,r.f,i.a,s.h,u.i],h.b]}),t})()},TdD3:function(t,e,n){var i=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,s=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=n("roQf"),a=n("/ab2"),c=n("hwdV").Buffer;t.exports=function(t,e){var n,l=t.toString(),h=l.match(i);if(h){var u="aes"+h[1],d=c.from(h[2],"hex"),f=c.from(h[3].replace(/[\r\n]/g,""),"base64"),p=o(e,d.slice(0,8),parseInt(h[1],10)).key,m=[],b=a.createDecipheriv(u,p,d);m.push(b.update(f)),m.push(b.final()),n=c.concat(m)}else{var g=l.match(s);n=c.from(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:l.match(r)[1],data:n}}},Titl:function(t,e,n){"use strict";var i=n("2j6C"),r=n("P7XM"),s=n("Xudb"),o=n("AYSA");function a(){this.tmp=new Array(2),this.keys=null}function c(t){o.call(this,t);var e=new a;this._desState=e,this.deriveKeys(e,t.key)}r(c,o),t.exports=c,c.create=function(t){return new c(t)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(t,e){t.keys=new Array(32),i.equal(e.length,this.blockSize,"Invalid key length");var n=s.readUInt32BE(e,0),r=s.readUInt32BE(e,4);s.pc1(n,r,t.tmp,0),n=t.tmp[0],r=t.tmp[1];for(var o=0;o>>1];n=s.r28shl(n,a),r=s.r28shl(r,a),s.pc2(n,r,t.keys,o)}},c.prototype._update=function(t,e,n,i){var r=this._desState,o=s.readUInt32BE(t,e),a=s.readUInt32BE(t,e+4);s.ip(o,a,r.tmp,0),o=r.tmp[0],a=r.tmp[1],"encrypt"===this.type?this._encrypt(r,o,a,r.tmp,0):this._decrypt(r,o,a,r.tmp,0),a=r.tmp[1],s.writeUInt32BE(n,o=r.tmp[0],i),s.writeUInt32BE(n,a,i+4)},c.prototype._pad=function(t,e){for(var n=t.length-e,i=e;i>>0,o=d}s.rip(a,o,i,r)},c.prototype._decrypt=function(t,e,n,i,r){for(var o=n,a=e,c=t.keys.length-2;c>=0;c-=2){var l=t.keys[c],h=t.keys[c+1];s.expand(o,t.tmp,0);var u=s.substitute(l^=t.tmp[0],h^=t.tmp[1]),d=o;o=(a^s.permute(u))>>>0,a=d}s.rip(o,a,i,r)}},Tj54:function(t,e,n){"use strict";n.d(e,"a",function(){return P}),n.d(e,"b",function(){return R});var i=n("8Y7J"),r=n("UhP/"),s=n("8LU1"),o=n("SVse"),a=n("LRne"),c=n("z6cu"),l=n("cp0P"),h=n("quSY"),u=n("vkgz"),d=n("lJxs"),f=n("JIr8"),p=n("nYR2"),m=n("w1tV"),b=n("IzEk"),g=n("IheW"),_=n("cUpR");const y=["*"];function v(t){return Error(`Unable to find icon with the name "${t}"`)}function w(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function x(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class C{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let S=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,i){return this._addSvgIconConfig(t,e,new C(n,null,i))}addSvgIconLiteralInNamespace(t,e,n,r){const s=this._sanitizer.sanitize(i.K.HTML,n);if(!s)throw x(n);return this._addSvgIconConfig(t,e,new C("",s,r))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new C(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const r=this._sanitizer.sanitize(i.K.HTML,e);if(!r)throw x(e);return this._addSvgIconSetConfig(t,new C("",r,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(i.K.RESOURCE_URL,t);if(!e)throw w(t);const n=this._cachedIconsByUrl.get(e);return n?Object(a.a)(E(n)):this._loadSvgIconFromConfig(new C(t,null)).pipe(Object(u.a)(t=>this._cachedIconsByUrl.set(e,t)),Object(d.a)(t=>E(t)))}getNamedSvgIcon(t,e=""){const n=k(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);const r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):Object(c.a)(v(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Object(a.a)(E(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Object(d.a)(t=>E(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);if(n)return Object(a.a)(n);const r=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Object(f.a)(e=>{const n=this._sanitizer.sanitize(i.K.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),Object(a.a)(null)})));return Object(l.a)(r).pipe(Object(d.a)(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw v(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Object(u.a)(e=>t.svgText=e),Object(d.a)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Object(a.a)(null):this._fetchIcon(t).pipe(Object(u.a)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);const s=this._svgElementFromString("");return s.appendChild(r),this._setSvgAttributes(s,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString(""),n=t.attributes;for(let i=0;ithis._inProgressUrlFetches.delete(o)),Object(m.a)());return this._inProgressUrlFetches.set(o,c),c}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(k(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(g.b,8),i.Zb(_.b),i.Zb(o.d,8),i.Zb(i.n))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(g.b,8),Object(i.Zb)(_.b),Object(i.Zb)(o.d,8),Object(i.Zb)(i.n))},token:t,providedIn:"root"}),t})();function E(t){return t.cloneNode(!0)}function k(t,e){return t+":"+e}class O{constructor(t){this._elementRef=t}}const A=Object(r.x)(O),D=new i.s("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(i.Y)(o.d),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),I=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],T=I.map(t=>`[${t}]`).join(", "),L=/^url\(['"]?#(.*?)['"]?\)$/;let P=(()=>{class t extends A{constructor(t,e,n,i,r){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=r,this._inline=!1,this._currentIconFetch=h.a.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Object(s.c)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(T),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i{const r=e[i],s=r.getAttribute(t),o=s?s.match(L):null;if(o){let e=n.get(r);e||(e=[],n.set(r,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(Object(b.a)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${n}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(S),i.ac("aria-hidden"),i.Pb(D),i.Pb(i.n))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(i.Eb("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),i.Hb("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.Ab],ngContentSelectors:y,decls:1,vars:0,template:function(t,e){1&t&&(i.nc(),i.mc(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),R=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[r.i],r.i]}),t})()},UWVS:function(t,e,n){var i=n("jIre");function r(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(t,e){for(;t._cache.length{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),_=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const y=new i.R("11.0.3"),v=new i.s("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let w=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return Object(i.Z)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&y.full!==o.full&&console.warn("The Angular Material version ("+y.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)(i.Zb(r.j),i.Zb(v,8),i.Zb(a.d))},imports:[[s.a],s.a]}),t})();function x(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(c.c)(t)}}}function C(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),e&&this._elementRef.nativeElement.classList.add("mat-"+e),this._color=e)}}}function S(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(c.c)(t)}}}function E(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Object(c.f)(t):this.defaultTabIndex}}}function k(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new l.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function O(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new h.a(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const A=new i.s("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(i.Y)(i.w)}});class D{constructor(){this._localeChanges=new l.a,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),i=this.isValid(e);return n&&i?!this.compareDate(t,e):n==i}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const I=new i.s("mat-date-formats");let T;try{T="undefined"!=typeof Intl}catch(gt){T=!1}const L={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},P=j(31,t=>String(t+1)),R={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},M=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function j(t,e){const n=Array(t);for(let i=0;i{class t extends D{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(T){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return j(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return L[t]}getDateNames(){if(T){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return j(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return P}getDayOfWeekNames(t){if(T){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return j(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return R[t]}getYearName(t){if(T){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,n){let i=this._createDateWithOverflow(t,e,n);return i.getMonth(),i}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(T){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(M.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,n){const i=new Date;return i.setFullYear(t,e,n),i.setHours(0,0,0,0),i}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const n=new Date;return n.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(n)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(A,8),i.Zb(u.a))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),N=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[{provide:D,useClass:F}],imports:[[u.b]]}),t})();const V={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 t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[{provide:I,useValue:V}],imports:[[N]]}),t})(),B=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function H(t,e,n="mat"){t.changes.pipe(Object(d.a)(t)).subscribe(({length:t})=>{W(e,n+"-2-line",!1),W(e,n+"-3-line",!1),W(e,n+"-multi-line",!1),2===t||3===t?W(e,`${n}-${t}-line`,!0):t>3&&W(e,n+"-multi-line",!0)})}function W(t,e,n){const i=t.nativeElement.classList;n?i.add(e):i.remove(e)}let K=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[w],w]}),t})();class q{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Y={enterDuration:450,exitDuration:400},Z=Object(u.f)({passive:!0}),X=["mousedown","touchstart"],G=["mouseup","mouseleave","touchend","touchcancel"];class ${constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Object(c.e)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},Y),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const s=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}(t,e,i),o=t-i.left,a=e-i.top,c=r.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=o-s+"px",l.style.top=a-s+"px",l.style.height=2*s+"px",l.style.width=2*s+"px",null!=n.color&&(l.style.backgroundColor=n.color),l.style.transitionDuration=c+"ms",this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";const h=new q(this,l,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,n.persistent||t&&this._isPointerDown||h.fadeOut()},c),h}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},Y),t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=Object(c.e)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(X))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(G),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Object(r.l)(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,Z)})})}_removeTriggerEvents(){this._triggerElement&&(X.forEach(t=>{this._triggerElement.removeEventListener(t,this,Z)}),this._pointerUpEventsRegistered&&G.forEach(t=>{this._triggerElement.removeEventListener(t,this,Z)}))}}const Q=new i.s("mat-ripple-global-options");let J=(()=>{class t{constructor(t,e,n,i,r){this._elementRef=t,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new $(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(i.B),i.Pb(u.a),i.Pb(Q,8),i.Pb(f.a,8))},t.\u0275dir=i.Kb({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.Hb("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),tt=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[w,u.b],w]}),t})(),et=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(f.a,8))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.Hb("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),nt=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[w]]}),t})();class it{}const rt=x(it);let st=0,ot=(()=>{class t extends rt{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+st++}}return t.\u0275fac=function(e){return at(e||t)},t.\u0275dir=i.Kb({type:t,inputs:{label:"label"},features:[i.Ab]}),t})();const at=i.Xb(ot),ct=new i.s("MatOptgroup");let lt=0;class ht{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const ut=new i.s("MAT_OPTION_PARENT_COMPONENT");let dt=(()=>{class t{constructor(t,e,n,r){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+lt++,this.onSelectionChange=new i.o,this._stateChanges=new l.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Object(c.c)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==p.e&&t.keyCode!==p.m||Object(p.r)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new ht(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(i.h),i.Pb(void 0),i.Pb(ot))},t.\u0275dir=i.Kb({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),ft=(()=>{class t extends dt{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(i.h),i.Pb(ut,8),i.Pb(ct,8))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.dc("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(i.Yb("id",e.id),i.Eb("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.Hb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.Ab],ngContentSelectors:b,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(i.nc(),i.Ic(0,m,1,2,"mat-pseudo-checkbox",0),i.Vb(1,"span",1),i.mc(2),i.Ub(),i.Qb(3,"div",2)),2&t&&(i.oc("ngIf",e.multiple),i.Db(3),i.oc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.o,J,et],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.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}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function pt(t,e,n){if(n.length){let i=e.toArray(),r=n.toArray(),s=0;for(let e=0;en+i?Math.max(0,t-i+e):n}let bt=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[tt,a.c,w,nt]]}),t})()},Ujlg:function(t,e,n){var i=n("hwdV").Buffer;function r(t,e,n){for(var i,r,o=-1,a=0;++o<8;)a+=(128&(r=t._cipher.encryptBlock(t._prev)[0]^(i=e&1<<7-o?128:0)))>>o%8,t._prev=s(t._prev,n?i:r);return a}function s(t,e){var n=t.length,r=-1,s=i.allocUnsafe(t.length);for(t=i.concat([t,i.from([e])]);++r>7;return s}e.encrypt=function(t,e,n){for(var s=e.length,o=i.allocUnsafe(s),a=-1;++a{class t{constructor(t,e,n){this.dialogRef=t,this.data=e,this.logger=n,this.errorMessage=""}ngOnInit(){this.errorMessage="object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message.message,this.data.message||this.data.titleMessage||this.data.message||(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.data.message)}onClose(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(i.f),r.Pb(i.a),r.Pb(s.b))},t.\u0275cmp=r.Jb({type:t,selectors:[["rtl-error-message"]],decls:29,vars:6,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px","mb-0","error-alert-block"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],[1,"word-break"],["fxLayout","row","fxLayoutAlign","end center"],["tabindex","1","autoFocus","","mat-flat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(t,e){1&t&&(r.Vb(0,"div",0),r.Vb(1,"div",1),r.Vb(2,"mat-card-header",2),r.Vb(3,"div",3),r.Vb(4,"span",4),r.Kc(5),r.Ub(),r.Ub(),r.Vb(6,"button",5),r.dc("click",function(){return e.onClose()}),r.Kc(7,"X"),r.Ub(),r.Ub(),r.Vb(8,"mat-card-content",6),r.Vb(9,"div",7),r.Ic(10,d,2,1,"p",8),r.Vb(11,"h4",9),r.Kc(12,"Error Code"),r.Ub(),r.Vb(13,"span"),r.Kc(14),r.Ub(),r.Qb(15,"mat-divider",10),r.Vb(16,"h4",9),r.Kc(17,"Error Message"),r.Ub(),r.Vb(18,"span",11),r.Kc(19),r.Ub(),r.Qb(20,"mat-divider",10),r.Vb(21,"h4",9),r.Kc(22,"API URL"),r.Ub(),r.Vb(23,"span",11),r.Kc(24),r.Ub(),r.Qb(25,"mat-divider",10),r.Vb(26,"div",12),r.Vb(27,"button",13),r.Kc(28,"OK"),r.Ub(),r.Ub(),r.Ub(),r.Ub(),r.Ub(),r.Ub()),2&t&&(r.Db(5),r.Lc(e.data.alertTitle||"ERROR"),r.Db(5),r.oc("ngIf",e.data.titleMessage),r.Db(4),r.Lc(e.data.message.code),r.Db(5),r.Lc(e.errorMessage),r.Db(5),r.Lc(e.data.message.URL),r.Db(3),r.oc("mat-dialog-close",!1))},directives:[o.c,o.a,a.c,o.b,c.a,a.b,l.o,h.a,u.a,i.d],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),t})()},VDRc:function(t,e,n){"use strict";n.d(e,"d",function(){return H}),n.d(e,"a",function(){return C}),n.d(e,"c",function(){return b}),n.d(e,"b",function(){return P});var i=n("8Y7J"),r=n("/q54"),s=n("9gLZ"),o=(n("XNiG"),n("1G5W"));const a="inline",c=["row","column","row-reverse","column-reverse"];function l(t){t=t?t.toLowerCase():"";let[e,n,i]=t.split(" ");return c.find(t=>t===e)||(e=c[0]),n===a&&(n=i!==a?i:"",i=a),[e,u(n),!!i]}function h(t){let[e]=l(t);return e.indexOf("row")>-1}function u(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let d=(()=>{class t extends r.h{buildStyles(t){return function(t){let[e,n,i]=l(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,i)}(t)}}return t.\u0275fac=function(e){return f(e||t)},t.\u0275prov=Object(i.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const f=i.Xb(d),p=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let m=(()=>{class t extends r.b{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="layout",this.styleCache=_,this.init()}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(r.i),i.Pb(d),i.Pb(r.f))},t.\u0275dir=i.Kb({type:t,features:[i.Ab]}),t})(),b=(()=>{class t extends m{constructor(){super(...arguments),this.inputs=p}}return t.\u0275fac=function(e){return g(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[i.Ab]}),t})();const g=i.Xb(b),_=new Map;function y(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}new Map,new Map,new Map,new Map;let v=(()=>{class t extends r.h{constructor(t){super(),this.layoutConfig=t}buildStyles(t,e){let[n,i,...r]=t.split(" "),s=r.join(" ");const o=e.direction.indexOf("column")>-1?"column":"row",a=h(o)?"max-width":"max-height",c=h(o)?"min-width":"min-height",l=String(s).indexOf("calc")>-1,u=l||"auto"===s,d=String(s).indexOf("%")>-1&&!l,f=String(s).indexOf("px")>-1||String(s).indexOf("rem")>-1||String(s).indexOf("em")>-1||String(s).indexOf("vw")>-1||String(s).indexOf("vh")>-1;let p=l||f;n="0"==n?0:n,i="0"==i?0:i;const m=!n&&!i;let b={};const g={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(s||""){case"":const t=!1!==this.layoutConfig.useColumnBasisZero;s="row"===o?"0%":t?"0.000000001px":"auto";break;case"initial":case"nogrow":n=0,s="auto";break;case"grow":s="100%";break;case"noshrink":i=0,s="auto";break;case"auto":break;case"none":n=0,i=0,s="auto";break;default:p||d||isNaN(s)||(s+="%"),"0%"===s&&(p=!0),"0px"===s&&(s="0%"),b=y(g,l?{"flex-grow":n,"flex-shrink":i,"flex-basis":p?s:"100%"}:{flex:`${n} ${i} ${p?s:"100%"}`})}return b.flex||b["flex-grow"]||(b=y(g,l?{"flex-grow":n,"flex-shrink":i,"flex-basis":s}:{flex:`${n} ${i} ${s}`})),"0%"!==s&&"0px"!==s&&"0.000000001px"!==s&&"auto"!==s&&(b[c]=m||p&&n?s:null,b[a]=m||!u&&i?s:null),b[c]||b[a]?e.hasWrap&&(b[l?"flex-basis":"flex"]=b[a]?l?b[a]:`${n} ${i} ${b[a]}`:l?b[c]:`${n} ${i} ${b[c]}`):b=y(g,l?{"flex-grow":n,"flex-shrink":i,"flex-basis":s}:{flex:`${n} ${i} ${s}`}),y(b,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(r.e))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(r.e))},token:t,providedIn:"root"}),t})();const w=["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 x=(()=>{class t extends r.b{constructor(t,e,n,i,r){super(t,i,e,r),this.layoutConfig=n,this.marshal=r,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(t){this.flexShrink=t||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(t){this.flexGrow=t||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Object(o.a)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Object(o.a)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(t){const e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()}updateWithValue(t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const e=this.direction,n=e.startsWith("row"),i=this.wrap;n&&i?this.styleCache=O:n&&!i?this.styleCache=E:!n&&i?this.styleCache=A:n||i||(this.styleCache=k);const s=String(t).replace(";",""),o=Object(r.j)(s,this.flexGrow,this.flexShrink);this.addStyles(o.join(" "),{direction:e,hasWrap:i})}triggerReflow(){const t=this.activatedValue;if(void 0!==t){const e=Object(r.j)(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(r.i),i.Pb(r.e),i.Pb(v),i.Pb(r.f))},t.\u0275dir=i.Kb({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[i.Ab]}),t})(),C=(()=>{class t extends x{constructor(){super(...arguments),this.inputs=w}}return t.\u0275fac=function(e){return S(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[i.Ab]}),t})();const S=i.Xb(C),E=new Map,k=new Map,O=new Map,A=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map;let D=(()=>{class t extends r.h{buildStyles(t,e){const n={},[i,r]=t.split(" ");switch(i){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(r){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return y(n,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===r?h(e.layout)?null:"100%":null,"max-height":"stretch"===r&&h(e.layout)?"100%":null})}}return t.\u0275fac=function(e){return I(e||t)},t.\u0275prov=Object(i.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const I=i.Xb(D),T=["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 L=(()=>{class t extends r.b{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(Object(o.a)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(t){const e=this.layout||"row",n=this.inline;"row"===e&&n?this.styleCache=V:"row"!==e||n?"row-reverse"===e&&n?this.styleCache=B:"row-reverse"!==e||n?"column"===e&&n?this.styleCache=U:"column"!==e||n?"column-reverse"===e&&n?this.styleCache=z:"column-reverse"!==e||n||(this.styleCache=N):this.styleCache=j:this.styleCache=F:this.styleCache=M,this.addStyles(t,{layout:e,inline:n})}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],this.inline=t.value.includes("inline"),c.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(r.i),i.Pb(D),i.Pb(r.f))},t.\u0275dir=i.Kb({type:t,features:[i.Ab]}),t})(),P=(()=>{class t extends L{constructor(){super(...arguments),this.inputs=T}}return t.\u0275fac=function(e){return R(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[i.Ab]}),t})();const R=i.Xb(P),M=new Map,j=new Map,F=new Map,N=new Map,V=new Map,U=new Map,B=new Map,z=new Map;let H=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[r.c,s.a]]}),t})()},VRyK:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("HDdC"),r=n("z+Ro"),s=n("bHdf"),o=n("yCtX");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(r.a)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.a?t[0]:Object(s.a)(e)(Object(o.a)(t,n))}},Vh22:function(t,e,n){var i=n("AQYT"),r=new(n("ehAg")),s=new i(24),o=new i(11),a=new i(10),c=new i(3),l=new i(7),h=n("WKKt"),u=n("Edxu");function d(t,e){return e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this._pub=new i(t),this}function f(t,e){return e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this._priv=new i(t),this}t.exports=m;var p={};function m(t,e,n){this.setGenerator(e),this.__prime=new i(t),this._prime=i.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=d,this.setPrivateKey=f):this._primeCode=8}function b(t,e){var n=new Buffer(t.toArray());return e?n.toString(e):n}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var n=e.toString("hex"),i=[n,t.toString(16)].join("_");if(i in p)return p[i];var u,d=0;if(t.isEven()||!h.simpleSieve||!h.fermatTest(t)||!r.test(t))return d+=1,p[i]=d+="02"===n||"05"===n?8:4,d;switch(r.test(t.shrn(1))||(d+=2),n){case"02":t.mod(s).cmp(o)&&(d+=8);break;case"05":(u=t.mod(a)).cmp(c)&&u.cmp(l)&&(d+=8);break;default:d+=4}return p[i]=d,d}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new i(u(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(t){var e=(t=(t=new i(t)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new Buffer(e.toArray()),r=this.getPrime();if(n.length{class t{constructor(t,e,n,i,f,g,_,y){this.actions$=t,this.httpClient=e,this.store=n,this.sessionService=i,this.logger=f,this.commonService=g,this.router=_,this.location=y,this.CHILD_API_URL=d.a+"/cl",this.unSubs=[new s.a,new s.a],this.infoFetchCL=this.actions$.pipe(Object(r.d)(b.u),Object(a.a)(this.store.select("root")),Object(c.a)(([t,e])=>(this.store.dispatch(new b.g("FetchInfo")),this.httpClient.get(this.CHILD_API_URL+d.b.GETINFO_API).pipe(Object(l.a)(this.actions$.pipe(Object(r.d)(m.O))),Object(h.a)(e=>(this.logger.info(e),this.initializeRemainingData(e,t.payload.loadPage),{type:b.mb,payload:e||{}})),Object(u.a)(t=>(this.router.navigate(["/error"],{state:{errorCode:t.error&&t.error.error&&t.error.error.message&&t.error.error.message.code?t.error.error.message.code:t.error&&t.error.error&&t.error.error.code?t.error.error.code:t.status?t.status:"",errorMessage:(t.error&&t.error.message?t.error.message+" ":"")+(t.error&&t.error.error&&t.error.error.error&&"string"==typeof t.error.error.error?t.error.error.error:t.error&&t.error.error&&t.error.error.errno&&"string"==typeof t.error.error.errno?t.error.error.errno:t.error&&t.error.error&&"string"==typeof t.error.error?t.error.error:t.error&&"string"==typeof t.error?t.error:"Unknown Error")}}),this.handleErrorWithoutAlert("FetchInfo","Fetching Node Info Failed.",t),Object(o.a)({type:m.bb}))))))),this.fetchFeesCL=this.actions$.pipe(Object(r.d)(b.s),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchFees")),this.httpClient.get(this.CHILD_API_URL+d.b.FEES_API))),Object(h.a)(t=>(this.logger.info(t),{type:b.jb,payload:t||{}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchFees","Fetching Fees Failed.",t),Object(o.a)({type:m.bb})))),this.fetchFeeRatesCL=this.actions$.pipe(Object(r.d)(b.t),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchFeeRates")),this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/feeRates/"+t.payload))),Object(h.a)(t=>(this.logger.info(t),{type:b.kb,payload:t||{}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchFeeRates","Fetching Fee Rates Failed.",t),Object(o.a)({type:m.bb})))),this.fetchBalanceCL=this.actions$.pipe(Object(r.d)(b.q),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchBalance")),this.httpClient.get(this.CHILD_API_URL+d.b.BALANCE_API))),Object(h.a)(t=>(this.logger.info(t),{type:b.db,payload:t||{}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchBalance","Fetching Balances Failed.",t),Object(o.a)({type:m.bb})))),this.fetchLocalRemoteBalanceCL=this.actions$.pipe(Object(r.d)(b.w),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchLocalRemoteBalance")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_API+"/localremotebalance"))),Object(h.a)(t=>(this.logger.info(t),{type:b.ob,payload:t||{}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance","Fetching Balances Failed.",t),Object(o.a)({type:m.bb})))),this.getNewAddressCL=this.actions$.pipe(Object(r.d)(b.L),Object(c.a)(t=>this.httpClient.get(this.CHILD_API_URL+d.b.ON_CHAIN_API+"?type="+t.payload.addressCode).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),{type:b.qb,payload:t&&t.address?t.address:{}})),Object(u.a)(e=>(this.handleErrorWithAlert("ERROR","Generate New Address Failed",this.CHILD_API_URL+d.b.ON_CHAIN_API+"?type="+t.payload.addressId,e),Object(o.a)({type:m.bb})))))),this.setNewAddressCL=this.actions$.pipe(Object(r.d)(b.qb),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.peersFetchCL=this.actions$.pipe(Object(r.d)(b.y),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchPeers")),this.httpClient.get(this.CHILD_API_URL+d.b.PEERS_API).pipe(Object(h.a)(t=>(this.logger.info(t),{type:b.sb,payload:t||[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchPeers","Fetching Peers Failed.",t),Object(o.a)({type:m.bb}))))))),this.saveNewPeerCL=this.actions$.pipe(Object(r.d)(b.ab),Object(a.a)(this.store.select("cl")),Object(c.a)(([t,e])=>(this.store.dispatch(new b.g("SaveNewPeer")),this.httpClient.post(this.CHILD_API_URL+d.b.PEERS_API,{id:t.payload.id}).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new m.i),this.store.dispatch(new b.Fb(e&&e.length>0?e:[])),{type:b.R,payload:{peer:e.find(e=>0===t.payload.id.indexOf(e.id))}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SaveNewPeer","Peer Connection Failed.",t),Object(o.a)({type:m.bb}))))))),this.detachPeerCL=this.actions$.pipe(Object(r.d)(b.k),Object(c.a)(t=>this.httpClient.delete(this.CHILD_API_URL+d.b.PEERS_API+"/"+t.payload.id+"?force="+t.payload.force).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new m.i),this.store.dispatch(new m.E("Peer Disconnected Successfully!")),{type:b.V,payload:{id:t.payload.id}})),Object(u.a)(e=>(this.handleErrorWithAlert("ERROR","Unable to Detach Peer. Try again later.",this.CHILD_API_URL+d.b.PEERS_API+"/"+t.payload.id,e),Object(o.a)({type:m.bb})))))),this.channelsFetchCL=this.actions$.pipe(Object(r.d)(b.r),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchChannels")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_API+"/listChannels").pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.N),{type:b.eb,payload:t&&t.length>0?t:[]}),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchChannels","Fetching Channels Failed.",t),Object(o.a)({type:m.bb})))))))),this.openNewChannelCL=this.actions$.pipe(Object(r.d)(b.Y),Object(c.a)(t=>{this.store.dispatch(new b.g("SaveNewChannel"));let e={id:t.payload.peerId,satoshis:t.payload.satoshis,feeRate:t.payload.feeRate,announce:t.payload.announce,minconf:t.payload.minconf?t.payload.minconf:null};return t.payload.utxos&&(e.utxos=t.payload.utxos),this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_API,e).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),this.store.dispatch(new m.E("Channel Added Successfully!")),this.store.dispatch(new b.A),this.store.dispatch(new b.J),{type:b.r})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SaveNewChannel","Opening Channel Failed.",t),Object(o.a)({type:m.bb}))))})),this.updateChannelCL=this.actions$.pipe(Object(r.d)(b.Ib),Object(c.a)(t=>this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_API+"/setChannelFee",{id:t.payload.channelId,base:t.payload.baseFeeMsat,ppm:t.payload.feeRate}).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new m.i),this.store.dispatch(new m.E("all"===t.payload.channelId?"All Channels Updated Successfully.":"Channel Updated Successfully!")),{type:b.r})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Update Channel Failed",this.CHILD_API_URL+d.b.CHANNELS_API,t),Object(o.a)({type:m.bb})))))),this.closeChannelCL=this.actions$.pipe(Object(r.d)(b.e),Object(c.a)(t=>this.httpClient.delete(this.CHILD_API_URL+d.b.CHANNELS_API+"/"+t.payload.channelId+(t.payload.force?"?force="+t.payload.force:"")).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new m.i),this.store.dispatch(new b.B),this.store.dispatch(new m.E("Channel Closed Successfully!")),{type:b.U,payload:{channelId:t.payload.channelId}})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Unable to Close Channel. Try again later.",this.CHILD_API_URL+d.b.CHANNELS_API,t),Object(o.a)({type:m.bb})))))),this.paymentsFetchCL=this.actions$.pipe(Object(r.d)(b.x),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchPayments")),this.httpClient.get(this.CHILD_API_URL+d.b.PAYMENTS_API))),Object(h.a)(t=>(this.logger.info(t),{type:b.rb,payload:t||[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchPayments","Fetching Payments Failed.",t),Object(o.a)({type:m.bb})))),this.decodePaymentCL=this.actions$.pipe(Object(r.d)(b.i),Object(c.a)(t=>(this.store.dispatch(new b.g("DecodePayment")),this.httpClient.get(this.CHILD_API_URL+d.b.PAYMENTS_API+"/"+t.payload.routeParam).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),{type:b.ib,payload:t||{}})),Object(u.a)(e=>(t.payload.fromDialog?this.handleErrorWithoutAlert("DecodePayment","Decode Payment Failed.",e):this.handleErrorWithAlert("ERROR","Decode Payment Failed",this.CHILD_API_URL+d.b.PAYMENTS_API+"/"+t.payload,e),Object(o.a)({type:m.bb}))))))),this.setDecodedPaymentCL=this.actions$.pipe(Object(r.d)(b.ib),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.sendPaymentCL=this.actions$.pipe(Object(r.d)(b.bb),Object(a.a)(this.store.select("root")),Object(c.a)(([t,e])=>(this.store.dispatch(new b.g("SendPayment")),this.httpClient.post(t.payload.pubkey&&""!==t.payload.pubkey?this.CHILD_API_URL+d.b.PAYMENTS_API+"/keysend":this.CHILD_API_URL+d.b.PAYMENTS_API+"/invoice",t.payload).pipe(Object(h.a)(e=>{if(this.logger.info(e),this.store.dispatch(new m.i),e.error){this.logger.error("Error: "+e.payment_error);const n={status:e.payment_error.status,error:e.payment_error.error&&e.payment_error.error.error&&"object"==typeof e.payment_error.error.error?e.payment_error.error.error:{error:e.payment_error.error&&e.payment_error.error.error?e.payment_error.error.error:"Unknown Error"}};return t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):this.handleErrorWithAlert("ERROR","Send Payment Failed",this.CHILD_API_URL+d.b.PAYMENTS_API,n),Object(o.a)({type:m.bb})}return this.store.dispatch(new m.E("Payment Sent Successfully!")),this.store.dispatch(new b.B),this.store.dispatch(new b.A),this.store.dispatch(new b.H),this.store.dispatch(new b.Cb({})),{type:b.cb,payload:e}}),Object(u.a)(e=>{this.logger.error("Error: "+JSON.stringify(e));const n={status:e.status,error:e.error&&e.error.error&&"object"==typeof e.error.error?e.error.error:{error:e.error&&e.error.error?e.error.error:"Unknown Error"}};return t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):this.handleErrorWithAlert("ERROR","Send Payment Failed",this.CHILD_API_URL+d.b.PAYMENTS_API,n),Object(o.a)({type:m.bb})}))))),this.queryRoutesFetchCL=this.actions$.pipe(Object(r.d)(b.M),Object(c.a)(t=>this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/getRoute/"+t.payload.destPubkey+"/"+t.payload.amount).pipe(Object(h.a)(t=>(this.logger.info(t),{type:b.tb,payload:t})),Object(u.a)(e=>(this.store.dispatch(new b.Gb({routes:[]})),this.handleErrorWithAlert("ERROR","Get Query Routes Failed",this.CHILD_API_URL+d.b.NETWORK_API+"/getRoute/"+t.payload.destPubkey+"/"+t.payload.amount,e),Object(o.a)({type:m.bb})))))),this.setQueryRoutesCL=this.actions$.pipe(Object(r.d)(b.tb),Object(h.a)(t=>t.payload)),this.peerLookupCL=this.actions$.pipe(Object(r.d)(b.S),Object(c.a)(t=>(this.store.dispatch(new b.g("Lookup")),this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/listNode/"+t.payload).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),{type:b.pb,payload:t})),Object(u.a)(e=>(this.store.dispatch(new b.p({action:"Lookup",code:e.status,message:e.error.message})),this.handleErrorWithAlert("ERROR","Peer Lookup Failed",this.CHILD_API_URL+d.b.NETWORK_API+"/listNode/"+t.payload,e),Object(o.a)({type:m.bb}))))))),this.channelLookupCL=this.actions$.pipe(Object(r.d)(b.c),Object(c.a)(t=>(this.store.dispatch(new b.g("Lookup")),this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/listChannel/"+t.payload.shortChannelID).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),{type:b.pb,payload:t})),Object(u.a)(e=>(t.payload.showError?(this.store.dispatch(new b.p({action:"Lookup",code:e.status,message:e.error.message})),this.handleErrorWithAlert("ERROR","Channel Lookup Failed",this.CHILD_API_URL+d.b.NETWORK_API+"/listChannel/"+t.payload.shortChannelID,e)):this.store.dispatch(new m.i),this.store.dispatch(new b.Eb([])),Object(o.a)({type:m.bb}))))))),this.invoiceLookupCL=this.actions$.pipe(Object(r.d)(b.Q),Object(c.a)(t=>(this.store.dispatch(new b.g("Lookup")),this.httpClient.get(this.CHILD_API_URL+d.b.INVOICES_API+"/listInvoice?label="+t.payload).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),{type:b.pb,payload:t})),Object(u.a)(e=>(this.store.dispatch(new b.p({action:"Lookup",code:e.status,message:e.error.message})),this.handleErrorWithAlert("ERROR","Invoice Lookup Failed",this.CHILD_API_URL+d.b.NETWORK_API+"/listInvoice?label="+t.payload,e),Object(o.a)({type:m.bb}))))))),this.setLookupCL=this.actions$.pipe(Object(r.d)(b.pb),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.fetchForwardingHistoryCL=this.actions$.pipe(Object(r.d)(b.K),Object(c.a)(t=>(this.store.dispatch(new b.g("GetForwardingHistory")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_API+"/listForwards").pipe(Object(h.a)(t=>(this.logger.info(t),{type:b.lb,payload:t})),Object(u.a)(t=>(this.store.dispatch(new b.p({action:"GetForwardingHistory",code:t.status,message:t.error.error})),this.handleErrorWithAlert("ERROR","Get Forwarding History Failed",this.CHILD_API_URL+d.b.CHANNELS_API+"/listForwards",t),Object(o.a)({type:m.bb}))))))),this.deleteExpiredInvoiceCL=this.actions$.pipe(Object(r.d)(b.j),Object(c.a)(t=>this.httpClient.delete(this.CHILD_API_URL+d.b.INVOICES_API+(t.payload?"?maxexpiry="+t.payload:"")).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),this.store.dispatch(new m.E("Invoices Deleted Successfully!")),{type:b.v,payload:{num_max_invoices:100,reversed:!0}})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Delete Invoice Failed",this.CHILD_API_URL+d.b.INVOICES_API,t),Object(o.a)({type:m.bb})))))),this.saveNewInvoiceCL=this.actions$.pipe(Object(r.d)(b.Z),Object(c.a)(t=>(this.store.dispatch(new b.g("SaveNewInvoice")),this.httpClient.post(this.CHILD_API_URL+d.b.INVOICES_API,{label:t.payload.label,amount:t.payload.amount,description:t.payload.description,expiry:t.payload.expiry,private:t.payload.private}).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new m.i),e.msatoshi=t.payload.amount,e.label=t.payload.label,e.expires_at=Math.round((new Date).getTime()/1e3+t.payload.expiry),e.expires_at_str=this.commonService.convertTimestampToDate(+e.expires_at),e.description=t.payload.description,e.status="unpaid",this.store.dispatch(new m.C({data:{invoice:e,newlyAdded:!1,component:p.a}})),{type:b.v,payload:{num_max_invoices:100,reversed:!0}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SaveNewInvoice","Add Invoice Failed.",t),Object(o.a)({type:m.bb}))))))),this.invoicesFetchCL=this.actions$.pipe(Object(r.d)(b.v),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchInvoices")),this.httpClient.get(this.CHILD_API_URL+d.b.INVOICES_API+"?num_max_invoices="+(t.payload.num_max_invoices?t.payload.num_max_invoices:100)+"&index_offset="+(t.payload.index_offset?t.payload.index_offset:0)+"&reversed="+(!!t.payload.reversed&&t.payload.reversed)).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.Hb(t.invoices?t.invoices.length:0)),{type:b.nb,payload:t})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchInvoices","Fetching Invoices Failed.",t),Object(o.a)({type:m.bb}))))))),this.SetChannelTransactionCL=this.actions$.pipe(Object(r.d)(b.fb),Object(c.a)(t=>(this.store.dispatch(new b.g("SetChannelTransaction")),this.httpClient.post(this.CHILD_API_URL+d.b.ON_CHAIN_API,t.payload).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),this.store.dispatch(new b.A),this.store.dispatch(new b.J),{type:b.gb,payload:t})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SetChannelTransaction","Sending Fund Failed.",t),Object(o.a)({type:m.bb}))))))),this.transactionsFetch=this.actions$.pipe(Object(r.d)(b.z),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchTransactions")),this.httpClient.get(this.CHILD_API_URL+d.b.ON_CHAIN_API+"/transactions"))),Object(h.a)(t=>(this.logger.info(t),{type:b.vb,payload:t&&t.outputs&&t.outputs.length>0?t.outputs:[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchTransactions","Fetching Transactions Failed.",t),Object(o.a)({type:m.bb})))),this.store.select("cl").pipe(Object(l.a)(this.unSubs[0])).subscribe(t=>{"INCOMPLETE"===t.initialAPIResponseStatus[0]&&t.initialAPIResponseStatus.length>9&&(t.initialAPIResponseStatus[0]="COMPLETE",this.store.dispatch(new m.i))})}initializeRemainingData(t,e){this.sessionService.setItem("clUnlocked","true");const n={identity_pubkey:t.id,alias:t.alias,testnet:"testnet"===t.network||"litecoin-testnet"===t.network,chains:t.chains,uris:t.uris,version:t.version,api_version:t.api_version,currency_unit:"BTC",smaller_currency_unit:"Sats",numberOfPendingChannels:t.num_pending_channels};this.store.dispatch(new m.F("Initializing Node Data...")),this.store.dispatch(new m.T(n)),this.store.dispatch(new b.D),this.store.dispatch(new b.B),this.store.dispatch(new b.A),this.store.dispatch(new b.G),this.store.dispatch(new b.C("perkw")),this.store.dispatch(new b.C("perkb")),this.store.dispatch(new b.I),this.store.dispatch(new b.J),this.store.dispatch(new b.H);let i=this.location.path();i.includes("/lnd/")?i=i.replace("/lnd/","/cl/"):i.includes("/ecl/")&&(i=i.replace("/ecl/","/cl/")),(i.includes("/login")||i.includes("/error")||""===i||"HOME"===e||i.includes("?access-key="))&&(i="/cl/home"),this.router.navigate([i])}handleErrorWithoutAlert(t,e,n){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(n)),401===n.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new m.g),this.store.dispatch(new m.x),this.store.dispatch(new m.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new m.i),this.store.dispatch(new b.p({action:t,code:n.status.toString(),message: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.error&&n.error.error.error&&n.error.error.error.message&&"string"==typeof n.error.error.error.message?n.error.error.error.message:n.error.error&&n.error.error.message&&"string"==typeof n.error.error.message?n.error.error.message:n.error.message&&"string"==typeof n.error.message?n.error.message:"string"==typeof n.error?n.error:e})))}handleErrorWithAlert(t,e,n,i){this.logger.error(i),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new m.g),this.store.dispatch(new m.x),this.store.dispatch(new m.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new m.i),this.store.dispatch(new m.C({data:{type:t,alertTitle:e,message:{code:i.status,message:i.error.error&&i.error.error.error&&i.error.error.error.error&&i.error.error.error.error.message&&"string"==typeof i.error.error.error.error.message?i.error.error.error.error.message:i.error.error&&i.error.error.error&&i.error.error.error.message&&"string"==typeof i.error.error.error.message?i.error.error.error.message:i.error.error&&i.error.error.message&&"string"==typeof i.error.error.message?i.error.error.message:i.error.message&&"string"==typeof i.error.message?i.error.message:"string"==typeof i.error?i.error:"Unknown Error",URL:n},component:f.a}})))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(g.Zb(r.a),g.Zb(_.b),g.Zb(y.h),g.Zb(v.a),g.Zb(w.b),g.Zb(x.a),g.Zb(C.g),g.Zb(S.j))},t.\u0275prov=g.Lb({token:t,factory:t.\u0275fac}),Object(i.a)([Object(r.b)()],t.prototype,"infoFetchCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchFeesCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchFeeRatesCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchBalanceCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchLocalRemoteBalanceCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"getNewAddressCL",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setNewAddressCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"peersFetchCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"saveNewPeerCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"detachPeerCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"channelsFetchCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"openNewChannelCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"updateChannelCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"closeChannelCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"paymentsFetchCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"decodePaymentCL",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setDecodedPaymentCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"sendPaymentCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"queryRoutesFetchCL",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setQueryRoutesCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"peerLookupCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"channelLookupCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"invoiceLookupCL",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setLookupCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchForwardingHistoryCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"deleteExpiredInvoiceCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"saveNewInvoiceCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"invoicesFetchCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"SetChannelTransactionCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"transactionsFetch",void 0),t})()},WKKt:function(t,e,n){var i=n("Edxu");t.exports=_,_.simpleSieve=b,_.fermatTest=g;var r=n("AQYT"),s=new r(24),o=new(n("ehAg")),a=new r(1),c=new r(2),l=new r(5),h=(new r(16),new r(8),new r(10)),u=new r(3),d=(new r(7),new r(11)),f=new r(4),p=(new r(12),null);function m(){if(null!==p)return p;var t=[];t[0]=2;for(var e=1,n=3;n<1048576;n+=2){for(var i=Math.ceil(Math.sqrt(n)),r=0;rt;)n.ishrn(1);if(n.isEven()&&n.iadd(a),n.testn(1)||n.iadd(c),e.cmp(c)){if(!e.cmp(l))for(;n.mod(h).cmp(u);)n.iadd(f)}else for(;n.mod(s).cmp(d);)n.iadd(f);if(b(p=n.shrn(1))&&b(n)&&g(p)&&g(n)&&o.test(p)&&o.test(n))return n}}},WMd4:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("EY2u"),r=n("LRne"),s=n("z6cu");let o=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Object(r.a)(this.value);case"E":return Object(s.a)(this.error);case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},WRkp:function(t,e,n){"use strict";e.sha1=n("E+IA"),e.sha224=n("B/J0"),e.sha256=n("bu2F"),e.sha384=n("i5UE"),e.sha512=n("tSWc")},"WnY+":function(t,e,n){var i=n("9XZ3");t.exports=function(t){return(new i).update(t).digest()}},Wogr:function(t,e,n){"use strict";var i=n("49sm"),r=(s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(e){return!1}}())?2147483647:1073741823;function s(t,e,n){return s.TYPED_ARRAY_SUPPORT||this instanceof s?"number"==typeof t?c(this,t):function(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(n<0||e.byteLength=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function a(t,e){var n;return s.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(e)).__proto__=s.prototype:(null===(n=t)&&(n=new s(e)),n.length=e),n}function c(t,e){var n=a(t,e<0?0:0|o(e));if(!s.TYPED_ARRAY_SUPPORT)for(var i=0;i55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&s.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&s.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;s.push(n)}else if(n<2048){if((e-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function u(t){return s.isBuffer(t)?t.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:("string"!=typeof t&&(t=""+t),0===t.length?0:h(t).length)}s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),s.prototype.write=function(t,e,n){void 0===e||void 0===n&&"string"==typeof e?(n=this.length,e=0):isFinite(e)&&(e|=0,isFinite(n)?n|=0:n=void 0);var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(t,e,n,i){return function(t,e,n,i){for(var r=0;r=e.length||r>=t.length);++r)e[r+n]=t[r];return r}(h(e,t.length-n),t,n,i)}(this,t,e,n)},s.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--r)t[r+e]=this[r+n];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(r=e;r{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(b.Pb(m.f),b.Pb(m.a))},t.\u0275cmp=b.Jb({type:t,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],[1,"spinner-circle"],["color","primary"],["fxLayoutAlign","center",1,"mat-h4"]],template:function(t,e){1&t&&(b.Vb(0,"div",0),b.Vb(1,"div",1),b.Qb(2,"mat-spinner",2),b.Vb(3,"h4",3),b.Kc(4),b.Ub(),b.Ub(),b.Ub()),2&t&&(b.Db(4),b.Lc(e.data.titleMessage))},directives:[g.b,_.b],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:45%}"]}),t})();var v=n("cpEJ"),w=n("zHaW"),x=n("7o2P"),C=n("SVse"),S=n("ura0"),E=n("PDjf"),k=n("Dxy4"),O=n("bwdU"),A=n("aLe/"),D=n("Tj54"),I=n("O4ig"),T=n("dEYt"),L=n("BSbQ");const P=["scrollContainer"];function R(t,e){if(1&t&&b.Qb(0,"qrcode",15),2&t){const t=b.hc();b.oc("qrdata",t.showQRField)("margin",2)("width",240)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function M(t,e){1&t&&b.Rb(0)}const j=function(t){return{"h-40":t}};function F(t,e){if(1&t&&(b.Tb(0),b.Vb(1,"mat-card-content",16,17),b.Ic(3,M,1,0,"ng-container",18),b.Ub(),b.Sb()),2&t){const t=b.hc(),e=b.wc(20);b.Db(1),b.oc("ngClass",b.sc(2,j,t.data.scrollable)),b.Db(2),b.oc("ngTemplateOutlet",e)}}function N(t,e){1&t&&b.Rb(0)}function V(t,e){if(1&t&&(b.Tb(0),b.Vb(1,"mat-card-content",19),b.Ic(2,N,1,0,"ng-container",18),b.Ub(),b.Sb()),2&t){b.hc();const t=b.wc(20);b.Db(2),b.oc("ngTemplateOutlet",t)}}function U(t,e){1&t&&(b.Vb(0,"mat-icon",23),b.Kc(1,"arrow_downward"),b.Ub())}function B(t,e){1&t&&(b.Vb(0,"mat-icon",23),b.Kc(1,"arrow_upward"),b.Ub())}function z(t,e){if(1&t){const t=b.Wb();b.Vb(0,"div",20),b.Vb(1,"button",21),b.dc("click",function(){return b.zc(t),b.hc().onScroll()}),b.Ic(2,U,2,0,"mat-icon",22),b.Ic(3,B,2,0,"mat-icon",22),b.Ub(),b.Ub()}if(2&t){const t=b.hc();b.Db(2),b.oc("ngIf","DOWN"==t.scrollDirection),b.Db(1),b.oc("ngIf","UP"==t.scrollDirection)}}function H(t,e){1&t&&(b.Vb(0,"button",24),b.Kc(1,"OK"),b.Ub()),2&t&&b.oc("mat-dialog-close",!1)}function W(t,e){1&t&&(b.Vb(0,"button",25),b.Kc(1,"Close"),b.Ub()),2&t&&b.oc("mat-dialog-close",!1)}function K(t,e){if(1&t){const t=b.Wb();b.Vb(0,"button",26),b.dc("copied",function(e){return b.zc(t),b.hc().onCopyField(e)}),b.Kc(1),b.Ub()}if(2&t){const t=b.hc();b.oc("payload",t.showCopyField),b.Db(1),b.Mc("Copy ",t.showCopyName,"")}}function q(t,e){1&t&&(b.Vb(0,"button",25),b.Kc(1,"Close"),b.Ub()),2&t&&b.oc("mat-dialog-close",!1)}function Y(t,e){if(1&t){const t=b.Wb();b.Vb(0,"button",26),b.dc("copied",function(e){return b.zc(t),b.hc().onCopyField(e)}),b.Kc(1),b.Ub()}if(2&t){const t=b.hc();b.oc("payload",t.showQRField),b.Db(1),b.Mc("Copy ",t.showQRName,"")}}function Z(t,e){if(1&t&&b.Qb(0,"qrcode",15),2&t){const t=b.hc(2);b.oc("qrdata",t.showQRField)("margin",2)("width",240)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function X(t,e){if(1&t&&(b.Vb(0,"p",32),b.Kc(1),b.Ub()),2&t){const t=b.hc(2);b.Db(1),b.Lc(t.data.titleMessage)}}function G(t,e){1&t&&b.Qb(0,"span",46),2&t&&b.oc("innerHTML",e.$implicit,b.Ac)}function $(t,e){if(1&t&&(b.Tb(0),b.Ic(1,G,1,1,"span",45),b.Sb()),2&t){const t=b.hc(2).$implicit;b.Db(1),b.oc("ngForOf",t.value)}}function Q(t,e){if(1&t&&(b.Tb(0),b.Kc(1),b.ic(2,"number"),b.Sb()),2&t){const t=b.hc(2).$implicit;b.Db(1),b.Lc(b.kc(2,1,t.value,"1.0-3"))}}function J(t,e){if(1&t&&(b.Tb(0),b.Kc(1),b.Sb()),2&t){const t=b.hc(2).$implicit;b.Db(1),b.Lc(t.value?"True":"False")}}function tt(t,e){1&t&&(b.Vb(0,"mat-icon",51),b.Kc(1,"info"),b.Ub())}const et=function(t){return{"failed-status":t}};function nt(t,e){if(1&t&&(b.Vb(0,"p",49),b.Kc(1),b.Ic(2,tt,2,0,"mat-icon",50),b.Ub()),2&t){const t=b.hc(3).$implicit,e=b.hc(4);b.oc("ngClass",b.sc(3,et,t.value===e.swapStateEnum.FAILED)),b.Db(1),b.Mc(" ",t.value," "),b.Db(1),b.oc("ngIf",t.value===e.swapStateEnum.FAILED)}}function it(t,e){if(1&t&&b.Kc(0),2&t){const t=b.hc(3).$implicit;b.Lc(t.value)}}function rt(t,e){if(1&t&&(b.Tb(0),b.Ic(1,nt,3,5,"p",47),b.Ic(2,it,1,1,"ng-template",null,48,b.Jc),b.Sb()),2&t){const t=b.wc(3),e=b.hc(2).$implicit,n=b.hc(4);b.Db(1),b.oc("ngIf","SWAP"===n.data.openedBy&&"state"===e.key)("ngIfElse",t)}}function st(t,e){if(1&t&&(b.Vb(0,"span"),b.Vb(1,"span",42),b.Ic(2,$,2,1,"ng-container",43),b.Ic(3,Q,3,4,"ng-container",43),b.Ic(4,J,2,1,"ng-container",43),b.Ic(5,rt,4,2,"ng-container",44),b.Ub(),b.Ub()),2&t){const t=b.hc().$implicit,e=b.hc(4);b.Db(1),b.oc("ngSwitch",t.type),b.Db(1),b.oc("ngSwitchCase",e.dataTypeEnum.ARRAY),b.Db(1),b.oc("ngSwitchCase",e.dataTypeEnum.NUMBER),b.Db(1),b.oc("ngSwitchCase",e.dataTypeEnum.BOOLEAN)}}function ot(t,e){1&t&&(b.Vb(0,"span",52),b.Kc(1,"\xa0"),b.Ub())}function at(t,e){if(1&t&&(b.Vb(0,"div",37),b.Vb(1,"h4",38),b.Kc(2),b.Ub(),b.Ic(3,st,6,4,"span",39),b.Ic(4,ot,2,0,"ng-template",null,40,b.Jc),b.Qb(6,"mat-divider",41),b.Ub()),2&t){const t=e.$implicit,n=b.wc(5);b.pc("fxFlex.gt-md",t.width),b.Db(2),b.Lc(t.title),b.Db(1),b.oc("ngIf",t&&(!!t.value||0===t.value))("ngIfElse",n)}}function ct(t,e){if(1&t&&(b.Vb(0,"div"),b.Vb(1,"div",35),b.Ic(2,at,7,4,"div",36),b.Ub(),b.Ub()),2&t){const t=e.$implicit;b.Db(2),b.oc("ngForOf",t)}}function lt(t,e){if(1&t&&(b.Vb(0,"div",33),b.Ic(1,ct,3,1,"div",34),b.Ub()),2&t){const t=b.hc(2);b.Db(1),b.oc("ngForOf",t.messageObjs)}}const ht=function(t){return{"display-none":t}};function ut(t,e){if(1&t&&(b.Vb(0,"div",27),b.Vb(1,"div",28),b.Ic(2,Z,1,5,"qrcode",2),b.Ub(),b.Vb(3,"div",29),b.Ic(4,X,2,1,"p",30),b.Ic(5,lt,2,1,"div",31),b.Ub(),b.Ub()),2&t){const t=b.hc();b.Db(1),b.oc("ngClass",b.sc(4,ht,""===t.showQRField||t.screenSize!==t.screenSizeEnum.XS&&t.screenSize!==t.screenSizeEnum.SM)),b.Db(1),b.oc("ngIf",""!==t.showQRField),b.Db(2),b.oc("ngIf",t.data.titleMessage),b.Db(1),b.oc("ngIf",(null==t.messageObjs?null:t.messageObjs.length)>0)}}let dt=(()=>{class t{constructor(t,e,n,i,r,s){this.dialogRef=t,this.data=e,this.logger=n,this.snackBar=i,this.commonService=r,this.renderer=s,this.swapStateEnum=p.r,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=p.b,this.dataTypeEnum=p.h,this.screenSize="",this.screenSizeEnum=p.q,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(t){t&&(this.scrollContainer=t,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",t=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",t=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message,this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===p.b.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")})}onScroll(){this.scrollContainer.nativeElement.scrollTop="DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop-62.6}onCopyField(t){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+t)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return t.\u0275fac=function(e){return new(e||t)(b.Pb(m.f),b.Pb(m.a),b.Pb(v.b),b.Pb(w.b),b.Pb(x.a),b.Pb(b.G))},t.\u0275cmp=b.Jb({type:t,selectors:[["rtl-alert-message"]],viewQuery:function(t,e){if(1&t&&b.Pc(P,!0),2&t){let t;b.vc(t=b.ec())&&(e.container=t.first)}},decls:21,vars:14,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString",4,"ngIf"],[1,"padding-gap-large","pl-3",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",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-1"],["tabindex","1","autoFocus","","mat-flat-button","","color","primary","type","submit","default","",3,"mat-dialog-close",4,"ngIf"],["class","mr-1","fxLayoutAlign","center center","tabindex","1","mat-stroked-button","","color","primary","type","button","default","",3,"mat-dialog-close",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["contentBlock",""],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],[1,"mt-5px","mb-0","pr-2",3,"perfectScrollbar","ngClass"],["scrollContainer",""],[4,"ngTemplateOutlet"],[1,"mt-5px","mb-0","pr-2"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container"],["mat-mini-fab","","aria-label","Scroll","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center"],["tabindex","1","autoFocus","","mat-flat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","center center","tabindex","1","mat-stroked-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","mb-1",3,"ngClass"],["fxLayout","row","fxFlex","100"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["noStyleBlock",""],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(t,e){1&t&&(b.Vb(0,"div",0),b.Vb(1,"div",1),b.Ic(2,R,1,5,"qrcode",2),b.Ub(),b.Vb(3,"div",3),b.Vb(4,"mat-card-header",4),b.Vb(5,"div",5),b.Vb(6,"span",6),b.Kc(7),b.Ub(),b.Ub(),b.Vb(8,"button",7),b.dc("click",function(){return e.onClose()}),b.Kc(9,"X"),b.Ub(),b.Ub(),b.Ic(10,F,4,4,"ng-container",8),b.Ic(11,V,3,1,"ng-container",8),b.Ic(12,z,4,2,"div",9),b.Vb(13,"div",10),b.Ic(14,H,2,1,"button",11),b.Ic(15,W,2,1,"button",12),b.Ic(16,K,2,2,"button",13),b.Ic(17,q,2,1,"button",12),b.Ic(18,Y,2,2,"button",13),b.Ub(),b.Ub(),b.Ub(),b.Ic(19,ut,6,6,"ng-template",null,14,b.Jc)),2&t&&(b.Db(1),b.oc("ngClass",b.sc(12,ht,""===e.showQRField||e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),b.Db(1),b.oc("ngIf",""!==e.showQRField),b.Db(1),b.oc("fxFlex",""===e.showQRField||e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM?"100":"70"),b.Db(4),b.Lc(e.data.alertTitle||e.alertTypeEnum[e.data.type]),b.Db(3),b.oc("ngIf",e.data.scrollable),b.Db(1),b.oc("ngIf",!e.data.scrollable),b.Db(1),b.oc("ngIf",e.data.scrollable&&e.shouldScroll),b.Db(2),b.oc("ngIf",(!e.showQRField||""==e.showQRField)&&""===e.showCopyName),b.Db(1),b.oc("ngIf",""!==e.showCopyName),b.Db(1),b.oc("ngIf",""!==e.showCopyName),b.Db(1),b.oc("ngIf",""!==e.showQRField),b.Db(1),b.oc("ngIf",""!==e.showQRField))},directives:[_.c,_.b,_.a,C.m,S.a,C.o,E.c,k.a,O.a,E.b,A.b,C.t,D.a,I.a,m.d,T.a,C.n,L.a,C.q,C.r,C.s],pipes:[C.f],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),t})();var ft=n("/uX3"),pt=n("tqRt"),mt=n("s7LF"),bt=n("Q2Ze"),gt=n("e6WT"),_t=n("B0X+");function yt(t,e){if(1&t&&(b.Vb(0,"p",15),b.Kc(1),b.Ub()),2&t){const t=b.hc();b.Db(1),b.Lc(t.data.titleMessage)}}function vt(t,e){if(1&t&&(b.Vb(0,"span",28),b.Kc(1),b.Ub()),2&t){const t=e.$implicit;b.Db(1),b.Lc(t)}}function wt(t,e){if(1&t&&(b.Tb(0),b.Ic(1,vt,2,1,"span",27),b.Sb()),2&t){const t=b.hc(2).$implicit;b.Db(1),b.oc("ngForOf",t.value)}}function xt(t,e){if(1&t&&(b.Tb(0),b.Kc(1),b.ic(2,"number"),b.Sb()),2&t){const t=b.hc(2).$implicit;b.Db(1),b.Lc(b.kc(2,1,t.value,"1.0-3"))}}function Ct(t,e){if(1&t&&(b.Tb(0),b.Kc(1),b.Sb()),2&t){const t=b.hc(2).$implicit;b.Db(1),b.Lc(!0===t.value?"True":"False")}}function St(t,e){if(1&t&&(b.Tb(0),b.Kc(1),b.Sb()),2&t){const t=b.hc(2).$implicit;b.Db(1),b.Lc(t.value)}}function Et(t,e){if(1&t&&(b.Vb(0,"span"),b.Vb(1,"span",24),b.Ic(2,wt,2,1,"ng-container",25),b.Ic(3,xt,3,4,"ng-container",25),b.Ic(4,Ct,2,1,"ng-container",25),b.Ic(5,St,2,1,"ng-container",26),b.Ub(),b.Ub()),2&t){const t=b.hc().$implicit,e=b.hc(3);b.Db(1),b.oc("ngSwitch",t.type),b.Db(1),b.oc("ngSwitchCase",e.dataTypeEnum.ARRAY),b.Db(1),b.oc("ngSwitchCase",e.dataTypeEnum.NUMBER),b.Db(1),b.oc("ngSwitchCase",e.dataTypeEnum.BOOLEAN)}}function kt(t,e){1&t&&(b.Vb(0,"span",29),b.Kc(1,"\xa0"),b.Ub())}function Ot(t,e){if(1&t&&(b.Vb(0,"div",19),b.Vb(1,"h4",20),b.Kc(2),b.Ub(),b.Ic(3,Et,6,4,"span",21),b.Ic(4,kt,2,0,"ng-template",null,22,b.Jc),b.Qb(6,"mat-divider",23),b.Ub()),2&t){const t=e.$implicit,n=b.wc(5);b.pc("fxFlex.gt-md",t.width),b.Db(2),b.Lc(t.title),b.Db(1),b.oc("ngIf",t&&t.value)("ngIfElse",n)}}function At(t,e){if(1&t&&(b.Vb(0,"div"),b.Vb(1,"div",17),b.Ic(2,Ot,7,4,"div",18),b.Ub(),b.Ub()),2&t){const t=e.$implicit;b.Db(2),b.oc("ngForOf",t)}}function Dt(t,e){if(1&t&&(b.Vb(0,"div"),b.Ic(1,At,3,1,"div",16),b.Ub()),2&t){const t=b.hc();b.Db(1),b.oc("ngForOf",t.messageObjs)}}function It(t,e){if(1&t&&(b.Vb(0,"p",15),b.Kc(1),b.Ub()),2&t){const t=b.hc(2);b.Db(1),b.Lc(t.data.titleMessage)}}function Tt(t,e){if(1&t){const t=b.Wb();b.Vb(0,"input",36),b.dc("ngModelChange",function(e){return b.zc(t),b.hc().$implicit.inputValue=e}),b.ic(1,"lowercase"),b.Ub()}if(2&t){const t=b.hc(),e=t.index,n=t.$implicit;b.qc("name","input",e,""),b.oc("placeholder",n.placeholder)("min",n.min)("step",n.step)("type",b.jc(1,7,n.inputType))("ngModel",n.inputValue)("tabindex",e+1)}}function Lt(t,e){if(1&t){const t=b.Wb();b.Vb(0,"input",37),b.dc("ngModelChange",function(e){return b.zc(t),b.hc().$implicit.inputValue=e}),b.ic(1,"lowercase"),b.Ub()}if(2&t){const t=b.hc(),e=t.index,n=t.$implicit;b.qc("name","input",e,""),b.oc("placeholder",n.placeholder)("min",n.min)("step",n.step)("type",b.jc(1,7,n.inputType))("ngModel",n.inputValue)("tabindex",e+1)}}function Pt(t,e){if(1&t&&(b.Vb(0,"mat-error"),b.Kc(1),b.Ub()),2&t){const t=b.hc().$implicit;b.Db(1),b.Mc("",t.placeholder," is required.")}}function Rt(t,e){if(1&t&&(b.Vb(0,"mat-form-field",33),b.Ic(1,Tt,2,9,"input",34),b.Ic(2,Lt,2,9,"input",35),b.Ic(3,Pt,2,1,"mat-error",9),b.Ub()),2&t){const t=e.$implicit,n=e.index;b.oc("fxFlex",t.width),b.Db(1),b.oc("ngIf",0===n),b.Db(1),b.oc("ngIf",0!==n),b.Db(1),b.oc("ngIf",!t.inputValue)}}function Mt(t,e){if(1&t&&(b.Vb(0,"div",30),b.Ic(1,It,2,1,"p",8),b.Vb(2,"div",31),b.Ic(3,Rt,4,4,"mat-form-field",32),b.Ub(),b.Ub()),2&t){const t=b.hc();b.Db(1),b.oc("ngIf",t.data.titleMessage),b.Db(2),b.oc("ngForOf",t.getInputs)}}function jt(t,e){if(1&t){const t=b.Wb();b.Vb(0,"button",38),b.dc("click",function(){b.zc(t);const e=b.hc();return e.onClose(e.getInputs)}),b.Kc(1),b.Ub()}if(2&t){const t=b.hc();b.Db(1),b.Lc(t.yesBtnText)}}function Ft(t,e){if(1&t){const t=b.Wb();b.Vb(0,"button",39),b.dc("click",function(){return b.zc(t),b.hc().onClose(!0)}),b.Kc(1),b.Ub()}if(2&t){const t=b.hc();b.Db(1),b.Lc(t.yesBtnText)}}let Nt=(()=>{class t{constructor(t,e,n,i){this.dialogRef=t,this.data=e,this.logger=n,this.store=i,this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.alertTypeEnum=p.b,this.dataTypeEnum=p.h,this.getInputs=[{placeholder:"",inputType:"text",inputValue:""}]}ngOnInit(){this.flgShowInput=this.data.flgShowInput,this.getInputs=this.data.getInputs,this.noBtnText=this.data.noBtnText?this.data.noBtnText:"No",this.yesBtnText=this.data.yesBtnText?this.data.yesBtnText:"Yes",this.messageObjs=this.data.message,this.data.type===p.b.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onClose(t){if(t&&this.getInputs&&this.getInputs.some(t=>!t.inputValue))return!0;this.store.dispatch(new ft.h(t))}}return t.\u0275fac=function(e){return new(e||t)(b.Pb(m.f),b.Pb(m.a),b.Pb(v.b),b.Pb(pt.h))},t.\u0275cmp=b.Jb({type:t,selectors:[["rtl-confirmation-message"]],decls:18,vars:7,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["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,"mt-5px"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","reset","tabindex","2",1,"mr-1",3,"click"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block",4,"ngFor","ngForOf"],[1,"display-block"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngFor","ngForOf"],[3,"fxFlex"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","3","default","",3,"click"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","4","default","",3,"click"]],template:function(t,e){1&t&&(b.Vb(0,"div",0),b.Vb(1,"div",1),b.Vb(2,"mat-card-header",2),b.Vb(3,"div",3),b.Vb(4,"span",4),b.Kc(5),b.Ub(),b.Ub(),b.Vb(6,"button",5),b.dc("click",function(){return e.onClose(!1)}),b.Kc(7,"X"),b.Ub(),b.Ub(),b.Vb(8,"mat-card-content",6),b.Vb(9,"form",7),b.Ic(10,yt,2,1,"p",8),b.Ic(11,Dt,2,1,"div",9),b.Ic(12,Mt,4,2,"div",10),b.Vb(13,"div",11),b.Vb(14,"button",12),b.dc("click",function(){return e.onClose(!1)}),b.Kc(15),b.Ub(),b.Ic(16,jt,2,1,"button",13),b.Ic(17,Ft,2,1,"button",14),b.Ub(),b.Ub(),b.Ub(),b.Ub(),b.Ub()),2&t&&(b.Db(5),b.Lc(e.data.alertTitle||e.alertTypeEnum[e.data.type]),b.Db(5),b.oc("ngIf",e.data.titleMessage&&!e.flgShowInput),b.Db(1),b.oc("ngIf",(null==e.messageObjs?null:e.messageObjs.length)>0),b.Db(1),b.oc("ngIf",e.flgShowInput),b.Db(3),b.Lc(e.noBtnText),b.Db(1),b.oc("ngIf",e.flgShowInput),b.Db(1),b.oc("ngIf",!e.flgShowInput))},directives:[_.c,_.a,E.c,_.b,k.a,E.b,mt.u,mt.n,mt.o,C.o,C.n,L.a,C.q,C.r,C.s,bt.c,gt.b,_t.a,mt.c,I.a,mt.s,mt.m,mt.p,bt.b],pipes:[C.f,C.l],styles:[""]}),t})();var Vt=n("V8Fa"),Ut=n("wHSu"),Bt=n("Nv++"),zt=n("ZTz/"),Ht=n("UhP/");function Wt(t,e){if(1&t&&(b.Vb(0,"mat-option",23),b.Kc(1),b.Ub()),2&t){const t=e.$implicit;b.oc("value",t),b.Db(1),b.Mc(" ",t.infoName," ")}}function Kt(t,e){if(1&t){const t=b.Wb();b.Vb(0,"div",13),b.Vb(1,"mat-form-field",20),b.Vb(2,"mat-select",21),b.dc("valueChange",function(e){return b.zc(t),b.hc().selInfoType=e}),b.Ic(3,Wt,2,2,"mat-option",22),b.Ub(),b.Ub(),b.Ub()}if(2&t){const t=b.hc();b.Db(2),b.oc("value",t.selInfoType),b.Db(1),b.oc("ngForOf",t.infoTypes)}}const qt=function(t){return{"display-none":t}};let Yt=(()=>{class t{constructor(t,e,n,i,r){this.dialogRef=t,this.data=e,this.logger=n,this.snackBar=i,this.commonService=r,this.faReceipt=Ut.D,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=p.q}ngOnInit(){this.information=this.data.information,this.information.uris&&(1===this.information.uris.length?this.infoTypes.push({infoID:1,infoKey:"node URI",infoName:"Node URI"}):this.information.uris.length>1&&this.information.uris.forEach((t,e)=>{this.infoTypes.push({infoID:e+1,infoKey:"node URI "+(e+1),infoName:"Node URI "+(e+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(t){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(b.Pb(m.f),b.Pb(m.a),b.Pb(v.b),b.Pb(w.b),b.Pb(x.a))},t.\u0275cmp=b.Jb({type:t,selectors:[["rtl-show-pubkey"]],decls:26,vars:23,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","100","fxFlex.gt-sm","70",1,"padding-gap-large","pl-3"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-2"],["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,"pr-1"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(b.Vb(0,"div",0),b.Vb(1,"div",1),b.Qb(2,"qrcode",2),b.Ub(),b.Vb(3,"div",3),b.Vb(4,"mat-card-header",4),b.Vb(5,"div",5),b.Qb(6,"fa-icon",6),b.Vb(7,"span",7),b.Kc(8),b.Ub(),b.Ub(),b.Vb(9,"button",8),b.dc("click",function(){return e.onClose()}),b.Kc(10,"X"),b.Ub(),b.Ub(),b.Vb(11,"mat-card-content",9),b.Vb(12,"div",10),b.Vb(13,"div",11),b.Qb(14,"qrcode",2),b.Ub(),b.Ic(15,Kt,4,2,"div",12),b.Vb(16,"div",13),b.Vb(17,"div",14),b.Vb(18,"h4",15),b.Kc(19),b.Ub(),b.Vb(20,"span",16),b.Kc(21),b.Ub(),b.Ub(),b.Ub(),b.Qb(22,"mat-divider",17),b.Vb(23,"div",18),b.Vb(24,"button",19),b.dc("copied",function(t){return e.onCopyPubkey(t)}),b.Kc(25),b.Ub(),b.Ub(),b.Ub(),b.Ub(),b.Ub(),b.Ub()),2&t&&(b.Db(1),b.oc("ngClass",b.sc(19,qt,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),b.Db(1),b.pc("qrdata",0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),b.oc("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),b.Db(4),b.oc("icon",e.faReceipt),b.Db(2),b.Lc(e.selInfoType.infoName),b.Db(5),b.oc("ngClass",b.sc(21,qt,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),b.Db(1),b.pc("qrdata",0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),b.oc("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),b.Db(1),b.oc("ngIf",e.information.uris&&e.information.uris.length>0),b.Db(4),b.Lc(e.selInfoType.infoName),b.Db(2),b.Lc(0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),b.Db(3),b.pc("payload",0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),b.Db(1),b.Mc("Copy ",e.selInfoType.infoKey,""))},directives:[_.c,_.b,_.a,C.m,S.a,O.a,E.c,Bt.a,k.a,E.b,C.o,L.a,I.a,T.a,bt.c,zt.a,C.n,Ht.m],styles:[""]}),t})();var Zt=n("lF6s"),Xt=n("LvnZ"),Gt=n("MCVq"),$t=n("IheW"),Qt=n("mZtN"),Jt=n("iiaH"),te=n("iInd");let ee=(()=>{class t{constructor(t,e,n,i,m,b,g,_,v,w){this.actions$=t,this.httpClient=e,this.store=n,this.logger=i,this.sessionService=m,this.commonService=b,this.dataService=g,this.dialog=_,this.snackBar=v,this.router=w,this.CHILD_API_URL=f.a+"/lnd",this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new s.a,new s.a],this.closeAllDialogs=this.actions$.pipe(Object(r.d)(ft.c),Object(c.a)(t=>{this.dialog.closeAll()})),this.openSnackBar=this.actions$.pipe(Object(r.d)(ft.A),Object(c.a)(t=>{this.snackBar.open(t.payload)})),this.openSpinner=this.actions$.pipe(Object(r.d)(ft.B),Object(c.a)(t=>{this.dialogRef=this.dialog.open(y,{data:{titleMessage:t.payload}})})),this.closeSpinner=this.actions$.pipe(Object(r.d)(ft.e),Object(c.a)(t=>{this.dialogRef&&this.dialogRef.close();try{this.dialog.openDialogs.forEach(t=>{t.componentInstance&&t.componentInstance.data&&t.componentInstance.data.titleMessage&&t.componentInstance.data.titleMessage.includes("...")&&t.close()})}catch(e){this.logger.error(e)}})),this.openAlert=this.actions$.pipe(Object(r.d)(ft.y),Object(c.a)(t=>{t.payload.width=this.alertWidth,this.dialogRef=this.dialog.open(t.payload.data.component?t.payload.data.component:dt,t.payload)})),this.closeAlert=this.actions$.pipe(Object(r.d)(ft.b),Object(c.a)(t=>{this.dialogRef&&this.dialogRef.close()})),this.openConfirm=this.actions$.pipe(Object(r.d)(ft.z),Object(c.a)(t=>{t.payload.width=this.confirmWidth,this.dialogRef=this.dialog.open(Nt,t.payload)})),this.closeConfirm=this.actions$.pipe(Object(r.d)(ft.d),Object(l.a)(1),Object(c.a)(t=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(t.payload),t.payload))),this.showNodePubkey=this.actions$.pipe(Object(r.d)(ft.R),Object(h.a)(this.store.select("root")),Object(u.a)(([t,e])=>(this.sessionService.getItem("token")&&e.nodeData.identity_pubkey?this.store.dispatch(new ft.C({width:"70%",data:{information:e.nodeData,component:Yt}})):this.snackBar.open("Node Pubkey does not exist."),Object(o.a)({type:ft.bb})))),this.appConfigFetch=this.actions$.pipe(Object(r.d)(ft.n),Object(u.a)(t=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.q.XS||this.screenSize===p.q.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===p.q.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="55%",this.confirmWidth="60%"),this.store.dispatch(new ft.f("FetchRTLConfig")),this.httpClient.get(f.b.CONF_API+"/rtlconf"))),Object(c.a)(t=>{let e;return this.logger.info(t),t.nodes.forEach(n=>{n.settings.currencyUnits=[...p.e,n.settings.currencyUnit],+n.index===t.selectedNodeIndex&&(e=n)}),e?(this.store.dispatch(new ft.U({lnNode:e,isInitialSetup:!0})),{type:ft.N,payload:t}):{type:ft.bb}},Object(d.a)(t=>(this.handleErrorWithoutAlert("FetchRTLConfig",t),Object(o.a)({type:ft.bb}))))),this.settingSave=this.actions$.pipe(Object(r.d)(ft.L),Object(u.a)(t=>{if(this.store.dispatch(new ft.f("UpdateSettings")),t.payload.settings&&t.payload.defaultNodeIndex){let e=this.httpClient.post(f.b.CONF_API,{updatedSettings:t.payload.settings}),n=this.httpClient.post(f.b.CONF_API+"/updateDefaultNode",{defaultNodeIndex:t.payload.defaultNodeIndex});return Object(a.a)([e,n])}return t.payload.settings&&!t.payload.defaultNodeIndex?this.httpClient.post(f.b.CONF_API,{updatedSettings:t.payload.settings}):!t.payload.settings&&t.payload.defaultNodeIndex?this.httpClient.post(f.b.CONF_API+"/updateDefaultNode",{defaultNodeIndex:t.payload.defaultNodeIndex}):Object(o.a)({type:ft.bb})}),Object(c.a)(t=>(this.store.dispatch(new ft.i),this.logger.info(t),{type:ft.A,payload:t.length?t[0].message+".":t.message+"."}),Object(d.a)(t=>(this.store.dispatch(new ft.k({action:"UpdateSettings",code:t.length?t[0].status:t.status,message:t.length?t[0].error.error:t.error.error})),this.handleErrorWithAlert("ERROR","Update Settings Failed!",f.b.CONF_API,t.length?t[0]:t),Object(o.a)({type:ft.bb}))))),this.twoFASettingSave=this.actions$.pipe(Object(r.d)(ft.W),Object(u.a)(t=>(this.store.dispatch(new ft.f("Update2FASettings")),this.httpClient.post(f.b.CONF_API+"/update2FA",{secret2fa:t.payload.secret2fa}))),Object(c.a)(t=>(this.store.dispatch(new ft.i),this.logger.info(t),{type:ft.bb}),Object(d.a)(t=>(this.store.dispatch(new ft.k({action:"Update2FASettings",code:t.length?t[0].status:t.status,message:t.length?t[0].error.error:t.error.error})),this.handleErrorWithAlert("ERROR","Update 2FA Settings Failed!",f.b.CONF_API,t.length?t[0]:t),Object(o.a)({type:ft.bb}))))),this.configFetch=this.actions$.pipe(Object(r.d)(ft.l),Object(u.a)(t=>(this.store.dispatch(new ft.f("fetchConfig")),this.httpClient.get(f.b.CONF_API+"/config/"+t.payload).pipe(Object(c.a)(t=>(this.store.dispatch(new ft.i),{type:ft.P,payload:t})),Object(d.a)(e=>(this.store.dispatch(new ft.k({action:"fetchConfig",code:e.status,message:e.error.error})),this.handleErrorWithAlert("ERROR","Fetch Config Failed!",f.b.CONF_API+"/config/"+t.payload,e),Object(o.a)({type:ft.bb}))))))),this.showLnConfig=this.actions$.pipe(Object(r.d)(ft.P),Object(c.a)(t=>t.payload)),this.isAuthorized=this.actions$.pipe(Object(r.d)(ft.r),Object(h.a)(this.store.select("root")),Object(u.a)(([t,e])=>(this.store.dispatch(new ft.f("IsAuthorized")),this.httpClient.post(f.b.AUTHENTICATE_API,{authenticateWith:t.payload&&""!==t.payload.trim()?p.c.PASSWORD:p.c.TOKEN,authenticationValue:t.payload&&""!==t.payload.trim()?t.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe(Object(c.a)(t=>(this.logger.info(t),this.logger.info("Successfully Authorized!"),{type:ft.s,payload:t})),Object(d.a)(t=>(this.store.dispatch(new ft.k({action:"IsAuthorized",code:t.status,message:t.error.message})),this.handleErrorWithAlert("ERROR","Authorization Failed",f.b.AUTHENTICATE_API,t),Object(o.a)({type:ft.s,payload:"ERROR"}))))))),this.isAuthorizedRes=this.actions$.pipe(Object(r.d)(ft.s),Object(c.a)(t=>t.payload)),this.authLogin=this.actions$.pipe(Object(r.d)(ft.u),Object(h.a)(this.store.select("root")),Object(u.a)(([t,e])=>(this.store.dispatch(new Gt.i("FetchInfo")),this.store.dispatch(new Xt.g("FetchInfo")),this.store.dispatch(new Zt.e("FetchInfo")),this.store.dispatch(new ft.f("Login")),this.httpClient.post(f.b.AUTHENTICATE_API,{authenticateWith:t.payload.password?p.c.PASSWORD:p.c.TOKEN,authenticationValue:t.payload.password?t.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe(Object(c.a)(n=>{this.logger.info(n),this.setLoggedInDetails(t.payload.initialPass,n,e)}),Object(d.a)(t=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("ERROR",t),this.store.dispatch(new ft.k({action:"Login",code:t.status,message:t.error.error})),+e.appConfig.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:"Single Sign On Failed!"}}):this.router.navigate([e.appConfig.sso.logoutRedirectLink]),Object(o.a)({type:ft.bb}))))))),this.tokenVerify=this.actions$.pipe(Object(r.d)(ft.ab),Object(h.a)(this.store.select("root")),Object(u.a)(([t,e])=>(this.store.dispatch(new ft.f("VerifyToken")),this.httpClient.post(f.b.AUTHENTICATE_API+"/token",{authentication2FA:t.payload.token}).pipe(Object(c.a)(n=>{this.logger.info(n),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,t.payload.authResponse,e)}),Object(d.a)(t=>(this.handleErrorWithAlert("ERROR","Authorization Failed!",f.b.AUTHENTICATE_API+"/token",t),this.store.dispatch(new ft.k({action:"VerifyToken",code:t.status,message:t.error.error})),Object(o.a)({type:ft.bb}))))))),this.logOut=this.actions$.pipe(Object(r.d)(ft.v),Object(h.a)(this.store.select("root")),Object(u.a)(([t,e])=>(+e.appConfig.sso.rtlSSO?window.location.href=e.appConfig.sso.logoutRedirectLink:this.router.navigate(["/login"]),this.sessionService.removeItem("eclUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"),this.logger.warn("LOGGED OUT"),Object(o.a)()))),this.resetPassword=this.actions$.pipe(Object(r.d)(ft.G),Object(h.a)(this.store.select("root")),Object(u.a)(([t,e])=>(this.store.dispatch(new ft.f("ResetPassword")),this.httpClient.post(f.b.AUTHENTICATE_API+"/reset",{currPassword:t.payload.currPassword,newPassword:t.payload.newPassword}).pipe(Object(c.a)(t=>(this.logger.info(t),this.logger.info("Password Reset Successful!"),this.store.dispatch(new ft.E("Password Reset Successful!")),this.SetToken(t.token),{type:ft.H,payload:t.token})),Object(d.a)(t=>(this.store.dispatch(new ft.k({action:"ResetPassword",code:t.status,message:t.error.message})),this.handleErrorWithAlert("ERROR","Password Reset Failed!",f.b.AUTHENTICATE_API+"/reset",t),Object(o.a)({type:ft.bb}))))))),this.setSelectedNode=this.actions$.pipe(Object(r.d)(ft.O),Object(u.a)(t=>(this.store.dispatch(new ft.f("UpdateSelNode")),this.httpClient.post(f.b.CONF_API+"/updateSelNode",{selNodeIndex:t.payload.lnNode.index}).pipe(Object(c.a)(e=>(this.logger.info(e),this.store.dispatch(new ft.i),this.initializeNode(t.payload.lnNode,t.payload.isInitialSetup),{type:ft.bb})),Object(d.a)(t=>(this.store.dispatch(new ft.k({action:"UpdateSelNode",code:t.status,message:t.error.message})),this.handleErrorWithAlert("ERROR","Update Selected Node Failed!",f.b.CONF_API+"/updateSelNode",t),Object(o.a)({type:ft.bb}))))))),this.fetchFile=this.actions$.pipe(Object(r.d)(ft.m),Object(u.a)(t=>{this.store.dispatch(new ft.f("fetchFile"));let e="?channel="+t.payload.channelPoint+(t.payload.path?"&path="+t.payload.path:"");return this.httpClient.get(f.b.CONF_API+"/file"+e).pipe(Object(c.a)(t=>(this.store.dispatch(new ft.i),{type:ft.Q,payload:t})),Object(d.a)(t=>(this.store.dispatch(new ft.k({action:"fetchFile",code:t.status,message:t.error.error})),this.handleErrorWithAlert("ERROR",t.error.message,f.b.CONF_API+"/file"+e,{status:t.error.error.errno,error:t.error.error.code}),Object(o.a)({type:ft.bb}))))})),this.showFile=this.actions$.pipe(Object(r.d)(ft.Q),Object(c.a)(t=>t.payload))}setLoggedInDetails(t,e,n){this.logger.info("Successfully Authorized!"),this.SetToken(e.token),n.selNode.settings.currencyUnits=[...p.e,n.selNode.settings.currencyUnit],t?(this.store.dispatch(new ft.E("Reset your password.")),this.router.navigate(["/settings/auth"],{state:{initial:!0}})):this.store.dispatch(new ft.U({lnNode:n.selNode,isInitialSetup:!0}))}initializeNode(t,e){const n=e?"":"HOME";let i={};if(i=t.settings.fiatConversion&&t.settings.currencyUnit?{userPersona:t.settings.userPersona,channelBackupPath:t.settings.channelBackupPath,selCurrencyUnit:t.settings.currencyUnit,currencyUnits:[...p.e,t.settings.currencyUnit],fiatConversion:t.settings.fiatConversion,lnImplementation:t.lnImplementation,swapServerUrl:t.settings.swapServerUrl}:{userPersona:t.settings.userPersona,channelBackupPath:t.settings.channelBackupPath,selCurrencyUnit:t.settings.currencyUnit,currencyUnits:p.e,fiatConversion:t.settings.fiatConversion,lnImplementation:t.lnImplementation,swapServerUrl:t.settings.swapServerUrl},this.store.dispatch(new ft.K(t)),this.store.dispatch(new Gt.nb(i)),this.store.dispatch(new Xt.X(i)),this.store.dispatch(new Zt.M(i)),this.sessionService.getItem("token"))switch(t.lnImplementation=t.lnImplementation.toUpperCase(),this.dataService.setChildAPIUrl(t.lnImplementation),t.lnImplementation){case"CLT":this.CHILD_API_URL=f.a+"/cl",this.store.dispatch(new Xt.E({loadPage:n}));break;case"ECL":this.CHILD_API_URL=f.a+"/ecl",this.store.dispatch(new Zt.w({loadPage:n}));break;default:this.CHILD_API_URL=f.a+"/lnd",this.store.dispatch(new Gt.H({loadPage:n}))}}SetToken(t){t?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",t)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}handleErrorWithoutAlert(t,e){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(e)),401===e.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new ft.g),this.store.dispatch(new ft.x),this.store.dispatch(new ft.E("Authentication Failed. Redirecting to Login."))):this.store.dispatch(new ft.k({action:t,code:e.status.toString(),message:e.error.error}))}handleErrorWithAlert(t,e,n,i){this.logger.error(i),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new ft.g),this.store.dispatch(new ft.x),this.store.dispatch(new ft.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new ft.i),this.store.dispatch(new ft.C({data:{type:t,alertTitle:e,message:{code:i.status?i.status:"Unknown Error",message:i.error.error&&i.error.error.error&&i.error.error.error.error&&i.error.error.error.error.error&&"string"==typeof i.error.error.error.error.error?i.error.error.error.error.error:i.error.error&&i.error.error.error&&i.error.error.error.error&&"string"==typeof i.error.error.error.error?i.error.error.error.error:i.error.error&&i.error.error.error&&"string"==typeof i.error.error.error?i.error.error.error:i.error.error&&"string"==typeof i.error.error?i.error.error:"string"==typeof i.error?i.error:"Unknown Error",URL:n},component:Vt.a}})))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(b.Zb(r.a),b.Zb($t.b),b.Zb(pt.h),b.Zb(v.b),b.Zb(Qt.a),b.Zb(x.a),b.Zb(Jt.a),b.Zb(m.c),b.Zb(w.b),b.Zb(te.g))},t.\u0275prov=b.Lb({token:t,factory:t.\u0275fac}),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"closeAllDialogs",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"openSnackBar",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"openSpinner",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"closeSpinner",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"openAlert",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"closeAlert",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"openConfirm",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"closeConfirm",void 0),Object(i.a)([Object(r.b)()],t.prototype,"showNodePubkey",void 0),Object(i.a)([Object(r.b)()],t.prototype,"appConfigFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"settingSave",void 0),Object(i.a)([Object(r.b)()],t.prototype,"twoFASettingSave",void 0),Object(i.a)([Object(r.b)()],t.prototype,"configFetch",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"showLnConfig",void 0),Object(i.a)([Object(r.b)()],t.prototype,"isAuthorized",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"isAuthorizedRes",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"authLogin",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"tokenVerify",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"logOut",void 0),Object(i.a)([Object(r.b)()],t.prototype,"resetPassword",void 0),Object(i.a)([Object(r.b)()],t.prototype,"setSelectedNode",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchFile",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"showFile",void 0),t})()},XDbj:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("sVev"),r=n("7o/Q");function s(t=c){return e=>e.lift(new o(t))}class o{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends r.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function c(){return new i.a}},XNiG:function(t,e,n){"use strict";n.d(e,"b",function(){return l}),n.d(e,"a",function(){return h});var i=n("HDdC"),r=n("7o/Q"),s=n("quSY"),o=n("9ppp"),a=n("Ylt2"),c=n("2QA8");class l extends r.a{constructor(t){super(t),this.destination=t}}let h=(()=>{class t extends i.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new l(this)}lift(t){const e=new u(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;rnew u(t,e),t})();class u extends h{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):s.a.EMPTY}}},Xhqo:function(t,e,n){"use strict";var i=n("hwdV").Buffer,r=n(4);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var e=i.allocUnsafe(t>>>0),n=this.head,r=0;n;)n.data.copy(e,r),r+=n.data.length,n=n.next;return e},t}(),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var t=r.inspect({length:this.length});return this.constructor.name+" "+t})},Xn1i:function(t,e,n){"use strict";var i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=l;var r=n("zzXz"),s=n("Sc7j");n("2q5Q")(l,r);for(var o=i(s.prototype),a=0;a>>0},e.writeUInt32BE=function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},e.ip=function(t,e,n,i){for(var r=0,s=0,o=6;o>=0;o-=2){for(var a=0;a<=24;a+=8)r<<=1,r|=e>>>a+o&1;for(a=0;a<=24;a+=8)r<<=1,r|=t>>>a+o&1}for(o=6;o>=0;o-=2){for(a=1;a<=25;a+=8)s<<=1,s|=e>>>a+o&1;for(a=1;a<=25;a+=8)s<<=1,s|=t>>>a+o&1}n[i+0]=r>>>0,n[i+1]=s>>>0},e.rip=function(t,e,n,i){for(var r=0,s=0,o=0;o<4;o++)for(var a=24;a>=0;a-=8)r<<=1,r|=e>>>a+o&1,r<<=1,r|=t>>>a+o&1;for(o=4;o<8;o++)for(a=24;a>=0;a-=8)s<<=1,s|=e>>>a+o&1,s<<=1,s|=t>>>a+o&1;n[i+0]=r>>>0,n[i+1]=s>>>0},e.pc1=function(t,e,n,i){for(var r=0,s=0,o=7;o>=5;o--){for(var a=0;a<=24;a+=8)r<<=1,r|=e>>a+o&1;for(a=0;a<=24;a+=8)r<<=1,r|=t>>a+o&1}for(a=0;a<=24;a+=8)r<<=1,r|=e>>a+o&1;for(o=1;o<=3;o++){for(a=0;a<=24;a+=8)s<<=1,s|=e>>a+o&1;for(a=0;a<=24;a+=8)s<<=1,s|=t>>a+o&1}for(a=0;a<=24;a+=8)s<<=1,s|=t>>a+o&1;n[i+0]=r>>>0,n[i+1]=s>>>0},e.r28shl=function(t,e){return t<>>28-e};var i=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,n,r){for(var s=0,o=0,a=i.length>>>1,c=0;c>>i[c]&1;for(c=a;c>>i[c]&1;n[r+0]=s>>>0,n[r+1]=o>>>0},e.expand=function(t,e,n){var i=0,r=0;i=(1&t)<<5|t>>>27;for(var s=23;s>=15;s-=4)i<<=6,i|=t>>>s&63;for(s=11;s>=3;s-=4)r|=t>>>s&63,r<<=6;r|=(31&t)<<1|t>>>31,e[n+0]=i>>>0,e[n+1]=r>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var n=0,i=0;i<4;i++)n<<=4,n|=r[64*i+(t>>>18-6*i&63)];for(i=0;i<4;i++)n<<=4,n|=r[256+64*i+(e>>>18-6*i&63)];return n>>>0};var s=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,n=0;n>>s[n]&1;return e>>>0},e.padSplit=function(t,e,n){for(var i=t.toString(2);i.length=0}},YEUz:function(t,e,n){"use strict";n.d(e,"a",function(){return Y}),n.d(e,"b",function(){return E}),n.d(e,"c",function(){return C}),n.d(e,"d",function(){return j}),n.d(e,"e",function(){return z}),n.d(e,"f",function(){return L}),n.d(e,"g",function(){return k}),n.d(e,"h",function(){return U}),n.d(e,"i",function(){return T}),n.d(e,"j",function(){return q}),n.d(e,"k",function(){return M}),n.d(e,"l",function(){return F});var i=n("SVse"),r=n("8Y7J"),s=n("SCoL"),o=n("XNiG"),a=n("quSY"),c=n("LRne"),l=n("Ht+U"),h=n("vkgz"),u=n("Kj3r"),d=n("pLZG"),f=n("lJxs"),p=n("IzEk"),m=n("8LU1"),b=n("9b/N");function g(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const _="cdk-describedby-message-container",y="cdk-describedby-host";let v=0;const w=new Map;let x=null,C=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),w.set(e,{messageElement:e,referenceCount:0})):w.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=w.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}x&&0===x.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=w.get(e);!function(t,e,n){const i=g(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute(y,""),n.referenceCount++}_removeMessageReference(t,e){const n=w.get(e);n.referenceCount--,function(t,e,n){const i=g(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(y)}_isElementDescribedByMessage(t,e){const n=g(t,"aria-describedby"),i=w.get(e),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(i.d),r.Zb(s.a))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(i.d),Object(r.Zb)(s.a))},token:t,providedIn:"root"}),t})();class S{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new o.a,this._typeaheadSubscription=a.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new o.a,this.change=new o.a,t instanceof r.F&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(h.a)(t=>this._pressedLetters.push(t)),Object(u.a)(t),Object(d.a)(()=>this._pressedLetters.length>0),Object(f.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case l.n:return void this.tabOut.next();case l.c:if(this._vertical&&n){this.setNextItemActive();break}return;case l.o:if(this._vertical&&n){this.setPreviousItemActive();break}return;case l.l:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.h:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.g:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case l.d:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||Object(l.r)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=l.a&&e<=l.p||e>=l.q&&e<=l.i)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof r.F?this._items.toArray():this._items}}class E extends S{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class k extends S{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let O=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===D(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),r=D(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||A(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(s.a))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(s.a))},token:t,providedIn:"root"}),t})();function A(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function D(t){if(!A(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class I{constructor(t,e,n,i,r=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Object(p.a)(1)).subscribe(t)}}let T=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new I(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(O),r.Zb(r.B),r.Zb(i.d))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(O),Object(r.Zb)(r.B),Object(r.Zb)(i.d))},token:t,providedIn:"root"}),t})(),L=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=Object(m.c)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=Object(m.c)(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(r.l),r.Pb(T),r.Pb(i.d))},t.\u0275dir=r.Kb({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[r.Bb]}),t})();"undefined"!=typeof Element&∈const P=new r.s("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),R=new r.s("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let M=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,r;return 1===e.length&&"number"==typeof e[0]?r=e[0]:[i,r]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==r&&n&&(r=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),n=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,n,i){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=n,this._ngZone=i,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(r.l),r.Pb(M),r.Pb(b.b),r.Pb(r.B))},t.\u0275dir=r.Kb({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function F(t){return 0===t.buttons}const N=new r.s("cdk-focus-monitor-default-options"),V=Object(s.f)({passive:!0,capture:!0});let U=(()=>{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=F(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=B(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=B(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){const n=Object(m.e)(t);if(!this._platform.isBrowser||1!==n.nodeType)return Object(c.a)(null);const i=Object(s.c)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;const a={checkChildren:e,subject:new o.a,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const e=Object(m.e)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=Object(m.e)(t);i===this._getDocument().activeElement&&this._elementInfo.has(i)?this._originChanged(i,e,this._elementInfo.get(i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=B(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);n&&(n.checkChildren||e===B(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,V),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,V)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,V),t.addEventListener("mousedown",this._documentMousedownListener,V),t.addEventListener("touchstart",this._documentTouchstartListener,V),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,V),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,V),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,V),t.removeEventListener("mousedown",this._documentMousedownListener,V),t.removeEventListener("touchstart",this._documentTouchstartListener,V),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(r.B),r.Zb(s.a),r.Zb(i.d,8),r.Zb(N,8))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(r.B),Object(r.Zb)(s.a),Object(r.Zb)(i.d,8),Object(r.Zb)(N,8))},token:t,providedIn:"root"}),t})();function B(t){return t.composedPath?t.composedPath()[0]:t.target}let z=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new r.o}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(r.l),r.Pb(U))},t.\u0275dir=r.Kb({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const H="cdk-high-contrast-black-on-white",W="cdk-high-contrast-white-on-black",K="cdk-high-contrast-active";let q=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(K),t.remove(H),t.remove(W);const e=this.getHighContrastMode();1===e?(t.add(K),t.add(H)):2===e&&(t.add(K),t.add(W))}}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(s.a),r.Zb(i.d))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(s.a),Object(r.Zb)(i.d))},token:t,providedIn:"root"}),t})(),Y=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)(r.Zb(q))},imports:[[s.b,b.c]]}),t})()},Ylt2:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("quSY");class r extends i.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},"YoN+":function(t,e,n){"use strict";const i=n("P7XM"),r=n("0cit").Reporter,s=n("xZGU").Buffer;function o(t,e){r.call(this,e),s.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function a(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(t){return a.isEncoderBuffer(t)||(t=new a(t,e)),this.length+=t.length,t},this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=s.byteLength(t);else{if(!s.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}i(o,r),e.DecoderBuffer=o,o.isDecoderBuffer=function(t){return t instanceof o||"object"==typeof t&&s.isBuffer(t.base)&&"DecoderBuffer"===t.constructor.name&&"number"==typeof t.offset&&"number"==typeof t.length&&"function"==typeof t.save&&"function"==typeof t.restore&&"function"==typeof t.isEmpty&&"function"==typeof t.readUInt8&&"function"==typeof t.skip&&"function"==typeof t.raw},o.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},o.prototype.restore=function(t){const e=new o(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,r.prototype.restore.call(this,t.reporter),e},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},o.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");const n=new o(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n},o.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=a,a.isEncoderBuffer=function(t){return t instanceof a||"object"==typeof t&&"EncoderBuffer"===t.constructor.name&&"number"==typeof t.length&&"function"==typeof t.join},a.prototype.join=function(t,e){return t||(t=s.alloc(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(t,e),e+=n.length}):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):s.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},YskG:function(t,e,n){var i=n("hwdV").Buffer;function r(t,e,n){var r=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=i.concat([t._prev.slice(1),i.from([n?e:r])]),r}e.encrypt=function(t,e,n){for(var s=e.length,o=i.allocUnsafe(s),a=-1;++a":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),n=t.redSub(e),i=t.redMul(e),r=n.redMul(e.redAdd(this.curve.a24.redMul(n)));return this.curve.point(i,r)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),r=t.x.redAdd(t.z),s=t.x.redSub(t.z).redMul(n),o=r.redMul(i),a=e.z.redMul(s.redAdd(o).redSqr()),c=e.x.redMul(s.redISub(o).redSqr());return this.curve.point(a,c)},c.prototype.mul=function(t){for(var e=t.clone(),n=this,i=this.curve.point(null,null),r=[];0!==e.cmpn(0);e.iushrn(1))r.push(e.andln(1));for(var s=r.length-1;s>=0;s--)0===r[s]?(n=n.diffAdd(i,this),i=i.dbl()):(i=n.diffAdd(i,this),n=n.dbl());return i},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},Z92M:function(t,e){t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},ZDAU:function(t,e,n){var i=n("hwdV").Buffer,r=n("1IWx").Transform,s=n("fXKp").StringDecoder;function o(t){r.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n("P7XM")(o,r),o.prototype.update=function(t,e,n){"string"==typeof t&&(t=i.from(t,e));var r=this._update(t);return this.hashMode?this:(n&&(r=this._toString(r,n)),r)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(t,e,n){var i;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(r){i=r}finally{n(i)}},o.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(n){e=n}t(e)},o.prototype._finalOrDigest=function(t){var e=this.__final()||i.alloc(0);return t&&(e=this._toString(e,t,!0)),e},o.prototype._toString=function(t,e,n){if(this._decoder||(this._decoder=new s(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var i=this._decoder.write(t);return n&&(i+=this._decoder.end()),i},t.exports=o},ZEK9:function(t,e,n){e.publicEncrypt=n("rSVQ"),e.privateDecrypt=n("DyzK"),e.privateEncrypt=function(t,n){return e.publicEncrypt(t,n,!0)},e.publicDecrypt=function(t,n){return e.privateDecrypt(t,n,!0)}},"ZFy/":function(t,e,n){"use strict";n.d(e,"a",function(){return S}),n.d(e,"b",function(){return k});var i=n("1O3W"),r=n("YEUz"),s=n("SVse"),o=n("8Y7J"),a=n("UhP/"),c=n("7KAL"),l=n("8LU1"),h=n("Ht+U"),u=n("HeVh"),d=n("SCoL"),f=n("1z/I"),p=n("XNiG"),m=n("1G5W"),b=n("IzEk"),g=n("GS7A"),_=n("9gLZ");const y={tooltipState:Object(g.m)("state",[Object(g.j)("initial, void, hidden",Object(g.k)({opacity:0,transform:"scale(0)"})),Object(g.j)("visible",Object(g.k)({transform:"scale(1)"})),Object(g.l)("* => visible",Object(g.e)("200ms cubic-bezier(0, 0, 0.2, 1)",Object(g.g)([Object(g.k)({opacity:0,transform:"scale(0)",offset:0}),Object(g.k)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(g.k)({opacity:1,transform:"scale(1)",offset:1})]))),Object(g.l)("* => hidden",Object(g.e)("100ms cubic-bezier(0, 0, 0.2, 1)",Object(g.k)({opacity:0})))])},v=Object(d.f)({passive:!0}),w=new o.s("mat-tooltip-scroll-strategy"),x={provide:w,deps:[i.c],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},C=new o.s("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let S=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l,u){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=r,this._platform=s,this._ariaDescriber=o,this._focusMonitor=a,this._dir=l,this._defaultOptions=u,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new p.a,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===h.f&&!Object(h.r)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,u&&(u.position&&(this.position=u.position),u.touchGestures&&(this.touchGestures=u.touchGestures)),r.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(l.c)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Object(m.a)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,v)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new f.d(E,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(m.a)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(Object(m.a)(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Object(m.a)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:r}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:r}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:r}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Object(b.a)(1),Object(m.a)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,v)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(i.c),o.Pb(o.l),o.Pb(c.c),o.Pb(o.S),o.Pb(o.B),o.Pb(d.a),o.Pb(r.c),o.Pb(r.h),o.Pb(w),o.Pb(_.b,8),o.Pb(C,8))},t.\u0275dir=o.Kb({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),E=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new p.a,this._isHandset=this._breakpointObserver.observe(u.b.Handset)}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(o.h),o.Pb(u.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&o.dc("click",function(){return e._handleBodyInteraction()},!1,o.xc),2&t&&o.Fc("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.dc("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),o.ic(1,"async"),o.Kc(2),o.Ub()),2&t){let t=null;o.Hb("mat-tooltip-handset",null==(t=o.jc(1,5,e._isHandset))?null:t.matches),o.oc("ngClass",e.tooltipClass)("@state",e._visibility),o.Db(2),o.Lc(e.message)}},directives:[s.m],pipes:[s.b],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[y.tooltipState]},changeDetection:0}),t})(),k=(()=>{class t{}return t.\u0275mod=o.Nb({type:t}),t.\u0275inj=o.Mb({factory:function(e){return new(e||t)},providers:[x],imports:[[r.a,s.c,i.f,a.i],a.i,c.b]}),t})()},"ZTz/":function(t,e,n){"use strict";n.d(e,"a",function(){return Y}),n.d(e,"b",function(){return X}),n.d(e,"c",function(){return K});var i=n("1O3W"),r=n("SVse"),s=n("8Y7J"),o=n("UhP/"),a=n("Q2Ze"),c=n("7KAL"),l=n("YEUz"),h=n("8LU1"),u=n("CtHx"),d=n("Ht+U"),f=n("XNiG"),p=n("NXyV"),m=n("VRyK"),b=n("JX91"),g=n("eIep"),_=n("IzEk"),y=n("pLZG"),v=n("lJxs"),w=n("/uUt"),x=n("1G5W"),C=n("GS7A"),S=n("9gLZ"),E=n("s7LF");const k=["trigger"],O=["panel"];function A(t,e){if(1&t&&(s.Vb(0,"span",8),s.Kc(1),s.Ub()),2&t){const t=s.hc();s.Db(1),s.Lc(t.placeholder||"\xa0")}}function D(t,e){if(1&t&&(s.Vb(0,"span"),s.Kc(1),s.Ub()),2&t){const t=s.hc(2);s.Db(1),s.Lc(t.triggerValue||"\xa0")}}function I(t,e){1&t&&s.mc(0,0,["*ngSwitchCase","true"])}function T(t,e){if(1&t&&(s.Vb(0,"span",9),s.Ic(1,D,2,1,"span",10),s.Ic(2,I,1,0,"ng-content",11),s.Ub()),2&t){const t=s.hc();s.oc("ngSwitch",!!t.customTrigger),s.Db(2),s.oc("ngSwitchCase",!0)}}function L(t,e){if(1&t){const t=s.Wb();s.Vb(0,"div",12),s.Vb(1,"div",13,14),s.dc("@transformPanel.done",function(e){return s.zc(t),s.hc()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return s.zc(t),s.hc()._handleKeydown(e)}),s.mc(3,1),s.Ub(),s.Ub()}if(2&t){const t=s.hc();s.oc("@transformPanelWrap",void 0),s.Db(1),s.Gb("mat-select-panel ",t._getPanelTheme(),""),s.Fc("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),s.oc("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),s.Eb("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const P=[[["mat-select-trigger"]],"*"],R=["mat-select-trigger","*"],M={transformPanelWrap:Object(C.m)("transformPanelWrap",[Object(C.l)("* => void",Object(C.h)("@transformPanel",[Object(C.f)()],{optional:!0}))]),transformPanel:Object(C.m)("transformPanel",[Object(C.j)("void",Object(C.k)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Object(C.j)("showing",Object(C.k)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Object(C.j)("showing-multiple",Object(C.k)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Object(C.l)("void => *",Object(C.e)("120ms cubic-bezier(0, 0, 0.2, 1)")),Object(C.l)("* => void",Object(C.e)("100ms 25ms linear",Object(C.k)({opacity:0})))])};let j=0;const F=256,N=new s.s("mat-select-scroll-strategy"),V=new s.s("MAT_SELECT_CONFIG"),U={provide:N,deps:[i.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class B{constructor(t,e){this.source=t,this.value=e}}class z{constructor(t,e,n,i,r){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}const H=Object(o.y)(Object(o.C)(Object(o.z)(Object(o.A)(z)))),W=new s.s("MatSelectTrigger");let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-select-trigger"]],features:[s.Cb([{provide:W,useExisting:t}])]}),t})(),q=(()=>{class t extends H{constructor(t,e,n,i,r,o,a,c,l,h,u,d,w,x){var C,S,E;super(r,i,a,c,h),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=l,this.ngControl=h,this._liveAnnouncer=w,this._defaultOptions=x,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+j++,this._triggerAriaLabelledBy=null,this._destroy=new f.a,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+j++,this._panelDoneAnimatingStream=new f.a,this._overlayPanelClass=(null===(C=this._defaultOptions)||void 0===C?void 0:C.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(E=null===(S=this._defaultOptions)||void 0===S?void 0:S.disableOptionCentering)&&void 0!==E&&E,this.ariaLabel="",this.optionSelectionChanges=Object(p.a)(()=>{const t=this.options;return t?t.changes.pipe(Object(b.a)(t),Object(g.a)(()=>Object(m.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Object(_.a)(1),Object(g.a)(()=>this.optionSelectionChanges))}),this.openedChange=new s.o,this._openedStream=this.openedChange.pipe(Object(y.a)(t=>t),Object(v.a)(()=>{})),this._closedStream=this.openedChange.pipe(Object(y.a)(t=>!t),Object(v.a)(()=>{})),this.selectionChange=new s.o,this.valueChange=new s.o,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==x?void 0:x.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=x.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(u)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=Object(h.c)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=Object(h.c)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Object(h.c)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){t!==this._value&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Object(h.f)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new u.c(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(w.a)(),Object(x.a)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Object(x.a)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Object(b.a)(null),Object(x.a)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=e===d.c||e===d.o||e===d.h||e===d.l,i=e===d.e||e===d.m,r=this._keyManager;if(!r.isTyping()&&i&&!Object(d.r)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;r.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=n===d.c||n===d.o,r=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(r||n!==d.e&&n!==d.m||!e.activeItem||Object(d.r)(t))if(!r&&this._multiple&&n===d.a&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(Object(_.a)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?"mat-"+this._parentFormField.color:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new l.b(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(x.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Object(x.a)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(m.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(x.a)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(m.a)(...this.options.map(t=>t._stateChanges)).pipe(Object(x.a)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const t=this._getLabelId();return this.ariaLabelledby?t+" "+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getLabelId(){var t;return(null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId())||""}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(c.e),s.Pb(s.h),s.Pb(s.B),s.Pb(o.d),s.Pb(s.l),s.Pb(S.b,8),s.Pb(E.o,8),s.Pb(E.h,8),s.Pb(a.a,8),s.Pb(E.l,10),s.ac("tabindex"),s.Pb(N),s.Pb(l.k),s.Pb(V,8))},t.\u0275dir=s.Kb({type:t,viewQuery:function(t,e){if(1&t&&(s.Pc(k,!0),s.Pc(O,!0),s.Pc(i.a,!0)),2&t){let t;s.vc(t=s.ec())&&(e.trigger=t.first),s.vc(t=s.ec())&&(e.panel=t.first),s.vc(t=s.ec())&&(e.overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[s.Ab,s.Bb]}),t})(),Y=(()=>{class t extends q{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Object(x.a)(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(Object(_.a)(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}_scrollOptionIntoView(t){const e=Object(o.v)(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=Object(o.w)((t+e)*n,n,this.panel.nativeElement.scrollTop,F)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new B(this,t)}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let r;if(this.multiple)r=40;else{let t=this._selectionModel.selected[0]||this.options.first;r=t&&t.group?32:16}n||(r*=-1);const s=0-(t.left+r-(n?i:0)),o=t.right+r-e.width+(n?0:i);s>0?r+=s+8:o>0&&(r-=o+8),this.overlayDir.offsetX=Math.round(r),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),r=(i-this._triggerRect.height)/2,s=Math.floor(F/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-s))*i+(i-(this._getItemCount()*i-F)%i):e-i/2,Math.round(-1*o-r))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,F)-s-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):s>i?this._adjustPanelDown(s,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,F),i=e*t-n;let r;r=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),r+=Object(o.v)(r,this.options,this.optionGroups);const s=n/2;this._scrollTop=this._calculateOverlayScroll(r,s,i),this._offsetY=this._calculateOverlayOffsetY(r,s,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(e){return Z(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(s.Ib(n,W,!0),s.Ib(n,o.m,!0),s.Ib(n,o.f,!0)),2&t){let t;s.vc(t=s.ec())&&(e.customTrigger=t.first),s.vc(t=s.ec())&&(e.options=t),s.vc(t=s.ec())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&s.dc("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(s.Eb("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),s.Hb("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[s.Cb([{provide:a.d,useExisting:t},{provide:o.g,useExisting:t}]),s.Ab],ngContentSelectors:R,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",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"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(s.nc(P),s.Vb(0,"div",0,1),s.dc("click",function(){return e.toggle()}),s.Vb(3,"div",2),s.Ic(4,A,2,1,"span",3),s.Ic(5,T,3,2,"span",4),s.Ub(),s.Vb(6,"div",5),s.Qb(7,"div",6),s.Ub(),s.Ub(),s.Ic(8,L,4,14,"ng-template",7),s.dc("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=s.wc(1);s.Eb("aria-owns",e.panelOpen?e.id+"-panel":null),s.Db(3),s.oc("ngSwitch",e.empty),s.Eb("id",e._valueId),s.Db(1),s.oc("ngSwitchCase",!0),s.Db(1),s.oc("ngSwitchCase",!1),s.Db(3),s.oc("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.b,r.q,r.r,i.a,r.s,r.m],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[M.transformPanelWrap,M.transformPanel]},changeDetection:0}),t})();const Z=s.Xb(Y);let X=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},providers:[U],imports:[[r.c,i.f,o.n,o.i],c.b,a.e,o.n,o.i]}),t})()},ZUHj:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("7o/Q");class r extends i.a{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var s=n("SeVD"),o=n("HDdC");function a(t,e,n,i,a=new r(t,n,i)){if(!a.closed)return e instanceof o.a?e.subscribe(a):Object(s.a)(e)(a)}},"aLe/":function(t,e,n){"use strict";n.d(e,"a",function(){return st}),n.d(e,"b",function(){return ht}),n.d(e,"c",function(){return ut});var i=n("XNiG"),r=n("xgIS"),s=(n("VRyK"),n("3UWI")),o=n("1G5W"),a=(n("/uUt"),n("CqXF"),n("8Y7J")),c=n("SVse");function l(t){return getComputedStyle(t)}function h(t,e){for(var n in e){var i=e[n];"number"==typeof i&&(i+="px"),t.style[n]=i}return t}function u(t){var e=document.createElement("div");return e.className=t,e}var d="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function f(t,e){if(!d)throw new Error("No element matching method supported");return d.call(t,e)}function p(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function m(t,e){return Array.prototype.filter.call(t.children,function(t){return f(t,e)})}var b=function(t){return"ps__thumb-"+t},g=function(t){return"ps__rail-"+t},_="ps__child--consume",y="ps--focus",v="ps--clicking",w=function(t){return"ps--active-"+t},x=function(t){return"ps--scrolling-"+t},C={x:null,y:null};function S(t,e){var n=t.element.classList,i=x(e);n.contains(i)?clearTimeout(C[e]):n.add(i)}function E(t,e){C[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(x(e))},t.settings.scrollingThreshold)}var k=function(t){this.element=t,this.handlers={}},O={isEmpty:{configurable:!0}};k.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},k.prototype.unbind=function(t,e){var n=this;this.handlers[t]=this.handlers[t].filter(function(i){return!(!e||i===e)||(n.element.removeEventListener(t,i,!1),!1)})},k.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},O.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(k.prototype,O);var A=function(){this.eventElements=[]};function D(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function I(t,e,n,i,r){var s;if(void 0===i&&(i=!0),void 0===r&&(r=!1),"top"===e)s=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");s=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,n,i,r){var s=n[0],o=n[1],a=n[2],c=n[3],l=n[4],h=n[5];void 0===i&&(i=!0),void 0===r&&(r=!1);var u=t.element;t.reach[c]=null,u[a]<1&&(t.reach[c]="start"),u[a]>t[s]-t[o]-1&&(t.reach[c]="end"),e&&(u.dispatchEvent(D("ps-scroll-"+c)),e<0?u.dispatchEvent(D("ps-scroll-"+l)):e>0&&u.dispatchEvent(D("ps-scroll-"+h)),i&&function(t,e){S(t,e),E(t,e)}(t,c)),t.reach[c]&&(e||r)&&u.dispatchEvent(D("ps-"+c+"-reach-"+t.reach[c]))}(t,n,s,i,r)}function T(t){return parseInt(t,10)||0}A.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new k(t),this.eventElements.push(e)),e},A.prototype.bind=function(t,e,n){this.eventElement(t).bind(e,n)},A.prototype.unbind=function(t,e,n){var i=this.eventElement(t);i.unbind(e,n),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)},A.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},A.prototype.once=function(t,e,n){var i=this.eventElement(t),r=function(t){i.unbind(e,r),n(t)};i.bind(e,r)};var L={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function P(t){var e=t.element,n=Math.floor(e.scrollTop),i=e.getBoundingClientRect();t.containerWidth=Math.ceil(i.width),t.containerHeight=Math.ceil(i.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(m(e,g("x")).forEach(function(t){return p(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(m(e,g("y")).forEach(function(t){return p(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var n={width:e.railXWidth},i=Math.floor(t.scrollTop);n.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?n.bottom=e.scrollbarXBottom-i:n.top=e.scrollbarXTop+i,h(e.scrollbarXRail,n);var r={top:i,height:e.railYHeight};e.isScrollbarYUsingRight?r.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:r.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,h(e.scrollbarYRail,r),h(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),h(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(w("x")):(e.classList.remove(w("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(w("y")):(e.classList.remove(w("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function R(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function M(t,e){var n=e[0],i=e[1],r=e[2],s=e[3],o=e[4],a=e[5],c=e[6],l=e[7],h=e[8],u=t.element,d=null,f=null,p=null;function m(e){e.touches&&e.touches[0]&&(e[r]=e.touches[0].pageY),u[c]=d+p*(e[r]-f),S(t,l),P(t),e.stopPropagation(),e.preventDefault()}function b(){E(t,l),t[h].classList.remove(v),t.event.unbind(t.ownerDocument,"mousemove",m)}function g(e,o){d=u[c],o&&e.touches&&(e[r]=e.touches[0].pageY),f=e[r],p=(t[i]-t[n])/(t[s]-t[a]),o?t.event.bind(t.ownerDocument,"touchmove",m):(t.event.bind(t.ownerDocument,"mousemove",m),t.event.once(t.ownerDocument,"mouseup",b),e.preventDefault()),t[h].classList.add(v),e.stopPropagation()}t.event.bind(t[o],"mousedown",function(t){g(t)}),t.event.bind(t[o],"touchstart",function(t){g(t,!0)})}var j={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var n=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(n>t.scrollbarYTop?1:-1)*t.containerHeight,P(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var n=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(n>t.scrollbarXLeft?1:-1)*t.containerWidth,P(t),e.stopPropagation()})},"drag-thumb":function(t){M(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),M(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(f(e,":hover")||f(t.scrollbarX,":focus")||f(t.scrollbarY,":focus"))){var i,r=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(r){if("IFRAME"===r.tagName)r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(f(i=r,"input,[contenteditable]")||f(i,"select,[contenteditable]")||f(i,"textarea,[contenteditable]")||f(i,"button,[contenteditable]"))return}var s=0,o=0;switch(n.which){case 37:s=n.metaKey?-t.contentWidth:n.altKey?-t.containerWidth:-30;break;case 38:o=n.metaKey?t.contentHeight:n.altKey?t.containerHeight:30;break;case 39:s=n.metaKey?t.contentWidth:n.altKey?t.containerWidth:30;break;case 40:o=n.metaKey?-t.contentHeight:n.altKey?-t.containerHeight:-30;break;case 32:o=n.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:o=t.containerHeight;break;case 34:o=-t.containerHeight;break;case 36:o=t.contentHeight;break;case 35:o=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==s||t.settings.suppressScrollY&&0!==o||(e.scrollTop-=o,e.scrollLeft+=s,P(t),function(n,i){var r=Math.floor(e.scrollTop);if(0===n){if(!t.scrollbarYActive)return!1;if(0===r&&i>0||r>=t.contentHeight-t.containerHeight&&i<0)return!t.settings.wheelPropagation}var s=e.scrollLeft;if(0===i){if(!t.scrollbarXActive)return!1;if(0===s&&n<0||s>=t.contentWidth-t.containerWidth&&n>0)return!t.settings.wheelPropagation}return!0}(s,o)&&n.preventDefault())}})},wheel:function(t){var e=t.element;function n(n){var i=function(t){var e=t.deltaX,n=-1*t.deltaY;return void 0!==e&&void 0!==n||(e=-1*t.wheelDeltaX/6,n=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,n*=10),e!=e&&n!=n&&(e=0,n=t.wheelDelta),t.shiftKey?[-n,-e]:[e,n]}(n),r=i[0],s=i[1];if(!function(t,n,i){if(!L.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains(_))return!0;var s=l(r);if(i&&s.overflowY.match(/(scroll|auto)/)){var o=r.scrollHeight-r.clientHeight;if(o>0&&(r.scrollTop>0&&i<0||r.scrollTop0))return!0}if(n&&s.overflowX.match(/(scroll|auto)/)){var a=r.scrollWidth-r.clientWidth;if(a>0&&(r.scrollLeft>0&&n<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(n.target,r,s)){var o=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(s?e.scrollTop-=s*t.settings.wheelSpeed:e.scrollTop+=r*t.settings.wheelSpeed,o=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(r?e.scrollLeft+=r*t.settings.wheelSpeed:e.scrollLeft-=s*t.settings.wheelSpeed,o=!0):(e.scrollTop-=s*t.settings.wheelSpeed,e.scrollLeft+=r*t.settings.wheelSpeed),P(t),(o=o||function(n,i){var r=Math.floor(e.scrollTop),s=0===e.scrollTop,o=r+e.offsetHeight===e.scrollHeight,a=0===e.scrollLeft,c=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(i)>Math.abs(n)?s||o:a||c)||!t.settings.wheelPropagation}(r,s))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",n):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",n)},touch:function(t){if(L.supportsTouch||L.supportsIePointer){var e=t.element,n={},i=0,r={},s=null;L.supportsTouch?(t.event.bind(e,"touchstart",h),t.event.bind(e,"touchmove",u),t.event.bind(e,"touchend",d)):L.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",h),t.event.bind(e,"pointermove",u),t.event.bind(e,"pointerup",d)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",h),t.event.bind(e,"MSPointerMove",u),t.event.bind(e,"MSPointerUp",d)))}function o(n,i){e.scrollTop-=i,e.scrollLeft-=n,P(t)}function a(t){return t.targetTouches?t.targetTouches[0]:t}function c(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function h(t){if(c(t)){var e=a(t);n.pageX=e.pageX,n.pageY=e.pageY,i=(new Date).getTime(),null!==s&&clearInterval(s)}}function u(s){if(c(s)){var h=a(s),u={pageX:h.pageX,pageY:h.pageY},d=u.pageX-n.pageX,f=u.pageY-n.pageY;if(function(t,n,i){if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains(_))return!0;var s=l(r);if(i&&s.overflowY.match(/(scroll|auto)/)){var o=r.scrollHeight-r.clientHeight;if(o>0&&(r.scrollTop>0&&i<0||r.scrollTop0))return!0}if(n&&s.overflowX.match(/(scroll|auto)/)){var a=r.scrollWidth-r.clientWidth;if(a>0&&(r.scrollLeft>0&&n<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(s.target,d,f))return;o(d,f),n=u;var p=(new Date).getTime(),m=p-i;m>0&&(r.x=d/m,r.y=f/m,i=p),function(n,i){var r=Math.floor(e.scrollTop),s=e.scrollLeft,o=Math.abs(n),a=Math.abs(i);if(a>o){if(i<0&&r===t.contentHeight-t.containerHeight||i>0&&0===r)return 0===window.scrollY&&i>0&&L.isChrome}else if(o>a&&(n<0&&s===t.contentWidth-t.containerWidth||n>0&&0===s))return!0;return!0}(d,f)&&s.preventDefault()}}function d(){t.settings.swipeEasing&&(clearInterval(s),s=setInterval(function(){t.isInitialized?clearInterval(s):r.x||r.y?Math.abs(r.x)<.01&&Math.abs(r.y)<.01?clearInterval(s):(o(30*r.x,30*r.y),r.x*=.8,r.y*=.8):clearInterval(s)},10))}}},F=function(t,e){var n=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var i in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[i]=e[i];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r,s,o=function(){return t.classList.add(y)},a=function(){return t.classList.remove(y)};this.isRtl="rtl"===l(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(s=t.scrollLeft,t.scrollLeft=-1,r=t.scrollLeft<0,t.scrollLeft=s,r),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new A,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=u(g("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=u(b("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",o),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=l(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=T(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=T(c.borderLeftWidth)+T(c.borderRightWidth),h(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=T(c.marginLeft)+T(c.marginRight),h(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=u(g("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=u(b("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",o),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var d=l(this.scrollbarYRail);this.scrollbarYRight=parseInt(d.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=T(d.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=l(t);return T(e.width)+T(e.paddingLeft)+T(e.paddingRight)+T(e.borderLeftWidth)+T(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=T(d.borderTopWidth)+T(d.borderBottomWidth),h(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=T(d.marginTop)+T(d.marginBottom),h(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return j[t](n)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return n.onScroll(t)}),P(this)};F.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,h(this.scrollbarXRail,{display:"block"}),h(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=T(l(this.scrollbarXRail).marginLeft)+T(l(this.scrollbarXRail).marginRight),this.railYMarginHeight=T(l(this.scrollbarYRail).marginTop)+T(l(this.scrollbarYRail).marginBottom),h(this.scrollbarXRail,{display:"none"}),h(this.scrollbarYRail,{display:"none"}),P(this),I(this,"top",0,!1,!0),I(this,"left",0,!1,!0),h(this.scrollbarXRail,{display:""}),h(this.scrollbarYRail,{display:""}))},F.prototype.onScroll=function(t){this.isAlive&&(P(this),I(this,"top",this.element.scrollTop-this.lastScrollTop),I(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},F.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),p(this.scrollbarX),p(this.scrollbarY),p(this.scrollbarXRail),p(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},F.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};var N=F,V=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,i){return t[0]===e&&(n=i,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n0},t.prototype.connect_=function(){U&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),W?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){U&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;H.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),q=function(t,e){for(var n=0,i=Object.keys(e);n0},t}(),nt="undefined"!=typeof WeakMap?new WeakMap:new V,it=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=K.getInstance(),i=new et(e,n,this);nt.set(this,i)};["observe","unobserve","disconnect"].forEach(function(t){it.prototype[t]=function(){var e;return(e=nt.get(this))[t].apply(e,arguments)}});var rt=void 0!==B.ResizeObserver?B.ResizeObserver:it;const st=new a.s("PERFECT_SCROLLBAR_CONFIG");class ot{constructor(t,e,n,i){this.x=t,this.y=e,this.w=n,this.h=i}}class at{constructor(t,e){this.x=t,this.y=e}}const ct=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class lt{constructor(t={}){this.assign(t)}assign(t={}){for(const e in t)this[e]=t[e]}}let ht=(()=>{class t{constructor(t,e,n,r,s){this.zone=t,this.differs=e,this.elementRef=n,this.platformId=r,this.defaults=s,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new i.a,this.disabled=!1,this.psScrollY=new a.o,this.psScrollX=new a.o,this.psScrollUp=new a.o,this.psScrollDown=new a.o,this.psScrollLeft=new a.o,this.psScrollRight=new a.o,this.psYReachEnd=new a.o,this.psYReachStart=new a.o,this.psXReachEnd=new a.o,this.psXReachStart=new a.o}ngOnInit(){if(!this.disabled&&Object(c.A)(this.platformId)){const t=new lt(this.defaults);t.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new N(this.elementRef.nativeElement,t)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new rt(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{ct.forEach(t=>{const e=t.replace(/([A-Z])/g,t=>"-"+t.toLowerCase());Object(r.a)(this.elementRef.nativeElement,e).pipe(Object(s.a)(20),Object(o.a)(this.ngDestroy)).subscribe(e=>{this[t].emit(e)})})})}}ngOnDestroy(){Object(c.A)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&Object(c.A)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(t){t.disabled&&!t.disabled.isFirstChange()&&Object(c.A)(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(t){}},0))}geometry(t="scroll"){return new ot(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])}position(t=!1){return!t&&this.instance?new at(this.instance.reach.x||0,this.instance.reach.y||0):new at(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(t="any"){const e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)}scrollTo(t,e,n){this.disabled||(null==e&&null==n?this.animateScrolling("scrollTop",t,n):(null!=t&&this.animateScrolling("scrollLeft",t,n),null!=e&&this.animateScrolling("scrollTop",e,n)))}scrollToX(t,e){this.animateScrolling("scrollLeft",t,e)}scrollToY(t,e){this.animateScrolling("scrollTop",t,e)}scrollToTop(t,e){this.animateScrolling("scrollTop",t||0,e)}scrollToLeft(t,e){this.animateScrolling("scrollLeft",t||0,e)}scrollToRight(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)}scrollToBottom(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)}scrollToElement(t,e,n){const i=this.elementRef.nativeElement.querySelector(t);if(i){const t=i.getBoundingClientRect(),r=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",t.left-r.left+this.elementRef.nativeElement.scrollLeft+(e||0),n),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",t.top-r.top+this.elementRef.nativeElement.scrollTop+(e||0),n)}}animateScrolling(t,e,n){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),n&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){let i=0,r=0,s=performance.now(),o=this.elementRef.nativeElement[t];const a=(o-e)/2,c=l=>{r+=Math.PI/(n/(l-s)),i=Math.round(e+a+a*Math.cos(r)),this.elementRef.nativeElement[t]===o&&(r>=Math.PI?this.animateScrolling(t,e,0):(this.elementRef.nativeElement[t]=i,o=this.elementRef.nativeElement[t],s=l,this.animation=window.requestAnimationFrame(c)))};window.requestAnimationFrame(c)}}else this.elementRef.nativeElement[t]=e}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.B),a.Pb(a.v),a.Pb(a.l),a.Pb(a.D),a.Pb(st,8))},t.\u0275dir=a.Kb({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[a.Bb]}),t})(),ut=(()=>{class t{}return t.\u0275mod=a.Nb({type:t}),t.\u0275inj=a.Mb({factory:function(e){return new(e||t)},imports:[[c.c],c.c]}),t})()},aZ40:function(t,e,n){var i,r,s=n("Wogr");s.alloc?(i=s.alloc(512),r=s.alloc(256)):(i=new s(512),r=new s(256)),function(){for(var t=1,e=0;e<255;e++)i[e]=t,r[t]=e,256&(t<<=1)&&(t^=285);for(e=255;e<512;e++)i[e]=i[e-255]}(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return r[t]},e.exp=function(t){return i[t]},e.mul=function(t,e){return 0===t||0===e?0:i[r[t]+r[e]]}},afKu:function(t,e,n){(e=t.exports=function(t){t=t.toLowerCase();var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n}).sha=n("CH9F"),e.sha1=n("fnjI"),e.sha224=n("cqoG"),e.sha256=n("olUY"),e.sha384=n("uDfV"),e.sha512=n("T9HO")},"aqI/":function(t,e,n){"use strict";var i=n("fZJM"),r=n("dlgc"),s=n("2j6C");function o(t){if(!(this instanceof o))return new o(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=r.toArray(t.entropy,t.entropyEnc||"hex"),n=r.toArray(t.nonce,t.nonceEnc||"hex"),i=r.toArray(t.pers,t.persEnc||"hex");s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,i)}t.exports=o,o.prototype._init=function(t,e,n){var i=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},o.prototype.generate=function(t,e,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(i=n,n=e,e=null),n&&(n=r.toArray(n,i||"hex"),this._update(n));for(var s=[];s.length0&&n.ishrn(i),n}function d(t,e,n){var s,o;do{for(s=i.alloc(0);8*s.length2?e:Array(2-e.length+1).join("0")+e;var e}).join("")}(t)},hexToBytes:function(t){if(t.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===t.indexOf("0x")&&(t=t.slice(2)),t.match(/../g).map(function(t){return parseInt(t,16)})}};t.exports?t.exports=n:e.convertHex=n}(this)},bHdf:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("5+tZ"),r=n("SpAZ");function s(t=Number.POSITIVE_INFINITY){return Object(i.a)(r.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("5+tZ");function r(t,e){return Object(i.a)(t,e,1)}},bdpe:function(t,e,n){"use strict";n.d(e,"a",function(){return D});var i=n("iELJ"),r=n("wHSu"),s=n("7nzP"),o=n("8Y7J"),a=n("cpEJ"),c=n("7o2P"),l=n("zHaW"),h=n("VDRc"),u=n("SVse"),d=n("ura0"),f=n("bwdU"),p=n("PDjf"),m=n("Nv++"),b=n("Dxy4"),g=n("BSbQ"),_=n("O4ig"),y=n("dEYt");function v(t,e){1&t&&(o.Tb(0),o.Kc(1," (zero amount) "),o.Sb())}function w(t,e){if(1&t&&(o.Tb(0),o.Kc(1),o.ic(2,"number"),o.Sb()),2&t){const t=o.hc();o.Db(1),o.Mc("",o.jc(2,1,t.invoice.amountSettled)," Sats")}}function x(t,e){1&t&&(o.Tb(0),o.Kc(1,"-"),o.Sb())}function C(t,e){if(1&t&&(o.Vb(0,"div"),o.Qb(1,"mat-divider",17),o.Vb(2,"div",12),o.Vb(3,"div",25),o.Vb(4,"h4",14),o.Kc(5,"Date Expiry"),o.Ub(),o.Vb(6,"span",15),o.Kc(7),o.Ub(),o.Ub(),o.Vb(8,"div",26),o.Vb(9,"h4",14),o.Kc(10,"Date Settled"),o.Ub(),o.Vb(11,"span",18),o.Kc(12),o.Ub(),o.Ub(),o.Ub(),o.Qb(13,"mat-divider",17),o.Vb(14,"div",12),o.Vb(15,"div",19),o.Vb(16,"h4",14),o.Kc(17,"Payment Hash"),o.Ub(),o.Vb(18,"span",18),o.Kc(19),o.Ub(),o.Ub(),o.Ub(),o.Qb(20,"mat-divider",17),o.Vb(21,"div",12),o.Vb(22,"div",19),o.Vb(23,"h4",14),o.Kc(24,"Node Id"),o.Ub(),o.Vb(25,"span",18),o.Kc(26),o.Ub(),o.Ub(),o.Ub(),o.Qb(27,"mat-divider",17),o.Ub()),2&t){const t=o.hc();o.Db(7),o.Lc(t.invoice.expiresAtStr),o.Db(5),o.Lc(t.invoice.receivedAtStr),o.Db(7),o.Lc(t.invoice.paymentHash),o.Db(7),o.Lc(t.invoice.nodeId)}}function S(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"Show Advanced"),o.Ub())}function E(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"Hide Advanced"),o.Ub())}const k=function(t){return{"display-none":t}},O=function(t){return{"xs-scroll-y":t}},A=function(t,e){return{"mt-2":t,"mt-1":e}};let D=(()=>{class t{constructor(t,e,n,i,o){this.dialogRef=t,this.data=e,this.logger=n,this.commonService=i,this.snackBar=o,this.faReceipt=r.D,this.faExclamationTriangle=r.o,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.q}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.q.XS&&(this.qrWidth=220)}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(t){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(i.f),o.Pb(i.a),o.Pb(a.b),o.Pb(c.a),o.Pb(l.b))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-invoice-information"]],decls:64,vars:41,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","65",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-1"],["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"],[3,"ngClass"],["fxLayout","column"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap",3,"ngClass"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","40"],["fxFlex","60"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Qb(2,"qrcode",2),o.Ub(),o.Vb(3,"div",3),o.Vb(4,"mat-card-header",4),o.Vb(5,"div",5),o.Qb(6,"fa-icon",6),o.Vb(7,"span",7),o.Kc(8),o.Ub(),o.Ub(),o.Vb(9,"button",8),o.dc("click",function(){return e.onClose()}),o.Kc(10,"X"),o.Ub(),o.Ub(),o.Vb(11,"mat-card-content",9),o.Vb(12,"div",10),o.Vb(13,"div",11),o.Qb(14,"qrcode",2),o.Ub(),o.Vb(15,"div",12),o.Vb(16,"div",13),o.Vb(17,"h4",14),o.Kc(18,"Amount Requested"),o.Ub(),o.Vb(19,"span",15),o.Kc(20),o.ic(21,"number"),o.Ic(22,v,2,0,"ng-container",16),o.Ub(),o.Ub(),o.Vb(23,"div",13),o.Vb(24,"h4",14),o.Kc(25,"Amount Settled"),o.Ub(),o.Vb(26,"span",15),o.Ic(27,w,3,3,"ng-container",16),o.Ic(28,x,2,0,"ng-container",16),o.Ub(),o.Ub(),o.Ub(),o.Qb(29,"mat-divider",17),o.Vb(30,"div",12),o.Vb(31,"div",13),o.Vb(32,"h4",14),o.Kc(33,"Date Created"),o.Ub(),o.Vb(34,"span",18),o.Kc(35),o.Ub(),o.Ub(),o.Vb(36,"div",13),o.Vb(37,"h4",14),o.Kc(38,"Status"),o.Ub(),o.Vb(39,"span",18),o.Kc(40),o.ic(41,"titlecase"),o.Ub(),o.Ub(),o.Ub(),o.Qb(42,"mat-divider",17),o.Vb(43,"div",12),o.Vb(44,"div",19),o.Vb(45,"h4",14),o.Kc(46,"Description"),o.Ub(),o.Vb(47,"span",15),o.Kc(48),o.Ub(),o.Ub(),o.Ub(),o.Qb(49,"mat-divider",17),o.Vb(50,"div",12),o.Vb(51,"div",19),o.Vb(52,"h4",14),o.Kc(53,"Invoice"),o.Ub(),o.Vb(54,"span",18),o.Kc(55),o.Ub(),o.Ub(),o.Ub(),o.Ic(56,C,28,4,"div",16),o.Vb(57,"div",20),o.Vb(58,"button",21),o.dc("click",function(){return e.onShowAdvanced()}),o.Ic(59,S,2,0,"p",22),o.Ic(60,E,2,0,"ng-template",null,23,o.Jc),o.Ub(),o.Vb(62,"button",24),o.dc("copied",function(t){return e.onCopyPayment(t)}),o.Kc(63,"Copy Invoice"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=o.wc(61);o.Db(1),o.oc("ngClass",o.sc(32,k,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),o.Db(1),o.oc("qrdata",e.invoice.serialized)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),o.Db(4),o.oc("icon",e.faReceipt),o.Db(2),o.Lc(e.screenSize===e.screenSizeEnum.XS?e.newlyAdded?"Created":"Invoice":e.newlyAdded?"Invoice Created":"Invoice Information"),o.Db(3),o.oc("ngClass",o.sc(34,O,e.screenSize===e.screenSizeEnum.XS)),o.Db(2),o.oc("ngClass",o.sc(36,k,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),o.Db(1),o.oc("qrdata",e.invoice.serialized)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),o.Db(6),o.Mc("",o.jc(21,28,e.invoice.amount||0)," Sats"),o.Db(2),o.oc("ngIf",!e.invoice.amount),o.Db(5),o.oc("ngIf",e.invoice.amountSettled),o.Db(1),o.oc("ngIf",!e.invoice.amountSettled),o.Db(7),o.Lc(e.invoice.timestampStr),o.Db(5),o.Lc(o.jc(41,30,e.invoice.status)),o.Db(8),o.Lc(e.invoice.description||"-"),o.Db(7),o.Lc(e.invoice.serialized),o.Db(1),o.oc("ngIf",e.showAdvanced),o.Db(1),o.oc("ngClass",o.tc(38,A,!e.showAdvanced,e.showAdvanced)),o.Db(2),o.oc("ngIf",!e.showAdvanced)("ngIfElse",t),o.Db(3),o.oc("payload",e.invoice.serialized)}},directives:[h.c,h.b,h.a,u.m,d.a,f.a,p.c,m.a,b.a,p.b,u.o,g.a,_.a,y.a],pipes:[u.f,u.x],styles:[""]}),t})()},bu2F:function(t,e,n){"use strict";var i=n("w8CP"),r=n("7ckf"),s=n("qlaj"),o=n("2j6C"),a=i.sum32,c=i.sum32_4,l=i.sum32_5,h=s.ch32,u=s.maj32,d=s.s0_256,f=s.s1_256,p=s.g0_256,m=s.g1_256,b=r.BlockHash,g=[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 _(){if(!(this instanceof _))return new _;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}i.inherits(_,b),t.exports=_,_.blockSize=512,_.outSize=256,_.hmacStrength=192,_.padLength=64,_.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;i{class t{constructor(t,e){this.renderer=t,this.platformId=e,this.colordark="",this.colorlight="",this.level="",this.hidetitle=!1,this.size=0,this.usesvg=!1,this.allowEmptyString=!1,this.qrdata="",this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.scale=4,this.width=10,""!==this.colordark&&console.warn("[angularx-qrcode] colordark is deprecated, use colorDark."),""!==this.colorlight&&console.warn("[angularx-qrcode] colorlight is deprecated, use colorLight."),""!==this.level&&console.warn("[angularx-qrcode] level is deprecated, use errorCorrectionLevel."),!1!==this.hidetitle&&console.warn("[angularx-qrcode] hidetitle is deprecated."),0!==this.size&&console.warn("[angularx-qrcode] size is deprecated, use `width`. Defaults to 10."),!1!==this.usesvg&&console.warn("[angularx-qrcode] usesvg is deprecated, use [elementType]=\"'svg'\".")}ngOnChanges(){this.createQRCode()}isValidQrCodeText(t){return!1===this.allowEmptyString?!(void 0===t||""===t||"null"===t||null===t):!(void 0===t)}toDataURL(){return new Promise((t,e)=>{Object(r.toDataURL)(this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},(n,i)=>{n?e(n):t(i)})})}toCanvas(t){return new Promise((e,n)=>{Object(r.toCanvas)(t,this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},t=>{t?n(t):e("success")})})}toSVG(){return new Promise((t,e)=>{Object(r.toString)(this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,type:"svg",version:this.version,width:this.width},(n,i)=>{n?e(n):t(i)})})}renderElement(t){for(const e of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,e);this.renderer.appendChild(this.qrcElement.nativeElement,t)}createQRCode(){this.version&&this.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),this.version=40):this.version&&this.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),this.version=void 0);try{if(!this.isValidQrCodeText(this.qrdata))throw new Error('[angularx-qrcode] Field `qrdata` is empty, set`allowEmptyString="true"` to overwrite this behaviour.');let t;switch(this.elementType){case"canvas":t=this.renderer.createElement("canvas"),this.toCanvas(t).then(()=>{this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] canvas error: ",t)});break;case"svg":t=this.renderer.createElement("svg","svg"),this.toSVG().then(e=>{t.innerHTML=e,this.renderer.setAttribute(t,"height",""+this.width),this.renderer.setAttribute(t,"width",""+this.width),this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] svg error: ",t)});break;case"url":case"img":default:t=this.renderer.createElement("img"),this.toDataURL().then(e=>{t.setAttribute("src",e),this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] img/url error: ",t)})}}catch(t){console.error("[angularx-qrcode] Error generating QR Code: ",t.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.G),i.Pb(i.D))},t.\u0275cmp=i.Jb({type:t,selectors:[["qrcode"]],viewQuery:function(t,e){if(1&t&&i.Ec(s,!0),2&t){let t;i.vc(t=i.ec())&&(e.qrcElement=t.first)}},inputs:{colordark:"colordark",colorlight:"colorlight",level:"level",hidetitle:"hidetitle",size:"size",usesvg:"usesvg",allowEmptyString:"allowEmptyString",qrdata:"qrdata",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",margin:"margin",scale:"scale",width:"width",version:"version"},features:[i.Bb],decls:2,vars:2,consts:[["qrcElement",""]],template:function(t,e){1&t&&i.Qb(0,"div",null,0),2&t&&i.Fb(e.cssClass)},encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[]}),t})()},c2HN:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",function(){return i})},cO3p:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("Kz+i");Object.keys(i).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})})},cUpR:function(t,e,n){"use strict";n.d(e,"a",function(){return H}),n.d(e,"b",function(){return F}),n.d(e,"c",function(){return T}),n.d(e,"d",function(){return B}),n.d(e,"e",function(){return w});var i=n("SVse"),r=n("8Y7J");class s extends i.C{constructor(){super()}supportsDOMEvents(){return!0}}class o extends s{static makeCurrent(){Object(i.G)(new o)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==e?null:(n=e,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(i.F)(document.cookie,t)}}let a,c=null;const l=new r.s("TRANSITION_ID"),h=[{provide:r.d,useFactory:function(t,e,n){return()=>{n.get(r.e).donePromise.then(()=>{const n=Object(i.E)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[l,i.d,r.t],multi:!0}];class u{static init(){Object(r.bb)(new u)}addToWindow(t){r.sb.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},r.sb.getAllAngularTestabilities=()=>t.getAllTestabilities(),r.sb.getAllAngularRootElements=()=>t.getAllRootElements(),r.sb.frameworkStabilizers||(r.sb.frameworkStabilizers=[]),r.sb.frameworkStabilizers.push(t=>{const e=r.sb.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Object(i.E)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new r.s("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})(),b=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(i.E)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(i.d))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})();const g={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},_=/%COMP%/g;function y(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let w=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new x(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.T.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new C(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case r.T.ShadowDom:return new S(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=y(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(f),r.Zb(b),r.Zb(r.c))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})();class x{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(g[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const r=g[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=g[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(r.I.DashCase|r.I.Important)?t.style.setProperty(e,n,i&r.I.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&r.I.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(n)):this.eventManager.addEventListener(t,e,v(n))}}class C extends x{constructor(t,e,n,i){super(t),this.component=n;const r=y(i+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(_,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(_,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class S extends x{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=y(i.id,i.styles,[]);for(let s=0;s{class t extends p{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(i.d))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})();const k={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},O=new r.s("HammerGestureConfig"),A=new r.s("HammerLoader");let D=(()=>{class t{constructor(){this.events=[],this.overrides={}}buildHammer(t){const e=new Hammer(t,this.options);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(const n in this.overrides)e.get(n).set(this.overrides[n]);return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})();const I=[{provide:d,useClass:(()=>{class t extends p{constructor(t,e,n,i){super(t),this._config=e,this.console=n,this.loader=i}supports(t){return!(!k.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${t}" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.`),1))}addEventListener(t,e,n){const i=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){let i=!1,r=()=>{i=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(r=()=>{});i||(r=this.addEventListener(t,e,n))}).catch(()=>{this.console.warn(`The "${e}" event cannot be bound because the custom Hammer.JS loader failed.`),r=()=>{}}),()=>{r()}}return i.runOutsideAngular(()=>{const r=this._config.buildHammer(t),s=function(t){i.runGuarded(function(){n(t)})};return r.on(e,s),()=>{r.off(e,s),"function"==typeof r.destroy&&r.destroy()}})}isCustomEvent(t){return this._config.events.indexOf(t)>-1}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(i.d),r.Zb(O),r.Zb(r.cb),r.Zb(A,8))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})(),multi:!0,deps:[i.d,O,r.cb,[new r.C,A]]},{provide:O,useClass:D,deps:[]}];let T=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},providers:I}),t})();const L=["alt","control","meta","shift"],P={"\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"},R={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},M={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let j=(()=>{class t extends p{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(i.E)().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let s="";if(L.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),s+=t+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&R.hasOwnProperty(e)&&(e=R[e]))}return P[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),L.forEach(i=>{i!=n&&(0,M[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded(()=>n(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(i.d))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Lb)({factory:function(){return Object(r.Zb)(V)},token:t,providedIn:"root"}),t})();function N(t){return new V(t.get(i.d))}let V=(()=>{class t extends F{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case r.K.NONE:return e;case r.K.HTML:return Object(r.hb)(e,"HTML")?Object(r.zb)(e):Object(r.fb)(this._doc,String(e));case r.K.STYLE:return Object(r.hb)(e,"Style")?Object(r.zb)(e):e;case r.K.SCRIPT:if(Object(r.hb)(e,"Script"))return Object(r.zb)(e);throw new Error("unsafe value used in a script context");case r.K.URL:return Object(r.rb)(e),Object(r.hb)(e,"URL")?Object(r.zb)(e):Object(r.gb)(String(e));case r.K.RESOURCE_URL:if(Object(r.hb)(e,"ResourceURL"))return Object(r.zb)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return Object(r.ib)(t)}bypassSecurityTrustStyle(t){return Object(r.lb)(t)}bypassSecurityTrustScript(t){return Object(r.kb)(t)}bypassSecurityTrustUrl(t){return Object(r.mb)(t)}bypassSecurityTrustResourceUrl(t){return Object(r.jb)(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(i.d))},t.\u0275prov=Object(r.Lb)({factory:function(){return N(Object(r.Zb)(r.p))},token:t,providedIn:"root"}),t})();const U=[{provide:r.D,useValue:i.D},{provide:r.E,useValue:function(){o.makeCurrent(),u.init()},multi:!0},{provide:i.d,useFactory:function(){return Object(r.xb)(document),document},deps:[]}],B=Object(r.U)(r.ab,"browser",U),z=[[],{provide:r.db,useValue:"root"},{provide:r.n,useFactory:function(){return new r.n},deps:[]},{provide:d,useClass:E,multi:!0,deps:[i.d,r.B,r.D]},{provide:d,useClass:j,multi:!0,deps:[i.d]},[],{provide:w,useClass:w,deps:[f,b,r.c]},{provide:r.H,useExisting:w},{provide:m,useExisting:b},{provide:b,useClass:b,deps:[i.d]},{provide:r.P,useClass:r.P,deps:[r.B]},{provide:f,useClass:f,deps:[d,r.B]},[]];let H=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:r.c,useValue:e.appId},{provide:l,useExisting:r.c},h]}}}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)(r.Zb(t,12))},providers:z,imports:[i.c,r.f]}),t})();"undefined"!=typeof window&&window},cp0P:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("HDdC"),r=n("DH7j"),s=n("lJxs"),o=n("XoHu"),a=n("Cfvw");function c(...t){if(1===t.length){const e=t[0];if(Object(r.a)(e))return l(e,null);if(Object(o.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return l(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return l(t=1===t.length&&Object(r.a)(t[0])?t[0]:t,null).pipe(Object(s.a)(t=>e(...t)))}return l(t,null)}function l(t,e){return new i.a(n=>{const i=t.length;if(0===i)return void n.complete();const r=new Array(i);let s=0,o=0;for(let c=0;c{h||(h=!0,o++),r[c]=t},error:t=>n.error(t),complete:()=>{s++,s!==i&&h||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=r[n],t),{}):r),n.complete())}}))}})}},cpEJ:function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return c});var i=n("AytR"),r=n("8Y7J");let s=i.b.isDebugMode;const o=()=>{};let a=(()=>{class t{invokeConsoleMethod(t,e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})(),c=(()=>{class t{get info(){return s?console.log.bind(console):o}get warn(){return s?console.warn.bind(console):o}get error(){return s?console.error.bind(console):o}invokeConsoleMethod(t,e){(console[t]||console.log||o).apply(console,[e])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})()},cqoG:function(t,e,n){var i=n("P7XM"),r=n("olUY"),s=n("tnIz"),o=n("hwdV").Buffer,a=new Array(64);function c(){this.init(),this._w=a,s.call(this,64,56)}i(c,r),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var t=o.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=c},dEYt:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class t{constructor(){this.copied=new i.o}onClick(t){if(t.preventDefault(),!this.payload)return;const e=t=>{(t.clipboardData||window.clipboardData).setData("text",this.payload.toString()),t.preventDefault(),this.copied.emit(this.payload)};document.addEventListener("copy",e,!1),document.execCommand("copy"),document.removeEventListener("copy",e,!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["","rtlClipboard",""]],hostBindings:function(t,e){1&t&&i.dc("click",function(t){return e.onClick(t)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),t})()},dcwN:function(t,e,n){"use strict";function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var r=n("hwdV"),s=n("Edxu"),o=r.Buffer,a=r.kMaxLength,c=global.crypto||global.msCrypto,l=Math.pow(2,32)-1;function h(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>l||t<0)throw new TypeError("offset must be a uint32");if(t>a||t>e)throw new RangeError("offset out of range")}function u(t,e,n){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>l||t<0)throw new TypeError("size must be a uint32");if(t+e>n||t>a)throw new RangeError("buffer too small")}function d(t,e,n,i){if(process.browser){var r=new Uint8Array(t.buffer,e,n);return c.getRandomValues(r),i?void process.nextTick(function(){i(null,t)}):t}if(!i)return s(n).copy(t,e),t;s(n,function(n,r){if(n)return i(n);r.copy(t,e),i(null,t)})}c&&c.getRandomValues||!process.browser?(e.randomFill=function(t,e,n,i){if(!(o.isBuffer(t)||t instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof e)i=e,e=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-e;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return h(e,t.length),u(n,e,t.length),d(t,e,n,i)},e.randomFillSync=function(t,e,n){if(void 0===e&&(e=0),!(o.isBuffer(t)||t instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return h(e,t.length),void 0===n&&(n=t.length-e),u(n,e,t.length),d(t,e,n)}):(e.randomFill=i,e.randomFillSync=i)},dlgc:function(t,e,n){"use strict";var i=e;function r(t){return 1===t.length?"0"+t:t}function s(t){for(var e="",n=0;n>8,o=255&r;s?n.push(s,o):n.push(o)}return n},i.zero2=r,i.toHex=s,i.encode=function(t,e){return"hex"===e?s(t):t}},"e/Dd":function(t,e){var n,i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return i[t]},e.getBCHDigit=function(t){for(var e=0;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return void 0!==n},e.toSJIS=function(t){return n(t)}},e6BP:function(t,e){function n(){this.buffer=[],this.length=0}n.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var n=0;n>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=n},e6WT:function(t,e,n){"use strict";n.d(e,"a",function(){return w}),n.d(e,"b",function(){return k}),n.d(e,"c",function(){return O}),n.d(e,"d",function(){return y});var i=n("SCoL"),r=n("8Y7J"),s=n("8LU1"),o=n("EY2u"),a=n("XNiG"),c=n("xgIS"),l=n("3UWI"),h=n("1G5W"),u=n("SVse");const d=Object(i.f)({passive:!0});let f=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return o.a;const e=Object(s.e)(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new a.a,r="cdk-text-field-autofilled",c=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(r)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(r)&&(e.classList.remove(r),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(r),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",c,d),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",c,d)}}),i}stopMonitoring(t){const e=Object(s.e)(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(i.a),r.Zb(r.B))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(i.a),Object(r.Zb)(r.B))},token:t,providedIn:"root"}),t})(),p=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._platform=e,this._ngZone=n,this._destroyed=new a.a,this._enabled=!0,this._previousMinRows=-1,this._document=i,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=Object(s.f)(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=Object(s.f)(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=Object(s.c)(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();Object(c.a)(t,"resize").pipe(Object(l.a)(16),Object(h.a)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,n=e.value;if(!t&&this._minRows===this._previousMinRows&&n===this._previousValue)return;const i=e.placeholder;e.classList.add(this._measuringClass),e.placeholder="",e.style.height=e.scrollHeight-4+"px",e.classList.remove(this._measuringClass),e.placeholder=i,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=n,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(t){const{selectionStart:e,selectionEnd:n}=t,i=this._getDocument();this._destroyed.isStopped||i.activeElement!==t||t.setSelectionRange(e,n)}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(r.l),r.Pb(i.a),r.Pb(r.B),r.Pb(u.d,8))},t.\u0275dir=r.Kb({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&r.dc("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t})(),m=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t})();var b=n("UhP/"),g=n("Q2Ze"),_=n("s7LF");let y=(()=>{class t extends p{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}return t.\u0275fac=function(e){return v(e||t)},t.\u0275dir=r.Kb({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[r.Ab]}),t})();const v=r.Xb(y),w=new r.s("MAT_INPUT_VALUE_ACCESSOR"),x=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let C=0;class S{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}const E=Object(b.A)(S);let k=(()=>{class t extends E{constructor(t,e,n,r,s,o,c,l,h,u){super(o,r,s,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=l,this._formField=u,this._uid="mat-input-"+C++,this.focused=!1,this.stateChanges=new a.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Object(i.e)().has(t));const d=this._elementRef.nativeElement,f=d.nodeName.toLowerCase();this._inputValueAccessor=c||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&h.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Object(s.c)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=Object(s.c)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Object(i.e)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Object(s.c)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){x.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(r.l),r.Pb(i.a),r.Pb(_.l,10),r.Pb(_.o,8),r.Pb(_.h,8),r.Pb(b.d),r.Pb(w,10),r.Pb(f),r.Pb(r.B),r.Pb(g.a,8))},t.\u0275dir=r.Kb({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&r.dc("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(r.Yb("disabled",e.disabled)("required",e.required),r.Eb("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),r.Hb("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[r.Cb([{provide:g.d,useExisting:t}]),r.Ab,r.Bb]}),t})(),O=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},providers:[b.d],imports:[[m,g.e,b.i],m,g.e]}),t})()},"eA/Y":function(t,e,n){"use strict";t.exports=s;var i=n("J78i"),r=Object.create(n("Onz0"));function s(t){if(!(this instanceof s))return new s(t);i.call(this,t)}r.inherits=n("P7XM"),r.inherits(s,i),s.prototype._transform=function(t,e,n){n(null,t)}},eIep:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("lJxs"),r=n("Cfvw"),s=n("zx2A");function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,s)=>Object(r.a)(t(n,s)).pipe(Object(i.a)((t,i)=>e(n,t,s,i))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new c(t,this.project))}}class c extends s.b{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new s.a(this),i=this.destination;i.add(n),this.innerSubscription=Object(s.c)(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},eQOe:function(t,e){function n(t,n,i){switch(t){case e.Patterns.PATTERN000:return(n+i)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return i%3==0;case e.Patterns.PATTERN011:return(n+i)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2==0;case e.Patterns.PATTERN101:return n*i%2+n*i%3==0;case e.Patterns.PATTERN110:return(n*i%2+n*i%3)%2==0;case e.Patterns.PATTERN111:return(n*i%3+(n+i)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){for(var e=t.size,n=0,i=0,r=0,s=null,o=null,a=0;a=5&&(n+=i-5+3),s=l,i=1),(l=t.get(c,a))===o?r++:(r>=5&&(n+=r-5+3),o=l,r=1)}i>=5&&(n+=i-5+3),r>=5&&(n+=r-5+3)}return n},e.getPenaltyN2=function(t){for(var e=t.size,n=0,i=0;i=10&&(1488===i||93===i)&&n++,r=r<<1&2047|t.get(o,s),o>=10&&(1488===r||93===r)&&n++}return 40*n},e.getPenaltyN4=function(t){for(var e=0,n=t.data.length,i=0;i=0);return r},s.prototype._randrange=function(t,e){var n=e.sub(t);return t.add(this._randbelow(n))},s.prototype.test=function(t,e,n){var r=t.bitLength(),s=i.mont(t),o=new i(1).toRed(s);e||(e=Math.max(1,r/48|0));for(var a=t.subn(1),c=0;!a.testn(c);c++);for(var l=t.shrn(c),h=a.toRed(s);e>0;e--){var u=this._randrange(new i(2),a);n&&n(u);var d=u.toRed(s).redPow(l);if(0!==d.cmp(o)&&0!==d.cmp(h)){for(var f=1;f0;e--){var h=this._randrange(new i(2),o),u=t.gcd(h);if(0!==u.cmpn(1))return u;var d=h.toRed(r).redPow(c);if(0!==d.cmp(s)&&0!==d.cmp(l)){for(var f=1;f=0&&t.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(i){return n}}},f3pb:function(t,e,n){"use strict";const i=e;i.bignum=n("AQYT"),i.define=n("7zrB").define,i.base=n("Qd/k"),i.constants=n("AhHn"),i.decoders=n("IPZY"),i.encoders=n("ND7S")},fSpj:function(t,e){var n=Math.pow(2,30)-1;t.exports=function(t,e){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>n||e!=e)throw new TypeError("Bad key length")}},fXKp:function(t,e,n){"use strict";var i=n("hwdV").Buffer,r=i.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(i.isEncoding===r||!r(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=l,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=h,this.end=u,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"\ufffd"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):e}function h(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function u(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.StringDecoder=s,s.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(r>0&&(t.lastNeed=r-1),r):--i=0?(r>0&&(t.lastNeed=r-2),r):--i=0?(r>0&&(2===r?r=0:t.lastNeed=r-3),r):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},fZJM:function(t,e,n){var i=e;i.utils=n("w8CP"),i.common=n("7ckf"),i.sha=n("WRkp"),i.ripemd=n("u0Sq"),i.hmac=n("ITfd"),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},fkiA:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=(i=n("rE9v"))&&"object"==typeof i&&"default"in i?i.default:i;e.keyDecoder=(t,e)=>r.decode(t).toString(e),e.keyEncoder=(t,e)=>r.encode(Buffer.from(t,e).toString("ascii")).toString().replace(/=/g,"")},fnjI:function(t,e,n){var i=n("P7XM"),r=n("tnIz"),s=n("hwdV").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,r.call(this,64,56)}function l(t){return t<<5|t>>>27}function h(t){return t<<30|t>>>2}function u(t,e,n,i){return 0===t?e&n|~e&i:2===t?e&n|e&i|n&i:e^n^i}i(c,r),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,r=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,d=0;d<16;++d)n[d]=t.readInt32BE(4*d);for(;d<80;++d)n[d]=(e=n[d-3]^n[d-8]^n[d-14]^n[d-16])<<1|e>>>31;for(var f=0;f<80;++f){var p=~~(f/20),m=l(i)+u(p,r,s,a)+c+n[f]+o[p]|0;c=a,a=s,s=h(r),r=i,i=m}this._a=i+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=s.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},g2Dh:function(t,e,n){"use strict";const i=n("0cit").Reporter,r=n("YoN+").EncoderBuffer,s=n("YoN+").DecoderBuffer,o=n("2j6C"),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function l(t,e,n){const i={};this._baseState=i,i.name=n,i.enc=t,i.parent=e||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}t.exports=l;const h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){const t=this._baseState,e={};h.forEach(function(n){e[n]=t[n]});const n=new this.constructor(e.parent);return n._baseState=e,n},l.prototype._wrap=function(){const t=this._baseState;c.forEach(function(e){this[e]=function(){const n=new this.constructor(this);return t.children.push(n),n[e].apply(n,arguments)}},this)},l.prototype._init=function(t){const e=this._baseState;o(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),o.equal(e.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(t){const e=this._baseState,n=t.filter(function(t){return t instanceof this.constructor},this);t=t.filter(function(t){return!(t instanceof this.constructor)},this),0!==n.length&&(o(null===e.children),e.children=n,n.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(o(null===e.args),e.args=t,e.reverseArgs=t.map(function(t){if("object"!=typeof t||t.constructor!==Object)return t;const e={};return Object.keys(t).forEach(function(n){n==(0|n)&&(n|=0),e[t[n]]=n}),e}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(t){l.prototype[t]=function(){throw new Error(t+" not implemented for encoding: "+this._baseState.enc)}}),a.forEach(function(t){l.prototype[t]=function(){const e=this._baseState,n=Array.prototype.slice.call(arguments);return o(null===e.tag),e.tag=t,this._useArgs(n),this}}),l.prototype.use=function(t){o(t);const e=this._baseState;return o(null===e.use),e.use=t,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(t){const e=this._baseState;return o(null===e.default),e.default=t,e.optional=!0,this},l.prototype.explicit=function(t){const e=this._baseState;return o(null===e.explicit&&null===e.implicit),e.explicit=t,this},l.prototype.implicit=function(t){const e=this._baseState;return o(null===e.explicit&&null===e.implicit),e.implicit=t,this},l.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},l.prototype.key=function(t){const e=this._baseState;return o(null===e.key),e.key=t,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(t){const e=this._baseState;return o(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},l.prototype.contains=function(t){const e=this._baseState;return o(null===e.use),e.contains=t,this},l.prototype._decode=function(t,e){const n=this._baseState;if(null===n.parent)return t.wrapResult(n.children[0]._decode(t,e));let i,r=n.default,o=!0,a=null;if(null!==n.key&&(a=t.enterKey(n.key)),n.optional){let i=null;if(null!==n.explicit?i=n.explicit:null!==n.implicit?i=n.implicit:null!==n.tag&&(i=n.tag),null!==i||n.any){if(o=this._peekTag(t,i,n.any),t.isError(o))return o}else{const i=t.save();try{null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),o=!0}catch(c){o=!1}t.restore(i)}}if(n.obj&&o&&(i=t.enterObject()),o){if(null!==n.explicit){const e=this._decodeTag(t,n.explicit);if(t.isError(e))return e;t=e}const i=t.offset;if(null===n.use&&null===n.choice){let e;n.any&&(e=t.save());const i=this._decodeTag(t,null!==n.implicit?n.implicit:n.tag,n.any);if(t.isError(i))return i;n.any?r=t.raw(e):t=i}if(e&&e.track&&null!==n.tag&&e.track(t.path(),i,t.length,"tagged"),e&&e.track&&null!==n.tag&&e.track(t.path(),t.offset,t.length,"content"),n.any||(r=null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e)),t.isError(r))return r;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(n){n._decode(t,e)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const i=new s(r);r=this._getUse(n.contains,t._reporterState.obj)._decode(i,e)}}return n.obj&&o&&(r=t.leaveObject(i)),null===n.key||null===r&&!0!==o?null!==a&&t.exitKey(a):t.leaveKey(a,n.key,r),r},l.prototype._decodeGeneric=function(t,e,n){const i=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,i.args[0],n):/str$/.test(t)?this._decodeStr(e,t,n):"objid"===t&&i.args?this._decodeObjid(e,i.args[0],i.args[1],n):"objid"===t?this._decodeObjid(e,null,null,n):"gentime"===t||"utctime"===t?this._decodeTime(e,t,n):"null_"===t?this._decodeNull(e,n):"bool"===t?this._decodeBool(e,n):"objDesc"===t?this._decodeStr(e,t,n):"int"===t||"enum"===t?this._decodeInt(e,i.args&&i.args[0],n):null!==i.use?this._getUse(i.use,e._reporterState.obj)._decode(e,n):e.error("unknown tag: "+t)},l.prototype._getUse=function(t,e){const n=this._baseState;return n.useDecoder=this._use(t,e),o(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(t,e){const n=this._baseState;let i=null,r=!1;return Object.keys(n.choice).some(function(s){const o=t.save(),a=n.choice[s];try{const n=a._decode(t,e);if(t.isError(n))return!1;i={type:s,value:n},r=!0}catch(c){return t.restore(o),!1}return!0},this),r?i:t.error("Choice not matched")},l.prototype._createEncoderBuffer=function(t){return new r(t,this.reporter)},l.prototype._encode=function(t,e,n){const i=this._baseState;if(null!==i.default&&i.default===t)return;const r=this._encodeValue(t,e,n);return void 0===r||this._skipDefault(r,e,n)?void 0:r},l.prototype._encodeValue=function(t,e,n){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(t,e||new i);let s=null;if(this.reporter=e,r.optional&&void 0===t){if(null===r.default)return;t=r.default}let o=null,a=!1;if(r.any)s=this._createEncoderBuffer(t);else if(r.choice)s=this._encodeChoice(t,e);else if(r.contains)o=this._getUse(r.contains,n)._encode(t,e),a=!0;else if(r.children)o=r.children.map(function(n){if("null_"===n._baseState.tag)return n._encode(null,e,t);if(null===n._baseState.key)return e.error("Child should have a key");const i=e.enterKey(n._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");const r=n._encode(t[n._baseState.key],e,t);return e.leaveKey(i),r},this).filter(function(t){return t}),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return e.error("Too many args for : "+r.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,o=this._createEncoderBuffer(t.map(function(n){return this._getUse(this._baseState.args[0],t)._encode(n,e)},n))}else null!==r.use?s=this._getUse(r.use,n)._encode(t,e):(o=this._encodePrimitive(r.tag,t),a=!0);if(!r.any&&null===r.choice){const t=null!==r.implicit?r.implicit:r.tag,n=null===r.implicit?"universal":"context";null===t?null===r.use&&e.error("Tag could be omitted only for .use()"):null===r.use&&(s=this._encodeComposite(t,a,n,o))}return null!==r.explicit&&(s=this._encodeComposite(r.explicit,!1,"context",s)),s},l.prototype._encodeChoice=function(t,e){const n=this._baseState,i=n.choice[t.type];return i||o(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),i._encode(t.value,e)},l.prototype._encodePrimitive=function(t,e){const n=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&n.args)return this._encodeObjid(e,n.reverseArgs[0],n.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,n.args&&n.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},l.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},l.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},g9U9:function(t,e){t.exports=function(t,e){for(var n=t.length,i=-1;++it[e])}var r;Object.defineProperty(e,"__esModule",{value:!0}),(r=e.HashAlgorithms||(e.HashAlgorithms={})).SHA1="sha1",r.SHA256="sha256",r.SHA512="sha512";const s=i(e.HashAlgorithms);var o;(o=e.KeyEncodings||(e.KeyEncodings={})).ASCII="ascii",o.BASE64="base64",o.HEX="hex",o.LATIN1="latin1",o.UTF8="utf8";const a=i(e.KeyEncodings);var c;(c=e.Strategy||(e.Strategy={})).HOTP="hotp",c.TOTP="totp";const l=i(e.Strategy),h=()=>{throw new Error("Please provide an options.createDigest implementation.")};function u(t){return/^(\d+)$/.test(t)}function d(t,e,n){return t.length>=e?t:`${Array(e+1).join(n)}${t}`.slice(-1*e)}function f(t){const e=`otpauth://${t.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,n=[];if(l.indexOf(t.type)<0)throw new Error(`Expecting options.type to be one of ${l.join(", ")}. Received ${t.type}.`);if("hotp"===t.type){if(null==t.counter||"number"!=typeof t.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');n.push("&counter="+t.counter)}return"totp"===t.type&&t.step&&n.push("&period="+t.step),t.digits&&n.push("&digits="+t.digits),t.algorithm&&n.push("&algorithm="+t.algorithm.toUpperCase()),t.issuer&&n.push("&issuer="+encodeURIComponent(t.issuer)),e.replace("{labelPrefix}",encodeURIComponent(t.issuer||t.accountName)).replace("{accountName}",encodeURIComponent(t.accountName)).replace("{secret}",t.secret).replace("{query}",n.join(""))}class p{constructor(t={}){this._defaultOptions=Object.freeze({...t}),this._options=Object.freeze({})}create(t={}){return new p(t)}clone(t={}){const e=this.create({...this._defaultOptions,...t});return e.options=this._options,e}get options(){return Object.freeze({...this._defaultOptions,...this._options})}set options(t){this._options=Object.freeze({...this._options,...t})}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function m(t){if("function"!=typeof t.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof t.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof t.digits)throw new Error("Expecting options.digits to be a number.");if(!t.algorithm||s.indexOf(t.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${s.join(", ")}. Received ${t.algorithm}.`);if(!t.encoding||a.indexOf(t.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${a.join(", ")}. Received ${t.encoding}.`)}const b=(t,e,n)=>Buffer.from(e,n).toString("hex");function g(){return{algorithm:e.HashAlgorithms.SHA1,createHmacKey:b,createDigest:h,digits:6,encoding:e.KeyEncodings.ASCII}}function _(t){const e={...g(),...t};return m(e),Object.freeze(e)}function y(t){return d(t.toString(16),16,"0")}function v(t,e){const n=Buffer.from(t,"hex"),i=15&n[n.length-1],r=((127&n[i])<<24|(255&n[i+1])<<16|(255&n[i+2])<<8|255&n[i+3])%Math.pow(10,e);return d(String(r),e,"0")}function w(t,e,n){return v(n.digest||function(t,e,n){const i=y(e),r=n.createHmacKey(n.algorithm,t,n.encoding);return n.createDigest(n.algorithm,r,i)}(t,e,n),n.digits)}function x(t,e,n,i){return!!u(t)&&t===w(e,n,i)}function C(t,n,i,r,s){return f({algorithm:s.algorithm,digits:s.digits,type:e.Strategy.HOTP,accountName:t,counter:r,issuer:n,secret:i})}class S extends p{create(t={}){return new S(t)}allOptions(){return _(this.options)}generate(t,e){return w(t,e,this.allOptions())}check(t,e,n){return x(t,e,n,this.allOptions())}verify(t){if("object"!=typeof t)throw new Error("Expecting argument 0 of verify to be an object");return this.check(t.token,t.secret,t.counter)}keyuri(t,e,n,i){return C(t,e,n,i,this.allOptions())}}function E(t){if("number"==typeof t)return[Math.abs(t),Math.abs(t)];if(Array.isArray(t)){const[e,n]=t;if("number"==typeof e&&"number"==typeof n)return[Math.abs(e),Math.abs(n)]}throw new Error("Expecting options.window to be an number or [number, number].")}function k(t){if(m(t),E(t.window),"number"!=typeof t.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof t.step)throw new Error("Expecting options.step to be a number.")}const O=(t,e,n)=>{const i=t.length,r=Buffer.from(t,e).toString("hex");if(i{switch(t){case e.HashAlgorithms.SHA1:return O(n,i,20);case e.HashAlgorithms.SHA256:return O(n,i,32);case e.HashAlgorithms.SHA512:return O(n,i,64);default:throw new Error(`Expecting algorithm to be one of ${s.join(", ")}. Received ${t}.`)}};function D(){return{algorithm:e.HashAlgorithms.SHA1,createDigest:h,createHmacKey:A,digits:6,encoding:e.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function I(t){const e={...D(),...t};return k(e),Object.freeze(e)}function T(t,e){return Math.floor(t/e/1e3)}function L(t,e){return w(t,T(e.epoch,e.step),e)}function P(t,e,n,i){const r=[];if(0===i)return r;for(let s=1;s<=i;s++)r.push(t+e*s*n);return r}function R(t,e,n){const i=E(n),r=1e3*e;return{current:t,past:P(t,-1,r,i[0]),future:P(t,1,r,i[1])}}function M(t,e,n){return!!u(t)&&t===L(e,n)}function j(t,e,n,i){let r=null;return t.some((t,s)=>!!M(e,n,{...i,epoch:t})&&(r=s+1,!0)),r}function F(t,e,n){if(M(t,e,n))return 0;const i=R(n.epoch,n.step,n.window),r=j(i.past,t,e,n);return null!==r?-1*r:j(i.future,t,e,n)}function N(t,e){return Math.floor(t/1e3)%e}function V(t,e){return e-N(t,e)}function U(t,n,i,r){return f({algorithm:r.algorithm,digits:r.digits,step:r.step,type:e.Strategy.TOTP,accountName:t,issuer:n,secret:i})}class B extends S{create(t={}){return new B(t)}allOptions(){return I(this.options)}generate(t){return L(t,this.allOptions())}checkDelta(t,e){return F(t,e,this.allOptions())}check(t,e){return"number"==typeof this.checkDelta(t,e)}verify(t){if("object"!=typeof t)throw new Error("Expecting argument 0 of verify to be an object");return this.check(t.token,t.secret)}timeRemaining(){const t=this.allOptions();return V(t.epoch,t.step)}timeUsed(){const t=this.allOptions();return N(t.epoch,t.step)}keyuri(t,e,n){return U(t,e,n,this.allOptions())}}function z(t){if(k(t),"function"!=typeof t.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(t.keyEncoder&&"function"!=typeof t.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function H(){return{algorithm:e.HashAlgorithms.SHA1,createDigest:h,createHmacKey:A,digits:6,encoding:e.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function W(t){const e={...H(),...t};return z(e),Object.freeze(e)}function K(t,e){return e.keyEncoder(t,e.encoding)}function q(t,e){return e.keyDecoder(t,e.encoding)}function Y(t,e){return K(e.createRandomBytes(t,e.encoding),e)}function Z(t,e){return L(q(t,e),e)}function X(t,e,n){return F(t,q(e,n),n)}class G extends B{create(t={}){return new G(t)}allOptions(){return W(this.options)}generate(t){return Z(t,this.allOptions())}checkDelta(t,e){return X(t,e,this.allOptions())}encode(t){return K(t,this.allOptions())}decode(t){return q(t,this.allOptions())}generateSecret(t=10){return Y(t,this.allOptions())}}e.Authenticator=G,e.HASH_ALGORITHMS=s,e.HOTP=S,e.KEY_ENCODINGS=a,e.OTP=p,e.STRATEGY=l,e.TOTP=B,e.authenticatorCheckWithWindow=X,e.authenticatorDecoder=q,e.authenticatorDefaultOptions=H,e.authenticatorEncoder=K,e.authenticatorGenerateSecret=Y,e.authenticatorOptionValidator=z,e.authenticatorOptions=W,e.authenticatorToken=Z,e.createDigestPlaceholder=h,e.hotpCheck=x,e.hotpCounter=y,e.hotpCreateHmacKey=b,e.hotpDefaultOptions=g,e.hotpDigestToToken=v,e.hotpKeyuri=C,e.hotpOptions=_,e.hotpOptionsValidator=m,e.hotpToken=w,e.isTokenValid=u,e.keyuri=f,e.objectValues=i,e.padStart=d,e.totpCheck=M,e.totpCheckByEpoch=j,e.totpCheckWithWindow=F,e.totpCounter=T,e.totpCreateHmacKey=A,e.totpDefaultOptions=D,e.totpEpochAvailable=R,e.totpKeyuri=U,e.totpOptions=I,e.totpOptionsValidator=k,e.totpPadSecret=O,e.totpTimeRemaining=V,e.totpTimeUsed=N,e.totpToken=L},gRHU:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("2fFW"),r=n("NJ4a");const s={closed:!0,next(t){},error(t){if(i.a.useDeprecatedSynchronousErrorHandling)throw t;Object(r.a)(t)},complete(){}}},gvAe:function(t,e,n){var i=n("OfWw"),r=n("hwdV").Buffer,s=n("ZDAU"),o=n("P7XM"),a=n("P2KE"),c=n("jIre"),l=n("vZ2G");function h(t,e,n,o){s.call(this);var c=r.alloc(4,0);this._cipher=new i.AES(e);var h=this._cipher.encryptBlock(c);this._ghash=new a(h),n=function(t,e,n){if(12===e.length)return t._finID=r.concat([e,r.from([0,0,0,1])]),r.concat([e,r.from([0,0,0,2])]);var i=new a(n),s=e.length,o=s%16;i.update(e),o&&i.update(r.alloc(o=16-o,0)),i.update(r.alloc(8,0));var c=8*s,h=r.alloc(8);h.writeUIntBE(c,0,8),i.update(h),t._finID=i.state;var u=r.from(t._finID);return l(u),u}(this,n,h),this._prev=r.from(n),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}o(h,s),h.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=r.alloc(e,0),this._ghash.update(e))}this._called=!0;var n=this._mode.encrypt(this,t);return this._ghash.update(this._decrypt?t:n),this._len+=t.length,n},h.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var n=0;t.length!==e.length&&n++;for(var i=Math.min(t.length,e.length),r=0;r{class t{constructor(t,e,n){this.httpClient=t,this.logger=e,this.store=n,this.CHILD_API_URL=o.a+"/lnd",this.loopUrl=""}loopOut(t,e,n,i,r,a,c,l,h,u){let d={amount:t,targetConf:n,swapRoutingFee:i,minerFee:r,prepayRoutingFee:a,prepayAmt:c,swapFee:l,swapPublicationDeadline:h,destAddress:u};return""!==e&&(d.chanId=e),this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/out",this.httpClient.post(this.loopUrl,d).pipe(Object(s.a)(t=>this.handleErrorWithoutAlert("Loop Out for Channel: "+e,t)))}getLoopOutTerms(){return this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe(Object(s.a)(t=>this.handleErrorWithoutAlert("Loop Out Terms",t)))}getLoopOutQuote(t,e,n){let r=new i.d;return r=r.append("targetConf",e.toString()),r=r.append("swapPublicationDeadline",n.toString()),this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/out/quote/"+t,this.httpClient.get(this.loopUrl,{params:r}).pipe(Object(s.a)(t=>this.handleErrorWithoutAlert("Loop Out Quote",t)))}getLoopOutTermsAndQuotes(t){let e=new i.d;return e=e.append("targetConf",t.toString()),e=e.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/out/termsAndQuotes",this.httpClient.get(this.loopUrl,{params:e}).pipe(Object(s.a)(t=>this.handleErrorWithAlert(this.loopUrl,t)))}loopIn(t,e,n,i,r){const a={amount:t,swapFee:e,minerFee:n,lastHop:i,externalHtlc:r};return this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/in",this.httpClient.post(this.loopUrl,a).pipe(Object(s.a)(t=>this.handleErrorWithoutAlert("Loop In",t)))}getLoopInTerms(){return this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe(Object(s.a)(t=>this.handleErrorWithoutAlert("Loop In Terms",t)))}getLoopInQuote(t,e,n){let r=new i.d;return r=r.append("targetConf",e.toString()),r=r.append("swapPublicationDeadline",n.toString()),this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/in/quote/"+t,this.httpClient.get(this.loopUrl,{params:r}).pipe(Object(s.a)(t=>this.handleErrorWithoutAlert("Loop In Qoute",t)))}getLoopInTermsAndQuotes(t){let e=new i.d;return e=e.append("targetConf",t.toString()),e=e.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/in/termsAndQuotes",this.httpClient.get(this.loopUrl,{params:e}).pipe(Object(s.a)(t=>this.handleErrorWithAlert(this.loopUrl,t)))}getSwap(t){return this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/swap/"+t,this.httpClient.get(this.loopUrl).pipe(Object(s.a)(e=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+t,e)))}handleErrorWithoutAlert(t,e){return this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(e)),this.store.dispatch(new l.i),401===e.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new l.x)):"ECONNREFUSED"!==e.error.errno&&"ECONNREFUSED"!==e.error.error.errno||this.store.dispatch(new l.C({data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:"ECONNREFUSED",message:"Unable to Connect to Loop Server",URL:t},component:a.a}})),Object(r.a)(e)}handleErrorWithAlert(t,e){return 401===e.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch(new l.x)),e.message=e.error&&e.error.error&&e.error.error.error&&"string"==typeof e.error.error.error?e.error.error.error:e.error&&e.error.error&&"string"==typeof e.error.error?e.error.error:e.error&&"string"==typeof e.error?e.error:"Unknown Error",this.logger.error(e),this.store.dispatch(new l.i),401===e.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new l.x)):this.store.dispatch(new l.C("ECONNREFUSED"===e.errno?{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:"ECONNREFUSED",message:"Unable to Connect to Loop Server",URL:t},component:a.a}}:{data:{type:c.b.ERROR,alertTitle:"ERROR",message:{code:e.code?e.code:e.status,message:e.message?e.message:"Unknown Error",URL:t},component:a.a}})),Object(r.a)(e)}}return t.\u0275fac=function(e){return new(e||t)(h.Zb(i.b),h.Zb(u.b),h.Zb(d.h))},t.\u0275prov=h.Lb({token:t,factory:t.\u0275fac}),t})()},hbMA:function(t,e,n){"use strict";const i=n("P7XM"),r=n("N2jm");function s(t){r.call(this,t),this.enc="pem"}i(s,r),t.exports=s,s.prototype.encode=function(t,e){const n=r.prototype.encode.call(this,t).toString("base64"),i=["-----BEGIN "+e.label+"-----"];for(let r=0;r{class t extends r.c{}return t.\u0275fac=function(e){return A(e||t)},t.\u0275dir=o.Kb({type:t,selectors:[["","matStepLabel",""]],features:[o.Ab]}),t})();const A=o.Xb(O);let D=(()=>{class t{constructor(){this.changes=new h.a,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(o.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const I={provide:D,deps:[[new o.C,new o.M,D]],useFactory:function(t){return t||new D}};class T extends r.b{constructor(t){super(t)}}const L=Object(c.x)(T,"primary");let P=(()=>{class t extends L{constructor(t,e,n,i){super(n),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(){this._focusMonitor.focusVia(this._elementRef,"program")}_stringLabel(){return this.label instanceof O?null:this.label}_templateLabel(){return this.label instanceof O?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?""+(this.index+1):"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(D),o.Pb(p.h),o.Pb(o.l),o.Pb(o.h))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[o.Ab],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(o.Qb(0,"div",0),o.Vb(1,"div"),o.Vb(2,"div",1),o.Ic(3,b,1,2,"ng-container",2),o.Ic(4,y,3,2,"ng-container",3),o.Ub(),o.Ub(),o.Vb(5,"div",4),o.Ic(6,v,2,1,"div",5),o.Ic(7,w,2,1,"div",5),o.Ic(8,x,2,1,"div",6),o.Ic(9,C,2,1,"div",7),o.Ub()),2&t&&(o.oc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),o.Db(1),o.Gb("mat-step-icon-state-",e.state," mat-step-icon"),o.Hb("mat-step-icon-selected",e.selected),o.Db(1),o.oc("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),o.Db(1),o.oc("ngSwitchCase",!0),o.Db(2),o.Hb("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),o.Db(1),o.oc("ngIf",e._templateLabel()),o.Db(1),o.oc("ngIf",e._stringLabel()),o.Db(1),o.oc("ngIf",e.optional&&"error"!=e.state),o.Db(1),o.oc("ngIf","error"==e.state))},directives:[c.r,s.q,s.r,s.s,s.o,s.t,l.a],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const R={horizontalStepTransition:Object(f.m)("stepTransition",[Object(f.j)("previous",Object(f.k)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Object(f.j)("current",Object(f.k)({transform:"none",visibility:"visible"})),Object(f.j)("next",Object(f.k)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Object(f.l)("* => *",Object(f.e)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:Object(f.m)("stepTransition",[Object(f.j)("previous",Object(f.k)({height:"0px",visibility:"hidden"})),Object(f.j)("next",Object(f.k)({height:"0px",visibility:"hidden"})),Object(f.j)("current",Object(f.k)({height:"*",visibility:"visible"})),Object(f.l)("* <=> current",Object(f.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let M=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(o.O))},t.\u0275dir=o.Kb({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),j=(()=>{class t extends r.a{constructor(t,e,n){super(t,n),this._errorStateMatcher=e}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(Object(o.X)(()=>F)),o.Pb(c.d,4),o.Pb(r.h,8))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,n){if(1&t&&o.Ib(n,O,!0),2&t){let t;o.vc(t=o.ec())&&(e.stepLabel=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[o.Cb([{provide:c.d,useExisting:t},{provide:r.a,useExisting:t}]),o.Ab],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(o.nc(),o.Ic(0,S,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),F=(()=>{class t extends r.d{constructor(){super(...arguments),this.steps=new o.F,this.animationDone=new o.o,this._iconOverrides={},this._animationDone=new h.a}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this.steps.changes.pipe(Object(u.a)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Object(d.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),Object(u.a)(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return N(e||t)},t.\u0275dir=o.Kb({type:t,selectors:[["","matStepper",""]],contentQueries:function(t,e,n){if(1&t&&(o.Ib(n,j,!0),o.Ib(n,M,!0)),2&t){let t;o.vc(t=o.ec())&&(e._steps=t),o.vc(t=o.ec())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&o.Pc(P,!0),2&t){let t;o.vc(t=o.ec())&&(e._stepHeader=t)}},inputs:{disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},features:[o.Cb([{provide:r.d,useExisting:t}]),o.Ab]}),t})();const N=o.Xb(F);let V=(()=>{class t extends F{constructor(t,e,n,i){super(t,e,n,i),this._orientation="vertical"}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(m.b,8),o.Pb(o.h),o.Pb(o.l),o.Pb(s.d))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-vertical-stepper"]],hostAttrs:["aria-orientation","vertical","role","tablist",1,"mat-stepper-vertical"],inputs:{selectedIndex:"selectedIndex"},exportAs:["matVerticalStepper"],features:[o.Cb([{provide:F,useExisting:t},{provide:r.d,useExisting:t}]),o.Ab],decls:1,vars:1,consts:[["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&o.Ic(0,k,6,25,"div",0),2&t&&o.oc("ngForOf",e.steps)},directives:[s.n,P,s.t],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[R.verticalStepTransition]},changeDetection:0}),t})(),U=(()=>{class t extends r.f{}return t.\u0275fac=function(e){return B(e||t)},t.\u0275dir=o.Kb({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,e){2&t&&o.Yb("type",e.type)},inputs:{type:"type"},features:[o.Ab]}),t})();const B=o.Xb(U);let z=(()=>{class t extends r.g{}return t.\u0275fac=function(e){return H(e||t)},t.\u0275dir=o.Kb({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&o.Yb("type",e.type)},inputs:{type:"type"},features:[o.Ab]}),t})();const H=o.Xb(z);let W=(()=>{class t{}return t.\u0275mod=o.Nb({type:t}),t.\u0275inj=o.Mb({factory:function(e){return new(e||t)},providers:[I,c.d],imports:[[c.i,s.c,i.h,a.b,r.e,l.b,c.s],c.i]}),t})()},"i+bA":function(t,e,n){var i=n("hwdV").Buffer;t.exports=function(t,e,n){if(i.isBuffer(t))return t;if("string"==typeof t)return i.from(t,e);if(ArrayBuffer.isView(t))return i.from(t.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},i3FT:function(t,e,n){"use strict";function i(t){const e={};return Object.keys(t).forEach(function(n){(0|n)==n&&(n|=0),e[t[n]]=n}),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=i(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=i(e.tag)},i5UE:function(t,e,n){"use strict";var i=n("w8CP"),r=n("tSWc");function s(){if(!(this instanceof s))return new s;r.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}i.inherits(s,r),t.exports=s,s.blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},iELJ:function(t,e,n){"use strict";n.d(e,"a",function(){return O}),n.d(e,"b",function(){return A}),n.d(e,"c",function(){return L}),n.d(e,"d",function(){return P}),n.d(e,"e",function(){return R}),n.d(e,"f",function(){return E});var i=n("1O3W"),r=n("1z/I"),s=n("8Y7J"),o=n("UhP/"),a=n("9gLZ"),c=n("SVse"),l=n("XNiG"),h=n("NXyV"),u=n("LRne"),d=n("pLZG"),f=n("IzEk"),p=n("JX91"),m=n("GS7A"),b=n("Ht+U"),g=n("YEUz");function _(t,e){}class y{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const v={dialogContainer:Object(m.m)("dialogContainer",[Object(m.j)("void, exit",Object(m.k)({opacity:0,transform:"scale(0.7)"})),Object(m.j)("enter",Object(m.k)({transform:"none"})),Object(m.l)("* => enter",Object(m.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(m.k)({transform:"none",opacity:1}))),Object(m.l)("* => void, * => exit",Object(m.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(m.k)({opacity:0})))])};let w=(()=>{class t extends r.a{constructor(t,e,n,i,r,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=r,this._focusMonitor=o,this._animationStateChanged=new s.o,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.l),s.Pb(g.i),s.Pb(s.h),s.Pb(c.d,8),s.Pb(y),s.Pb(g.h))},t.\u0275dir=s.Kb({type:t,viewQuery:function(t,e){if(1&t&&s.Ec(r.c,!0),2&t){let t;s.vc(t=s.ec())&&(e._portalOutlet=t.first)}},features:[s.Ab]}),t})(),x=(()=>{class t extends w{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return C(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.Gc("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(s.Yb("id",e._id),s.Eb("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.Hc("@dialogContainer",e._state))},features:[s.Ab],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.Ic(0,_,0,0,"ng-template",0)},directives:[r.c],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[v.dialogContainer]}}),t})();const C=s.Xb(x);let S=0;class E{constructor(t,e,n="mat-dialog-"+S++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new l.a,this._afterClosed=new l.a,this._beforeClosed=new l.a,this._state=0,e._id=n,e._animationStateChanged.pipe(Object(d.a)(t=>"opened"===t.state),Object(f.a)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Object(d.a)(t=>"closed"===t.state),Object(f.a)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Object(d.a)(t=>t.keyCode===b.f&&!this.disableClose&&!Object(b.r)(t))).subscribe(t=>{t.preventDefault(),k(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():k(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Object(d.a)(t=>"closing"===t.state),Object(f.a)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function k(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const O=new s.s("MatDialogData"),A=new s.s("mat-dialog-default-options"),D=new s.s("mat-dialog-scroll-strategy"),I={provide:D,deps:[i.c],useFactory:function(t){return()=>t.scrollStrategies.block()}};let T=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=r,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.a,this._afterOpenedAtThisLevel=new l.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(h.a)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Object(p.a)(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new y)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),r=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),i._initializeWithAttachedContent(),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new i.d({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=s.t.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:y,useValue:e}]}),i=new r.d(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const o=new this._dialogRefConstructor(n,e,i.id);if(t instanceof s.O)e.attachTemplatePortal(new r.i(t,null,{$implicit:i.data,dialogRef:o}));else{const n=this._createInjector(i,o,e),s=e.attachComponentPortal(new r.d(t,i.viewContainerRef,n));o.componentInstance=s.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(a.b,null)||r.push({provide:a.b,useValue:{value:t.direction,change:Object(u.a)()}}),s.t.create({parent:i||this._injector,providers:r})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(i.c),s.Pb(s.t),s.Pb(void 0),s.Pb(void 0),s.Pb(i.e),s.Pb(void 0),s.Pb(s.Q),s.Pb(s.Q),s.Pb(s.s))},t.\u0275dir=s.Kb({type:t}),t})(),L=(()=>{class t extends T{constructor(t,e,n,i,r,s,o){super(t,e,i,s,o,r,E,x,O)}}return t.\u0275fac=function(e){return new(e||t)(s.Zb(i.c),s.Zb(s.t),s.Zb(c.j,8),s.Zb(A,8),s.Zb(D),s.Zb(t,12),s.Zb(i.e))},t.\u0275prov=s.Lb({token:t,factory:t.\u0275fac}),t})(),P=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function(t,e){let n=t.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(t=>t.id===n.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){k(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(E,8),s.Pb(s.l),s.Pb(L))},t.\u0275dir=s.Kb({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.dc("click",function(t){return e._onButtonClick(t)}),2&t&&s.Eb("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[s.Bb]}),t})(),R=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},providers:[L,I],imports:[[i.f,r.h,o.i],o.i]}),t})()},iInd:function(t,e,n){"use strict";n.d(e,"a",function(){return zt}),n.d(e,"b",function(){return V}),n.d(e,"c",function(){return N}),n.d(e,"d",function(){return U}),n.d(e,"e",function(){return F}),n.d(e,"f",function(){return K}),n.d(e,"g",function(){return an}),n.d(e,"h",function(){return cn}),n.d(e,"i",function(){return un}),n.d(e,"j",function(){return ln}),n.d(e,"k",function(){return xn}),n.d(e,"l",function(){return dn});var i=n("SVse"),r=n("8Y7J"),s=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),c=n("itXk"),l=n("HDdC"),h=n("sVev"),u=n("NXyV"),d=n("EY2u"),f=n("XNiG"),p=n("lJxs"),m=n("0EUg"),b=n("pLZG"),g=n("7o/Q"),_=n("4I5i");function y(t){return function(e){return 0===t?Object(d.b)():e.lift(new v(t))}}class v{constructor(t){if(this.total=t,this.total<0)throw new _.a}call(t,e){return e.subscribe(new w(t,this.total))}}class w extends g.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function ot(t){return Array.prototype.concat.apply([],t)}function at(t){return t.length>0?t[t.length-1]:null}function ct(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function lt(t){return Object(r.ub)(t)?t:Object(r.vb)(t)?Object(o.a)(Promise.resolve(t)):Object(s.a)(t)}function ht(t,e,n){return n?function(t,e){return rt(t,e)}(t.queryParams,e.queryParams)&&ut(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>st(t[n],e[n]))}(t.queryParams,e.queryParams)&&dt(t.root,e.root)}function ut(t,e){if(!gt(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!ut(t.children[n],e.children[n]))return!1}return!0}function dt(t,e){return ft(t,e,e.segments)}function ft(t,e,n){if(t.segments.length>n.length)return!!gt(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!gt(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!dt(t.children[n],e.children[n]))return!1}return!0}{const i=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!gt(t.segments,i)&&!!t.children.primary&&ft(t.children.primary,e,r)}}class pt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=et(this.queryParams)),this._queryParamMap}toString(){return wt.serialize(this)}}class mt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ct(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xt(this)}}class bt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=et(this.parameters)),this._parameterMap}toString(){return Dt(this)}}function gt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function _t(t,e){let n=[];return ct(t.children,(t,i)=>{i===J&&(n=n.concat(e(t,i)))}),ct(t.children,(t,i)=>{i!==J&&(n=n.concat(e(t,i)))}),n}class yt{}class vt{parse(t){const e=new Rt(t);return new pt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+Ct(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Et(e)}=${Et(t)}`).join("&"):`${Et(e)}=${Et(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const wt=new vt;function xt(t){return t.segments.map(t=>Dt(t)).join("/")}function Ct(t,e){if(!t.hasChildren())return xt(t);if(e){const e=t.children.primary?Ct(t.children.primary,!1):"",n=[];return ct(t.children,(t,e)=>{e!==J&&n.push(`${e}:${Ct(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=_t(t,(e,n)=>n===J?[Ct(t.children.primary,!1)]:[`${n}:${Ct(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${xt(t)}/${e[0]}`:`${xt(t)}/(${e.join("//")})`}}function St(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Et(t){return St(t).replace(/%3B/gi,";")}function kt(t){return St(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ot(t){return decodeURIComponent(t)}function At(t){return Ot(t.replace(/\+/g,"%20"))}function Dt(t){return`${kt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${kt(t)}=${kt(e[t])}`).join("")}`;var e}const It=/^[^\/()?;=#]+/;function Tt(t){const e=t.match(It);return e?e[0]:""}const Lt=/^[^=?&#]+/,Pt=/^[^?&#]+/;class Rt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new mt([],{}):new mt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new mt(t,e)),n}parseSegment(){const t=Tt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new bt(Ot(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Tt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Tt(this.remaining);t&&(n=t,this.capture(n))}t[Ot(e)]=Ot(n)}parseQueryParam(t){const e=function(t){const e=t.match(Lt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Pt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=At(e),r=At(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(r)}else t[i]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Tt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=J);const s=this.parseChildren();e[r]=1===Object.keys(s).length?s.primary:new mt([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Mt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=jt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=jt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ft(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Ft(t,this._root).map(t=>t.value)}}function jt(t,e){if(t===e.value)return e;for(const n of e.children){const e=jt(t,n);if(e)return e}return null}function Ft(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Ft(t,n);if(i.length)return i.unshift(e),i}return[]}class Nt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Vt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Ut extends Mt{constructor(t,e){super(t),this.snapshot=e,qt(this,t)}toString(){return this.snapshot.toString()}}function Bt(t,e){const n=function(t,e){const n=new Wt([],{},{},"",{},J,e,null,t.root,-1,{});return new Kt("",new Nt(n,[]))}(t,e),i=new a.a([new bt("",{})]),r=new a.a({}),s=new a.a({}),o=new a.a({}),c=new a.a(""),l=new zt(i,r,o,c,s,J,e,n.root);return l.snapshot=n.root,new Ut(new Nt(l,[]),n)}class zt{constructor(t,e,n,i,r,s,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(p.a)(t=>et(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(p.a)(t=>et(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ht(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Wt{constructor(t,e,n,i,r,s,o,a,c,l,h){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=et(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=et(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Kt extends Mt{constructor(t,e){super(e),this.url=t,qt(this,e)}toString(){return Yt(this._root)}}function qt(t,e){e.value._routerState=t,e.children.forEach(e=>qt(t,e))}function Yt(t){const e=t.children.length>0?` { ${t.children.map(Yt).join(", ")} } `:"";return`${t.value}${e}`}function Zt(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,rt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),rt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nrt(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Xt(t.parent,e.parent))}function Gt(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const r=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return Gt(t,e,i);return Gt(t,e)})}(t,e,n);return new Nt(i,r)}{const n=t.retrieve(e.value);if(n){const t=n.route;return $t(e,t),t}{const n=new zt(new a.a((i=e.value).url),new a.a(i.params),new a.a(i.queryParams),new a.a(i.fragment),new a.a(i.data),i.outlet,i.component,i),r=e.children.map(e=>Gt(t,e));return new Nt(n,r)}}var i}function $t(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{s[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new pt(n.root===t?e:ee(n.root,t,e),s,r)}function ee(t,e,n){const i={};return ct(t.children,(t,r)=>{i[r]=t===e?n:ee(t,e,n)}),new mt(t.segments,i)}class ne{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Qt(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Jt);if(i&&i!==at(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ie{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function re(t,e,n){if(t||(t=new mt([],{})),0===t.segments.length&&t.hasChildren())return se(t,e,n);const i=function(t,e,n){let i=0,r=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return s;const e=t.segments[r],o=n[i];if(Jt(o))break;const a=""+o,c=i0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!le(a,c,e))return s;i+=2}else{if(!le(a,{},e))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=re(t.children[i],e,n))}),ct(t.children,(t,e)=>{void 0===i[e]&&(r[e]=t)}),new mt(t.segments,r)}}function oe(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=oe(new mt([],{}),0,t))}),e}function ce(t){const e={};return ct(t,(t,n)=>e[n]=""+t),e}function le(t,e,n){return t==n.path&&rt(e,n.parameters)}class he{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Zt(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Vt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),ct(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const i=Vt(t),r=t.value.component?n.children:e;ct(i,(t,e)=>this.deactivateRouteAndItsChildren(t,r)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const i=Vt(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new $(t.value.snapshot))}),t.children.length&&this.forwardEvent(new X(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(Zt(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),ue(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=r,e.outlet&&e.outlet.activateWith(i,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function ue(t){Zt(t.value),t.children.forEach(ue)}class de{constructor(t,e){this.routes=t,this.module=e}}function fe(t){return"function"==typeof t}function pe(t){return t instanceof pt}const me=Symbol("INITIAL_VALUE");function be(){return Object(E.a)(t=>Object(c.b)(...t.map(t=>t.pipe(Object(k.a)(1),Object(O.a)(me)))).pipe(Object(A.a)((t,e)=>{let n=!1;return e.reduce((t,i,r)=>{if(t!==me)return t;if(i===me&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||pe(i))return i}return t},t)},me),Object(b.a)(t=>t!==me),Object(p.a)(t=>pe(t)?t:!0===t),Object(k.a)(1)))}let ge=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Jb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r.Qb(0,"router-outlet")},directives:function(){return[dn]},encapsulation:2}),t})();function _e(t,e=""){for(let n=0;ne.error(new Ce(t)))}function ke(t){return new l.a(e=>e.error(new Se(t)))}function Oe(t){return new l.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ae{constructor(t,e,n,i,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(r.z)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,J).pipe(Object(p.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(D.a)(t=>{if(t instanceof Se)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Ce)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,J).pipe(Object(p.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(D.a)(t=>{if(t instanceof Ce)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new mt([],{[J]:t}):t;return new pt(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(p.a)(t=>new mt([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Object(s.a)({});const n=[],i=[],r={};return ct(t,(t,s)=>{const o=e(s,t).pipe(Object(p.a)(t=>r[s]=t));s===J?n.push(o):i.push(o)}),s.a.apply(null,n.concat(i)).pipe(Object(m.a)(),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Object(b.a)((e,n)=>t(e,n,i)):S.a,y(1),n?Object(C.a)(e):Object(x.a)(()=>new h.a))}(),Object(p.a)(()=>r))}(n.children,(n,i)=>this.expandSegmentGroup(t,e,i,n))}expandSegment(t,e,n,i,r,a){const l=function(t){return t.reduce((t,e)=>{const n=xe(e);return t.has(n)?t.get(n).push(e):t.set(n,[e]),t},new Map)}(n);l.has(r)||l.set(r,[]);const u=n=>Object(o.a)(n).pipe(Object(I.a)(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,r,a).pipe(Object(D.a)(t=>{if(t instanceof Ce)return Object(s.a)(null);throw t}))),Object(T.a)(t=>null!==t),Object(D.a)(t=>{if(t instanceof h.a||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,i,r))return Object(s.a)(new mt([],{}));throw new Ce(e)}throw t})),d=Array.from(l.entries()).map(([t,e])=>{const n=u(e);return t===r?n:n.pipe(Object(p.a)(()=>null),Object(D.a)(()=>Object(s.a)(null)))});return Object(o.a)(d).pipe(t=>t.lift(new c.a(void 0)),Object(T.a)(),Object(p.a)(t=>t.find(t=>null!==t)))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,i,r,s,o){return xe(i)!==s&&""!==i.path?Ee(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s):Ee(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ke(r):this.lineralizeSegments(n,r).pipe(Object(L.a)(n=>{const r=new mt(n,{});return this.expandSegment(t,r,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:l}=De(e,i,r);if(!o)return Ee(e);const h=this.applyRedirectCommands(a,i.redirectTo,l);return i.redirectTo.startsWith("/")?ke(h):this.lineralizeSegments(i,h).pipe(Object(L.a)(i=>this.expandSegment(t,e,n,i.concat(r.slice(c)),s,!1)))}matchSegmentAgainstRoute(t,e,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(p.a)(t=>(n._loadedConfig=t,new mt(i,{})))):Object(s.a)(new mt(i,{}));const{matched:r,consumedSegments:o,lastChild:a}=De(e,n,i);if(!r)return Ee(e);const c=i.slice(a);return this.getChildConfig(t,n,i).pipe(Object(L.a)(t=>{const n=t.module,i=t.routes,{segmentGroup:r,slicedSegments:a}=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some(n=>Te(t,e,n)&&xe(n)!==J)}(t,n,i)?{segmentGroup:Ie(new mt(e,function(t,e){const n={};n.primary=e;for(const i of t)""===i.path&&xe(i)!==J&&(n[xe(i)]=new mt([],{}));return n}(i,new mt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>Te(t,e,n))}(t,n,i)?{segmentGroup:Ie(new mt(t.segments,function(t,e,n,i){const r={};for(const s of n)Te(t,e,s)&&!i[xe(s)]&&(r[xe(s)]=new mt([],{}));return Object.assign(Object.assign({},i),r)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,c,i);return 0===a.length&&r.hasChildren()?this.expandChildren(n,i,r).pipe(Object(p.a)(t=>new mt(o,t))):0===i.length&&0===a.length?Object(s.a)(new mt(o,{})):this.expandSegment(n,r,i,a,J,!0).pipe(Object(p.a)(t=>new mt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(s.a)(new de(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(s.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(L.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(p.a)(t=>(e._loadedConfig=t,t))):function(t){return new l.a(e=>e.error(nt(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(s.a)(new de([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return Object(s.a)(!0);const r=i.map(i=>{const r=t.get(i);let s;if(function(t){return t&&fe(t.canLoad)}(r))s=r.canLoad(e,n);else{if(!fe(r))throw new Error("Invalid CanLoad guard");s=r(e,n)}return lt(s)});return Object(s.a)(r).pipe(be(),Object(P.a)(t=>{if(!pe(t))return;const e=nt(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(p.a)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(s.a)(n);if(i.numberOfChildren>1||!i.children.primary)return Oe(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const r=this.createSegmentGroup(t,e.root,n,i);return new pt(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return ct(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const r=this.createSegments(t,e.segments,n,i);let s={};return ct(e.children,(e,r)=>{s[r]=this.createSegmentGroup(t,e,n,i)}),new mt(r,s)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function De(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const i=(e.matcher||it)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ie(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new mt(t.segments.concat(e.segments),e.children)}return t}function Te(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}class Le{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Pe{constructor(t,e){this.component=t,this.route=e}}function Re(t,e,n){const i=t._root;return je(i,e?e._root:null,n,[i.value])}function Me(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function je(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Vt(e);return t.children.forEach(t=>{!function(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!gt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!gt(t.url,e.url)||!rt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xt(t,e)||!rt(t.queryParams,e.queryParams);case"paramsChange":default:return!Xt(t,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new Le(i)):(s.data=o.data,s._resolvedData=o._resolvedData),je(t,e,s.component?a?a.children:null:n,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Pe(a.outlet.component,o))}else o&&Fe(e,a,r),r.canActivateChecks.push(new Le(i)),je(t,null,s.component?a?a.children:null:n,i,r)}(t,s[t.value.outlet],n,i.concat([t.value]),r),delete s[t.value.outlet]}),ct(s,(t,e)=>Fe(t,n.getContext(e),r)),r}function Fe(t,e,n){const i=Vt(t),r=t.value;ct(i,(t,i)=>{Fe(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new Pe(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}function Ne(t,e){return null!==t&&e&&e(new G(t)),Object(s.a)(!0)}function Ve(t,e){return null!==t&&e&&e(new Z(t)),Object(s.a)(!0)}function Ue(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return Object(s.a)(!0);const r=i.map(i=>Object(u.a)(()=>{const r=Me(i,e,n);let s;if(function(t){return t&&fe(t.canActivate)}(r))s=lt(r.canActivate(e,t));else{if(!fe(r))throw new Error("Invalid CanActivate guard");s=lt(r(e,t))}return s.pipe(Object(T.a)())}));return Object(s.a)(r).pipe(be())}function Be(t,e,n){const i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Object(u.a)(()=>{const r=e.guards.map(r=>{const s=Me(r,e.node,n);let o;if(function(t){return t&&fe(t.canActivateChild)}(s))o=lt(s.canActivateChild(i,t));else{if(!fe(s))throw new Error("Invalid CanActivateChild guard");o=lt(s(i,t))}return o.pipe(Object(T.a)())});return Object(s.a)(r).pipe(be())}));return Object(s.a)(r).pipe(be())}class ze{}class He{constructor(t,e,n,i,r,s){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){try{const t=qe(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,J),n=new Wt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},J,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Nt(n,e),r=new Kt(this.url,i);return this.inheritParamsAndData(r._root),Object(s.a)(r)}catch(t){return new l.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Ht(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=_t(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),i=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${i}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>t.value.outlet===J?-1:e.value.outlet===J?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,i){for(const s of t)try{return this.processSegmentAgainstRoute(s,e,n,i)}catch(r){if(!(r instanceof ze))throw r}if(this.noLeftoversInUrl(e,n,i))return[];throw new ze}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo)throw new ze;if((t.outlet||J)!==i)throw new ze;let r,s=[],o=[];if("**"===t.path){const s=n.length>0?at(n).parameters:{};r=new Wt(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ze(t),i,t.component,t,We(e),Ke(e)+n.length,Xe(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new ze;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(e.matcher||it)(n,t,e);if(!i)throw new ze;const r={};ct(i.posParams,(t,e)=>{r[e]=t.path});const s=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s}}(e,t,n);s=a.consumedSegments,o=n.slice(a.lastChild),r=new Wt(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ze(t),i,t.component,t,We(e),Ke(e)+s.length,Xe(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:l}=qe(e,s,o,a,this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const t=this.processChildren(a,c);return[new Nt(r,t)]}if(0===a.length&&0===l.length)return[new Nt(r,[])];const h=this.processSegment(a,c,l,J);return[new Nt(r,h)]}}function We(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Ke(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function qe(t,e,n,i,r){if(n.length>0&&function(t,e,n){return n.some(n=>Ye(t,e,n)&&xe(n)!==J)}(t,n,i)){const r=new mt(e,function(t,e,n,i){const r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const s of n)if(""===s.path&&xe(s)!==J){const n=new mt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[xe(s)]=n}return r}(t,e,i,new mt(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ye(t,e,n))}(t,n,i)){const s=new mt(t.segments,function(t,e,n,i,r,s){const o={};for(const a of i)if(Ye(t,n,a)&&!r[xe(a)]){const n=new mt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[xe(a)]=n}return Object.assign(Object.assign({},r),o)}(t,e,n,i,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const s=new mt(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Ye(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Ze(t){return t.data||{}}function Xe(t){return t.resolve||{}}function Ge(t){return function(e){return e.pipe(Object(E.a)(e=>{const n=t(e);return n?Object(o.a)(n).pipe(Object(p.a)(()=>e)):Object(o.a)([e])}))}}class $e extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Qe=new r.s("ROUTES");class Je{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(p.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new de(ot(i.injector.get(Qe)).map(we),i)}))}loadModuleFactory(t){return"string"==typeof t?Object(o.a)(this.loader.load(t)):lt(t()).pipe(Object(L.a)(t=>t instanceof r.x?Object(s.a)(t):Object(o.a)(this.compiler.compileModuleAsync(t))))}}class tn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new en,this.attachRef=null}}class en{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new tn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class nn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function rn(t){throw t}function sn(t,e,n){return e.parse("/")}function on(t,e){return Object(s.a)(null)}let an=(()=>{class t{constructor(t,e,n,i,s,o,c,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new f.a,this.errorHandler=rn,this.malformedUriErrorHandler=sn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:on,afterPreactivation:on},this.urlHandlingStrategy=new nn,this.routeReuseStrategy=new $e,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(r.z),this.console=s.get(r.cb);const h=s.get(r.B);this.isNgZoneEnabled=h instanceof r.B,this.resetConfig(l),this.currentUrlTree=new pt(new mt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Je(o,c,t=>this.triggerEvent(new q(t)),t=>this.triggerEvent(new Y(t))),this.routerState=Bt(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Object(b.a)(t=>0!==t.id),Object(p.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(E.a)(t=>{let n=!1,i=!1;return Object(s.a)(t).pipe(Object(P.a)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(E.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(s.a)(t).pipe(Object(E.a)(t=>{const n=this.transitions.getValue();return e.next(new F(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?d.a:[t]}),Object(E.a)(t=>Promise.resolve(t)),(i=this.ngModule.injector,r=this.configLoader,o=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(E.a)(t=>function(t,e,n,i,r){return new Ae(t,e,n,i,r).apply()}(i,r,o,t.extractedUrl,a).pipe(Object(p.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(P.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,r){return function(s){return s.pipe(Object(L.a)(s=>function(t,e,n,i,r="emptyOnly",s="legacy"){return new He(t,e,n,i,r,s).recognize()}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe(Object(p.a)(t=>Object.assign(Object.assign({},s),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(P.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Object(P.a)(t=>{const n=new B(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,r,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:o,extras:a}=t,c=new F(n,this.serializeUrl(i),r,o);e.next(c);const l=Bt(i,this.rootComponentType).snapshot;return Object(s.a)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),d.a}),Ge(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),Object(P.a)(t=>{const e=new z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(p.a)(t=>Object.assign(Object.assign({},t),{guards:Re(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(L.a)(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:c}}=n;return 0===c.length&&0===a.length?Object(s.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return Object(o.a)(t).pipe(Object(L.a)(t=>function(t,e,n,i,r){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(s.a)(!0);const a=o.map(s=>{const o=Me(s,e,r);let a;if(function(t){return t&&fe(t.canDeactivate)}(o))a=lt(o.canDeactivate(t,e,n,i));else{if(!fe(o))throw new Error("Invalid CanDeactivate guard");a=lt(o(t,e,n,i))}return a.pipe(Object(T.a)())});return Object(s.a)(a).pipe(be())}(t.component,t.route,n,e,i)),Object(T.a)(t=>!0!==t,!0))}(c,i,r,t).pipe(Object(L.a)(n=>n&&"boolean"==typeof n?function(t,e,n,i){return Object(o.a)(e).pipe(Object(I.a)(e=>Object(o.a)([Ve(e.route.parent,i),Ne(e.route,i),Be(t,e.path,n),Ue(t,e.route,n)]).pipe(Object(m.a)(),Object(T.a)(t=>!0!==t,!0))),Object(T.a)(t=>!0!==t,!0))}(i,a,t,e):Object(s.a)(n)),Object(p.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(P.a)(t=>{if(pe(t.guardsResult)){const e=nt(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(P.a)(t=>{const e=new H(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(b.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new V(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Ge(t=>{if(t.guards.canActivateChecks.length)return Object(s.a)(t).pipe(Object(P.a)(t=>{const e=new W(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(E.a)(t=>{let n=!1;return Object(s.a)(t).pipe((i=this.paramsInheritanceStrategy,r=this.ngModule.injector,function(t){return t.pipe(Object(L.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Object(s.a)(t);let a=0;return Object(o.a)(n).pipe(Object(I.a)(t=>function(t,e,n,i){return function(t,e,n,i){const r=Object.keys(t);if(0===r.length)return Object(s.a)({});const a={};return Object(o.a)(r).pipe(Object(L.a)(r=>function(t,e,n,i){const r=Me(t,e,i);return lt(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(Object(P.a)(t=>{a[r]=t}))),y(1),Object(L.a)(()=>Object.keys(a).length===r.length?Object(s.a)(a):d.a))}(t._resolve,t,e,i).pipe(Object(p.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Ht(t,n).resolve),null)))}(t.route,e,i,r)),Object(P.a)(()=>a++),y(1),Object(L.a)(e=>a===n.length?Object(s.a)(t):d.a))}))}),Object(P.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new V(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,r}),Object(P.a)(t=>{const e=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Ge(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),Object(p.a)(t=>{const e=function(t,e,n){const i=Gt(t,e._root,n?n._root:void 0);return new Ut(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(P.a)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(r=this.rootContexts,a=this.routeReuseStrategy,c=t=>this.triggerEvent(t),Object(p.a)(t=>(new he(a,t.targetRouterState,t.currentRouterState,c).activate(r),t))),Object(P.a)({next(){n=!0},complete(){n=!0}}),Object(R.a)(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new V(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),Object(D.a)(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=pe(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new V(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new U(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}var r;return d.a}));var r,a,c}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,r={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(i,t,n,r)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){_e(t),this.config=t.map(we),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:r,queryParamsHandling:s,preserveFragment:o}=e,a=n||this.routerState.root,c=o?this.currentUrlTree.fragment:r;let l=null;switch(s){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(t,e,n,i,r){if(0===n.length)return te(e.root,e.root,e,i,r);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ne(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return ct(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new ne(n,e,i)}(n);if(s.toRoot())return te(e.root,new mt([],{}),e,i,r);const o=function(t,e,n){if(t.isAbsolute)return new ie(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new ie(t,t===e.root,0)}const i=Qt(t.commands[0])?0:1;return function(t,e,n){let i=t,r=e,s=n;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new ie(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?se(o.segmentGroup,o.index,s.commands):re(o.segmentGroup,o.index,s.commands);return te(o.segmentGroup,a,e,i,r)}(a,this.currentUrlTree,t,l,c)}navigateByUrl(t,e={skipLocationChange:!1}){const n=pe(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new N(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,r){const s=this.getTransition(),o="imperative"!==e&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let c,l,h;r?(c=r.resolve,l=r.reject,h=r.promise):h=new Promise((t,e)=>{c=t,l=e});const u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:c,reject:l,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const r=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(r.Q),r.Zb(yt),r.Zb(en),r.Zb(i.j),r.Zb(r.t),r.Zb(r.y),r.Zb(r.i),r.Zb(void 0))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})(),cn=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new f.a,null==n&&i.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:hn(this.skipLocationChange),replaceUrl:hn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:hn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(an),r.Pb(zt),r.ac("tabindex"),r.Pb(r.G),r.Pb(r.l))},t.\u0275dir=r.Kb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&r.dc("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r.Bb]}),t})(),ln=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new f.a,this.subscription=t.events.subscribe(t=>{t instanceof N&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,r){if(0!==t||e||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:hn(this.skipLocationChange),replaceUrl:hn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:hn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(an),r.Pb(zt),r.Pb(i.k))},t.\u0275dir=r.Kb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.dc("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(r.Yb("href",e.href,r.Bc),r.Eb("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r.Bb]}),t})();function hn(t){return""===t||!!t}let un=(()=>{class t{constructor(t,e,n,i,r,s){this.router=t,this.element=e,this.renderer=n,this.cdr=i,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof N&&this.update()})}ngAfterContentInit(){Object(o.a)([this.links.changes,this.linksWithHrefs.changes,Object(s.a)(null)]).pipe(Object(M.a)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=Object(o.a)(e).pipe(Object(M.a)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(an),r.Pb(r.l),r.Pb(r.G),r.Pb(r.h),r.Pb(cn,8),r.Pb(ln,8))},t.\u0275dir=r.Kb({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(r.Ib(n,cn,!0),r.Ib(n,ln,!0)),2&t){let t;r.vc(t=r.ec())&&(e.links=t),r.vc(t=r.ec())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.Bb]}),t})(),dn=(()=>{class t{constructor(t,e,n,i,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.o,this.deactivateEvents=new r.o,this.name=i||J,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new fn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(en),r.Pb(r.S),r.Pb(r.j),r.ac("name"),r.Pb(r.h))},t.\u0275dir=r.Kb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class fn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===zt?this.route:t===en?this.childContexts:this.parent.get(t,e)}}class pn{}class mn{preload(t,e){return Object(s.a)(null)}}let bn=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new Je(e,n,e=>t.triggerEvent(new q(e)),e=>t.triggerEvent(new Y(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(b.a)(t=>t instanceof N),Object(I.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(r.z);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return Object(o.a)(n).pipe(Object(M.a)(),Object(p.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(L.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(an),r.Zb(r.y),r.Zb(r.i),r.Zb(r.t),r.Zb(pn))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})(),gn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof F?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof N&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Q&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Q(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(an),r.Zb(i.z),r.Zb(void 0))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})();const _n=new r.s("ROUTER_CONFIGURATION"),yn=new r.s("ROUTER_FORROOT_GUARD"),vn=[i.j,{provide:yt,useClass:vt},{provide:an,useFactory:function(t,e,n,r,s,o,a,c={},l,h){const u=new an(null,t,e,n,r,s,o,ot(a));if(l&&(u.urlHandlingStrategy=l),h&&(u.routeReuseStrategy=h),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(c,u),c.enableTracing){const t=Object(i.E)();u.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return u},deps:[yt,en,i.j,r.t,r.y,r.i,Qe,_n,[class{},new r.C],[class{},new r.C]]},en,{provide:zt,useFactory:function(t){return t.routerState.root},deps:[an]},{provide:r.y,useClass:r.N},bn,mn,class{preload(t,e){return e().pipe(Object(D.a)(()=>Object(s.a)(null)))}},{provide:_n,useValue:{enableTracing:!1}}];function wn(){return new r.A("Router",an)}let xn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[vn,kn(e),{provide:yn,useFactory:En,deps:[[an,new r.C,new r.M]]},{provide:_n,useValue:n||{}},{provide:i.k,useFactory:Sn,deps:[i.v,[new r.q(i.a),new r.C],_n]},{provide:gn,useFactory:Cn,deps:[an,i.z,_n]},{provide:pn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:mn},{provide:r.A,multi:!0,useFactory:wn},[On,{provide:r.d,multi:!0,useFactory:An,deps:[On]},{provide:In,useFactory:Dn,deps:[On]},{provide:r.b,multi:!0,useExisting:In}]]}}static forChild(e){return{ngModule:t,providers:[kn(e)]}}}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)(r.Zb(yn,8),r.Zb(an,8))}}),t})();function Cn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new gn(t,e,n)}function Sn(t,e,n={}){return n.useHash?new i.g(t,e):new i.u(t,e)}function En(t){return"guarded"}function kn(t){return[{provide:r.a,multi:!0,useValue:t},{provide:Qe,multi:!0,useValue:t}]}let On=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new f.a}appInitializer(){return this.injector.get(i.i,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(an),i=this.injector.get(_n);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Object(s.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(_n),n=this.injector.get(bn),i=this.injector.get(gn),s=this.injector.get(an),o=this.injector.get(r.g);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),n.setUpPreloading(),i.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(r.t))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})();function An(t){return t.appInitializer.bind(t)}function Dn(t){return t.bootstrapListener.bind(t)}const In=new r.s("Router Initializer")},iUdu:function(t,e,n){var i=n("usKN"),r=n("gvAe"),s=n("hwdV").Buffer,o=n("CfXC"),a=n("ZDAU"),c=n("OfWw"),l=n("roQf");function h(t,e,n){a.call(this),this._cache=new d,this._cipher=new c.AES(e),this._prev=s.from(n),this._mode=t,this._autopadding=!0}n("P7XM")(h,a),h.prototype._update=function(t){var e,n;this._cache.add(t);for(var i=[];e=this._cache.get();)n=this._mode.encrypt(this,e),i.push(n);return s.concat(i)};var u=s.alloc(16,16);function d(){this.cache=s.allocUnsafe(0)}function f(t,e,n){var a=i[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=s.from(e)),e.length!==a.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof n&&(n=s.from(n)),"GCM"!==a.mode&&n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===a.type?new o(a.module,e,n):"auth"===a.type?new r(a.module,e,n):new h(a.module,e,n)}h.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(u))throw this._cipher.scrub(),new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=s.concat([this.cache,t])},d.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},d.prototype.flush=function(){for(var t=16-this.cache.length,e=s.allocUnsafe(t),n=-1;++n{class t{constructor(t,e,n,i){this.httpClient=t,this.store=e,this.logger=n,this.snackBar=i,this.lnImplementation="LND",this.childAPIUrl=d.a,this.unSubs=[new r.a,new r.a,new r.a,new r.a,new r.a,new r.a,new r.a,new r.a]}ngOnInit(){}getChildAPIUrl(){return this.childAPIUrl}getLnImplementation(){return this.lnImplementation}setChildAPIUrl(t){switch(this.lnImplementation=t,t){case"CLT":this.childAPIUrl=d.a+"/cl";break;case"ECL":this.childAPIUrl=d.a+"/ecl";break;default:this.childAPIUrl=d.a+"/lnd"}}getFiatRates(){return this.httpClient.get(d.b.CONF_API+"/rates")}decodePayment(t,e){let n=this.childAPIUrl+d.b.PAYREQUEST_API+"/"+t;return"ECL"===this.getLnImplementation()&&(n=this.childAPIUrl+d.b.PAYMENTS_API+"/"+t),this.store.dispatch(new p.F("Decoding Payment...")),this.httpClient.get(n).pipe(Object(a.a)(this.unSubs[0]),Object(c.a)(t=>(this.store.dispatch(new p.i),t)),Object(l.a)(t=>(e?this.handleErrorWithoutAlert("Decode Payment",t):this.handleErrorWithAlert("ERROR","Decode Payment Failed",this.childAPIUrl+d.b.PAYREQUEST_API,t),Object(s.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t))))}decodePayments(t){let e=this.childAPIUrl+d.b.PAYREQUEST_API,n="Decoding Payments";return"ECL"===this.getLnImplementation()&&(e=this.childAPIUrl+d.b.PAYMENTS_API+"/getsentinfos",n="Getting Sent Payments"),this.store.dispatch(new p.F(n+"...")),this.httpClient.post(e,{payments:t}).pipe(Object(a.a)(this.unSubs[1]),Object(c.a)(t=>(this.store.dispatch(new p.i),t)),Object(l.a)(t=>(this.handleErrorWithAlert("ERROR",n+" Failed",e,t),Object(s.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t))))}getAliasesFromPubkeys(t,e){if(e){let e=(new i.d).set("pubkeys",t);return this.httpClient.get(this.childAPIUrl+d.b.NETWORK_API+"/nodes",{params:e})}return this.httpClient.get(this.childAPIUrl+d.b.NETWORK_API+"/node/"+t)}signMessage(t){return this.store.dispatch(new p.F("Signing Message...")),this.httpClient.post(this.childAPIUrl+d.b.MESSAGE_API+"/sign",{message:t}).pipe(Object(a.a)(this.unSubs[2]),Object(c.a)(t=>(this.store.dispatch(new p.i),t)),Object(l.a)(t=>(this.handleErrorWithAlert("ERROR","Sign Message Failed",this.childAPIUrl+d.b.MESSAGE_API+"/sign",t),Object(s.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t))))}verifyMessage(t,e){return this.store.dispatch(new p.F("Verifying Message...")),this.httpClient.post(this.childAPIUrl+d.b.MESSAGE_API+"/verify",{message:t,signature:e}).pipe(Object(a.a)(this.unSubs[3]),Object(c.a)(t=>(this.store.dispatch(new p.i),t)),Object(l.a)(t=>(this.handleErrorWithAlert("ERROR","Verify Message Failed",this.childAPIUrl+d.b.MESSAGE_API+"/verify",t),Object(s.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t))))}bumpFee(t,e,n,i){let r={txid:t,outputIndex:e};return n&&(r.targetConf=n),i&&(r.satPerByte=i),this.store.dispatch(new p.F("Bumping Fee...")),this.httpClient.post(this.childAPIUrl+d.b.WALLET_API+"/bumpfee",r).pipe(Object(a.a)(this.unSubs[4]),Object(c.a)(t=>(this.store.dispatch(new p.i),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),t)),Object(l.a)(t=>(this.handleErrorWithoutAlert("Bump Fee",t),Object(s.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t))))}getForwardingHistory(t,e){return this.httpClient.post(this.childAPIUrl+d.b.SWITCH_API,{end_time:e,start_time:t}).pipe(Object(a.a)(this.unSubs[5]),Object(h.a)(this.store.select("lnd")),Object(u.a)(([t,e])=>{if(t.forwarding_events){const n=[...e.allChannels,...e.closedChannels];t.forwarding_events.forEach(t=>{if(n&&n.length>0)for(let e=0;e(this.handleErrorWithAlert("ERROR","Forwarding History Failed",this.childAPIUrl+d.b.SWITCH_API,t),Object(s.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t))))}getTransactionsForReport(){return this.httpClient.get(this.childAPIUrl+d.b.INVOICES_API+"?num_max_invoices=100000&index_offset=0&reversed=true").pipe(Object(a.a)(this.unSubs[5]),Object(h.a)(this.store.select("CLT"===this.lnImplementation?"cl":"ECL"===this.lnImplementation?"ecl":"lnd")),Object(u.a)(([t,e])=>Object(o.a)({payments:e.payments,invoices:t.invoices&&t.invoices.length&&t.invoices.length>0?t.invoices:t.length&&t.length>0?t:[]})),Object(l.a)(t=>(this.handleErrorWithAlert("ERROR","Invoice List Failed",this.childAPIUrl+d.b.INVOICES_API,t),Object(s.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t))))}handleErrorWithoutAlert(t,e){this.store.dispatch(new p.i),this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(e)),401===e.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch(new p.x))}handleErrorWithAlert(t,e,n,i){this.logger.error(i),this.store.dispatch(new p.i),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new p.x)):this.store.dispatch(new p.C({data:{type:t,alertTitle:e,message:{code:i.status,message:i.error.error,URL:n},component:f.a}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(m.Zb(i.b),m.Zb(b.h),m.Zb(g.b),m.Zb(_.b))},t.\u0275prov=m.Lb({token:t,factory:t.\u0275fac}),t})()},itXk:function(t,e,n){"use strict";n.d(e,"b",function(){return l}),n.d(e,"a",function(){return h});var i=n("z+Ro"),r=n("DH7j"),s=n("l7GE"),o=n("ZUHj"),a=n("yCtX");const c={};function l(...t){let e=void 0,n=void 0;return Object(i.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(r.a)(t[0])&&(t=t[0]),Object(a.a)(t,n).lift(new h(e))}class h{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new u(t,this.resultSelector))}}class u extends s.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n({disableToggleValue:!1})});let b=0;const g={provide:a.k,useExisting:Object(r.X)(()=>w),multi:!0};class _{constructor(t,e){this.source=t,this.checked=e}}class y{constructor(t){this._elementRef=t}}const v=Object(s.C)(Object(s.x)(Object(s.y)(Object(s.z)(y)),"accent"));let w=(()=>{class t extends v{constructor(t,e,n,i,s,o){super(t),this._focusMonitor=e,this._changeDetectorRef=n,this.defaults=s,this._animationMode=o,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++b,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new r.o,this.toggleChange=new r.o,this.tabIndex=parseInt(i)||0}get required(){return this._required}set required(t){this._required=Object(o.c)(t)}get checked(){return this._checked}set checked(t){this._checked=Object(o.c)(t),this._changeDetectorRef.markForCheck()}get inputId(){return(this.id||this._uniqueId)+"-input"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new _(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(r.l),r.Pb(l.h),r.Pb(r.h),r.ac("tabindex"),r.Pb(m),r.Pb(c.a,8))},t.\u0275cmp=r.Jb({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){if(1&t&&(r.Pc(h,!0),r.Pc(u,!0),r.Pc(d,!0)),2&t){let t;r.vc(t=r.ec())&&(e._thumbEl=t.first),r.vc(t=r.ec())&&(e._thumbBarEl=t.first),r.vc(t=r.ec())&&(e._inputElement=t.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Yb("id",e.id),r.Eb("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),r.Hb("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[r.Cb([g]),r.Ab],ngContentSelectors:p,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(r.nc(),r.Vb(0,"label",0,1),r.Vb(2,"div",2,3),r.Vb(4,"input",4,5),r.dc("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),r.Ub(),r.Vb(6,"div",6,7),r.Qb(8,"div",8),r.Vb(9,"div",9),r.Qb(10,"div",10),r.Ub(),r.Ub(),r.Ub(),r.Vb(11,"span",11,12),r.dc("cdkObserveContent",function(){return e._onLabelTextChange()}),r.Vb(13,"span",13),r.Kc(14,"\xa0"),r.Ub(),r.mc(15),r.Ub(),r.Ub()),2&t){const t=r.wc(1),n=r.wc(12);r.Eb("for",e.inputId),r.Db(2),r.Hb("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),r.Db(2),r.oc("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),r.Eb("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),r.Db(5),r.oc("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r.rc(17,f))}},directives:[s.r,i.a],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})(),x=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)}}),t})(),C=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},imports:[[x,s.s,s.i,i.c],x,s.i]}),t})()},jSPq:function(t,e,n){var i=n("Wogr"),r=n("JzKC");function s(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}s.prototype.initialize=function(t){this.degree=t,this.genPoly=r.generateECPolynomial(this.degree)},s.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var e=new i(this.degree);e.fill(0);var n=i.concat([t,e],t.length+this.degree),s=r.mod(n,this.genPoly),o=this.degree-s.length;if(o>0){var a=new i(this.degree);return a.fill(0),s.copy(a,o),a}return s},t.exports=s},jZKg:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("HDdC"),r=n("quSY");function s(t,e){return new i.a(n=>{const i=new r.a;let s=0;return i.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},jfd1:function(t,e,n){"use strict";const i=n("P7XM"),r=n("xZGU").Buffer,s=n("z71Z");function o(t){s.call(this,t),this.enc="pem"}i(o,s),t.exports=o,o.prototype.decode=function(t,e){const n=t.toString().split(/[\r\n]+/g),i=e.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/;let a=-1,c=-1;for(let r=0;rthis._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new h(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=n.length;let l;if(this.closed)throw new a.a;if(this.isStopped||this.hasError?l=s.a.EMPTY:(this.observers.push(t),l=new c.a(this,t)),i&&t.add(t=new o.a(t,i)),e)for(let s=0;se&&(s=Math.max(s,r-e)),s>0&&i.splice(0,s),i}}class h{constructor(t,e){this.time=t,this.value=e}}},"k+aG":function(t,e,n){"use strict";var i=n("Oaki").Buffer,r=n("NNVn").Transform;function s(t){r.call(this),this._block=i.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n("2q5Q")(s,r),s.prototype._transform=function(t,e,n){var i=null;try{this.update(t,e)}catch(r){i=r}n(i)},s.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(n){e=n}t(e)},s.prototype.update=function(t,e){if(function(t,e){if(!i.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer")}(t),this._finalized)throw new Error("Digest already called");i.isBuffer(t)||(t=i.from(t,e));for(var n=this._block,r=0;this._blockOffset+t.length-r>=this._blockSize;){for(var s=this._blockOffset;s0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},s.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=s},kBkV:function(t,e,n){"use strict";function i(t,e){s(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function s(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(s,this,t)):process.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?n._writableState?n._writableState.errorEmitted?process.nextTick(r,n):(n._writableState.errorEmitted=!0,process.nextTick(i,n,t)):process.nextTick(i,n,t):e?(process.nextTick(r,n),e(t)):process.nextTick(r,n)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var n=t._readableState,i=t._writableState;n&&n.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}}},kJWO:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},"kVK+":function(t,e){e.read=function(t,e,n,i,r){var s,o,a=8*r-i-1,c=(1<>1,h=-7,u=n?r-1:0,d=n?-1:1,f=t[e+u];for(u+=d,s=f&(1<<-h)-1,f>>=-h,h+=a;h>0;s=256*s+t[e+u],u+=d,h-=8);for(o=s&(1<<-h)-1,s>>=-h,h+=i;h>0;o=256*o+t[e+u],u+=d,h-=8);if(0===s)s=1-l;else{if(s===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,i),s-=l}return(f?-1:1)*o*Math.pow(2,s-i)},e.write=function(t,e,n,i,r,s){var o,a,c,l=8*s-r-1,h=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:s-1,p=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+u>=1?d/c:d*Math.pow(2,1-u))*c>=2&&(o++,c/=2),o+u>=h?(a=0,o=h):o+u>=1?(a=(e*c-1)*Math.pow(2,r),o+=u):(a=e*Math.pow(2,u-1)*Math.pow(2,r),o=0));r>=8;t[n+f]=255&a,f+=p,a/=256,r-=8);for(o=o<0;t[n+f]=255&o,f+=p,o/=256,l-=8);t[n+f-p]|=128*m}},"kk9/":function(t,e,n){var i=n("e/Dd").getSymbolSize;e.getPositions=function(t){var e=i(t);return[[0,0],[e-7,0],[0,e-7]]}},l0rg:function(t,e,n){"use strict";n.d(e,"a",function(){return d}),n.d(e,"b",function(){return f});var i=n("UhP/"),r=n("SVse"),s=n("8Y7J"),o=n("SCoL");const a=["*",[["mat-toolbar-row"]]],c=["*","mat-toolbar-row"];class l{constructor(t){this._elementRef=t}}const h=Object(i.x)(l);let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),d=(()=>{class t extends h{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.l),s.Pb(o.a),s.Pb(r.d))},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&s.Ib(n,u,!0),2&t){let t;s.vc(t=s.ec())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.Hb("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.Ab],ngContentSelectors:c,decls:2,vars:0,template:function(t,e){1&t&&(s.nc(a),s.mc(0),s.mc(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[i.i],i.i]}),t})()},l7GE:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q");class r extends i.a{notifyNext(t,e,n,i,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},lF1L:function(t,e,n){"use strict";var i=n("fZJM"),r=n("DLvh"),s=n("86MQ"),o=s.assert,a=s.parseBytes,c=n("OA+I"),l=n("RKMU");function h(t){if(o("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof h))return new h(t);this.curve=t=r[t].curve,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=i.sha512}t.exports=h,h.prototype.sign=function(t,e){t=a(t);var n=this.keyFromSecret(e),i=this.hashInt(n.messagePrefix(),t),r=this.g.mul(i),s=this.encodePoint(r),o=this.hashInt(s,n.pubBytes(),t).mul(n.priv()),c=i.add(o).umod(this.curve.n);return this.makeSignature({R:r,S:c,Rencoded:s})},h.prototype.verify=function(t,e,n){t=a(t),e=this.makeSignature(e);var i=this.keyFromPublic(n),r=this.hashInt(e.Rencoded(),i.pubBytes(),t),s=this.g.mul(e.S());return e.R().add(i.pub().mul(r)).eq(s)},h.prototype.hashInt=function(){for(var t=this.hash(),e=0;e=0;)s^=1335<=e)throw new Error("invalid sig")}t.exports=function(t,e,n,l,h){var u=o(n);if("ec"===u.type){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");return function(t,e,n){var i=a[n.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));return new s(i).verify(e,t,n.data.subjectPrivateKey.data)}(t,e,u)}if("dsa"===u.type){if("dsa"!==l)throw new Error("wrong public key type");return function(t,e,n){var i=n.data.p,s=n.data.q,a=n.data.g,l=n.data.pub_key,h=o.signature.decode(t,"der"),u=h.s,d=h.r;c(u,s),c(d,s);var f=r.mont(i),p=u.invm(s);return 0===a.toRed(f).redPow(new r(e).mul(p).mod(s)).fromRed().mul(l.toRed(f).redPow(d.mul(p).mod(s)).fromRed()).mod(i).mod(s).cmp(d)}(t,e,u)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");e=i.concat([h,e]);for(var d=u.modulus.byteLength(),f=[1],p=0;e.length+f.length+2{class t{constructor(){this.sessionSub=new i.a}watchSession(){return this.sessionSub.asObservable()}getItem(t){return sessionStorage.getItem(t)}setItem(t,e){sessionStorage.setItem(t,e),this.sessionSub.next(sessionStorage)}removeItem(t){sessionStorage.removeItem(t),this.sessionSub.next(sessionStorage)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})()},mlxB:function(t,e,n){"use strict";function i(t){return t instanceof Date&&!isNaN(+t)}n.d(e,"a",function(){return i})},mrSG:function(t,e,n){"use strict";function i(t,e,n,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,n,o):r(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}n.d(e,"a",function(){return i})},n53Y:function(t,e){var n;n=process.browser?"utf-8":process.version?parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=n},n6bG:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,"a",function(){return i})},nSiv:function(t,e,n){"use strict";t.exports=r;var i=n("8cin");function r(t){if(!(this instanceof r))return new r(t);i.call(this,t)}n("2q5Q")(r,i),r.prototype._transform=function(t,e,n){n(null,t)}},nYR2:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q"),r=n("quSY");function s(t){return e=>e.lift(new o(t))}class o{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends i.a{constructor(t,e){super(t),this.add(new r.a(e))}}},nZSm:function(t,e,n){var i=n("u/Db"),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function s(t){this.mode=i.ALPHANUMERIC,this.data=t}s.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){var e;for(e=0;e+2<=this.data.length;e+=2){var n=45*r.indexOf(this.data[e]);n+=r.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(r.indexOf(this.data[e]),6)},t.exports=s},ngJS:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=t=>e=>{for(let n=0,i=t.length;n{class t{constructor(){this._stateChanges=new s.a,this._openCloseAllActions=new s.a,this.id="cdk-accordion-"+c++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=Object(r.c)(t)}openAll(){this._openCloseAll(!0)}closeAll(){this._openCloseAll(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete()}_openCloseAll(t){this.multi&&this._openCloseAllActions.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i.Cb([{provide:l,useExisting:t}]),i.Bb]}),t})(),u=0,d=(()=>{class t{constructor(t,e,n){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=o.a.EMPTY,this.closed=new i.o,this.opened=new i.o,this.destroyed=new i.o,this.expandedChange=new i.o,this.id="cdk-accordion-child-"+u++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=n.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=Object(r.c)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(r.c)(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(l,12),i.Pb(i.h),i.Pb(a.d))},t.\u0275dir=i.Kb({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i.Cb([{provide:l,useValue:void 0}])]}),t})(),f=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})();var p=n("1z/I"),m=n("SVse"),b=n("UhP/"),g=n("YEUz"),_=n("/uUt"),y=n("JX91"),v=n("pLZG"),w=n("IzEk"),x=n("Ht+U"),C=n("omvX"),S=n("EY2u"),E=n("VRyK"),k=n("GS7A");const O=["body"];function A(t,e){}const D=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],I=["mat-expansion-panel-header","*","mat-action-row"];function T(t,e){if(1&t&&i.Qb(0,"span",2),2&t){const t=i.hc();i.oc("@indicatorRotate",t._getExpandedState())}}const L=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],P=["mat-panel-title","mat-panel-description","*"],R=new i.s("MAT_ACCORDION"),M="225ms cubic-bezier(0.4,0.0,0.2,1)",j={indicatorRotate:Object(k.m)("indicatorRotate",[Object(k.j)("collapsed, void",Object(k.k)({transform:"rotate(0deg)"})),Object(k.j)("expanded",Object(k.k)({transform:"rotate(180deg)"})),Object(k.l)("expanded <=> collapsed, void => collapsed",Object(k.e)(M))]),bodyExpansion:Object(k.m)("bodyExpansion",[Object(k.j)("collapsed, void",Object(k.k)({height:"0px",visibility:"hidden"})),Object(k.j)("expanded",Object(k.k)({height:"*",visibility:"visible"})),Object(k.l)("expanded <=> collapsed, void => collapsed",Object(k.e)(M))])};let F=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.O))},t.\u0275dir=i.Kb({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),N=0;const V=new i.s("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let U=(()=>{class t extends d{constructor(t,e,n,r,o,a,c){super(t,e,n),this._viewContainerRef=r,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new i.o,this.afterCollapse=new i.o,this._inputChanges=new s.a,this._headerId="mat-expansion-panel-header-"+N++,this._bodyAnimationDone=new s.a,this.accordion=t,this._document=o,this._bodyAnimationDone.pipe(Object(_.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),c&&(this.hideToggle=c.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=Object(r.c)(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(Object(y.a)(null),Object(v.a)(()=>this.expanded&&!this._portal),Object(w.a)(1)).subscribe(()=>{this._portal=new p.i(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(R,12),i.Pb(i.h),i.Pb(a.d),i.Pb(i.S),i.Pb(m.d),i.Pb(C.a,8),i.Pb(V,8))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){if(1&t&&i.Ib(n,F,!0),2&t){let t;i.vc(t=i.ec())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&i.Pc(O,!0),2&t){let t;i.vc(t=i.ec())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&i.Hb("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i.Cb([{provide:R,useValue:void 0}]),i.Ab,i.Bb],ngContentSelectors:I,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(i.nc(D),i.mc(0),i.Vb(1,"div",0,1),i.dc("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),i.Vb(3,"div",2),i.mc(4,1),i.Ic(5,A,0,0,"ng-template",3),i.Ub(),i.mc(6,2),i.Ub()),2&t&&(i.Db(1),i.oc("@bodyExpansion",e._getExpandedState())("id",e.id),i.Eb("aria-labelledby",e._headerId),i.Db(4),i.oc("cdkPortalOutlet",e._portal))},directives:[p.c],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[j.bodyExpansion]},changeDetection:0}),t})(),B=(()=>{class t{constructor(t,e,n,i,r,s){this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=i,this._animationMode=s,this._parentChangeSubscription=o.a.EMPTY;const a=t.accordion?t.accordion._stateChanges.pipe(Object(v.a)(t=>!(!t.hideToggle&&!t.togglePosition))):S.a;this._parentChangeSubscription=Object(E.a)(t.opened,t.closed,a,t._inputChanges.pipe(Object(v.a)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Object(v.a)(()=>t._containsFocus())).subscribe(()=>n.focusVia(e,"program")),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case x.m:case x.e:Object(x.r)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t="program",e){this._focusMonitor.focusVia(this._element,t,e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(U,1),i.Pb(i.l),i.Pb(g.h),i.Pb(i.h),i.Pb(V,8),i.Pb(C.a,8))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&i.dc("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(i.Eb("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),i.Fc("height",e._getHeaderHeight()),i.Hb("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:P,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(i.nc(L),i.Vb(0,"span",0),i.mc(1),i.mc(2,1),i.mc(3,2),i.Ub(),i.Ic(4,T,1,1,"span",1)),2&t&&(i.Db(4),i.oc("ngIf",e._showToggle()))},directives:[m.o],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[j.indicatorRotate]},changeDetection:0}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),W=(()=>{class t extends h{constructor(){super(...arguments),this._ownHeaders=new i.F,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=Object(r.c)(t)}ngAfterContentInit(){this._headers.changes.pipe(Object(y.a)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new g.g(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(e){return K(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){if(1&t&&i.Ib(n,B,!0),2&t){let t;i.vc(t=i.ec())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&i.Hb("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[i.Cb([{provide:R,useExisting:t}]),i.Ab]}),t})();const K=i.Xb(W);let q=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[m.c,b.i,f,p.h]]}),t})()},oJl4:function(t,e,n){e.pbkdf2=n("IG1u"),e.pbkdf2Sync=n("4Hv8")},olUY:function(t,e,n){var i=n("P7XM"),r=n("tnIz"),s=n("hwdV").Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function c(){this.init(),this._w=a,r.call(this,64,56)}function l(t,e,n){return n^t&(e^n)}function h(t,e,n){return t&e|n&(t|e)}function u(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function f(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}i(c,r),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,r=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,p=0|this._f,m=0|this._g,b=0|this._h,g=0;g<16;++g)n[g]=t.readInt32BE(4*g);for(;g<64;++g)n[g]=0|(((e=n[g-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+n[g-7]+f(n[g-15])+n[g-16];for(var _=0;_<64;++_){var y=b+d(c)+l(c,p,m)+o[_]+n[_]|0,v=u(i)+h(i,r,s)|0;b=m,m=p,p=c,c=a+y|0,a=s,s=r,r=i,i=y+v|0}this._a=i+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},c.prototype._hash=function(){var t=s.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=c},omvX:function(t,e,n){"use strict";n.d(e,"a",function(){return Te}),n.d(e,"b",function(){return Pe});var i=n("8Y7J"),r=n("cUpR"),s=n("GS7A");function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(t){switch(t.length){case 0:return new s.d;case 1:return t[0];default:return new s.n(t)}}function c(t,e,n,i,r={},o={}){const a=[],c=[];let l=-1,h=null;if(i.forEach(t=>{const n=t.offset,i=n==l,u=i&&h||{};Object.keys(t).forEach(n=>{let i=n,c=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),c){case s.o:c=r[n];break;case s.a:c=o[n];break;default:c=e.normalizeStyleValue(n,i,c,a)}u[i]=c}),i||c.push(u),h=u,l=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return c}function l(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&h(n,"start",t)));break;case"done":t.onDone(()=>i(n&&h(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&h(n,"destroy",t)))}}function h(t,e,n){const i=n.totalTime,r=u(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),s=t._data;return null!=s&&(r._data=s),r}function u(t,e,n,i,r="",s=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function d(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function f(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let p=(t,e)=>!1,m=(t,e)=>!1,b=(t,e,n)=>[];const g=o();(g||"undefined"!=typeof Element)&&(p=(t,e)=>t.contains(e),m=(()=>{if(g||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):m}})(),b=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let E=(()=>{class t{validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return C(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,r,o=[],a){return new s.d(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),k=(()=>{class t{}return t.NOOP=new E,t})();const O="ng-enter",A="ng-leave",D="ng-trigger",I=".ng-trigger",T="ng-animating",L=".ng-animating";function P(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:R(parseFloat(e[1]),e[2])}function R(t,e){switch(e){case"s":return 1e3*t;default:return t}}function M(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,r=0,s="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=R(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=R(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else i=t;if(!n){let n=!1,s=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(s,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:r,easing:s}}(t,e,n)}function j(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function F(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else j(t,n);return n}function N(t,e,n){return n?e+":"+n+";":""}function V(t){let e="";for(let n=0;n{const r=Z(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]}),o()&&V(t))}function B(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Z(e);t.style[n]=""}),o()&&V(t))}function z(t){return Array.isArray(t)?1==t.length?t[0]:Object(s.i)(t):t}const H=new RegExp("{{\\s*(.+?)\\s*}}","g");function W(t){let e=[];if("string"==typeof t){let n;for(;n=H.exec(t);)e.push(n[1]);H.lastIndex=0}return e}function K(t,e,n){const i=t.toString(),r=i.replace(H,(t,i)=>{let r=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),r=""),r.toString()});return r==i?t:r}function q(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Y=/-+([a-z0-9])/g;function Z(t){return t.replace(Y,(...t)=>t[1].toUpperCase())}function X(t,e){return 0===t||0===e}function G(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(t=>{s.hasOwnProperty(t)||o.push(t),s[t]=n[t]}),o.length)for(var r=1;rfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const r=i[1],s=i[2],o=i[3];e.push(it(r,o)),"<"!=s[0]||r==J&&o==J||e.push(it(o,r))}(t,n,e)):n.push(t),n}const et=new Set(["true","1"]),nt=new Set(["false","0"]);function it(t,e){const n=et.has(t)||nt.has(t),i=et.has(e)||nt.has(e);return(r,s)=>{let o=t==J||t==r,a=e==J||e==s;return!o&&n&&"boolean"==typeof r&&(o=r?et.has(t):nt.has(t)),!a&&i&&"boolean"==typeof s&&(a=s?et.has(e):nt.has(e)),o&&a}}const rt=new RegExp("s*:selfs*,?","g");function st(t,e,n){return new ot(t).build(e,n)}class ot{constructor(t){this._driver=t}build(t,e){const n=new at(e);return this._resetContextStyleTimingState(n),$(this,z(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const r=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,r.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const r=this.visitTransition(t,e);n+=r.queryCount,i+=r.depCount,s.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:s,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const r=new Set,s=i||{};if(n.styles.forEach(t=>{if(ct(t)){const e=t;Object.keys(e).forEach(t=>{W(e[t]).forEach(t=>{s.hasOwnProperty(t)||r.add(t)})})}}),r.size){const n=q(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=$(this,z(t.animation),e);return{type:1,matchers:tt(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:lt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>$(this,t,e)),options:lt(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map(t=>{e.currentTime=n;const r=$(this,t,e);return i=Math.max(i,e.currentTime),r});return e.currentTime=i,{type:3,steps:r,options:lt(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ht(M(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ht(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||M(i,e),ht(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let r=t.styles?t.styles:Object(s.k)({});if(5==r.type)i=this.visitKeyframes(r,e);else{let r=t.styles,o=!1;if(!r){o=!0;const t={};n.easing&&(t.easing=n.easing),r=Object(s.k)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(r,e);a.isEmptyStep=o,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==s.a?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,r=null;return n.forEach(t=>{if(ct(t)){const e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=e.collectedStyles[e.currentQuerySelector],o=s[n];let a=!0;o&&(r!=i&&r>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=o.startTime),a&&(s[n]={startTime:r,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},r=W(t);r.length&&r.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let s=!1,o=!1,a=0;const c=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let c=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),l=0;return null!=c&&(i++,l=n.offset=c),o=o||l<0||l>1,s=s||l0&&i{const s=h>0?i==u?1:h*i:r[i],o=s*p;e.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(t,e),t.offset=s,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:$(this,z(t.animation),e),options:lt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:lt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:lt(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(rt,"")),[t=t.replace(/@\*/g,I).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,L),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,d(e.collectedStyles,e.currentQuerySelector,{});const o=$(this,z(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:o,originalSelector:t.selector,options:lt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:M(t.timings,e.errors,!0);return{type:12,animation:$(this,z(t.animation),e),timings:n,options:null}}}class at{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ct(t){return!Array.isArray(t)&&"object"==typeof t}function lt(t){var e;return t?(t=j(t)).params&&(t.params=(e=t.params)?j(e):null):t={},t}function ht(t,e,n){return{duration:t,delay:e,easing:n}}function ut(t,e,n,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class dt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ft=new RegExp(":enter","g"),pt=new RegExp(":leave","g");function mt(t,e,n,i,r,s={},o={},a,c,l=[]){return(new bt).buildKeyframes(t,e,n,i,r,s,o,a,c,l)}class bt{buildKeyframes(t,e,n,i,r,s,o,a,c,l=[]){c=c||new dt;const h=new _t(t,e,c,i,r,l,[]);h.options=a,h.currentTimeline.setStyles([s],null,h.errors,a),$(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[ut(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const r=null!=n.duration?P(n.duration):null,s=null!=n.delay?P(n.delay):null;return 0!==r&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,r,s);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),$(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const r=t.options;if(r&&(r.params||r.delay)&&(i=e.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=gt);const t=P(r.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>$(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?P(t.options.delay):0;t.steps.forEach(s=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),$(this,s,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return M(e.params?K(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,t.styles.forEach(t=>{s.forwardTime((t.offset||0)*r),s.setStyles(t.styles,t.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(i+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},r=i.delay?P(i.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=gt);let s=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);r&&o.delayNextStep(r),n===e.element&&(a=o.currentTimeline),$(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),o=s*(e.currentQueryTotal-1);let a=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;$(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}const gt={};class _t{constructor(t,e,n,i,r,s,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=gt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new yt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=P(n.duration)),null!=n.delay&&(i.delay=P(n.delay));const r=n.params;if(r){let t=i.params;t||(t=this.options.params={}),Object.keys(r).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=K(r[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,r=new _t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=gt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new vt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,r,s){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(ft,"."+this._enterClassName)).replace(pt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return r||0!=o.length||s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class yt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new yt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||s.a,this._currentKeyframe[t]=s.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const r=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=s.a})):F(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=K(o[t],r,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:s.a),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((r,o)=>{const a=F(r,!0);Object.keys(a).forEach(n=>{const i=a[n];i==s.o?t.add(n):i==s.a&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const r=t.size?q(t.values()):[],o=e.size?q(e.values()):[];if(n){const t=i[0],e=j(t);t.offset=0,e.offset=1,i=[t,e]}return ut(this.element,i,r,o,this.duration,this.startTime,this.easing,!1)}}class vt extends yt{constructor(t,e,n,i,r,s,o=!1){super(t,e,s.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=n+e,o=e/s,a=F(t[0],!1);a.offset=0,r.push(a);const c=F(t[0],!1);c.offset=wt(o),r.push(c);const l=t.length-1;for(let i=1;i<=l;i++){let o=F(t[i],!1);o.offset=wt((e+o.offset*n)/s),r.push(o)}n=s,e=0,i="",t=r}return ut(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function wt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class xt{}class Ct extends xt{normalizePropertyName(t,e){return Z(t)}normalizeStyleValue(t,e,n,i){let r="";const s=n.toString().trim();if(St[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return s+r}}const St=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Et(t,e,n,i,r,s,o,a,c,l,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:h,totalTime:u,errors:d}}const kt={};class Ot{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,r){return t.some(t=>t(e,n,i,r))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],r=this._stateStyles[t],s=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):s}build(t,e,n,i,r,s,o,a,c,l){const h=[],u=this.ast.options&&this.ast.options.params||kt,f=this.buildStyles(n,o&&o.params||kt,h),p=a&&a.params||kt,m=this.buildStyles(i,p,h),b=new Set,g=new Map,_=new Map,y="void"===i,v={params:Object.assign(Object.assign({},u),p)},w=l?[]:mt(t,e,this.ast.animation,r,s,f,m,v,c,h);let x=0;if(w.forEach(t=>{x=Math.max(t.duration+t.delay,x)}),h.length)return Et(e,this._triggerName,n,i,y,f,m,[],[],g,_,x,h);w.forEach(t=>{const n=t.element,i=d(g,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const r=d(_,n,{});t.postStyleProps.forEach(t=>r[t]=!0),n!==e&&b.add(n)});const C=q(b.values());return Et(e,this._triggerName,n,i,y,f,m,w,C,g,_,x)}}class At{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=j(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach(t=>{let s=r[t];s.length>1&&(s=K(s,i,e)),n[t]=s})}}),n}}class Dt{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new At(t.style,t.options&&t.options.params||{})}),It(this.states,"true","1"),It(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Ot(t,e,this.states))}),this.fallbackTransition=new Ot(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(r=>r.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function It(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Tt=new dt;class Lt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=st(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,r=c(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],r=this._animations[t];let o;const c=new Map;if(r?(o=mt(this._driver,e,r,O,A,{},{},n,Tt,i),o.forEach(t=>{const e=d(c,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));c.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,s.a)})});const l=a(o.map(t=>{const e=c.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,i){const r=u(e,"","","");return l(this._getPlayer(t),n,r,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Pt="ng-animate-queued",Rt="ng-animate-disabled",Mt=".ng-animate-disabled",jt=[],Ft={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Nt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Vt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=j(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Ut="void",Bt=new Vt(Ut);class zt{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Xt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var r;const s=d(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};s.push(o);const a=d(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Xt(t,D),Xt(t,"ng-trigger-"+e),a[e]=Bt),()=>{this._engine.afterFlush(()=>{const t=s.indexOf(o);t>=0&&s.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const r=this._getTrigger(e),s=new Wt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Xt(t,D),Xt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const c=new Vt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[e]=c,a||(a=Bt),c.value!==Ut&&a.value===c.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let r=0;r{B(t,n),U(t,i)})}return}const l=d(this._engine.playersByElement,t,[]);l.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=r.matchTransition(a.value,c.value,t,c.params),u=!1;if(!h){if(!i)return;h=r.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:c,player:s,isFallbackTransition:u}),u||(Xt(t,Pt),s.onStart(()=>{Gt(t,Pt)})),s.onDone(()=>{let e=this.players.indexOf(s);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(s);t>=0&&n.splice(t,1)}}),this.players.push(s),l.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,I,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const r=this._engine.statesByElement.get(t);if(r){const s=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,Ut,i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&a(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const r=this._triggers[i].fallbackTransition,s=this._engine.statesByElement.get(t)[i]||Bt,o=new Vt(Ut),a=new Wt(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:r,fromState:s,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==Ft||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Xt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,s=this._elementListeners.get(r);s&&s.forEach(e=>{if(e.name==n.triggerName){const i=u(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,l(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Ht{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new zt(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Xt(t,Rt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Gt(t,Rt))}removeNode(t,e,n,i){if(Kt(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,r){return Kt(e)?this._fetchNamespace(t).listen(e,n,i,r):()=>{}}_buildInstruction(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,I,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,L,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return a(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Ft,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Mt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Mt,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?a(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new dt,i=[],r=new Map,o=[],c=new Map,l=new Map,h=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n=O+g++;b.set(e,n),t.forEach(t=>Xt(t,n))});const _=[],y=new Set,v=new Set;for(let s=0;sy.add(t)):v.add(t))}const w=new Map,x=Zt(p,Array.from(y));x.forEach((t,e)=>{const n=A+g++;w.set(e,n),t.forEach(t=>Xt(t,n))}),t.push(()=>{m.forEach((t,e)=>{const n=b.get(e);t.forEach(t=>Gt(t,n))}),x.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Gt(t,n))}),_.forEach(t=>{this.processLeaveNode(t)})});const C=[],S=[];for(let s=this._namespaceList.length-1;s>=0;s--)this._namespaceList[s].drainQueuedTransitions(e).forEach(t=>{const e=t.player,r=t.element;if(C.push(e),this.collectedEnterElements.length){const t=r.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const s=!f||!this.driver.containsElement(f,r),a=w.get(r),u=b.get(r),p=this._buildInstruction(t,n,u,a,s);if(p.errors&&p.errors.length)S.push(p);else{if(s)return e.onStart(()=>B(r,p.fromStyles)),e.onDestroy(()=>U(r,p.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>B(r,p.fromStyles)),e.onDestroy(()=>U(r,p.toStyles)),void i.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(r,p.timelines),o.push({instruction:p,player:e,element:r}),p.queriedElements.forEach(t=>d(c,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=l.get(e);t||l.set(e,t=new Set),n.forEach(e=>t.add(e))}}),p.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=h.get(e);i||h.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(S.length){const t=[];S.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),C.forEach(t=>t.destroy()),this.reportError(t)}const E=new Map,k=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(k.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,E))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(E,e,[]).push(t),t.destroy()})});const D=_.filter(t=>Jt(t,l,h)),I=new Map;Yt(I,this.driver,v,h,s.a).forEach(t=>{Jt(t,l,h)&&D.push(t)});const T=new Map;m.forEach((t,e)=>{Yt(T,this.driver,new Set(t),l,s.o)}),D.forEach(t=>{const e=I.get(t),n=T.get(t);I.set(t,Object.assign(Object.assign({},e),n))});const P=[],R=[],M={};o.forEach(t=>{const{element:e,player:s,instruction:o}=t;if(n.has(e)){if(u.has(e))return s.onDestroy(()=>U(e,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let t=M;if(k.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=k.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>k.set(e,t))}const n=this._buildAnimation(s.namespaceId,o,E,r,T,I);if(s.setRealPlayer(n),t===M)P.push(s);else{const e=this.playersByElement.get(t);e&&e.length&&(s.parentPlayer=a(e)),i.push(s)}}else B(e,o.fromStyles),s.onDestroy(()=>U(e,o.toStyles)),R.push(s),u.has(e)&&i.push(s)}),R.forEach(t=>{const e=r.get(t.element);if(e&&e.length){const n=a(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let s=0;s<_.length;s++){const t=_[s],e=t.__ng_removed;if(Gt(t,A),e&&e.hasAnimation)continue;let n=[];if(c.size){let e=c.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,L,!0);for(let t=0;t!t.destroyed);i.length?$t(this,t,i):this.processLeaveNode(t)}return _.length=0,P.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),P}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,r){let s=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(s=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||r==Ut;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&s.push(e)})}}return(n||i)&&(s=s.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),s}_beforeAnimationBuild(t,e,n){const i=e.element,r=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,c=d(n,t,[]);this._getPreviousPlayers(t,a,r,s,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}B(i,e.fromStyles)}_buildAnimation(t,e,n,i,r,o){const l=e.triggerName,h=e.element,u=[],f=new Set,p=new Set,m=e.timelines.map(e=>{const a=e.element;f.add(a);const d=a.__ng_removed;if(d&&d.removedBeforeQueried)return new s.d(e.duration,e.delay);const m=a!==h,b=function(t){const e=[];return Qt(t,e),e}((n.get(a)||jt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===a),g=r.get(a),_=o.get(a),y=c(0,this._normalizer,0,e.keyframes,g,_),v=this._buildPlayer(e,y,b);if(e.subTimeline&&i&&p.add(a),m){const e=new Wt(t,l,a);e.setRealPlayer(v),u.push(e)}return v});u.forEach(t=>{d(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),f.forEach(t=>Xt(t,T));const b=a(m);return b.onDestroy(()=>{f.forEach(t=>Gt(t,T)),U(h,e.toStyles)}),p.forEach(t=>{d(i,t,[]).push(b)}),b}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new s.d(t.duration,t.delay)}}class Wt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new s.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>l(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){d(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Kt(t){return t&&1===t.nodeType}function qt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Yt(t,e,n,i,r){const s=[];n.forEach(t=>s.push(qt(t)));const o=[];i.forEach((n,i)=>{const s={};n.forEach(t=>{const n=s[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=Nt,o.push(i))}),t.set(i,s)});let a=0;return n.forEach(t=>qt(t,s[a++])),o}function Zt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),r=new Map;function s(t){if(!t)return 1;let e=r.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:s(o),r.set(t,e),e}return e.forEach(t=>{const e=s(t);1!==e&&n.get(e).push(t)}),n}function Xt(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Gt(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function $t(t,e,n){a(n).onDone(()=>t.processLeaveNode(e))}function Qt(t,e){for(let n=0;nr.add(t)):e.set(t,i),n.delete(t),!0}class te{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Ht(t,e,n),this._timelineEngine=new Lt(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,r){const s=t+"-"+i;let o=this._triggerCache[s];if(!o){const t=[],e=st(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new Dt(t,e)}(i,e),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,r]=f(n);this._timelineEngine.command(t,e,r,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,r){if("@"==n.charAt(0)){const[t,i]=f(n);return this._timelineEngine.listen(t,e,i,r)}return this._transitionEngine.listen(t,e,n,i,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ee(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=ie(e[0]),e.length>1&&(i=ie(e[e.length-1]))):e&&(n=ie(e)),n||i?new ne(t,n,i):null}let ne=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&U(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(U(this._element,this._initialStyles),this._endStyles&&(U(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(B(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(B(this._element,this._endStyles),this._endStyles=null),U(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function ie(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){!function(t,e){const n=fe(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),ue(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=fe(t,"").split(","),i=he(n,e);i>=0&&(n.splice(i,1),de(t,"",n.join(",")))}(this._element,this._name))}}function ce(t,e,n){de(t,"PlayState",n,le(t,e))}function le(t,e){const n=fe(t,"");return n.indexOf(",")>0?he(n.split(","),e):he([n],e)}function he(t,e){for(let n=0;n=0)return n;return-1}function ue(t,e,n){n?t.removeEventListener(oe,e):t.addEventListener(oe,e)}function de(t,e,n,i){const r=se+e;if(null!=i){const e=t.style[r];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[r]=n}function fe(t,e){return t.style[se+e]||""}class pe{constructor(t,e,n,i,r,s,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=i+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ae(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:Q(this.element,n))})}this.currentSnapshot=t}}class me extends s.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=S(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class be{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return C(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>S(t));let i=`@keyframes ${e} {\n`,r="";n.forEach(t=>{r=" ";const e=parseFloat(t.offset);i+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${e}: ${n};\n`)}}),i+=r+"}\n"}),i+="}\n";const s=document.createElement("style");return s.textContent=i,s}animate(t,e,n,i,r,s=[],o){const a=s.filter(t=>t instanceof pe),c={};X(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=G(t,e,c));if(0==n)return new me(t,l);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=ee(t,e),f=new pe(t,e,h,n,i,r,l,d);return f.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),f}}class ge{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Q(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _e{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ye().toString()),this._cssKeyframesDriver=new be}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return C(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,s);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const c={},l=s.filter(t=>t instanceof ge);X(n,i)&&l.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const h=ee(t,e=G(t,e=e.map(t=>F(t,!1)),c));return new ge(t,e,a,h)}}function ye(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ve=n("SVse");let we=(()=>{class t extends s.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.T.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Object(s.i)(t):t;return Se(this._renderer,null,e,"register",[n]),new xe(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(i.H),i.Zb(ve.d))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();class xe extends s.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Ce(this._id,t,e||{},this._renderer)}}class Ce{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Se(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Se(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}const Ee="@",ke="@.disabled";let Oe=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Ae("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const s=e=>{Array.isArray(e)?e.forEach(s):this.engine.registerTrigger(i,r,t,e.name,e)};return e.data.animation.forEach(s),new De(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(i.H),i.Zb(te),i.Zb(i.B))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();class Ae{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==Ee&&e==ke?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class De extends Ae{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Ee?"."==e.charAt(1)&&e==ke?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==Ee){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),s="";return r.charAt(0)!=Ee&&([r,s]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,i,r,s,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Ie=(()=>{class t extends te{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(ve.d),i.Zb(k),i.Zb(xt))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();const Te=new i.s("AnimationModuleType"),Le=[{provide:k,useFactory:function(){return"function"==typeof ye()?new _e:new be}},{provide:Te,useValue:"BrowserAnimations"},{provide:s.b,useClass:we},{provide:xt,useFactory:function(){return new Ct}},{provide:te,useClass:Ie},{provide:i.H,useFactory:function(t,e,n){return new Oe(t,e,n)},deps:[r.e,te,i.B]}];let Pe=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:Le,imports:[r.a]}),t})()},pLZG:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q");function r(t,e){return function(n){return n.lift(new s(t,e))}}class s{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.a{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},pMoy:function(t,e,n){"use strict";n.d(e,"a",function(){return w}),n.d(e,"b",function(){return C});var i=n("8LU1"),r=n("8Y7J"),s=n("s7LF"),o=n("UhP/"),a=n("omvX"),c=n("9b/N"),l=n("YEUz");const h=["input"],u=function(){return{enterDuration:150}},d=["*"],f=new r.s("mat-checkbox-default-options",{providedIn:"root",factory:p});function p(){return{color:"accent",clickAction:"check-indeterminate"}}let m=0;const b=p(),g={provide:s.k,useExisting:Object(r.X)(()=>w),multi:!0};class _{}class y{constructor(t){this._elementRef=t}}const v=Object(o.C)(Object(o.x)(Object(o.y)(Object(o.z)(y))));let w=(()=>{class t extends v{constructor(t,e,n,i,s,o,a){super(t),this._changeDetectorRef=e,this._focusMonitor=n,this._ngZone=i,this._animationMode=o,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++m,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new r.o,this.indeterminateChange=new r.o,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||b,this.color=this.defaultColor=this._options.color||b.color,this.tabIndex=parseInt(s)||0}get inputId(){return(this.id||this._uniqueId)+"-input"}get required(){return this._required}set required(t){this._required=Object(i.c)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=Object(i.c)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=Object(i.c)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new _;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const n=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===n?this.disabled||"noop"!==n||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==n&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t="keyboard",e){this._focusMonitor.focusVia(this._inputElement,t,e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+n}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(r.l),r.Pb(r.h),r.Pb(l.h),r.Pb(r.B),r.ac("tabindex"),r.Pb(a.a,8),r.Pb(f,8))},t.\u0275cmp=r.Jb({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(r.Pc(h,!0),r.Pc(o.r,!0)),2&t){let t;r.vc(t=r.ec())&&(e._inputElement=t.first),r.vc(t=r.ec())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Yb("id",e.id),r.Eb("tabindex",null),r.Hb("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[r.Cb([g]),r.Ab],ngContentSelectors:d,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(r.nc(),r.Vb(0,"label",0,1),r.Vb(2,"span",2),r.Vb(3,"input",3,4),r.dc("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),r.Ub(),r.Vb(5,"span",5),r.Qb(6,"span",6),r.Ub(),r.Qb(7,"span",7),r.Vb(8,"span",8),r.gc(),r.Vb(9,"svg",9),r.Qb(10,"path",10),r.Ub(),r.fc(),r.Qb(11,"span",11),r.Ub(),r.Ub(),r.Vb(12,"span",12,13),r.dc("cdkObserveContent",function(){return e._onLabelTextChange()}),r.Vb(14,"span",14),r.Kc(15,"\xa0"),r.Ub(),r.mc(16),r.Ub(),r.Ub()),2&t){const t=r.wc(1),n=r.wc(13);r.Eb("for",e.inputId),r.Db(2),r.Hb("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),r.Db(1),r.oc("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),r.Eb("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),r.Db(2),r.oc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",r.rc(19,u))}},directives:[o.r,c.a],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.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)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.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}\n"],encapsulation:2,changeDetection:0}),t})(),x=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)}}),t})(),C=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},imports:[[o.s,o.i,c.c,x],o.i,x]}),t})()},pu8Q:function(t,e,n){"use strict";n.d(e,"a",function(){return y}),n.d(e,"b",function(){return _});var i=n("8Y7J"),r=n("SVse"),s=n("UhP/"),o=n("8LU1"),a=n("SCoL"),c=n("omvX");function l(t,e){if(1&t&&(i.gc(),i.Qb(0,"circle",3)),2&t){const t=i.hc();i.Fc("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.Eb("r",t._getCircleRadius())}}function h(t,e){if(1&t&&(i.gc(),i.Qb(0,"circle",3)),2&t){const t=i.hc();i.Fc("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.Eb("r",t._getCircleRadius())}}function u(t,e){if(1&t&&(i.gc(),i.Qb(0,"circle",3)),2&t){const t=i.hc();i.Fc("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.Eb("r",t._getCircleRadius())}}function d(t,e){if(1&t&&(i.gc(),i.Qb(0,"circle",3)),2&t){const t=i.hc();i.Fc("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.Eb("r",t._getCircleRadius())}}const f=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class p{constructor(t){this._elementRef=t}}const m=Object(s.x)(p,"primary"),b=new i.s("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let g=(()=>{class t extends m{constructor(e,n,i,r,s){super(e),this._elementRef=e,this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(i.head)||o.set(i.head,new Set([100])),this._fallbackAnimation=n.EDGE||n.TRIDENT,this._noopAnimations="NoopAnimations"===r&&!!s&&!s._forceAnimations,s&&(s.diameter&&(this.diameter=s.diameter),s.strokeWidth&&(this.strokeWidth=s.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Object(o.f)(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Object(o.f)(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Object(o.f)(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Object(a.c)(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,n=this._diameter,i=t._diameters;let r=i.get(e);if(!r||!r.has(n)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),r||(r=new Set,i.set(e,r)),r.add(n)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,""+this._spinnerAnimationLabel)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(a.a),i.Pb(r.d,8),i.Pb(c.a,8),i.Pb(b))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(i.Eb("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),i.Fc("width",e.diameter,"px")("height",e.diameter,"px"),i.Hb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[i.Ab],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(i.gc(),i.Vb(0,"svg",0),i.Ic(1,l,1,9,"circle",1),i.Ic(2,h,1,7,"circle",2),i.Ub()),2&t&&(i.Fc("width",e.diameter,"px")("height",e.diameter,"px"),i.oc("ngSwitch","indeterminate"===e.mode),i.Eb("viewBox",e._getViewBox()),i.Db(1),i.oc("ngSwitchCase",!0),i.Db(1),i.oc("ngSwitchCase",!1))},directives:[r.q,r.r],styles:[f],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),_=(()=>{class t extends g{constructor(t,e,n,i,r){super(t,e,n,i,r),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(a.a),i.Pb(r.d,8),i.Pb(c.a,8),i.Pb(b))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(i.Fc("width",e.diameter,"px")("height",e.diameter,"px"),i.Hb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[i.Ab],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(i.gc(),i.Vb(0,"svg",0),i.Ic(1,u,1,9,"circle",1),i.Ic(2,d,1,7,"circle",2),i.Ub()),2&t&&(i.Fc("width",e.diameter,"px")("height",e.diameter,"px"),i.oc("ngSwitch","indeterminate"===e.mode),i.Eb("viewBox",e._getViewBox()),i.Db(1),i.oc("ngSwitchCase",!0),i.Db(1),i.oc("ngSwitchCase",!1))},directives:[r.q,r.r],styles:[f],encapsulation:2,changeDetection:0}),t})(),y=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[s.i,r.c],s.i]}),t})()},pxpQ:function(t,e,n){"use strict";n.d(e,"b",function(){return s}),n.d(e,"a",function(){return a});var i=n("7o/Q"),r=n("WMd4");function s(t,e=0){return function(n){return n.lift(new o(t,e))}}class o{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))}}class a extends i.a{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(a.dispatch,this.delay,new c(t,this.destination)))}_next(t){this.scheduleMessage(r.a.createNext(t))}_error(t){this.scheduleMessage(r.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(r.a.createComplete()),this.unsubscribe()}}class c{constructor(t,e){this.notification=t,this.destination=e}}},q59W:function(t,e,n){"use strict";n.d(e,"a",function(){return x}),n.d(e,"b",function(){return m}),n.d(e,"c",function(){return b}),n.d(e,"d",function(){return C}),n.d(e,"e",function(){return k}),n.d(e,"f",function(){return S}),n.d(e,"g",function(){return E}),n.d(e,"h",function(){return w});var i=n("YEUz"),r=n("9gLZ"),s=n("8LU1"),o=n("Ht+U"),a=n("SVse"),c=n("8Y7J"),l=n("XNiG"),h=n("LRne"),u=n("JX91"),d=n("1G5W");function f(t,e){1&t&&c.mc(0)}const p=["*"];let m=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(c.Pb(c.l))},t.\u0275dir=c.Kb({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),b=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(c.Pb(c.O))},t.\u0275dir=c.Kb({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),g=0;const _="edit",y="done",v="error",w=new c.s("STEPPER_GLOBAL_OPTIONS");let x=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=Object(s.c)(t)}get optional(){return this._optional}set optional(t){this._optional=Object(s.c)(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=Object(s.c)(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=Object(s.c)(t)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}}return t.\u0275fac=function(e){return new(e||t)(c.Pb(Object(c.X)(()=>C)),c.Pb(w,8))},t.\u0275cmp=c.Jb({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,n){if(1&t&&c.Ib(n,b,!0),2&t){let t;c.vc(t=c.ec())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&c.Ec(c.O,!0),2&t){let t;c.vc(t=c.ec())&&(e.content=t.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},exportAs:["cdkStep"],features:[c.Bb],ngContentSelectors:p,decls:1,vars:0,template:function(t,e){1&t&&(c.nc(),c.Ic(0,f,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{constructor(t,e,n,i){this._dir=t,this._changeDetectorRef=e,this._elementRef=n,this._destroyed=new l.a,this.steps=new c.F,this._linear=!1,this._selectedIndex=0,this.selectionChange=new c.o,this._orientation="horizontal",this._groupId=g++,this._document=i}get linear(){return this._linear}set linear(t){this._linear=Object(s.c)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){const e=Object(s.f)(t);this.steps&&this._steps?(this._isValidIndex(t),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=e}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=this.steps?this.steps.toArray().indexOf(t):-1}ngAfterContentInit(){this._steps.changes.pipe(Object(u.a)(this._steps),Object(d.a)(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new i.g(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(h.a)()).pipe(Object(u.a)(this._layoutDirection()),Object(d.a)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const n=this.steps.toArray()[t],i=this._isCurrentStep(t);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,i):this._getGuidelineLogic(n,i,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?v:!t.completed||e?"number":t.editable?_:y}_getGuidelineLogic(t,e,n="number"){return t._showError&&t.hasError&&!e?v:t.completed&&!e?y:t.completed&&e?n:t.editable&&e?_:n}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=Object(o.r)(t),n=t.keyCode,i=this._keyManager;null==i.activeItemIndex||e||n!==o.m&&n!==o.e?i.onKeydown(t):(this.selectedIndex=i.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){const e=this.steps.toArray();return e[this._selectedIndex].interacted=!0,!!(this._linear&&t>=0)&&e.slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){if(!this._document||!this._elementRef)return!1;const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_isValidIndex(t){return t>-1&&(!this.steps||t{class t{constructor(t){this._stepper=t,this.type="submit"}_handleClick(){this._stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(c.Pb(C))},t.\u0275dir=c.Kb({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&c.dc("click",function(){return e._handleClick()}),2&t&&c.Yb("type",e.type)},inputs:{type:"type"}}),t})(),E=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(c.Pb(C))},t.\u0275dir=c.Kb({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&c.dc("click",function(){return e._handleClick()}),2&t&&c.Yb("type",e.type)},inputs:{type:"type"}}),t})(),k=(()=>{class t{}return t.\u0275mod=c.Nb({type:t}),t.\u0275inj=c.Mb({factory:function(e){return new(e||t)},imports:[[r.a]]}),t})()},q7Ft:function(t,e,n){"use strict";n.d(e,"a",function(){return z}),n.d(e,"b",function(){return W}),n.d(e,"c",function(){return B}),n.d(e,"d",function(){return q});var i=n("SCoL"),r=n("7KAL"),s=n("SVse"),o=n("8Y7J"),a=n("UhP/"),c=n("8LU1"),l=n("Ht+U"),h=n("XNiG"),u=n("xgIS"),d=n("VRyK"),f=n("pLZG"),p=n("lJxs"),m=n("CqXF"),b=n("1G5W"),g=n("/uUt"),_=n("IzEk"),y=n("JX91"),v=n("Kj3r"),w=n("GS7A"),x=n("omvX"),C=n("YEUz"),S=n("9gLZ");const E=["*"];function k(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",2),o.dc("click",function(){return o.zc(t),o.hc()._onBackdropClicked()}),o.Ub()}if(2&t){const t=o.hc();o.Hb("mat-drawer-shown",t._isShowingBackdrop())}}function O(t,e){1&t&&(o.Vb(0,"mat-drawer-content"),o.mc(1,2),o.Ub())}const A=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],D=["mat-drawer","mat-drawer-content","*"];function I(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",2),o.dc("click",function(){return o.zc(t),o.hc()._onBackdropClicked()}),o.Ub()}if(2&t){const t=o.hc();o.Hb("mat-drawer-shown",t._isShowingBackdrop())}}function T(t,e){1&t&&(o.Vb(0,"mat-sidenav-content",3),o.mc(1,2),o.Ub())}const L=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],P=["mat-sidenav","mat-sidenav-content","*"],R=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",M={transformDrawer:Object(w.m)("transform",[Object(w.j)("open, open-instant",Object(w.k)({transform:"none",visibility:"visible"})),Object(w.j)("void",Object(w.k)({"box-shadow":"none",visibility:"hidden"})),Object(w.l)("void => open-instant",Object(w.e)("0ms")),Object(w.l)("void <=> open, open-instant => void",Object(w.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},j=new o.s("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),F=new o.s("MAT_DRAWER_CONTAINER");let N=(()=>{class t extends r.a{constructor(t,e,n,i,r){super(n,i,r),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(o.h),o.Pb(Object(o.X)(()=>U)),o.Pb(o.l),o.Pb(r.c),o.Pb(o.B))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&o.Fc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[o.Ab],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(o.nc(),o.mc(0))},encapsulation:2,changeDetection:0}),t})(),V=(()=>{class t{constructor(t,e,n,i,r,s,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=i,this._ngZone=r,this._doc=s,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new h.a,this._animationEnd=new h.a,this._animationState="void",this.openedChange=new o.o(!0),this._openedStream=this.openedChange.pipe(Object(f.a)(t=>t),Object(p.a)(()=>{})),this.openedStart=this._animationStarted.pipe(Object(f.a)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),Object(m.a)(void 0)),this._closedStream=this.openedChange.pipe(Object(f.a)(t=>!t),Object(p.a)(()=>{})),this.closedStart=this._animationStarted.pipe(Object(f.a)(t=>t.fromState!==t.toState&&"void"===t.toState),Object(m.a)(void 0)),this._destroyed=new h.a,this.onPositionChanged=new o.o,this._modeChanged=new h.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{Object(u.a)(this._elementRef.nativeElement,"keydown").pipe(Object(f.a)(t=>t.keyCode===l.f&&!this.disableClose&&!Object(l.r)(t)),Object(b.a)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Object(g.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:n}=t;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=Object(c.c)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=Object(c.c)(t)}get opened(){return this._opened}set opened(t){this.toggle(Object(c.c)(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,n="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(Object(_.a)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(o.l),o.Pb(C.i),o.Pb(C.h),o.Pb(i.a),o.Pb(o.B),o.Pb(s.d,8),o.Pb(F,8))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&o.Gc("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(o.Eb("align",null),o.Hc("@transform",e._animationState),o.Hb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:E,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(o.nc(),o.Vb(0,"div",0),o.mc(1),o.Ub())},encapsulation:2,data:{animation:[M.transformDrawer]},changeDetection:0}),t})(),U=(()=>{class t{constructor(t,e,n,i,r,s=!1,a){this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=i,this._animationMode=a,this._drawers=new o.F,this.backdropClick=new o.o,this._destroyed=new h.a,this._doCheckSubject=new h.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new h.a,t&&t.change.pipe(Object(b.a)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),r.change().pipe(Object(b.a)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=Object(c.c)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:Object(c.c)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Object(y.a)(this._allDrawers),Object(b.a)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Object(y.a)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Object(v.a)(10),Object(b.a)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const n=this._left._getWidth();t+=n,e-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const n=this._right._getWidth();e+=n,t-=n}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Object(f.a)(t=>t.fromState!==t.toState),Object(b.a)(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Object(b.a)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Object(b.a)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Object(_.a)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Object(b.a)(Object(d.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(S.b,8),o.Pb(o.l),o.Pb(o.B),o.Pb(o.h),o.Pb(r.e),o.Pb(j),o.Pb(x.a,8))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){if(1&t&&(o.Ib(n,N,!0),o.Ib(n,V,!0)),2&t){let t;o.vc(t=o.ec())&&(e._content=t.first),o.vc(t=o.ec())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&o.Pc(N,!0),2&t){let t;o.vc(t=o.ec())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&o.Hb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[o.Cb([{provide:F,useExisting:t}])],ngContentSelectors:D,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(o.nc(A),o.Ic(0,k,1,2,"div",0),o.mc(1),o.mc(2,1),o.Ic(3,O,2,0,"mat-drawer-content",1)),2&t&&(o.oc("ngIf",e.hasBackdrop),o.Db(3),o.oc("ngIf",!e._content))},directives:[s.o,N],styles:[R],encapsulation:2,changeDetection:0}),t})(),B=(()=>{class t extends N{constructor(t,e,n,i,r){super(t,e,n,i,r)}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(o.h),o.Pb(Object(o.X)(()=>W)),o.Pb(o.l),o.Pb(r.c),o.Pb(o.B))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&o.Fc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[o.Ab],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(o.nc(),o.mc(0))},encapsulation:2,changeDetection:0}),t})(),z=(()=>{class t extends V{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=Object(c.c)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Object(c.f)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Object(c.f)(t)}}return t.\u0275fac=function(e){return H(e||t)},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(o.Eb("align",null),o.Fc("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),o.Hb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[o.Ab],ngContentSelectors:E,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(o.nc(),o.Vb(0,"div",0),o.mc(1),o.Ub())},encapsulation:2,data:{animation:[M.transformDrawer]},changeDetection:0}),t})();const H=o.Xb(z);let W=(()=>{class t extends U{}return t.\u0275fac=function(e){return K(e||t)},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){if(1&t&&(o.Ib(n,B,!0),o.Ib(n,z,!0)),2&t){let t;o.vc(t=o.ec())&&(e._content=t.first),o.vc(t=o.ec())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&o.Hb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[o.Cb([{provide:F,useExisting:t}]),o.Ab],ngContentSelectors:P,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(o.nc(L),o.Ic(0,I,1,2,"div",0),o.mc(1),o.mc(2,1),o.Ic(3,T,2,0,"mat-sidenav-content",1)),2&t&&(o.oc("ngIf",e.hasBackdrop),o.Db(3),o.oc("ngIf",!e._content))},directives:[s.o,B,r.a],styles:[R],encapsulation:2,changeDetection:0}),t})();const K=o.Xb(W);let q=(()=>{class t{}return t.\u0275mod=o.Nb({type:t}),t.\u0275inj=o.Mb({factory:function(e){return new(e||t)},imports:[[s.c,a.i,i.b,r.b],r.b,a.i]}),t})()},qVij:function(t,e,n){var i=n("OZ/i"),r=n("Edxu");function s(t){var e,n=t.modulus.byteLength();do{e=new i(r(n))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function o(t,e){var n=function(t){var e=s(t);return{blinder:e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(e),r=e.modulus.byteLength(),o=new i(t).mul(n.blinder).umod(e.modulus),a=o.toRed(i.mont(e.prime1)),c=o.toRed(i.mont(e.prime2)),l=e.coefficient,h=e.prime1,u=e.prime2,d=a.redPow(e.exponent1).fromRed(),f=c.redPow(e.exponent2).fromRed(),p=d.isub(f).imul(l).umod(h).imul(u);return f.iadd(p).imul(n.unblinder).umod(e.modulus).toArrayLike(Buffer,"be",r)}o.getr=s,t.exports=o},qgXg:function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return c});var i=n("3N8a");class r extends i.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}var s=n("IjjT");class o extends s.a{}const a=new o(r),c=a},qlaj:function(t,e,n){"use strict";var i=n("w8CP").rotr32;function r(t,e,n){return t&e^~t&n}function s(t,e,n){return t&e^t&n^e&n}function o(t,e,n){return t^e^n}e.ft_1=function(t,e,n,i){return 0===t?r(e,n,i):1===t||3===t?o(e,n,i):2===t?s(e,n,i):void 0},e.ch32=r,e.maj32=s,e.p32=o,e.s0_256=function(t){return i(t,2)^i(t,13)^i(t,22)},e.s1_256=function(t){return i(t,6)^i(t,11)^i(t,25)},e.g0_256=function(t){return i(t,7)^i(t,18)^t>>>3},e.g1_256=function(t){return i(t,17)^i(t,19)^t>>>10}},qmMu:function(t,e,n){var i=n("Wogr"),r=n("e/Dd"),s=n("ekOh"),o=n("e6BP"),a=n("V35J"),c=n("1sBl"),l=n("kk9/"),h=n("eQOe"),u=n("NPxG"),d=n("jSPq"),f=n("yKow"),p=n("lYJp"),m=n("u/Db"),b=n("vvrf"),g=n("49sm");function _(t,e,n){var i,r,s=t.size,o=p.getEncodedBits(e,n);for(i=0;i<15;i++)t.set(i<6?i:i<8?i+1:s-15+i,8,r=1==(o>>i&1),!0),t.set(8,i<8?s-i-1:i<9?15-i-1+1:15-i-1,r,!0);t.set(s-8,8,1,!0)}e.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");var n,p,y=s.M;return void 0!==e&&(y=s.from(e.errorCorrectionLevel,s.M),n=f.from(e.version),p=h.from(e.maskPattern),e.toSJISFunc&&r.setToSJISFunction(e.toSJISFunc)),function(t,e,n,s){var p;if(g(t))p=b.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");var y=e;if(!y){var v=b.rawSplit(t);y=f.getBestVersionForData(v,n)}p=b.fromString(t,y||40)}var w=f.getBestVersionForData(p,n);if(!w)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e=0&&a<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===a||6===a)||a>=2&&a<=4&&c>=2&&c<=4,!0)}(S,e),function(t){for(var e=t.size,n=8;n=7&&function(t,e){for(var n,i,r,s=t.size,o=f.getEncodedBits(e),a=0;a<18;a++)n=Math.floor(a/3),t.set(n,i=a%3+s-8-3,r=1==(o>>a&1),!0),t.set(i,n,r,!0)}(S,e),function(t,e){for(var n=t.size,i=-1,r=n-1,s=7,o=0,a=n-1;a>0;a-=2)for(6===a&&a--;;){for(var c=0;c<2;c++)if(!t.isReserved(r,a-c)){var l=!1;o>>s&1)),t.set(r,a-c,l),-1==--s&&(o++,s=7)}if((r+=i)<0||n<=r){r-=i,i=-i;break}}}(S,x),isNaN(s)&&(s=h.getBestMask(S,_.bind(null,S,n))),h.applyMask(s,S),_(S,n,s),{modules:S,version:e,errorCorrectionLevel:n,maskPattern:s,segments:p}}(t,n,y,p)}},quSY:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("DH7j"),r=n("XoHu"),s=n("n6bG");const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:l,_subscriptions:h}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof o?e.errors:e),[])}},"rE/R":function(t,e,n){"use strict";var i,r=n("0ROu").codes,s=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function c(t,e,r,s){s=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(s);var a=!1;t.on("close",function(){a=!0}),void 0===i&&(i=n("QqdZ")),i(t,{readable:e,writable:r},function(t){if(t)return s(t);a=!0,s()});var c=!1;return function(e){if(!a&&!c)return c=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void s(e||new o("pipe"))}}function l(t){t()}function h(t,e){return t.pipe(e)}function u(t){return t.length?"function"!=typeof t[t.length-1]?a:t.pop():a}t.exports=function(){for(var t=arguments.length,e=new Array(t),n=0;n0,function(t){i||(i=t),t&&o.forEach(l),s||(o.forEach(l),r(i))})});return e.reduce(h)}},rE9v:function(t,e,n){var i=n("saaP");e.encode=i.encode,e.decode=i.decode},rJgo:function(t,e,n){"use strict";n.d(e,"a",function(){return N}),n.d(e,"b",function(){return R}),n.d(e,"c",function(){return W}),n.d(e,"d",function(){return z});var i=n("YEUz"),r=n("8LU1"),s=n("Ht+U"),o=n("8Y7J"),a=n("XNiG"),c=n("quSY"),l=n("VRyK"),h=n("LRne"),u=n("7Hc7"),d=n("JX91"),f=n("eIep"),p=n("IzEk"),m=n("pLZG"),b=n("1G5W"),g=n("3E0/"),_=n("GS7A"),y=n("1z/I"),v=n("SVse"),w=n("UhP/"),x=n("1O3W"),C=n("SCoL"),S=n("7KAL"),E=n("9gLZ");const k=["mat-menu-item",""],O=["*"];function A(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",0),o.dc("keydown",function(e){return o.zc(t),o.hc()._handleKeydown(e)})("click",function(){return o.zc(t),o.hc().closed.emit("click")})("@transformMenu.start",function(e){return o.zc(t),o.hc()._onAnimationStart(e)})("@transformMenu.done",function(e){return o.zc(t),o.hc()._onAnimationDone(e)}),o.Vb(1,"div",1),o.mc(2),o.Ub(),o.Ub()}if(2&t){const t=o.hc();o.oc("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),o.Eb("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const D={transformMenu:Object(_.m)("transformMenu",[Object(_.j)("void",Object(_.k)({opacity:0,transform:"scale(0.8)"})),Object(_.l)("void => enter",Object(_.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(_.k)({opacity:1,transform:"scale(1)"}))),Object(_.l)("* => void",Object(_.e)("100ms 25ms linear",Object(_.k)({opacity:0})))]),fadeInItems:Object(_.m)("fadeInItems",[Object(_.j)("showing",Object(_.k)({opacity:1})),Object(_.l)("void => *",[Object(_.k)({opacity:0}),Object(_.e)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},I=new o.s("MatMenuContent"),T=new o.s("MAT_MENU_PANEL");class L{}const P=Object(w.y)(Object(w.z)(L));let R=(()=>{class t extends P{constructor(t,e,n,i){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new a.a,this._focused=new a.a,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new o.F,this._tabSubscription=c.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.a,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new o.o,this.close=this.closed,this.panelId="mat-menu-panel-"+j++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=Object(r.c)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Object(r.c)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new i.g(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Object(d.a)(this._directDescendantItems),Object(f.a)(t=>Object(l.a)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Object(d.a)(this._directDescendantItems),Object(f.a)(t=>Object(l.a)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case s.f:Object(s.r)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case s.h:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case s.l:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==s.o&&e!==s.c||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Object(p.a)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e="mat-elevation-z"+Math.min(4+t,24),n=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Object(d.a)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(o.l),o.Pb(o.B),o.Pb(M))},t.\u0275dir=o.Kb({type:t,contentQueries:function(t,e,n){if(1&t&&(o.Ib(n,I,!0),o.Ib(n,R,!0),o.Ib(n,R,!1)),2&t){let t;o.vc(t=o.ec())&&(e.lazyContent=t.first),o.vc(t=o.ec())&&(e._allItems=t),o.vc(t=o.ec())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&o.Pc(o.O,!0),2&t){let t;o.vc(t=o.ec())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),N=(()=>{class t extends F{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(o.l),o.Pb(o.B),o.Pb(M))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&o.Eb("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[o.Cb([{provide:T,useExisting:t}]),o.Ab],ngContentSelectors:O,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(o.nc(),o.Ic(0,A,3,6,"ng-template"))},directives:[v.m],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[D.transformMenu,D.fadeInItems]},changeDetection:0}),t})();const V=new o.s("mat-menu-scroll-strategy"),U={provide:V,deps:[x.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},B=Object(C.f)({passive:!0});let z=(()=>{class t{constructor(t,e,n,i,r,s,a,l){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=s,this._dir=a,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=c.a.EMPTY,this._hoverSubscription=c.a.EMPTY,this._menuCloseSubscription=c.a.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new o.o,this.onMenuOpen=this.menuOpened,this.menuClosed=new o.o,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=r instanceof F?r:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,B),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,B),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof F&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof F?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Object(m.a)(t=>"void"===t.toState),Object(p.a)(1),Object(b.a)(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new x.d({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,r]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,o]=[i,r],[a,c]=[e,n],l=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",l="bottom"===i?8:-8):this.menu.overlapTrigger||(s="top"===i?"bottom":"top",o="top"===r?"bottom":"top"),t.withPositions([{originX:e,originY:s,overlayX:a,overlayY:i,offsetY:l},{originX:n,originY:s,overlayX:c,overlayY:i,offsetY:l},{originX:e,originY:o,overlayX:a,overlayY:r,offsetY:-l},{originX:n,originY:o,overlayX:c,overlayY:r,offsetY:-l}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:Object(h.a)(),i=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Object(m.a)(t=>t!==this._menuItemInstance),Object(m.a)(()=>this._menuOpen)):Object(h.a)();return Object(l.a)(t,n,i,e)}_handleMousedown(t){Object(i.l)(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(e===s.l&&"ltr"===this.dir||e===s.h&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Object(m.a)(t=>t===this._menuItemInstance&&!t.disabled),Object(g.a)(0,u.a)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof F&&this.menu._isAnimating?this.menu._animationDone.pipe(Object(p.a)(1),Object(g.a)(0,u.a),Object(b.a)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new y.i(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(x.c),o.Pb(o.l),o.Pb(o.S),o.Pb(V),o.Pb(T,8),o.Pb(R,10),o.Pb(E.b,8),o.Pb(i.h))},t.\u0275dir=o.Kb({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&o.dc("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&o.Eb("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),H=(()=>{class t{}return t.\u0275mod=o.Nb({type:t}),t.\u0275inj=o.Mb({factory:function(e){return new(e||t)},providers:[U],imports:[w.i]}),t})(),W=(()=>{class t{}return t.\u0275mod=o.Nb({type:t}),t.\u0275inj=o.Mb({factory:function(e){return new(e||t)},providers:[U],imports:[[v.c,w.i,w.s,x.f,H],S.b,w.i,H]}),t})()},rSVQ:function(t,e,n){var i=n("Ku4m"),r=n("Edxu"),s=n("mObS"),o=n("9GDS"),a=n("g9U9"),c=n("AQYT"),l=n("UpF+"),h=n("qVij"),u=n("hwdV").Buffer;t.exports=function(t,e,n){var d;d=t.padding?t.padding:n?1:4;var f,p=i(t);if(4===d)f=function(t,e){var n=t.modulus.byteLength(),i=e.length,l=s("sha1").update(u.alloc(0)).digest(),h=l.length,d=2*h;if(i>n-d-2)throw new Error("message too long");var f=u.alloc(n-i-d-2),p=n-h-1,m=r(h),b=a(u.concat([l,f,u.alloc(1,1),e],p),o(m,p)),g=a(m,o(b,h));return new c(u.concat([u.alloc(1),g,b],n))}(p,e);else if(1===d)f=function(t,e,n){var i,s=e.length,o=t.modulus.byteLength();if(s>o-11)throw new Error("message too long");return i=n?u.alloc(o-s-3,255):function(t){for(var e,n=u.allocUnsafe(t),i=0,s=r(2*t),o=0;i=0)throw new Error("data too long for modulus")}return n?h(f,p):l(f,p)}},rXFu:function(t,e,n){"use strict";var i=n("lm0R");t.exports=_;var r,s=n("IzUq");_.ReadableState=g,n("+qE3");var o=function(t,e){return t.listeners(e).length},a=n("QpuX"),c=n("hwdV").Buffer,l=global.Uint8Array||function(){},h=Object.create(n("Onz0"));h.inherits=n("P7XM");var u=n(3),d=void 0;d=u&&u.debuglog?u.debuglog("stream"):function(){};var f,p=n("Xhqo"),m=n("RoFp");h.inherits(_,a);var b=["error","close","destroy","pause","resume"];function g(t,e){var i=e instanceof(r=r||n("sZro"));this.objectMode=!!(t=t||{}).objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var s=t.highWaterMark,o=t.readableHighWaterMark;this.highWaterMark=s||0===s?s:i&&(o||0===o)?o:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=n("fXKp").StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function _(t){if(r=r||n("sZro"),!(this instanceof _))return new _(t);this._readableState=new g(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function y(t,e,n,i,r){var s,o=t._readableState;return null===e?(o.reading=!1,function(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,C(t)}}(t,o)):(r||(s=function(t,e){var n,i;return c.isBuffer(i=e)||i instanceof l||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(o,e)),s?t.emit("error",s):o.objectMode||e&&e.length>0?("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),i?o.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):v(t,o,e,!0):o.ended?t.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(e=o.decoder.write(e),o.objectMode||0!==e.length?v(t,o,e,!1):E(t,o)):v(t,o,e,!1))):i||(o.reading=!1)),function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=w?t=w:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function C(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(S,t):S(t))}function S(t){d("emit readable"),t.emit("readable"),D(t)}function E(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(k,t,e))}function k(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var i;return ts.length?s.length:t;if(r+=o===s.length?s:s.slice(0,t),0==(t-=o)){o===s.length?(++i,e.head=n.next?n.next:e.tail=null):(e.head=n,n.data=s.slice(o));break}++i}return e.length-=i,r}(t,e):function(t,e){var n=c.allocUnsafe(t),i=e.head,r=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var s=i.data,o=t>s.length?s.length:t;if(s.copy(n,n.length-t,0,o),0==(t-=o)){o===s.length?(++r,e.head=i.next?i.next:e.tail=null):(e.head=i,i.data=s.slice(o));break}++r}return e.length-=r,n}(t,e),i}(t,e.buffer,e.decoder),n);var n}function T(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(L,e,t))}function L(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function P(t,e){for(var n=0,i=t.length;n=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?T(this):C(this),null;if(0===(t=x(t,e))&&e.ended)return 0===e.length&&T(this),null;var i,r=e.needReadable;return d("need readable",r),(0===e.length||e.length-t0?I(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&T(this)),null!==i&&this.emit("data",i),i},_.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},_.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,d("pipe count=%d opts=%j",r.pipesCount,e);var a=e&&!1===e.end||t===process.stdout||t===process.stderr?g:c;function c(){d("onend"),t.end()}r.endEmitted?i.nextTick(a):n.once("end",a),t.on("unpipe",function e(i,s){d("onunpipe"),i===n&&s&&!1===s.hasUnpiped&&(s.hasUnpiped=!0,d("cleanup"),t.removeListener("close",m),t.removeListener("finish",b),t.removeListener("drain",l),t.removeListener("error",p),t.removeListener("unpipe",e),n.removeListener("end",c),n.removeListener("end",g),n.removeListener("data",f),h=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||l())});var l=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,D(t))}}(n);t.on("drain",l);var h=!1,u=!1;function f(e){d("ondata"),u=!1,!1!==t.write(e)||u||((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==P(r.pipes,t))&&!h&&(d("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,u=!0),n.pause())}function p(e){d("onerror",e),g(),t.removeListener("error",p),0===o(t,"error")&&t.emit("error",e)}function m(){t.removeListener("finish",b),g()}function b(){d("onfinish"),t.removeListener("close",m),g()}function g(){d("unpipe"),n.unpipe(t)}return n.on("data",f),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events.error?s(t._events.error)?t._events.error.unshift(n):t._events.error=[n,t._events.error]:t.on(e,n)}(t,"error",p),t.once("close",m),t.once("finish",b),t.emit("pipe",n),r.flowing||(d("pipe resume"),n.resume()),t},_.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var i=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s0||s>0;){var h=new r;h.update(l),h.update(t),e&&h.update(e),l=h.digest();var u=0;if(o>0){var d=a.length-o;u=Math.min(o,l.length),l.copy(a,d,0,u),o-=u}if(u0){var f=c.length-s,p=Math.min(s,l.length-u);l.copy(c,f,u,u+p),s-=p}}return l.fill(0),{key:a,iv:c}}},s7LF:function(t,e,n){"use strict";n.d(e,"a",function(){return jt}),n.d(e,"b",function(){return T}),n.d(e,"c",function(){return f}),n.d(e,"d",function(){return Vt}),n.d(e,"e",function(){return bt}),n.d(e,"f",function(){return At}),n.d(e,"g",function(){return Lt}),n.d(e,"h",function(){return It}),n.d(e,"i",function(){return Ut}),n.d(e,"j",function(){return b}),n.d(e,"k",function(){return c}),n.d(e,"l",function(){return P}),n.d(e,"m",function(){return M}),n.d(e,"n",function(){return j}),n.d(e,"o",function(){return wt}),n.d(e,"p",function(){return St}),n.d(e,"q",function(){return N}),n.d(e,"r",function(){return Bt}),n.d(e,"s",function(){return Mt}),n.d(e,"t",function(){return y}),n.d(e,"u",function(){return Et});var i=n("8Y7J"),r=n("SVse"),s=n("cp0P"),o=n("Cfvw"),a=n("lJxs");const c=new i.s("NgValueAccessor"),l={provide:c,useExisting:Object(i.X)(()=>h),multi:!0};let h=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.G),i.Pb(i.l))},t.\u0275dir=i.Kb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&i.dc("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[i.Cb([l])]}),t})();const u={provide:c,useExisting:Object(i.X)(()=>f),multi:!0},d=new i.s("CompositionEventMode");let f=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(r.E)()?Object(r.E)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.G),i.Pb(i.l),i.Pb(d,8))},t.\u0275dir=i.Kb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&i.dc("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[i.Cb([u])]}),t})();function p(t){return null==t||0===t.length}function m(t){return null!=t&&"number"==typeof t.length}const b=new i.s("NgValidators"),g=new i.s("NgAsyncValidators"),_=/^(?=.{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 y{static min(t){return e=>{if(p(e.value)||p(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(p(e.value)||p(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return p(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return p(t.value)||_.test(t.value)?null:{email:!0}}static minLength(t){return e=>p(e.value)||!m(e.value)?null:e.value.lengthm(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return y.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(p(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(v);return 0==e.length?null:function(t){return x(C(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(v);return 0==e.length?null:function(t){const n=C(t,e).map(w);return Object(s.a)(n).pipe(Object(a.a)(x))}}}function v(t){return null!=t}function w(t){const e=Object(i.vb)(t)?Object(o.a)(t):t;return Object(i.ub)(e),e}function x(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function C(t,e){return e.map(e=>e(t))}function S(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function E(t){return null!=t?y.compose(S(t)):null}function k(t){return null!=t?y.composeAsync(S(t)):null}function O(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function A(t){return t._rawValidators}function D(t){return t._rawAsyncValidators}let I=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=E(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=k(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({type:t}),t})(),T=(()=>{class t extends I{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return L(e||t)},t.\u0275dir=i.Kb({type:t,features:[i.Ab]}),t})();const L=i.Xb(T);class P extends I{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class R{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let M=(()=>{class t extends R{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(P,2))},t.\u0275dir=i.Kb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Hb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[i.Ab]}),t})(),j=(()=>{class t extends R{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(T,2))},t.\u0275dir=i.Kb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Hb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[i.Ab]}),t})();const F={provide:c,useExisting:Object(i.X)(()=>N),multi:!0};let N=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.G),i.Pb(i.l))},t.\u0275dir=i.Kb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&i.dc("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[i.Cb([F])]}),t})();const V={provide:c,useExisting:Object(i.X)(()=>B),multi:!0};let U=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(P),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.G),i.Pb(i.l),i.Pb(U),i.Pb(i.t))},t.\u0275dir=i.Kb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&i.dc("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.Cb([V])]}),t})();const z={provide:c,useExisting:Object(i.X)(()=>H),multi:!0};let H=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.G),i.Pb(i.l))},t.\u0275dir=i.Kb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&i.dc("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[i.Cb([z])]}),t})();const W={provide:c,useExisting:Object(i.X)(()=>K),multi:!0};let K=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.G),i.Pb(i.l))},t.\u0275dir=i.Kb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&i.dc("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.Cb([W])]}),t})();const q={provide:c,useExisting:Object(i.X)(()=>Y),multi:!0};let Y=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&J(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&J(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function G(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function $(t,e,n){const i=A(t);null!==e.validator?t.setValidators(O(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const r=D(t);if(null!==e.asyncValidator?t.setAsyncValidators(O(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]),n){const n=()=>t.updateValueAndValidity();G(e._rawValidators,n),G(e._rawAsyncValidators,n)}}function Q(t,e,n){if(null!==t){if(null!==e.validator){const n=A(t);Array.isArray(n)&&n.length>0&&t.setValidators(n.filter(t=>t!==e.validator))}if(null!==e.asyncValidator){const n=D(t);Array.isArray(n)&&n.length>0&&t.setAsyncValidators(n.filter(t=>t!==e.asyncValidator))}}if(n){const t=()=>{};G(e._rawValidators,t),G(e._rawAsyncValidators,t)}}function J(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function tt(t,e){$(t,e,!1)}function et(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}const nt=[h,H,N,K,Y,B];function it(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function rt(t,e){if(!e)return null;Array.isArray(e);let n=void 0,i=void 0,r=void 0;return e.forEach(t=>{var e;t.constructor===f?n=t:(e=t,nt.some(t=>e.constructor===t)?i=t:r=t)}),r||i||n||null}function st(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ot="VALID",at="INVALID",ct="PENDING",lt="DISABLED";function ht(t){return(pt(t)?t.validators:t)||null}function ut(t){return Array.isArray(t)?E(t):t||null}function dt(t,e){return(pt(e)?e.asyncValidators:t)||null}function ft(t){return Array.isArray(t)?k(t):t||null}function pt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class mt{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=ut(this._rawValidators),this._composedAsyncValidatorFn=ft(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===ot}get invalid(){return this.status===at}get pending(){return this.status==ct}get disabled(){return this.status===lt}get enabled(){return this.status!==lt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=ut(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ft(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=ct,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=lt,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=ot,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==ot&&this.status!==ct||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?lt:ot}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=ct,this._hasOwnPendingAsyncValidator=!0;const e=w(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof gt?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof _t&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.o,this.statusChanges=new i.o}_calculateStatus(){return this._allControlsDisabled()?lt:this.errors?at:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ct)?ct:this._anyControlsHaveStatus(at)?at:ot}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){pt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class bt extends mt{constructor(t=null,e,n){super(ht(e),dt(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){st(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){st(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class gt extends mt{constructor(t,e,n){super(ht(e),dt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof bt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class _t extends mt{constructor(t,e,n){super(ht(e),dt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof bt?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const yt={provide:T,useExisting:Object(i.X)(()=>wt)},vt=(()=>Promise.resolve(null))();let wt=(()=>{class t extends T{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.o,this.form=new gt({},E(t),k(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){vt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),X(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){vt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),st(this._directives,t)})}addFormGroup(t){vt.then(()=>{const e=this._findContainer(t.path),n=new gt({});tt(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){vt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){vt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,it(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(b,10),i.Pb(g,10))},t.\u0275dir=i.Kb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.dc("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Cb([yt]),i.Ab]}),t})();const xt={provide:P,useExisting:Object(i.X)(()=>St)},Ct=(()=>Promise.resolve(null))();let St=(()=>{class t extends P{constructor(t,e,n,r){super(),this.control=new bt,this._registered=!1,this.update=new i.o,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=rt(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),et(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Z(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){X(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){Ct.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;Ct.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(T,9),i.Pb(b,10),i.Pb(g,10),i.Pb(c,10))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.Cb([xt]),i.Ab,i.Bb]}),t})(),Et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const kt=new i.s("NgModelWithFormControlWarning"),Ot={provide:P,useExisting:Object(i.X)(()=>At)};let At=(()=>{class t extends P{constructor(t,e,n,r){super(),this._ngModelWarningConfig=r,this.update=new i.o,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=rt(0,n)}set isDisabled(t){}ngOnChanges(t){this._isControlChanged(t)&&(X(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),et(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(b,10),i.Pb(g,10),i.Pb(c,10),i.Pb(kt,8))},t.\u0275dir=i.Kb({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.Cb([Ot]),i.Ab,i.Bb]}),t._ngModelWarningSentOnce=!1,t})();const Dt={provide:T,useExisting:Object(i.X)(()=>It)};let It=(()=>{class t extends T{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new i.o,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return X(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){st(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);tt(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);tt(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,it(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){const n=()=>{};e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n),Q(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}(t.control||null,t),e&&X(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){$(this.form,this,!1),this._oldForm&&Q(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(b,10),i.Pb(g,10))},t.\u0275dir=i.Kb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.dc("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Cb([Dt]),i.Ab,i.Bb]}),t})();const Tt={provide:P,useExisting:Object(i.X)(()=>Lt)};let Lt=(()=>{class t extends P{constructor(t,e,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new i.o,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=rt(0,r)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),et(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Z(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(T,13),i.Pb(b,10),i.Pb(g,10),i.Pb(c,10),i.Pb(kt,8))},t.\u0275dir=i.Kb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.Cb([Tt]),i.Ab,i.Bb]}),t._ngModelWarningSentOnce=!1,t})();const Pt={provide:b,useExisting:Object(i.X)(()=>Mt),multi:!0},Rt={provide:b,useExisting:Object(i.X)(()=>jt),multi:!0};let Mt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?y.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.Eb("required",e.required?"":null)},inputs:{required:"required"},features:[i.Cb([Pt])]}),t})(),jt=(()=>{class t extends Mt{validate(t){return this.required?y.requiredTrue(t):null}}return t.\u0275fac=function(e){return Ft(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Eb("required",e.required?"":null)},features:[i.Cb([Rt]),i.Ab]}),t})();const Ft=i.Xb(jt);let Nt=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})(),Vt=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i=null,r=null,s=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,s=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new gt(n,{asyncValidators:r,updateOn:s,validators:i})}control(t,e,n){return new bt(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new _t(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof bt||t instanceof gt||t instanceof _t?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),Ut=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[U],imports:[Nt]}),t})(),Bt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:kt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[Vt,U],imports:[Nt]}),t})()},sVev:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},sZro:function(t,e,n){"use strict";var i=n("lm0R"),r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=u;var s=Object.create(n("Onz0"));s.inherits=n("P7XM");var o=n("rXFu"),a=n("3BRs");s.inherits(u,o);for(var c=r(a.prototype),l=0;l3?(o=(o=c&255>>s)<<(s=(s+5)%8)|(i+1>8-s,i++):(o=c>>8-(s+5)&31,0==(s=(s+5)%8)&&i++),a[r]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(o),r++}for(i=r;i>>(n=(n+5)%8),s++,e=255&r<<8-n)}return o.slice(0,s)}},t9FE:function(t,e){function n(t){try{if(!global.localStorage)return!1}catch(n){return!1}var e=global.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var i=!1;return function(){if(!i){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),i=!0}return t.apply(this,arguments)}}},tOiH:function(t){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},tS1D:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n("D0XW");const r=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})();var s=n("mlxB"),o=n("zx2A");class a{constructor(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=i}call(t,e){return e.subscribe(new c(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class c extends o.b{constructor(t,e,n,i,r){super(t),this.absoluteTimeout=e,this.waitFor=n,this.withObservable=i,this.scheduler=r,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add(Object(o.c)(e,new o.a(t)))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(c.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var l=n("z6cu");function h(t,e=i.a){return function(t,e,n=i.a){return i=>{let r=Object(s.a)(t),o=r?+t-n.now():Math.abs(t);return i.lift(new a(o,r,e,n))}}(t,Object(l.a)(new r),e)}},tSWc:function(t,e,n){"use strict";var i=n("w8CP"),r=n("7ckf"),s=n("2j6C"),o=i.rotr64_hi,a=i.rotr64_lo,c=i.shr64_hi,l=i.shr64_lo,h=i.sum64,u=i.sum64_hi,d=i.sum64_lo,f=i.sum64_4_hi,p=i.sum64_4_lo,m=i.sum64_5_hi,b=i.sum64_5_lo,g=r.BlockHash,_=[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 y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=_,this.W=new Array(160)}function v(t,e,n,i,r){var s=t&n^~t&r;return s<0&&(s+=4294967296),s}function w(t,e,n,i,r,s){var o=e&i^~e&s;return o<0&&(o+=4294967296),o}function x(t,e,n,i,r){var s=t&n^t&r^n&r;return s<0&&(s+=4294967296),s}function C(t,e,n,i,r,s){var o=e&i^e&s^i&s;return o<0&&(o+=4294967296),o}function S(t,e){var n=o(t,e,28)^o(e,t,2)^o(e,t,7);return n<0&&(n+=4294967296),n}function E(t,e){var n=a(t,e,28)^a(e,t,2)^a(e,t,7);return n<0&&(n+=4294967296),n}function k(t,e){var n=a(t,e,14)^a(t,e,18)^a(e,t,9);return n<0&&(n+=4294967296),n}function O(t,e){var n=o(t,e,1)^o(t,e,8)^c(t,e,7);return n<0&&(n+=4294967296),n}function A(t,e){var n=a(t,e,1)^a(t,e,8)^l(t,e,7);return n<0&&(n+=4294967296),n}function D(t,e){var n=a(t,e,19)^a(e,t,29)^l(t,e,6);return n<0&&(n+=4294967296),n}i.inherits(y,g),t.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(t,e){for(var n=this.W,i=0;i<32;i++)n[i]=t[e+i];for(;i>>32-e}function m(t,e,n,i,r,s,o,a){return p(t+(e^n^i)+s+o|0,a)+r|0}function b(t,e,n,i,r,s,o,a){return p(t+(e&n|~e&i)+s+o|0,a)+r|0}function g(t,e,n,i,r,s,o,a){return p(t+((e|~n)^i)+s+o|0,a)+r|0}function _(t,e,n,i,r,s,o,a){return p(t+(e&i|n&~i)+s+o|0,a)+r|0}function y(t,e,n,i,r,s,o,a){return p(t+(e^(n|~i))+s+o|0,a)+r|0}r(f,s),f.prototype._update=function(){for(var t=o,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var n=0|this._a,i=0|this._b,r=0|this._c,s=0|this._d,f=0|this._e,v=0|this._a,w=0|this._b,x=0|this._c,C=0|this._d,S=0|this._e,E=0;E<80;E+=1){var k,O;E<16?(k=m(n,i,r,s,f,t[a[E]],u[0],l[E]),O=y(v,w,x,C,S,t[c[E]],d[0],h[E])):E<32?(k=b(n,i,r,s,f,t[a[E]],u[1],l[E]),O=_(v,w,x,C,S,t[c[E]],d[1],h[E])):E<48?(k=g(n,i,r,s,f,t[a[E]],u[2],l[E]),O=g(v,w,x,C,S,t[c[E]],d[2],h[E])):E<64?(k=_(n,i,r,s,f,t[a[E]],u[3],l[E]),O=b(v,w,x,C,S,t[c[E]],d[3],h[E])):(k=y(n,i,r,s,f,t[a[E]],u[4],l[E]),O=m(v,w,x,C,S,t[c[E]],d[4],h[E])),n=f,f=s,s=p(r,10),r=i,i=k,v=S,S=C,C=p(x,10),x=w,w=O}var A=this._b+r+C|0;this._b=this._c+s+S|0,this._c=this._d+f+v|0,this._d=this._e+n+w|0,this._e=this._a+i+x|0,this._a=A},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=i.alloc?i.alloc(20):new i(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=f},tjlA:function(t,e,n){"use strict";var i=n("H7XF"),r=n("kVK+"),s=n("IzUq");function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function p(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(t).length;default:if(i)return U(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,n);case"utf8":case"utf-8":return k(this,e,n);case"ascii":return A(this,e,n);case"latin1":case"binary":return D(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function b(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function g(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=c.from(e,i)),c.isBuffer(e))return 0===e.length?-1:_(t,e,n,i,r);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):_(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function _(t,e,n,i,r){var s,o=1,a=t.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,n/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var h=-1;for(s=n;sa&&(n=a-c),s=n;s>=0;s--){for(var u=!0,d=0;dr&&(i=r):i=r;var s=e.length;if(s%2!=0)throw new TypeError("Invalid hex string");i>s/2&&(i=s/2);for(var o=0;o>8,r.push(n%256),r.push(i);return r}(e,t.length-n),t,n,i)}function E(t,e,n){return i.fromByteArray(0===e&&n===t.length?t:t.slice(e,n))}function k(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r239?4:l>223?3:l>191?2:1;if(r+u<=n)switch(u){case 1:l<128&&(h=l);break;case 2:128==(192&(s=t[r+1]))&&(c=(31&l)<<6|63&s)>127&&(h=c);break;case 3:o=t[r+2],128==(192&(s=t[r+1]))&&128==(192&o)&&(c=(15&l)<<12|(63&s)<<6|63&o)>2047&&(c<55296||c>57343)&&(h=c);break;case 4:o=t[r+2],a=t[r+3],128==(192&(s=t[r+1]))&&128==(192&o)&&128==(192&a)&&(c=(15&l)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(h=c)}null===h?(h=65533,u=1):h>65535&&(i.push((h-=65536)>>>10&1023|55296),h=56320|1023&h),i.push(h),r+=u}return function(t){var e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);for(var n="",i=0;i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},c.prototype.compare=function(t,e,n,i,r){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var s=(r>>>=0)-(i>>>=0),o=(n>>>=0)-(e>>>=0),a=Math.min(s,o),l=this.slice(i,r),h=t.slice(e,n),u=0;ur)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return v(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function A(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;rr)&&(n=r);for(var s="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,n,i,r,s){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function R(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,s=Math.min(t.length-n,2);r>>8*(i?r:1-r)}function M(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,s=Math.min(t.length-n,4);r>>8*(i?r:3-r)&255}function j(t,e,n,i,r,s){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,i,s){return s||j(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function N(t,e,n,i,s){return s||j(t,0,n,8),r.write(t,e,n,i,52,8),n+8}c.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e0&&(r*=256);)i+=this[t+--e]*r;return i},c.prototype.readUInt8=function(t,e){return e||L(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||L(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||L(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var i=this[t],r=1,s=0;++s=(r*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var i=e,r=1,s=this[t+--i];i>0&&(r*=256);)s+=this[t+--i]*r;return s>=(r*=128)&&(s-=Math.pow(2,8*e)),s},c.prototype.readInt8=function(t,e){return e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||L(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||L(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||L(t,4,this.length),r.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||L(t,4,this.length),r.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||L(t,8,this.length),r.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||L(t,8,this.length),r.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,i){t=+t,e|=0,n|=0,i||P(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,s=0;for(this[e]=255&t;++s=0&&(s*=256);)this[e+r]=t/s&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):M(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);P(this,t,e,n,r-1,-r)}var s=0,o=1,a=0;for(this[e]=255&t;++s>0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);P(this,t,e,n,r-1,-r)}var s=n-1,o=1,a=0;for(this[e+s]=255&t;--s>=0&&(o*=256);)t<0&&0===a&&0!==this[e+s+1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):M(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return N(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return N(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--r)t[r+e]=this[r+n];else if(s<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(s=e;s55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&s.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&s.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;s.push(n)}else if(n<2048){if((e-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function B(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(V,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(t,e,n,i){for(var r=0;r=e.length||r>=t.length);++r)e[r+n]=t[r];return r}},tnIz:function(t,e,n){var i=n("hwdV").Buffer;function r(t,e){this._block=i.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}r.prototype.update=function(t,e){"string"==typeof t&&(t=i.from(t,e=e||"utf8"));for(var n=this._block,r=this._blockSize,s=t.length,o=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var i=(4294967295&n)>>>0;this._block.writeUInt32BE((n-i)/4294967296,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var r=this._hash();return t?r.toString(t):r},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},tpL1:function(t,e,n){var i=n("Oaki").Buffer,r=n("mObS"),s=n("NNVn"),o=n("2q5Q"),a=n("b+dc"),c=n("mAz1"),l=n("tOiH");function h(t){s.Writable.call(this);var e=l[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function u(t){s.Writable.call(this);var e=l[t];if(!e)throw new Error("Unknown message digest");this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function d(t){return new h(t)}function f(t){return new u(t)}Object.keys(l).forEach(function(t){l[t].id=i.from(l[t].id,"hex"),l[t.toLowerCase()]=l[t]}),o(h,s.Writable),h.prototype._write=function(t,e,n){this._hash.update(t),n()},h.prototype.update=function(t,e){return"string"==typeof t&&(t=i.from(t,e)),this._hash.update(t),this},h.prototype.sign=function(t,e){this.end();var n=this._hash.digest(),i=a(n,t,this._hashType,this._signType,this._tag);return e?i.toString(e):i},o(u,s.Writable),u.prototype._write=function(t,e,n){this._hash.update(t),n()},u.prototype.update=function(t,e){return"string"==typeof t&&(t=i.from(t,e)),this._hash.update(t),this},u.prototype.verify=function(t,e,n){"string"==typeof e&&(e=i.from(e,n)),this.end();var r=this._hash.digest();return c(e,r,t,this._signType,this._tag)},t.exports={Sign:d,Verify:f,createSign:d,createVerify:f}},tqRt:function(t,e,n){"use strict";n.d(e,"a",function(){return g}),n.d(e,"b",function(){return b}),n.d(e,"c",function(){return w}),n.d(e,"d",function(){return W}),n.d(e,"e",function(){return H}),n.d(e,"f",function(){return Z}),n.d(e,"g",function(){return $}),n.d(e,"h",function(){return et}),n.d(e,"i",function(){return xt}),n.d(e,"j",function(){return Ct}),n.d(e,"k",function(){return wt}),n.d(e,"l",function(){return K}),n.d(e,"m",function(){return B}),n.d(e,"n",function(){return p});var i=n("8Y7J"),r=n("2Vo4"),s=n("HDdC"),o=n("XNiG"),a=n("qgXg"),c=n("pxpQ"),l=n("zp1y"),h=n("Kqap"),u=n("lJxs"),d=n("/uUt");const f={};function p(t,e){if(f[t]=(f[t]||0)+1,"function"==typeof e)return m(t,(...n)=>Object.assign(Object.assign({},e(...n)),{type:t}));switch(e?e._as:"empty"){case"empty":return m(t,()=>({type:t}));case"props":return m(t,e=>Object.assign(Object.assign({},e),{type:t}));default:throw new Error("Unexpected config.")}}function m(t,e){return Object.defineProperty(e,"type",{value:t,writable:!1})}const b="@ngrx/store/init";let g=(()=>{class t extends r.a{constructor(){super({type:b})}next(t){if("function"==typeof t)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(void 0===t)throw new TypeError("Actions must be objects");if(void 0===t.type)throw new TypeError("Actions must have a type property");super.next(t)}complete(){}ngOnDestroy(){super.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();const _=[g],y=new i.s("@ngrx/store Internal Root Guard"),v=new i.s("@ngrx/store Internal Initial State"),w=new i.s("@ngrx/store Initial State"),x=new i.s("@ngrx/store Reducer Factory"),C=new i.s("@ngrx/store Internal Reducer Factory Provider"),S=new i.s("@ngrx/store Initial Reducers"),E=new i.s("@ngrx/store Internal Initial Reducers"),k=new i.s("@ngrx/store Store Features"),O=new i.s("@ngrx/store Internal Store Reducers"),A=new i.s("@ngrx/store Internal Feature Reducers"),D=new i.s("@ngrx/store Internal Feature Configs"),I=new i.s("@ngrx/store Internal Store Features"),T=new i.s("@ngrx/store Internal Feature Reducers Token"),L=new i.s("@ngrx/store Feature Reducers"),P=new i.s("@ngrx/store User Provided Meta Reducers"),R=new i.s("@ngrx/store Meta Reducers"),M=new i.s("@ngrx/store Internal Resolved Meta Reducers"),j=new i.s("@ngrx/store User Runtime Checks Config"),F=new i.s("@ngrx/store Internal User Runtime Checks Config"),N=new i.s("@ngrx/store Internal Runtime Checks"),V=new i.s("@ngrx/store Check if Action types are unique");function U(t,e={}){const n=Object.keys(t),i={};for(let s=0;se(t),n(e))}}function z(t,e){return Array.isArray(e)&&e.length>0&&(t=B.apply(null,[...e,t])),(e,n)=>{const i=t(e);return(t,e)=>i(t=void 0===t?n:t,e)}}class H extends s.a{}class W extends g{}const K="@ngrx/store/update-reducers";let q=(()=>{class t extends r.a{constructor(t,e,n,i){super(i(n,e)),this.dispatcher=t,this.initialState=e,this.reducers=n,this.reducerFactory=i}addFeature(t){this.addFeatures([t])}addFeatures(t){const e=t.reduce((t,{reducers:e,reducerFactory:n,metaReducers:i,initialState:r,key:s})=>{const o="function"==typeof e?function(t){const e=Array.isArray(t)&&t.length>0?B(...t):t=>t;return(t,n)=>(t=e(t),(e,i)=>t(e=void 0===e?n:e,i))}(i)(e,r):z(n,i)(e,r);return t[s]=o,t},{});this.addReducers(e)}removeFeature(t){this.removeFeatures([t])}removeFeatures(t){this.removeReducers(t.map(t=>t.key))}addReducer(t,e){this.addReducers({[t]:e})}addReducers(t){this.reducers=Object.assign(Object.assign({},this.reducers),t),this.updateReducers(Object.keys(t))}removeReducer(t){this.removeReducers([t])}removeReducers(t){t.forEach(t=>{var e,n;this.reducers=(e=this.reducers,n=t,Object.keys(e).filter(t=>t!==n).reduce((t,n)=>Object.assign(t,{[n]:e[n]}),{}))}),this.updateReducers(t)}updateReducers(t){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:K,features:t})}ngOnDestroy(){this.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(W),i.Zb(w),i.Zb(S),i.Zb(x))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();const Y=[q,{provide:H,useExisting:q},{provide:W,useExisting:g}];let Z=(()=>{class t extends o.a{ngOnDestroy(){this.complete()}}return t.\u0275fac=function(e){return X(e||t)},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();const X=i.Xb(Z),G=[Z];class $ extends s.a{}let Q=(()=>{class t extends r.a{constructor(t,e,n,i){super(i);const r={state:i},s=t.pipe(Object(c.b)(a.b)).pipe(Object(l.a)(e)).pipe(Object(h.a)(J,r));this.stateSubscription=s.subscribe(({state:t,action:e})=>{this.next(t),n.next(e)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(g),i.Zb(H),i.Zb(Z),i.Zb(w))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t.INIT=b,t})();function J(t={state:void 0},[e,n]){const{state:i}=t;return{state:n(i,e),action:e}}const tt=[Q,{provide:$,useExisting:Q}];let et=(()=>{class t extends s.a{constructor(t,e,n){super(),this.actionsObserver=e,this.reducerManager=n,this.source=t}select(t,...e){return it.call(null,t,...e)(this)}lift(e){const n=new t(this,this.actionsObserver,this.reducerManager);return n.operator=e,n}dispatch(t){this.actionsObserver.next(t)}next(t){this.actionsObserver.next(t)}error(t){this.actionsObserver.error(t)}complete(){this.actionsObserver.complete()}addReducer(t,e){this.reducerManager.addReducer(t,e)}removeReducer(t){this.reducerManager.removeReducer(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb($),i.Zb(g),i.Zb(q))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();const nt=[et];function it(t,e,...n){return function(i){let r;if("string"==typeof t){const s=[e,...n].filter(Boolean);r=i.pipe(function(...t){const e=t.length;if(0===e)throw new Error("list of properties cannot be empty.");return n=>Object(u.a)(function(t,e){return n=>{let i=n;for(let r=0;rt(n,e)))}return r.pipe(Object(d.a)())}}const rt="https://ngrx.io/guide/store/configuration/runtime-checks";function st(t){return void 0===t}function ot(t){return null===t}function at(t){return Array.isArray(t)}function ct(t){return"object"==typeof t&&null!==t}function lt(t){return"function"==typeof t}function ht(t){Object.freeze(t);const e=lt(t);return Object.getOwnPropertyNames(t).forEach(n=>{if(!n.startsWith("\u0275")&&function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(t,n)&&(!e||"caller"!==n&&"callee"!==n&&"arguments"!==n)){const e=t[n];!ct(e)&&!lt(e)||Object.isFrozen(e)||ht(e)}}),t}function ut(t,e=[]){return(st(t)||ot(t))&&0===e.length?{path:["root"],value:t}:Object.keys(t).reduce((n,i)=>{if(n)return n;const r=t[i];return function(t){return lt(t)&&t.hasOwnProperty("\u0275cmp")}(r)?n:!(st(r)||ot(r)||function(t){return"number"==typeof t}(r)||function(t){return"boolean"==typeof t}(r)||function(t){return"string"==typeof t}(r)||at(r))&&(function(t){if(!function(t){return ct(t)&&!at(t)}(t))return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}(r)?ut(r,[...e,i]):{path:[...e,i],value:r})},!1)}function dt(t,e){if(!1===t)return;const n=t.path.join("."),i=new Error(`Detected unserializable ${e} at "${n}". ${rt}#strict${e}serializability`);throw i.value=t.value,i.unserializablePath=n,i}function ft(t){return Object(i.Z)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},t):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function pt({strictActionSerializability:t,strictStateSerializability:e}){return n=>t||e?function(t,e){return function(n,i){e.action(i)&&dt(ut(i),"action");const r=t(n,i);return e.state()&&dt(ut(r),"state"),r}}(n,{action:e=>t&&!bt(e),state:()=>e}):n}function mt({strictActionImmutability:t,strictStateImmutability:e}){return n=>t||e?function(t,e){return function(n,i){const r=e.action(i)?ht(i):i,s=t(n,r);return e.state()?ht(s):s}}(n,{action:e=>t&&!bt(e),state:()=>e}):n}function bt(t){return t.type.startsWith("@ngrx")}function gt({strictActionWithinNgZone:t}){return e=>t?function(t,e){return function(n,r){if(e.action(r)&&!i.B.isInAngularZone())throw new Error(`Action '${r.type}' running outside NgZone. ${rt}#strictactionwithinngzone`);return t(n,r)}}(e,{action:e=>t&&!bt(e)}):e}function _t(){return[{provide:V,multi:!0,deps:[N],useFactory:vt}]}function yt(t){return t}function vt(t){if(!t.strictActionTypeUniqueness)return;const e=Object.entries(f).filter(([,t])=>t>1).map(([t])=>t);if(e.length)throw new Error(`Action types are registered more than once, ${e.map(t=>`"${t}"`).join(", ")}. ${rt}#strictactiontypeuniqueness`)}let wt=(()=>{class t{constructor(t,e,n,i,r,s){}}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)(i.Zb(g),i.Zb(H),i.Zb(Z),i.Zb(et),i.Zb(y,8),i.Zb(V,8))}}),t})(),xt=(()=>{class t{constructor(t,e,n,i,r){this.features=t,this.featureReducers=e,this.reducerManager=n;const s=t.map((t,n)=>{const i=e.shift()[n];return Object.assign(Object.assign({},t),{reducers:i,initialState:Ot(t.initialState)})});n.addFeatures(s)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)(i.Zb(I),i.Zb(L),i.Zb(q),i.Zb(wt),i.Zb(V,8))}}),t})(),Ct=(()=>{class t{static forRoot(t,e={}){return{ngModule:wt,providers:[{provide:y,useFactory:Dt,deps:[[et,new i.C,new i.M]]},{provide:v,useValue:e.initialState},{provide:w,useFactory:Ot,deps:[v]},{provide:E,useValue:t},{provide:O,useExisting:t instanceof i.s?t:E},{provide:S,deps:[i.t,E,[new i.q(O)]],useFactory:St},{provide:P,useValue:e.metaReducers?e.metaReducers:[]},{provide:M,deps:[R,P],useFactory:At},{provide:C,useValue:e.reducerFactory?e.reducerFactory:U},{provide:x,deps:[C,M],useFactory:z},_,Y,G,tt,nt,(n=e.runtimeChecks,[{provide:F,useValue:n},{provide:j,useFactory:yt,deps:[F]},{provide:N,deps:[j],useFactory:ft},{provide:R,multi:!0,deps:[N],useFactory:mt},{provide:R,multi:!0,deps:[N],useFactory:pt},{provide:R,multi:!0,deps:[N],useFactory:gt}]),_t()]};var n}static forFeature(t,e,n={}){return{ngModule:xt,providers:[{provide:D,multi:!0,useValue:n},{provide:k,multi:!0,useValue:{key:t,reducerFactory:n instanceof i.s||!n.reducerFactory?U:n.reducerFactory,metaReducers:n instanceof i.s||!n.metaReducers?[]:n.metaReducers,initialState:n instanceof i.s||!n.initialState?void 0:n.initialState}},{provide:I,deps:[i.t,D,k],useFactory:Et},{provide:A,multi:!0,useValue:e},{provide:T,multi:!0,useExisting:e instanceof i.s?e:A},{provide:L,multi:!0,deps:[i.t,A,[new i.q(T)]],useFactory:kt},_t()]}}}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})();function St(t,e){return e instanceof i.s?t.get(e):e}function Et(t,e,n){return n.map((n,r)=>{if(e[r]instanceof i.s){const i=t.get(e[r]);return{key:n.key,reducerFactory:i.reducerFactory?i.reducerFactory:U,metaReducers:i.metaReducers?i.metaReducers:[],initialState:i.initialState}}return n})}function kt(t,e){return e.map(e=>e instanceof i.s?t.get(e):e)}function Ot(t){return"function"==typeof t?t():t}function At(t,e){return t.concat(e)}function Dt(t){if(t)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}},"tz+M":function(t,e,n){"use strict";var i=n("AQYT"),r=n("86MQ"),s=r.assert;function o(t,e){if(t instanceof o)return t;this._importDER(t,e)||(s(t.r&&t.s,"Signature without r or s"),this.r=new i(t.r,16),this.s=new i(t.s,16),this.recoveryParam=void 0===t.recoveryParam?null:t.recoveryParam)}function a(){this.place=0}function c(t,e){var n=t[e.place++];if(!(128&n))return n;var i=15&n;if(0===i||i>4)return!1;for(var r=0,s=0,o=e.place;s>>=0;return!(r<=127)&&(e.place=o,r)}function l(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}t.exports=o,o.prototype._importDER=function(t,e){t=r.toArray(t,e);var n=new a;if(48!==t[n.place++])return!1;var s=c(t,n);if(!1===s)return!1;if(s+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var o=c(t,n);if(!1===o)return!1;var l=t.slice(n.place,o+n.place);if(n.place+=o,2!==t[n.place++])return!1;var h=c(t,n);if(!1===h)return!1;if(t.length!==h+n.place)return!1;var u=t.slice(n.place,h+n.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new i(l),this.s=new i(u),this.recoveryParam=null,!0},o.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=l(e),n=l(n);!(n[0]||128&n[1]);)n=n.slice(1);var i=[2];h(i,e.length),(i=i.concat(e)).push(2),h(i,n.length);var s=i.concat(n),o=[48];return h(o,s.length),o=o.concat(s),r.encode(o,t)}},"u/Db":function(t,e,n){var i=n("J6Nv"),r=n("BCVQ");e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!i.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(i){return n}}},u0Sq:function(t,e,n){"use strict";var i=n("w8CP"),r=n("7ckf"),s=i.rotl32,o=i.sum32,a=i.sum32_3,c=i.sum32_4,l=r.BlockHash;function h(){if(!(this instanceof h))return new h;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function u(t,e,n,i){return t<=15?e^n^i:t<=31?e&n|~e&i:t<=47?(e|~n)^i:t<=63?e&i|n&~i:e^(n|~i)}function d(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function f(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}i.inherits(h,l),e.ripemd160=h,h.blockSize=512,h.outSize=160,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(t,e){for(var n=this.h[0],i=this.h[1],r=this.h[2],l=this.h[3],h=this.h[4],_=n,y=i,v=r,w=l,x=h,C=0;C<80;C++){var S=o(s(c(n,u(C,i,r,l),t[p[C]+e],d(C)),b[C]),h);n=h,h=l,l=s(r,10),r=i,i=S,S=o(s(c(_,u(79-C,y,v,w),t[m[C]+e],f(C)),g[C]),x),_=x,x=w,w=s(v,10),v=y,y=S}S=a(this.h[1],r,w),this.h[1]=a(this.h[2],l,x),this.h[2]=a(this.h[3],h,_),this.h[3]=a(this.h[4],n,y),this.h[4]=a(this.h[0],i,v),this.h[0]=S},h.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"little"):i.split32(this.h,"little")};var p=[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],b=[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],g=[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]},uDfV:function(t,e,n){var i=n("P7XM"),r=n("T9HO"),s=n("tnIz"),o=n("hwdV").Buffer,a=new Array(160);function c(){this.init(),this._w=a,s.call(this,128,112)}i(c,r),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var t=o.allocUnsafe(48);function e(e,n,i){t.writeInt32BE(e,i),t.writeInt32BE(n,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=c},uagp:function(t,e,n){"use strict";var i=n("AQYT"),r=n("aqI/"),s=n("86MQ"),o=n("DLvh"),a=n("/ayr"),c=s.assert,l=n("uzSA"),h=n("tz+M");function u(t){if(!(this instanceof u))return new u(t);"string"==typeof t&&(c(o.hasOwnProperty(t),"Unknown curve "+t),t=o[t]),t instanceof o.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=u,u.prototype.keyPair=function(t){return new l(this,t)},u.prototype.keyFromPrivate=function(t,e){return l.fromPrivate(this,t,e)},u.prototype.keyFromPublic=function(t,e){return l.fromPublic(this,t,e)},u.prototype.genKeyPair=function(t){t||(t={});for(var e=new r({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||a(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),s=this.n.sub(new i(2));;){var o=new i(e.generate(n));if(!(o.cmp(s)>0))return o.iaddn(1),this.keyFromPrivate(o)}},u.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},u.prototype.sign=function(t,e,n,s){"object"==typeof n&&(s=n,n=null),s||(s={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new i(t,16));for(var o=this.n.byteLength(),a=e.getPrivate().toArray("be",o),c=t.toArray("be",o),l=new r({hash:this.hash,entropy:a,nonce:c,pers:s.pers,persEnc:s.persEnc||"utf8"}),u=this.n.sub(new i(1)),d=0;;d++){var f=s.k?s.k(d):new i(l.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(u)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var m=p.getX(),b=m.umod(this.n);if(0!==b.cmpn(0)){var g=f.invm(this.n).mul(b.mul(e.getPrivate()).iadd(t));if(0!==(g=g.umod(this.n)).cmpn(0)){var _=(p.getY().isOdd()?1:0)|(0!==m.cmp(b)?2:0);return s.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),_^=1),new h({r:b,s:g,recoveryParam:_})}}}}}},u.prototype.verify=function(t,e,n,r){t=this._truncateToN(new i(t,16)),n=this.keyFromPublic(n,r);var s=(e=new h(e,"hex")).r,o=e.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,c=o.invm(this.n),l=c.mul(t).umod(this.n),u=c.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(l,n.getPublic(),u)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(l,n.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},u.prototype.recoverPubKey=function(t,e,n,r){c((3&n)===n,"The recovery param is more than two bits"),e=new h(e,r);var s=this.n,o=new i(t),a=e.r,l=e.s,u=1&n,d=n>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");a=this.curve.pointFromX(d?a.add(this.curve.n):a,u);var f=e.r.invm(s),p=s.sub(o).mul(f).umod(s),m=l.mul(f).umod(s);return this.g.mulAdd(p,a,m)},u.prototype.getKeyRecoveryParam=function(t,e,n,i){if(null!==(e=new h(e,i)).recoveryParam)return e.recoveryParam;for(var r=0;r<4;r++){var s;try{s=this.recoverPubKey(t,e,r)}catch(t){continue}if(s.eq(n))return r}throw new Error("Unable to find valid recovery factor")}},ura0:function(t,e,n){"use strict";n.d(e,"c",function(){return v}),n.d(e,"a",function(){return l}),n.d(e,"b",function(){return g});var i=n("8Y7J"),r=n("SVse"),s=n("/q54"),o=(n("8LU1"),n("1G5W"),n("cUpR"));new Map;let a=(()=>{class t extends s.b{constructor(t,e,n,i,s,o,a){super(t,null,e,n),this.ngClassInstance=a,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new r.m(i,s,t,o)),this.init(),this.setValue("","")}set klass(t){this.ngClassInstance.klass=t,this.setValue(t,"")}updateWithValue(t){this.ngClassInstance.ngClass=t,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(s.i),i.Pb(s.f),i.Pb(i.u),i.Pb(i.v),i.Pb(i.G),i.Pb(r.m,10))},t.\u0275dir=i.Kb({type:t,inputs:{klass:["class","klass"]},features:[i.Ab]}),t})();const c=["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 l=(()=>{class t extends a{constructor(){super(...arguments),this.inputs=c}}return t.\u0275fac=function(e){return h(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[i.Ab]}),t})();const h=i.Xb(l);new WeakMap;class u{constructor(t,e,n=!0){this.key=t,this.value=e,this.key=n?t.replace(/['"]/g,"").trim():t.trim(),this.value=n?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function d(t){let e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function f(t){const[e,...n]=t.split(":");return new u(e,n.join(":"))}function p(t,e){return e.key&&(t[e.key]=e.value),t}let m=(()=>{class t extends s.b{constructor(t,e,n,i,s,o,a,c,l){super(t,null,e,n),this.sanitizer=i,this.ngStyleInstance=a,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new r.p(t,s,o)),this.init();const h=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(h),this.isServer=c&&Object(r.B)(l)}updateWithValue(t){const e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(t){const e=t=>this.sanitizer.sanitize(i.K.STYLE,t)||"";if(t)switch(d(t)){case"string":return y(function(t,e=";"){return String(t).trim().split(e).map(t=>t.trim()).filter(t=>""!==t)}(t),e);case"array":return y(t,e);case"set":default:return function(t,e){let n=[];return"set"===d(t)?t.forEach(t=>n.push(t)):Object.keys(t).forEach(e=>{n.push(`${e}:${t[e]}`)}),function(t,e){return t.map(f).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(p,{})}(n,e)}(t,e)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(s.i),i.Pb(s.f),i.Pb(o.b),i.Pb(i.v),i.Pb(i.G),i.Pb(r.p,10),i.Pb(s.g),i.Pb(i.D))},t.\u0275dir=i.Kb({type:t,features:[i.Ab]}),t})();const b=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let g=(()=>{class t extends m{constructor(){super(...arguments),this.inputs=b}}return t.\u0275fac=function(e){return _(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[i.Ab]}),t})();const _=i.Xb(g);function y(t,e){return t.map(f).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(p,{})}let v=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[s.c]]}),t})()},usKN:function(t,e,n){var i={ECB:n("AUX7"),CBC:n("wRn4"),CFB:n("NQVK"),CFB8:n("YskG"),CFB1:n("Ujlg"),OFB:n("UWVS"),CTR:n("at63"),GCM:n("at63")},r=n("6F8h");for(var s in r)r[s].module=i[r[s].mode];t.exports=r},uzSA:function(t,e,n){"use strict";var i=n("AQYT"),r=n("86MQ").assert;function s(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=s,s.fromPublic=function(t,e,n){return e instanceof s?e:new s(t,{pub:e,pubEnc:n})},s.fromPrivate=function(t,e,n){return e instanceof s?e:new s(t,{priv:e,privEnc:n})},s.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},s.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},s.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},s.prototype._importPrivate=function(t,e){this.priv=new i(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},s.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?r(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||r(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},s.prototype.derive=function(t){return t.mul(this.priv).getX()},s.prototype.sign=function(t,e,n){return this.ec.sign(t,this,e,n)},s.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},s.prototype.inspect=function(){return""}},vZ2G:function(t,e){t.exports=function(t){for(var e,n=t.length;n--;){if(255!==(e=t.readUInt8(n))){e++,t.writeUInt8(e,n);break}t.writeUInt8(0,n)}}},vkgz:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("7o/Q");function r(){}var s=n("n6bG");function o(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends i.a{constructor(t,e,n,i){super(t),this._tapNext=r,this._tapError=r,this._tapComplete=r,this._tapError=n||r,this._tapComplete=i||r,Object(s.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||r,this._tapError=e.error||r,this._tapComplete=e.complete||r)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},vrAh:function(t,e,n){"use strict";n.d(e,"a",function(){return F}),n.d(e,"b",function(){return K}),n.d(e,"c",function(){return H});var i=n("YEUz"),r=n("8LU1"),s=n("8Y7J"),o=n("UhP/"),a=n("quSY"),c=n("XNiG"),l=n("NXyV"),h=n("VRyK"),u=n("LRne"),d=n("xgIS"),f=n("SVse"),p=n("1O3W"),m=n("7KAL"),b=n("Ht+U"),g=n("SCoL"),_=n("1z/I"),y=n("s7LF"),v=n("Q2Ze"),w=n("IzEk"),x=n("eIep"),C=n("pLZG"),S=n("lJxs"),E=n("vkgz"),k=n("3E0/"),O=n("9gLZ");const A=["panel"];function D(t,e){if(1&t&&(s.Vb(0,"div",0,1),s.mc(2),s.Ub()),2&t){const t=e.id,n=s.hc();s.oc("id",n.id)("ngClass",n._classList),s.Eb("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(t))}}const I=["*"];let T=0;class L{constructor(t,e){this.source=t,this.option=e}}class P{}const R=Object(o.y)(P),M=new s.s("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let j=(()=>{class t extends R{constructor(t,e,n){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=a.a.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new s.o,this.opened=new s.o,this.closed=new s.o,this.optionActivated=new s.o,this._classList={},this.id="mat-autocomplete-"+T++,this._autoActiveFirstOption=!!n.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=Object(r.c)(t)}set classList(t){this._classList=t&&t.length?Object(r.g)(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new i.b(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new L(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?t+" "+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.h),s.Pb(s.l),s.Pb(M))},t.\u0275dir=s.Kb({type:t,viewQuery:function(t,e){if(1&t&&(s.Ec(s.O,!0),s.Pc(A,!0)),2&t){let t;s.vc(t=s.ec())&&(e.template=t.first),s.vc(t=s.ec())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[s.Ab]}),t})(),F=(()=>{class t extends j{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(e){return N(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){if(1&t&&(s.Ib(n,o.f,!0),s.Ib(n,o.m,!0)),2&t){let t;s.vc(t=s.ec())&&(e.optionGroups=t),s.vc(t=s.ec())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[s.Cb([{provide:o.g,useExisting:t}]),s.Ab],ngContentSelectors:I,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(s.nc(),s.Ic(0,D,3,4,"ng-template"))},directives:[f.m],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}\n"],encapsulation:2,changeDetection:0}),t})();const N=s.Xb(F),V=new s.s("mat-autocomplete-scroll-strategy"),U={provide:V,deps:[p.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},B={provide:y.k,useExisting:Object(s.X)(()=>H),multi:!0};let z=(()=>{class t{constructor(t,e,n,i,r,s,o,u,d,f,p){this._element=t,this._overlay=e,this._viewContainerRef=n,this._zone=i,this._changeDetectorRef=r,this._dir=o,this._formField=u,this._document=d,this._viewportRuler=f,this._defaults=p,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=a.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new c.a,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=Object(l.a)(()=>this.autocomplete&&this.autocomplete.options?Object(h.a)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe(Object(w.a)(1),Object(x.a)(()=>this.optionSelections))),this._scrollStrategy=s}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=Object(r.c)(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Object(h.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Object(C.a)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Object(C.a)(()=>this._overlayAttached)):Object(u.a)()).pipe(Object(S.a)(t=>t instanceof o.o?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Object(h.a)(Object(d.a)(this._document,"click"),Object(d.a)(this._document,"touchend")).pipe(Object(C.a)(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,n=this._formField?this._formField._elementRef.nativeElement:null,i=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!n||!n.contains(e))&&(!i||!i.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(e!==b.f||Object(b.r)(t)||t.preventDefault(),this.activeOption&&e===b.e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const n=this.autocomplete._keyManager.activeItem,i=e===b.o||e===b.c;this.panelOpen||e===b.n?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,n=e.value;"number"===e.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const t=this._zone.onStable.pipe(Object(w.a)(1)),e=this.autocomplete.options.changes.pipe(Object(E.a)(()=>this._positionStrategy.reapplyLastPosition()),Object(k.a)(0));return Object(h.a)(t,e).pipe(Object(x.a)(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),Object(w.a)(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){var t;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!Object(g.c)(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new _.i(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t._labelId}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe(t=>{(t.keyCode===b.f&&!Object(b.r)(t)||t.keyCode===b.o&&Object(b.r)(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new p.d({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],n=this._aboveClass,i=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:n},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:n}];let r;r="above"===this.position?i:"below"===this.position?e:[...e,...i],t.withPositions(r)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,n=Object(o.v)(t,e.options,e.optionGroups);if(0===t&&1===n)e._setScrollTop(0);else{const n=e.options.toArray()[t];if(n){const t=n._getHostElement(),i=Object(o.w)(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(i)}}}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.l),s.Pb(p.c),s.Pb(s.S),s.Pb(s.B),s.Pb(s.h),s.Pb(V),s.Pb(O.b,8),s.Pb(v.a,9),s.Pb(f.d,8),s.Pb(m.e),s.Pb(M,8))},t.\u0275dir=s.Kb({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[s.Bb]}),t})(),H=(()=>{class t extends z{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(e){return W(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&s.dc("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&s.Eb("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[s.Cb([B]),s.Ab]}),t})();const W=s.Xb(H);let K=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},providers:[U],imports:[[p.f,o.n,o.i,f.c],m.b,o.n,o.i]}),t})()},vvrf:function(t,e,n){var i=n("u/Db"),r=n("3X7Y"),s=n("nZSm"),o=n("AZa5"),a=n("Lzq4"),c=n("BCVQ"),l=n("e/Dd"),h=n("ELBg");function u(t){return unescape(encodeURIComponent(t)).length}function d(t,e,n){for(var i,r=[];null!==(i=t.exec(n));)r.push({data:i[0],index:i.index,mode:e,length:i[0].length});return r}function f(t){var e,n,r=d(c.NUMERIC,i.NUMERIC,t),s=d(c.ALPHANUMERIC,i.ALPHANUMERIC,t);return l.isKanjiModeEnabled()?(e=d(c.BYTE,i.BYTE,t),n=d(c.KANJI,i.KANJI,t)):(e=d(c.BYTE_KANJI,i.BYTE,t),n=[]),r.concat(s,e,n).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function p(t,e){switch(e){case i.NUMERIC:return r.getBitsLength(t);case i.ALPHANUMERIC:return s.getBitsLength(t);case i.KANJI:return a.getBitsLength(t);case i.BYTE:return o.getBitsLength(t)}}function m(t,e){var n,c=i.getBestModeForData(t);if((n=i.from(e,c))!==i.BYTE&&n.bit=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[]))},e.rawSplit=function(t){return e.fromArray(f(t,l.isKanjiModeEnabled()))}},w1tV:function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n("XNiG"),r=n("HDdC"),s=n("7o/Q"),o=n("quSY");function a(){return function(t){return t.lift(new c(t))}}class c{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new l(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class l extends s.a{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class h extends r.a{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.a,t.add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.a.EMPTY)),t}refCount(){return a()(this)}}const u=(()=>{const t=h.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class d extends i.b{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function f(){return new i.a}function p(){return t=>{return a()((e=f,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,u);return i.source=t,i.subjectFactory=n,i})(t));var e}}},w8CP:function(t,e,n){"use strict";var i=n("2j6C"),r=n("P7XM");function s(t,e){return 55296==(64512&t.charCodeAt(e))&&!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function o(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t){return 1===t.length?"0"+t:t}function c(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=r,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),r=0;r>6|192,n[i++]=63&o|128):s(t,r)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++r)),n[i++]=o>>18|240,n[i++]=o>>12&63|128,n[i++]=o>>6&63|128,n[i++]=63&o|128):(n[i++]=o>>12|224,n[i++]=o>>6&63|128,n[i++]=63&o|128)}else for(r=0;r>>0;return o},e.split32=function(t,e){for(var n=new Array(4*t.length),i=0,r=0;i>>24,n[r+1]=s>>>16&255,n[r+2]=s>>>8&255,n[r+3]=255&s):(n[r+3]=s>>>24,n[r+2]=s>>>16&255,n[r+1]=s>>>8&255,n[r]=255&s)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,i){return t+e+n+i>>>0},e.sum32_5=function(t,e,n,i,r){return t+e+n+i+r>>>0},e.sum64=function(t,e,n,i){var r=i+t[e+1]>>>0;t[e]=(r>>0,t[e+1]=r},e.sum64_hi=function(t,e,n,i){return(e+i>>>0>>0},e.sum64_lo=function(t,e,n,i){return e+i>>>0},e.sum64_4_hi=function(t,e,n,i,r,s,o,a){var c=0,l=e;return c+=(l=l+i>>>0)>>0)>>0)>>0},e.sum64_4_lo=function(t,e,n,i,r,s,o,a){return e+i+s+a>>>0},e.sum64_5_hi=function(t,e,n,i,r,s,o,a,c,l){var h=0,u=e;return h+=(u=u+i>>>0)>>0)>>0)>>0)>>0},e.sum64_5_lo=function(t,e,n,i,r,s,o,a,c,l){return e+i+s+a+l>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},wHSu:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return c}),n.d(e,"g",function(){return l}),n.d(e,"h",function(){return h}),n.d(e,"i",function(){return u}),n.d(e,"j",function(){return d}),n.d(e,"k",function(){return f}),n.d(e,"l",function(){return p}),n.d(e,"m",function(){return m}),n.d(e,"n",function(){return b}),n.d(e,"o",function(){return g}),n.d(e,"p",function(){return _}),n.d(e,"q",function(){return y}),n.d(e,"r",function(){return v}),n.d(e,"s",function(){return w}),n.d(e,"t",function(){return x}),n.d(e,"u",function(){return C}),n.d(e,"v",function(){return S}),n.d(e,"w",function(){return E}),n.d(e,"x",function(){return k}),n.d(e,"y",function(){return O}),n.d(e,"z",function(){return A}),n.d(e,"A",function(){return D}),n.d(e,"B",function(){return I}),n.d(e,"C",function(){return T}),n.d(e,"D",function(){return L}),n.d(e,"E",function(){return P}),n.d(e,"F",function(){return R}),n.d(e,"G",function(){return M}),n.d(e,"H",function(){return j}),n.d(e,"I",function(){return F}),n.d(e,"J",function(){return N}),n.d(e,"K",function(){return V}),n.d(e,"L",function(){return U}),n.d(e,"M",function(){return B}),n.d(e,"N",function(){return z}),n.d(e,"O",function(){return H}),n.d(e,"P",function(){return W});var i={prefix:"fas",iconName:"angle-double-down",icon:[320,512,[],"f103","M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"]},r={prefix:"fas",iconName:"angle-double-up",icon:[320,512,[],"f102","M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"]},s={prefix:"fas",iconName:"archive",icon:[512,512,[],"f187","M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"]},o={prefix:"fas",iconName:"balance-scale",icon:[640,512,[],"f24e","M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},a={prefix:"fas",iconName:"bolt",icon:[320,512,[],"f0e7","M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"]},c={prefix:"fas",iconName:"chart-bar",icon:[512,512,[],"f080","M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},l={prefix:"fas",iconName:"chart-pie",icon:[544,512,[],"f200","M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"]},h={prefix:"fas",iconName:"code-branch",icon:[384,512,[],"f126","M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"]},u={prefix:"fas",iconName:"cog",icon:[512,512,[],"f013","M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]},d={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"]},f={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"]},p={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"]},m={prefix:"fas",iconName:"eject",icon:[448,512,[],"f052","M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"]},b={prefix:"fas",iconName:"exchange-alt",icon:[512,512,[],"f362","M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"]},g={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},_={prefix:"fas",iconName:"eye",icon:[576,512,[],"f06e","M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]},y={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]},v={prefix:"fas",iconName:"history",icon:[512,512,[],"f1da","M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"]},w={prefix:"fas",iconName:"infinity",icon:[640,512,[],"f534","M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"]},x={prefix:"fas",iconName:"info-circle",icon:[512,512,[],"f05a","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]},C={prefix:"fas",iconName:"life-ring",icon:[512,512,[],"f1cd","M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"]},S={prefix:"fas",iconName:"link",icon:[512,512,[],"f0c1","M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"]},E={prefix:"fas",iconName:"map-signs",icon:[512,512,[],"f277","M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"]},k={prefix:"fas",iconName:"money-bill-wave",icon:[640,512,[],"f53a","M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"]},O={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"]},A={prefix:"fas",iconName:"paint-brush",icon:[512,512,[],"f1fc","M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"]},D={prefix:"fas",iconName:"percentage",icon:[384,512,[],"f541","M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"]},I={prefix:"fas",iconName:"project-diagram",icon:[640,512,[],"f542","M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"]},T={prefix:"fas",iconName:"question",icon:[384,512,[],"f128","M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"]},L={prefix:"fas",iconName:"receipt",icon:[384,512,[],"f543","M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"]},P={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]},R={prefix:"fas",iconName:"search",icon:[512,512,[],"f002","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]},M={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"]},j={prefix:"fas",iconName:"tachometer-alt",icon:[576,512,[],"f3fd","M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},F={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},N={prefix:"fas",iconName:"tools",icon:[512,512,[],"f7d9","M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"]},V={prefix:"fas",iconName:"unlock-alt",icon:[448,512,[],"f13e","M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"]},U={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"]},B={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"]},z={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z"]},H={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"]},W={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]}},wRn4:function(t,e,n){var i=n("jIre");e.encrypt=function(t,e){var n=i(e,t._prev);return t._prev=t._cipher.encryptBlock(n),t._prev},e.decrypt=function(t,e){var n=t._prev;t._prev=e;var r=t._cipher.decryptBlock(e);return i(r,n)}},wk3p:function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},wq4j:function(t,e,n){t.exports=n("43KI").PassThrough},xZGU:function(t,e,n){"use strict";var i,r=n("tjlA"),s=r.Buffer,o={};for(i in r)r.hasOwnProperty(i)&&"SlowBuffer"!==i&&"Buffer"!==i&&(o[i]=r[i]);var a=o.Buffer={};for(i in s)s.hasOwnProperty(i)&&"allocUnsafe"!==i&&"allocUnsafeSlow"!==i&&(a[i]=s[i]);if(o.Buffer.prototype=s.prototype,a.from&&a.from!==Uint8Array.from||(a.from=function(t,e,n){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return s(t,e,n)}),a.alloc||(a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var i=s(t);return e&&0!==e.length?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i}),!o.kStringMaxLength)try{o.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(c){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o},xbPD:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q");function r(t=null){return e=>e.lift(new s(t))}class s{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new o(t,this.defaultValue))}}class o extends i.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},xgIS:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("HDdC"),r=n("DH7j"),s=n("n6bG"),o=n("lJxs");function a(t,e,n,l){return Object(s.a)(n)&&(l=n,n=void 0),l?a(t,e,n).pipe(Object(o.a)(t=>Object(r.a)(t)?l(...t):l(t))):new i.a(i=>{c(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function c(t,e,n,i,r){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,r),s=()=>i.removeEventListener(e,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),s=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),s=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,o=t.length;sthis._trackByValue(t)))}collapseDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.deselect(...e.map(t=>this._trackByValue(t)))}_trackByValue(t){return this.trackBy?this.trackBy(t):t}}{constructor(t,e){super(),this.getChildren=t,this.options=e,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const t=this.dataNodes.reduce((t,e)=>[...t,...this.getDescendants(e),e],[]);this.expansionModel.select(...t.map(t=>this._trackByValue(t)))}getDescendants(t){const e=[];return this._getDescendants(e,t),e.splice(1)}_getDescendants(t,e){t.push(e);const n=this.getChildren(e);Array.isArray(n)?n.forEach(e=>this._getDescendants(t,e)):Object(r.a)(n)&&n.pipe(Object(c.a)(1),Object(l.a)(Boolean)).subscribe(e=>{for(const n of e)this._getDescendants(t,n)})}}const m=new u.s("CDK_TREE_NODE_OUTLET_NODE");let b=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(u.Pb(u.S),u.Pb(m,8))},t.\u0275dir=u.Kb({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class g{constructor(t){this.$implicit=t}}let _=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(u.Pb(u.O))},t.\u0275dir=u.Kb({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})(),y=(()=>{class t{constructor(t,e){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new s.a,this._levels=new Map,this.viewChange=new o.a({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const t=this._nodeDefs.filter(t=>!t.when);this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let t;Object(i.h)(this._dataSource)?t=this._dataSource.connect(this):Object(r.a)(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=Object(a.a)(this._dataSource)),t&&(this._dataSubscription=t.pipe(Object(h.a)(this._onDestroy)).subscribe(t=>this.renderNodeChanges(t)))}renderNodeChanges(t,e=this._dataDiffer,n=this._nodeOutlet.viewContainer,i){const r=e.diff(t);r&&(r.forEachOperation((e,r,s)=>{if(null==e.previousIndex)this.insertNode(t[s],s,n,i);else if(null==s)n.remove(r),this._levels.delete(e.item);else{const t=n.get(r);n.move(t,s)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,e){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(n=>n.when&&n.when(e,t))||this._defaultNodeDef}insertNode(t,e,n,i){const r=this._getNodeDef(t,e),s=new g(t);s.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==i&&this._levels.has(i)?this._levels.get(i)+1:0,this._levels.set(t,s.level),(n||this._nodeOutlet.viewContainer).createEmbeddedView(r.template,s,e),v.mostRecentTreeNode&&(v.mostRecentTreeNode.data=t)}}return t.\u0275fac=function(e){return new(e||t)(u.Pb(u.u),u.Pb(u.h))},t.\u0275cmp=u.Jb({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,n){if(1&t&&u.Ib(n,_,!0),2&t){let t;u.vc(t=u.ec())&&(e._nodeDefs=t)}},viewQuery:function(t,e){if(1&t&&u.Ec(b,!0),2&t){let t;u.vc(t=u.ec())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&u.Rb(0,0)},directives:[b],encapsulation:2}),t})(),v=(()=>{class t{constructor(e,n){this._elementRef=e,this._tree=n,this._destroyed=new s.a,this._dataChanges=new s.a,t.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}get role(){return"treeitem"}set role(t){this._elementRef.nativeElement.setAttribute("role",t)}get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}_setExpanded(t){this._isAriaExpanded=t,this._elementRef.nativeElement.setAttribute("aria-expanded",""+t)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function(t){let e=t.parentElement;for(;e&&!w(e);)e=e.parentElement;return e?e.classList.contains("cdk-nested-tree-node")?Object(d.f)(e.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",""+(this.level+1))}ngDoCheck(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return t.\u0275fac=function(e){return new(e||t)(u.Pb(u.l),u.Pb(y))},t.\u0275dir=u.Kb({type:t,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t})();function w(t){const e=t.classList;return!(!(null==e?void 0:e.contains("cdk-nested-tree-node"))&&!(null==e?void 0:e.contains("cdk-tree")))}let x=(()=>{class t extends v{constructor(t,e,n){super(t,e),this._elementRef=t,this._tree=e,this._differs=n,this._elementRef.nativeElement.classList.add("cdk-nested-tree-node")}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const t=this._tree.treeControl.getChildren(this.data);Array.isArray(t)?this.updateChildrenNodes(t):Object(r.a)(t)&&t.pipe(Object(h.a)(this._destroyed)).subscribe(t=>this.updateChildrenNodes(t)),this.nodeOutlet.changes.pipe(Object(h.a)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(t){const e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const t=this.nodeOutlet;return t&&t.find(t=>!t._node||t._node===this)}}return t.\u0275fac=function(e){return new(e||t)(u.Pb(u.l),u.Pb(y),u.Pb(u.u))},t.\u0275dir=u.Kb({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,n){if(1&t&&u.Ib(n,b,!0),2&t){let t;u.vc(t=u.ec())&&(e.nodeOutlet=t)}},inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[u.Cb([{provide:v,useExisting:t},{provide:m,useExisting:t}]),u.Ab]}),t})();const C=/([A-Za-z%]+)$/;let S=(()=>{class t{constructor(t,e,n,i){this._treeNode=t,this._tree=e,this._element=n,this._dir=i,this._destroyed=new s.a,this.indentUnits="px",this._indent=40,this._setPadding(),i&&i.change.pipe(Object(h.a)(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?`${e*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){const e=this._paddingIndent();if(e!==this._currentPadding||t){const t=this._element.nativeElement,n=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",i="paddingLeft"===n?"paddingRight":"paddingLeft";t.style[n]=e||"",t.style[i]="",this._currentPadding=e}}_setLevelInput(t){this._level=Object(d.f)(t,null),this._setPadding()}_setIndentInput(t){let e=t,n="px";if("string"==typeof t){const i=t.split(C);e=i[0],n=i[1]||n}this.indentUnits=n,this._indent=Object(d.f)(e),this._setPadding()}}return t.\u0275fac=function(e){return new(e||t)(u.Pb(v),u.Pb(y),u.Pb(u.l),u.Pb(f.b,8))},t.\u0275dir=u.Kb({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t})(),E=(()=>{class t{constructor(t,e){this._tree=t,this._treeNode=e,this._recursive=!1}get recursive(){return this._recursive}set recursive(t){this._recursive=Object(d.c)(t)}_toggle(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(u.Pb(y),u.Pb(v))},t.\u0275dir=u.Kb({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&u.dc("click",function(t){return e._toggle(t)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),k=(()=>{class t{}return t.\u0275mod=u.Nb({type:t}),t.\u0275inj=u.Mb({factory:function(e){return new(e||t)}}),t})()},yCtX:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("HDdC"),r=n("ngJS"),s=n("jZKg");function o(t,e){return e?Object(s.a)(t,e):new i.a(Object(r.a)(t))}},yKow:function(t,e,n){var i=n("e/Dd"),r=n("NPxG"),s=n("ekOh"),o=n("u/Db"),a=n("J6Nv"),c=n("49sm"),l=i.getBCHDigit(7973);function h(t,e){return o.getCharCountIndicator(t,e)+4}function u(t,e){var n=0;return t.forEach(function(t){var i=h(t.mode,e);n+=i+t.getBitsLength()}),n}e.from=function(t,e){return a.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!a.isValid(t))throw new Error("Invalid QR Code version");void 0===n&&(n=o.BYTE);var s=8*(i.getSymbolTotalCodewords(t)-r.getTotalCodewordsCount(t,e));if(n===o.MIXED)return s;var c=s-h(n,t);switch(n){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,n){var i,r=s.from(n,s.M);if(c(t)){if(t.length>1)return function(t,n){for(var i=1;i<=40;i++)if(u(t,i)<=e.getCapacity(i,n,o.MIXED))return i}(t,r);if(0===t.length)return 1;i=t[0]}else i=t;return function(t,n,i){for(var r=1;r<=40;r++)if(n<=e.getCapacity(r,i,t))return r}(i.mode,i.getLength(),r)},e.getEncodedBits=function(t){if(!a.isValid(t)||t<7)throw new Error("Invalid QR Code version");for(var e=t<<12;i.getBCHDigit(e)-l>=0;)e^=7973<\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=r.console&&(r.console.warn||r.console.log);return s&&s.call(r.console,i,n),t.apply(this,arguments)}}c="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n-1}function A(t){return t.trim().split(/\s+/g)}function D(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;in[e]}):i.sort()),i}function L(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),s=0;s1&&!n.firstMultiple?n.firstMultiple=W(e):1===r&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,c=o?o.center:s.center,l=e.center=K(i);e.timeStamp=f(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=X(c,l),e.distance=Z(c,l),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};1!==e.eventType&&4!==s.eventType||(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=Y(e.deltaX,e.deltaY);var h,u,p=q(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=p.x,e.overallVelocityY=p.y,e.overallVelocity=d(p.x)>d(p.y)?p.x:p.y,e.scale=o?(h=o.pointers,Z((u=i)[0],u[1],B)/Z(h[0],h[1],B)):1,e.rotation=o?function(t,e){return X(e[1],e[0],B)+X(t[1],t[0],B)}(o.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,s,o=t.lastInterval||e,c=e.timeStamp-o.timeStamp;if(8!=e.eventType&&(c>25||o.velocity===a)){var l=e.deltaX-o.deltaX,h=e.deltaY-o.deltaY,u=q(c,l,h);i=u.x,r=u.y,n=d(u.x)>d(u.y)?u.x:u.y,s=Y(l,h),t.lastInterval=e}else n=o.velocity,i=o.velocityX,r=o.velocityY,s=o.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=s}(n,e);var m=t.element;k(e.srcEvent.target,m)&&(m=e.srcEvent.target),e.target=m}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function W(t){for(var e=[],n=0;n=d(e)?t<0?2:4:e<0?8:16}function Z(t,e,n){n||(n=U);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function X(t,e,n){return n||(n=U),180*Math.atan2(e[n[1]]-t[n[1]],e[n[0]]-t[n[0]])/Math.PI}z.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(R(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(R(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4},$="mousedown",Q="mousemove mouseup";function J(){this.evEl=$,this.evWin=Q,this.pressed=!1,z.apply(this,arguments)}v(J,z,{handler:function(t){var e=G[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:V,srcEvent:t}))}});var tt={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},et={2:N,3:"pen",4:V,5:"kinect"},nt="pointerdown",it="pointermove pointerup pointercancel";function rt(){this.evEl=nt,this.evWin=it,z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(nt="MSPointerDown",it="MSPointerMove MSPointerUp MSPointerCancel"),v(rt,z,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=tt[i],s=et[t.pointerType]||t.pointerType,o=s==N,a=D(e,t.pointerId,"pointerId");1&r&&(0===t.button||o)?a<0&&(e.push(t),a=e.length-1):12&r&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(a,1))}});var st={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ot="touchstart",at="touchstart touchmove touchend touchcancel";function ct(){this.evTarget=ot,this.evWin=at,this.started=!1,z.apply(this,arguments)}function lt(t,e){var n=I(t.touches),i=I(t.changedTouches);return 12&e&&(n=T(n.concat(i),"identifier",!0)),[n,i]}v(ct,z,{handler:function(t){var e=st[t.type];if(1===e&&(this.started=!0),this.started){var n=lt.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:t})}}});var ht={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ut="touchstart touchmove touchend touchcancel";function dt(){this.evTarget=ut,this.targetIds={},z.apply(this,arguments)}function ft(t,e){var n=I(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,s,o=I(t.changedTouches),a=[],c=this.target;if(s=n.filter(function(t){return k(t.target,c)}),1===e)for(r=0;r-1&&i.splice(t,1)},2500)}}function gt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+It(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+It(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=At},canEmit:function(){for(var t=0;te.threshold&&r&e.direction},attrTest:function(t){return Pt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Tt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),v(Mt,Pt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ct]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),v(jt,Dt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[wt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distancee.time;if(this._input=t,!i||!n||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=p(function(){this.state=8,this.tryEmit()},e.time,this);else if(4&t.eventType)return 8;return At},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),v(Ft,Pt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ct]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),v(Nt,Pt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Rt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&d(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=Tt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),v(Vt,Dt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[xt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance{class t extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.a{}return t.\u0275fac=function(e){return \u0275DevtoolsDispatcher_BaseFactory(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Lb({token:t,factory:t.\u0275fac}),t})();const \u0275DevtoolsDispatcher_BaseFactory=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Xb(DevtoolsDispatcher);function difference(t,e){return t.filter(t=>e.indexOf(t)<0)}function unliftState(t){const{computedStates:e,currentStateIndex:n}=t;if(n>=e.length){const{state:t}=e[e.length-1];return t}const{state:i}=e[n];return i}function unliftAction(t){return t.actionsById[t.nextActionId-1]}function liftAction(t){return new PerformAction(t,+Date.now())}function sanitizeActions(t,e){return Object.keys(e).reduce((n,i)=>{const r=Number(i);return n[r]=sanitizeAction(t,e[r],r),n},{})}function sanitizeAction(t,e,n){return Object.assign(Object.assign({},e),{action:t(e.action,n)})}function sanitizeStates(t,e){return e.map((e,n)=>({state:sanitizeState(t,e.state,n),error:e.error}))}function sanitizeState(t,e,n){return t(e,n)}function shouldFilterActions(t){return t.predicate||t.actionsSafelist||t.actionsBlocklist}function filterLiftedState(t,e,n,i){const r=[],s={},o=[];return t.stagedActionIds.forEach((a,c)=>{const l=t.actionsById[a];l&&(c&&isActionFiltered(t.computedStates[c],l,e,n,i)||(s[a]=l,r.push(a),o.push(t.computedStates[c])))}),Object.assign(Object.assign({},t),{stagedActionIds:r,actionsById:s,computedStates:o})}function isActionFiltered(t,e,n,i,r){const s=n&&!n(t,e.action),o=i&&!e.action.type.match(i.map(t=>escapeRegExp(t)).join("|")),a=r&&e.action.type.match(r.map(t=>escapeRegExp(t)).join("|"));return s||o||a}function escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("Redux Devtools Extension");function ReduxDevtoolsExtensionConnection(){}function ReduxDevtoolsExtensionConfig(){}function ReduxDevtoolsExtension(){}let DevtoolsExtension=(()=>{class DevtoolsExtension{constructor(t,e,n){this.config=e,this.dispatcher=n,this.devtoolsExtension=t,this.createActionStreams()}notify(t,e){if(this.devtoolsExtension)if(t.type===PERFORM_ACTION){if(e.isLocked||e.isPaused)return;const n=unliftState(e);if(shouldFilterActions(this.config)&&isActionFiltered(n,t,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const i=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,n,e.currentStateIndex):n,r=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,t,e.nextActionId):t;this.sendToReduxDevtools(()=>this.extensionConnection.send(r,i))}else{const t=Object.assign(Object.assign({},e),{stagedActionIds:e.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,e.actionsById):e.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,e.computedStates):e.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,t,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.a(t=>{const e=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=e,e.init(),e.subscribe(e=>t.next(e)),e.unsubscribe}):Object(rxjs__WEBPACK_IMPORTED_MODULE_2__.b)()}createActionStreams(){const t=this.createChangesObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.a)()),e=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(t=>t.type===ExtensionActionTypes.START)),n=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(t=>t.type===ExtensionActionTypes.STOP)),i=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(t=>t.type===ExtensionActionTypes.DISPATCH),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(t=>this.unwrapAction(t.payload)),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(t=>t.type===IMPORT_STATE?this.dispatcher.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(t=>t.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.l),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(()=>t),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)(()=>Object(rxjs__WEBPACK_IMPORTED_MODULE_4__.a)(t)),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)(1)):Object(rxjs__WEBPACK_IMPORTED_MODULE_4__.a)(t))),r=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(t=>t.type===ExtensionActionTypes.ACTION),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(t=>this.unwrapAction(t.payload))).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(n)),s=i.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(n));this.start$=e.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(n)),this.actions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(()=>r)),this.liftedActions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(()=>s))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(t){const e={name:t.name,features:t.features,serialize:t.serialize};return!1!==t.maxAge&&(e.maxAge=t.maxAge),e}sendToReduxDevtools(t){try{t()}catch(e){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",e)}}}return DevtoolsExtension.\u0275fac=function(t){return new(t||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Lb({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})();const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.b},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function ComputedState(){}function LiftedAction(){}function LiftedActions(){}function LiftedState(){}function computeNextEntry(t,e,n,i,r){if(i)return{state:n,error:"Interrupted by an error up the chain"};let s,o=n;try{o=t(n,e)}catch(a){s=a.toString(),r.handleError(a.stack||a)}return{state:o,error:s}}function recomputeStates(t,e,n,i,r,s,o,a,c){if(e>=t.length&&t.length===s.length)return t;const l=t.slice(0,e),h=s.length-(c?1:0);for(let u=e;u-1?c:computeNextEntry(n,e,h,d,a);l.push(f)}return c&&l.push(t[t.length-1]),l}function liftInitialState(t,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:t,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(t,e,n,i,r={}){return s=>(o,a)=>{let{monitorState:c,actionsById:l,nextActionId:h,stagedActionIds:u,skippedActionIds:d,committedState:f,currentStateIndex:p,computedStates:m,isLocked:b,isPaused:g}=o||e;function _(t){let e=t,n=u.slice(1,e+1);for(let i=0;i-1===n.indexOf(t)),u=[0,...u.slice(e+1)],f=m[e].state,m=m.slice(e),p=p>e?p-e:0}function y(){l={0:liftAction(INIT_ACTION)},h=1,u=[0],d=[],f=m[p].state,p=0,m=[]}o||(l=Object.create(l));let v=0;switch(a.type){case LOCK_CHANGES:b=a.status,v=1/0;break;case PAUSE_RECORDING:g=a.status,g?(u=[...u,h],l[h]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),h++,v=u.length-1,m=m.concat(m[m.length-1]),p===u.length-2&&p++,v=1/0):y();break;case RESET:l={0:liftAction(INIT_ACTION)},h=1,u=[0],d=[],f=t,p=0,m=[];break;case COMMIT:y();break;case ROLLBACK:l={0:liftAction(INIT_ACTION)},h=1,u=[0],d=[],p=0,m=[];break;case TOGGLE_ACTION:{const{id:t}=a,e=d.indexOf(t);d=-1===e?[t,...d]:d.filter(e=>e!==t),v=u.indexOf(t);break}case SET_ACTIONS_ACTIVE:{const{start:t,end:e,active:n}=a,i=[];for(let r=t;rr.maxAge&&(m=recomputeStates(m,v,s,f,l,u,d,n,g),_(u.length-r.maxAge),v=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.l:if(m.filter(t=>t.error).length>0)v=0,r.maxAge&&u.length>r.maxAge&&(m=recomputeStates(m,v,s,f,l,u,d,n,g),_(u.length-r.maxAge),v=1/0);else{if(!g&&!b){p===u.length-1&&p++;const t=h++;l[t]=new PerformAction(a,+Date.now()),u=[...u,t],v=u.length-1,m=recomputeStates(m,v,s,f,l,u,d,n,g)}m=m.map(t=>Object.assign(Object.assign({},t),{state:s(t.state,RECOMPUTE_ACTION)})),p=u.length-1,r.maxAge&&u.length>r.maxAge&&_(u.length-r.maxAge),v=1/0}break;default:v=1/0}return m=recomputeStates(m,v,s,f,l,u,d,n,g),c=i(c,a),{monitorState:c,actionsById:l,nextActionId:h,stagedActionIds:u,skippedActionIds:d,committedState:f,currentStateIndex:p,computedStates:m,isLocked:b,isPaused:g}}}let StoreDevtools=(()=>{class t{constructor(t,e,n,i,r,s,o,a){const c=liftInitialState(o,a.monitor),l=liftReducerWith(o,c,s,a.monitor,a),h=Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(e.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(1)),i.actions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(liftAction)),t,i.liftedActions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.b)(rxjs__WEBPACK_IMPORTED_MODULE_6__.b)),u=n.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(l)),d=new rxjs__WEBPACK_IMPORTED_MODULE_7__.a(1),f=h.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.a)(u),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.a)(({state:t},[e,n])=>{let r=n(t,e);return e.type!==PERFORM_ACTION&&shouldFilterActions(a)&&(r=filterLiftedState(r,a.predicate,a.actionsSafelist,a.actionsBlocklist)),i.notify(e,r),{state:r,action:e}},{state:c,action:null})).subscribe(({state:t,action:e})=>{d.next(t),e.type===PERFORM_ACTION&&r.next(e.action)}),p=i.start$.subscribe(()=>{this.refresh()}),m=d.asObservable(),b=m.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(unliftState));this.extensionStartSubscription=p,this.stateSubscription=f,this.dispatcher=t,this.liftedState=m,this.state=b}dispatch(t){this.dispatcher.next(t)}next(t){this.dispatcher.next(t)}error(t){}complete(){}performAction(t){this.dispatch(new PerformAction(t,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(t){this.dispatch(new ToggleAction(t))}jumpToAction(t){this.dispatch(new JumpToAction(t))}jumpToState(t){this.dispatch(new JumpToState(t))}importState(t){this.dispatch(new ImportState(t))}lockChanges(t){this.dispatch(new LockChanges(t))}pauseRecording(t){this.dispatch(new PauseRecording(t))}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.a),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.e),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.f),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(_angular_core__WEBPACK_IMPORTED_MODULE_0__.n),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.c),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(STORE_DEVTOOLS_CONFIG))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Lb({token:t,factory:t.\u0275fac}),t})();const IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(t,e){return Boolean(t)||e.monitor!==noMonitor}function createReduxDevtoolsExtension(){const t="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[t]?window[t]:null}function createStateObservable(t){return t.state}let StoreDevtoolsModule=(()=>{class t{static instrument(e={}){return{ngModule:t,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:e},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.g,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.d,useExisting:DevtoolsDispatcher}]}}}return t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Nb({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Mb({factory:function(e){return new(e||t)}}),t})()},"z+Ro":function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,"a",function(){return i})},z6cu:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("HDdC");function r(t,e){return new i.a(e?n=>e.schedule(s,0,{error:t,subscriber:n}):e=>e.error(t))}function s({error:t,subscriber:e}){e.error(t)}},z71Z:function(t,e,n){"use strict";const i=n("P7XM"),r=n("AQYT"),s=n("YoN+").DecoderBuffer,o=n("g2Dh"),a=n("i3FT");function c(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new l,this.tree._init(t.body)}function l(t){o.call(this,"der",t)}function h(t,e){let n=t.readUInt8(e);if(t.isError(n))return n;const i=a.tagClass[n>>6],r=0==(32&n);if(31==(31&n)){let i=n;for(n=0;128==(128&i);){if(i=t.readUInt8(e),t.isError(i))return i;n<<=7,n|=127&i}}else n&=31;return{cls:i,primitive:r,tag:n,tagStr:a.tag[n]}}function u(t,e,n){let i=t.readUInt8(n);if(t.isError(i))return i;if(!e&&128===i)return null;if(0==(128&i))return i;const r=127&i;if(r>4)return t.error("length octect is too long");i=0;for(let s=0;sthis.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,v))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let x=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(w),o.Pb(_))},t.\u0275cmp=o.Jb({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(o.Vb(0,"span"),o.Kc(1),o.Ub(),o.Ic(2,b,3,1,"div",0)),2&t&&(o.Db(1),o.Lc(e.data.message),o.Db(1),o.oc("ngIf",e.hasAction))},directives:[s.o,c.a],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t})();const C={snackBarState:Object(d.m)("state",[Object(d.j)("void, hidden",Object(d.k)({transform:"scale(0.8)",opacity:0})),Object(d.j)("visible",Object(d.k)({transform:"scale(1)",opacity:1})),Object(d.l)("* => visible",Object(d.e)("150ms cubic-bezier(0, 0, 0.2, 1)")),Object(d.l)("* => void, * => hidden",Object(d.e)("75ms cubic-bezier(0.4, 0.0, 1, 1)",Object(d.k)({opacity:0})))])};let S=(()=>{class t extends r.a{constructor(t,e,n,i,r){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=n,this._platform=i,this.snackBarConfig=r,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new l.a,this._onExit=new l.a,this._onEnter=new l.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._live="assertive"!==r.politeness||r.announcementMessage?"off"===r.politeness?"off":"polite":"assertive"}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:n}=t;if(("void"===n&&"void"!==e||"hidden"===n)&&this._completeExit(),"visible"===n){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Object(h.a)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),e=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&e){let n=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(n=document.activeElement),t.removeAttribute("aria-hidden"),e.appendChild(t),null==n||n.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(o.B),o.Pb(o.l),o.Pb(o.h),o.Pb(m.a),o.Pb(y))},t.\u0275cmp=o.Jb({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){if(1&t&&o.Ec(r.c,!0),2&t){let t;o.vc(t=o.ec())&&(e._portalOutlet=t.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&o.Gc("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&o.Hc("@state",e._animationState)},features:[o.Ab],decls:3,vars:1,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Ic(1,g,0,0,"ng-template",1),o.Ub(),o.Qb(2,"div")),2&t&&(o.Db(2),o.Eb("aria-live",e._live))},directives:[r.c],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[C.snackBarState]}}),t})(),E=(()=>{class t{}return t.\u0275mod=o.Nb({type:t}),t.\u0275inj=o.Mb({factory:function(e){return new(e||t)},imports:[[i.f,r.h,s.c,c.b,a.i],a.i]}),t})();const k=new o.s("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new y}});let O=(()=>{class t{constructor(t,e,n,i,r,s){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=i,this._parentSnackBar=r,this._defaultConfig=s,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=x,this.snackBarContainerComponent=S,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){const i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const n=o.t.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:y,useValue:e}]}),i=new r.d(this.snackBarContainerComponent,e.viewContainerRef,n),s=t.attach(i);return s.instance.snackBarConfig=e,s.instance}_attach(t,e){const n=Object.assign(Object.assign(Object.assign({},new y),this._defaultConfig),e),i=this._createOverlay(n),s=this._attachSnackBarContainer(i,n),a=new w(s,i);if(t instanceof o.O){const e=new r.i(t,null,{$implicit:n.data,snackBarRef:a});a.instance=s.attachTemplatePortal(e)}else{const e=this._createInjector(n,a),i=new r.d(t,void 0,e),o=s.attachComponentPortal(i);a.instance=o.instance}return this._breakpointObserver.observe(p.b.HandsetPortrait).pipe(Object(u.a)(i.detachments())).subscribe(t=>{const e=i.overlayElement.classList;t.matches?e.add(this.handsetCssClass):e.remove(this.handsetCssClass)}),n.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness)}),this._animateSnackBar(a,n),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration))}_createOverlay(t){const e=new i.d;e.direction=t.direction;let n=this._overlay.position().global();const r="rtl"===t.direction,s="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!r||"end"===t.horizontalPosition&&r,o=!s&&"center"!==t.horizontalPosition;return s?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}_createInjector(t,e){return o.t.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:w,useValue:e},{provide:_,useValue:t.data}]})}}return t.\u0275fac=function(e){return new(e||t)(o.Zb(i.c),o.Zb(f.k),o.Zb(o.t),o.Zb(p.a),o.Zb(t,12),o.Zb(k))},t.\u0275prov=Object(o.Lb)({factory:function(){return new t(Object(o.Zb)(i.c),Object(o.Zb)(f.k),Object(o.Zb)(o.p),Object(o.Zb)(p.a),Object(o.Zb)(t,12),Object(o.Zb)(k))},token:t,providedIn:E}),t})()},zP0r:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q");function r(t){return e=>e.lift(new s(t))}class s{constructor(t){this.total=t}call(t,e){return e.subscribe(new o(t,this.total))}}class o extends i.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},zQhy:function(t,e,n){"use strict";n.d(e,"a",function(){return S}),n.d(e,"b",function(){return y}),n.d(e,"c",function(){return E});var i=n("8Y7J"),r=n("UhP/"),s=n("8LU1"),o=n("s7LF"),a=n("omvX"),c=n("YEUz"),l=n("CtHx");const h=["input"],u=function(){return{enterDuration:150}},d=["*"],f=new i.s("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let p=0;const m={provide:o.k,useExisting:Object(i.X)(()=>y),multi:!0};class b{constructor(t,e){this.source=t,this.value=e}}const g=new i.s("MatRadioGroup");let _=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+p++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new i.o}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(s.c)(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=Object(s.c)(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new b(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.h))},t.\u0275dir=i.Kb({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),y=(()=>{class t extends _{}return t.\u0275fac=function(e){return v(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,n){if(1&t&&i.Ib(n,S,!0),2&t){let t;i.vc(t=i.ec())&&(e._radios=t)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[i.Cb([m,{provide:g,useExisting:t}]),i.Ab]}),t})();const v=i.Xb(y);class w{constructor(t){this._elementRef=t}}const x=Object(r.y)(Object(r.C)(w));let C=(()=>{class t extends x{constructor(t,e,n,r,o,a,c,l){super(e),this._changeDetector=n,this._focusMonitor=r,this._radioDispatcher=o,this._animationMode=a,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++p,this.id=this._uniqueId,this.change=new i.o,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,l&&(this.tabIndex=Object(s.f)(l,0)),this._removeUniqueSelectionListener=o.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=Object(s.c)(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(Object(s.c)(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=Object(s.c)(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return(this.id||this._uniqueId)+"-input"}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new b(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(_),i.Pb(i.l),i.Pb(i.h),i.Pb(c.h),i.Pb(l.d),i.Pb(String),i.Pb(void 0),i.Pb(String))},t.\u0275dir=i.Kb({type:t,viewQuery:function(t,e){if(1&t&&i.Pc(h,!0),2&t){let t;i.vc(t=i.ec())&&(e._inputElement=t.first)}},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[i.Ab]}),t})(),S=(()=>{class t extends C{constructor(t,e,n,i,r,s,o,a){super(t,e,n,i,r,s,o,a)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(g,8),i.Pb(i.l),i.Pb(i.h),i.Pb(c.h),i.Pb(l.d),i.Pb(a.a,8),i.Pb(f,8),i.ac("tabindex"))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&i.dc("focus",function(){return e._inputElement.nativeElement.focus()}),2&t&&(i.Eb("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),i.Hb("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[i.Ab],ngContentSelectors:d,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(i.nc(),i.Vb(0,"label",0,1),i.Vb(2,"span",2),i.Qb(3,"span",3),i.Qb(4,"span",4),i.Vb(5,"input",5,6),i.dc("change",function(t){return e._onInputChange(t)})("click",function(t){return e._onInputClick(t)}),i.Ub(),i.Vb(7,"span",7),i.Qb(8,"span",8),i.Ub(),i.Ub(),i.Vb(9,"span",9),i.Vb(10,"span",10),i.Kc(11,"\xa0"),i.Ub(),i.mc(12),i.Ub(),i.Ub()),2&t){const t=i.wc(1);i.Eb("for",e.inputId),i.Db(5),i.oc("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),i.Eb("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),i.Db(2),i.oc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.rc(18,u)),i.Db(2),i.Hb("mat-radio-label-before","before"==e.labelPosition)}},directives:[r.r],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),E=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[r.s,r.i],r.i]}),t})()},zUnb:function(t,e,n){"use strict";n.r(e),n("yLV6");var i=n("8Y7J"),r=n("AytR"),s=n("cUpR"),o=n("omvX"),a=n("IheW"),c=n("tqRt"),l=n("7bNT"),h=n("yQ3t"),u=n("XNiG"),d=n("VRyK"),f=n("xgIS"),p=n("Cfvw"),m=n("HDdC"),b=n("D0XW"),g=n("Y7HM");function _(t=0,e=b.a){return(!Object(g.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=b.a),new m.a(n=>(n.add(e.schedule(y,t,{subscriber:n,counter:0,period:t})),n))}function y(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var v=n("PqYM"),w=n("LRne"),x=n("7o/Q"),C=n("z+Ro");class S{constructor(t,e,n,i){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=i}call(t,e){return e.subscribe(new k(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class E{constructor(){this.buffer=[]}}class k extends x.a{constructor(t,e,n,i,r){super(t),this.bufferTimeSpan=e,this.bufferCreationInterval=n,this.maxBufferSize=i,this.scheduler=r,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==n||n<0,this.timespanOnly)this.add(s.closeAction=r.schedule(O,e,{subscriber:this,context:s,bufferTimeSpan:e}));else{const t={bufferTimeSpan:e,bufferCreationInterval:n,subscriber:this,scheduler:r};this.add(s.closeAction=r.schedule(D,e,{subscriber:this,context:s})),this.add(r.schedule(A,n,t))}}_next(t){const e=this.contexts,n=e.length;let i;for(let r=0;r0;){const n=t.shift();e.next(n.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(t){this.closeContext(t);const e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();const e=this.bufferTimeSpan;this.add(t.closeAction=this.scheduler.schedule(O,e,{subscriber:this,context:t,bufferTimeSpan:e}))}}openContext(){const t=new E;return this.contexts.push(t),t}closeContext(t){this.destination.next(t.buffer);const e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)}}function O(t){const e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function A(t){const{bufferCreationInterval:e,bufferTimeSpan:n,subscriber:i,scheduler:r}=t,s=i.openContext();i.closed||(i.add(s.closeAction=r.schedule(D,n,{subscriber:i,context:s})),this.schedule(t,e))}function D(t){const{subscriber:e,context:n}=t;e.closeContext(n)}var I=n("pLZG"),T=n("vkgz"),L=n("eIep"),P=n("1G5W"),R=n("nYR2"),M=n("/uUt"),j=n("lJxs"),F=n("IzEk"),N=n("Kqap");class V{}let U=(()=>{class t{constructor(t,e){this._ngZone=e,this.timerStart$=new u.a,this.idleDetected$=new u.a,this.timeout$=new u.a,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,t&&this.setConfig(t)}startWatching(){this.activityEvents$||(this.activityEvents$=Object(d.a)(Object(f.a)(window,"mousemove"),Object(f.a)(window,"resize"),Object(f.a)(document,"keydown"))),this.idle$=Object(p.a)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function(t){let e=arguments.length,n=b.a;Object(C.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);let i=null;e>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return e>=3&&(r=arguments[2]),function(e){return e.lift(new S(t,i,r,n))}}(this.idleSensitivityMillisec),Object(I.a)(t=>!t.length&&!this.isIdleDetected&&!this.isInactivityTimer),Object(T.a)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),Object(L.a)(()=>this._ngZone.runOutsideAngular(()=>_(1e3).pipe(Object(P.a)(Object(d.a)(this.activityEvents$,Object(v.a)(this.idleMillisec).pipe(Object(T.a)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),Object(R.a)(()=>{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(Object(M.a)(),Object(L.a)(t=>t?this.timer$:Object(w.a)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe(Object(I.a)(t=>!!t),Object(T.a)(()=>this.isTimeout=!0),Object(j.a)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec,idleSensitivity:this.idleSensitivityMillisec,timeout:this.timeout,ping:this.pingMillisec}}setConfigValues(t){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(t):console.error("Call stopWatching() before set config values")}setConfig(t){t.idle&&(this.idleMillisec=1e3*t.idle),t.ping&&(this.pingMillisec=1e3*t.ping),t.idleSensitivity&&(this.idleSensitivityMillisec=1e3*t.idleSensitivity),t.timeout&&(this.timeout=t.timeout)}setCustomActivityEvents(t){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=t:console.error("Call stopWatching() before set custom activity events")}setupTimer(t){this._ngZone.runOutsideAngular(()=>{this.timer$=_(1e3).pipe(Object(F.a)(t),Object(j.a)(()=>1),Object(N.a)((t,e)=>t+e),Object(T.a)(e=>{e===t&&this.timeout$.next(!0)}))})}setupPing(t){this.ping$=_(t).pipe(Object(I.a)(()=>!this.isTimeout))}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(V,8),i.Zb(i.B))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(i.V)({factory:function(){return new t(Object(i.Y)(V,8),Object(i.Y)(i.B))},token:t,providedIn:"root"}),t})(),B=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:V,useValue:e}]}}}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[]]}),t})();var z=n("iInd"),H=n("wHSu"),W=n("VDRc"),K=n("Nv++"),q=n("PDjf"),Y=n("M9ds"),Z=n("SVse");function X(t,e){if(1&t){const t=i.Wb();i.Vb(0,"div",6),i.dc("click",function(){i.zc(t);const e=i.hc();return e.activeLink=e.links[2].link}),i.Kc(1),i.Ub()}if(2&t){const t=i.hc();i.pc("routerLink",t.links[2].link),i.oc("active",t.activeLink===t.links[2].link),i.Db(1),i.Lc(t.links[2].name)}}function G(t,e){if(1&t){const t=i.Wb();i.Vb(0,"div",6),i.dc("click",function(){i.zc(t);const e=i.hc();return e.activeLink=e.links[3].link}),i.Kc(1),i.Ub()}if(2&t){const t=i.hc();i.pc("routerLink",t.links[3].link),i.oc("active",t.activeLink===t.links[3].link),i.Db(1),i.Lc(t.links[3].name)}}const $=function(){return{initial:!1}};let Q=(()=>{class t{constructor(t,e){this.store=t,this.router=e,this.faTools=H.J,this.showLnConfig=!1,this.showBitcoind=!1,this.lnImplementationStr="",this.links=[{link:"layout",name:"Layout"},{link:"auth",name:"Authentication"},{link:"lnconfig",name:this.lnImplementationStr},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new u.a,new u.a,new u.a]}ngOnInit(){let t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe(Object(P.a)(this.unSubs[0]),Object(I.a)(t=>t instanceof z.f)).subscribe(t=>{let e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link}),this.store.select("root").pipe(Object(P.a)(this.unSubs[1])).subscribe(t=>{switch(this.showLnConfig=!1,this.showBitcoind=!1,this.appConfig=t.appConfig,this.selNode=t.selNode,this.selNode.lnImplementation.toUpperCase()){case"CLT":this.lnImplementationStr="C-Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[2].name=this.lnImplementationStr,this.showLnConfig=!0),this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(c.h),i.Pb(z.g))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-settings"]],decls:16,vars:11,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","",1,"mat-tab-label",3,"active","routerLink","state","click"],["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"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Qb(1,"fa-icon",1),i.Vb(2,"span",2),i.Kc(3,"Settings"),i.Ub(),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"mat-card"),i.Vb(6,"mat-card-content",4),i.Vb(7,"nav",5),i.Vb(8,"div",6),i.dc("click",function(){return e.activeLink=e.links[0].link}),i.Kc(9),i.Ub(),i.Vb(10,"div",7),i.dc("click",function(){return e.activeLink=e.links[1].link}),i.Kc(11),i.Ub(),i.Ic(12,X,2,3,"div",8),i.Ic(13,G,2,3,"div",8),i.Ub(),i.Vb(14,"div",9),i.Qb(15,"router-outlet"),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Db(1),i.oc("icon",e.faTools),i.Db(7),i.pc("routerLink",e.links[0].link),i.oc("active",e.activeLink===e.links[0].link),i.Db(1),i.Lc(e.links[0].name),i.Db(1),i.pc("routerLink",e.links[1].link),i.oc("active",e.activeLink===e.links[1].link)("state",i.rc(10,$)),i.Db(1),i.Lc(e.links[1].name),i.Db(1),i.oc("ngIf",e.showLnConfig),i.Db(1),i.oc("ngIf",e.showBitcoind))},directives:[W.c,W.b,K.a,q.a,q.b,Y.e,Y.d,z.h,Z.o,W.a,z.l],styles:[""]}),t})();var J=n("7nzP"),tt=n("lF6s"),et=n("LvnZ"),nt=n("MCVq"),it=n("/uX3"),rt=n("cpEJ"),st=n("7o2P"),ot=n("aLe/"),at=n("s7LF"),ct=n("jMqV"),lt=n("Q2Ze"),ht=n("ZTz/"),ut=n("O4ig"),dt=n("zQhy"),ft=n("BSbQ"),pt=n("Dxy4"),mt=n("UhP/"),bt=n("ura0");function gt(t,e){if(1&t&&(i.Vb(0,"mat-option",38),i.Kc(1),i.Ub()),2&t){const t=e.$implicit;i.oc("value",t.id),i.Db(1),i.Mc(" ",t.id," ")}}function _t(t,e){1&t&&(i.Vb(0,"mat-error"),i.Kc(1,"Currency unit is required."),i.Ub())}function yt(t,e){if(1&t&&(i.Vb(0,"mat-option",38),i.Kc(1),i.Ub()),2&t){const t=e.$implicit;i.oc("value",t.index),i.Db(1),i.Nc(" ",t.lnNode," (",t.lnImplementation,") ")}}function vt(t,e){if(1&t){const t=i.Wb();i.Vb(0,"div",39),i.Vb(1,"h4",40),i.Kc(2,"Default Node"),i.Ub(),i.Vb(3,"mat-form-field"),i.Vb(4,"mat-select",41),i.dc("ngModelChange",function(e){return i.zc(t),i.hc().appConfig.defaultNodeIndex=e}),i.Ic(5,yt,2,3,"mat-option",14),i.Ub(),i.Ub(),i.Ub()}if(2&t){const t=i.hc();i.Db(4),i.oc("ngModel",t.appConfig.defaultNodeIndex),i.Db(1),i.oc("ngForOf",t.appConfig.nodes)}}function wt(t,e){1&t&&i.Qb(0,"mat-divider",42),2&t&&i.oc("inset",!0)}function xt(t,e){if(1&t&&(i.Vb(0,"mat-radio-button",43),i.Kc(1),i.ic(2,"titlecase"),i.Ub()),2&t){const t=e.$implicit,n=i.hc();i.oc("value",t)("checked",n.selNode.settings.userPersona===t),i.Db(1),i.Mc(" ",i.jc(2,3,t)," ")}}const Ct=function(t){return{"mr-4":t}};function St(t,e){if(1&t&&(i.Vb(0,"mat-radio-button",44),i.Kc(1),i.Ub()),2&t){const t=e.$implicit,n=i.hc();i.oc("value",t)("ngClass",i.sc(3,Ct,n.screenSize===n.screenSizeEnum.XS||n.screenSize===n.screenSizeEnum.SM)),i.Db(1),i.Mc("",t.name," ")}}const Et=function(t){return{skin:!0,"selected-color":t}};function kt(t,e){if(1&t){const t=i.Wb();i.Vb(0,"span",3),i.Vb(1,"div",45),i.dc("click",function(){i.zc(t);const n=e.$implicit;return i.hc().changeThemeColor(n.id)}),i.ic(2,"lowercase"),i.Ub(),i.Kc(3),i.Ub()}if(2&t){const t=e.$implicit,n=i.hc();i.Db(1),i.Fb(i.jc(2,4,t.id)),i.oc("ngClass",i.sc(6,Et,n.selectedThemeColor===t.id)),i.Db(2),i.Mc(" ",t.name," ")}}let Ot=(()=>{class t{constructor(t,e,n){this.logger=t,this.commonService=e,this.store=n,this.faExclamationTriangle=H.o,this.faTools=H.J,this.faPaintBrush=H.z,this.faInfoCircle=H.t,this.information={},this.userPersonas=[J.w.OPERATOR,J.w.MERCHANT],this.currencyUnits=J.k,this.themeModes=J.m.modes,this.themeColors=J.m.themes,this.selectedThemeMode=J.m.modes[0],this.selectedThemeColor=J.m.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.previousDefaultNode=0,this.screenSize="",this.screenSizeEnum=J.q,this.unSubs=[new u.a,new u.a],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select("root").pipe(Object(P.a)(this.unSubs[0])).subscribe(t=>{this.appConfig=t.appConfig,this.selNode=t.selNode,this.selectedThemeMode=this.themeModes.find(t=>this.selNode.settings.themeMode===t.id),this.selectedThemeColor=this.selNode.settings.themeColor,this.information=t.nodeData,this.smallerCurrencyUnit=this.information&&this.information.smaller_currency_unit?this.information.smaller_currency_unit:"Sats",this.currencyUnit=this.information&&this.information.currency_unit?this.information.currency_unit:"BTC",this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=null),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(t)})}onCurrencyChange(t){this.selNode.settings.currencyUnits=[...J.e,t.value],this.store.dispatch(new nt.Xb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:t.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl})),this.store.dispatch(new et.Bb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:t.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl})),this.store.dispatch(new tt.qb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:t.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl}))}toggleSettings(t,e){this.selNode.settings[t]=!this.selNode.settings[t]}changeThemeColor(t){this.selectedThemeColor=t,this.selNode.settings.themeColor=t}chooseThemeMode(){this.selNode.settings.themeMode=this.selectedThemeMode.id}onUpdateSettings(){if(this.selNode.settings.fiatConversion&&!this.selNode.settings.currencyUnit)return!0;let t=this.previousDefaultNode!==this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:null;this.logger.info(this.selNode.settings),this.store.dispatch(new it.F("Updating Settings...")),this.store.dispatch(new it.S({settings:this.selNode.settings,defaultNodeIndex:t})),this.store.dispatch(new nt.Xb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl})),this.store.dispatch(new et.Bb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl})),this.store.dispatch(new tt.qb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl}))}onResetSettings(){this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(t=>t.id===this.previousSettings.themeMode),this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch(new it.U({lnNode:this.selNode,isInitialSetup:!0}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(rt.b),i.Pb(st.a),i.Pb(c.h))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-app-settings"]],decls:61,vars:18,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","fiatConversion",3,"ngModel","ngModelChange","change"],["autoFocus","","placeholder","Fiat Currency","tabindex","3","name","currencyUnit",3,"ngModel","disabled","required","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","space-between stretch",1,"settings-container","page-sub-title-container","mt-1"],[1,"mt-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",4,"ngIf"],["class","mb-1",3,"inset",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","20","fxFlex.gt-md","15","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex.gt-xs","50","fxFlex.gt-md","40","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","row",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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],[1,"my-0"],["tabindex","4","name","defaultNode",3,"ngModel","ngModelChange"],[1,"mb-1",3,"inset"],[1,"mr-4",3,"value","checked"],["tabindex","5",3,"value","ngClass"],["tabindex","9",3,"ngClass","click"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Vb(1,"form",1,2),i.Vb(3,"div",3),i.Qb(4,"fa-icon",4),i.Vb(5,"span",5),i.Kc(6,"Balance Display"),i.Ub(),i.Ub(),i.Vb(7,"div",6),i.Vb(8,"div",7),i.Qb(9,"fa-icon",8),i.Vb(10,"span"),i.Kc(11,"Fiat conversion calls "),i.Vb(12,"strong"),i.Vb(13,"a",9),i.Kc(14,"Blockchain.com"),i.Ub(),i.Ub(),i.Kc(15," API to get conversion rates."),i.Ub(),i.Ub(),i.Vb(16,"div",10),i.Vb(17,"mat-slide-toggle",11),i.dc("ngModelChange",function(t){return e.selNode.settings.fiatConversion=t})("change",function(t){return e.selNode.settings.currencyUnit=t.checked?e.selNode.settings.currencyUnit:null}),i.Kc(18,"Include Fiat Conversion"),i.Ub(),i.Vb(19,"mat-form-field"),i.Vb(20,"mat-select",12,13),i.dc("ngModelChange",function(t){return e.selNode.settings.currencyUnit=t})("selectionChange",function(t){return e.onCurrencyChange(t)}),i.Ic(22,gt,2,2,"mat-option",14),i.Ub(),i.Ic(23,_t,2,0,"mat-error",15),i.Ub(),i.Ub(),i.Ub(),i.Vb(24,"div",16),i.Vb(25,"div",17),i.Vb(26,"div",18),i.Qb(27,"fa-icon",4),i.Vb(28,"span",5),i.Kc(29,"Customization"),i.Ub(),i.Ub(),i.Vb(30,"div",6),i.Ic(31,vt,6,2,"div",19),i.Ic(32,wt,1,1,"mat-divider",20),i.Vb(33,"div",21),i.Vb(34,"div",22),i.Qb(35,"fa-icon",8),i.Vb(36,"span"),i.Kc(37,"Application layout will be tailored based on the role selected to better serve its needs."),i.Ub(),i.Ub(),i.Vb(38,"div",23),i.Vb(39,"h4"),i.Kc(40,"Application Layout"),i.Ub(),i.Vb(41,"mat-radio-group",24),i.dc("ngModelChange",function(t){return e.selNode.settings.userPersona=t}),i.Ic(42,xt,3,5,"mat-radio-button",25),i.Ub(),i.Ub(),i.Ub(),i.Qb(43,"mat-divider",26),i.Vb(44,"div",27),i.Vb(45,"div",28),i.Vb(46,"h4"),i.Kc(47,"Mode"),i.Ub(),i.Vb(48,"mat-radio-group",29),i.dc("ngModelChange",function(t){return e.selectedThemeMode=t})("change",function(){return e.chooseThemeMode()}),i.Ic(49,St,2,5,"mat-radio-button",30),i.Ub(),i.Ub(),i.Qb(50,"div",31),i.Vb(51,"div",32),i.Vb(52,"h4"),i.Kc(53,"Themes"),i.Ub(),i.Vb(54,"div",33),i.Ic(55,kt,4,8,"span",34),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Vb(56,"div",35),i.Vb(57,"button",36),i.dc("click",function(){return e.onResetSettings()}),i.Kc(58,"Reset"),i.Ub(),i.Vb(59,"button",37),i.dc("click",function(){return e.onUpdateSettings()}),i.Kc(60,"Update"),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Db(4),i.oc("icon",e.faTools),i.Db(5),i.oc("icon",e.faExclamationTriangle),i.Db(8),i.oc("ngModel",e.selNode.settings.fiatConversion),i.Db(3),i.oc("ngModel",e.selNode.settings.currencyUnit)("disabled",!e.selNode.settings.fiatConversion)("required",e.selNode.settings.fiatConversion),i.Db(2),i.oc("ngForOf",e.currencyUnits),i.Db(1),i.oc("ngIf",e.selNode.settings.fiatConversion&&!e.selNode.settings.currencyUnit),i.Db(4),i.oc("icon",e.faPaintBrush),i.Db(4),i.oc("ngIf",e.appConfig.nodes.length&&e.appConfig.nodes.length>1),i.Db(1),i.oc("ngIf",e.appConfig.nodes.length&&e.appConfig.nodes.length>1),i.Db(3),i.oc("icon",e.faInfoCircle),i.Db(6),i.oc("ngModel",e.selNode.settings.userPersona),i.Db(1),i.oc("ngForOf",e.userPersonas),i.Db(1),i.oc("inset",!0),i.Db(5),i.oc("ngModel",e.selectedThemeMode),i.Db(1),i.oc("ngForOf",e.themeModes),i.Db(6),i.oc("ngForOf",e.themeColors))},directives:[W.c,W.a,ot.b,at.u,at.n,at.o,W.b,K.a,ct.a,at.m,at.p,lt.c,ht.a,ut.a,at.s,Z.n,Z.o,dt.b,ft.a,pt.a,mt.m,lt.b,dt.a,Z.m,bt.a],pipes:[Z.x,Z.l],styles:[""]}),t})();var At=n("Cyaj"),Dt=n("iELJ"),It=n("cO3p"),Tt=n("X9mX"),Lt=n("zHaW"),Pt=n("hzfI"),Rt=n("e6WT"),Mt=n("bwdU"),jt=n("dEYt");const Ft=["stepper"];function Nt(t,e){if(1&t&&i.Kc(0),2&t){const t=i.hc();i.Lc(t.passwordFormLabel)}}function Vt(t,e){1&t&&(i.Vb(0,"mat-error"),i.Kc(1,"Password is required."),i.Ub())}function Ut(t,e){if(1&t&&i.Kc(0),2&t){const t=i.hc(2);i.Lc(t.secretFormLabel)}}function Bt(t,e){1&t&&(i.Vb(0,"mat-error"),i.Kc(1,"Secret Code is required."),i.Ub())}function zt(t,e){if(1&t){const t=i.Wb();i.Vb(0,"mat-step",10),i.Vb(1,"form",22),i.Ic(2,Ut,1,1,"ng-template",23),i.Vb(3,"div",24),i.Qb(4,"qrcode",25),i.Ub(),i.Vb(5,"div",26),i.Qb(6,"fa-icon",27),i.Vb(7,"span"),i.Kc(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),i.Ub(),i.Ub(),i.Vb(9,"div",28),i.Vb(10,"mat-form-field",13),i.Qb(11,"input",29),i.Vb(12,"fa-icon",30),i.dc("copied",function(e){return i.zc(t),i.hc().onCopySecret(e)}),i.Ub(),i.Ic(13,Bt,2,0,"mat-error",15),i.Ub(),i.Ub(),i.Vb(14,"div",31),i.Vb(15,"button",32),i.Kc(16,"Next"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}if(2&t){const t=i.hc();i.oc("stepControl",t.secretFormGroup)("editable",t.flgEditable),i.Db(1),i.oc("formGroup",t.secretFormGroup),i.Db(3),i.oc("qrdata",t.otpauth)("margin",1)("width",180)("errorCorrectionLevel","L")("allowEmptyString",!0),i.Db(2),i.oc("icon",t.faInfoCircle),i.Db(6),i.oc("icon",t.faCopy)("payload",null==t.secretFormGroup||null==t.secretFormGroup.controls||null==t.secretFormGroup.controls.secret?null:t.secretFormGroup.controls.secret.value),i.Db(1),i.oc("ngIf",null==t.secretFormGroup||null==t.secretFormGroup.controls||null==t.secretFormGroup.controls.secret||null==t.secretFormGroup.controls.secret.errors?null:t.secretFormGroup.controls.secret.errors.required)}}function Ht(t,e){if(1&t&&i.Kc(0),2&t){const t=i.hc(2);i.Lc(t.tokenFormLabel)}}function Wt(t,e){1&t&&(i.Vb(0,"mat-error"),i.Kc(1,"Token is required."),i.Ub())}function Kt(t,e){1&t&&(i.Vb(0,"mat-error"),i.Kc(1,"Token is invalid."),i.Ub())}function qt(t,e){if(1&t){const t=i.Wb();i.Vb(0,"div",7),i.Vb(1,"div",28),i.Vb(2,"mat-form-field",13),i.Qb(3,"input",36),i.Ic(4,Wt,2,0,"mat-error",15),i.Ic(5,Kt,2,0,"mat-error",15),i.Ub(),i.Ub(),i.Vb(6,"div",31),i.Vb(7,"button",37),i.dc("click",function(){return i.zc(t),i.hc(2).onVerifyToken()}),i.Kc(8),i.Ub(),i.Ub(),i.Ub()}if(2&t){const t=i.hc(2);i.Db(4),i.oc("ngIf",null==t.tokenFormGroup||null==t.tokenFormGroup.controls||null==t.tokenFormGroup.controls.token||null==t.tokenFormGroup.controls.token.errors?null:t.tokenFormGroup.controls.token.errors.required),i.Db(1),i.oc("ngIf",null==t.tokenFormGroup||null==t.tokenFormGroup.controls||null==t.tokenFormGroup.controls.token||null==t.tokenFormGroup.controls.token.errors?null:t.tokenFormGroup.controls.token.errors.notValid),i.Db(3),i.Lc(null!=t.tokenFormGroup&&null!=t.tokenFormGroup.controls&&null!=t.tokenFormGroup.controls.token&&null!=t.tokenFormGroup.controls.token.errors&&t.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function Yt(t,e){1&t&&(i.Vb(0,"div"),i.Vb(1,"strong"),i.Kc(2,"Success! You are all set."),i.Ub(),i.Ub())}function Zt(t,e){if(1&t&&(i.Vb(0,"mat-step",33),i.Vb(1,"form",34),i.Ic(2,Ht,1,1,"ng-template",12),i.Ic(3,qt,9,3,"div",35),i.Ic(4,Yt,3,0,"div",15),i.Ub(),i.Ub()),2&t){const t=i.hc();i.oc("stepControl",t.tokenFormGroup),i.Db(1),i.oc("formGroup",t.tokenFormGroup),i.Db(2),i.oc("ngIf",!t.flgValidated||!t.isTokenValid),i.Db(1),i.oc("ngIf",t.flgValidated&&t.isTokenValid)}}function Xt(t,e){if(1&t&&i.Kc(0),2&t){const t=i.hc(2);i.Lc(t.disableFormLabel)}}function Gt(t,e){if(1&t){const t=i.Wb();i.Vb(0,"div",7),i.Vb(1,"div",38),i.Qb(2,"fa-icon",27),i.Vb(3,"span"),i.Kc(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),i.Ub(),i.Ub(),i.Vb(5,"div",31),i.Vb(6,"button",37),i.dc("click",function(){return i.zc(t),i.hc(2).onVerifyToken()}),i.Kc(7,"Disable"),i.Ub(),i.Ub(),i.Ub()}if(2&t){const t=i.hc(2);i.Db(2),i.oc("icon",t.faExclamationTriangle)}}function $t(t,e){1&t&&(i.Vb(0,"div"),i.Vb(1,"strong"),i.Kc(2,"Two factor authentication removed from RTL."),i.Ub(),i.Ub())}function Qt(t,e){if(1&t&&(i.Vb(0,"mat-step",33),i.Vb(1,"form",34),i.Ic(2,Xt,1,1,"ng-template",12),i.Ic(3,Gt,8,1,"div",35),i.Ic(4,$t,3,0,"div",15),i.Ub(),i.Ub()),2&t){const t=i.hc();i.oc("stepControl",t.disableFormGroup),i.Db(1),i.oc("formGroup",t.disableFormGroup),i.Db(2),i.oc("ngIf",!t.flgValidated||!t.isTokenValid),i.Db(1),i.oc("ngIf",t.flgValidated&&t.isTokenValid)}}let Jt=(()=>{class t{constructor(t,e,n,i,r,s){this.dialogRef=t,this.data=e,this.store=n,this.formBuilder=i,this.rtlEffects=r,this.snackBar=s,this.faExclamationTriangle=H.o,this.faCopy=H.j,this.faInfoCircle=H.t,this.flgValidated=!1,this.isTokenValid=!0,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:["",[at.t.required]],password:["",[at.t.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},at.t.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",at.t.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new u.a,new u.a]}ngOnInit(){this.appConfig=this.data.appConfig,this.showDisableStepper=!!this.appConfig.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig.enable2FA?"":this.generateSecret(),disabled:!0},at.t.required]})}generateSecret(){let t=It.authenticator.generateSecret();return this.otpauth=It.authenticator.keyuri("","Ride The Lightning (RTL)",t),t}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch(new it.t(At(this.passwordFormGroup.controls.password.value))),this.rtlEffects.isAuthorizedRes.pipe(Object(F.a)(1)).subscribe(t=>{"ERROR"!==t?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onCopySecret(t){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig.enable2FA)this.store.dispatch(new it.F("Updating Settings...")),this.store.dispatch(new it.X({secret2fa:""})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=It.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.store.dispatch(new it.F("Updating Settings...")),this.store.dispatch(new it.X({secret2fa:this.secretFormGroup.controls.secret.value})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig.enable2FA=!this.appConfig.enable2FA}stepSelectionChanged(t){switch(t.selectedIndex){case 0:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully";break;default:this.passwordFormLabel="Authenticate with your RTL password"}t.selectedIndex{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(Dt.f),i.Pb(Dt.a),i.Pb(c.h),i.Pb(at.d),i.Pb(Tt.a),i.Pb(Lt.b))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-two-factor-auth"]],viewQuery:function(t,e){if(1&t&&i.Pc(Ft,!0),2&t){let t;i.vc(t=i.ec())&&(e.stepper=t.first)}},decls:28,vars:11,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start",1,"padding-gap-x-large"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"mt-5px"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",3,"click"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","100",1,"w-100","alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["autoFocus","","matInput","","placeholder","Secret Code","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"icon","payload","copied"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","6","type","button","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","placeholder","Token","type","text","tabindex","7","formControlName","token","required",""],["mat-stroked-button","","color","primary","tabindex","8","type","button",3,"click"],["fxFlex","100",1,"w-100","alert","alert-warn"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"mat-card-header",2),i.Vb(3,"div",3),i.Vb(4,"span",4),i.Kc(5,"Setup Two Factor Authentication"),i.Ub(),i.Ub(),i.Vb(6,"button",5),i.Kc(7,"X"),i.Ub(),i.Ub(),i.Vb(8,"mat-card-content",6),i.Vb(9,"div",7),i.Vb(10,"mat-vertical-stepper",8,9),i.dc("selectionChange",function(t){return e.stepSelectionChanged(t)}),i.Vb(12,"mat-step",10),i.Vb(13,"form",11),i.Ic(14,Nt,1,1,"ng-template",12),i.Vb(15,"div",0),i.Vb(16,"mat-form-field",13),i.Qb(17,"input",14),i.Ic(18,Vt,2,0,"mat-error",15),i.Ub(),i.Ub(),i.Vb(19,"div",16),i.Vb(20,"button",17),i.dc("click",function(){return e.onAuthenticate()}),i.Kc(21,"Confirm"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ic(22,zt,17,12,"mat-step",18),i.Ic(23,Zt,5,4,"mat-step",19),i.Ic(24,Qt,5,4,"mat-step",19),i.Ub(),i.Vb(25,"div",20),i.Vb(26,"button",21),i.Kc(27),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Db(6),i.oc("mat-dialog-close",!1),i.Db(4),i.oc("linear",!0),i.Db(2),i.oc("stepControl",e.passwordFormGroup)("editable",e.flgEditable),i.Db(1),i.oc("formGroup",e.passwordFormGroup),i.Db(5),i.oc("ngIf",null==e.passwordFormGroup||null==e.passwordFormGroup.controls||null==e.passwordFormGroup.controls.password||null==e.passwordFormGroup.controls.password.errors?null:e.passwordFormGroup.controls.password.errors.required),i.Db(4),i.oc("ngIf",!e.showDisableStepper),i.Db(1),i.oc("ngIf",!e.showDisableStepper),i.Db(1),i.oc("ngIf",e.showDisableStepper),i.Db(2),i.oc("mat-dialog-close",!1),i.Db(1),i.Lc(e.flgValidated&&e.isTokenValid?"Close":"Cancel"))},directives:[W.c,W.a,q.c,W.b,pt.a,Dt.d,q.b,Pt.h,Pt.a,at.u,at.n,at.h,Pt.b,lt.c,Rt.b,at.c,ut.a,at.m,at.g,at.s,Z.o,lt.b,Mt.a,K.a,lt.g,jt.a,Pt.f],styles:[""]}),t})();const te=["authForm"];function ee(t,e){1&t&&(i.Vb(0,"mat-error"),i.Kc(1,"Current password is required."),i.Ub())}function ne(t,e){if(1&t&&(i.Vb(0,"mat-error"),i.Kc(1),i.Ub()),2&t){const t=i.hc();i.Db(1),i.Lc(t.errorMsg)}}function ie(t,e){if(1&t&&(i.Vb(0,"mat-error"),i.Kc(1),i.Ub()),2&t){const t=i.hc();i.Db(1),i.Lc(t.errorConfirmMsg)}}let re=(()=>{class t{constructor(t,e,n,i){this.store=t,this.logger=e,this.actions$=n,this.router=i,this.faInfoCircle=H.t,this.faUserLock=H.N,this.faUserClock=H.M,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new u.a,new u.a,new u.a]}ngOnInit(){this.initializeNodeData=!!history.state.initial,this.store.select("root").pipe(Object(P.a)(this.unSubs[1])).subscribe(t=>{this.appConfig=t.appConfig,this.selNode=t.selNode,this.logger.info(t)}),this.actions$.pipe(Object(P.a)(this.unSubs[2]),Object(I.a)(t=>t.type===it.H)).subscribe(t=>{if("password"===this.currPassword.toLowerCase())switch(this.selNode.lnImplementation.toUpperCase()){case"CLT":this.router.navigate(["/cl/home"]);break;case"ECL":this.router.navigate(["/ecl/home"]);break;default:this.router.navigate(["/lnd/home"])}this.form.resetForm()})}onChangePassword(){if(!this.currPassword||!this.newPassword||!this.confirmPassword||this.currPassword===this.newPassword||this.newPassword!==this.confirmPassword)return!0;this.store.dispatch(new it.J({currPassword:At(this.currPassword),newPassword:At(this.newPassword)}))}matchOldAndNewPasswords(){let t=!1;return this.form.controls.newpassword&&(this.newPassword?""!==this.currPassword&&""!==this.newPassword&&this.currPassword===this.newPassword?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="Old and New password cannot be same.",t=!0):(this.form.controls.newpassword.setErrors(null),this.errorMsg="",t=!1):(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="New password is required.",t=!0)),t}matchNewPasswords(){let t=!1;return 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.",t=!0):(this.form.controls.confirmpassword.setErrors(null),this.errorConfirmMsg="",t=!1):(this.form.controls.confirmpassword.setErrors({invalid:!0}),this.errorConfirmMsg="Confirm password is required.",t=!0)),t}on2FAuth(){this.store.dispatch(new it.C({data:{appConfig:this.appConfig,component:Jt}}))}ngOnDestroy(){this.initializeNodeData&&this.store.dispatch(new it.U({lnNode:this.selNode,isInitialSetup:!0})),this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(c.h),i.Pb(rt.b),i.Pb(l.a),i.Pb(z.g))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-auth-settings"]],viewQuery:function(t,e){if(1&t&&i.Ec(te,!0),2&t){let t;i.vc(t=i.ec())&&(e.form=t.first)}},decls:33,vars:11,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"overflow-x-hidden"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1",3,"ngSubmit"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["autoFocus","","matInput","","placeholder","Current Password","type","password","id","currpassword","name","currpassword","tabindex","4","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","New Password","type","password","id","newpassword","name","newpassword","tabindex","5","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm New Password","type","password","id","confirmpassword","name","confirmpassword","tabindex","6","required","",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-flat-button","","color","primary","tabindex","8","type","submit"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end stretch",1,"my-2"],[3,"inset"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","3",3,"click"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Vb(1,"form",1,2),i.dc("ngSubmit",function(){return e.onChangePassword()}),i.Vb(3,"div",3),i.Qb(4,"fa-icon",4),i.Vb(5,"span",5),i.Kc(6,"Password"),i.Ub(),i.Ub(),i.Vb(7,"mat-form-field"),i.Vb(8,"input",6),i.dc("ngModelChange",function(t){return e.currPassword=t}),i.Ub(),i.Ic(9,ee,2,0,"mat-error",7),i.Ub(),i.Vb(10,"mat-form-field"),i.Vb(11,"input",8),i.dc("ngModelChange",function(t){return e.newPassword=t}),i.Ub(),i.Ic(12,ne,2,1,"mat-error",7),i.Ub(),i.Vb(13,"mat-form-field"),i.Vb(14,"input",9),i.dc("ngModelChange",function(t){return e.confirmPassword=t}),i.Ub(),i.Ic(15,ie,2,1,"mat-error",7),i.Ub(),i.Vb(16,"div",10),i.Vb(17,"button",11),i.Kc(18,"Change Password"),i.Ub(),i.Ub(),i.Ub(),i.Vb(19,"div",12),i.Qb(20,"mat-divider",13),i.Ub(),i.Vb(21,"div",14),i.Vb(22,"div",15),i.Qb(23,"fa-icon",4),i.Vb(24,"span",5),i.Kc(25,"Two Factor Authentication"),i.Ub(),i.Ub(),i.Vb(26,"div",16),i.Qb(27,"fa-icon",17),i.Vb(28,"span"),i.Kc(29,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),i.Ub(),i.Ub(),i.Vb(30,"div",18),i.Vb(31,"button",19),i.dc("click",function(){return e.on2FAuth()}),i.Kc(32),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Db(4),i.oc("icon",e.faUserLock),i.Db(4),i.oc("ngModel",e.currPassword),i.Db(1),i.oc("ngIf",!e.currPassword),i.Db(2),i.oc("ngModel",e.newPassword),i.Db(1),i.oc("ngIf",e.matchOldAndNewPasswords()),i.Db(2),i.oc("ngModel",e.confirmPassword),i.Db(1),i.oc("ngIf",e.matchNewPasswords()),i.Db(5),i.oc("inset",!0),i.Db(3),i.oc("icon",e.faUserClock),i.Db(4),i.oc("icon",e.faInfoCircle),i.Db(5),i.Lc(e.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[W.c,W.a,W.b,at.u,at.n,at.o,K.a,lt.c,Rt.b,at.c,ut.a,at.s,at.m,at.p,Z.o,pt.a,ft.a,lt.b],styles:[""]}),t})();var se=n("SqCe");function oe(t,e){1&t&&i.Qb(0,"mat-divider",7)}function ae(t,e){if(1&t&&(i.Vb(0,"div",4),i.Vb(1,"pre",5),i.Kc(2),i.ic(3,"json"),i.Ub(),i.Ic(4,oe,1,0,"mat-divider",6),i.Ub()),2&t){const t=i.hc();i.Db(2),i.Lc(i.jc(3,2,t.configData)),i.Db(2),i.oc("ngIf",""!==t.configData)}}function ce(t,e){if(1&t&&(i.Vb(0,"h2"),i.Kc(1),i.Ub()),2&t){const t=i.hc().$implicit;i.Db(1),i.Lc(t)}}function le(t,e){if(1&t&&(i.Vb(0,"h4",14),i.Kc(1),i.Ub()),2&t){const t=i.hc().$implicit;i.Db(1),i.Lc(t)}}function he(t,e){1&t&&i.Qb(0,"mat-divider",15),2&t&&i.oc("inset",!0)}function ue(t,e){if(1&t&&(i.Vb(0,"mat-list-item"),i.Vb(1,"mat-card-subtitle",7),i.Ic(2,ce,2,1,"h2",10),i.Ub(),i.Vb(3,"mat-card-subtitle",11),i.Ic(4,le,2,1,"h4",12),i.Ub(),i.Ic(5,he,1,1,"mat-divider",13),i.Ub()),2&t){const t=e.$implicit;i.Db(2),i.oc("ngIf",t.indexOf("[")>=0),i.Db(2),i.oc("ngIf",t.indexOf("[")<0),i.Db(1),i.oc("ngIf",t.indexOf("[")<0)}}function de(t,e){if(1&t&&(i.Vb(0,"div",8),i.Vb(1,"mat-list"),i.Ic(2,ue,6,3,"mat-list-item",9),i.Ub(),i.Ub()),2&t){const t=i.hc();i.Db(2),i.oc("ngForOf",t.configData)}}let fe=(()=>{class t{constructor(t,e,n){this.store=t,this.rtlEffects=e,this.router=n,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=H.i,this.unSubs=[new u.a,new u.a]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe(Object(P.a)(this.unSubs[0]),Object(I.a)(t=>t instanceof z.f)).subscribe(t=>{this.selectedNodeType=t.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}),this.store.dispatch(new it.F("Opening Config File...")),this.store.dispatch(new it.o(this.selectedNodeType)),this.rtlEffects.showLnConfig.pipe(Object(P.a)(this.unSubs[1])).subscribe(t=>{const e=t.data;this.fileFormat=t.format,this.configData=""===e||!e||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==e&&e&&"JSON"===this.fileFormat?e:"":e.split("\n")})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(c.h),i.Pb(Tt.a),i.Pb(z.g))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-server-config"]],decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Ic(2,ae,5,4,"div",2),i.Ic(3,de,3,1,"div",3),i.Ub(),i.Ub()),2&t&&(i.Db(2),i.oc("ngIf",""!==e.configData&&"JSON"===e.fileFormat),i.Db(1),i.oc("ngIf",""!==e.configData&&("INI"===e.fileFormat||"HOCON"===e.fileFormat)))},directives:[W.c,W.a,W.b,Z.o,ft.a,se.a,Z.n,se.b,q.e],pipes:[Z.h],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),t})();var pe=n("0dfH");class me{constructor(t){this.help=t}}var be=n("mZtN"),ge=n("o4Yh");function _e(t,e){if(1&t&&(i.Vb(0,"mat-expansion-panel",8),i.Vb(1,"mat-expansion-panel-header"),i.Vb(2,"mat-panel-title"),i.Kc(3),i.Ub(),i.Ub(),i.Vb(4,"mat-panel-description",9),i.Qb(5,"span",10),i.Vb(6,"a",11),i.Kc(7),i.Ub(),i.Ub(),i.Ub()),2&t){const t=i.hc().$implicit,e=i.hc();i.Db(3),i.Lc(t.help.question),i.Db(2),i.oc("innerHTML",t.help.answer,i.Ac),i.Db(1),i.oc("routerLink",e.flgLoggedIn?e.LNPLink+t.help.link:"/login"),i.Db(1),i.Lc(e.flgLoggedIn?t.help.linkCaption:"Login to go to the page")}}function ye(t,e){if(1&t&&(i.Vb(0,"div",6),i.Ic(1,_e,8,4,"mat-expansion-panel",7),i.Ub()),2&t){const t=e.$implicit,n=i.hc();i.Db(1),i.oc("ngIf","ALL"===t.help.lnImplementation||t.help.lnImplementation===n.selNode.lnImplementation)}}let ve=(()=>{class t{constructor(t,e){this.store=t,this.sessionService=e,this.helpTopics=[],this.faQuestion=H.C,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new u.a,new u.a,new u.a,new u.a],this.helpTopics.push(new me({question:"Getting started",answer:'Funding your node is the first step to get started.\nGo to the "On-chain" page of the app:\n1. Generate a new address on the "Recieve" tab.\n2. Send funds to the address.\n3. Wait for the balance to be confirmed on-chain before proceeding further.\n3. Connecting with network peers and opening channels is next.\n',link:"onchain",linkCaption:"On-Chain page",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Connect with peers",answer:'Connect with network peers to open channels with them.\nGo to "Peer/Channels" page under the "Lightning" menu :\n1. Get the peer pubkey and host address in the pubkey@ip:port format.\n2. On the "Peers" enter the peer address and connect.\n3. Once the peer is connected, you can open channel with the peer.\n4. A variety of actions can be performed on the connected peers page for each peer:\n a. View Info - View the peer details.\n b. Open Channel - Open channel with the peer.\n c. Disconnect - Disconnect from the peer.\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Opening Channels",answer:'Open channels with a connected network peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, select the alias of the connected peer from the drop-down\n2. Specify the amount to commit to the channel and click on "Open Channel".\n3. There are a variety of options available while opening a channel. \n a. Private Channel - When this option is selected, a private channel is opened with the peer. \n b. Priority (advanced option) - Specify either Target confirmation Block or Fee in Sat/Byte. \n c. Spend Unconfirmd Output (advanced option) - Allow channels to be opened with unconfirmed UTXOs.\n4. Track the pending open channels under the "Pending" tab . \n5. Wait for the channel to be confirmed. Only a confimed channel can be used for payments or routing. \n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Channel Management",answer:'Channel maintenance and balance score.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. A variety of actions can be perfomed on the open channels under the "Open" tab, with the "Actions" button:\n a. View Info - View the channel details.\n b. View Remote Fee - View the fee policy on the channel of the remote peer.\n c. Update Fee Policy - Modify the fee policy on the channel.\n d. Close Channel - Close the channel.\n2. Balance Score is a "balancedness" metric score for the channel. \n a. It helps measure how balanced the remote and local balances are, on a channel.\n b. A perfectly balanced channel has a score of one, where as a completely lopsided one has a score of zero.\n c. The formula for calculating the score is "1 - abs((local bal - remote bal)/total bal)".\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Lightning Transactions - Payments",answer:'Sending Payments from your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayments tab is for making payments via your node\n 1. Input a non-expired lightning invoice (Bolt11 format) in the "Payment request" field and click on "Send Payment" to send.\n 2. Advanced option # 1 (LND only) - Specify a limit on the routing fee which you are willing to pay, for the payment.\n 3. Advanced option # 2 (LND only) - Specify the outgoing channel which you want the payment to go through.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Lightning Transactions - Invoices",answer:'Receiving Payments on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nInvoices tab is for receiving payments on your node.\n 1. Memo - Description you want to provide on the invoice.\n 2. Expiry - The time period, after which the invoice will be invalid.\n 3. Private Routing Hints - Generate an invoice with routing hints for private channels.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Lightning Transactions - Query Route",answer:'Querying Payment Routes.\nGo to the "Transactions" page under the "Lightning" menu :\nQuery Routes tab is for querying a potential path to a node and a routing fee estimate for a payment amount.\n 1. Destination Pubkey - Pubkey of the node, you want to send the payment to.\n 2. Amount - Amount in Sats, which you want to send to the node.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Channel Backups",answer:'Channel Backups are important to ensure that you have means to recover funds in case of node failures.\nBackup folder location can be customized in the RTL config file with the channelBackupPath field.\nRTL automatically creates all channel backup on server startup, as well as everytime a channel is opened or closed\nYou can verify the all channel backup file by clicking on "Verify All" Button on the backup page.\nYou can also backup each channel individually and verify them.\n** Keep taking backups of your channels regularly and store them in redundant locations **.\n',link:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new me({question:"Channel Restore",answer:'Channel Restore is used to recover funds from the channel backup files in case of node failures.\nFollow the below steps to perform fund restoration.\n\nPrerequisite:\n1. The node has been restored with the LND recovery seed.\n2. RTL generated channel backup file/s is available (all channel backup file is channel-all.bak).\n\nRecovery:\n1. Create a restore folder in your folder backup location, as specified in the RTL config file.\n2. Place the channel backup file in the restore folder.\n3. Go to the "Restore" tab under the "Backup" page of RTL.\n4. RTL will list the options to restore funds from the all channel file or individual channel backup file.\n5. Click on the Restore icon on the grid to restore the funds.\n6. Once the restore function is executed successfully, RTL will rename the backup file and it will not be accessible from the UI.\n7. Restore function will force close the channels and recover the funds from them.\n8. The pending close channels can be viewed under the "Pending" tab on the "Peer/Channels" page.\n9. Once the channel is closed, the corresponding pending on-chain transactions can be viewed on the "On-Chain" page.\n10. Once the transactions are confirmed, the channels funds will be restored to your LND Wallet.\n',link:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new me({question:"Forwarding History",answer:'Transactions routed by the node.\nGo to "Routing" page under the "Lightning" menu :\nTransactions routed by the node are listed on this page along with channels and the fee earned by transaction.\n',link:"routing",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Graph Lookup",answer:'Querying your node graph for network node and channel information.\nGo to "Graph Lookup" page under the "Lightning" menu :\nEach node maintains a network graph for the information on all the nodes and channels on the network.\nYou can lookup information on nodes and channels from your graph:\n 1. Node Lookup - Enter the pubkey to perform the lookup.\n 2. Channel Lookup - Enter the short channel ID to perform the lookup.\n',link:"lookups",linkCaption:"Graph Lookup page",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Settings",answer:'RTL Offers certain customizations on the UI to personalize your experience on the app\nGo to "Settings" page to access the customization options.\nNode Layout Options\n 1. User Persona - Two options are available to change the dashboard based on the persona.\n 2. Currency Unit - You can choose your preferred fiat currency, to view the onchain and channel balances in the choosen fiat currency.\n 3. Default Node - If you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nOther Customizations include day and night mode and a choice of color themes to select from.\n',lnImplementation:"ALL"}))}ngOnInit(){this.store.select("root").pipe(Object(P.a)(this.unSubs[0])).subscribe(t=>{switch(this.selNode=t.selNode,this.selNode.lnImplementation.toUpperCase()){case"CLT":this.LNPLink="/cl/";break;case"ECL":this.LNPLink="/ecl/";break;default:this.LNPLink="/lnd/"}}),this.sessionService.watchSession().pipe(Object(P.a)(this.unSubs[1])).subscribe(t=>{this.flgLoggedIn=!!t.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(c.h),i.Pb(be.a))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-help"]],decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxFlex","100",4,"ngFor","ngForOf"],["fxFlex","100"],["class","flat-expansion-panel help-expansion mb-2px",4,"ngIf"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],[1,"pre-wrap",3,"innerHTML"],[1,"mt-2",3,"routerLink"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Qb(2,"fa-icon",2),i.Vb(3,"span",3),i.Kc(4,"Help"),i.Ub(),i.Ub(),i.Vb(5,"div",4),i.Vb(6,"div",0),i.Ic(7,ye,2,1,"div",5),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Db(2),i.oc("icon",e.faQuestion),i.Db(5),i.oc("ngForOf",e.helpTopics))},directives:[W.c,W.a,W.b,K.a,Z.n,Z.o,ge.c,ge.e,ge.f,ge.d,z.j],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),t})();var we=n("Tj54");function xe(t,e){1&t&&(i.Vb(0,"mat-error"),i.Kc(1,"Token is required."),i.Ub())}function Ce(t,e){if(1&t&&(i.Vb(0,"p",14),i.Vb(1,"mat-icon",15),i.Kc(2,"close"),i.Ub(),i.Kc(3),i.Ub()),2&t){const t=i.hc();i.Db(3),i.Lc(t.tokenErrorMessage)}}let Se=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this.data=e,this.store=n,this.faUserClock=H.M,this.token="",this.tokenErrorMessage="",this.authRes={token:""},this.unSubs=[new u.a,new u.a,new u.a]}ngOnInit(){this.authRes=this.data.authRes,this.tokenErrorMessage="",this.store.select("root").pipe(Object(P.a)(this.unSubs[0])).subscribe(t=>{t.effectErrorsRoot.forEach(t=>{"VerifyToken"===t.action&&(this.tokenErrorMessage=this.tokenErrorMessage+t.message+" ")})})}onClose(){this.dialogRef.close(!1)}onVerifyToken(){if(!this.token)return!0;this.tokenErrorMessage="",this.store.dispatch(new it.cb({token:this.token,authResponse:this.authRes}))}ngOnDestroy(){this.store.dispatch(new it.f("VerifyToken")),this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(Dt.f),i.Pb(Dt.a),i.Pb(c.h))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-login-token"]],decls:18,vars:3,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"padding-gap-large","pl-3"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-2"],["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,"pr-1"],["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"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-flat-button","","color","primary","tabindex","4","type","submit"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"mat-card-header",2),i.Vb(3,"div",3),i.Vb(4,"span",4),i.Kc(5,"Two Factor Token"),i.Ub(),i.Ub(),i.Vb(6,"button",5),i.dc("click",function(){return e.onClose()}),i.Kc(7,"X"),i.Ub(),i.Ub(),i.Vb(8,"mat-card-content",6),i.Vb(9,"form",7,8),i.dc("ngSubmit",function(){return e.onVerifyToken()}),i.Vb(11,"mat-form-field"),i.Vb(12,"input",9),i.dc("ngModelChange",function(t){return e.token=t}),i.Ub(),i.Ic(13,xe,2,0,"mat-error",10),i.Ub(),i.Ic(14,Ce,4,1,"p",11),i.Vb(15,"div",12),i.Vb(16,"button",13),i.Kc(17,"Verify Token"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Db(12),i.oc("ngModel",e.token),i.Db(1),i.oc("ngIf",!e.token),i.Db(1),i.oc("ngIf",""!==e.tokenErrorMessage))},directives:[W.c,W.b,W.a,q.c,pt.a,q.b,at.u,at.n,at.o,lt.c,Rt.b,at.c,ut.a,at.s,at.m,at.p,Z.o,lt.b,we.a],styles:[""]}),t})();function Ee(t,e){1&t&&(i.Vb(0,"mat-error"),i.Kc(1,"Password is required."),i.Ub())}function ke(t,e){if(1&t&&(i.Vb(0,"p",15),i.Vb(1,"mat-icon",16),i.Kc(2,"close"),i.Ub(),i.Kc(3),i.Ub()),2&t){const t=i.hc();i.Db(3),i.Lc(t.loginErrorMessage)}}let Oe=(()=>{class t{constructor(t,e,n){this.logger=t,this.store=e,this.rtlEffects=n,this.faUnlockAlt=H.K,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.loginErrorMessage="",this.unSubs=[new u.a,new u.a,new u.a]}ngOnInit(){this.store.select("root").pipe(Object(P.a)(this.unSubs[0])).subscribe(t=>{t.effectErrorsRoot.forEach(t=>{"Login"!==t.action&&"IsAuthorized"!==t.action||(this.loginErrorMessage=this.loginErrorMessage+t.message+" "),this.logger.error(t)}),this.selNode=t.selNode,this.appConfig=t.appConfig,this.logger.info(t)}),this.rtlEffects.isAuthorizedRes.pipe(Object(P.a)(this.unSubs[1])).subscribe(t=>{"ERROR"!==t&&this.store.dispatch(new it.C({maxWidth:"35rem",data:{authRes:t,component:Se}}))})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.store.dispatch(this.appConfig.enable2FA?new it.t(At(this.password)):new it.w({password:At(this.password),initialPass:"password"===this.password}))}resetData(){this.password="",this.loginErrorMessage=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(rt.b),i.Pb(c.h),i.Pb(Tt.a))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-login"]],decls:19,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column"],[1,"padding-gap"],[1,"card-content-gap"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",3,"ngSubmit"],["loginForm","ngForm"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","placeholder","Password","type","password","id","password","name","password","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Qb(1,"fa-icon",1),i.Vb(2,"span",2),i.Kc(3,"Login to RTL"),i.Ub(),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"div",4),i.Vb(6,"mat-card"),i.Vb(7,"mat-card-content",5),i.Vb(8,"form",6,7),i.dc("ngSubmit",function(){return e.onLogin()}),i.Vb(10,"mat-form-field",8),i.Vb(11,"input",9),i.dc("ngModelChange",function(t){return e.password=t}),i.Ub(),i.Ic(12,Ee,2,0,"mat-error",10),i.Ub(),i.Ic(13,ke,4,1,"p",11),i.Vb(14,"div",12),i.Vb(15,"button",13),i.dc("click",function(){return e.resetData()}),i.Kc(16,"Clear"),i.Ub(),i.Vb(17,"button",14),i.Kc(18,"Login"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Db(1),i.oc("icon",e.faUnlockAlt),i.Db(10),i.oc("ngModel",e.password),i.Db(1),i.oc("ngIf",!e.password),i.Db(1),i.oc("ngIf",""!==e.loginErrorMessage))},directives:[W.c,W.b,K.a,q.a,q.b,at.u,at.n,at.o,lt.c,W.a,Rt.b,at.c,ut.a,at.s,at.m,at.p,Z.o,pt.a,lt.b,we.a],styles:[""]}),t})(),Ae=(()=>{class t{constructor(t,e){this.activatedRoute=t,this.router=e,this.error={errorCode:"",errorMessage:""},this.faTimes=H.I,this.unsubs=[new u.a,new u.a]}ngOnInit(){this.activatedRoute.paramMap.pipe(Object(P.a)(this.unsubs[0])).subscribe(t=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(z.a),i.Pb(z.g))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-error"]],decls:13,vars:3,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Qb(1,"fa-icon",1),i.Vb(2,"span",2),i.Kc(3),i.Ub(),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"mat-card"),i.Vb(6,"mat-card-content",4),i.Vb(7,"div",5),i.Vb(8,"div",6),i.Kc(9),i.Ub(),i.Vb(10,"span",7),i.Vb(11,"button",8),i.dc("click",function(){return e.goToHelp()}),i.Kc(12,"Go To Help"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Db(1),i.oc("icon",e.faTimes),i.Db(2),i.Mc("Error ",e.error.errorCode,""),i.Db(6),i.Lc(e.error.errorMessage))},directives:[W.c,W.b,K.a,q.a,q.b,W.a,pt.a],encapsulation:2}),t})();var De=n("2h+y");const Ie=z.k.forRoot([{path:"",pathMatch:"full",redirectTo:"lnd"},{path:"lnd",loadChildren:()=>Promise.all([n.e(1),n.e(7)]).then(n.bind(null,"tmAo")).then(t=>t.LNDModule),canActivate:[De.a]},{path:"cl",loadChildren:()=>Promise.all([n.e(1),n.e(5)]).then(n.bind(null,"Ssnv")).then(t=>t.CLModule),canActivate:[De.a]},{path:"ecl",loadChildren:()=>Promise.all([n.e(1),n.e(6)]).then(n.bind(null,"YoDt")).then(t=>t.ECLModule),canActivate:[De.a]},{path:"settings",component:Q,canActivate:[De.a],children:[{path:"",pathMatch:"full",redirectTo:"layout"},{path:"layout",component:Ot,canActivate:[De.a]},{path:"auth",component:re,canActivate:[De.a]},{path:"lnconfig",component:fe,canActivate:[De.a]},{path:"bconfig",component:fe,canActivate:[De.a]}]},{path:"help",component:ve},{path:"login",component:Oe},{path:"error",component:Ae},{path:"**",component:pe.a}]);var Te=n("PCNd"),Le=n("HeVh"),Pe=n("l0rg"),Re=n("ZFy/"),Me=n("rJgo");function je(t,e){if(1&t){const t=i.Wb();i.Vb(0,"a",10),i.dc("click",function(){return i.zc(t),i.hc().onClick()}),i.Qb(1,"fa-icon",3),i.Vb(2,"span"),i.Kc(3,"Logout"),i.Ub(),i.Ub()}if(2&t){const t=i.hc();i.Db(1),i.oc("icon",t.faEject)}}let Fe=(()=>{class t{constructor(t,e,n,i,s){this.logger=t,this.sessionService=e,this.store=n,this.rtlEffects=i,this.actions$=s,this.faCodeBranch=H.h,this.faCog=H.i,this.faLifeRing=H.u,this.faEject=H.m,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new u.a,new u.a,new u.a,new u.a],this.version=r.b.VERSION}ngOnInit(){this.store.select("root").pipe(Object(P.a)(this.unSubs[0])).subscribe(t=>{if(this.selNode=t.selNode,this.information=t.nodeData,this.flgLoading=!this.information.identity_pubkey,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const t=this.information.chains[0];this.informationChain.chain=t.chain,this.informationChain.network=t.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(t)}),this.sessionService.watchSession().pipe(Object(P.a)(this.unSubs[1])).subscribe(t=>{this.showLogout=!!t.token,this.flgLoading=!!t.token}),this.actions$.pipe(Object(P.a)(this.unSubs[2]),Object(I.a)(t=>t.type===it.v)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch(new it.D({data:{type:J.b.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}})),this.rtlEffects.closeConfirm.pipe(Object(P.a)(this.unSubs[3])).subscribe(t=>{t&&(this.showLogout=!1,this.store.dispatch(new it.x))})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(rt.b),i.Pb(be.a),i.Pb(c.h),i.Pb(Tt.a),i.Pb(l.a))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-top-menu"]],decls:15,vars:6,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item",""],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",1,"top-toolbar-icon",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",2,"width","3.2rem"],[2,"font-size","2rem","text-align","start"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(i.Vb(0,"mat-menu",0,1),i.Vb(2,"p",2),i.Qb(3,"fa-icon",3),i.Vb(4,"span"),i.Kc(5),i.Ub(),i.Ub(),i.Vb(6,"a",4),i.Qb(7,"fa-icon",3),i.Vb(8,"span",5),i.Kc(9,"Help"),i.Ub(),i.Ub(),i.Ic(10,je,4,1,"a",6),i.Ub(),i.Vb(11,"button",7),i.Qb(12,"img",8),i.Vb(13,"mat-icon",9),i.Kc(14,"arrow_drop_down"),i.Ub(),i.Ub()),2&t){const t=i.wc(1);i.oc("overlapTrigger",!1),i.Db(3),i.oc("icon",e.faCodeBranch),i.Db(2),i.Mc("Version: ",e.version,""),i.Db(2),i.oc("icon",e.faLifeRing),i.Db(3),i.oc("ngIf",e.showLogout),i.Db(1),i.oc("matMenuTriggerFor",t)}},directives:[Me.a,Me.b,K.a,z.j,z.h,Z.o,pt.a,Me.d,we.a],styles:[".mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%], .mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-toolbar-row[_ngcontent-%COMP%]{height:100px!important;padding:0 16px!important}.mat-menu-panel.top-menu[_ngcontent-%COMP%] .info-block[_ngcontent-%COMP%]{width:230px}.mat-menu-panel.top-menu[_ngcontent-%COMP%] .info-block[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;line-height:22px;text-align:center}.mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-menu-item[_ngcontent-%COMP%]{height:36px;line-height:36px}.mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:default}"]}),t})();var Ne=n("q7Ft"),Ve=n("y7ui"),Ue=n("OLiY");const Be={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:H.H,link:"/lnd/home",userPersona:J.w.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:H.v,link:"/lnd/onchain",userPersona:J.w.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:H.e,link:"/lnd/connections",userPersona:J.w.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:H.O,link:"/lnd/connections",userPersona:J.w.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:H.n,link:"/lnd/transactions",userPersona:J.w.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:H.w,link:"/lnd/routing",userPersona:J.w.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:H.f,link:"/lnd/reports",userPersona:J.w.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:H.F,link:"/lnd/lookups",userPersona:J.w.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:H.L,link:"/lnd/messages",userPersona:J.w.ALL},{id:37,parentId:3,name:"Loop",iconType:"FA",icon:H.s,link:"/lnd/loop",userPersona:J.w.ALL},{id:38,parentId:3,name:"Backup",iconType:"FA",icon:H.k,link:"/lnd/channelbackup",userPersona:J.w.ALL}]},{id:5,parentId:0,name:"Network",iconType:"FA",icon:H.B,link:"/lnd/network",userPersona:J.w.OPERATOR},{id:6,parentId:0,name:"Node/Network",iconType:"FA",icon:H.G,link:"/lnd/network",userPersona:J.w.MERCHANT},{id:7,parentId:0,name:"Settings",iconType:"FA",icon:H.J,link:"/settings",userPersona:J.w.ALL},{id:8,parentId:0,name:"Help",iconType:"FA",icon:H.C,link:"/help",userPersona:J.w.ALL}],CLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:H.H,link:"/cl/home",userPersona:J.w.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:H.v,link:"/cl/onchain",userPersona:J.w.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:H.e,link:"/cl/connections",userPersona:J.w.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:H.O,link:"/cl/connections",userPersona:J.w.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:H.n,link:"/cl/transactions",userPersona:J.w.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:H.w,link:"/cl/routing",userPersona:J.w.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:H.f,link:"/cl/reports",userPersona:J.w.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:H.F,link:"/cl/lookups",userPersona:J.w.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:H.L,link:"/cl/messages",userPersona:J.w.ALL},{id:37,parentId:3,name:"Fee Rates",iconType:"FA",icon:H.A,link:"/cl/rates",userPersona:J.w.OPERATOR},{id:38,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:H.G,link:"/cl/rates",userPersona:J.w.MERCHANT}]},{id:7,parentId:0,name:"Settings",iconType:"FA",icon:H.J,link:"/settings",userPersona:J.w.ALL},{id:8,parentId:0,name:"Help",iconType:"FA",icon:H.C,link:"/help",userPersona:J.w.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:H.H,link:"/ecl/home",userPersona:J.w.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:H.v,link:"/ecl/onchain",userPersona:J.w.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:H.e,link:"/ecl/connections",userPersona:J.w.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:H.O,link:"/ecl/connections",userPersona:J.w.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:H.n,link:"/ecl/transactions",userPersona:J.w.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:H.w,link:"/ecl/routing",userPersona:J.w.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:H.f,link:"/ecl/reports",userPersona:J.w.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:H.F,link:"/ecl/lookups",userPersona:J.w.ALL}]},{id:7,parentId:0,name:"Settings",iconType:"FA",icon:H.J,link:"/settings",userPersona:J.w.ALL},{id:8,parentId:0,name:"Help",iconType:"FA",icon:H.C,link:"/help",userPersona:J.w.ALL}]};function ze(t,e){if(1&t&&(i.Vb(0,"mat-option",10),i.Kc(1),i.Ub()),2&t){const t=e.$implicit;i.oc("value",t),i.Db(1),i.Nc(" ",t.lnNode," (",t.lnImplementation,") ")}}function He(t,e){if(1&t){const t=i.Wb();i.Vb(0,"mat-select",8),i.dc("selectionChange",function(e){return i.zc(t),i.hc().onNodeSelectionChange(e.value)}),i.Ic(1,ze,2,3,"mat-option",9),i.Ub()}if(2&t){const t=i.hc();i.oc("value",t.selNode),i.Db(1),i.oc("ngForOf",t.appConfig.nodes)}}function We(t,e){if(1&t&&i.Qb(0,"fa-icon",19),2&t){const t=i.hc().$implicit;i.oc("icon",t.icon)}}function Ke(t,e){if(1&t&&(i.Vb(0,"mat-icon",20),i.Kc(1),i.Ub()),2&t){const t=i.hc().$implicit;i.Db(1),i.Lc(t.icon)}}function qe(t,e){if(1&t){const t=i.Wb();i.Vb(0,"mat-tree-node",14),i.Vb(1,"div",15),i.dc("click",function(){i.zc(t);const n=e.$implicit;return i.hc(2).onChildNavClicked(n)}),i.Vb(2,"div",16),i.Ic(3,We,1,1,"fa-icon",17),i.Ic(4,Ke,2,1,"mat-icon",18),i.Vb(5,"span"),i.Kc(6),i.Ub(),i.Ub(),i.Ub(),i.Ub()}if(2&t){const t=e.$implicit;i.pc("routerLink",t.link),i.Db(3),i.oc("ngIf","FA"===t.iconType),i.Db(1),i.oc("ngIf",!t.iconType),i.Db(2),i.Lc(t.name)}}function Ye(t,e){if(1&t&&i.Qb(0,"fa-icon",19),2&t){const t=i.hc().$implicit;i.oc("icon",t.icon)}}function Ze(t,e){if(1&t&&(i.Vb(0,"mat-icon",20),i.Kc(1),i.Ub()),2&t){const t=i.hc().$implicit;i.Db(1),i.Lc(t.icon)}}function Xe(t,e){if(1&t&&(i.Vb(0,"mat-nested-tree-node",21),i.Vb(1,"div",22),i.Vb(2,"div",23),i.Ic(3,Ye,1,1,"fa-icon",17),i.Ic(4,Ze,2,1,"mat-icon",18),i.Vb(5,"span"),i.Kc(6),i.Ub(),i.Ub(),i.Vb(7,"button",24),i.Vb(8,"mat-icon",25),i.Kc(9),i.Ub(),i.Ub(),i.Ub(),i.Vb(10,"div",26),i.Rb(11,27),i.Ub(),i.Ub()),2&t){const t=e.$implicit,n=i.hc(2);i.Db(3),i.oc("ngIf","FA"===t.iconType),i.Db(1),i.oc("ngIf",!t.iconType),i.Db(2),i.Lc(t.name),i.Db(1),i.Eb("aria-label","toggle "+t.name),i.Db(2),i.Lc(n.treeControlNested.isExpanded(t)?"arrow_drop_up":"arrow_drop_down"),i.Db(1),i.Hb("tree-children-invisible",!n.treeControlNested.isExpanded(t))}}function Ge(t,e){if(1&t&&(i.Vb(0,"mat-tree",5,11),i.Ic(2,qe,7,4,"mat-tree-node",12),i.Ic(3,Xe,12,7,"mat-nested-tree-node",13),i.Ub()),2&t){const t=i.hc();i.oc("dataSource",t.navMenus)("treeControl",t.treeControlNested),i.Db(3),i.oc("matTreeNodeDefWhen",t.hasChild)}}function $e(t,e){if(1&t&&i.Qb(0,"fa-icon",30),2&t){const t=i.hc().$implicit;i.pc("matTooltip",t.name),i.oc("icon",t.icon)}}function Qe(t,e){if(1&t&&(i.Vb(0,"mat-icon",31),i.Kc(1),i.Ub()),2&t){const t=i.hc().$implicit;i.pc("matTooltip",t.name),i.Db(1),i.Lc(t.icon)}}function Je(t,e){if(1&t){const t=i.Wb();i.Vb(0,"mat-tree-node",15),i.dc("click",function(){i.zc(t);const n=e.$implicit;return i.hc().onShowData(n)}),i.Ic(1,$e,1,2,"fa-icon",28),i.Ic(2,Qe,2,2,"mat-icon",29),i.Vb(3,"span"),i.Kc(4),i.Ub(),i.Ub()}if(2&t){const t=e.$implicit;i.Db(1),i.oc("ngIf","FA"===t.iconType),i.Db(1),i.oc("ngIf",!t.iconType),i.Db(2),i.Lc(t.name)}}function tn(t,e){if(1&t&&i.Qb(0,"fa-icon",30),2&t){const t=i.hc().$implicit;i.pc("matTooltip",t.name),i.oc("icon",t.icon)}}function en(t,e){if(1&t){const t=i.Wb();i.Vb(0,"mat-tree-node",15),i.dc("click",function(){i.zc(t);const n=e.$implicit;return i.hc(2).onClick(n)}),i.Ic(1,tn,1,2,"fa-icon",28),i.Vb(2,"span"),i.Kc(3),i.Ub(),i.Ub()}if(2&t){const t=e.$implicit;i.Db(1),i.oc("ngIf","FA"===t.iconType),i.Db(2),i.Lc(t.name)}}function nn(t,e){if(1&t&&(i.Vb(0,"mat-tree",5),i.Ic(1,en,4,2,"mat-tree-node",6),i.Ub()),2&t){const t=i.hc();i.oc("dataSource",t.navMenusLogout)("treeControl",t.treeControlLogout)}}let rn=(()=>{class t{constructor(t,e,n,s,o,a){this.logger=t,this.commonService=e,this.sessionService=n,this.store=s,this.actions$=o,this.rtlEffects=a,this.ChildNavClicked=new i.o,this.faEject=H.m,this.faEye=H.p,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:H.m}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:H.p}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=J.w,this.unSubs=[new u.a,new u.a,new u.a,new u.a],this.treeControlNested=new Ve.j(t=>t.children),this.treeControlLogout=new Ve.j(t=>t.children),this.treeControlShowData=new Ve.j(t=>t.children),this.navMenus=new Ue.d,this.navMenusLogout=new Ue.d,this.navMenusShowData=new Ue.d,this.hasChild=(t,e)=>!!e.children&&e.children.length>0,this.version=r.b.VERSION,200===Be.LNDChildren[Be.LNDChildren.length-1].id&&Be.LNDChildren.pop(),this.navMenus.data=Be.LNDChildren,this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){let t=this.sessionService.getItem("token");this.showLogout=!!t,this.flgLoading=!!t,this.store.select("root").pipe(Object(P.a)(this.unSubs[0])).subscribe(t=>{if(this.appConfig=t.appConfig,this.selNode=t.selNode,this.settings=this.selNode.settings,this.information=t.nodeData,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const t=this.information.chains[0];this.informationChain.chain=t.chain,this.informationChain.network=t.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.settings.lnServerUrl&&this.filterSideMenuNodes(),this.logger.info(t)}),this.sessionService.watchSession().pipe(Object(P.a)(this.unSubs[1])).subscribe(t=>{this.showLogout=!!t.token,this.flgLoading=!!t.token}),this.actions$.pipe(Object(P.a)(this.unSubs[2]),Object(I.a)(t=>t.type===it.v)).subscribe(t=>{this.showLogout=!1})}onClick(t){"Logout"===t.name&&(this.store.dispatch(new it.D({data:{type:J.b.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}})),this.rtlEffects.closeConfirm.pipe(Object(P.a)(this.unSubs[3])).subscribe(t=>{t&&(this.showLogout=!1,this.store.dispatch(new it.x))})),this.ChildNavClicked.emit(t)}onChildNavClicked(t){this.ChildNavClicked.emit(t)}filterSideMenuNodes(){if(this.selNode&&this.selNode.lnImplementation)switch(this.selNode.lnImplementation.toUpperCase()){case"CLT":this.loadCLTMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}else this.loadLNDMenu()}loadLNDMenu(){let t=[];t=JSON.parse(JSON.stringify(Be.LNDChildren)),this.navMenus.data=t.filter(t=>(t.children&&t.children.length&&(t.children=t.children.filter(t=>(t.userPersona===J.w.ALL||t.userPersona===this.settings.userPersona)&&"/lnd/loop"!==t.link||"/lnd/loop"===t.link&&this.settings.swapServerUrl&&""!==this.settings.swapServerUrl.trim())),t.userPersona===J.w.ALL||t.userPersona===this.settings.userPersona))}loadCLTMenu(){let t=[];t=JSON.parse(JSON.stringify(Be.CLChildren)),this.navMenus.data=t.filter(t=>(t.children&&t.children.length&&(t.children=t.children.filter(t=>(t.userPersona===J.w.ALL||t.userPersona===this.settings.userPersona)&&"/cl/messages"!==t.link||"/cl/messages"===t.link&&this.information.api_version&&this.commonService.isVersionCompatible(this.information.api_version,"0.2.2"))),t.userPersona===J.w.ALL||t.userPersona===this.settings.userPersona))}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Be.ECLChildren))}onShowData(t){this.store.dispatch(new it.V),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(t){this.selNode=t,this.store.dispatch(new it.F("Updating Selected Node...")),this.store.dispatch(new it.U({lnNode:t,isInitialSetup:!1})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(rt.b),i.Pb(st.a),i.Pb(be.a),i.Pb(c.h),i.Pb(l.a),i.Pb(Tt.a))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-side-navigation"]],viewQuery:function(t,e){if(1&t&&i.Pc(Ue.b,!0),2&t){let t;i.vc(t=i.ec())&&(e.tree=t.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},decls:10,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","90","fxLayoutAlign","start stretch",1,"w-100"],["class","m-2 multi-node-select",3,"value","selectionChange",4,"ngIf"],[1,"w-100"],[3,"dataSource","treeControl",4,"ngIf"],[3,"dataSource","treeControl"],[3,"click",4,"matTreeNodeDef"],["fxLayout","column","fxFlex","10","fxLayoutAlign","end stretch",1,"w-100"],[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",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],[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"],["fxFlex","11","mat-icon-button","","fxLayoutAlign","end center"],[1,"mat-icon-rtl-mirror"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],["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"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Ic(2,He,2,2,"mat-select",2),i.Qb(3,"mat-divider",3),i.Ic(4,Ge,4,3,"mat-tree",4),i.Qb(5,"mat-divider",3),i.Vb(6,"mat-tree",5),i.Ic(7,Je,5,3,"mat-tree-node",6),i.Ub(),i.Ub(),i.Vb(8,"div",7),i.Ic(9,nn,2,2,"mat-tree",4),i.Ub(),i.Ub()),2&t&&(i.Db(2),i.oc("ngIf",e.appConfig.nodes.length>1),i.Db(2),i.oc("ngIf",e.settings.lnServerUrl),i.Db(2),i.oc("dataSource",e.navMenusShowData)("treeControl",e.treeControlShowData),i.Db(3),i.oc("ngIf",e.showLogout))},directives:[W.c,W.a,W.b,ot.b,Z.o,ft.a,Ue.b,Ue.f,ht.a,Z.n,mt.m,Ue.e,Ue.h,z.i,z.h,K.a,we.a,Ue.a,pt.a,Ue.g,Re.a],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),t})();var sn=n("pu8Q");const on=["sideNavigation"],an=["sideNavContent"];function cn(t,e){1&t&&(i.gc(),i.Qb(0,"path",16))}function ln(t,e){1&t&&(i.gc(),i.Qb(0,"path",17))}function hn(t,e){if(1&t){const t=i.Wb();i.Vb(0,"button",12),i.dc("click",function(){i.zc(t);const e=i.hc();return e.flgSidenavPinned=!e.flgSidenavPinned}),i.gc(),i.Vb(1,"svg",13),i.Ic(2,cn,1,0,"path",14),i.Ic(3,ln,1,0,"path",15),i.Ub(),i.Ub()}if(2&t){const t=i.hc();i.oc("matTooltip",t.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),i.Db(2),i.oc("ngIf",!t.flgSidenavPinned),i.Db(1),i.oc("ngIf",t.flgSidenavPinned)}}function un(t,e){if(1&t&&(i.Vb(0,"span"),i.Kc(1),i.Ub()),2&t){const t=i.hc();i.Db(1),i.Lc(t.information.alias?"RTL - "+t.information.alias:"RTL")}}function dn(t,e){if(1&t&&(i.Vb(0,"span"),i.Kc(1),i.Ub()),2&t){const t=i.hc();i.Db(1),i.Lc(t.information.alias?"Ride The Lightning - "+t.information.alias:"Ride The Lightning")}}function fn(t,e){1&t&&(i.Vb(0,"div",18),i.Qb(1,"mat-spinner",19),i.Vb(2,"h4"),i.Kc(3,"Loading RTL..."),i.Ub(),i.Ub())}const pn=function(t,e){return[t,e]},mn=function(){return{"inner-sidenav-content":!0}};let bn=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c){this.logger=t,this.commonService=e,this.store=n,this.actions$=i,this.userIdle=r,this.router=s,this.sessionService=o,this.breakpointObserver=a,this.renderer=c,this.information={},this.flgLoading=[!0],this.flgSideNavOpened=!0,this.flgCopied=!1,this.accessKey="",this.xSmallScreen=!1,this.smallScreen=!1,this.flgSidenavPinned=!0,this.unSubs=[new u.a,new u.a,new u.a,new u.a,new u.a,new u.a]}ngOnInit(){this.router.events.subscribe(t=>{t instanceof z.c&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([Le.b.XSmall,Le.b.TabletPortrait,Le.b.Small,Le.b.Medium,Le.b.Large,Le.b.XLarge]).pipe(Object(P.a)(this.unSubs[5])).subscribe(t=>{t.breakpoints[Le.b.XSmall]?(this.commonService.setScreenSize(J.q.XS),this.smallScreen=!0):t.breakpoints[Le.b.TabletPortrait]?(this.commonService.setScreenSize(J.q.SM),this.smallScreen=!0):t.breakpoints[Le.b.Small]||t.breakpoints[Le.b.Medium]?(this.commonService.setScreenSize(J.q.MD),this.smallScreen=!1):t.breakpoints[Le.b.Large]?(this.commonService.setScreenSize(J.q.LG),this.smallScreen=!1):(this.commonService.setScreenSize(J.q.XL),this.smallScreen=!1)}),this.store.dispatch(new it.q),this.accessKey=this.readAccessKey(),this.store.select("root").pipe(Object(P.a)(this.unSubs[0])).subscribe(t=>{this.selNode=t.selNode,this.settings=this.selNode.settings,this.appConfig=t.appConfig,this.information=t.nodeData,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.settings),this.sessionService.getItem("token")||(this.flgLoading[0]=!1)}),this.actions$.pipe(Object(P.a)(this.unSubs[1]),Object(I.a)(t=>t.type===it.N)).subscribe(t=>{t.type===it.N&&(this.sessionService.getItem("token")||(+t.payload.sso.rtlSSO?this.store.dispatch(new it.w({password:At(this.accessKey),initialPass:!1})):this.router.navigate([this.appConfig.sso.logoutRedirectLink])))}),this.userIdle.startWatching(),this.userIdle.onTimerStart().pipe(Object(P.a)(this.unSubs[2])).subscribe(t=>{}),this.userIdle.onTimeout().pipe(Object(P.a)(this.unSubs[3])).subscribe(()=>{this.sessionService.getItem("token")&&(this.logger.warn("Time limit exceeded for session inactivity."),this.store.dispatch(new it.g),this.store.dispatch(new it.C({data:{type:J.b.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}})),this.store.dispatch(new it.x),this.userIdle.resetTimer())})}readAccessKey(){const t=window.location.href;return t.includes("access-key=")?t.substring(t.lastIndexOf("access-key=")+11).trim():""}ngAfterViewInit(){this.smallScreen?(this.sideNavigation.close(),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)):setTimeout(()=>{this.renderer.setStyle(this.sideNavContent.elementRef.nativeElement,"marginLeft","22rem"),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)},100)}sideNavToggle(){this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.toggle()}onNavigationClicked(t){this.smallScreen&&this.sideNavigation.close()}copiedText(t){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(rt.b),i.Pb(st.a),i.Pb(c.h),i.Pb(l.a),i.Pb(U),i.Pb(z.g),i.Pb(be.a),i.Pb(Le.a),i.Pb(i.G))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-app"]],viewQuery:function(t,e){if(1&t&&(i.Pc(on,!0),i.Pc(an,!0)),2&t){let t;i.vc(t=i.ec())&&(e.sideNavigation=t.first),i.vc(t=i.ec())&&(e.sideNavContent=t.first)}},decls:24,vars:18,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"],["mat-icon-button","","matTooltipPosition","right",1,"top-toolbar-icon","mr-1",3,"matTooltip","matTooltipDisabled","click"],["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",""],[3,"ngClass"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["viewBox","0 0 32 32",1,"top-toolbar-icon","icon-pinned"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",4,"ngIf"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z",4,"ngIf"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z"],[1,"rtl-spinner"],["color","accent"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.ic(1,"lowercase"),i.ic(2,"lowercase"),i.Vb(3,"mat-toolbar",1),i.Vb(4,"div"),i.Vb(5,"button",2),i.dc("click",function(){return e.sideNavToggle()}),i.Vb(6,"mat-icon"),i.Kc(7,"menu"),i.Ub(),i.Ub(),i.Ic(8,hn,4,3,"button",3),i.Ub(),i.Vb(9,"div"),i.Ic(10,un,2,1,"span",4),i.Ic(11,dn,2,1,"span",4),i.Ub(),i.Vb(12,"div"),i.Qb(13,"rtl-top-menu"),i.Ub(),i.Ub(),i.Vb(14,"mat-sidenav-container"),i.Vb(15,"mat-sidenav",5,6),i.Vb(17,"rtl-side-navigation",7),i.dc("ChildNavClicked",function(t){return e.onNavigationClicked(t)}),i.Ub(),i.Ub(),i.Vb(18,"mat-sidenav-content",8,9),i.Vb(20,"div",10),i.Qb(21,"router-outlet"),i.Ub(),i.Ub(),i.Kc(22,"> "),i.Ub(),i.Ic(23,fn,4,0,"div",11),i.Ub()),2&t&&(i.oc("ngClass",i.tc(14,pn,i.jc(1,10,e.settings.themeColor),i.jc(2,12,e.settings.themeMode))),i.Db(5),i.oc("matTooltip",e.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",e.smallScreen),i.Db(3),i.oc("ngIf",!e.smallScreen),i.Db(2),i.oc("ngIf",e.smallScreen),i.Db(1),i.oc("ngIf",!e.smallScreen),i.Db(4),i.oc("opened",e.flgSideNavOpened)("mode",e.flgSidenavPinned&&!e.smallScreen?"side":"over"),i.Db(5),i.oc("ngClass",i.rc(17,mn)),i.Db(3),i.oc("ngIf",!e.settings.themeColor))},directives:[W.c,Z.m,bt.a,Pe.a,W.b,pt.a,Re.a,we.a,Z.o,Fe,Ne.b,Ne.a,ot.b,rn,W.a,Ne.c,z.l,sn.b],pipes:[Z.l],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"]}),t})(),gn=(()=>{class t{constructor(t){this.sessionService=t}intercept(t,e){if(this.sessionService.getItem("token")){const n=t.clone({headers:t.headers.set("Authorization","Bearer "+this.sessionService.getItem("token"))});return e.handle(n)}return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(be.a))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();var _n=n("hBQm"),yn=n("iiaH");const vn={initialAPIResponseStatus:["INCOMPLETE"],effectErrors:[],nodeSettings:{userPersona:J.w.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},information:{},fees:{},activeChannels:[],pendingChannels:[],inactiveChannels:[],channelsStatus:{},channelStats:[],onchainBalance:{total:0,confirmed:0,unconfirmed:0},lightningBalance:{localBalance:-1,remoteBalance:-1},peers:[],payments:{},transactions:[],invoices:[]},wn={initialAPIResponseStatus:["INCOMPLETE"],effectErrors:[],nodeSettings:{userPersona:J.w.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},information:{},fees:{},feeRatesPerKB:{},feeRatesPerKW:{},balance:{},localRemoteBalance:{localBalance:-1,remoteBalance:-1},peers:[],allChannels:[],payments:[],forwardingHistory:{},invoices:{invoices:[]},totalInvoices:-1,transactions:[]},xn={initialAPIResponseStatus:["INCOMPLETE"],effectErrors:[],nodeSettings:{userPersona:J.w.OPERATOR,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},information:{},peers:[],fees:{},networkInfo:{},channelBalance:{balance:-1,btc_balance:-1},blockchainBalance:{total_balance:-1,btc_total_balance:-1},allChannels:[],closedChannels:[],pendingChannels:{},numberOfActiveChannels:0,numberOfInactiveChannels:0,numberOfPendingChannels:{open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0},totalCapacityActive:0,totalCapacityInactive:0,totalLocalBalance:-1,totalRemoteBalance:-1,totalInvoices:-1,transactions:[],utxos:[],payments:[],invoices:{invoices:[]},forwardingHistory:{},loopSwaps:[]},Cn={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"]},Sn={configPath:"",bitcoindConfigPath:""},En={effectErrorsRoot:[],selNode:{settings:Cn,authentication:Sn,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:"/login"},enable2FA:!1,nodes:[{settings:Cn,authentication:Sn}]},nodeData:{}},kn={root:function(t=En,e){switch(e.type){case it.a:const n=[...t.effectErrorsRoot],i=t.effectErrorsRoot.findIndex(t=>t.action===e.payload);return i>-1&&n.splice(i,1),Object.assign(Object.assign({},t),{effectErrorsRoot:n});case it.j:return Object.assign(Object.assign({},t),{effectErrorsRoot:[...t.effectErrorsRoot,e.payload]});case it.I:return Object.assign(Object.assign({},En),{appConfig:t.appConfig,selNode:e.payload});case it.O:return Object.assign(Object.assign({},t),{selNode:e.payload.lnNode});case it.M:return Object.assign(Object.assign({},t),{nodeData:e.payload});case it.N:return Object.assign(Object.assign({},t),{appConfig:e.payload});default:return t}},lnd:function(t=xn,e){let n=t.initialAPIResponseStatus;switch(e.type){case nt.f:const i=[...t.effectErrors],r=t.effectErrors.findIndex(t=>t.action===e.payload);return r>-1&&i.splice(r,1),Object.assign(Object.assign({},t),{effectErrors:i});case nt.m:return Object.assign(Object.assign({},t),{effectErrors:[...t.effectErrors,e.payload]});case nt.zb:return Object.assign(Object.assign({},t),{nodeSettings:e.payload});case nt.jb:return Object.assign(Object.assign({},xn),{nodeSettings:e.payload});case nt.Eb:return Object.assign(Object.assign({},t),{information:e.payload});case nt.Lb:return n=[...t.initialAPIResponseStatus,"PEERS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,peers:e.payload});case nt.ib:const s=[...t.peers],o=t.peers.findIndex(t=>t.pub_key===e.payload.pubkey);return o>-1&&s.splice(o,1),Object.assign(Object.assign({},t),{peers:s});case nt.a:const a=t.invoices;return a.invoices.unshift(e.payload),Object.assign(Object.assign({},t),{invoices:a});case nt.Bb:return n=[...t.initialAPIResponseStatus,"FEES"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,fees:e.payload});case nt.Ab:return n=[...t.initialAPIResponseStatus,"CLOSEDCHANNELS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,closedChannels:e.payload});case nt.Mb:return n=[...t.initialAPIResponseStatus,"PENDINGCHANNELS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,pendingChannels:e.payload.channels,numberOfPendingChannels:e.payload.pendingChannels});case nt.vb:let c=0,l=0,h=0,u=0,d=0,f=0;return e.payload&&e.payload.forEach(t=>{t.local_balance||(t.local_balance=0),!0===t.active?(d+=+t.local_balance,h+=1,t.local_balance?c=+c+ +t.local_balance:t.local_balance=0,t.remote_balance?l=+l+ +t.remote_balance:t.remote_balance=0):(f+=+t.local_balance,u+=1)}),n=[...t.initialAPIResponseStatus,"ALLCHANNELS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,allChannels:e.payload,numberOfActiveChannels:h,numberOfInactiveChannels:u,totalCapacityActive:d,totalCapacityInactive:f,totalLocalBalance:c,totalRemoteBalance:l});case nt.hb:const p=[...t.allChannels],m=t.allChannels.findIndex(t=>t.channel_point===e.payload.channelPoint);return m>-1&&p.splice(m,1),Object.assign(Object.assign({},t),{allChannels:p});case nt.wb:return"channels"===e.payload.target?(n=[...t.initialAPIResponseStatus,"BALANCE"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,channelBalance:e.payload.balance})):Object.assign(Object.assign({},t),{blockchainBalance:e.payload.balance});case nt.Ib:return Object.assign(Object.assign({},t),{networkInfo:e.payload});case nt.Fb:return n=[...t.initialAPIResponseStatus,"INVOICES"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,invoices:e.payload});case nt.Pb:return Object.assign(Object.assign({},t),{totalInvoices:e.payload});case nt.Qb:return Object.assign(Object.assign({},t),{transactions:e.payload});case nt.Rb:return Object.assign(Object.assign({},t),{utxos:e.payload});case nt.Kb:return n=[...t.initialAPIResponseStatus,"PAYMENTS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,payments:e.payload});case nt.Cb:if(e.payload.forwarding_events){const n=[...t.allChannels,...t.closedChannels];e.payload.forwarding_events.forEach(t=>{if(n&&n.length>0)for(let e=0;et.action===e.payload);return r>-1&&i.splice(r,1),Object.assign(Object.assign({},t),{effectErrors:i});case et.o:return Object.assign(Object.assign({},t),{effectErrors:[...t.effectErrors,e.payload]});case et.hb:return Object.assign(Object.assign({},t),{nodeSettings:e.payload});case et.W:return Object.assign(Object.assign({},wn),{nodeSettings:e.payload});case et.mb:return Object.assign(Object.assign({},t),{information:e.payload});case et.jb:return n=[...t.initialAPIResponseStatus,"FEES"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,fees:e.payload});case et.kb:return e.payload.perkb?(n=[...t.initialAPIResponseStatus,"FEERATEKB"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,feeRatesPerKB:e.payload})):e.payload.perkw?(n=[...t.initialAPIResponseStatus,"FEERATEKW"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,feeRatesPerKW:e.payload})):Object.assign({},t);case et.db:return n=[...t.initialAPIResponseStatus,"BALANCE"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,balance:e.payload});case et.ob:return n=[...t.initialAPIResponseStatus,"CHANNELBALANCE"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,localRemoteBalance:e.payload});case et.sb:return n=[...t.initialAPIResponseStatus,"PEERS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,peers:e.payload});case et.b:return Object.assign(Object.assign({},t),{peers:[...t.peers,e.payload]});case et.V:const s=[...t.peers],o=t.peers.findIndex(t=>t.id===e.payload.id);return o>-1&&s.splice(o,1),Object.assign(Object.assign({},t),{peers:s});case et.eb:return n=[...t.initialAPIResponseStatus,"CHANNELS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,allChannels:e.payload});case et.U:const a=[...t.allChannels],c=t.allChannels.findIndex(t=>t.channel_id===e.payload.channelId);return c>-1&&a.splice(c,1),Object.assign(Object.assign({},t),{allChannels:a});case et.rb:return n=[...t.initialAPIResponseStatus,"PAYMENTS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,payments:e.payload});case et.lb:const l=t.fees;if(e.payload.forwarding_events&&e.payload.forwarding_events.length>0){const n=[...t.allChannels];e.payload.forwarding_events.forEach(t=>{if(n&&n.length>0)for(let e=0;e"settled"===t.status).length}else e.payload={};return Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,fee:l,forwardingHistory:e.payload});case et.a:const h=t.invoices;return h.invoices.unshift(e.payload),Object.assign(Object.assign({},t),{invoices:h});case et.nb:return Object.assign(Object.assign({},t),{invoices:e.payload});case et.ub:return Object.assign(Object.assign({},t),{totalInvoices:e.payload});case et.vb:return n=[...t.initialAPIResponseStatus,"TRANSACTIONS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,transactions:e.payload});default:return t}},ecl:function(t=vn,e){let n=t.initialAPIResponseStatus;switch(e.type){case tt.b:const i=[...t.effectErrors],r=t.effectErrors.findIndex(t=>t.action===e.payload);return r>-1&&i.splice(r,1),Object.assign(Object.assign({},t),{effectErrors:i});case tt.j:return Object.assign(Object.assign({},t),{effectErrors:[...t.effectErrors,e.payload]});case tt.W:return Object.assign(Object.assign({},t),{nodeSettings:e.payload});case tt.L:return Object.assign(Object.assign({},vn),{nodeSettings:e.payload});case tt.Z:return Object.assign(Object.assign({},t),{information:e.payload});case tt.X:return n=[...t.initialAPIResponseStatus,"FEES"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,fees:e.payload});case tt.T:return Object.assign(Object.assign({},t),{activeChannels:e.payload});case tt.hb:return Object.assign(Object.assign({},t),{pendingChannels:e.payload});case tt.Y:return Object.assign(Object.assign({},t),{inactiveChannels:e.payload});case tt.U:return n=[...t.initialAPIResponseStatus,"CHANNELS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,channelsStatus:e.payload});case tt.V:return Object.assign(Object.assign({},t),{channelStats:e.payload});case tt.eb:return n=[...t.initialAPIResponseStatus,"ONCHAINBALANCE"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,onchainBalance:e.payload});case tt.bb:return Object.assign(Object.assign({},t),{lightningBalance:e.payload});case tt.gb:return n=[...t.initialAPIResponseStatus,"PEERS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,peers:e.payload});case tt.K:const s=[...t.peers],o=t.peers.findIndex(t=>t.nodeId===e.payload.nodeId);return o>-1&&s.splice(o,1),Object.assign(Object.assign({},t),{peers:s});case tt.J:const a=[...t.activeChannels],c=t.activeChannels.findIndex(t=>t.channelId===e.payload.channelId);return c>-1&&a.splice(c,1),Object.assign(Object.assign({},t),{activeChannels:a});case tt.fb:if(e.payload&&e.payload.relayed){const n=[...t.activeChannels,...t.pendingChannels,...t.inactiveChannels];e.payload.relayed.forEach(t=>{if(n&&n.length>0)for(let e=0;e{class t{}return t.\u0275mod=i.Nb({type:t,bootstrap:[bn]}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[{provide:a.a,useClass:gn,multi:!0},De.a,be.a,yn.a,_n.a,st.a],imports:[[s.a,o.b,Te.a,Ie,Le.c,s.c,B.forRoot({idle:3600,timeout:1}),c.j.forRoot(kn,{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),l.c.forRoot([Tt.a,On.a,An.a,Dn.a]),r.b.production?[]:h.a.instrument()]]}),t})();r.b.production&&Object(i.W)(),s.d().bootstrapModule(In).catch(t=>console.log(t))},zZGF:function(t){t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"},zp1y:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("l7GE"),r=n("ZUHj");function s(...t){return e=>{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new o(t,n))}}class o{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new a(t,this.observables,this.project))}}class a extends i.a{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const i=e.length;this.values=new Array(i);for(let r=0;r0){const t=i.indexOf(n);-1!==t&&i.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},zx2A:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return c});var i=n("7o/Q"),r=n("HDdC"),s=n("SeVD");class o extends i.a{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends i.a{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function c(t,e){if(!e.closed)return t instanceof r.a?t.subscribe(e):Object(s.a)(t)(e)}},zzXz:function(t,e,n){"use strict";var i;t.exports=S,S.ReadableState=C,n("+qE3");var r,s=function(t,e){return t.listeners(e).length},o=n("8Spv"),a=n("tjlA").Buffer,c=global.Uint8Array||function(){},l=n(1);r=l&&l.debuglog?l.debuglog("stream"):function(){};var h,u,d,f=n("Iqt3"),p=n("kBkV"),m=n("BfC4").getHighWaterMark,b=n("0ROu").codes,g=b.ERR_INVALID_ARG_TYPE,_=b.ERR_STREAM_PUSH_AFTER_EOF,y=b.ERR_METHOD_NOT_IMPLEMENTED,v=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("2q5Q")(S,o);var w=p.errorOrDestroy,x=["error","close","destroy","pause","resume"];function C(t,e,r){i=i||n("Xn1i"),"boolean"!=typeof r&&(r=e instanceof i),this.objectMode=!!(t=t||{}).objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",r),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=n("fXKp").StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function S(t){if(i=i||n("Xn1i"),!(this instanceof S))return new S(t);this._readableState=new C(t,this,this instanceof i),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),o.call(this)}function E(t,e,n,i,s){r("readableAddChunk",e);var o,l=t._readableState;if(null===e)l.reading=!1,function(t,e){if(r("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?D(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,I(t)))}}(t,l);else if(s||(o=function(t,e){var n,i;return a.isBuffer(i=e)||i instanceof c||"string"==typeof e||void 0===e||t.objectMode||(n=new g("chunk",["string","Buffer","Uint8Array"],e)),n}(l,e)),o)w(t,o);else if(l.objectMode||e&&e.length>0)if("string"==typeof e||l.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=function(t){return a.from(t)}(e)),i)l.endEmitted?w(t,new v):k(t,l,e,!0);else if(l.ended)w(t,new _);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!n?(e=l.decoder.write(e),l.objectMode||0!==e.length?k(t,l,e,!1):T(t,l)):k(t,l,e,!1)}else i||(l.reading=!1,T(t,l));return!l.ended&&(l.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=O?t=O:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function D(t){var e=t._readableState;r("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(r("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(I,t))}function I(t){var e=t._readableState;r("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,j(t)}function T(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(L,t,e))}function L(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function R(t){r("readable nexttick read 0"),t.read(0)}function M(t,e){r("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),j(t),e.flowing&&!e.reading&&t.read(0)}function j(t){var e=t._readableState;for(r("flow",e.flowing);e.flowing&&null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function N(t){var e=t._readableState;r("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(V,e,t))}function V(t,e){if(r("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function U(t,e){for(var n=0,i=t.length;n=e.highWaterMark:e.length>0)||e.ended))return r("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):D(this),null;if(0===(t=A(t,e))&&e.ended)return 0===e.length&&N(this),null;var i,s=e.needReadable;return r("need readable",s),(0===e.length||e.length-t0?F(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&N(this)),null!==i&&this.emit("data",i),i},S.prototype._read=function(t){w(this,new y("_read()"))},S.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,r("pipe count=%d opts=%j",i.pipesCount,e);var o=e&&!1===e.end||t===process.stdout||t===process.stderr?p:a;function a(){r("onend"),t.end()}i.endEmitted?process.nextTick(o):n.once("end",o),t.on("unpipe",function e(s,o){r("onunpipe"),s===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,r("cleanup"),t.removeListener("close",d),t.removeListener("finish",f),t.removeListener("drain",c),t.removeListener("error",u),t.removeListener("unpipe",e),n.removeListener("end",a),n.removeListener("end",p),n.removeListener("data",h),l=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c())});var c=function(t){return function(){var e=t._readableState;r("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,j(t))}}(n);t.on("drain",c);var l=!1;function h(e){r("ondata");var s=t.write(e);r("dest.write",s),!1===s&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==U(i.pipes,t))&&!l&&(r("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function u(e){r("onerror",e),p(),t.removeListener("error",u),0===s(t,"error")&&w(t,e)}function d(){t.removeListener("finish",f),p()}function f(){r("onfinish"),t.removeListener("close",d),p()}function p(){r("unpipe"),n.unpipe(t)}return n.on("data",h),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events.error?Array.isArray(t._events.error)?t._events.error.unshift(n):t._events.error=[n,t._events.error]:t.on(e,n)}(t,"error",u),t.once("close",d),t.once("finish",f),t.emit("pipe",n),i.flowing||(r("pipe resume"),n.resume()),t},S.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var i=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,r("on readable",i.length,i.reading),i.length?D(this):i.reading||process.nextTick(R,this))),n},S.prototype.removeListener=function(t,e){var n=o.prototype.removeListener.call(this,t,e);return"readable"===t&&process.nextTick(P,this),n},S.prototype.removeAllListeners=function(t){var e=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||process.nextTick(P,this),e},S.prototype.resume=function(){var t=this._readableState;return t.flowing||(r("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(M,t,e))}(this,t)),t.paused=!1,this},S.prototype.pause=function(){return r("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(r("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;for(var s in t.on("end",function(){if(r("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(s){r("wrapped data"),n.decoder&&(s=n.decoder.write(s)),n.objectMode&&null==s||(n.objectMode||s&&s.length)&&(e.push(s)||(i=!0,t.pause()))}),t)void 0===this[s]&&"function"==typeof t[s]&&(this[s]=function(e){return function(){return t[e].apply(t,arguments)}}(s));for(var o=0;o",this._properties=e&&e.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,e)}return e.assertZonePatched=function(){if(t.Promise!==j.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(e,"root",{get:function(){for(var t=e.current;t.parent;)t=t.parent;return t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"current",{get:function(){return R.zone},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentTask",{get:function(){return D},enumerable:!0,configurable:!0}),e.__load_patch=function(o,i){if(j.hasOwnProperty(o)){if(a)throw Error("Already loaded patch: "+o)}else if(!t["__Zone_disable_"+o]){var c="Zone:"+o;n(c),j[o]=i(t,e,P),r(c,c)}},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var e=this.getZoneWith(t);if(e)return e._properties[t]},e.prototype.getZoneWith=function(t){for(var e=this;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null},e.prototype.fork=function(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)},e.prototype.wrap=function(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);var n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}},e.prototype.run=function(t,e,n,r){R={parent:R,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{R=R.parent}},e.prototype.runGuarded=function(t,e,n,r){void 0===e&&(e=null),R={parent:R,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{R=R.parent}},e.prototype.runTask=function(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||m).name+"; Execution: "+this.name+")");if(t.state!==k||t.type!==I&&t.type!==O){var r=t.state!=x;r&&t._transitionTo(x,S),t.runCount++;var o=D;D=t,R={parent:R,zone:this};try{t.type==O&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{t.state!==k&&t.state!==_&&(t.type==I||t.data&&t.data.isPeriodic?r&&t._transitionTo(S,x):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(k,x,k))),R=R.parent,D=o}}},e.prototype.scheduleTask=function(t){if(t.zone&&t.zone!==this)for(var e=this;e;){if(e===t.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+t.zone.name);e=e.parent}t._transitionTo(E,k);var n=[];t._zoneDelegates=n,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(r){throw t._transitionTo(_,E,k),this._zoneDelegate.handleError(this,r),r}return t._zoneDelegates===n&&this._updateTaskCount(t,1),t.state==E&&t._transitionTo(S,E),t},e.prototype.scheduleMicroTask=function(t,e,n,r){return this.scheduleTask(new l(T,t,e,n,r,void 0))},e.prototype.scheduleMacroTask=function(t,e,n,r,o){return this.scheduleTask(new l(O,t,e,n,r,o))},e.prototype.scheduleEventTask=function(t,e,n,r,o){return this.scheduleTask(new l(I,t,e,n,r,o))},e.prototype.cancelTask=function(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||m).name+"; Execution: "+this.name+")");t._transitionTo(w,S,x);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(_,w),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(k,w),t.runCount=0,t},e.prototype._updateTaskCount=function(t,e){var n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(var r=0;r0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t})},t}(),l=function(){function e(n,r,o,i,a,c){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=a,this.cancelFn=c,!o)throw new Error("callback is not defined");this.callback=o;var u=this;this.invoke=n===I&&i&&i.useG?e.invokeTask:function(){return e.invokeTask.call(t,u,this,arguments)}}return e.invokeTask=function(t,e,n){t||(t=this),M++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==M&&b(),M--}},Object.defineProperty(e.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),e.prototype.cancelScheduleRequest=function(){this._transitionTo(k,E)},e.prototype._transitionTo=function(t,e,n){if(this._state!==e&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+t+"', expecting state '"+e+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=t,t==k&&(this._zoneDelegates=null)},e.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},e.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},e}(),p=i("setTimeout"),h=i("Promise"),v=i("then"),d=[],g=!1;function y(e){if(0===M&&0===d.length)if(u||t[h]&&(u=t[h].resolve(0)),u){var n=u[v];n||(n=u.then),n.call(u,b)}else t[p](b,0);e&&d.push(e)}function b(){if(!g){for(g=!0;d.length;){var t=d;d=[];for(var e=0;e=0;n--)"function"==typeof t[n]&&(t[n]=u(t[n],e+"_"+n));return t}function g(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&void 0===t.set)}var y="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,b=!("nw"in h)&&void 0!==h.process&&"[object process]"==={}.toString.call(h.process),m=!b&&!y&&!(!l||!p.HTMLElement),k=void 0!==h.process&&"[object process]"==={}.toString.call(h.process)&&!y&&!(!l||!p.HTMLElement),E={},S=function(t){if(t=t||h.event){var e=E[t.type];e||(e=E[t.type]=f("ON_PROPERTY"+t.type));var n,r=this||t.target||h,o=r[e];if(m&&r===p&&"error"===t.type){var i=t;!0===(n=o&&o.call(this,i.message,i.filename,i.lineno,i.colno,i.error))&&t.preventDefault()}else null==(n=o&&o.apply(this,arguments))||n||t.preventDefault();return n}};function x(n,r,o){var i=t(n,r);if(!i&&o&&t(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){var a=f("on"+r+"patched");if(!n.hasOwnProperty(a)||!n[a]){delete i.writable,delete i.value;var c=i.get,u=i.set,s=r.substr(2),l=E[s];l||(l=E[s]=f("ON_PROPERTY"+s)),i.set=function(t){var e=this;e||n!==h||(e=h),e&&(e[l]&&e.removeEventListener(s,S),u&&u.apply(e,v),"function"==typeof t?(e[l]=t,e.addEventListener(s,S,!1)):e[l]=null)},i.get=function(){var t=this;if(t||n!==h||(t=h),!t)return null;var e=t[l];if(e)return e;if(c){var o=c&&c.call(this);if(o)return i.set.call(this,o),"function"==typeof t.removeAttribute&&t.removeAttribute(r),o}return null},e(n,r,i),n[a]=!0}}}function w(t,e,n){if(e)for(var r=0;r=0&&"function"==typeof r[i.cbIdx]?s(i.name,r[i.cbIdx],i,o):t.apply(e,r)}}))}function j(t,e){t[f("OriginalDelegate")]=e}var P=!1,R=!1;function D(){try{var t=p.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch(e){}return!1}function M(){if(P)return R;P=!0;try{var t=p.navigator.userAgent;-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(R=!0)}catch(e){}return R}Zone.__load_patch("toString",(function(t){var e=Function.prototype.toString,n=f("OriginalDelegate"),r=f("Promise"),o=f("Error"),i=function(){if("function"==typeof this){var i=this[n];if(i)return"function"==typeof i?e.call(i):Object.prototype.toString.call(i);if(this===Promise){var a=t[r];if(a)return e.call(a)}if(this===Error){var c=t[o];if(c)return e.call(c)}}return e.call(this)};i[n]=e,Function.prototype.toString=i;var a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}}));var A=!1;if("undefined"!=typeof window)try{var N=Object.defineProperty({},"passive",{get:function(){A=!0}});window.addEventListener("test",N,N),window.removeEventListener("test",N,N)}catch(kt){A=!1}var C={useG:!0},L={},Z={},F=new RegExp("^"+c+"(\\w+)(true|false)$"),z=f("propagationStopped");function W(t,e){var n=(e?e(t):t)+"false",r=(e?e(t):t)+"true",o=c+n,i=c+r;L[t]={},L[t].false=o,L[t].true=i}function U(t,e,r){var o=r&&r.add||"addEventListener",i=r&&r.rm||"removeEventListener",a=r&&r.listeners||"eventListeners",u=r&&r.rmAll||"removeAllListeners",s=f(o),l="."+o+":",p=function(t,e,n){if(!t.isRemoved){var r=t.callback;"object"==typeof r&&r.handleEvent&&(t.callback=function(t){return r.handleEvent(t)},t.originalDelegate=r),t.invoke(t,e,[n]);var o=t.options;o&&"object"==typeof o&&o.once&&e[i].call(e,n.type,t.originalDelegate?t.originalDelegate:t.callback,o)}},h=function(e){if(e=e||t.event){var n=this||e.target||t,r=n[L[e.type].false];if(r)if(1===r.length)p(r[0],n,e);else for(var o=r.slice(),i=0;i1?new i(e,n):new i(e),s=t.ObjectGetOwnPropertyDescriptor(u,"onmessage");return s&&!1===s.configurable?(a=t.ObjectCreate(u),c=u,[r,o,"send","close"].forEach((function(e){a[e]=function(){var n=t.ArraySlice.call(arguments);if(e===r||e===o){var i=n.length>0?n[0]:void 0;if(i){var c=Zone.__symbol__("ON_PROPERTY"+i);u[c]=a[c]}}return u[e].apply(u,n)}}))):a=u,t.patchOnProperties(a,["close","error","message","open"],c),a};var a=e.WebSocket;for(var c in i)a[c]=i[c]}(t,e),Zone[t.symbol("patchEvents")]=!0}}Zone.__load_patch("util",(function(n,i,a){a.patchOnProperties=w,a.patchMethod=O,a.bindArguments=d,a.patchMacroTask=I;var s=i.__symbol__("BLACK_LISTED_EVENTS"),f=i.__symbol__("UNPATCHED_EVENTS");n[f]&&(n[s]=n[f]),n[s]&&(i[s]=i[f]=n[s]),a.patchEventPrototype=B,a.patchEventTarget=U,a.isIEOrEdge=M,a.ObjectDefineProperty=e,a.ObjectGetOwnPropertyDescriptor=t,a.ObjectCreate=r,a.ArraySlice=o,a.patchClass=T,a.wrapWithCurrentZone=u,a.filterProperties=ct,a.attachOriginToPatched=j,a._redefineProperty=Object.defineProperty,a.patchCallbacks=H,a.getGlobalObjects=function(){return{globalSources:Z,zoneSymbolEventNames:L,eventNames:at,isBrowser:m,isMix:k,isNode:b,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:c,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}})),function(t){t[(t.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch"]=function(){var e=t.Zone;e.__load_patch("defineProperty",(function(t,e,n){n._redefineProperty=lt,ft()})),e.__load_patch("registerElement",(function(t,e,n){!function(t,e){var n=e.getGlobalObjects();(n.isBrowser||n.isMix)&&"registerElement"in t.document&&e.patchCallbacks(e,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(t,n)})),e.__load_patch("EventTargetLegacy",(function(t,e,n){dt(t,n),gt(n,t)}))}}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});var yt=f("zoneTask");function bt(t,e,n,r){var o=null,i=null;n+=r;var a={};function c(e){var n=e.data;return n.args[0]=function(){try{e.invoke.apply(this,arguments)}finally{e.data&&e.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[yt]=null))}},n.handleId=o.apply(t,n.args),e}function u(t){return i(t.data.handleId)}o=O(t,e+=r,(function(n){return function(o,i){if("function"==typeof i[0]){var f=s(e,i[0],{isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},c,u);if(!f)return f;var l=f.data.handleId;return"number"==typeof l?a[l]=f:l&&(l[yt]=f),l&&l.ref&&l.unref&&"function"==typeof l.ref&&"function"==typeof l.unref&&(f.ref=l.ref.bind(l),f.unref=l.unref.bind(l)),"number"==typeof l||l?l:f}return n.apply(t,i)}})),i=O(t,n,(function(e){return function(n,r){var o,i=r[0];"number"==typeof i?o=a[i]:(o=i&&i[yt])||(o=i),o&&"string"==typeof o.type?"notScheduled"!==o.state&&(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&("number"==typeof i?delete a[i]:i&&(i[yt]=null),o.zone.cancelTask(o)):e.apply(t,r)}}))}function mt(t,e){if(!Zone[e.symbol("patchEventTarget")]){for(var n=e.getGlobalObjects(),r=n.eventNames,o=n.zoneSymbolEventNames,i=n.TRUE_STR,a=n.FALSE_STR,c=n.ZONE_SYMBOL_PREFIX,u=0;u0){var o=t.invoke;t.invoke=function(){for(var n=u[e.__symbol__("loadfalse")],i=0;i")})),f="$0"==="a".replace(/./,"$0"),l=i("replace"),p=!!/./[l]&&""===/./[l]("a","$0"),h=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,l){var v=i(t),d=!o((function(){var e={};return e[v]=function(){return 7},7!=""[t](e)})),g=d&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[v]=/./[v]),n.exec=function(){return e=!0,null},n[v](""),!e}));if(!d||!g||"replace"===t&&(!s||!f||p)||"split"===t&&!h){var y=/./[v],b=n(v,""[t],(function(t,e,n,r,o){return e.exec===a?d&&!o?{done:!0,value:y.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),m=b[1];r(String.prototype,t,b[0]),r(RegExp.prototype,v,2==e?function(t,e){return m.call(t,this,e)}:function(t){return m.call(t,this)})}l&&c(RegExp.prototype[v],"sham",!0)}},"1E5z":function(t,e,n){var r=n("m/L8").f,o=n("UTVS"),i=n("tiKp")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},"1Y/n":function(t,e,n){var r=n("HAuM"),o=n("ewvW"),i=n("RK3t"),a=n("UMSQ"),c=function(t){return function(e,n,c,u){r(n);var s=o(e),f=i(s),l=a(s.length),p=t?l-1:0,h=t?-1:1;if(c<2)for(;;){if(p in f){u=f[p],p+=h;break}if(p+=h,t?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;t?p>=0:l>p;p+=h)p in f&&(u=n(u,f[p],p,s));return u}};t.exports={left:c(!1),right:c(!0)}},"2A+d":function(t,e,n){var r=n("I+eb"),o=n("/GqU"),i=n("UMSQ");r({target:"String",stat:!0},{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],c=0;n>c;)a.push(String(e[c++])),c1?arguments[1]:void 0)}})},"2oRo":function(t,e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},"33Wh":function(t,e,n){var r=n("yoRg"),o=n("eDl+");t.exports=Object.keys||function(t){return r(t,o)}},"3I1R":function(t,e,n){n("dG/n")("hasInstance")},"3KgV":function(t,e,n){var r=n("I+eb"),o=n("uy83"),i=n("0Dky"),a=n("hh1v"),c=n("8YOa").onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){u(1)})),sham:!o},{freeze:function(t){return u&&a(t)?u(c(t)):t}})},"3bBZ":function(t,e,n){var r=n("2oRo"),o=n("/byt"),i=n("4mDm"),a=n("kRJp"),c=n("tiKp"),u=c("iterator"),s=c("toStringTag"),f=i.values;for(var l in o){var p=r[l],h=p&&p.prototype;if(h){if(h[u]!==f)try{a(h,u,f)}catch(d){h[u]=f}if(h[s]||a(h,s,l),o[l])for(var v in i)if(h[v]!==i[v])try{a(h,v,i[v])}catch(d){h[v]=i[v]}}}},"4Brf":function(t,e,n){"use strict";var r=n("I+eb"),o=n("g6v/"),i=n("2oRo"),a=n("UTVS"),c=n("hh1v"),u=n("m/L8").f,s=n("6JNq"),f=i.Symbol;if(o&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new f(t):void 0===t?f():f(t);return""===t&&(l[e]=!0),e};s(p,f);var h=p.prototype=f.prototype;h.constructor=p;var v=h.toString,d="Symbol(test)"==String(f("test")),g=/^Symbol\((.*)\)[^)]+$/;u(h,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=v.call(t);if(a(l,t))return"";var n=d?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},"4WOD":function(t,e,n){var r=n("UTVS"),o=n("ewvW"),i=n("93I0"),a=n("4Xet"),c=i("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},"4Xet":function(t,e,n){var r=n("0Dky");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"4h0Y":function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("hh1v"),a=Object.isFrozen;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isFrozen:function(t){return!i(t)||!!a&&a(t)}})},"4l63":function(t,e,n){var r=n("I+eb"),o=n("wg0c");r({global:!0,forced:parseInt!=o},{parseInt:o})},"4mDm":function(t,e,n){"use strict";var r=n("/GqU"),o=n("RNIs"),i=n("P4y1"),a=n("afO8"),c=n("fdAy"),u=a.set,s=a.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){u(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},"4oU/":function(t,e,n){var r=n("2oRo").isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},"4syw":function(t,e,n){var r=n("busE");t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},"5D5o":function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("hh1v"),a=Object.isSealed;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isSealed:function(t){return!i(t)||!!a&&a(t)}})},"5DmW":function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("/GqU"),a=n("Bs8V").f,c=n("g6v/"),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!c||u,sham:!c},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},"5Tg+":function(t,e,n){var r=n("tiKp");e.f=r},"5Yz+":function(t,e,n){"use strict";var r=n("/GqU"),o=n("ppGB"),i=n("UMSQ"),a=n("pkCn"),c=n("rkAj"),u=Math.min,s=[].lastIndexOf,f=!!s&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf"),p=c("indexOf",{ACCESSORS:!0,1:0});t.exports=!f&&l&&p?s:function(t){if(f)return s.apply(this,arguments)||0;var e=r(this),n=i(e.length),a=n-1;for(arguments.length>1&&(a=u(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}},"5mdu":function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},"5s+n":function(t,e,n){"use strict";var r,o,i,a,c=n("I+eb"),u=n("xDBR"),s=n("2oRo"),f=n("0GbY"),l=n("/qmn"),p=n("busE"),h=n("4syw"),v=n("1E5z"),d=n("JiZb"),g=n("hh1v"),y=n("HAuM"),b=n("GarU"),m=n("xrYK"),k=n("iSVu"),E=n("ImZN"),S=n("HH4o"),x=n("SEBh"),w=n("LPSS").set,_=n("tXUg"),T=n("zfnd"),O=n("RN6c"),I=n("8GlL"),j=n("5mdu"),P=n("afO8"),R=n("lMq5"),D=n("tiKp"),M=n("LQDL"),A=D("species"),N="Promise",C=P.get,L=P.set,Z=P.getterFor(N),F=l,z=s.TypeError,W=s.document,U=s.process,G=f("fetch"),B=I.f,H=B,K="process"==m(U),V=!!(W&&W.createEvent&&s.dispatchEvent),Y=R(N,(function(){if(k(F)===String(F)){if(66===M)return!0;if(!K&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!F.prototype.finally)return!0;if(M>=51&&/native code/.test(F))return!1;var t=F.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[A]=e,!(t.then((function(){}))instanceof e)})),q=Y||!S((function(t){F.all(t).catch((function(){}))})),X=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},J=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;_((function(){for(var o=e.value,i=1==e.state,a=0;r.length>a;){var c,u,s,f=r[a++],l=i?f.ok:f.fail,p=f.resolve,h=f.reject,v=f.domain;try{l?(i||(2===e.rejection&&et(t,e),e.rejection=1),!0===l?c=o:(v&&v.enter(),c=l(o),v&&(v.exit(),s=!0)),c===f.promise?h(z("Promise-chain cycle")):(u=X(c))?u.call(c,p,h):p(c)):h(o)}catch(d){v&&!s&&v.exit(),h(d)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&$(t,e)}))}},Q=function(t,e,n){var r,o;V?((r=W.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},(o=s["on"+t])?o(r):"unhandledrejection"===t&&O("Unhandled promise rejection",n)},$=function(t,e){w.call(s,(function(){var n,r=e.value;if(tt(e)&&(n=j((function(){K?U.emit("unhandledRejection",r,t):Q("unhandledrejection",t,r)})),e.rejection=K||tt(e)?2:1,n.error))throw n.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){w.call(s,(function(){K?U.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)}))},nt=function(t,e,n,r){return function(o){t(e,n,o,r)}},rt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,J(t,e,!0))},ot=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw z("Promise can't be resolved itself");var o=X(n);o?_((function(){var r={done:!1};try{o.call(n,nt(ot,t,r,e),nt(rt,t,r,e))}catch(i){rt(t,r,i,e)}})):(e.value=n,e.state=1,J(t,e,!1))}catch(i){rt(t,{done:!1},i,e)}}};Y&&(F=function(t){b(this,F,N),y(t),r.call(this);var e=C(this);try{t(nt(ot,this,e),nt(rt,this,e))}catch(n){rt(this,e,n)}},(r=function(t){L(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(F.prototype,{then:function(t,e){var n=Z(this),r=B(x(this,F));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=K?U.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&J(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=C(t);this.promise=t,this.resolve=nt(ot,t,e),this.reject=nt(rt,t,e)},I.f=B=function(t){return t===F||t===i?new o(t):H(t)},u||"function"!=typeof l||(a=l.prototype.then,p(l.prototype,"then",(function(t,e){var n=this;return new F((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof G&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return T(F,G.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:Y},{Promise:F}),v(F,N,!1,!0),d(N),i=f(N),c({target:N,stat:!0,forced:Y},{reject:function(t){var e=B(this);return e.reject.call(void 0,t),e.promise}}),c({target:N,stat:!0,forced:u||Y},{resolve:function(t){return T(u&&this===i?F:this,t)}}),c({target:N,stat:!0,forced:q},{all:function(t){var e=this,n=B(e),r=n.resolve,o=n.reject,i=j((function(){var n=y(e.resolve),i=[],a=0,c=1;E(t,(function(t){var u=a++,s=!1;i.push(void 0),c++,n.call(e,t).then((function(t){s||(s=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=B(e),r=n.reject,o=j((function(){var o=y(e.resolve);E(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},"5uH8":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},"6JNq":function(t,e,n){var r=n("UTVS"),o=n("Vu81"),i=n("Bs8V"),a=n("m/L8");t.exports=function(t,e){for(var n=o(e),c=a.f,u=i.f,s=0;s1?arguments[1]:void 0)}})},"9bJ7":function(t,e,n){"use strict";var r=n("I+eb"),o=n("ZUd8").codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return o(this,t)}})},"9d/t":function(t,e,n){var r=n("AO7/"),o=n("xrYK"),i=n("tiKp")("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),i))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},"9mRW":function(t,e,n){n("I+eb")({target:"Math",stat:!0},{fround:n("vo4V")})},"9tb/":function(t,e,n){var r=n("I+eb"),o=n("I8vh"),i=String.fromCharCode,a=String.fromCodePoint;r({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},A2ZE:function(t,e,n){var r=n("HAuM");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"AO7/":function(t,e,n){var r={};r[n("tiKp")("toStringTag")]="z",t.exports="[object z]"===String(r)},AmFO:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("jrUv"),a=Math.abs,c=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){return a(t=+t)<1?(i(t)-i(-t))/2:(c(t-1)-c(-t-1))*(u/2)}})},BNMt:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("blink")},{blink:function(){return o(this,"blink","","")}})},BTho:function(t,e,n){"use strict";var r=n("HAuM"),o=n("hh1v"),i=[].slice,a={},c=function(t,e,n){if(!(e in a)){for(var r=[],o=0;ou&&(s=s.slice(0,u)),t?f+s:s+f)}};t.exports={start:c(!1),end:c(!0)}},DPsx:function(t,e,n){var r=n("g6v/"),o=n("0Dky"),i=n("zBJ4");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},DQNa:function(t,e,n){var r=n("busE"),o=Date.prototype,i=o.toString,a=o.getTime;new Date(NaN)+""!="Invalid Date"&&r(o,"toString",(function(){var t=a.call(this);return t==t?i.call(this):"Invalid Date"}))},E5NM:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("big")},{big:function(){return o(this,"big","","")}})},E9XD:function(t,e,n){"use strict";var r=n("I+eb"),o=n("1Y/n").left,i=n("pkCn"),a=n("rkAj"),c=i("reduce"),u=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!c||!u},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},ENF9:function(t,e,n){"use strict";var r,o=n("2oRo"),i=n("4syw"),a=n("8YOa"),c=n("bWFh"),u=n("rKzb"),s=n("hh1v"),f=n("afO8").enforce,l=n("f5p1"),p=!o.ActiveXObject&&"ActiveXObject"in o,h=Object.isExtensible,v=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},d=t.exports=c("WeakMap",v,u);if(l&&p){r=u.getConstructor(v,"WeakMap",!0),a.REQUIRED=!0;var g=d.prototype,y=g.delete,b=g.has,m=g.get,k=g.set;i(g,{delete:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),y.call(this,t)||e.frozen.delete(t)}return y.call(this,t)},has:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),b.call(this,t)||e.frozen.has(t)}return b.call(this,t)},get:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),b.call(this,t)?m.call(this,t):e.frozen.get(t)}return m.call(this,t)},set:function(t,e){if(s(t)&&!h(t)){var n=f(this);n.frozen||(n.frozen=new r),b.call(this,t)?k.call(this,t,e):n.frozen.set(t,e)}else k.call(this,t,e);return this}})}},EUja:function(t,e,n){"use strict";var r=n("ppGB"),o=n("HYAF");t.exports="".repeat||function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},EnZy:function(t,e,n){"use strict";var r=n("14Sl"),o=n("ROdP"),i=n("glrk"),a=n("HYAF"),c=n("SEBh"),u=n("iqWW"),s=n("UMSQ"),f=n("FMNM"),l=n("kmMV"),p=n("0Dky"),h=[].push,v=Math.min,d=!p((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(a(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!o(t))return e.call(r,t,i);for(var c,u,s,f=[],p=0,v=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(c=l.call(v,r))&&!((u=v.lastIndex)>p&&(f.push(r.slice(p,c.index)),c.length>1&&c.index=i));)v.lastIndex===c.index&&v.lastIndex++;return p===r.length?!s&&v.test("")||f.push(""):f.push(r.slice(p)),f.length>i?f.slice(0,i):f}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=a(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var a=n(r,t,this,o,r!==e);if(a.done)return a.value;var l=i(t),p=String(this),h=c(l,RegExp),g=l.unicode,y=new h(d?l:"^(?:"+l.source+")",(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(d?"y":"g")),b=void 0===o?4294967295:o>>>0;if(0===b)return[];if(0===p.length)return null===f(y,p)?[p]:[];for(var m=0,k=0,E=[];k1?arguments[1]:void 0)}},FF6l:function(t,e,n){"use strict";var r=n("ewvW"),o=n("I8vh"),i=n("UMSQ"),a=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),c=i(n.length),u=o(t,c),s=o(e,c),f=arguments.length>2?arguments[2]:void 0,l=a((void 0===f?c:o(f,c))-s,c-u),p=1;for(s0;)s in n?n[u]=n[s]:delete n[u],u+=p,s+=p;return n}},FMNM:function(t,e,n){var r=n("xrYK"),o=n("kmMV");t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},FZtP:function(t,e,n){var r=n("2oRo"),o=n("/byt"),i=n("F8JR"),a=n("kRJp");for(var c in o){var u=r[c],s=u&&u.prototype;if(s&&s.forEach!==i)try{a(s,"forEach",i)}catch(f){s.forEach=i}}},"G+Rx":function(t,e,n){var r=n("0GbY");t.exports=r("document","documentElement")},GKVU:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("anchor")},{anchor:function(t){return o(this,"a","name",t)}})},GRPF:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("fontsize")},{fontsize:function(t){return o(this,"font","size",t)}})},GXvd:function(t,e,n){n("dG/n")("species")},GarU:function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},H0pb:function(t,e,n){n("ma9I"),n("07d7"),n("pNMO"),n("tjZM"),n("4Brf"),n("3I1R"),n("7+kd"),n("0oug"),n("KhsS"),n("jt2F"),n("gOCb"),n("a57n"),n("GXvd"),n("I1Gw"),n("gXIK"),n("lEou"),n("gbiT"),n("I9xj"),n("DEfu");var r=n("Qo9l");t.exports=r.Symbol},HAuM:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},HH4o:function(t,e,n){var r=n("tiKp")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(c){}return n}},HNyW:function(t,e,n){var r=n("NC/Y");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},HRxU:function(t,e,n){var r=n("I+eb"),o=n("g6v/");r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n("N+g0")})},HYAF:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},Hd5f:function(t,e,n){var r=n("0Dky"),o=n("tiKp"),i=n("LQDL"),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},HsHA:function(t,e){var n=Math.log;t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:n(1+t)}},"I+eb":function(t,e,n){var r=n("2oRo"),o=n("Bs8V").f,i=n("kRJp"),a=n("busE"),c=n("zk60"),u=n("6JNq"),s=n("lMq5");t.exports=function(t,e){var n,f,l,p,h,v=t.target,d=t.global,g=t.stat;if(n=d?r:g?r[v]||c(v,{}):(r[v]||{}).prototype)for(f in e){if(p=e[f],l=t.noTargetGet?(h=o(n,f))&&h.value:n[f],!s(d?f:v+(g?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;u(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),a(n,f,p,t)}}},I1Gw:function(t,e,n){n("dG/n")("split")},I8vh:function(t,e,n){var r=n("ppGB"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},I9xj:function(t,e,n){n("1E5z")(Math,"Math",!0)},ImZN:function(t,e,n){var r=n("glrk"),o=n("6VoE"),i=n("UMSQ"),a=n("A2ZE"),c=n("NaFW"),u=n("m92n"),s=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,f,l){var p,h,v,d,g,y,b,m=a(e,n,f?2:1);if(l)p=t;else{if("function"!=typeof(h=c(t)))throw TypeError("Target is not iterable");if(o(h)){for(v=0,d=i(t.length);d>v;v++)if((g=f?m(r(b=t[v])[0],b[1]):m(t[v]))&&g instanceof s)return g;return new s(!1)}p=h.call(t)}for(y=p.next;!(b=y.call(p)).done;)if("object"==typeof(g=u(p,m,b.value,f))&&g&&g instanceof s)return g;return new s(!1)}).stop=function(t){return new s(!0,t)}},IxXR:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("strike")},{strike:function(){return o(this,"strike","","")}})},J30X:function(t,e,n){n("I+eb")({target:"Array",stat:!0},{isArray:n("6LWA")})},JBy8:function(t,e,n){var r=n("yoRg"),o=n("eDl+").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},JTJg:function(t,e,n){"use strict";var r=n("I+eb"),o=n("WjRb"),i=n("HYAF");r({target:"String",proto:!0,forced:!n("qxPZ")("includes")},{includes:function(t){return!!~String(i(this)).indexOf(o(t),arguments.length>1?arguments[1]:void 0)}})},JevA:function(t,e,n){var r=n("I+eb"),o=n("wg0c");r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},JfAA:function(t,e,n){"use strict";var r=n("busE"),o=n("glrk"),i=n("0Dky"),a=n("rW0t"),c=RegExp.prototype,u=c.toString;(i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))||"toString"!=u.name)&&r(RegExp.prototype,"toString",(function(){var t=o(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in c)?a.call(t):n)}),{unsafe:!0})},JiZb:function(t,e,n){"use strict";var r=n("0GbY"),o=n("m/L8"),i=n("tiKp"),a=n("g6v/"),c=i("species");t.exports=function(t){var e=r(t);a&&e&&!e[c]&&(0,o.f)(e,c,{configurable:!0,get:function(){return this}})}},KhsS:function(t,e,n){n("dG/n")("match")},KvGi:function(t,e,n){n("I+eb")({target:"Math",stat:!0},{sign:n("90hW")})},Kxld:function(t,e,n){n("I+eb")({target:"Object",stat:!0},{is:n("Ep9I")})},LKBx:function(t,e,n){"use strict";var r,o=n("I+eb"),i=n("Bs8V").f,a=n("UMSQ"),c=n("WjRb"),u=n("HYAF"),s=n("qxPZ"),f=n("xDBR"),l="".startsWith,p=Math.min,h=s("startsWith");o({target:"String",proto:!0,forced:!(!f&&!h&&(r=i(String.prototype,"startsWith"),r&&!r.writable)||h)},{startsWith:function(t){var e=String(u(this));c(t);var n=a(p(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return l?l.call(e,r,n):e.slice(n,n+r.length)===r}})},LPSS:function(t,e,n){var r,o,i,a=n("2oRo"),c=n("0Dky"),u=n("xrYK"),s=n("A2ZE"),f=n("G+Rx"),l=n("zBJ4"),p=n("HNyW"),h=a.location,v=a.setImmediate,d=a.clearImmediate,g=a.process,y=a.MessageChannel,b=a.Dispatch,m=0,k={},E=function(t){if(k.hasOwnProperty(t)){var e=k[t];delete k[t],e()}},S=function(t){return function(){E(t)}},x=function(t){E(t.data)},w=function(t){a.postMessage(t+"",h.protocol+"//"+h.host)};v&&d||(v=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return k[++m]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(m),m},d=function(t){delete k[t]},"process"==u(g)?r=function(t){g.nextTick(S(t))}:b&&b.now?r=function(t){b.now(S(t))}:y&&!p?(i=(o=new y).port2,o.port1.onmessage=x,r=s(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(w)?r="onreadystatechange"in l("script")?function(t){f.appendChild(l("script")).onreadystatechange=function(){f.removeChild(this),E(t)}}:function(t){setTimeout(S(t),0)}:(r=w,a.addEventListener("message",x,!1))),t.exports={set:v,clear:d}},LQDL:function(t,e,n){var r,o,i=n("2oRo"),a=n("NC/Y"),c=i.process,u=c&&c.versions,s=u&&u.v8;s?o=(r=s.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},"N+g0":function(t,e,n){var r=n("g6v/"),o=n("m/L8"),i=n("glrk"),a=n("33Wh");t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),c=r.length,u=0;c>u;)o.f(t,n=r[u++],e[n]);return t}},NBAS:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("ewvW"),a=n("4WOD"),c=n("4Xet");r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!c},{getPrototypeOf:function(t){return a(i(t))}})},"NC/Y":function(t,e,n){var r=n("0GbY");t.exports=r("navigator","userAgent")||""},NaFW:function(t,e,n){var r=n("9d/t"),o=n("P4y1"),i=n("tiKp")("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"NbN+":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},O741:function(t,e,n){var r=n("hh1v");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},OM9Z:function(t,e,n){n("I+eb")({target:"String",proto:!0},{repeat:n("EUja")})},P4y1:function(t,e){t.exports={}},PKPk:function(t,e,n){"use strict";var r=n("ZUd8").charAt,o=n("afO8"),i=n("fdAy"),a=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=c(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},PqOI:function(t,e,n){var r=n("I+eb"),o=n("90hW"),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){return o(t=+t)*a(i(t),1/3)}})},QFcT:function(t,e,n){var r=n("I+eb"),o=Math.hypot,i=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,r,o=0,c=0,u=arguments.length,s=0;c0?(r=n/s)*r:n;return s===1/0?1/0:s*a(o)}})},QIpd:function(t,e,n){var r=n("xrYK");t.exports=function(t){if("number"!=typeof t&&"Number"!=r(t))throw TypeError("Incorrect invocation");return+t}},QNnp:function(t,e,n){var r=n("I+eb"),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-o(i(t+.5)*a):32}})},QWBl:function(t,e,n){"use strict";var r=n("I+eb"),o=n("F8JR");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},Qo9l:function(t,e,n){var r=n("2oRo");t.exports=r},RK3t:function(t,e,n){var r=n("0Dky"),o=n("xrYK"),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},RN6c:function(t,e,n){var r=n("2oRo");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},RNIs:function(t,e,n){var r=n("tiKp"),o=n("fHMY"),i=n("m/L8"),a=r("unscopables"),c=Array.prototype;null==c[a]&&i.f(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},ROdP:function(t,e,n){var r=n("hh1v"),o=n("xrYK"),i=n("tiKp")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},Rfxz:function(t,e,n){"use strict";var r=n("I+eb"),o=n("tycR").some,i=n("pkCn"),a=n("rkAj"),c=i("some"),u=a("some");r({target:"Array",proto:!0,forced:!c||!u},{some:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},Rm1S:function(t,e,n){"use strict";var r=n("14Sl"),o=n("glrk"),i=n("UMSQ"),a=n("HYAF"),c=n("iqWW"),u=n("FMNM");r("match",1,(function(t,e,n){return[function(e){var n=a(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var a=o(t),s=String(this);if(!a.global)return u(a,s);var f=a.unicode;a.lastIndex=0;for(var l,p=[],h=0;null!==(l=u(a,s));){var v=String(l[0]);p[h]=v,""===v&&(a.lastIndex=c(s,i(a.lastIndex),f)),h++}return 0===h?null:p}]}))},SEBh:function(t,e,n){var r=n("glrk"),o=n("HAuM"),i=n("tiKp")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},STAE:function(t,e,n){var r=n("0Dky");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},SYor:function(t,e,n){"use strict";var r=n("I+eb"),o=n("WKiH").trim;r({target:"String",proto:!0,forced:n("yNLB")("trim")},{trim:function(){return o(this)}})},TFPT:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("sub")},{sub:function(){return o(this,"sub","","")}})},TWNs:function(t,e,n){var r=n("g6v/"),o=n("2oRo"),i=n("lMq5"),a=n("cVYH"),c=n("m/L8").f,u=n("JBy8").f,s=n("ROdP"),f=n("rW0t"),l=n("n3/R"),p=n("busE"),h=n("0Dky"),v=n("afO8").set,d=n("JiZb"),g=n("tiKp")("match"),y=o.RegExp,b=y.prototype,m=/a/g,k=/a/g,E=new y(m)!==m,S=l.UNSUPPORTED_Y;if(r&&i("RegExp",!E||S||h((function(){return k[g]=!1,y(m)!=m||y(k)==k||"/a/i"!=y(m,"i")})))){for(var x=function(t,e){var n,r=this instanceof x,o=s(t),i=void 0===e;if(!r&&o&&t.constructor===x&&i)return t;E?o&&!i&&(t=t.source):t instanceof x&&(i&&(e=f.call(t)),t=t.source),S&&(n=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var c=a(E?new y(t,e):y(t,e),r?this:b,x);return S&&n&&v(c,{sticky:n}),c},w=function(t){t in x||c(x,t,{configurable:!0,get:function(){return y[t]},set:function(e){y[t]=e}})},_=u(y),T=0;_.length>T;)w(_[T++]);b.constructor=x,x.prototype=b,p(o,"RegExp",x)}d("RegExp")},TWQb:function(t,e,n){var r=n("/GqU"),o=n("UMSQ"),i=n("I8vh"),a=function(t){return function(e,n,a){var c,u=r(e),s=o(u.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((c=u[f++])!=c)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},TeQF:function(t,e,n){"use strict";var r=n("I+eb"),o=n("tycR").filter,i=n("Hd5f"),a=n("rkAj"),c=i("filter"),u=a("filter");r({target:"Array",proto:!0,forced:!c||!u},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},TfTi:function(t,e,n){"use strict";var r=n("A2ZE"),o=n("ewvW"),i=n("m92n"),a=n("6VoE"),c=n("UMSQ"),u=n("hBjN"),s=n("NaFW");t.exports=function(t){var e,n,f,l,p,h,v=o(t),d="function"==typeof this?this:Array,g=arguments.length,y=g>1?arguments[1]:void 0,b=void 0!==y,m=s(v),k=0;if(b&&(y=r(y,g>2?arguments[2]:void 0,2)),null==m||d==Array&&a(m))for(n=new d(e=c(v.length));e>k;k++)h=b?y(v[k],k):v[k],u(n,k,h);else for(p=(l=m.call(v)).next,n=new d;!(f=p.call(l)).done;k++)h=b?i(l,y,[f.value,k],!0):f.value,u(n,k,h);return n.length=k,n}},ToJy:function(t,e,n){"use strict";var r=n("I+eb"),o=n("HAuM"),i=n("ewvW"),a=n("0Dky"),c=n("pkCn"),u=[],s=u.sort,f=a((function(){u.sort(void 0)})),l=a((function(){u.sort(null)})),p=c("sort");r({target:"Array",proto:!0,forced:f||!l||!p},{sort:function(t){return void 0===t?s.call(i(this)):s.call(i(this),o(t))}})},Tskq:function(t,e,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},U3f4:function(t,e,n){var r=n("g6v/"),o=n("m/L8"),i=n("rW0t"),a=n("n3/R").UNSUPPORTED_Y;r&&("g"!=/./g.flags||a)&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},UMSQ:function(t,e,n){var r=n("ppGB"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},UTVS:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},UesL:function(t,e,n){"use strict";var r=n("glrk"),o=n("wE6v");t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!==t)}},UxlC:function(t,e,n){"use strict";var r=n("14Sl"),o=n("glrk"),i=n("ewvW"),a=n("UMSQ"),c=n("ppGB"),u=n("HYAF"),s=n("iqWW"),f=n("FMNM"),l=Math.max,p=Math.min,h=Math.floor,v=/\$([$&'`]|\d\d?|<[^>]*>)/g,d=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(t,e,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,b=g?"$":"$0";return[function(n,r){var o=u(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!g&&y||"string"==typeof r&&-1===r.indexOf(b)){var i=n(e,t,this,r);if(i.done)return i.value}var u=o(t),h=String(this),v="function"==typeof r;v||(r=String(r));var d=u.global;if(d){var k=u.unicode;u.lastIndex=0}for(var E=[];;){var S=f(u,h);if(null===S)break;if(E.push(S),!d)break;""===String(S[0])&&(u.lastIndex=s(h,a(u.lastIndex),k))}for(var x,w="",_=0,T=0;T=_&&(w+=h.slice(_,I)+M,_=I+O.length)}return w+h.slice(_)}];function m(t,n,r,o,a,c){var u=r+t.length,s=o.length,f=d;return void 0!==a&&(a=i(a),f=v),e.call(c,f,(function(e,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":c=a[i.slice(1,-1)];break;default:var f=+i;if(0===f)return e;if(f>s){var l=h(f/10);return 0===l?e:l<=s?void 0===o[l-1]?i.charAt(1):o[l-1]+i.charAt(1):e}c=o[f-1]}return void 0===c?"":c}))}}))},Uydy:function(t,e,n){var r=n("I+eb"),o=n("HsHA"),i=Math.acosh,a=Math.log,c=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?a(t)+u:o(t-1+c(t-1)*c(t+1))}})},VC3L:function(t,e,n){"use strict";var r=n("I+eb"),o=n("0Dky"),i=n("QIpd"),a=1..toPrecision;r({target:"Number",proto:!0,forced:o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))},{toPrecision:function(t){return void 0===t?a.call(i(this)):a.call(i(this),t)}})},VpIT:function(t,e,n){var r=n("xDBR"),o=n("xs3f");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},Vu81:function(t,e,n){var r=n("0GbY"),o=n("JBy8"),i=n("dBg+"),a=n("glrk");t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},WDsR:function(t,e,n){var r=n("I+eb"),o=n("Xol8"),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},WJkJ:function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},WKiH:function(t,e,n){var r=n("HYAF"),o="["+n("WJkJ")+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),c=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(a,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},WjRb:function(t,e,n){var r=n("ROdP");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},XGwC:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},Xe3L:function(t,e,n){"use strict";var r=n("I+eb"),o=n("0Dky"),i=n("hBjN");r({target:"Array",stat:!0,forced:o((function(){function t(){}return!(Array.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},Xol8:function(t,e,n){var r=n("hh1v"),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},YGK4:function(t,e,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");t.exports=r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},YNrV:function(t,e,n){"use strict";var r=n("g6v/"),o=n("0Dky"),i=n("33Wh"),a=n("dBg+"),c=n("0eef"),u=n("ewvW"),s=n("RK3t"),f=Object.assign,l=Object.defineProperty;t.exports=!f||o((function(){if(r&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||"abcdefghijklmnopqrst"!=i(f({},e)).join("")}))?function(t,e){for(var n=u(t),o=arguments.length,f=1,l=a.f,p=c.f;o>f;)for(var h,v=s(arguments[f++]),d=l?i(v).concat(l(v)):i(v),g=d.length,y=0;g>y;)h=d[y++],r&&!p.call(v,h)||(n[h]=v[h]);return n}:f},ZOXb:function(t,e,n){"use strict";var r=n("0Dky"),o=n("DMt2").start,i=Math.abs,a=Date.prototype,c=a.getTime,u=a.toISOString;t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=u.call(new Date(-50000000000001))}))||!r((function(){u.call(new Date(NaN))}))?function(){if(!isFinite(c.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+o(i(t),n?6:4,0)+"-"+o(this.getUTCMonth()+1,2,0)+"-"+o(this.getUTCDate(),2,0)+"T"+o(this.getUTCHours(),2,0)+":"+o(this.getUTCMinutes(),2,0)+":"+o(this.getUTCSeconds(),2,0)+"."+o(e,3,0)+"Z"}:u},ZUd8:function(t,e,n){var r=n("ppGB"),o=n("HYAF"),i=function(t){return function(e,n){var i,a,c=String(o(e)),u=r(n),s=c.length;return u<0||u>=s?t?"":void 0:(i=c.charCodeAt(u))<55296||i>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?t?c.charAt(u):i:t?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},ZWaQ:function(t,e,n){"use strict";var r=n("m/L8").f,o=n("fHMY"),i=n("4syw"),a=n("A2ZE"),c=n("GarU"),u=n("ImZN"),s=n("fdAy"),f=n("JiZb"),l=n("g6v/"),p=n("8YOa").fastKey,h=n("afO8"),v=h.set,d=h.getterFor;t.exports={getConstructor:function(t,e,n,s){var f=t((function(t,r){c(t,f,e),v(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&u(r,t[s],t,n)})),h=d(e),g=function(t,e,n){var r,o,i=h(t),a=y(t,e);return a?a.value=n:(i.last=a={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),l?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},y=function(t,e){var n,r=h(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(f.prototype,{clear:function(){for(var t=h(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=h(this),n=y(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),l?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=h(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),i(f.prototype,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),l&&r(f.prototype,"size",{get:function(){return h(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=d(e),i=d(r);s(t,e,(function(t,e){v(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),f(e)}}},ZfDv:function(t,e,n){var r=n("hh1v"),o=n("6LWA"),i=n("tiKp")("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},Zk8X:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("sup")},{sup:function(){return o(this,"sup","","")}})},a57n:function(t,e,n){n("dG/n")("search")},a5NK:function(t,e,n){var r=n("I+eb"),o=Math.log,i=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(t){return o(t)*i}})},afO8:function(t,e,n){var r,o,i,a=n("f5p1"),c=n("2oRo"),u=n("hh1v"),s=n("kRJp"),f=n("UTVS"),l=n("93I0"),p=n("0BK2");if(a){var h=new(0,c.WeakMap),v=h.get,d=h.has,g=h.set;r=function(t,e){return g.call(h,t,e),e},o=function(t){return v.call(h,t)||{}},i=function(t){return d.call(h,t)}}else{var y=l("state");p[y]=!0,r=function(t,e){return s(t,y,e),e},o=function(t){return f(t,y)?t[y]:{}},i=function(t){return f(t,y)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},bWFh:function(t,e,n){"use strict";var r=n("I+eb"),o=n("2oRo"),i=n("lMq5"),a=n("busE"),c=n("8YOa"),u=n("ImZN"),s=n("GarU"),f=n("hh1v"),l=n("0Dky"),p=n("HH4o"),h=n("1E5z"),v=n("cVYH");t.exports=function(t,e,n){var d=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),y=d?"set":"add",b=o[t],m=b&&b.prototype,k=b,E={},S=function(t){var e=m[t];a(m,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!f(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(i(t,"function"!=typeof b||!(g||m.forEach&&!l((function(){(new b).entries().next()})))))k=n.getConstructor(e,t,d,y),c.REQUIRED=!0;else if(i(t,!0)){var x=new k,w=x[y](g?{}:-0,1)!=x,_=l((function(){x.has(1)})),T=p((function(t){new b(t)})),O=!g&&l((function(){for(var t=new b,e=5;e--;)t[y](e,e);return!t.has(-0)}));T||((k=e((function(e,n){s(e,k,t);var r=v(new b,e,k);return null!=n&&u(n,r[y],r,d),r}))).prototype=m,m.constructor=k),(_||O)&&(S("delete"),S("has"),d&&S("get")),(O||w)&&S(y),g&&m.clear&&delete m.clear}return E[t]=k,r({global:!0,forced:k!=b},E),h(k,t),g||n.setStrong(k,t,d),k}},brp2:function(t,e,n){n("I+eb")({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},busE:function(t,e,n){var r=n("2oRo"),o=n("kRJp"),i=n("UTVS"),a=n("zk60"),c=n("iSVu"),u=n("afO8"),s=u.get,f=u.enforce,l=String(String).split("String");(t.exports=function(t,e,n,c){var u=!!c&&!!c.unsafe,s=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),f(n).source=l.join("string"==typeof e?e:"")),t!==r?(u?!p&&t[e]&&(s=!0):delete t[e],s?t[e]=n:o(t,e,n)):s?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},cDke:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("BX/b").f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},cVYH:function(t,e,n){var r=n("hh1v"),o=n("0rvr");t.exports=function(t,e,n){var i,a;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(t,a),t}},"dBg+":function(t,e){e.f=Object.getOwnPropertySymbols},"dG/n":function(t,e,n){var r=n("Qo9l"),o=n("UTVS"),i=n("5Tg+"),a=n("m/L8").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},"eDl+":function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},eJiR:function(t,e,n){var r=n("I+eb"),o=n("jrUv"),i=Math.exp;r({target:"Math",stat:!0},{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},eajv:function(t,e,n){var r=n("I+eb"),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):i(e+a(e*e+1)):e}})},eoL8:function(t,e,n){var r=n("I+eb"),o=n("g6v/");r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n("m/L8").f})},ewvW:function(t,e,n){var r=n("HYAF");t.exports=function(t){return Object(r(t))}},f5p1:function(t,e,n){var r=n("2oRo"),o=n("iSVu"),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},fHMY:function(t,e,n){var r,o=n("glrk"),i=n("N+g0"),a=n("eDl+"),c=n("0BK2"),u=n("G+Rx"),s=n("zBJ4"),f=n("93I0")("IE_PROTO"),l=function(){},p=function(t){return"
- {{information.alias ? 'RTL - ' + information.alias : 'RTL'}} - {{information.alias ? 'Ride The Lightning - ' + information.alias : 'Ride The Lightning'}} + {{information.alias ? 'RTL - ' + information.alias : 'RTL'}} + {{information.alias ? 'Ride The Lightning - ' + information.alias : 'Ride The Lightning'}}
- + - -
+ +
> diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 6bf8e88d..d90400cb 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -46,29 +46,27 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy { this.router.events.subscribe((evt) => { if (!(evt instanceof NavigationEnd)) { return; } document.getElementsByTagName('mat-sidenav-content')[0].scrollTo(0, 0); - }); - this.breakpointObserver.observe([Breakpoints.XSmall, Breakpoints.TabletPortrait, Breakpoints.Small, Breakpoints.Medium]) + }); + this.breakpointObserver.observe([Breakpoints.XSmall, Breakpoints.TabletPortrait, Breakpoints.Small, Breakpoints.Medium, Breakpoints.Large, Breakpoints.XLarge]) .pipe(takeUntil(this.unSubs[5])) .subscribe((matches) => { if(matches.breakpoints[Breakpoints.XSmall]) { this.commonService.setScreenSize(ScreenSizeEnum.XS); - this.xSmallScreen = true; this.smallScreen = true; } else if(matches.breakpoints[Breakpoints.TabletPortrait]) { this.commonService.setScreenSize(ScreenSizeEnum.SM); - this.xSmallScreen = false; this.smallScreen = true; } else if(matches.breakpoints[Breakpoints.Small] || matches.breakpoints[Breakpoints.Medium]) { this.commonService.setScreenSize(ScreenSizeEnum.MD); - this.xSmallScreen = false; + this.smallScreen = false; + } else if(matches.breakpoints[Breakpoints.Large]) { + this.commonService.setScreenSize(ScreenSizeEnum.LG); this.smallScreen = false; } else { - this.commonService.setScreenSize(ScreenSizeEnum.LG); - this.xSmallScreen = false; + this.commonService.setScreenSize(ScreenSizeEnum.XL); this.smallScreen = false; } }); - this.store.dispatch(new RTLActions.FetchRTLConfig()); this.accessKey = this.readAccessKey(); this.store.select('root') @@ -122,9 +120,11 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy { ngAfterViewInit() { if (this.smallScreen) { this.sideNavigation.close(); + this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth, this.sideNavContent.elementRef.nativeElement.clientHeight); } else { setTimeout(() => { this.renderer.setStyle(this.sideNavContent.elementRef.nativeElement, 'marginLeft', '22rem'); //$regular-sidenav-width + this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth, this.sideNavContent.elementRef.nativeElement.clientHeight); }, 100); } } @@ -140,7 +140,7 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy { } } - copiedText(payload) { + copiedText(payload: string) { this.flgCopied = true; setTimeout(() => {this.flgCopied = false; }, 5000); this.logger.info('Copied Text: ' + payload); diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 1626e151..3061def1 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -7,22 +7,18 @@ import { StoreModule } from '@ngrx/store'; import { EffectsModule } from '@ngrx/effects'; import { StoreDevtoolsModule } from '@ngrx/store-devtools'; -import { MatDialogModule, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog'; import { UserIdleModule } from 'angular-user-idle'; -import { OverlayContainer } from '@angular/cdk/overlay'; import { routing } from './app.routing'; import { SharedModule } from './shared/shared.module'; -import { ThemeOverlay } from './shared/theme/overlay-container/theme-overlay'; import { AppComponent } from './app.component'; import { environment } from '../environments/environment'; -import { SessionService } from './shared/services/session.service'; -import { CommonService } from './shared/services/common.service'; -import { LoopService } from './shared/services/loop.service'; -import { DataService } from './shared/services/data.service'; -import { LoggerService, ConsoleLoggerService } from './shared/services/logger.service'; import { AuthGuard } from './shared/services/auth.guard'; import { AuthInterceptor } from './shared/services/auth.interceptor'; +import { SessionService } from './shared/services/session.service'; +import { LoopService } from './shared/services/loop.service'; +import { DataService } from './shared/services/data.service'; +import { CommonService } from './shared/services/common.service'; import { RTLReducer } from './store/rtl.reducers'; import { RTLEffects } from './store/rtl.effects'; @@ -30,39 +26,6 @@ import { LNDEffects } from './lnd/store/lnd.effects'; import { CLEffects } from './clightning/store/cl.effects'; import { ECLEffects } from './eclair/store/ecl.effects'; import { LayoutModule } from '@angular/cdk/layout'; -import { CLOpenChannelComponent } from './clightning/peers-channels/channels/open-channel-modal/open-channel.component'; -import { CLChannelInformationComponent } from './clightning/peers-channels/channels/channel-information-modal/channel-information.component'; -import { CLInvoiceInformationComponent } from './clightning/transactions/invoice-information-modal/invoice-information.component'; -import { CLConnectPeerComponent } from './clightning/peers-channels/connect-peer/connect-peer.component'; -import { CLLightningSendPaymentsComponent } from './clightning/transactions/send-payment-modal/send-payment.component'; -import { CLCreateInvoiceComponent } from './clightning/transactions/create-invoice-modal/create-invoice.component'; -import { CLOnChainSendComponent } from './clightning/on-chain/on-chain-send-modal/on-chain-send.component'; -import { InvoiceInformationComponent } from './lnd/transactions/invoice-information-modal/invoice-information.component'; -import { ChannelRebalanceComponent } from './lnd/peers-channels/channels/channel-rebalance-modal/channel-rebalance.component'; -import { CloseChannelComponent } from './lnd/peers-channels/channels/close-channel-modal/close-channel.component'; -import { OpenChannelComponent } from './lnd/peers-channels/channels/open-channel-modal/open-channel.component'; -import { ChannelInformationComponent } from './lnd/peers-channels/channels/channel-information-modal/channel-information.component'; -import { OnChainSendComponent } from './lnd/on-chain/on-chain-send-modal/on-chain-send.component'; -import { LightningSendPaymentsComponent } from './lnd/transactions/send-payment-modal/send-payment.component'; -import { CreateInvoiceComponent } from './lnd/transactions/create-invoice-modal/create-invoice.component'; -import { ConnectPeerComponent } from './lnd/peers-channels/connect-peer/connect-peer.component'; -import { ShowPubkeyComponent } from './shared/components/data-modal/show-pubkey/show-pubkey.component'; -import { OnChainGeneratedAddressComponent } from './shared/components/data-modal/on-chain-generated-address/on-chain-generated-address.component'; -import { SpinnerDialogComponent } from './shared/components/data-modal/spinner-dialog/spinner-dialog.component'; -import { AlertMessageComponent } from './shared/components/data-modal/alert-message/alert-message.component'; -import { ConfirmationMessageComponent } from './shared/components/data-modal/confirmation-message/confirmation-message.component'; -import { ErrorMessageComponent } from './shared/components/data-modal/error-message/error-message.component'; -import { LoopModalComponent } from './lnd/loop/loop-modal/loop-modal.component'; -import { TwoFactorAuthComponent } from './shared/components/data-modal/two-factor-auth/two-factor-auth.component'; -import { LoginTokenComponent } from './shared/components/data-modal/login-2fa-token/login-2fa-token.component'; -import { ECLInvoiceInformationComponent } from './eclair/transactions/invoice-information-modal/invoice-information.component'; -import { ECLPaymentInformationComponent } from './eclair/transactions/payment-information-modal/payment-information.component'; -import { ECLOpenChannelComponent } from './eclair/peers-channels/channels/open-channel-modal/open-channel.component'; -import { ECLConnectPeerComponent } from './eclair/peers-channels/connect-peer/connect-peer.component'; -import { ECLLightningSendPaymentsComponent } from './eclair/transactions/send-payment-modal/send-payment.component'; -import { ECLCreateInvoiceComponent } from './eclair/transactions/create-invoice-modal/create-invoice.component'; -import { ECLOnChainSendComponent } from './eclair/on-chain/on-chain-send-modal/on-chain-send.component'; -import { ECLChannelInformationComponent } from './eclair/peers-channels/channels/channel-information-modal/channel-information.component'; @NgModule({ imports: [ @@ -70,7 +33,9 @@ import { ECLChannelInformationComponent } from './eclair/peers-channels/channels BrowserAnimationsModule, SharedModule, routing, - UserIdleModule.forRoot({idle: 60 * 60, timeout: 1, ping: null}), + LayoutModule, + HammerModule, + UserIdleModule.forRoot({idle: 60 * 60, timeout: 1}), StoreModule.forRoot(RTLReducer, { runtimeChecks: { strictStateImmutability: false, @@ -78,89 +43,12 @@ import { ECLChannelInformationComponent } from './eclair/peers-channels/channels } }), EffectsModule.forRoot([RTLEffects, LNDEffects, CLEffects, ECLEffects]), - !environment.production ? StoreDevtoolsModule.instrument() : [], - LayoutModule, - MatDialogModule, - HammerModule + !environment.production ? StoreDevtoolsModule.instrument() : [] ], - declarations: [ - AppComponent, - InvoiceInformationComponent, - ChannelRebalanceComponent, - OnChainGeneratedAddressComponent, - OpenChannelComponent, - ChannelInformationComponent, - LightningSendPaymentsComponent, - ConnectPeerComponent, - ShowPubkeyComponent, - SpinnerDialogComponent, - AlertMessageComponent, - ConfirmationMessageComponent, - ErrorMessageComponent, - CloseChannelComponent, - LoopModalComponent, - TwoFactorAuthComponent, - LoginTokenComponent, - CreateInvoiceComponent, - OnChainSendComponent, - CLInvoiceInformationComponent, - CLOpenChannelComponent, - CLConnectPeerComponent, - CLLightningSendPaymentsComponent, - CLCreateInvoiceComponent, - CLOnChainSendComponent, - CLChannelInformationComponent, - ECLInvoiceInformationComponent, - ECLPaymentInformationComponent, - ECLOpenChannelComponent, - ECLConnectPeerComponent, - ECLLightningSendPaymentsComponent, - ECLCreateInvoiceComponent, - ECLOnChainSendComponent, - ECLChannelInformationComponent - ], - entryComponents: [ - SpinnerDialogComponent, - AlertMessageComponent, - ConfirmationMessageComponent, - ErrorMessageComponent, - ShowPubkeyComponent, - TwoFactorAuthComponent, - LoginTokenComponent, - OnChainGeneratedAddressComponent, - CloseChannelComponent, - LoopModalComponent, - InvoiceInformationComponent, - ChannelRebalanceComponent, - OpenChannelComponent, - ConnectPeerComponent, - LightningSendPaymentsComponent, - CreateInvoiceComponent, - OnChainSendComponent, - ChannelInformationComponent, - CLInvoiceInformationComponent, - CLOpenChannelComponent, - CLConnectPeerComponent, - CLLightningSendPaymentsComponent, - CLCreateInvoiceComponent, - CLOnChainSendComponent, - CLChannelInformationComponent, - ECLInvoiceInformationComponent, - ECLPaymentInformationComponent, - ECLOpenChannelComponent, - ECLConnectPeerComponent, - ECLLightningSendPaymentsComponent, - ECLCreateInvoiceComponent, - ECLOnChainSendComponent, - ECLChannelInformationComponent - ], + declarations: [AppComponent], providers: [ - { provide: LoggerService, useClass: ConsoleLoggerService }, - { provide: OverlayContainer, useClass: ThemeOverlay }, { provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true }, - { provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true }, - { provide: MAT_DIALOG_DEFAULT_OPTIONS, useValue: { hasBackdrop: true, autoFocus: true, disableClose: true, role: 'dialog', width: '55%' } }, - CommonService, AuthGuard, SessionService, DataService, LoopService + AuthGuard, SessionService, DataService, LoopService, CommonService ], bootstrap: [AppComponent] }) diff --git a/src/app/app.routing.ts b/src/app/app.routing.ts index 6320066d..5301622b 100644 --- a/src/app/app.routing.ts +++ b/src/app/app.routing.ts @@ -2,6 +2,9 @@ import { Routes, RouterModule } from '@angular/router'; import { ModuleWithProviders } from '@angular/core'; import { SettingsComponent } from './shared/components/settings/settings.component'; +import { AppSettingsComponent } from './shared/components/settings/app-settings/app-settings.component'; +import { AuthSettingsComponent } from './shared/components/settings/auth-settings/auth-settings.component'; +import { ServerConfigComponent } from './shared/components/settings/server-config/server-config.component'; import { NotFoundComponent } from './shared/components/not-found/not-found.component'; import { HelpComponent } from './shared/components/help/help.component'; import { LoginComponent } from './shared/components/login/login.component'; @@ -9,14 +12,21 @@ import { ErrorComponent } from './shared/components/error/error.component'; import { AuthGuard } from './shared/services/auth.guard'; export const routes: Routes = [ + { path: '', pathMatch: 'full', redirectTo: 'lnd' }, { path: 'lnd', loadChildren: () => import('./lnd/lnd.module').then(childModule => childModule.LNDModule), canActivate: [AuthGuard] }, { path: 'cl', loadChildren: () => import('./clightning/cl.module').then(childModule => childModule.CLModule), canActivate: [AuthGuard] }, { path: 'ecl', loadChildren: () => import('./eclair/ecl.module').then(childModule => childModule.ECLModule), canActivate: [AuthGuard] }, - { path: 'settings', component: SettingsComponent, canActivate: [AuthGuard] }, + { path: 'settings', component: SettingsComponent, canActivate: [AuthGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'layout' }, + { path: 'layout', component: AppSettingsComponent, canActivate: [AuthGuard] }, + { path: 'auth', component: AuthSettingsComponent, canActivate: [AuthGuard] }, + { path: 'lnconfig', component: ServerConfigComponent, canActivate: [AuthGuard] }, + { path: 'bconfig', component: ServerConfigComponent, canActivate: [AuthGuard] } + ] }, { path: 'help', component: HelpComponent }, { path: 'login', component: LoginComponent }, { path: 'error', component: ErrorComponent }, { path: '**', component: NotFoundComponent } ]; -export const routing: ModuleWithProviders = RouterModule.forRoot(routes); +export const routing: ModuleWithProviders = RouterModule.forRoot(routes); diff --git a/src/app/clightning/cl.module.ts b/src/app/clightning/cl.module.ts index a6469307..f50cfd9b 100644 --- a/src/app/clightning/cl.module.ts +++ b/src/app/clightning/cl.module.ts @@ -6,7 +6,7 @@ import { SharedModule } from '../shared/shared.module'; import { CLRootComponent } from './cl-root.component'; import { CLHomeComponent } from './home/home.component'; -import { CLPeersChannelsComponent } from './peers-channels/peers-channels.component'; +import { CLConnectionsComponent } from './peers-channels/connections.component'; import { CLChannelsTablesComponent } from './peers-channels/channels/channels-tables/channels-tables.component'; import { CLPeersComponent } from './peers-channels/peers/peers.component'; import { CLLightningInvoicesComponent } from './transactions/invoices/lightning-invoices.component'; @@ -35,6 +35,17 @@ import { CLFeeRatesComponent } from './network-info/fee-rates/fee-rates.componen import { CLSignVerifyMessageComponent } from './sign-verify-message/sign-verify-message.component'; import { CLSignComponent } from './sign-verify-message/sign/sign.component'; import { CLVerifyComponent } from './sign-verify-message/verify/verify.component'; +import { CLReportsComponent } from './reports/reports.component'; +import { CLFeeReportComponent } from './reports/fee/fee-report.component'; +import { CLTransactionsReportComponent } from './reports/transactions/transactions-report.component'; +import { CLOnChainSendComponent } from './on-chain/on-chain-send/on-chain-send.component'; +import { CLOpenChannelComponent } from './peers-channels/channels/open-channel-modal/open-channel.component'; +import { CLChannelInformationComponent } from './peers-channels/channels/channel-information-modal/channel-information.component'; +import { CLInvoiceInformationComponent } from './transactions/invoice-information-modal/invoice-information.component'; +import { CLConnectPeerComponent } from './peers-channels/connect-peer/connect-peer.component'; +import { CLLightningSendPaymentsComponent } from './transactions/send-payment-modal/send-payment.component'; +import { CLCreateInvoiceComponent } from './transactions/create-invoice-modal/create-invoice.component'; +import { CLOnChainSendModalComponent } from './on-chain/on-chain-send-modal/on-chain-send-modal.component'; import { CLUnlockedGuard } from '../shared/services/auth.guard'; @@ -48,7 +59,7 @@ import { CLUnlockedGuard } from '../shared/services/auth.guard'; CLRootComponent, CLHomeComponent, CLPeersComponent, - CLPeersChannelsComponent, + CLConnectionsComponent, CLLightningInvoicesComponent, CLLightningPaymentsComponent, CLTransactionsComponent, @@ -75,7 +86,18 @@ import { CLUnlockedGuard } from '../shared/services/auth.guard'; CLFeeRatesComponent, CLSignVerifyMessageComponent, CLSignComponent, - CLVerifyComponent + CLVerifyComponent, + CLReportsComponent, + CLFeeReportComponent, + CLTransactionsReportComponent, + CLOnChainSendComponent, + CLInvoiceInformationComponent, + CLOpenChannelComponent, + CLConnectPeerComponent, + CLLightningSendPaymentsComponent, + CLCreateInvoiceComponent, + CLOnChainSendModalComponent, + CLChannelInformationComponent ], providers: [ CLUnlockedGuard diff --git a/src/app/clightning/cl.routing.ts b/src/app/clightning/cl.routing.ts index f4b2e32d..6059c776 100644 --- a/src/app/clightning/cl.routing.ts +++ b/src/app/clightning/cl.routing.ts @@ -4,31 +4,80 @@ import { ModuleWithProviders } from '@angular/core'; import { CLRootComponent } from './cl-root.component'; import { CLHomeComponent } from './home/home.component'; import { CLOnChainComponent } from './on-chain/on-chain.component'; -import { CLPeersChannelsComponent } from '../clightning/peers-channels/peers-channels.component'; +import { CLConnectionsComponent } from './peers-channels/connections.component'; import { CLTransactionsComponent } from '../clightning/transactions/transactions.component'; import { CLRoutingComponent } from '../clightning/routing/routing.component'; import { CLLookupsComponent } from './lookups/lookups.component'; import { CLNetworkInfoComponent } from './network-info/network-info.component'; import { CLSignVerifyMessageComponent } from './sign-verify-message/sign-verify-message.component'; +import { CLOnChainReceiveComponent } from './on-chain/on-chain-receive/on-chain-receive.component'; +import { CLOnChainSendComponent } from './on-chain/on-chain-send/on-chain-send.component'; +import { CLChannelsTablesComponent } from './peers-channels/channels/channels-tables/channels-tables.component'; +import { CLChannelOpenTableComponent } from './peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component'; +import { CLChannelPendingTableComponent } from './peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component'; +import { CLPeersComponent } from './peers-channels/peers/peers.component'; +import { CLLightningPaymentsComponent } from './transactions/payments/lightning-payments.component'; +import { CLLightningInvoicesComponent } from './transactions/invoices/lightning-invoices.component'; +import { CLQueryRoutesComponent } from './transactions/query-routes/query-routes.component'; +import { CLSignComponent } from './sign-verify-message/sign/sign.component'; +import { CLVerifyComponent } from './sign-verify-message/verify/verify.component'; +import { CLForwardingHistoryComponent } from './routing/forwarding-history/forwarding-history.component'; +import { CLFailedTransactionsComponent } from './routing/failed-transactions/failed-transactions.component'; +import { CLReportsComponent } from './reports/reports.component'; +import { CLFeeReportComponent } from './reports/fee/fee-report.component'; +import { CLTransactionsReportComponent } from './reports/transactions/transactions-report.component'; import { CLUnlockedGuard } from '../shared/services/auth.guard'; import { NotFoundComponent } from '../shared/components/not-found/not-found.component'; export const ClRoutes: Routes = [ { path: '', component: CLRootComponent, children: [ - { path: 'home', component: CLHomeComponent, canActivate: [CLUnlockedGuard] }, - { path: 'onchain', component: CLOnChainComponent, canActivate: [CLUnlockedGuard] }, - { path: 'peerschannels', component: CLPeersChannelsComponent, canActivate: [CLUnlockedGuard] }, - { path: 'transactions', component: CLTransactionsComponent, canActivate: [CLUnlockedGuard] }, - { path: 'routing', component: CLRoutingComponent, canActivate: [CLUnlockedGuard] }, - { path: 'lookups', component: CLLookupsComponent, canActivate: [CLUnlockedGuard] }, - { path: 'rates', component: CLNetworkInfoComponent, canActivate: [CLUnlockedGuard] }, - { path: 'signverify', component: CLSignVerifyMessageComponent, canActivate: [CLUnlockedGuard] }, - { path: '**', component: NotFoundComponent }, - { path: 'network', redirectTo: 'rates' }, - { path: 'wallet', redirectTo: 'home' }, - { path: 'backup', redirectTo: 'home' } - ]} + { path: '', pathMatch: 'full', redirectTo: 'home' }, + { path: 'home', component: CLHomeComponent, canActivate: [CLUnlockedGuard] }, + { path: 'onchain', component: CLOnChainComponent, canActivate: [CLUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'receive' }, + { path: 'receive', component: CLOnChainReceiveComponent, canActivate: [CLUnlockedGuard] }, + { path: 'send', component: CLOnChainSendComponent, data : {sweepAll : false}, canActivate: [CLUnlockedGuard] }, + { path: 'sweep', component: CLOnChainSendComponent, data : {sweepAll : true}, canActivate: [CLUnlockedGuard] } + ] }, + { path: 'connections', component: CLConnectionsComponent, canActivate: [CLUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'channels' }, + { path: 'channels', component: CLChannelsTablesComponent, canActivate: [CLUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'open' }, + { path: 'open', component: CLChannelOpenTableComponent, canActivate: [CLUnlockedGuard] }, + { path: 'pending', component: CLChannelPendingTableComponent, canActivate: [CLUnlockedGuard] } + ] }, + { path: 'peers', component: CLPeersComponent, data : {sweepAll : false}, canActivate: [CLUnlockedGuard] } + ] }, + { path: 'transactions', component: CLTransactionsComponent, canActivate: [CLUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'payments' }, + { path: 'payments', component: CLLightningPaymentsComponent, canActivate: [CLUnlockedGuard] }, + { path: 'invoices', component: CLLightningInvoicesComponent, canActivate: [CLUnlockedGuard] }, + { path: 'queryroutes', component: CLQueryRoutesComponent, canActivate: [CLUnlockedGuard] } + ] }, + { path: 'messages', component: CLSignVerifyMessageComponent, canActivate: [CLUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'sign' }, + { path: 'sign', component: CLSignComponent, canActivate: [CLUnlockedGuard] }, + { path: 'verify', component: CLVerifyComponent, canActivate: [CLUnlockedGuard] } + ] }, + { path: 'routing', component: CLRoutingComponent, canActivate: [CLUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'forwardinghistory' }, + { path: 'forwardinghistory', component: CLForwardingHistoryComponent, canActivate: [CLUnlockedGuard] }, + { path: 'failedtransactions', component: CLFailedTransactionsComponent, canActivate: [CLUnlockedGuard] } + ] }, + { path: 'reports', component: CLReportsComponent, canActivate: [CLUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'routingfees' }, + { path: 'routingfees', component: CLFeeReportComponent, canActivate: [CLUnlockedGuard] }, + { path: 'transactions', component: CLTransactionsReportComponent, canActivate: [CLUnlockedGuard] } + ] }, + { path: 'lookups', component: CLLookupsComponent, canActivate: [CLUnlockedGuard] }, + { path: 'rates', component: CLNetworkInfoComponent, canActivate: [CLUnlockedGuard] }, + { path: '**', component: NotFoundComponent }, + { path: 'network', redirectTo: 'rates' }, + { path: 'wallet', redirectTo: 'home' }, + { path: 'backup', redirectTo: 'home' } + ] + } ]; -export const CLRouting: ModuleWithProviders = RouterModule.forChild(ClRoutes); +export const CLRouting: ModuleWithProviders = RouterModule.forChild(ClRoutes); diff --git a/src/app/clightning/home/channel-capacity-info/channel-capacity-info.component.html b/src/app/clightning/home/channel-capacity-info/channel-capacity-info.component.html index 0e593e6c..df5f7a01 100644 --- a/src/app/clightning/home/channel-capacity-info/channel-capacity-info.component.html +++ b/src/app/clightning/home/channel-capacity-info/channel-capacity-info.component.html @@ -12,7 +12,7 @@
-
+
{{(channel.alias || channel.id) | slice:0:24}}{{(channel.alias || channel.id).length > 25 ? '...' : ''}} diff --git a/src/app/clightning/home/channel-capacity-info/channel-capacity-info.component.ts b/src/app/clightning/home/channel-capacity-info/channel-capacity-info.component.ts index 2400a9d2..c3c85a0d 100644 --- a/src/app/clightning/home/channel-capacity-info/channel-capacity-info.component.ts +++ b/src/app/clightning/home/channel-capacity-info/channel-capacity-info.component.ts @@ -19,7 +19,7 @@ export class CLChannelCapacityInfoComponent { constructor(private router: Router) {} goToChannels() { - this.router.navigateByUrl('/cl/peerschannels'); + this.router.navigateByUrl('/cl/connections'); } } diff --git a/src/app/clightning/home/channel-liquidity-info/channel-liquidity-info.component.html b/src/app/clightning/home/channel-liquidity-info/channel-liquidity-info.component.html index 1a5f9560..2a2990ed 100644 --- a/src/app/clightning/home/channel-liquidity-info/channel-liquidity-info.component.html +++ b/src/app/clightning/home/channel-liquidity-info/channel-liquidity-info.component.html @@ -1,11 +1,11 @@ -
+
Total Capacity {{totalLiquidity | number:'1.0-0'}} Sats
-
+
{{(channel.alias || channel.id) | slice:0:24}}{{(channel.alias || channel.id).length > 25 ? '...' : ''}} diff --git a/src/app/clightning/home/channel-liquidity-info/channel-liquidity-info.component.ts b/src/app/clightning/home/channel-liquidity-info/channel-liquidity-info.component.ts index ed4dac6c..ff95de5c 100644 --- a/src/app/clightning/home/channel-liquidity-info/channel-liquidity-info.component.ts +++ b/src/app/clightning/home/channel-liquidity-info/channel-liquidity-info.component.ts @@ -1,22 +1,30 @@ -import { Component, Input } from '@angular/core'; +import { Component, Input, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { Channel } from '../../../shared/models/clModels'; +import { ScreenSizeEnum } from '../../../shared/services/consts-enums-functions'; +import { CommonService } from '../../../shared/services/common.service'; @Component({ selector: 'rtl-cl-channel-liquidity-info', templateUrl: './channel-liquidity-info.component.html', styleUrls: ['./channel-liquidity-info.component.scss'] }) -export class CLChannelLiquidityInfoComponent { +export class CLChannelLiquidityInfoComponent implements OnInit { @Input() direction: string; @Input() totalLiquidity: number; @Input() allChannels: Channel[]; + public screenSize = ''; + public screenSizeEnum = ScreenSizeEnum; - constructor(private router: Router) {} + constructor(private router: Router, private commonService: CommonService) {} + + ngOnInit() { + this.screenSize = this.commonService.getScreenSize(); + } goToChannels() { - this.router.navigateByUrl('/cl/peerschannels'); + this.router.navigateByUrl('/cl/connections'); } } diff --git a/src/app/clightning/home/home.component.html b/src/app/clightning/home/home.component.html index 79db1227..52af6846 100644 --- a/src/app/clightning/home/home.component.html +++ b/src/app/clightning/home/home.component.html @@ -1,25 +1,30 @@
-
+
{{!flgLoading[0] ? 'Welcome ' + information.alias + '! Your node is up and running.' : 'Error! Please check the server connection.'}}
- + - - - {{card.title}} - - - - - + +
+ + {{card.title}} +
+
+ + + + + + +
- +
@@ -34,26 +39,30 @@
-
+
Welcome {{information.alias}}! Your node is up and running.
- + - - - {{card.title}} - - - - + +
+ + {{card.title}} +
+
+ + + + +
- +
@@ -61,8 +70,8 @@ - - + + + diff --git a/src/app/clightning/home/home.component.scss b/src/app/clightning/home/home.component.scss index b966f638..e69de29b 100644 --- a/src/app/clightning/home/home.component.scss +++ b/src/app/clightning/home/home.component.scss @@ -1,17 +0,0 @@ -.dashboard-card { - position: absolute; - top: 1rem; - left: 1rem; - right: 1rem; - bottom: 1rem; -} - -.more-button { - position: absolute; - top: 7px; - right: 7px; -} - -.dashboard-card-content { - text-align: left; -} diff --git a/src/app/clightning/home/home.component.ts b/src/app/clightning/home/home.component.ts index f61b220a..08d1a0fe 100644 --- a/src/app/clightning/home/home.component.ts +++ b/src/app/clightning/home/home.component.ts @@ -13,7 +13,6 @@ import { UserPersonaEnum, ScreenSizeEnum } from '../../shared/services/consts-en import { ChannelsStatus, GetInfo, Fees, Channel, Balance, FeeRates } from '../../shared/models/clModels'; import { SelNodeChild } from '../../shared/models/RTLconfig'; import * as CLActions from '../store/cl.actions'; -import * as RTLActions from '../../store/rtl.actions'; import * as fromRTLReducer from '../../store/rtl.reducers'; @Component({ @@ -63,28 +62,28 @@ export class CLHomeComponent implements OnInit, OnDestroy { { id: 'node', icon: this.faServer, title: 'Node Information', cols: 10, rows: 1 }, { id: 'balance', goTo: 'On-Chain', link: '/cl/onchain', icon: this.faChartPie, title: 'Balances', cols: 10, rows: 1 }, { id: 'fee', goTo: 'Routing', link: '/cl/routing', icon: this.faBolt, title: 'Routing Fee', cols: 10, rows: 1 }, - { id: 'status', goTo: 'Channels', link: '/cl/peerschannels', icon: this.faNetworkWired, title: 'Channels', cols: 10, rows: 1 }, - { id: 'capacity', goTo: 'Channels', link: '/cl/peerschannels', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 10, rows: 2 } + { id: 'status', goTo: 'Channels', link: '/cl/connections', icon: this.faNetworkWired, title: 'Channels', cols: 10, rows: 1 }, + { id: 'capacity', goTo: 'Channels', link: '/cl/connections', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 10, rows: 2 } ]; this.merchantCards = [ { id: 'balance', goTo: 'On-Chain', link: '/cl/onchain', icon: this.faChartPie, title: 'Balances', cols: 6, rows: 4 }, { id: 'transactions', goTo: 'Transactions', link: '/cl/transactions', title: '', cols: 6, rows: 4 }, - { id: 'inboundLiq', goTo: 'Channels', link: '/cl/peerschannels', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 6, rows: 8 }, - { id: 'outboundLiq', goTo: 'Channels', link: '/cl/peerschannels', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 6, rows: 8 } + { id: 'inboundLiq', goTo: 'Channels', link: '/cl/connections', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 6, rows: 8 }, + { id: 'outboundLiq', goTo: 'Channels', link: '/cl/connections', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 6, rows: 8 } ]; } else if(this.screenSize === ScreenSizeEnum.SM || this.screenSize === ScreenSizeEnum.MD) { this.operatorCards = [ { id: 'node', icon: this.faServer, title: 'Node Information', cols: 5, rows: 1 }, { id: 'balance', goTo: 'On-Chain', link: '/cl/onchain', icon: this.faChartPie, title: 'Balances', cols: 5, rows: 1 }, { id: 'fee', goTo: 'Routing', link: '/cl/routing', icon: this.faBolt, title: 'Routing Fee', cols: 5, rows: 1 }, - { id: 'status', goTo: 'Channels', link: '/cl/peerschannels', icon: this.faNetworkWired, title: 'Channels', cols: 5, rows: 1 }, - { id: 'capacity', goTo: 'Channels', link: '/cl/peerschannels', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 10, rows: 2 } + { id: 'status', goTo: 'Channels', link: '/cl/connections', icon: this.faNetworkWired, title: 'Channels', cols: 5, rows: 1 }, + { id: 'capacity', goTo: 'Channels', link: '/cl/connections', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 10, rows: 2 } ]; this.merchantCards = [ { id: 'balance', goTo: 'On-Chain', link: '/cl/onchain', icon: this.faChartPie, title: 'Balances', cols: 3, rows: 4 }, { id: 'transactions', goTo: 'Transactions', link: '/cl/transactions', title: '', cols: 3, rows: 4 }, - { id: 'inboundLiq', goTo: 'Channels', link: '/cl/peerschannels', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 3, rows: 8 }, - { id: 'outboundLiq', goTo: 'Channels', link: '/cl/peerschannels', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 3, rows: 8 } + { id: 'inboundLiq', goTo: 'Channels', link: '/cl/connections', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 3, rows: 8 }, + { id: 'outboundLiq', goTo: 'Channels', link: '/cl/connections', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 3, rows: 8 } ]; } else { this.operatorCardHeight = ((window.screen.height * 0.77) / 2) + 'px'; @@ -92,14 +91,14 @@ export class CLHomeComponent implements OnInit, OnDestroy { this.operatorCards = [ { id: 'node', icon: this.faServer, title: 'Node Information', cols: 3, rows: 1 }, { id: 'balance', goTo: 'On-Chain', link: '/cl/onchain', icon: this.faChartPie, title: 'Balances', cols: 3, rows: 1 }, - { id: 'capacity', goTo: 'Channels', link: '/cl/peerschannels', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 4, rows: 2 }, + { id: 'capacity', goTo: 'Channels', link: '/cl/connections', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 4, rows: 2 }, { id: 'fee', goTo: 'Routing', link: '/cl/routing', icon: this.faBolt, title: 'Routing Fee', cols: 3, rows: 1 }, - { id: 'status', goTo: 'Channels', link: '/cl/peerschannels', icon: this.faNetworkWired, title: 'Channels', cols: 3, rows: 1 } + { id: 'status', goTo: 'Channels', link: '/cl/connections', icon: this.faNetworkWired, title: 'Channels', cols: 3, rows: 1 } ]; this.merchantCards = [ { id: 'balance', goTo: 'On-Chain', link: '/cl/onchain', icon: this.faChartPie, title: 'Balances', cols: 2, rows: 5 }, - { id: 'inboundLiq', goTo: 'Channels', link: '/cl/peerschannels', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 2, rows: 10 }, - { id: 'outboundLiq', goTo: 'Channels', link: '/cl/peerschannels', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 2, rows: 10 }, + { id: 'inboundLiq', goTo: 'Channels', link: '/cl/connections', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 2, rows: 10 }, + { id: 'outboundLiq', goTo: 'Channels', link: '/cl/connections', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 2, rows: 10 }, { id: 'transactions', goTo: 'Transactions', link: '/cl/transactions', title: '', cols: 2, rows: 5 } ]; } diff --git a/src/app/clightning/home/node-info/node-info.component.ts b/src/app/clightning/home/node-info/node-info.component.ts index c4ef5f17..748c71ad 100644 --- a/src/app/clightning/home/node-info/node-info.component.ts +++ b/src/app/clightning/home/node-info/node-info.component.ts @@ -9,7 +9,7 @@ import { CommonService } from '../../../shared/services/common.service'; }) export class CLNodeInfoComponent implements OnChanges { @Input() information: GetInfo; - @Input() showColorFieldSeparately: false; + @Input() showColorFieldSeparately: boolean; public chains: Array = ['']; constructor(private commonService: CommonService) { } diff --git a/src/app/clightning/lookups/lookups.component.html b/src/app/clightning/lookups/lookups.component.html index f5f56691..92b22eb1 100644 --- a/src/app/clightning/lookups/lookups.component.html +++ b/src/app/clightning/lookups/lookups.component.html @@ -1,5 +1,5 @@
-
+
Graph Lookups
diff --git a/src/app/clightning/lookups/lookups.component.ts b/src/app/clightning/lookups/lookups.component.ts index 2b9bb2cd..1dedbe93 100644 --- a/src/app/clightning/lookups/lookups.component.ts +++ b/src/app/clightning/lookups/lookups.component.ts @@ -19,7 +19,7 @@ import { CommonService } from '../../shared/services/common.service'; styleUrls: ['./lookups.component.scss'] }) export class CLLookupsComponent implements OnInit, OnDestroy { - @ViewChild('form', { static: false }) form: any; + @ViewChild('form', { static: true }) form: any; public lookupKey = ''; public nodeLookupValue = {nodeid: ''}; public channelLookupValue = []; @@ -69,7 +69,7 @@ export class CLLookupsComponent implements OnInit, OnDestroy { }); } - onLookup() { + onLookup():boolean|void { if(!this.lookupKey) { return true; } this.flgSetLookupValue = false; this.nodeLookupValue = {nodeid: ''}; diff --git a/src/app/clightning/lookups/node-lookup/node-lookup.component.html b/src/app/clightning/lookups/node-lookup/node-lookup.component.html index 6b9f0d10..d48f4a80 100644 --- a/src/app/clightning/lookups/node-lookup/node-lookup.component.html +++ b/src/app/clightning/lookups/node-lookup/node-lookup.component.html @@ -25,7 +25,7 @@

Addresses

-
+
diff --git a/src/app/clightning/lookups/node-lookup/node-lookup.component.ts b/src/app/clightning/lookups/node-lookup/node-lookup.component.ts index 614f32b7..d3ebc407 100644 --- a/src/app/clightning/lookups/node-lookup/node-lookup.component.ts +++ b/src/app/clightning/lookups/node-lookup/node-lookup.component.ts @@ -12,7 +12,7 @@ import { LoggerService } from '../../../shared/services/logger.service'; styleUrls: ['./node-lookup.component.scss'] }) export class CLNodeLookupComponent implements OnInit { - @ViewChild(MatSort, { static: true }) sort: MatSort; + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; @Input() lookupResult: LookupNode; public addresses: any; public displayedColumns = ['type', 'address', 'port', 'actions']; @@ -23,7 +23,7 @@ export class CLNodeLookupComponent implements OnInit { this.addresses = this.lookupResult.addresses ? new MatTableDataSource([...this.lookupResult.addresses]) : new MatTableDataSource([]); this.addresses.data = this.lookupResult.addresses ? this.lookupResult.addresses : []; this.addresses.sort = this.sort; - this.addresses.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.addresses.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; } onCopyNodeURI(payload: string) { diff --git a/src/app/clightning/network-info/network-info.component.html b/src/app/clightning/network-info/network-info.component.html index 09e8855c..e5ba4926 100644 --- a/src/app/clightning/network-info/network-info.component.html +++ b/src/app/clightning/network-info/network-info.component.html @@ -9,7 +9,7 @@
- +
@@ -34,7 +34,7 @@
- +
diff --git a/src/app/clightning/on-chain/on-chain-receive/on-chain-receive.component.html b/src/app/clightning/on-chain/on-chain-receive/on-chain-receive.component.html index 2d6f6820..78ec3e77 100644 --- a/src/app/clightning/on-chain/on-chain-receive/on-chain-receive.component.html +++ b/src/app/clightning/on-chain/on-chain-receive/on-chain-receive.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/src/app/clightning/on-chain/on-chain-send-modal/on-chain-send.component.html b/src/app/clightning/on-chain/on-chain-send-modal/on-chain-send-modal.component.html similarity index 97% rename from src/app/clightning/on-chain/on-chain-send-modal/on-chain-send.component.html rename to src/app/clightning/on-chain/on-chain-send-modal/on-chain-send-modal.component.html index a25e0214..e7b9c539 100644 --- a/src/app/clightning/on-chain/on-chain-send-modal/on-chain-send.component.html +++ b/src/app/clightning/on-chain/on-chain-send-modal/on-chain-send-modal.component.html @@ -13,7 +13,7 @@ Bitcoin address is required. - + Amount replaced by UTXO balance {{selAmountUnit}} Amount is required. @@ -34,7 +34,7 @@
- + Min Confirmation Blocks is required.
@@ -112,7 +112,7 @@
- + Min confirmation blocks is required.
diff --git a/src/app/clightning/on-chain/on-chain-send-modal/on-chain-send.component.scss b/src/app/clightning/on-chain/on-chain-send-modal/on-chain-send-modal.component.scss similarity index 100% rename from src/app/clightning/on-chain/on-chain-send-modal/on-chain-send.component.scss rename to src/app/clightning/on-chain/on-chain-send-modal/on-chain-send-modal.component.scss diff --git a/src/app/clightning/on-chain/on-chain-send-modal/on-chain-send-modal.component.spec.ts b/src/app/clightning/on-chain/on-chain-send-modal/on-chain-send-modal.component.spec.ts new file mode 100644 index 00000000..bb42ebb6 --- /dev/null +++ b/src/app/clightning/on-chain/on-chain-send-modal/on-chain-send-modal.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { CLOnChainSendModalComponent } from './on-chain-send-modal.component'; + +describe('CLOnChainSendModalComponent', () => { + let component: CLOnChainSendModalComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ CLOnChainSendModalComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(CLOnChainSendModalComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/clightning/on-chain/on-chain-send-modal/on-chain-send.component.ts b/src/app/clightning/on-chain/on-chain-send-modal/on-chain-send-modal.component.ts similarity index 94% rename from src/app/clightning/on-chain/on-chain-send-modal/on-chain-send.component.ts rename to src/app/clightning/on-chain/on-chain-send-modal/on-chain-send-modal.component.ts index bdd18d12..9869f730 100644 --- a/src/app/clightning/on-chain/on-chain-send-modal/on-chain-send.component.ts +++ b/src/app/clightning/on-chain/on-chain-send-modal/on-chain-send-modal.component.ts @@ -26,12 +26,12 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; import * as sha256 from 'sha256'; @Component({ - selector: 'rtl-cl-on-chain-send', - templateUrl: './on-chain-send.component.html', - styleUrls: ['./on-chain-send.component.scss'] + selector: 'rtl-cl-on-chain-send-modal', + templateUrl: './on-chain-send-modal.component.html', + styleUrls: ['./on-chain-send-modal.component.scss'] }) -export class CLOnChainSendComponent implements OnInit, OnDestroy { - @ViewChild('form', { static: false }) form: any; +export class CLOnChainSendModalComponent implements OnInit, OnDestroy { + @ViewChild('form', { static: true }) form: any; @ViewChild('formSweepAll', { static: false }) formSweepAll: any; @ViewChild('stepper', { static: false }) stepper: MatVerticalStepper; public faExclamationTriangle = faExclamationTriangle; @@ -71,7 +71,7 @@ export class CLOnChainSendComponent implements OnInit, OnDestroy { confirmFormGroup: FormGroup; private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject(), new Subject(), new Subject()]; - constructor(public dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: CLOnChainSendFunds, private logger: LoggerService, private store: Store, private commonService: CommonService, private decimalPipe: DecimalPipe, private actions$: Actions, private formBuilder: FormBuilder, private rtlEffects: RTLEffects, private snackBar: MatSnackBar) {} + constructor(public dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: CLOnChainSendFunds, private logger: LoggerService, private store: Store, private commonService: CommonService, private decimalPipe: DecimalPipe, private actions$: Actions, private formBuilder: FormBuilder, private rtlEffects: RTLEffects, private snackBar: MatSnackBar) {} ngOnInit() { this.sweepAll = this.data.sweepAll; @@ -133,7 +133,7 @@ export class CLOnChainSendComponent implements OnInit, OnDestroy { } - onAuthenticate() { + onAuthenticate():boolean|void { if (!this.passwordFormGroup.controls.password.value) { return true; } this.flgValidated = false; this.store.dispatch(new RTLActions.IsAuthorized(sha256(this.passwordFormGroup.controls.password.value))); @@ -150,7 +150,7 @@ export class CLOnChainSendComponent implements OnInit, OnDestroy { }); } - onSendFunds() { + onSendFunds():boolean|void { if(this.invalidValues) { return true; } this.sendFundError = ''; if (this.flgUseAllBalance) { diff --git a/src/app/clightning/on-chain/on-chain-send/on-chain-send.component.html b/src/app/clightning/on-chain/on-chain-send/on-chain-send.component.html new file mode 100644 index 00000000..bf41f7ed --- /dev/null +++ b/src/app/clightning/on-chain/on-chain-send/on-chain-send.component.html @@ -0,0 +1,5 @@ +
+
+ +
+
diff --git a/src/app/eclair/on-chain/on-chain-send-modal/on-chain-send.component.scss b/src/app/clightning/on-chain/on-chain-send/on-chain-send.component.scss similarity index 100% rename from src/app/eclair/on-chain/on-chain-send-modal/on-chain-send.component.scss rename to src/app/clightning/on-chain/on-chain-send/on-chain-send.component.scss diff --git a/src/app/clightning/on-chain/on-chain-send-modal/on-chain-send.component.spec.ts b/src/app/clightning/on-chain/on-chain-send/on-chain-send.component.spec.ts similarity index 100% rename from src/app/clightning/on-chain/on-chain-send-modal/on-chain-send.component.spec.ts rename to src/app/clightning/on-chain/on-chain-send/on-chain-send.component.spec.ts diff --git a/src/app/clightning/on-chain/on-chain-send/on-chain-send.component.ts b/src/app/clightning/on-chain/on-chain-send/on-chain-send.component.ts new file mode 100644 index 00000000..79c341ae --- /dev/null +++ b/src/app/clightning/on-chain/on-chain-send/on-chain-send.component.ts @@ -0,0 +1,41 @@ +import { Component, OnDestroy, OnInit } from '@angular/core'; +import { ActivatedRoute } from '@angular/router'; +import { Subject } from 'rxjs'; +import { takeUntil } from 'rxjs/operators'; +import { Store } from '@ngrx/store'; + +import { CLOnChainSendModalComponent } from '../on-chain-send-modal/on-chain-send-modal.component'; + +import * as RTLActions from '../../../store/rtl.actions'; +import * as fromRTLReducer from '../../../store/rtl.reducers'; + +@Component({ + selector: 'rtl-cl-on-chain-send', + templateUrl: './on-chain-send.component.html', + styleUrls: ['./on-chain-send.component.scss'] +}) +export class CLOnChainSendComponent implements OnInit, OnDestroy { + public sweepAll = false; + private unSubs: Array> = [new Subject(), new Subject()]; + + constructor(private store: Store, private activatedRoute: ActivatedRoute) {} + + ngOnInit() { + this.activatedRoute.data.pipe(takeUntil(this.unSubs[0])).subscribe(routeData => this.sweepAll = routeData.sweepAll); + } + + openSendFundsModal() { + this.store.dispatch(new RTLActions.OpenAlert({ data: { + sweepAll: this.sweepAll, + component: CLOnChainSendModalComponent + }})); + } + + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } + +} diff --git a/src/app/clightning/on-chain/on-chain-transaction-history/on-chain-transaction-history.component.html b/src/app/clightning/on-chain/on-chain-transaction-history/on-chain-transaction-history.component.html index c2752e2b..b3585309 100644 --- a/src/app/clightning/on-chain/on-chain-transaction-history/on-chain-transaction-history.component.html +++ b/src/app/clightning/on-chain/on-chain-transaction-history/on-chain-transaction-history.component.html @@ -5,11 +5,11 @@ UTXOs
- +
-
+
Type
diff --git a/src/app/clightning/on-chain/on-chain-transaction-history/on-chain-transaction-history.component.ts b/src/app/clightning/on-chain/on-chain-transaction-history/on-chain-transaction-history.component.ts index a672a95e..a282f13c 100644 --- a/src/app/clightning/on-chain/on-chain-transaction-history/on-chain-transaction-history.component.ts +++ b/src/app/clightning/on-chain/on-chain-transaction-history/on-chain-transaction-history.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from '@angular/core'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; @@ -13,7 +13,6 @@ import { PAGE_SIZE, PAGE_SIZE_OPTIONS, getPaginatorLabel, AlertTypeEnum, DataTyp import { LoggerService } from '../../../shared/services/logger.service'; import { CommonService } from '../../../shared/services/common.service'; -import * as CLActions from '../../store/cl.actions'; import * as RTLActions from '../../../store/rtl.actions'; import * as fromRTLReducer from '../../../store/rtl.reducers'; @@ -25,11 +24,12 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Transactions') } ] }) -export class CLOnChainTransactionHistoryComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; +export class CLOnChainTransactionHistoryComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; faMoneyBillWave = faMoneyBillWave; - public displayedColumns = []; + public displayedColumns: any[] = []; + public transactionsData: Transaction[] = []; public listTransactions: any; public flgLoading: Array = [true]; public flgSticky = false; @@ -57,7 +57,6 @@ export class CLOnChainTransactionHistoryComponent implements OnInit, OnDestroy { } ngOnInit() { - // this.store.dispatch(new CLActions.FetchTransactions()); this.store.select('cl') .pipe(takeUntil(this.unsub[0])) .subscribe((rtlStore) => { @@ -66,8 +65,9 @@ export class CLOnChainTransactionHistoryComponent implements OnInit, OnDestroy { this.flgLoading[0] = 'error'; } }); - if (rtlStore.transactions) { - this.loadTransactionsTable(rtlStore.transactions); + this.transactionsData = rtlStore.transactions; + if (this.transactionsData.length > 0) { + this.loadTransactionsTable(this.transactionsData); } if (this.flgLoading[0] !== 'error') { this.flgLoading[0] = (rtlStore.transactions) ? false : true; @@ -77,8 +77,14 @@ export class CLOnChainTransactionHistoryComponent implements OnInit, OnDestroy { } - applyFilter(selFilter: string) { - this.listTransactions.filter = selFilter; + ngAfterViewInit() { + if (this.transactionsData.length > 0) { + this.loadTransactionsTable(this.transactionsData); + } + } + + applyFilter(selFilter: any) { + this.listTransactions.filter = selFilter.value; } onTransactionClick(selTransaction: Transaction, event: any) { @@ -100,7 +106,7 @@ export class CLOnChainTransactionHistoryComponent implements OnInit, OnDestroy { loadTransactionsTable(transactions) { this.listTransactions = new MatTableDataSource([...transactions]); this.listTransactions.sort = this.sort; - this.listTransactions.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.listTransactions.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.listTransactions.paginator = this.paginator; this.logger.info(this.listTransactions); } diff --git a/src/app/clightning/on-chain/on-chain.component.html b/src/app/clightning/on-chain/on-chain.component.html index 21a7cf97..8bf83a01 100644 --- a/src/app/clightning/on-chain/on-chain.component.html +++ b/src/app/clightning/on-chain/on-chain.component.html @@ -1,4 +1,4 @@ -
+
On-chain Balance
@@ -9,36 +9,21 @@
-
+
On-chain Transactions
- - - - - -
-
- -
-
-
- -
-
- -
-
-
-
+ +
+ +
-
- -
+
diff --git a/src/app/clightning/on-chain/on-chain.component.ts b/src/app/clightning/on-chain/on-chain.component.ts index 83e61c47..093fcd4b 100644 --- a/src/app/clightning/on-chain/on-chain.component.ts +++ b/src/app/clightning/on-chain/on-chain.component.ts @@ -1,13 +1,14 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; -import { takeUntil } from 'rxjs/operators'; +import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { faExchangeAlt, faChartPie } from '@fortawesome/free-solid-svg-icons'; +import { CLOnChainSendModalComponent } from './on-chain-send-modal/on-chain-send-modal.component'; import { SelNodeChild } from '../../shared/models/RTLconfig'; import * as RTLActions from '../../store/rtl.actions'; import * as fromRTLReducer from '../../store/rtl.reducers'; -import { CLOnChainSendComponent } from './on-chain-send-modal/on-chain-send.component'; @Component({ selector: 'rtl-cl-on-chain', @@ -19,11 +20,20 @@ export class CLOnChainComponent implements OnInit, OnDestroy { public faExchangeAlt = faExchangeAlt; public faChartPie = faChartPie; public balances = [{title: 'Total Balance', dataValue: 0}, {title: 'Confirmed', dataValue: 0}, {title: 'Unconfirmed', dataValue: 0}]; + public links = [{link: 'receive', name: 'Receive'}, {link: 'send', name: 'Send'}, {link: 'sweep', name: 'Sweep All'}]; + public activeLink = this.links[0].link; private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; - constructor(private store: Store) {} + constructor(private store: Store, private router: Router) {} ngOnInit() { + let linkFound = this.links.find(link => this.router.url.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + let linkFound = this.links.find(link => value.urlAfterRedirects.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + }); this.store.select('cl') .pipe(takeUntil(this.unSubs[1])) .subscribe((rtlStore) => { @@ -35,7 +45,7 @@ export class CLOnChainComponent implements OnInit, OnDestroy { openSendFundsModal(sweepAll: boolean) { this.store.dispatch(new RTLActions.OpenAlert({ data: { sweepAll: sweepAll, - component: CLOnChainSendComponent + component: CLOnChainSendModalComponent }})); } diff --git a/src/app/clightning/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.html b/src/app/clightning/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.html index 06ed20db..caef6ab6 100644 --- a/src/app/clightning/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.html +++ b/src/app/clightning/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.html @@ -5,7 +5,7 @@
-
+
diff --git a/src/app/clightning/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.ts b/src/app/clightning/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.ts index e1b711fa..2a3b139c 100644 --- a/src/app/clightning/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.ts +++ b/src/app/clightning/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from '@angular/core'; import { Subject } from 'rxjs'; import { take, takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; @@ -27,20 +27,20 @@ import * as fromRTLReducer from '../../../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Channels') } ] }) -export class CLChannelOpenTableComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; +export class CLChannelOpenTableComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public faEye = faEye; public faEyeSlash = faEyeSlash public totalBalance = 0; - public displayedColumns = []; + public displayedColumns: any[] = []; + public channelsData: Channel[] = []; public channels: any; public myChanPolicy: any = {}; public information: GetInfo = {}; public numPeers = -1; public feeRateTypes = FEE_RATE_TYPES; public flgLoading: Array = [true]; - public selectedFilter = ''; public selFilter = ''; public flgSticky = false; public pageSize = PAGE_SIZE; @@ -78,8 +78,9 @@ export class CLChannelOpenTableComponent implements OnInit, OnDestroy { this.information = rtlStore.information; this.numPeers = (rtlStore.peers && rtlStore.peers.length) ? rtlStore.peers.length : 0; this.totalBalance = rtlStore.balance.totalBalance; - if (rtlStore.allChannels) { - this.loadChannelsTable(rtlStore.allChannels.filter(channel => channel.state === 'CHANNELD_NORMAL' && channel.connected)); + this.channelsData = rtlStore.allChannels.filter(channel => channel.state === 'CHANNELD_NORMAL' && channel.connected); + if (this.channelsData.length > 0) { + this.loadChannelsTable(this.channelsData); } if (this.flgLoading[0] !== 'error') { this.flgLoading[0] = (rtlStore.allChannels) ? false : true; @@ -88,11 +89,17 @@ export class CLChannelOpenTableComponent implements OnInit, OnDestroy { }); } + ngAfterViewInit() { + if (this.channelsData.length > 0) { + this.loadChannelsTable(this.channelsData); + } + } + onViewRemotePolicy(selChannel: Channel) { this.store.dispatch(new CLActions.ChannelLookup({shortChannelID: selChannel.short_channel_id, showError: true})); this.clEffects.setLookupCL .pipe(take(1)) - .subscribe((resLookup: ChannelEdge[]) => { + .subscribe((resLookup: ChannelEdge[]):boolean|void => { if(resLookup.length === 0) { return false; } let remoteNode: ChannelEdge = {}; if(resLookup[0].source !== this.information.id) { @@ -208,7 +215,6 @@ export class CLChannelOpenTableComponent implements OnInit, OnDestroy { } applyFilter() { - this.selectedFilter = this.selFilter; this.channels.filter = this.selFilter; } @@ -235,7 +241,7 @@ export class CLChannelOpenTableComponent implements OnInit, OnDestroy { return newChannel.includes(fltr.toLowerCase()); }; this.channels.sort = this.sort; - this.channels.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.channels.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.channels.paginator = this.paginator; this.logger.info(this.channels); } diff --git a/src/app/clightning/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.html b/src/app/clightning/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.html index 77978cf5..d37b02ce 100644 --- a/src/app/clightning/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.html +++ b/src/app/clightning/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.html @@ -5,7 +5,7 @@ -
+
diff --git a/src/app/clightning/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.ts b/src/app/clightning/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.ts index 87ddc9cc..7a85af85 100644 --- a/src/app/clightning/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.ts +++ b/src/app/clightning/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from '@angular/core'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; @@ -26,19 +26,19 @@ import * as fromRTLReducer from '../../../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Channels') } ] }) -export class CLChannelPendingTableComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; +export class CLChannelPendingTableComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public isCompatibleVersion = false; public totalBalance = 0; - public displayedColumns = []; + public displayedColumns: any[] = []; + public channelsData: Channel[] = []; public channels: any; public myChanPolicy: any = {}; public information: GetInfo = {}; public numPeers = -1; public feeRateTypes = FEE_RATE_TYPES; public flgLoading: Array = [true]; - public selectedFilter = ''; public selFilter = ''; public flgSticky = false; public pageSize = PAGE_SIZE; @@ -79,8 +79,9 @@ export class CLChannelPendingTableComponent implements OnInit, OnDestroy { } this.numPeers = (rtlStore.peers && rtlStore.peers.length) ? rtlStore.peers.length : 0; this.totalBalance = rtlStore.balance.totalBalance; - if (rtlStore.allChannels) { - this.loadChannelsTable(rtlStore.allChannels.filter(channel => !(channel.state === 'CHANNELD_NORMAL' && channel.connected))); + this.channelsData = rtlStore.allChannels.filter(channel => !(channel.state === 'CHANNELD_NORMAL' && channel.connected)); + if (this.channelsData.length > 0) { + this.loadChannelsTable(this.channelsData); } if (this.flgLoading[0] !== 'error') { this.flgLoading[0] = (rtlStore.allChannels) ? false : true; @@ -89,8 +90,13 @@ export class CLChannelPendingTableComponent implements OnInit, OnDestroy { }); } + ngAfterViewInit() { + if (this.channelsData.length > 0) { + this.loadChannelsTable(this.channelsData); + } + } + applyFilter() { - this.selectedFilter = this.selFilter; this.channels.filter = this.selFilter; } @@ -135,7 +141,7 @@ export class CLChannelPendingTableComponent implements OnInit, OnDestroy { return newChannel.includes(fltr.toLowerCase()); }; this.channels.sort = this.sort; - this.channels.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.channels.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.channels.paginator = this.paginator; this.logger.info(this.channels); } diff --git a/src/app/clightning/peers-channels/channels/channels-tables/channels-tables.component.html b/src/app/clightning/peers-channels/channels/channels-tables/channels-tables.component.html index d4f4ee15..21af6083 100644 --- a/src/app/clightning/peers-channels/channels/channels-tables/channels-tables.component.html +++ b/src/app/clightning/peers-channels/channels/channels-tables/channels-tables.component.html @@ -1,16 +1,22 @@ -
- - - - Open - - - - - - Pending/Inactive - - - - +
+
+ +
+
+ + + + Open + + + + + Pending/Inactive + + + +
+ +
+
diff --git a/src/app/clightning/peers-channels/channels/channels-tables/channels-tables.component.ts b/src/app/clightning/peers-channels/channels/channels-tables/channels-tables.component.ts index 9a986dfe..5ec3ac7f 100644 --- a/src/app/clightning/peers-channels/channels/channels-tables/channels-tables.component.ts +++ b/src/app/clightning/peers-channels/channels/channels-tables/channels-tables.component.ts @@ -1,9 +1,16 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; -import { takeUntil } from 'rxjs/operators'; +import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; +import { CLOpenChannelComponent } from '../open-channel-modal/open-channel.component'; +import { CommonService } from '../../../../shared/services/common.service'; import { LoggerService } from '../../../../shared/services/logger.service'; +import { GetInfo, Peer, Transaction } from '../../../../shared/models/clModels'; +import { SelNodeChild } from '../../../../shared/models/RTLconfig'; + +import * as RTLActions from '../../../../store/rtl.actions'; import * as fromRTLReducer from '../../../../store/rtl.reducers'; @Component({ @@ -14,13 +21,25 @@ import * as fromRTLReducer from '../../../../store/rtl.reducers'; export class CLChannelsTablesComponent implements OnInit, OnDestroy { public openChannels = 0; public pendingChannels = 0; - private unSubs: Array> = [new Subject()]; + public selNode: SelNodeChild = {}; + public information: GetInfo = {}; + public peers: Peer[] = []; + public transactions: Transaction[] = []; + public totalBalance = 0; + public links = [{link: 'open', name: 'Open'}, {link: 'pending', name: 'Pending/Inactive'}]; + public activeLink = 0; + private unSubs: Array> = [new Subject(), new Subject()]; - constructor(private logger: LoggerService, private store: Store) {} + constructor(private logger: LoggerService, private store: Store, private commonService: CommonService, private router: Router) {} ngOnInit() { + this.activeLink = this.links.findIndex(link => link.link === this.router.url.substring(this.router.url.lastIndexOf('/') + 1)); + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + this.activeLink = this.links.findIndex(link => link.link === value.urlAfterRedirects.substring(value.urlAfterRedirects.lastIndexOf('/') + 1)); + }); this.store.select('cl') - .pipe(takeUntil(this.unSubs[0])) + .pipe(takeUntil(this.unSubs[1])) .subscribe((rtlStore) => { if (rtlStore.allChannels && rtlStore.allChannels.length) { this.openChannels = 0; @@ -36,10 +55,35 @@ export class CLChannelsTablesComponent implements OnInit, OnDestroy { this.openChannels = 0; this.pendingChannels = 0; } + this.selNode = rtlStore.nodeSettings; + this.information = rtlStore.information; + this.peers = rtlStore.peers; + this.transactions = this.commonService.sortAscByKey(rtlStore.transactions.filter(tran => tran.status === 'confirmed'), 'value'); + this.totalBalance = rtlStore.balance.totalBalance; this.logger.info(rtlStore); }); } + onOpenChannel() { + const peerToAddChannelMessage = { + peers: this.peers, + information: this.information, + balance: this.totalBalance, + transactions: this.transactions, + isCompatibleVersion: this.commonService.isVersionCompatible(this.information.version, '0.9.0') && + this.commonService.isVersionCompatible(this.information.api_version, '0.4.0') + }; + this.store.dispatch(new RTLActions.OpenAlert({ data: { + alertTitle: 'Open Channel', + message: peerToAddChannelMessage, + component: CLOpenChannelComponent + }})); + } + + onSelectedTabChange(event) { + this.router.navigateByUrl('/cl/connections/channels/' + this.links[event.index].link); + } + ngOnDestroy() { this.unSubs.forEach(completeSub => { completeSub.next(); diff --git a/src/app/clightning/peers-channels/channels/open-channel-modal/open-channel.component.html b/src/app/clightning/peers-channels/channels/open-channel-modal/open-channel.component.html index 57fb1bf8..32634c21 100644 --- a/src/app/clightning/peers-channels/channels/open-channel-modal/open-channel.component.html +++ b/src/app/clightning/peers-channels/channels/open-channel-modal/open-channel.component.html @@ -19,7 +19,56 @@
- +
+
+ + + Remaining Bal: {{totalBalance - ((fundingAmount) ? fundingAmount : 0) | number}}{{flgUseAllBalance ? '. Amount replaced by UTXO balance' : ''}} + {{information?.smaller_currency_unit}} + Amount is required. + Amount must be less than or equal to {{totalBalance}}. + +
+ Private Channel +
+
+ + + + {{advancedTitle}} + + +
+
+ + + + {{feeRateType.feeRateType}} + + + +
+ + + + Min Confirmation Blocks is required. + +
+
+
+ + + {{totalSelectedUTXOAmount | number}} Sats ({{selUTXOs.length > 1 ? selUTXOs.length + ' UTXOs' : '1 UTXO'}}) + {{transaction.value | number}} Sats + + + + Use selected UTXOs balance + +
+
+
+
{{channelConnectionError}} @@ -61,55 +110,3 @@
- -
-
- - - Remaining Bal: {{totalBalance - ((fundingAmount) ? fundingAmount : 0) | number}}{{flgUseAllBalance ? '. Amount replaced by UTXO balance' : ''}} - {{information?.smaller_currency_unit}} - Amount is required. - Amount must be less than or equal to {{totalBalance}}. - -
- Private Channel -
-
- - - - {{advancedTitle}} - - -
-
- - - - {{feeRateType.feeRateType}} - - - -
- - - - Min Confirmation Blocks is required. - -
-
-
- - - {{totalSelectedUTXOAmount | number}} Sats ({{selUTXOs.length > 1 ? selUTXOs.length + ' UTXOs' : '1 UTXO'}}) - {{transaction.value | number}} Sats - - - - Use selected UTXOs balance - -
-
-
- -
diff --git a/src/app/clightning/peers-channels/channels/open-channel-modal/open-channel.component.ts b/src/app/clightning/peers-channels/channels/open-channel-modal/open-channel.component.ts index aa6b6ce0..f4c4e69c 100644 --- a/src/app/clightning/peers-channels/channels/open-channel-modal/open-channel.component.ts +++ b/src/app/clightning/peers-channels/channels/open-channel-modal/open-channel.component.ts @@ -22,7 +22,7 @@ import * as fromRTLReducer from '../../../../store/rtl.reducers'; styleUrls: ['./open-channel.component.scss'] }) export class CLOpenChannelComponent implements OnInit, OnDestroy { - @ViewChild('form', { static: false }) form: any; + @ViewChild('form', { static: true }) form: any; public selectedPeer = new FormControl(); public faExclamationTriangle = faExclamationTriangle; public alertTitle: string; @@ -159,7 +159,7 @@ export class CLOpenChannelComponent implements OnInit, OnDestroy { } } - onOpenChannel() { + onOpenChannel():boolean|void { if ((!this.peer && !this.selectedPubkey) || (!this.fundingAmount || ((this.totalBalance - this.fundingAmount) < 0) || (this.flgMinConf && !this.minConfValue))) { return true; } let newChannel = { peerId: ((!this.peer || !this.peer.id) ? this.selectedPubkey : this.peer.id), satoshis: (this.flgUseAllBalance) ? 'all' : this.fundingAmount.toString(), announce: !this.isPrivate, feeRate: this.selFeeRate, minconf: this.flgMinConf ? this.minConfValue : null }; if (this.selUTXOs.length && this.selUTXOs.length > 0) { diff --git a/src/app/clightning/peers-channels/connect-peer/connect-peer.component.html b/src/app/clightning/peers-channels/connect-peer/connect-peer.component.html index 1f1f72a4..20e19902 100644 --- a/src/app/clightning/peers-channels/connect-peer/connect-peer.component.html +++ b/src/app/clightning/peers-channels/connect-peer/connect-peer.component.html @@ -31,7 +31,7 @@
- + Remaining Bal: {{totalBalance - ((channelFormGroup.controls.fundingAmount.value) ? channelFormGroup.controls.fundingAmount.value : 0)}} Sats Amount is required. @@ -53,7 +53,7 @@
- + Min Confirmation Blocks is required.
diff --git a/src/app/clightning/peers-channels/connect-peer/connect-peer.component.ts b/src/app/clightning/peers-channels/connect-peer/connect-peer.component.ts index 11400a3b..0fa4f0a0 100644 --- a/src/app/clightning/peers-channels/connect-peer/connect-peer.component.ts +++ b/src/app/clightning/peers-channels/connect-peer/connect-peer.component.ts @@ -24,7 +24,7 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; styleUrls: ['./connect-peer.component.scss'] }) export class CLConnectPeerComponent implements OnInit, OnDestroy { - @ViewChild('peersForm', {static: true}) form: any; + @ViewChild('peersForm', {static: false}) form: any; @ViewChild('stepper', { static: false }) stepper: MatVerticalStepper; public faExclamationTriangle = faExclamationTriangle; public peerAddress = ''; @@ -97,14 +97,14 @@ export class CLConnectPeerComponent implements OnInit, OnDestroy { }); } - onConnectPeer() { + onConnectPeer():boolean|void { if(!this.peerFormGroup.controls.peerAddress.value) { return true; } this.peerConnectionError = ''; this.store.dispatch(new RTLActions.OpenSpinner('Adding Peer...')); this.store.dispatch(new CLActions.SaveNewPeer({id: this.peerFormGroup.controls.peerAddress.value})); } - onOpenChannel() { + onOpenChannel():boolean|void { if (!this.channelFormGroup.controls.fundingAmount.value || ((this.totalBalance - this.channelFormGroup.controls.fundingAmount.value) < 0) || (this.channelFormGroup.controls.flgMinConf.value && !this.channelFormGroup.controls.minConfValue.value)) { return true; } this.channelConnectionError = ''; this.store.dispatch(new RTLActions.OpenSpinner('Opening Channel...')); diff --git a/src/app/lnd/peers-channels/peers-channels.component.html b/src/app/clightning/peers-channels/connections.component.html similarity index 62% rename from src/app/lnd/peers-channels/peers-channels.component.html rename to src/app/clightning/peers-channels/connections.component.html index 5c806b50..67d1ea91 100644 --- a/src/app/lnd/peers-channels/peers-channels.component.html +++ b/src/app/clightning/peers-channels/connections.component.html @@ -1,4 +1,4 @@ -
+
On-chain Balance
@@ -9,32 +9,28 @@
-
+
Connections
- + Channels -
-
- -
- -
Peers -
+
+ +
\ No newline at end of file diff --git a/src/app/clightning/peers-channels/peers-channels.component.scss b/src/app/clightning/peers-channels/connections.component.scss similarity index 100% rename from src/app/clightning/peers-channels/peers-channels.component.scss rename to src/app/clightning/peers-channels/connections.component.scss diff --git a/src/app/lnd/peers-channels/peers-channels.component.spec.ts b/src/app/clightning/peers-channels/connections.component.spec.ts similarity index 52% rename from src/app/lnd/peers-channels/peers-channels.component.spec.ts rename to src/app/clightning/peers-channels/connections.component.spec.ts index b85d5fde..602496c6 100644 --- a/src/app/lnd/peers-channels/peers-channels.component.spec.ts +++ b/src/app/clightning/peers-channels/connections.component.spec.ts @@ -1,20 +1,20 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; -import { PeersChannelsComponent } from './peers-channels.component'; +import { CLConnectionsComponent } from './connections.component'; -describe('PeersChannelsComponent', () => { - let component: PeersChannelsComponent; - let fixture: ComponentFixture; +describe('CLConnectionsComponent', () => { + let component: CLConnectionsComponent; + let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ PeersChannelsComponent ] + declarations: [ CLConnectionsComponent ] }) .compileComponents(); })); beforeEach(() => { - fixture = TestBed.createComponent(PeersChannelsComponent); + fixture = TestBed.createComponent(CLConnectionsComponent); component = fixture.componentInstance; fixture.detectChanges(); }); diff --git a/src/app/clightning/peers-channels/peers-channels.component.ts b/src/app/clightning/peers-channels/connections.component.ts similarity index 54% rename from src/app/clightning/peers-channels/peers-channels.component.ts rename to src/app/clightning/peers-channels/connections.component.ts index ff51191f..ced06851 100644 --- a/src/app/clightning/peers-channels/peers-channels.component.ts +++ b/src/app/clightning/peers-channels/connections.component.ts @@ -1,68 +1,52 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; -import { takeUntil } from 'rxjs/operators'; +import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { faUsers, faChartPie } from '@fortawesome/free-solid-svg-icons'; import { GetInfo, Peer, Transaction } from '../../shared/models/clModels'; -import { CLOpenChannelComponent } from './channels/open-channel-modal/open-channel.component'; import { SelNodeChild } from '../../shared/models/RTLconfig'; import { LoggerService } from '../../shared/services/logger.service'; import { CommonService } from '../../shared/services/common.service'; -import * as RTLActions from '../../store/rtl.actions'; import * as fromRTLReducer from '../../store/rtl.reducers'; @Component({ - selector: 'rtl-cl-peers-channels', - templateUrl: './peers-channels.component.html', - styleUrls: ['./peers-channels.component.scss'] + selector: 'rtl-cl-connections', + templateUrl: './connections.component.html', + styleUrls: ['./connections.component.scss'] }) -export class CLPeersChannelsComponent implements OnInit, OnDestroy { - public selNode: SelNodeChild = {}; - public information: GetInfo = {}; - public peers: Peer[] = []; - public transactions: Transaction[] = []; - public totalBalance = 0; +export class CLConnectionsComponent implements OnInit, OnDestroy { public activePeers = 0; public activeChannels = 0; public faUsers = faUsers; public faChartPie = faChartPie; public balances = [{title: 'Total Balance', dataValue: 0}, {title: 'Confirmed', dataValue: 0}, {title: 'Unconfirmed', dataValue: 0}]; + public links = [{link: 'channels', name: 'Channels'}, {link: 'peers', name: 'Peers'}]; + public activeLink = 0; private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; - constructor(private store: Store, private logger: LoggerService, private commonService: CommonService) {} + constructor(private store: Store, private logger: LoggerService, private commonService: CommonService, private router: Router) {} ngOnInit() { + this.activeLink = this.links.findIndex(link => link.link === this.router.url.substring(this.router.url.lastIndexOf('/') + 1)); + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + this.activeLink = this.links.findIndex(link => link.link === value.urlAfterRedirects.substring(value.urlAfterRedirects.lastIndexOf('/') + 1)); + }); this.store.select('cl') .pipe(takeUntil(this.unSubs[1])) .subscribe((rtlStore) => { - this.selNode = rtlStore.nodeSettings; - this.information = rtlStore.information; - this.peers = rtlStore.peers; - this.transactions = this.commonService.sortAscByKey(rtlStore.transactions.filter(tran => tran.status === 'confirmed'), 'value'); this.activePeers = (rtlStore.peers && rtlStore.peers.length) ? rtlStore.peers.length : 0; this.activeChannels = rtlStore.information.num_active_channels; - this.totalBalance = rtlStore.balance.totalBalance; this.balances = [{title: 'Total Balance', dataValue: rtlStore.balance.totalBalance || 0}, {title: 'Confirmed', dataValue: rtlStore.balance.confBalance}, {title: 'Unconfirmed', dataValue: rtlStore.balance.unconfBalance}]; this.logger.info(rtlStore); }); } - onOpenChannel() { - const peerToAddChannelMessage = { - peers: this.peers, - information: this.information, - balance: this.totalBalance, - transactions: this.transactions, - isCompatibleVersion: this.commonService.isVersionCompatible(this.information.version, '0.9.0') && - this.commonService.isVersionCompatible(this.information.api_version, '0.4.0') - }; - this.store.dispatch(new RTLActions.OpenAlert({ data: { - alertTitle: 'Open Channel', - message: peerToAddChannelMessage, - component: CLOpenChannelComponent - }})); + onSelectedTabChange(event) { + this.router.navigateByUrl('/cl/connections/' + this.links[event.index].link); } ngOnDestroy() { diff --git a/src/app/clightning/peers-channels/peers/peers.component.html b/src/app/clightning/peers-channels/peers/peers.component.html index 4157dfac..de8f4435 100644 --- a/src/app/clightning/peers-channels/peers/peers.component.html +++ b/src/app/clightning/peers-channels/peers/peers.component.html @@ -3,38 +3,38 @@
-
+
Connected Peers
- +
-
+
- - + - - + diff --git a/src/app/clightning/peers-channels/peers/peers.component.scss b/src/app/clightning/peers-channels/peers/peers.component.scss index 93d92bd4..78171efc 100644 --- a/src/app/clightning/peers-channels/peers/peers.component.scss +++ b/src/app/clightning/peers-channels/peers/peers.component.scss @@ -1,12 +1,12 @@ .mat-column-alias { - flex: 1 1 10%; + flex: 1 1 20%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mat-column-id { - flex: 1 1 10%; + flex: 1 1 20%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; @@ -14,8 +14,8 @@ } .mat-column-netaddr { - flex: 1 1 15%; - width: 15%; + flex: 1 1 25%; + width: 25%; } .mat-column-actions { diff --git a/src/app/clightning/peers-channels/peers/peers.component.ts b/src/app/clightning/peers-channels/peers/peers.component.ts index a42f96fc..244a34d7 100644 --- a/src/app/clightning/peers-channels/peers/peers.component.ts +++ b/src/app/clightning/peers-channels/peers/peers.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from '@angular/core'; import { Subject } from 'rxjs'; import { takeUntil, filter } from 'rxjs/operators'; @@ -32,14 +32,15 @@ import { CLConnectPeerComponent } from '../connect-peer/connect-peer.component'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Peers') }, ] }) -export class CLPeersComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; +export class CLPeersComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public faUsers = faUsers; public newlyAddedPeer = ''; public flgAnimate = true; - public displayedColumns = []; + public displayedColumns: any[] = []; public peerAddress = ''; + public peersData: Peer[] = []; public peers: any; public information: GetInfo = {}; public availableBalance = 0; @@ -79,16 +80,10 @@ export class CLPeersComponent implements OnInit, OnDestroy { }); this.information = rtlStore.information; this.availableBalance = rtlStore.balance.totalBalance || 0; - this.peers = new MatTableDataSource([]); - this.peers.data = []; - if ( rtlStore.peers) { - this.peers = new MatTableDataSource([...rtlStore.peers]); - this.peers.data = rtlStore.peers; - setTimeout(() => { this.flgAnimate = false; }, 3000); + this.peersData = rtlStore.peers ? rtlStore.peers : []; + if (this.peersData.length > 0) { + this.loadPeersTable(this.peersData); } - this.peers.sort = this.sort; - this.peers.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; - this.peers.paginator = this.paginator; if (this.flgLoading[0] !== 'error') { this.flgLoading[0] = false; } @@ -104,6 +99,12 @@ export class CLPeersComponent implements OnInit, OnDestroy { }); } + ngAfterViewInit() { + if (this.peersData.length > 0) { + this.loadPeersTable(this.peersData); + } + } + onPeerClick(selPeer: Peer, event: any) { const reorderedPeer = [ [{key: 'id', value: selPeer.id, title: 'Public Key', width: 100}], @@ -160,8 +161,27 @@ export class CLPeersComponent implements OnInit, OnDestroy { }); } - applyFilter(selFilter: string) { - this.peers.filter = selFilter; + applyFilter(selFilter: any) { + this.peers.filter = selFilter.value; + } + + loadPeersTable(peersArr: Peer[]) { + this.peers = new MatTableDataSource([...peersArr]); + this.peers.sortingDataAccessor = (data: any, sortHeaderId: string) => { + switch (sortHeaderId) { + case 'netaddr': + if (data.netaddr && data.netaddr[0]) { + let firstSplit = data.netaddr[0].toString().split('.'); + return (firstSplit[0]) ? +firstSplit[0] : data.netaddr[0]; + } else { + return ''; + } + + default: return (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; + } + } + this.peers.sort = this.sort; + this.peers.paginator = this.paginator; } onDownloadCSV() { diff --git a/src/app/clightning/reports/fee/fee-report.component.html b/src/app/clightning/reports/fee/fee-report.component.html new file mode 100644 index 00000000..cbd4058f --- /dev/null +++ b/src/app/clightning/reports/fee/fee-report.component.html @@ -0,0 +1,35 @@ +
+ +
+
{{(totalFeeMsat / 1000 || 0) | number:'1.0-0'}} Sats/{{(filteredEventsBySelectedPeriod.length || 0) | number}} Events
+
No fee report for the selected period
+
+ + + + Events: {{(model.extra.totalEvents || 0) | number}} + Fee: {{(model.value || 0) | number:'1.0-0'}} + + + +
+
+ +
+
+
diff --git a/src/app/eclair/peers-channels/peers-channels.component.scss b/src/app/clightning/reports/fee/fee-report.component.scss similarity index 100% rename from src/app/eclair/peers-channels/peers-channels.component.scss rename to src/app/clightning/reports/fee/fee-report.component.scss diff --git a/src/app/clightning/reports/fee/fee-report.component.spec.ts b/src/app/clightning/reports/fee/fee-report.component.spec.ts new file mode 100644 index 00000000..36b226c0 --- /dev/null +++ b/src/app/clightning/reports/fee/fee-report.component.spec.ts @@ -0,0 +1,31 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { DataService } from '../../../shared/services/data.service'; + +import { CLFeeReportComponent } from './fee-report.component'; + +describe('CLFeeReportComponent', () => { + let component: CLFeeReportComponent; + let fixture: ComponentFixture; + const mockDataService = jasmine.createSpyObj("DataService", ["getChildAPIUrl","setChildAPIUrl","getFiatRates", + "getAliasesFromPubkeys","signMessage","verifyMessage","handleErrorWithoutAlert","handleErrorWithAlert"]); + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ CLFeeReportComponent ], + providers: [ + { provide: DataService, useValue: mockDataService } + ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(CLFeeReportComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/clightning/reports/fee/fee-report.component.ts b/src/app/clightning/reports/fee/fee-report.component.ts new file mode 100644 index 00000000..b5cd30e7 --- /dev/null +++ b/src/app/clightning/reports/fee/fee-report.component.ts @@ -0,0 +1,164 @@ +import { Component, OnInit, OnDestroy, HostListener, AfterViewInit } from '@angular/core'; +import { Subject } from 'rxjs'; +import { takeUntil } from 'rxjs/operators'; +import { Store } from '@ngrx/store'; + +import { ForwardingHistoryRes, ForwardingEvent } from '../../../shared/models/clModels'; +import { MONTHS, ScreenSizeEnum, SCROLL_RANGES } from '../../../shared/services/consts-enums-functions'; +import { LoggerService } from '../../../shared/services/logger.service'; +import { CommonService } from '../../../shared/services/common.service'; +import { DataService } from '../../../shared/services/data.service'; +import { fadeIn } from '../../../shared/animation/opacity-animation'; + +import * as fromRTLReducer from '../../../store/rtl.reducers'; + +@Component({ + selector: 'rtl-cl-fee-report', + templateUrl: './fee-report.component.html', + styleUrls: ['./fee-report.component.scss'], + animations: [fadeIn] +}) +export class CLFeeReportComponent implements OnInit, AfterViewInit, OnDestroy { + public reportPeriod = SCROLL_RANGES[0]; + public secondsInADay = 24 * 60 * 60; + public events: ForwardingHistoryRes = {}; + public filteredEventsBySelectedPeriod: ForwardingEvent[] = []; + public eventFilterValue = ''; + public errorMessage = ''; + public totalFeeMsat = null; + public today = new Date(Date.now()); + public timezoneOffset = this.today.getTimezoneOffset() * 60; + public startDate = new Date(this.today.getFullYear(), this.today.getMonth(), 1, 0, 0, 0); + public endDate = new Date(this.today.getFullYear(), this.today.getMonth(), this.getMonthDays(this.today.getMonth(), this.today.getFullYear()), 23, 59, 59); + public feeReportData: any = []; + public view: [number, number] = [350, 350]; + public screenPaddingX = 100; + public gradient = true; + public xAxisLabel = 'Date'; + public yAxisLabel = 'Fee (Sats)'; + public showYAxisLabel = true; + public screenSize = ''; + public screenSizeEnum = ScreenSizeEnum; + private unSubs: Array> = [new Subject(), new Subject()]; + + constructor(private logger: LoggerService, private dataService: DataService, private commonService: CommonService, private store: Store) {} + + ngOnInit() { + this.screenSize = this.commonService.getScreenSize(); + this.showYAxisLabel = !(this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM); + this.store.select('cl') + .pipe(takeUntil(this.unSubs[0])) + .subscribe((rtlStore) => { + this.errorMessage = ''; + rtlStore.effectErrors.forEach(effectsErr => { + if (effectsErr.action === 'GetForwardingHistory') { + this.errorMessage = (typeof(effectsErr.message) === 'object') ? JSON.stringify(effectsErr.message) : effectsErr.message; + } + }); + this.events = (rtlStore.forwardingHistory && rtlStore.forwardingHistory.forwarding_events) ? rtlStore.forwardingHistory : {}; + this.filterForwardingEvents(this.startDate, this.endDate); + this.logger.info(rtlStore); + }); + } + + ngAfterViewInit() { + const CONTAINER_SIZE = this.commonService.getContainerSize(); + switch (this.screenSize) { + case ScreenSizeEnum.MD: + this.screenPaddingX = CONTAINER_SIZE.width/10; + break; + + case ScreenSizeEnum.LG: + this.screenPaddingX = CONTAINER_SIZE.width/16; + break; + + default: + this.screenPaddingX = CONTAINER_SIZE.width/20; + break; + } + this.view = [CONTAINER_SIZE.width - this.screenPaddingX, CONTAINER_SIZE.height/2.2]; + } + + filterForwardingEvents(start: Date, end: Date) { + const startDateInSeconds = (Math.round(start.getTime()/1000) - this.timezoneOffset); + const endDateInSeconds = (Math.round(end.getTime()/1000) - this.timezoneOffset); + this.filteredEventsBySelectedPeriod = []; + this.feeReportData = []; + this.totalFeeMsat = null; + if (this.events && this.events.forwarding_events && this.events.forwarding_events.length > 0) { + this.events.forwarding_events.forEach(event => { + if (event.status === 'settled' && event.received_time >= startDateInSeconds && event.received_time < endDateInSeconds) { + this.filteredEventsBySelectedPeriod.push(event); + } + }); + this.feeReportData = this.prepareFeeReport(start); + } + } + + @HostListener('mouseup', ['$event']) onChartMouseUp(e) { + if (e.srcElement.tagName === 'svg' && e.srcElement.classList.length > 0 && e.srcElement.classList[0] === 'ngx-charts') { + this.eventFilterValue = ''; + } + } + + onChartBarSelected(event) { + if(this.reportPeriod === SCROLL_RANGES[1]) { + this.eventFilterValue = event.name.toUpperCase() + '/' + this.startDate.getFullYear(); + } else { + this.eventFilterValue = event.name.toString().padStart(2, '0') + '/' + MONTHS[this.startDate.getMonth()].name.toUpperCase() + '/' + this.startDate.getFullYear(); + } + } + + prepareFeeReport(start: Date) { + const startDateInSeconds = Math.round(start.getTime()/1000) - this.timezoneOffset; + let feeReport = []; + if (this.reportPeriod === SCROLL_RANGES[1]) { + for (let i = 0; i < 12; i++) { + feeReport.push({name: MONTHS[i].name, value: 0.000000001, extra: {totalEvents: 0}}); + } + this.filteredEventsBySelectedPeriod.map(event => { + let monthNumber = new Date((+event.received_time + this.timezoneOffset)*1000).getMonth(); + feeReport[monthNumber].value = feeReport[monthNumber].value + (+event.fee / 1000); + feeReport[monthNumber].extra.totalEvents = feeReport[monthNumber].extra.totalEvents + 1; + this.totalFeeMsat = (this.totalFeeMsat ? this.totalFeeMsat : 0) + +event.fee; + }); + } else { + for (let i = 0; i < this.getMonthDays(start.getMonth(), start.getFullYear()); i++) { + feeReport.push({name: i + 1, value: 0.000000001, extra: {totalEvents: 0}}); + } + this.filteredEventsBySelectedPeriod.map(event => { + let dateNumber = Math.floor((+event.received_time - startDateInSeconds) / this.secondsInADay); + feeReport[dateNumber].value = feeReport[dateNumber].value + (+event.fee / 1000); + feeReport[dateNumber].extra.totalEvents = feeReport[dateNumber].extra.totalEvents + 1; + this.totalFeeMsat = (this.totalFeeMsat ? this.totalFeeMsat : 0) + +event.fee; + }); + } + return feeReport; + } + + onSelectionChange(selectedValues: {selDate: Date, selScrollRange: string}) { + const selMonth = selectedValues.selDate.getMonth(); + const selYear = selectedValues.selDate.getFullYear(); + this.reportPeriod = selectedValues.selScrollRange; + if (this.reportPeriod === SCROLL_RANGES[1]) { + this.startDate = new Date(selYear, 0, 1, 0, 0, 0); + this.endDate = new Date(selYear, 11, 31, 23, 59, 59); + } else { + this.startDate = new Date(selYear, selMonth, 1, 0, 0, 0); + this.endDate = new Date(selYear, selMonth, this.getMonthDays(selMonth, selYear), 23, 59, 59); + } + this.filterForwardingEvents(this.startDate, this.endDate); + this.eventFilterValue = ''; + } + + getMonthDays(selMonth: number, selYear: number) { + return (selMonth === 1 && selYear%4 === 0) ? (MONTHS[selMonth].days+1) : MONTHS[selMonth].days; + } + + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } +} diff --git a/src/app/clightning/reports/reports.component.html b/src/app/clightning/reports/reports.component.html new file mode 100644 index 00000000..6b396353 --- /dev/null +++ b/src/app/clightning/reports/reports.component.html @@ -0,0 +1,15 @@ +
+ + Reports +
+
+ + + + + + +
+ \ No newline at end of file diff --git a/src/app/lnd/on-chain/on-chain-send-modal/on-chain-send.component.scss b/src/app/clightning/reports/reports.component.scss similarity index 100% rename from src/app/lnd/on-chain/on-chain-send-modal/on-chain-send.component.scss rename to src/app/clightning/reports/reports.component.scss diff --git a/src/app/clightning/peers-channels/peers-channels.component.spec.ts b/src/app/clightning/reports/reports.component.spec.ts similarity index 51% rename from src/app/clightning/peers-channels/peers-channels.component.spec.ts rename to src/app/clightning/reports/reports.component.spec.ts index 16771b9d..7f3866bf 100644 --- a/src/app/clightning/peers-channels/peers-channels.component.spec.ts +++ b/src/app/clightning/reports/reports.component.spec.ts @@ -1,20 +1,20 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; -import { CLPeersChannelsComponent } from './peers-channels.component'; +import { CLReportsComponent } from './reports.component'; -describe('CLPeersChannelsComponent', () => { - let component: CLPeersChannelsComponent; - let fixture: ComponentFixture; +describe('CLReportsComponent', () => { + let component: CLReportsComponent; + let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ CLPeersChannelsComponent ] + declarations: [ CLReportsComponent ] }) .compileComponents(); })); beforeEach(() => { - fixture = TestBed.createComponent(CLPeersChannelsComponent); + fixture = TestBed.createComponent(CLReportsComponent); component = fixture.componentInstance; fixture.detectChanges(); }); diff --git a/src/app/clightning/reports/reports.component.ts b/src/app/clightning/reports/reports.component.ts new file mode 100644 index 00000000..9e8ba2d7 --- /dev/null +++ b/src/app/clightning/reports/reports.component.ts @@ -0,0 +1,37 @@ +import { Component, OnDestroy, OnInit } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; +import { Subject } from 'rxjs'; +import { takeUntil, filter } from 'rxjs/operators'; +import { faChartBar } from '@fortawesome/free-solid-svg-icons'; + +@Component({ + selector: 'rtl-cl-reports', + templateUrl: './reports.component.html', + styleUrls: ['./reports.component.scss'] +}) +export class CLReportsComponent implements OnInit, OnDestroy { + public faChartBar = faChartBar; + public links = [{link: 'routingfees', name: 'Routing Fees'}, {link: 'transactions', name: 'Transactions'}]; + public activeLink = this.links[0].link; + private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; + + constructor(private router: Router) {} + + ngOnInit() { + let linkFound = this.links.find(link => this.router.url.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + let linkFound = this.links.find(link => value.urlAfterRedirects.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + }); + } + + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } + +} diff --git a/src/app/clightning/reports/transactions/transactions-report.component.html b/src/app/clightning/reports/transactions/transactions-report.component.html new file mode 100644 index 00000000..52a77cdf --- /dev/null +++ b/src/app/clightning/reports/transactions/transactions-report.component.html @@ -0,0 +1,40 @@ +
+ +
+
+
+ Paid {{(transactionsReportSummary.amountPaidSelectedPeriod / 1000 || 0) | number:'1.0-0'}} Sats/{{transactionsReportSummary.paymentsSelectedPeriod | number}} Payments +
+
+ Received {{(transactionsReportSummary.amountReceivedSelectedPeriod / 1000 || 0) | number:'1.0-0'}} Sats/{{transactionsReportSummary.invoicesSelectedPeriod | number}} Invoices +
+
+
No transactions report for the selected period
+
+ + + {{model.name}}: {{(model.value || 0) | number:'1.0-0'}}/# {{model.name === 'Paid' ? 'Payments' : 'Invoices'}}: {{(model.extra?.total || 0) | number}} + + +
+
+ +
+
+
diff --git a/src/app/lnd/peers-channels/peers-channels.component.scss b/src/app/clightning/reports/transactions/transactions-report.component.scss similarity index 100% rename from src/app/lnd/peers-channels/peers-channels.component.scss rename to src/app/clightning/reports/transactions/transactions-report.component.scss diff --git a/src/app/clightning/reports/transactions/transactions-report.component.spec.ts b/src/app/clightning/reports/transactions/transactions-report.component.spec.ts new file mode 100644 index 00000000..7b9a370e --- /dev/null +++ b/src/app/clightning/reports/transactions/transactions-report.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { CLTransactionsReportComponent } from './transactions-report.component'; + +describe('CLTransactionsReportComponent', () => { + let component: CLTransactionsReportComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ CLTransactionsReportComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(CLTransactionsReportComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/clightning/reports/transactions/transactions-report.component.ts b/src/app/clightning/reports/transactions/transactions-report.component.ts new file mode 100644 index 00000000..09286a86 --- /dev/null +++ b/src/app/clightning/reports/transactions/transactions-report.component.ts @@ -0,0 +1,177 @@ +import { Component, OnInit, OnDestroy, HostListener, AfterViewInit } from '@angular/core'; +import { Subject } from 'rxjs'; +import { takeUntil } from 'rxjs/operators'; +import { Store } from '@ngrx/store'; + +import { Payment, Invoice } from '../../../shared/models/clModels'; +import { DataService } from '../../../shared/services/data.service'; +import { CommonService } from '../../../shared/services/common.service'; +import { MONTHS, ScreenSizeEnum, SCROLL_RANGES } from '../../../shared/services/consts-enums-functions'; +import { fadeIn } from '../../../shared/animation/opacity-animation'; + +import * as fromRTLReducer from '../../../store/rtl.reducers'; + +@Component({ + selector: 'rtl-cl-transactions-report', + templateUrl: './transactions-report.component.html', + styleUrls: ['./transactions-report.component.scss'], + animations: [fadeIn] +}) +export class CLTransactionsReportComponent implements OnInit, AfterViewInit, OnDestroy { + public scrollRanges = SCROLL_RANGES; + public reportPeriod = SCROLL_RANGES[0]; + public secondsInADay = 24 * 60 * 60; + public payments: Payment[] = []; + public invoices: Invoice[] = []; + public transactionsReportSummary = { paymentsSelectedPeriod: 0, invoicesSelectedPeriod: 0, amountPaidSelectedPeriod: 0, amountReceivedSelectedPeriod: 0 }; + public transactionFilterValue = ''; + public today = new Date(Date.now()); + public timezoneOffset = this.today.getTimezoneOffset() * 60; + public startDate = new Date(this.today.getFullYear(), this.today.getMonth(), 1, 0, 0, 0); + public endDate = new Date(this.today.getFullYear(), this.today.getMonth(), this.getMonthDays(this.today.getMonth(), this.today.getFullYear()), 23, 59, 59); + public transactionsReportData: any = []; + public transactionsNonZeroReportData: any = []; + public view: [number, number] = [350, 350]; + public screenPaddingX = 100; + public gradient = true; + public xAxisLabel = 'Date'; + public yAxisLabel = 'Amount (Sats)'; + public showYAxisLabel = true; + public screenSize = ''; + public screenSizeEnum = ScreenSizeEnum; + private unSubs: Array> = [new Subject(), new Subject()]; + + constructor(private dataService: DataService, private commonService: CommonService, private store: Store) {} + + ngOnInit() { + this.screenSize = this.commonService.getScreenSize(); + this.showYAxisLabel = !(this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM); + this.store.select('cl') + .pipe(takeUntil(this.unSubs[0])) + .subscribe((rtlStore) => { + if(rtlStore.initialAPIResponseStatus[0] === 'COMPLETE') { + this.dataService.getTransactionsForReport() + .pipe(takeUntil(this.unSubs[1])).subscribe(res => { + this.payments = res.payments; + this.invoices = res.invoices; + this.transactionsReportData = this.filterTransactionsForSelectedPeriod(this.startDate, this.endDate); + this.transactionsNonZeroReportData = this.prepareTableData(); + }); + } + }); + } + + ngAfterViewInit() { + const CONTAINER_SIZE = this.commonService.getContainerSize(); + switch (this.screenSize) { + case ScreenSizeEnum.MD: + this.screenPaddingX = CONTAINER_SIZE.width/10; + break; + + case ScreenSizeEnum.LG: + this.screenPaddingX = CONTAINER_SIZE.width/16; + break; + + default: + this.screenPaddingX = CONTAINER_SIZE.width/20; + break; + } + this.view = [CONTAINER_SIZE.width - this.screenPaddingX, CONTAINER_SIZE.height/2.2]; + } + + @HostListener('mouseup', ['$event']) onChartMouseUp(e) { + if (e.srcElement.tagName === 'svg' && e.srcElement.classList.length > 0 && e.srcElement.classList[0] === 'ngx-charts') { + this.transactionFilterValue = ''; + } + } + + onChartBarSelected(event) { + if(this.reportPeriod === SCROLL_RANGES[1]) { + this.transactionFilterValue = event.series.toUpperCase() + '/' + this.startDate.getFullYear(); + } else { + this.transactionFilterValue = event.series.toString().padStart(2, '0') + '/' + MONTHS[this.startDate.getMonth()].name.toUpperCase() + '/' + this.startDate.getFullYear(); + } + } + + filterTransactionsForSelectedPeriod(start: Date, end: Date) { + const startDateInSeconds = Math.round(start.getTime()/1000) - this.timezoneOffset; + const endDateInSeconds = Math.round(end.getTime()/1000) - this.timezoneOffset; + let transactionsReport = []; + this.transactionsReportSummary = { paymentsSelectedPeriod: 0, invoicesSelectedPeriod: 0, amountPaidSelectedPeriod: 0, amountReceivedSelectedPeriod: 0 }; + let filteredPayments = this.payments.filter(payment => payment.status === 'complete' && payment.created_at >= startDateInSeconds && payment.created_at < endDateInSeconds); + let filteredInvoices = this.invoices.filter(invoice => invoice.status === 'paid' && invoice.paid_at >= startDateInSeconds && invoice.paid_at < endDateInSeconds); + this.transactionsReportSummary.paymentsSelectedPeriod = filteredPayments.length; + this.transactionsReportSummary.invoicesSelectedPeriod = filteredInvoices.length; + if (this.reportPeriod === SCROLL_RANGES[1]) { + for (let i = 0; i < 12; i++) { + transactionsReport.push({name: MONTHS[i].name, date: new Date(start.getFullYear(), i, 1, 0, 0, 0, 0), series: [{name: 'Paid', value: 0, extra: {total: 0}}, {name: 'Received', value: 0, extra: {total: 0}}]}); + } + filteredPayments.map(payment => { + let monthNumber = new Date((payment.created_at + this.timezoneOffset)*1000).getMonth(); + this.transactionsReportSummary.amountPaidSelectedPeriod = this.transactionsReportSummary.amountPaidSelectedPeriod + payment.msatoshi_sent; + transactionsReport[monthNumber].series[0].value = transactionsReport[monthNumber].series[0].value + (payment.msatoshi_sent / 1000); + transactionsReport[monthNumber].series[0].extra.total = transactionsReport[monthNumber].series[0].extra.total + 1; + }); + filteredInvoices.map(invoice => { + let monthNumber = new Date((+invoice.paid_at + this.timezoneOffset)*1000).getMonth(); + this.transactionsReportSummary.amountReceivedSelectedPeriod = this.transactionsReportSummary.amountReceivedSelectedPeriod + invoice.msatoshi_received; + transactionsReport[monthNumber].series[1].value = transactionsReport[monthNumber].series[1].value + (invoice.msatoshi_received / 1000); + transactionsReport[monthNumber].series[1].extra.total = transactionsReport[monthNumber].series[1].extra.total + 1; + }); + } else { + for (let i = 0; i < this.getMonthDays(start.getMonth(), start.getFullYear()); i++) { + transactionsReport.push({name: (i + 1).toString(), date: new Date((((i+1)*this.secondsInADay) + startDateInSeconds)*1000), series: [{name: 'Paid', value: 0, extra: {total: 0}}, {name: 'Received', value: 0, extra: {total: 0}}]}); + } + filteredPayments.map(payment => { + let dateNumber = Math.floor((+payment.created_at - startDateInSeconds) / this.secondsInADay); + this.transactionsReportSummary.amountPaidSelectedPeriod = this.transactionsReportSummary.amountPaidSelectedPeriod + payment.msatoshi_sent; + transactionsReport[dateNumber].series[0].value = transactionsReport[dateNumber].series[0].value + (payment.msatoshi_sent / 1000); + transactionsReport[dateNumber].series[0].extra.total = transactionsReport[dateNumber].series[0].extra.total + 1; + }); + filteredInvoices.map(invoice => { + let dateNumber = Math.floor((+invoice.paid_at - startDateInSeconds) / this.secondsInADay); + this.transactionsReportSummary.amountReceivedSelectedPeriod = this.transactionsReportSummary.amountReceivedSelectedPeriod + invoice.msatoshi_received; + transactionsReport[dateNumber].series[1].value = transactionsReport[dateNumber].series[1].value + (invoice.msatoshi_received / 1000); + transactionsReport[dateNumber].series[1].extra.total = transactionsReport[dateNumber].series[1].extra.total + 1; + }); + } + return transactionsReport; + } + + prepareTableData() { + return this.transactionsReportData.reduce((acc, curr) => { + if (curr.series[0].value > 0 || curr.series[1].value >0) { + return acc.concat({date: curr.date, date_str: this.commonService.convertTimestampToDate(curr.date.getTime()/1000), amount_paid: curr.series[0].value, num_payments: curr.series[0].extra.total, amount_received: curr.series[1].value, num_invoices: curr.series[1].extra.total}); + } + return acc; + }, []); + } + + onSelectionChange(selectedValues: {selDate: Date, selScrollRange: string}) { + const selMonth = selectedValues.selDate.getMonth(); + const selYear = selectedValues.selDate.getFullYear(); + this.reportPeriod = selectedValues.selScrollRange; + if (this.reportPeriod === SCROLL_RANGES[1]) { + this.startDate = new Date(selYear, 0, 1, 0, 0, 0); + this.endDate = new Date(selYear, 11, 31, 23, 59, 59); + } else { + this.startDate = new Date(selYear, selMonth, 1, 0, 0, 0); + this.endDate = new Date(selYear, selMonth, this.getMonthDays(selMonth, selYear), 23, 59, 59); + } + this.transactionsReportData = this.filterTransactionsForSelectedPeriod(this.startDate, this.endDate); + this.transactionsNonZeroReportData = this.prepareTableData(); + this.transactionFilterValue = ''; + } + + getMonthDays(selMonth: number, selYear: number) { + return (selMonth === 1 && selYear%4 === 0) ? (MONTHS[selMonth].days+1) : MONTHS[selMonth].days; + } + + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } +} + diff --git a/src/app/clightning/routing/failed-transactions/failed-transactions.component.html b/src/app/clightning/routing/failed-transactions/failed-transactions.component.html index 917b307f..7b5d8ebc 100644 --- a/src/app/clightning/routing/failed-transactions/failed-transactions.component.html +++ b/src/app/clightning/routing/failed-transactions/failed-transactions.component.html @@ -1,15 +1,16 @@ -
-
+
+
{{errorMessage}}
+
- +
-
+
Alias + Alias {{peer?.alias}} ID + ID {{peer?.id}} Network Address - {{ addr}},
+ {{addr}},
- + diff --git a/src/app/clightning/routing/failed-transactions/failed-transactions.component.ts b/src/app/clightning/routing/failed-transactions/failed-transactions.component.ts index 858f9bae..b76e59e8 100644 --- a/src/app/clightning/routing/failed-transactions/failed-transactions.component.ts +++ b/src/app/clightning/routing/failed-transactions/failed-transactions.component.ts @@ -1,4 +1,6 @@ -import { Component, OnInit, OnChanges, ViewChild, Input } from '@angular/core'; +import { Component, OnInit, OnChanges, ViewChild, Input, OnDestroy, AfterViewInit } from '@angular/core'; +import { Subject } from 'rxjs'; +import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { MatPaginator, MatPaginatorIntl } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; @@ -20,17 +22,19 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Events') } ] }) -export class CLFailedTransactionsComponent implements OnInit, OnChanges { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; - @Input() failedEvents: any; - public displayedColumns = []; +export class CLFailedTransactionsComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; + public failedEvents: any; + public errorMessage = ''; + public displayedColumns: any[] = []; public forwardingHistoryEvents: any; public flgSticky = false; public pageSize = PAGE_SIZE; public pageSizeOptions = PAGE_SIZE_OPTIONS; public screenSize = ''; public screenSizeEnum = ScreenSizeEnum; + private unSubs: Array> = [new Subject(), new Subject(), new Subject()]; constructor(private logger: LoggerService, private commonService: CommonService, private store: Store) { this.screenSize = this.commonService.getScreenSize(); @@ -46,10 +50,30 @@ export class CLFailedTransactionsComponent implements OnInit, OnChanges { } } - ngOnInit() {} + ngOnInit() { + this.store.select('cl') + .pipe(takeUntil(this.unSubs[0])) + .subscribe((rtlStore) => { + this.errorMessage = ''; + rtlStore.effectErrors.forEach(effectsErr => { + if (effectsErr.action === 'GetForwardingHistory') { + this.errorMessage = (typeof(effectsErr.message) === 'object') ? JSON.stringify(effectsErr.message) : effectsErr.message; + } + }); + this.failedEvents = (rtlStore.forwardingHistory && rtlStore.forwardingHistory.forwarding_events && rtlStore.forwardingHistory.forwarding_events.length > 0) ? this.filterFailedEvents(rtlStore.forwardingHistory.forwarding_events) : []; + this.loadForwardingEventsTable(this.failedEvents); + this.logger.info(rtlStore); + }); + } - ngOnChanges() { - this.loadForwardingEventsTable(this.failedEvents); + ngAfterViewInit() { + if (this.failedEvents.length > 0) { + this.loadForwardingEventsTable(this.failedEvents); + } + } + + filterFailedEvents(events) { + return events.filter(event => event.status !== 'settled'); } onForwardingEventClick(selFEvent: ForwardingEvent, event: any) { @@ -74,7 +98,7 @@ export class CLFailedTransactionsComponent implements OnInit, OnChanges { loadForwardingEventsTable(forwardingEvents: ForwardingEvent[]) { this.forwardingHistoryEvents = new MatTableDataSource([...forwardingEvents]); this.forwardingHistoryEvents.sort = this.sort; - this.forwardingHistoryEvents.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.forwardingHistoryEvents.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.forwardingHistoryEvents.paginator = this.paginator; this.forwardingHistoryEvents.filterPredicate = (event: ForwardingEvent, fltr: string) => { const newEvent = event.status + event.received_time_str + event.resolved_time_str + event.in_channel + event.out_channel + (event.in_msatoshi/1000) + (event.out_msatoshi/1000) + event.fee; @@ -89,8 +113,14 @@ export class CLFailedTransactionsComponent implements OnInit, OnChanges { } } - applyFilter(selFilter: string) { - this.forwardingHistoryEvents.filter = selFilter; + applyFilter(selFilter: any) { + this.forwardingHistoryEvents.filter = selFilter.value; } + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } } diff --git a/src/app/clightning/routing/forwarding-history/forwarding-history.component.html b/src/app/clightning/routing/forwarding-history/forwarding-history.component.html index 917b307f..78bdb8e3 100644 --- a/src/app/clightning/routing/forwarding-history/forwarding-history.component.html +++ b/src/app/clightning/routing/forwarding-history/forwarding-history.component.html @@ -1,11 +1,12 @@ -
-
+
+
{{errorMessage}}
+
- +
-
+
Status{{fhEvent?.status}}{{fhEvent?.status | titlecase}} Received Time
@@ -36,7 +37,7 @@ - + diff --git a/src/app/clightning/routing/forwarding-history/forwarding-history.component.ts b/src/app/clightning/routing/forwarding-history/forwarding-history.component.ts index 4b7093d0..71c9cdf6 100644 --- a/src/app/clightning/routing/forwarding-history/forwarding-history.component.ts +++ b/src/app/clightning/routing/forwarding-history/forwarding-history.component.ts @@ -1,4 +1,6 @@ -import { Component, OnInit, OnChanges, ViewChild, Input } from '@angular/core'; +import { Component, OnInit, ViewChild, OnDestroy, SimpleChanges, Input, AfterViewInit } from '@angular/core'; +import { Subject } from 'rxjs'; +import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { MatPaginator, MatPaginatorIntl } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; @@ -20,17 +22,21 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Events') } ] }) -export class CLForwardingHistoryComponent implements OnInit, OnChanges { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; - @Input() successfulEvents: any; - public displayedColumns = []; +export class CLForwardingHistoryComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; + @Input() eventsData = []; + @Input() filterValue = ''; + public successfulEvents = []; + public errorMessage = ''; + public displayedColumns: any[] = []; public forwardingHistoryEvents: any; public flgSticky = false; public pageSize = PAGE_SIZE; public pageSizeOptions = PAGE_SIZE_OPTIONS; public screenSize = ''; public screenSizeEnum = ScreenSizeEnum; + private unSubs: Array> = [new Subject(), new Subject(), new Subject()]; constructor(private logger: LoggerService, private commonService: CommonService, private store: Store) { this.screenSize = this.commonService.getScreenSize(); @@ -46,10 +52,43 @@ export class CLForwardingHistoryComponent implements OnInit, OnChanges { } } - ngOnInit() {} + ngOnInit() { + this.store.select('cl') + .pipe(takeUntil(this.unSubs[0])) + .subscribe((rtlStore) => { + if (this.eventsData.length <= 0) { + this.errorMessage = ''; + rtlStore.effectErrors.forEach(effectsErr => { + if (effectsErr.action === 'GetForwardingHistory') { + this.errorMessage = (typeof(effectsErr.message) === 'object') ? JSON.stringify(effectsErr.message) : effectsErr.message; + } + }); + this.successfulEvents = (rtlStore.forwardingHistory && rtlStore.forwardingHistory.forwarding_events && rtlStore.forwardingHistory.forwarding_events.length > 0) ? this.filterSuccessfulEvents(rtlStore.forwardingHistory.forwarding_events) : []; + this.loadForwardingEventsTable(this.successfulEvents); + this.logger.info(rtlStore); + } + }); + } - ngOnChanges() { - this.loadForwardingEventsTable(this.successfulEvents); + ngAfterViewInit() { + if (this.successfulEvents.length > 0) { + this.loadForwardingEventsTable(this.successfulEvents); + } + } + + ngOnChanges(changes: SimpleChanges) { + if (changes.eventsData) { + this.eventsData = changes.eventsData.currentValue; + this.successfulEvents = this.eventsData; + this.loadForwardingEventsTable(this.successfulEvents); + } + if (changes.filterValue) { + this.applyFilter(); + } + } + + filterSuccessfulEvents(events) { + return events.filter(event => event.status === 'settled'); } onForwardingEventClick(selFEvent: ForwardingEvent, event: any) { @@ -74,10 +113,10 @@ export class CLForwardingHistoryComponent implements OnInit, OnChanges { loadForwardingEventsTable(forwardingEvents: ForwardingEvent[]) { this.forwardingHistoryEvents = new MatTableDataSource([...forwardingEvents]); this.forwardingHistoryEvents.sort = this.sort; - this.forwardingHistoryEvents.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.forwardingHistoryEvents.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.forwardingHistoryEvents.paginator = this.paginator; this.forwardingHistoryEvents.filterPredicate = (event: ForwardingEvent, fltr: string) => { - const newEvent = event.received_time_str + event.resolved_time_str + event.in_channel + event.out_channel + (event.in_msatoshi/1000) + (event.out_msatoshi/1000) + event.fee; + const newEvent = event.received_time_str.toLowerCase() + event.resolved_time_str.toLowerCase() + event.in_channel + event.out_channel + (event.in_msatoshi/1000) + (event.out_msatoshi/1000) + event.fee; return newEvent.includes(fltr.toLowerCase()); }; this.logger.info(this.forwardingHistoryEvents); @@ -89,8 +128,14 @@ export class CLForwardingHistoryComponent implements OnInit, OnChanges { } } - applyFilter(selFilter: string) { - this.forwardingHistoryEvents.filter = selFilter; + applyFilter() { + this.forwardingHistoryEvents.filter = this.filterValue; } + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } } diff --git a/src/app/clightning/routing/routing.component.html b/src/app/clightning/routing/routing.component.html index f3c29788..ca6d9d0b 100644 --- a/src/app/clightning/routing/routing.component.html +++ b/src/app/clightning/routing/routing.component.html @@ -1,22 +1,18 @@
-
+
Routing
- -
- - -
{{errorMessage}}
- -
- -
{{errorMessage}}
- -
-
+ +
+ +
+
+
diff --git a/src/app/clightning/routing/routing.component.ts b/src/app/clightning/routing/routing.component.ts index 53b2b81d..8a2612cc 100644 --- a/src/app/clightning/routing/routing.component.ts +++ b/src/app/clightning/routing/routing.component.ts @@ -1,14 +1,11 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; -import { Actions } from '@ngrx/effects'; import { faMapSigns } from '@fortawesome/free-solid-svg-icons'; -import { LoggerService } from '../../shared/services/logger.service'; - import * as CLActions from '../store/cl.actions'; -import * as RTLActions from '../../store/rtl.actions'; import * as fromRTLReducer from '../../store/rtl.reducers'; @@ -19,78 +16,23 @@ import * as fromRTLReducer from '../../store/rtl.reducers'; }) export class CLRoutingComponent implements OnInit, OnDestroy { public faMapSigns = faMapSigns; - public lastOffsetIndex = 0; - public successfulData = []; - public failedData = []; - public filteredData = false; - public today = new Date(Date.now()); - public lastMonthDay = new Date( - this.today.getFullYear(), this.today.getMonth(), this.today.getDate() - 30, - this.today.getHours(), this.today.getMinutes(), this.today.getSeconds() - ); - public yesterday = new Date(this.today.getFullYear(), this.today.getMonth(), this.today.getDate() - 1, this.today.getHours(), this.today.getMinutes(), this.today.getSeconds()); - public endDate = this.today; - public startDate = this.lastMonthDay; - public flgLoading: Array = [true]; - public errorMessage = ''; + public links = [{link: 'forwardinghistory', name: 'Forwarding History'}, {link: 'failedtransactions', name: 'Failed Transactions'}]; + public activeLink = this.links[0].link; private unSubs: Array> = [new Subject(), new Subject(), new Subject()]; - constructor(private logger: LoggerService, private store: Store, private actions$: Actions) {} + constructor(private store: Store, private router: Router) {} ngOnInit() { - this.onEventsFetch(); - this.store.select('cl') - .pipe(takeUntil(this.unSubs[0])) - .subscribe((rtlStore) => { - this.filteredData = false; - this.errorMessage = ''; - rtlStore.effectErrors.forEach(effectsErr => { - if (effectsErr.action === 'GetForwardingHistory') { - this.flgLoading[0] = 'error'; - this.errorMessage = (typeof(effectsErr.message) === 'object') ? JSON.stringify(effectsErr.message) : effectsErr.message; - } - }); - if (rtlStore.forwardingHistory && rtlStore.forwardingHistory.forwarding_events) { - this.lastOffsetIndex = rtlStore.forwardingHistory.last_offset_index; - this.successfulData = []; - this.failedData = []; - rtlStore.forwardingHistory.forwarding_events.forEach(event => { - if (event.status === 'settled') { - this.successfulData.push(event); - } else { - this.failedData.push(event); - } - }); - this.filteredData = true; - } else { - // To reset table after other Forwarding history calls - this.lastOffsetIndex = 0; - this.successfulData = []; - this.failedData = []; - } - if (this.flgLoading[0] !== 'error') { - this.flgLoading[0] = ( rtlStore.forwardingHistory) ? false : true; - } - this.logger.info(rtlStore); + let linkFound = this.links.find(link => this.router.url.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + let linkFound = this.links.find(link => value.urlAfterRedirects.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; }); } - onEventsFetch() { - if (!this.endDate) { this.endDate = new Date(); } - if (!this.startDate) { this.startDate = new Date(this.endDate.getFullYear(), this.endDate.getMonth(), this.endDate.getDate() - 30); } - this.store.dispatch(new CLActions.GetForwardingHistory()); - } - - resetData() { - this.endDate = new Date(); - this.startDate = new Date(this.endDate.getFullYear(), this.endDate.getMonth(), this.endDate.getDate() - 1); - this.successfulData = []; - this.failedData = []; - this.lastOffsetIndex = 0; - } - ngOnDestroy() { - this.resetData(); this.store.dispatch(new CLActions.SetForwardingHistory({})); this.unSubs.forEach(completeSub => { completeSub.next(); diff --git a/src/app/clightning/sign-verify-message/sign-verify-message.component.html b/src/app/clightning/sign-verify-message/sign-verify-message.component.html index 3ba5fc91..499d96b5 100644 --- a/src/app/clightning/sign-verify-message/sign-verify-message.component.html +++ b/src/app/clightning/sign-verify-message/sign-verify-message.component.html @@ -1,14 +1,16 @@ -
+
Sign/Verify Message
- - - - + +
+ +
diff --git a/src/app/clightning/sign-verify-message/sign-verify-message.component.ts b/src/app/clightning/sign-verify-message/sign-verify-message.component.ts index 7bd20853..54671dd9 100644 --- a/src/app/clightning/sign-verify-message/sign-verify-message.component.ts +++ b/src/app/clightning/sign-verify-message/sign-verify-message.component.ts @@ -1,4 +1,7 @@ -import { Component } from '@angular/core'; +import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; +import { Subject } from 'rxjs'; +import { takeUntil, filter } from 'rxjs/operators'; import { faUserCheck } from '@fortawesome/free-solid-svg-icons'; @Component({ @@ -6,9 +9,29 @@ import { faUserCheck } from '@fortawesome/free-solid-svg-icons'; templateUrl: './sign-verify-message.component.html', styleUrls: ['./sign-verify-message.component.scss'] }) -export class CLSignVerifyMessageComponent { +export class CLSignVerifyMessageComponent implements OnInit, OnDestroy { public faUserCheck = faUserCheck; + public links = [{link: 'sign', name: 'Sign'}, {link: 'verify', name: 'Verify'}]; + public activeLink = this.links[0].link; + private unSubs: Array> = [new Subject(), new Subject()]; - constructor() {} + constructor(private router: Router) {} + + ngOnInit() { + let linkFound = this.links.find(link => this.router.url.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + let linkFound = this.links.find(link => value.urlAfterRedirects.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + }); + } + + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } } diff --git a/src/app/clightning/sign-verify-message/sign/sign.component.ts b/src/app/clightning/sign-verify-message/sign/sign.component.ts index 7501160b..a714a627 100644 --- a/src/app/clightning/sign-verify-message/sign/sign.component.ts +++ b/src/app/clightning/sign-verify-message/sign/sign.component.ts @@ -21,7 +21,7 @@ export class CLSignComponent implements OnInit, OnDestroy { ngOnInit() {} - onSign() { + onSign():boolean|void { if (!this.message || this.message === '') { return true; } this.dataService.signMessage(this.message).pipe(takeUntil(this.unSubs[0])).subscribe(res => { this.signedMessage = this.message; diff --git a/src/app/clightning/sign-verify-message/verify/verify.component.ts b/src/app/clightning/sign-verify-message/verify/verify.component.ts index 0659bc6a..de53104f 100644 --- a/src/app/clightning/sign-verify-message/verify/verify.component.ts +++ b/src/app/clightning/sign-verify-message/verify/verify.component.ts @@ -24,7 +24,7 @@ export class CLVerifyComponent implements OnInit, OnDestroy { ngOnInit() {} - onVerify() { + onVerify():boolean|void { if ((!this.message || this.message === '') || (!this.signature || this.signature === '')) { return true; } this.dataService.verifyMessage(this.message, this.signature).pipe(takeUntil(this.unSubs[0])) .subscribe(res => { diff --git a/src/app/clightning/transactions/create-invoice-modal/create-invoice.component.html b/src/app/clightning/transactions/create-invoice-modal/create-invoice.component.html index c77d7bb1..588120fd 100644 --- a/src/app/clightning/transactions/create-invoice-modal/create-invoice.component.html +++ b/src/app/clightning/transactions/create-invoice-modal/create-invoice.component.html @@ -13,12 +13,12 @@
- + {{information?.smaller_currency_unit}} {{invoiceValueHint}} - + {{selTimeUnit | titlecase}} diff --git a/src/app/clightning/transactions/invoices/lightning-invoices.component.html b/src/app/clightning/transactions/invoices/lightning-invoices.component.html index 5254b057..a51478f1 100644 --- a/src/app/clightning/transactions/invoices/lightning-invoices.component.html +++ b/src/app/clightning/transactions/invoices/lightning-invoices.component.html @@ -1,10 +1,10 @@ -
-
+
+ - + {{information?.smaller_currency_unit}} {{invoiceValueHint}} @@ -13,21 +13,21 @@
-
+
-
-
-
+
+
+
Invoices History
- - + +
-
+
Status{{fhEvent?.out_msatoshi/1000 | number:fhEvent?.out_msatoshi < 1000 ? '1.0-4' : '1.0-0'}} Fee mSatFee (mSat) {{fhEvent?.fee | number}}
diff --git a/src/app/clightning/transactions/invoices/lightning-invoices.component.ts b/src/app/clightning/transactions/invoices/lightning-invoices.component.ts index 3884e401..27fb4889 100644 --- a/src/app/clightning/transactions/invoices/lightning-invoices.component.ts +++ b/src/app/clightning/transactions/invoices/lightning-invoices.component.ts @@ -14,13 +14,14 @@ import { GetInfo, Invoice } from '../../../shared/models/clModels'; import { LoggerService } from '../../../shared/services/logger.service'; import { CommonService } from '../../../shared/services/common.service'; +import { CLCreateInvoiceComponent } from '../create-invoice-modal/create-invoice.component'; import { CLInvoiceInformationComponent } from '../invoice-information-modal/invoice-information.component'; import { newlyAddedRowAnimation } from '../../../shared/animation/row-animation'; import { RTLEffects } from '../../../store/rtl.effects'; + import * as CLActions from '../../store/cl.actions'; import * as RTLActions from '../../../store/rtl.actions'; import * as fromRTLReducer from '../../../store/rtl.reducers'; -import { CLCreateInvoiceComponent } from '../create-invoice-modal/create-invoice.component'; @Component({ selector: 'rtl-cl-lightning-invoices', @@ -32,9 +33,9 @@ import { CLCreateInvoiceComponent } from '../create-invoice-modal/create-invoice ] }) export class CLLightningInvoicesComponent implements OnInit, OnDestroy { - @Input() showDetails = true; - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; + @Input() calledFrom = 'transactions'; // transactions/home + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; faHistory = faHistory; public selNode: SelNodeChild = {}; public newlyAddedInvoiceMemo = ''; @@ -42,9 +43,9 @@ export class CLLightningInvoicesComponent implements OnInit, OnDestroy { public flgAnimate = true; public description = ''; public expiry: number; - public invoiceValue: number; + public invoiceValue: number = null; public invoiceValueHint = ''; - public displayedColumns = []; + public displayedColumns: any[] = []; public invoicePaymentReq = ''; public invoices: any; public invoiceJSONArr: Invoice[] = []; @@ -95,7 +96,7 @@ export class CLLightningInvoicesComponent implements OnInit, OnDestroy { this.invoices = (rtlStore.invoices.invoices) ? new MatTableDataSource([]) : new MatTableDataSource([...this.invoiceJSONArr]); this.invoices.data = this.invoiceJSONArr; this.invoices.sort = this.sort; - this.invoices.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.invoices.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.invoices.paginator = this.paginator; setTimeout(() => { this.flgAnimate = false; }, 5000); this.logger.info(this.invoices); @@ -168,8 +169,8 @@ export class CLLightningInvoicesComponent implements OnInit, OnDestroy { this.invoiceValueHint = ''; } - applyFilter(selFilter: string) { - this.invoices.filter = selFilter; + applyFilter(selFilter: any) { + this.invoices.filter = selFilter.value; } onInvoiceValueChange() { diff --git a/src/app/clightning/transactions/payments/lightning-payments.component.html b/src/app/clightning/transactions/payments/lightning-payments.component.html index 207080fd..17347359 100644 --- a/src/app/clightning/transactions/payments/lightning-payments.component.html +++ b/src/app/clightning/transactions/payments/lightning-payments.component.html @@ -1,29 +1,29 @@
-
- - + + + {{paymentDecodedHint}} Payment request is required. -
+
-
- -
-
-
-
+
+ +
+
+
+
Payments History
- - + +
-
+
diff --git a/src/app/clightning/transactions/payments/lightning-payments.component.ts b/src/app/clightning/transactions/payments/lightning-payments.component.ts index 35e312af..c0b41dc6 100644 --- a/src/app/clightning/transactions/payments/lightning-payments.component.ts +++ b/src/app/clightning/transactions/payments/lightning-payments.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy, ViewChild, Input } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, Input, AfterViewInit } from '@angular/core'; import { DecimalPipe, TitleCasePipe } from '@angular/common'; import { Subject } from 'rxjs'; import { takeUntil, take } from 'rxjs/operators'; @@ -21,6 +21,7 @@ import { RTLEffects } from '../../../store/rtl.effects'; import * as CLActions from '../../store/cl.actions'; import * as RTLActions from '../../../store/rtl.actions'; import * as fromRTLReducer from '../../../store/rtl.reducers'; +import { Payments } from '../../../shared/models/eclModels'; @Component({ selector: 'rtl-cl-lightning-payments', @@ -31,11 +32,11 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Payments') } ] }) -export class CLLightningPaymentsComponent implements OnInit, OnDestroy { - @Input() showDetails = true; - @ViewChild('sendPaymentForm', { static: true }) form; - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; +export class CLLightningPaymentsComponent implements OnInit, AfterViewInit, OnDestroy { + @Input() calledFrom = 'transactions'; // transactions/home + @ViewChild('sendPaymentForm', { static: false }) form; + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public faHistory = faHistory; public newlyAddedPayment = ''; public flgAnimate = true; @@ -44,7 +45,7 @@ export class CLLightningPaymentsComponent implements OnInit, OnDestroy { public information: GetInfo = {}; public payments: any; public paymentJSONArr: Payment[] = []; - public displayedColumns = []; + public displayedColumns: any[] = []; public mppColumns = []; public paymentDecoded: PayRequest = {}; public paymentRequest = ''; @@ -89,11 +90,9 @@ export class CLLightningPaymentsComponent implements OnInit, OnDestroy { this.information = rtlStore.information; this.selNode = rtlStore.nodeSettings; this.paymentJSONArr = (rtlStore.payments && rtlStore.payments.length > 0) ? rtlStore.payments : []; - this.payments = (!rtlStore.payments) ? new MatTableDataSource([]) : new MatTableDataSource([...this.paymentJSONArr]); - this.payments.data = this.paymentJSONArr; - this.payments.sort = this.sort; - this.payments.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; - this.payments.paginator = this.paginator; + if (this.paymentJSONArr.length > 0) { + this.loadPaymentsTable(this.paymentJSONArr); + } setTimeout(() => { this.flgAnimate = false; }, 3000); if (this.flgLoading[0] !== 'error') { this.flgLoading[0] = ( this.paymentJSONArr) ? false : true; @@ -102,11 +101,17 @@ export class CLLightningPaymentsComponent implements OnInit, OnDestroy { }); } - is_group(index: number, payment: Payment) { + ngAfterViewInit() { + if (this.paymentJSONArr.length > 0) { + this.loadPaymentsTable(this.paymentJSONArr); + } + } + + is_group(index: number, payment: Payment):boolean { return payment.is_group; } - onSendPayment() { + onSendPayment():boolean|void { if(!this.paymentRequest) { return true; } if (this.paymentDecoded.created_at_str) { this.sendPayment(); @@ -259,8 +264,16 @@ export class CLLightningPaymentsComponent implements OnInit, OnDestroy { }})); } - applyFilter(selFilter: string) { - this.payments.filter = selFilter; + applyFilter(selFilter: any) { + this.payments.filter = selFilter.value; + } + + loadPaymentsTable(payments: Payment[]) { + this.payments = (payments) ? new MatTableDataSource([...payments]) : new MatTableDataSource([]); + this.payments.data = this.paymentJSONArr; + this.payments.sort = this.sort; + this.payments.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; + this.payments.paginator = this.paginator; } onDownloadCSV() { diff --git a/src/app/clightning/transactions/query-routes/query-routes.component.html b/src/app/clightning/transactions/query-routes/query-routes.component.html index 1f9f23f4..adccdab4 100644 --- a/src/app/clightning/transactions/query-routes/query-routes.component.html +++ b/src/app/clightning/transactions/query-routes/query-routes.component.html @@ -9,7 +9,7 @@ Destination pubkey is required. - + Amount is required.
@@ -23,7 +23,7 @@ Transaction Route
-
+
diff --git a/src/app/clightning/transactions/query-routes/query-routes.component.ts b/src/app/clightning/transactions/query-routes/query-routes.component.ts index 3b22a16b..7fdbe84f 100644 --- a/src/app/clightning/transactions/query-routes/query-routes.component.ts +++ b/src/app/clightning/transactions/query-routes/query-routes.component.ts @@ -21,13 +21,13 @@ import { AlertTypeEnum, DataTypeEnum, ScreenSizeEnum } from '../../../shared/ser styleUrls: ['./query-routes.component.scss'] }) export class CLQueryRoutesComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild('queryRoutesForm', { static: false }) form: any; + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild('queryRoutesForm', { static: true }) form: any; public destinationPubkey = ''; - public amount = null; + public amount:number = null; public qrHops: any; public flgSticky = false; - public displayedColumns = []; + public displayedColumns: any[] = []; public flgLoading: Array = [false]; // 0: peers public faRoute = faRoute; public faExclamationTriangle = faExclamationTriangle; @@ -66,11 +66,11 @@ export class CLQueryRoutesComponent implements OnInit, OnDestroy { this.flgLoading[0] = 'error'; } this.qrHops.sort = this.sort; - this.qrHops.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.qrHops.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; }); } - onQueryRoutes() { + onQueryRoutes():boolean|void { if(!this.destinationPubkey || !this.amount) { return true; } this.flgLoading[0] = true; this.store.dispatch(new CLActions.GetQueryRoutes({destPubkey: this.destinationPubkey, amount: this.amount*1000})); diff --git a/src/app/clightning/transactions/send-payment-modal/send-payment.component.ts b/src/app/clightning/transactions/send-payment-modal/send-payment.component.ts index 41d13623..bf565a3e 100644 --- a/src/app/clightning/transactions/send-payment-modal/send-payment.component.ts +++ b/src/app/clightning/transactions/send-payment-modal/send-payment.component.ts @@ -79,7 +79,7 @@ export class CLLightningSendPaymentsComponent implements OnInit, OnDestroy { }); } - onSendPayment() { + onSendPayment():boolean|void { if ((this.paymentType === 'invoice' && !this.paymentRequest) || (this.paymentType === 'keysend' && (!this.pubkey || this.pubkey.trim() === '' || !this.keysendAmount || this.keysendAmount <= 0))) { return true; } if (this.paymentType === 'keysend') { this.keysendPayment(); diff --git a/src/app/clightning/transactions/transactions.component.html b/src/app/clightning/transactions/transactions.component.html index e10f1afd..79fc7ea3 100644 --- a/src/app/clightning/transactions/transactions.component.html +++ b/src/app/clightning/transactions/transactions.component.html @@ -1,4 +1,4 @@ -
+
Lightning Balance
@@ -9,18 +9,19 @@
-
+
Lightning Transactions
- - - - - + +
+ +
diff --git a/src/app/clightning/transactions/transactions.component.ts b/src/app/clightning/transactions/transactions.component.ts index ffeeab1e..4be234fd 100644 --- a/src/app/clightning/transactions/transactions.component.ts +++ b/src/app/clightning/transactions/transactions.component.ts @@ -1,6 +1,7 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; -import { takeUntil } from 'rxjs/operators'; +import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { faExchangeAlt, faChartPie } from '@fortawesome/free-solid-svg-icons'; @@ -18,13 +19,22 @@ export class CLTransactionsComponent implements OnInit, OnDestroy { faChartPie = faChartPie; currencyUnits = []; balances = [{title: 'Local Capacity', dataValue: 0, tooltip: 'Amount you can send'}, {title: 'Remote Capacity', dataValue: 0, tooltip: 'Amount you can receive'}]; + public links = [{link: 'payments', name: 'Payments'}, {link: 'invoices', name: 'Invoices'}, {link: 'queryroutes', name: 'Query Routes'}]; + public activeLink = this.links[0].link; private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; - constructor(private logger: LoggerService, private store: Store) {} + constructor(private logger: LoggerService, private store: Store, private router: Router) {} ngOnInit() { + let linkFound = this.links.find(link => this.router.url.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + let linkFound = this.links.find(link => value.urlAfterRedirects.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + }); this.store.select('cl') - .pipe(takeUntil(this.unSubs[0])) + .pipe(takeUntil(this.unSubs[1])) .subscribe((rtlStore) => { this.currencyUnits = rtlStore.nodeSettings.currencyUnits; if(rtlStore.nodeSettings.userPersona === UserPersonaEnum.OPERATOR) { diff --git a/src/app/eclair/ecl.module.ts b/src/app/eclair/ecl.module.ts index 670d2b63..86982de0 100644 --- a/src/app/eclair/ecl.module.ts +++ b/src/app/eclair/ecl.module.ts @@ -15,7 +15,7 @@ import { ECLChannelLiquidityInfoComponent } from './home/channel-liquidity-info/ import { ECLOnChainComponent } from './on-chain/on-chain.component'; import { ECLOnChainReceiveComponent } from './on-chain/on-chain-receive/on-chain-receive.component'; import { ECLOnChainTransactionHistoryComponent } from './on-chain/on-chain-transaction-history/on-chain-transaction-history.component'; -import { ECLPeersChannelsComponent } from './peers-channels/peers-channels.component'; +import { ECLConnectionsComponent } from './peers-channels/connections.component'; import { ECLPeersComponent } from './peers-channels/peers/peers.component'; import { ECLChannelsTablesComponent } from './peers-channels/channels/channels-tables/channels-tables.component'; import { ECLChannelOpenTableComponent } from './peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component'; @@ -30,6 +30,19 @@ import { ECLForwardingHistoryComponent } from './routing/forwarding-history/forw import { ECLRoutingPeersComponent } from './routing/routing-peers/routing-peers.component'; import { ECLLookupsComponent } from './lookups/lookups.component'; import { ECLNodeLookupComponent } from './lookups/node-lookup/node-lookup.component'; +import { ECLReportsComponent } from './reports/reports.component'; +import { ECLFeeReportComponent } from './reports/fee/fee-report.component'; +import { ECLTransactionsReportComponent } from './reports/transactions/transactions-report.component'; +import { ECLOnChainSendComponent } from './on-chain/on-chain-send/on-chain-send.component'; +import { ECLInvoiceInformationComponent } from './transactions/invoice-information-modal/invoice-information.component'; +import { ECLPaymentInformationComponent } from './transactions/payment-information-modal/payment-information.component'; +import { ECLOpenChannelComponent } from './peers-channels/channels/open-channel-modal/open-channel.component'; +import { ECLConnectPeerComponent } from './peers-channels/connect-peer/connect-peer.component'; +import { ECLLightningSendPaymentsComponent } from './transactions/send-payment-modal/send-payment.component'; +import { ECLCreateInvoiceComponent } from './transactions/create-invoice-modal/create-invoice.component'; +import { ECLOnChainSendModalComponent } from './on-chain/on-chain-send-modal/on-chain-send-modal.component'; +import { ECLChannelInformationComponent } from './peers-channels/channels/channel-information-modal/channel-information.component'; + import { ECLUnlockedGuard } from '../shared/services/auth.guard'; @NgModule({ @@ -51,7 +64,7 @@ import { ECLUnlockedGuard } from '../shared/services/auth.guard'; ECLOnChainReceiveComponent, ECLOnChainTransactionHistoryComponent, ECLPeersComponent, - ECLPeersChannelsComponent, + ECLConnectionsComponent, ECLChannelsTablesComponent, ECLChannelOpenTableComponent, ECLChannelPendingTableComponent, @@ -64,7 +77,19 @@ import { ECLUnlockedGuard } from '../shared/services/auth.guard'; ECLLightningPaymentsComponent, ECLLightningInvoicesComponent, ECLLookupsComponent, - ECLNodeLookupComponent + ECLNodeLookupComponent, + ECLReportsComponent, + ECLFeeReportComponent, + ECLTransactionsReportComponent, + ECLOnChainSendComponent, + ECLInvoiceInformationComponent, + ECLPaymentInformationComponent, + ECLOpenChannelComponent, + ECLConnectPeerComponent, + ECLLightningSendPaymentsComponent, + ECLCreateInvoiceComponent, + ECLOnChainSendModalComponent, + ECLChannelInformationComponent ], providers: [ ECLUnlockedGuard diff --git a/src/app/eclair/ecl.routing.ts b/src/app/eclair/ecl.routing.ts index a5346ef2..bdc45e25 100644 --- a/src/app/eclair/ecl.routing.ts +++ b/src/app/eclair/ecl.routing.ts @@ -4,24 +4,68 @@ import { ModuleWithProviders } from '@angular/core'; import { ECLRootComponent } from './ecl-root.component'; import { ECLHomeComponent } from './home/home.component'; import { ECLOnChainComponent } from './on-chain/on-chain.component'; -import { ECLPeersChannelsComponent } from './peers-channels/peers-channels.component'; +import { ECLConnectionsComponent } from './peers-channels/connections.component'; import { ECLTransactionsComponent } from './transactions/transactions.component'; import { ECLRoutingComponent } from './routing/routing.component'; import { ECLLookupsComponent } from './lookups/lookups.component'; +import { ECLOnChainReceiveComponent } from './on-chain/on-chain-receive/on-chain-receive.component'; +import { ECLOnChainSendComponent } from './on-chain/on-chain-send/on-chain-send.component'; +import { ECLChannelsTablesComponent } from './peers-channels/channels/channels-tables/channels-tables.component'; +import { ECLChannelOpenTableComponent } from './peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component'; +import { ECLChannelPendingTableComponent } from './peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component'; +import { ECLPeersComponent } from './peers-channels/peers/peers.component'; +import { ECLLightningPaymentsComponent } from './transactions/payments/lightning-payments.component'; +import { ECLLightningInvoicesComponent } from './transactions/invoices/lightning-invoices.component'; +import { ECLQueryRoutesComponent } from './transactions/query-routes/query-routes.component'; +import { ECLChannelInactiveTableComponent } from './peers-channels/channels/channels-tables/channel-inactive-table/channel-inactive-table.component'; +import { ECLForwardingHistoryComponent } from './routing/forwarding-history/forwarding-history.component'; +import { ECLRoutingPeersComponent } from './routing/routing-peers/routing-peers.component'; +import { ECLReportsComponent } from './reports/reports.component'; +import { ECLFeeReportComponent } from './reports/fee/fee-report.component'; +import { ECLTransactionsReportComponent } from './reports/transactions/transactions-report.component'; import { ECLUnlockedGuard } from '../shared/services/auth.guard'; import { NotFoundComponent } from '../shared/components/not-found/not-found.component'; export const EclRoutes: Routes = [ { path: '', component: ECLRootComponent, children: [ - { path: 'home', component: ECLHomeComponent, canActivate: [ECLUnlockedGuard] }, - { path: 'onchain', component: ECLOnChainComponent, canActivate: [ECLUnlockedGuard] }, - { path: 'peerschannels', component: ECLPeersChannelsComponent, canActivate: [ECLUnlockedGuard] }, - { path: 'transactions', component: ECLTransactionsComponent, canActivate: [ECLUnlockedGuard] }, - { path: 'routing', component: ECLRoutingComponent, canActivate: [ECLUnlockedGuard] }, - { path: 'lookups', component: ECLLookupsComponent, canActivate: [ECLUnlockedGuard] }, - { path: '**', component: NotFoundComponent } - ]} + { path: '', pathMatch: 'full', redirectTo: 'home' }, + { path: 'home', component: ECLHomeComponent, canActivate: [ECLUnlockedGuard] }, + { path: 'onchain', component: ECLOnChainComponent, canActivate: [ECLUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'receive' }, + { path: 'receive', component: ECLOnChainReceiveComponent, canActivate: [ECLUnlockedGuard] }, + { path: 'send', component: ECLOnChainSendComponent, canActivate: [ECLUnlockedGuard] } + ] }, + { path: 'connections', component: ECLConnectionsComponent, canActivate: [ECLUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'channels' }, + { path: 'channels', component: ECLChannelsTablesComponent, canActivate: [ECLUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'open' }, + { path: 'open', component: ECLChannelOpenTableComponent, canActivate: [ECLUnlockedGuard] }, + { path: 'pending', component: ECLChannelPendingTableComponent, canActivate: [ECLUnlockedGuard] }, + { path: 'inactive', component: ECLChannelInactiveTableComponent, canActivate: [ECLUnlockedGuard] } + ] }, + { path: 'peers', component: ECLPeersComponent, data : {sweepAll : false}, canActivate: [ECLUnlockedGuard] } + ] }, + { path: 'transactions', component: ECLTransactionsComponent, canActivate: [ECLUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'payments' }, + { path: 'payments', component: ECLLightningPaymentsComponent, canActivate: [ECLUnlockedGuard] }, + { path: 'invoices', component: ECLLightningInvoicesComponent, canActivate: [ECLUnlockedGuard] }, + { path: 'queryroutes', component: ECLQueryRoutesComponent, canActivate: [ECLUnlockedGuard] } + ] }, + { path: 'routing', component: ECLRoutingComponent, canActivate: [ECLUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'forwardinghistory' }, + { path: 'forwardinghistory', component: ECLForwardingHistoryComponent, canActivate: [ECLUnlockedGuard] }, + { path: 'peers', component: ECLRoutingPeersComponent, canActivate: [ECLUnlockedGuard] } + ] }, + { path: 'reports', component: ECLReportsComponent, canActivate: [ECLUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'routingfees' }, + { path: 'routingfees', component: ECLFeeReportComponent, canActivate: [ECLUnlockedGuard] }, + { path: 'transactions', component: ECLTransactionsReportComponent, canActivate: [ECLUnlockedGuard] } + ] }, + { path: 'lookups', component: ECLLookupsComponent, canActivate: [ECLUnlockedGuard] }, + { path: '**', component: NotFoundComponent } + ] + } ]; -export const ECLRouting: ModuleWithProviders = RouterModule.forChild(EclRoutes); +export const ECLRouting: ModuleWithProviders = RouterModule.forChild(EclRoutes); diff --git a/src/app/eclair/home/channel-capacity-info/channel-capacity-info.component.html b/src/app/eclair/home/channel-capacity-info/channel-capacity-info.component.html index 89bb3210..b46aaa9e 100644 --- a/src/app/eclair/home/channel-capacity-info/channel-capacity-info.component.html +++ b/src/app/eclair/home/channel-capacity-info/channel-capacity-info.component.html @@ -12,7 +12,7 @@
-
+
{{(channel?.alias || channel?.shortChannelId) | slice:0:24}}{{(channel?.alias || channel?.shortChannelId).length > 25 ? '...' : ''}} diff --git a/src/app/eclair/home/channel-capacity-info/channel-capacity-info.component.ts b/src/app/eclair/home/channel-capacity-info/channel-capacity-info.component.ts index 32551c30..2b9b660b 100644 --- a/src/app/eclair/home/channel-capacity-info/channel-capacity-info.component.ts +++ b/src/app/eclair/home/channel-capacity-info/channel-capacity-info.component.ts @@ -19,7 +19,7 @@ export class ECLChannelCapacityInfoComponent { constructor(private router: Router) {} goToChannels() { - this.router.navigateByUrl('/ecl/peerschannels'); + this.router.navigateByUrl('/ecl/connections'); } } diff --git a/src/app/eclair/home/channel-liquidity-info/channel-liquidity-info.component.html b/src/app/eclair/home/channel-liquidity-info/channel-liquidity-info.component.html index e162d82b..a42309d8 100644 --- a/src/app/eclair/home/channel-liquidity-info/channel-liquidity-info.component.html +++ b/src/app/eclair/home/channel-liquidity-info/channel-liquidity-info.component.html @@ -1,11 +1,11 @@ -
+
Total Capacity {{totalLiquidity | number:'1.0-0'}} Sats
-
+
{{(channel.alias || channel.shortChannelId) | slice:0:24}}{{(channel.alias || channel.shortChannelId).length > 25 ? '...' : ''}} diff --git a/src/app/eclair/home/channel-liquidity-info/channel-liquidity-info.component.ts b/src/app/eclair/home/channel-liquidity-info/channel-liquidity-info.component.ts index 370169b9..0d58932f 100644 --- a/src/app/eclair/home/channel-liquidity-info/channel-liquidity-info.component.ts +++ b/src/app/eclair/home/channel-liquidity-info/channel-liquidity-info.component.ts @@ -1,22 +1,30 @@ -import { Component, Input } from '@angular/core'; +import { Component, Input, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { Channel } from '../../../shared/models/eclModels'; +import { ScreenSizeEnum } from '../../../shared/services/consts-enums-functions'; +import { CommonService } from '../../../shared/services/common.service'; @Component({ selector: 'rtl-ecl-channel-liquidity-info', templateUrl: './channel-liquidity-info.component.html', styleUrls: ['./channel-liquidity-info.component.scss'] }) -export class ECLChannelLiquidityInfoComponent { +export class ECLChannelLiquidityInfoComponent implements OnInit { @Input() direction: string; @Input() totalLiquidity: number; @Input() allChannels: Channel[]; + public screenSize = ''; + public screenSizeEnum = ScreenSizeEnum; - constructor(private router: Router) {} + constructor(private router: Router, private commonService: CommonService) {} + + ngOnInit() { + this.screenSize = this.commonService.getScreenSize(); + } goToChannels() { - this.router.navigateByUrl('/ecl/peerschannels'); + this.router.navigateByUrl('/ecl/connections'); } } diff --git a/src/app/eclair/home/home.component.html b/src/app/eclair/home/home.component.html index ba20c90a..7ab88edb 100644 --- a/src/app/eclair/home/home.component.html +++ b/src/app/eclair/home/home.component.html @@ -1,28 +1,33 @@
-
+
{{!flgLoading[0] ? 'Welcome ' + information.alias + '! Your node is up and running.' : 'Error! Please check the server connection.'}}
- + - - - {{card.title}} - - - - - + +
+ + {{card.title}} +
+
+ + + + + + +
- +
@@ -44,28 +49,31 @@
-
+
Welcome {{information.alias}}! Your node is up and running.
- + - - - {{card.title}} - - - - + +
+ + {{card.title}} +
+
+ + + + +
- +
@@ -80,10 +88,10 @@ - + - + @@ -93,6 +101,7 @@ + diff --git a/src/app/eclair/home/home.component.scss b/src/app/eclair/home/home.component.scss index b966f638..e69de29b 100644 --- a/src/app/eclair/home/home.component.scss +++ b/src/app/eclair/home/home.component.scss @@ -1,17 +0,0 @@ -.dashboard-card { - position: absolute; - top: 1rem; - left: 1rem; - right: 1rem; - bottom: 1rem; -} - -.more-button { - position: absolute; - top: 7px; - right: 7px; -} - -.dashboard-card-content { - text-align: left; -} diff --git a/src/app/eclair/home/home.component.ts b/src/app/eclair/home/home.component.ts index 0cc5bcd3..03618ea7 100644 --- a/src/app/eclair/home/home.component.ts +++ b/src/app/eclair/home/home.component.ts @@ -32,7 +32,7 @@ export class ECLHomeComponent implements OnInit, OnDestroy { public faNetworkWired = faNetworkWired; public flgChildInfoUpdated = false; public userPersonaEnum = UserPersonaEnum; - public channelBalances = {localBalance: 0, remoteBalance: 0, balancedness: '0'}; + public channelBalances = {localBalance: 0, remoteBalance: 0, balancedness: 0}; public selNode: SelNodeChild = {}; public fees: Fees; public information: GetInfo = {}; @@ -61,28 +61,28 @@ export class ECLHomeComponent implements OnInit, OnDestroy { { id: 'node', icon: this.faServer, title: 'Node Information', cols: 10, rows: 1 }, { id: 'balance', goTo: 'On-Chain', link: '/ecl/onchain', icon: this.faChartPie, title: 'Balances', cols: 10, rows: 1 }, { id: 'fee', goTo: 'Routing', link: '/ecl/routing', icon: this.faBolt, title: 'Routing Fee', cols: 10, rows: 1 }, - { id: 'status', goTo: 'Channels', link: '/ecl/peerschannels', icon: this.faNetworkWired, title: 'Channels', cols: 10, rows: 1 }, - { id: 'capacity', goTo: 'Channels', link: '/ecl/peerschannels', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 10, rows: 2 } + { id: 'status', goTo: 'Channels', link: '/ecl/connections', icon: this.faNetworkWired, title: 'Channels', cols: 10, rows: 1 }, + { id: 'capacity', goTo: 'Channels', link: '/ecl/connections', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 10, rows: 2 } ]; this.merchantCards = [ { id: 'balance', goTo: 'On-Chain', link: '/ecl/onchain', icon: this.faChartPie, title: 'Balances', cols: 6, rows: 4 }, { id: 'transactions', goTo: 'Transactions', link: '/ecl/transactions', title: '', cols: 6, rows: 4 }, - { id: 'inboundLiq', goTo: 'Channels', link: '/ecl/peerschannels', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 6, rows: 8 }, - { id: 'outboundLiq', goTo: 'Channels', link: '/ecl/peerschannels', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 6, rows: 8 } + { id: 'inboundLiq', goTo: 'Channels', link: '/ecl/connections', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 6, rows: 8 }, + { id: 'outboundLiq', goTo: 'Channels', link: '/ecl/connections', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 6, rows: 8 } ]; } else if(this.screenSize === ScreenSizeEnum.SM || this.screenSize === ScreenSizeEnum.MD) { this.operatorCards = [ { id: 'node', icon: this.faServer, title: 'Node Information', cols: 5, rows: 1 }, { id: 'balance', goTo: 'On-Chain', link: '/ecl/onchain', icon: this.faChartPie, title: 'Balances', cols: 5, rows: 1 }, { id: 'fee', goTo: 'Routing', link: '/ecl/routing', icon: this.faBolt, title: 'Routing Fee', cols: 5, rows: 1 }, - { id: 'status', goTo: 'Channels', link: '/ecl/peerschannels', icon: this.faNetworkWired, title: 'Channels', cols: 5, rows: 1 }, - { id: 'capacity', goTo: 'Channels', link: '/ecl/peerschannels', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 10, rows: 2 } + { id: 'status', goTo: 'Channels', link: '/ecl/connections', icon: this.faNetworkWired, title: 'Channels', cols: 5, rows: 1 }, + { id: 'capacity', goTo: 'Channels', link: '/ecl/connections', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 10, rows: 2 } ]; this.merchantCards = [ { id: 'balance', goTo: 'On-Chain', link: '/ecl/onchain', icon: this.faChartPie, title: 'Balances', cols: 3, rows: 4 }, { id: 'transactions', goTo: 'Transactions', link: '/ecl/transactions', title: '', cols: 3, rows: 4 }, - { id: 'inboundLiq', goTo: 'Channels', link: '/ecl/peerschannels', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 3, rows: 8 }, - { id: 'outboundLiq', goTo: 'Channels', link: '/ecl/peerschannels', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 3, rows: 8 } + { id: 'inboundLiq', goTo: 'Channels', link: '/ecl/connections', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 3, rows: 8 }, + { id: 'outboundLiq', goTo: 'Channels', link: '/ecl/connections', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 3, rows: 8 } ]; } else { this.operatorCardHeight = ((window.screen.height - 200) / 2) + 'px'; @@ -90,14 +90,14 @@ export class ECLHomeComponent implements OnInit, OnDestroy { this.operatorCards = [ { id: 'node', icon: this.faServer, title: 'Node Information', cols: 3, rows: 1 }, { id: 'balance', goTo: 'On-Chain', link: '/ecl/onchain', icon: this.faChartPie, title: 'Balances', cols: 3, rows: 1 }, - { id: 'capacity', goTo: 'Channels', link: '/ecl/peerschannels', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 4, rows: 2 }, + { id: 'capacity', goTo: 'Channels', link: '/ecl/connections', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 4, rows: 2 }, { id: 'fee', goTo: 'Routing', link: '/ecl/routing', icon: this.faBolt, title: 'Routing Fee', cols: 3, rows: 1 }, - { id: 'status', goTo: 'Channels', link: '/ecl/peerschannels', icon: this.faNetworkWired, title: 'Channels', cols: 3, rows: 1 } + { id: 'status', goTo: 'Channels', link: '/ecl/connections', icon: this.faNetworkWired, title: 'Channels', cols: 3, rows: 1 } ]; this.merchantCards = [ { id: 'balance', goTo: 'On-Chain', link: '/ecl/onchain', icon: this.faChartPie, title: 'Balances', cols: 2, rows: 5 }, - { id: 'inboundLiq', goTo: 'Channels', link: '/ecl/peerschannels', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 2, rows: 10 }, - { id: 'outboundLiq', goTo: 'Channels', link: '/ecl/peerschannels', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 2, rows: 10 }, + { id: 'inboundLiq', goTo: 'Channels', link: '/ecl/connections', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 2, rows: 10 }, + { id: 'outboundLiq', goTo: 'Channels', link: '/ecl/connections', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 2, rows: 10 }, { id: 'transactions', goTo: 'Transactions', link: '/ecl/transactions', title: '', cols: 2, rows: 5 } ]; } @@ -139,7 +139,7 @@ export class ECLHomeComponent implements OnInit, OnDestroy { let local = (rtlStore.lightningBalance.localBalance) ? +rtlStore.lightningBalance.localBalance : 0; let remote = (rtlStore.lightningBalance.remoteBalance) ? +rtlStore.lightningBalance.remoteBalance : 0; let total = local + remote; - this.channelBalances = { localBalance: local, remoteBalance: remote, balancedness: (1 - Math.abs((local-remote)/total)).toFixed(3) }; + this.channelBalances = { localBalance: local, remoteBalance: remote, balancedness: +(1 - Math.abs((local-remote)/total)).toFixed(3) }; this.channelsStatus = rtlStore.channelsStatus; this.totalInboundLiquidity = 0; this.totalOutboundLiquidity = 0; diff --git a/src/app/eclair/home/node-info/node-info.component.ts b/src/app/eclair/home/node-info/node-info.component.ts index e2fd113c..5d0d4cfb 100644 --- a/src/app/eclair/home/node-info/node-info.component.ts +++ b/src/app/eclair/home/node-info/node-info.component.ts @@ -9,7 +9,7 @@ import { CommonService } from '../../../shared/services/common.service'; }) export class ECLNodeInfoComponent implements OnChanges { @Input() information: GetInfo; - @Input() showColorFieldSeparately: false; + @Input() showColorFieldSeparately: boolean; public chains: Array = ['']; constructor(private commonService: CommonService) { } diff --git a/src/app/eclair/lookups/lookups.component.html b/src/app/eclair/lookups/lookups.component.html index f1633e3a..5eb423ab 100644 --- a/src/app/eclair/lookups/lookups.component.html +++ b/src/app/eclair/lookups/lookups.component.html @@ -1,5 +1,5 @@
-
+
Graph Lookups
@@ -33,7 +33,7 @@ {{lookupFields[selectedFieldId].name}} Details
-
+

Error! Unable to find details!

diff --git a/src/app/eclair/lookups/lookups.component.ts b/src/app/eclair/lookups/lookups.component.ts index 5de12320..3bf9b957 100644 --- a/src/app/eclair/lookups/lookups.component.ts +++ b/src/app/eclair/lookups/lookups.component.ts @@ -13,6 +13,7 @@ import * as fromRTLReducer from '../../store/rtl.reducers'; import { ScreenSizeEnum } from '../../shared/services/consts-enums-functions'; import { CommonService } from '../../shared/services/common.service'; import { FormControl } from '@angular/forms'; +import { LookupNode } from '../../shared/models/eclModels'; @Component({ selector: 'rtl-ecl-lookups', @@ -20,10 +21,10 @@ import { FormControl } from '@angular/forms'; styleUrls: ['./lookups.component.scss'] }) export class ECLLookupsComponent implements OnInit, OnDestroy { - @ViewChild('form', { static: false }) form: any; + @ViewChild('form', { static: true }) form: any; public lookupKeyCtrl = new FormControl(); // public lookupKey = ''; - public nodeLookupValue = {nodeid: ''}; + public nodeLookupValue: LookupNode = {}; public channelLookupValue = []; public flgSetLookupValue = false; public temp: any; @@ -67,13 +68,13 @@ export class ECLLookupsComponent implements OnInit, OnDestroy { } }); this.lookupKeyCtrl.valueChanges.pipe(takeUntil(this.unSubs[1])).subscribe(value => { - this.nodeLookupValue = {nodeid: ''}; + this.nodeLookupValue = {}; this.channelLookupValue = []; this.flgSetLookupValue = false; }); } - onLookup() { + onLookup():boolean|void { if (!this.lookupKeyCtrl.value) { this.lookupKeyCtrl.setErrors({required: true}); return true; @@ -85,7 +86,7 @@ export class ECLLookupsComponent implements OnInit, OnDestroy { this.selectedFieldId = 0; } this.flgSetLookupValue = false; - this.nodeLookupValue = {nodeid: ''}; + this.nodeLookupValue = {}; this.channelLookupValue = []; this.store.dispatch(new RTLActions.OpenSpinner('Searching ' + this.lookupFields[this.selectedFieldId].name + '...')); switch (this.selectedFieldId) { @@ -108,7 +109,7 @@ export class ECLLookupsComponent implements OnInit, OnDestroy { resetData() { this.flgSetLookupValue = false; - this.nodeLookupValue = {nodeid: ''}; + this.nodeLookupValue = {}; this.channelLookupValue = []; this.lookupKeyCtrl.setValue(''); this.lookupKeyCtrl.setErrors(null); @@ -116,7 +117,7 @@ export class ECLLookupsComponent implements OnInit, OnDestroy { } clearLookupValue() { - this.nodeLookupValue = {nodeid: ''}; + this.nodeLookupValue = {}; this.channelLookupValue = []; this.flgSetLookupValue = false; } diff --git a/src/app/eclair/lookups/node-lookup/node-lookup.component.html b/src/app/eclair/lookups/node-lookup/node-lookup.component.html index 77e3a5b8..50d22197 100644 --- a/src/app/eclair/lookups/node-lookup/node-lookup.component.html +++ b/src/app/eclair/lookups/node-lookup/node-lookup.component.html @@ -26,7 +26,7 @@

Addresses

-
+
diff --git a/src/app/eclair/lookups/node-lookup/node-lookup.component.ts b/src/app/eclair/lookups/node-lookup/node-lookup.component.ts index 5acb6e88..ed7bd2df 100644 --- a/src/app/eclair/lookups/node-lookup/node-lookup.component.ts +++ b/src/app/eclair/lookups/node-lookup/node-lookup.component.ts @@ -12,7 +12,7 @@ import { LoggerService } from '../../../shared/services/logger.service'; styleUrls: ['./node-lookup.component.scss'] }) export class ECLNodeLookupComponent implements OnInit { - @ViewChild(MatSort, { static: true }) sort: MatSort; + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; @Input() lookupResult: LookupNode; public addresses: any; public displayedColumns = ['address', 'actions']; @@ -23,7 +23,7 @@ export class ECLNodeLookupComponent implements OnInit { this.addresses = this.lookupResult.addresses ? new MatTableDataSource([...this.lookupResult.addresses]) : new MatTableDataSource([]); this.addresses.data = this.lookupResult.addresses ? this.lookupResult.addresses : []; this.addresses.sort = this.sort; - this.addresses.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.addresses.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; } onCopyNodeURI(payload: string) { diff --git a/src/app/eclair/on-chain/on-chain-receive/on-chain-receive.component.html b/src/app/eclair/on-chain/on-chain-receive/on-chain-receive.component.html index 57c5a575..fa3f9ce9 100644 --- a/src/app/eclair/on-chain/on-chain-receive/on-chain-receive.component.html +++ b/src/app/eclair/on-chain/on-chain-receive/on-chain-receive.component.html @@ -1,7 +1,5 @@ -
-
-
- -
+
+
+
diff --git a/src/app/eclair/on-chain/on-chain-send-modal/on-chain-send.component.html b/src/app/eclair/on-chain/on-chain-send-modal/on-chain-send-modal.component.html similarity index 90% rename from src/app/eclair/on-chain/on-chain-send-modal/on-chain-send.component.html rename to src/app/eclair/on-chain/on-chain-send-modal/on-chain-send-modal.component.html index fee754b4..55d45c15 100644 --- a/src/app/eclair/on-chain/on-chain-send-modal/on-chain-send.component.html +++ b/src/app/eclair/on-chain/on-chain-send-modal/on-chain-send-modal.component.html @@ -9,11 +9,11 @@
- + Bitcoin address is required. - + {{selAmountUnit}} Amount is required. @@ -24,7 +24,7 @@
- + Target Confirmation Blocks is required.
diff --git a/src/app/eclair/on-chain/on-chain-send-modal/on-chain-send-modal.component.scss b/src/app/eclair/on-chain/on-chain-send-modal/on-chain-send-modal.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/eclair/on-chain/on-chain-send-modal/on-chain-send-modal.component.spec.ts b/src/app/eclair/on-chain/on-chain-send-modal/on-chain-send-modal.component.spec.ts new file mode 100644 index 00000000..36a3a7f0 --- /dev/null +++ b/src/app/eclair/on-chain/on-chain-send-modal/on-chain-send-modal.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ECLOnChainSendModalComponent } from './on-chain-send-modal.component'; + +describe('ECLOnChainSendModalComponent', () => { + let component: ECLOnChainSendModalComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ECLOnChainSendModalComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ECLOnChainSendModalComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/eclair/on-chain/on-chain-send-modal/on-chain-send.component.ts b/src/app/eclair/on-chain/on-chain-send-modal/on-chain-send-modal.component.ts similarity index 89% rename from src/app/eclair/on-chain/on-chain-send-modal/on-chain-send.component.ts rename to src/app/eclair/on-chain/on-chain-send-modal/on-chain-send-modal.component.ts index 4121fceb..9a8ef7e0 100644 --- a/src/app/eclair/on-chain/on-chain-send-modal/on-chain-send.component.ts +++ b/src/app/eclair/on-chain/on-chain-send-modal/on-chain-send-modal.component.ts @@ -19,12 +19,12 @@ import * as RTLActions from '../../../store/rtl.actions'; import * as fromRTLReducer from '../../../store/rtl.reducers'; @Component({ - selector: 'rtl-ecl-on-chain-send', - templateUrl: './on-chain-send.component.html', - styleUrls: ['./on-chain-send.component.scss'] + selector: 'rtl-ecl-on-chain-send-modal', + templateUrl: './on-chain-send-modal.component.html', + styleUrls: ['./on-chain-send-modal.component.scss'] }) -export class ECLOnChainSendComponent implements OnInit, OnDestroy { - @ViewChild('form', { static: false }) form: any; +export class ECLOnChainSendModalComponent implements OnInit, OnDestroy { + @ViewChild('form', { static: true }) form: any; public faExclamationTriangle = faExclamationTriangle; public selNode: SelNodeChild = {}; public appConfig: RTLConfiguration; @@ -45,7 +45,7 @@ export class ECLOnChainSendComponent implements OnInit, OnDestroy { public currencyUnitFormats = CURRENCY_UNIT_FORMATS; private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject(), new Subject()]; - constructor(public dialogRef: MatDialogRef, private logger: LoggerService, private store: Store, private commonService: CommonService, private decimalPipe: DecimalPipe, private actions$: Actions) {} + constructor(public dialogRef: MatDialogRef, private logger: LoggerService, private store: Store, private commonService: CommonService, private decimalPipe: DecimalPipe, private actions$: Actions) {} ngOnInit() { this.store.select('root') @@ -70,7 +70,7 @@ export class ECLOnChainSendComponent implements OnInit, OnDestroy { }); } - onSendFunds() { + onSendFunds():boolean|void { if(this.invalidValues) { return true; } this.sendFundError = ''; this.store.dispatch(new RTLActions.OpenSpinner('Sending Funds...')); diff --git a/src/app/eclair/on-chain/on-chain-send/on-chain-send.component.html b/src/app/eclair/on-chain/on-chain-send/on-chain-send.component.html new file mode 100644 index 00000000..bf41f7ed --- /dev/null +++ b/src/app/eclair/on-chain/on-chain-send/on-chain-send.component.html @@ -0,0 +1,5 @@ +
+
+ +
+
diff --git a/src/app/eclair/on-chain/on-chain-send/on-chain-send.component.scss b/src/app/eclair/on-chain/on-chain-send/on-chain-send.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/eclair/on-chain/on-chain-send-modal/on-chain-send.component.spec.ts b/src/app/eclair/on-chain/on-chain-send/on-chain-send.component.spec.ts similarity index 100% rename from src/app/eclair/on-chain/on-chain-send-modal/on-chain-send.component.spec.ts rename to src/app/eclair/on-chain/on-chain-send/on-chain-send.component.spec.ts diff --git a/src/app/eclair/on-chain/on-chain-send/on-chain-send.component.ts b/src/app/eclair/on-chain/on-chain-send/on-chain-send.component.ts new file mode 100644 index 00000000..545e71a9 --- /dev/null +++ b/src/app/eclair/on-chain/on-chain-send/on-chain-send.component.ts @@ -0,0 +1,41 @@ +import { Component, OnDestroy, OnInit } from '@angular/core'; +import { ActivatedRoute } from '@angular/router'; +import { Subject } from 'rxjs'; +import { takeUntil } from 'rxjs/operators'; +import { Store } from '@ngrx/store'; + +import { ECLOnChainSendModalComponent } from '../on-chain-send-modal/on-chain-send-modal.component'; + +import * as RTLActions from '../../../store/rtl.actions'; +import * as fromRTLReducer from '../../../store/rtl.reducers'; + +@Component({ + selector: 'rtl-ecl-on-chain-send', + templateUrl: './on-chain-send.component.html', + styleUrls: ['./on-chain-send.component.scss'] +}) +export class ECLOnChainSendComponent implements OnInit, OnDestroy { + public sweepAll = false; + private unSubs: Array> = [new Subject(), new Subject()]; + + constructor(private store: Store, private activatedRoute: ActivatedRoute) {} + + ngOnInit() { + this.activatedRoute.data.pipe(takeUntil(this.unSubs[0])).subscribe(routeData => this.sweepAll = routeData.sweepAll); + } + + openSendFundsModal() { + this.store.dispatch(new RTLActions.OpenAlert({ data: { + sweepAll: this.sweepAll, + component: ECLOnChainSendModalComponent + }})); + } + + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } + +} diff --git a/src/app/eclair/on-chain/on-chain-transaction-history/on-chain-transaction-history.component.html b/src/app/eclair/on-chain/on-chain-transaction-history/on-chain-transaction-history.component.html index 06f60733..b814a7b1 100644 --- a/src/app/eclair/on-chain/on-chain-transaction-history/on-chain-transaction-history.component.html +++ b/src/app/eclair/on-chain/on-chain-transaction-history/on-chain-transaction-history.component.html @@ -5,11 +5,11 @@ Transaction History
- +
-
+
Address
diff --git a/src/app/eclair/on-chain/on-chain-transaction-history/on-chain-transaction-history.component.ts b/src/app/eclair/on-chain/on-chain-transaction-history/on-chain-transaction-history.component.ts index 262d0102..bcb3393f 100644 --- a/src/app/eclair/on-chain/on-chain-transaction-history/on-chain-transaction-history.component.ts +++ b/src/app/eclair/on-chain/on-chain-transaction-history/on-chain-transaction-history.component.ts @@ -26,10 +26,10 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; ] }) export class ECLOnChainTransactionHistoryComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; faHistory = faHistory; - public displayedColumns = []; + public displayedColumns: any[] = []; public listTransactions: any; public flgLoading: Array = [true]; public flgSticky = false; @@ -77,8 +77,8 @@ export class ECLOnChainTransactionHistoryComponent implements OnInit, OnDestroy } - applyFilter(selFilter: string) { - this.listTransactions.filter = selFilter; + applyFilter(selFilter: any) { + this.listTransactions.filter = selFilter.value; } onTransactionClick(selTransaction: Transaction, event: any) { @@ -98,10 +98,10 @@ export class ECLOnChainTransactionHistoryComponent implements OnInit, OnDestroy }})); } - loadTransactionsTable(transactions) { + loadTransactionsTable(transactions: Transaction[]) { this.listTransactions = new MatTableDataSource([...transactions]); this.listTransactions.sort = this.sort; - this.listTransactions.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.listTransactions.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.listTransactions.paginator = this.paginator; this.logger.info(this.listTransactions); } diff --git a/src/app/eclair/on-chain/on-chain.component.html b/src/app/eclair/on-chain/on-chain.component.html index 10f7bfd7..5224b6b5 100644 --- a/src/app/eclair/on-chain/on-chain.component.html +++ b/src/app/eclair/on-chain/on-chain.component.html @@ -1,4 +1,4 @@ -
+
On-chain Balance
@@ -9,29 +9,21 @@
-
+
On-chain Transactions
- - - - - -
-
- -
-
-
-
+ +
+ +
-
- -
+
diff --git a/src/app/eclair/on-chain/on-chain.component.ts b/src/app/eclair/on-chain/on-chain.component.ts index 40018024..d16e30ac 100644 --- a/src/app/eclair/on-chain/on-chain.component.ts +++ b/src/app/eclair/on-chain/on-chain.component.ts @@ -1,10 +1,11 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; -import { takeUntil } from 'rxjs/operators'; +import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { faExchangeAlt, faChartPie } from '@fortawesome/free-solid-svg-icons'; -import { ECLOnChainSendComponent } from './on-chain-send-modal/on-chain-send.component'; +import { ECLOnChainSendModalComponent } from './on-chain-send-modal/on-chain-send-modal.component'; import { SelNodeChild } from '../../shared/models/RTLconfig'; import * as RTLActions from '../../store/rtl.actions'; import * as fromRTLReducer from '../../store/rtl.reducers'; @@ -19,11 +20,20 @@ export class ECLOnChainComponent implements OnInit, OnDestroy { public faExchangeAlt = faExchangeAlt; public faChartPie = faChartPie; public balances = [{title: 'Total Balance', dataValue: 0}, {title: 'Confirmed', dataValue: 0}, {title: 'Unconfirmed', dataValue: 0}]; + public links = [{link: 'receive', name: 'Receive'}, {link: 'send', name: 'Send'}]; + public activeLink = this.links[0].link; private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; - constructor(private store: Store) {} + constructor(private store: Store, private router: Router) {} ngOnInit() { + let linkFound = this.links.find(link => this.router.url.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + let linkFound = this.links.find(link => value.urlAfterRedirects.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + }); this.store.select('ecl') .pipe(takeUntil(this.unSubs[1])) .subscribe((rtlStore) => { @@ -34,7 +44,7 @@ export class ECLOnChainComponent implements OnInit, OnDestroy { openSendFundsModal() { this.store.dispatch(new RTLActions.OpenAlert({ data: { - component: ECLOnChainSendComponent + component: ECLOnChainSendModalComponent }})); } diff --git a/src/app/eclair/peers-channels/channels/channels-tables/channel-inactive-table/channel-inactive-table.component.html b/src/app/eclair/peers-channels/channels/channels-tables/channel-inactive-table/channel-inactive-table.component.html index 46cde1de..fdc14e1e 100644 --- a/src/app/eclair/peers-channels/channels/channels-tables/channel-inactive-table/channel-inactive-table.component.html +++ b/src/app/eclair/peers-channels/channels/channels-tables/channel-inactive-table/channel-inactive-table.component.html @@ -5,7 +5,7 @@
-
+
diff --git a/src/app/eclair/peers-channels/channels/channels-tables/channel-inactive-table/channel-inactive-table.component.ts b/src/app/eclair/peers-channels/channels/channels-tables/channel-inactive-table/channel-inactive-table.component.ts index b3446b18..962fb09f 100644 --- a/src/app/eclair/peers-channels/channels/channels-tables/channel-inactive-table/channel-inactive-table.component.ts +++ b/src/app/eclair/peers-channels/channels/channels-tables/channel-inactive-table/channel-inactive-table.component.ts @@ -1,21 +1,21 @@ -import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from '@angular/core'; import { Subject } from 'rxjs'; -import { take, takeUntil } from 'rxjs/operators'; +import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { MatPaginator, MatPaginatorIntl } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/table'; + import { Channel, GetInfo } from '../../../../../shared/models/eclModels'; -// import { Channel, GetInfo, ChannelEdge } from '../../../../shared/models/eclModels'; -import { PAGE_SIZE, PAGE_SIZE_OPTIONS, getPaginatorLabel, ScreenSizeEnum, FEE_RATE_TYPES, AlertTypeEnum } from '../../../../../shared/services/consts-enums-functions'; +import { PAGE_SIZE, PAGE_SIZE_OPTIONS, getPaginatorLabel, ScreenSizeEnum, FEE_RATE_TYPES } from '../../../../../shared/services/consts-enums-functions'; import { LoggerService } from '../../../../../shared/services/logger.service'; import { CommonService } from '../../../../../shared/services/common.service'; import { ECLChannelInformationComponent } from '../../channel-information-modal/channel-information.component'; import { ECLEffects } from '../../../../store/ecl.effects'; import { RTLEffects } from '../../../../../store/rtl.effects'; -import * as ECLActions from '../../../../store/ecl.actions'; + import * as RTLActions from '../../../../../store/rtl.actions'; import * as fromRTLReducer from '../../../../../store/rtl.reducers'; @@ -27,19 +27,18 @@ import * as fromRTLReducer from '../../../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Channels') } ] }) -export class ECLChannelInactiveTableComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; +export class ECLChannelInactiveTableComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public inactiveChannels: Channel[]; public totalBalance = 0; - public displayedColumns = []; + public displayedColumns: any[] = []; public channels: any; public myChanPolicy: any = {}; public information: GetInfo = {}; public numPeers = -1; public feeRateTypes = FEE_RATE_TYPES; public flgLoading: Array = [true]; - public selectedFilter = ''; public selFilter = ''; public flgSticky = false; public pageSize = PAGE_SIZE; @@ -86,8 +85,13 @@ export class ECLChannelInactiveTableComponent implements OnInit, OnDestroy { }); } + ngAfterViewInit() { + if (this.inactiveChannels.length > 0) { + this.loadChannelsTable(); + } + } + applyFilter() { - this.selectedFilter = this.selFilter; this.channels.filter = this.selFilter; } @@ -105,7 +109,7 @@ export class ECLChannelInactiveTableComponent implements OnInit, OnDestroy { }); this.channels = new MatTableDataSource([...this.inactiveChannels]); this.channels.sort = this.sort; - this.channels.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.channels.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.channels.paginator = this.paginator; this.logger.info(this.channels); } diff --git a/src/app/eclair/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.html b/src/app/eclair/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.html index 962534fb..959a77ee 100644 --- a/src/app/eclair/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.html +++ b/src/app/eclair/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.html @@ -5,7 +5,7 @@ -
+
diff --git a/src/app/eclair/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.ts b/src/app/eclair/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.ts index 63c9cfa6..f6089726 100644 --- a/src/app/eclair/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.ts +++ b/src/app/eclair/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from '@angular/core'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; @@ -27,21 +27,20 @@ import * as fromRTLReducer from '../../../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Channels') } ] }) -export class ECLChannelOpenTableComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; +export class ECLChannelOpenTableComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public faEye = faEye; public faEyeSlash = faEyeSlash public activeChannels: Channel[]; public totalBalance = 0; - public displayedColumns = []; + public displayedColumns: any[] = []; public channels: any; public myChanPolicy: any = {}; public information: GetInfo = {}; public numPeers = -1; public feeRateTypes = FEE_RATE_TYPES; public flgLoading: Array = [true]; - public selectedFilter = ''; public selFilter = ''; public flgSticky = false; public pageSize = PAGE_SIZE; @@ -88,6 +87,12 @@ export class ECLChannelOpenTableComponent implements OnInit, OnDestroy { }); } + ngAfterViewInit() { + if (this.activeChannels.length > 0) { + this.loadChannelsTable(); + } + } + onChannelUpdate(channelToUpdate: any) { if(channelToUpdate !== 'all' && channelToUpdate.state !== 'NORMAL') { return; @@ -151,7 +156,6 @@ export class ECLChannelOpenTableComponent implements OnInit, OnDestroy { } applyFilter() { - this.selectedFilter = this.selFilter; this.channels.filter = this.selFilter; } @@ -169,7 +173,7 @@ export class ECLChannelOpenTableComponent implements OnInit, OnDestroy { }); this.channels = new MatTableDataSource([...this.activeChannels]); this.channels.sort = this.sort; - this.channels.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.channels.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.channels.paginator = this.paginator; this.logger.info(this.channels); } diff --git a/src/app/eclair/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.html b/src/app/eclair/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.html index 8cbaad0e..7080b195 100644 --- a/src/app/eclair/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.html +++ b/src/app/eclair/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.html @@ -5,7 +5,7 @@ -
+
diff --git a/src/app/eclair/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.ts b/src/app/eclair/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.ts index 5d154018..34ee2c82 100644 --- a/src/app/eclair/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.ts +++ b/src/app/eclair/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from '@angular/core'; import { Subject } from 'rxjs'; import { take, takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; @@ -6,16 +6,16 @@ import { Store } from '@ngrx/store'; import { MatPaginator, MatPaginatorIntl } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/table'; + import { Channel, GetInfo } from '../../../../../shared/models/eclModels'; -// import { Channel, GetInfo, ChannelEdge } from '../../../../shared/models/eclModels'; -import { PAGE_SIZE, PAGE_SIZE_OPTIONS, getPaginatorLabel, ScreenSizeEnum, FEE_RATE_TYPES, AlertTypeEnum } from '../../../../../shared/services/consts-enums-functions'; +import { PAGE_SIZE, PAGE_SIZE_OPTIONS, getPaginatorLabel, ScreenSizeEnum, FEE_RATE_TYPES } from '../../../../../shared/services/consts-enums-functions'; import { LoggerService } from '../../../../../shared/services/logger.service'; import { CommonService } from '../../../../../shared/services/common.service'; import { ECLChannelInformationComponent } from '../../channel-information-modal/channel-information.component'; import { ECLEffects } from '../../../../store/ecl.effects'; import { RTLEffects } from '../../../../../store/rtl.effects'; -import * as ECLActions from '../../../../store/ecl.actions'; + import * as RTLActions from '../../../../../store/rtl.actions'; import * as fromRTLReducer from '../../../../../store/rtl.reducers'; @@ -27,19 +27,18 @@ import * as fromRTLReducer from '../../../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Channels') } ] }) -export class ECLChannelPendingTableComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; +export class ECLChannelPendingTableComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public pendingChannels: Channel[]; public totalBalance = 0; - public displayedColumns = []; + public displayedColumns: any[] = []; public channels: any; public myChanPolicy: any = {}; public information: GetInfo = {}; public numPeers = -1; public feeRateTypes = FEE_RATE_TYPES; public flgLoading: Array = [true]; - public selectedFilter = ''; public selFilter = ''; public flgSticky = false; public pageSize = PAGE_SIZE; @@ -86,8 +85,13 @@ export class ECLChannelPendingTableComponent implements OnInit, OnDestroy { }); } + ngAfterViewInit() { + if (this.pendingChannels.length > 0) { + this.loadChannelsTable(); + } + } + applyFilter() { - this.selectedFilter = this.selFilter; this.channels.filter = this.selFilter; } @@ -105,7 +109,7 @@ export class ECLChannelPendingTableComponent implements OnInit, OnDestroy { }); this.channels = new MatTableDataSource([...this.pendingChannels]); this.channels.sort = this.sort; - this.channels.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.channels.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.channels.paginator = this.paginator; this.logger.info(this.channels); } diff --git a/src/app/eclair/peers-channels/channels/channels-tables/channels-tables.component.html b/src/app/eclair/peers-channels/channels/channels-tables/channels-tables.component.html index 78b547db..aef04e26 100644 --- a/src/app/eclair/peers-channels/channels/channels-tables/channels-tables.component.html +++ b/src/app/eclair/peers-channels/channels/channels-tables/channels-tables.component.html @@ -1,22 +1,27 @@ -
- - - - Open - - - - - - Pending - - - - - - Inactive - - - - +
+
+ +
+
+ + + + Open + + + + + Pending + + + + + Inactive + + + +
+ +
+
diff --git a/src/app/eclair/peers-channels/channels/channels-tables/channels-tables.component.ts b/src/app/eclair/peers-channels/channels/channels-tables/channels-tables.component.ts index 2fc6aa24..bddebdee 100644 --- a/src/app/eclair/peers-channels/channels/channels-tables/channels-tables.component.ts +++ b/src/app/eclair/peers-channels/channels/channels-tables/channels-tables.component.ts @@ -1,9 +1,15 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; -import { takeUntil } from 'rxjs/operators'; +import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; +import { ECLOpenChannelComponent } from '../open-channel-modal/open-channel.component'; import { LoggerService } from '../../../../shared/services/logger.service'; +import { GetInfo, Peer } from '../../../../shared/models/eclModels'; +import { SelNodeChild } from '../../../../shared/models/RTLconfig'; + +import * as RTLActions from '../../../../store/rtl.actions'; import * as fromRTLReducer from '../../../../store/rtl.reducers'; @Component({ @@ -15,21 +21,54 @@ export class ECLChannelsTablesComponent implements OnInit, OnDestroy { public numOfOpenChannels = 0; public numOfPendingChannels = 0; public numOfInactiveChannels = 0; - private unSubs: Array> = [new Subject()]; + public selNode: SelNodeChild = {}; + public information: GetInfo = {}; + public peers: Peer[] = []; + public totalBalance = 0; + public links = [{link: 'open', name: 'Open'}, {link: 'pending', name: 'Pending'}, {link: 'inactive', name: 'Inactive'}]; + public activeLink = 0; + private unSubs: Array> = [new Subject(), new Subject()]; - constructor(private logger: LoggerService, private store: Store) {} + constructor(private logger: LoggerService, private store: Store, private router: Router) {} ngOnInit() { + this.activeLink = this.links.findIndex(link => link.link === this.router.url.substring(this.router.url.lastIndexOf('/') + 1)); + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + this.activeLink = this.links.findIndex(link => link.link === value.urlAfterRedirects.substring(value.urlAfterRedirects.lastIndexOf('/') + 1)); + }); this.store.select('ecl') - .pipe(takeUntil(this.unSubs[0])) + .pipe(takeUntil(this.unSubs[1])) .subscribe((rtlStore) => { this.numOfOpenChannels = (rtlStore.channelsStatus && rtlStore.channelsStatus.active && rtlStore.channelsStatus.active.channels) ? rtlStore.channelsStatus.active.channels : 0; this.numOfPendingChannels = (rtlStore.channelsStatus && rtlStore.channelsStatus.pending && rtlStore.channelsStatus.pending.channels) ? rtlStore.channelsStatus.pending.channels : 0; this.numOfInactiveChannels = (rtlStore.channelsStatus && rtlStore.channelsStatus.inactive && rtlStore.channelsStatus.inactive.channels) ? rtlStore.channelsStatus.inactive.channels : 0; + this.selNode = rtlStore.nodeSettings; + this.information = rtlStore.information; + this.peers = rtlStore.peers; + this.totalBalance = rtlStore.onchainBalance.total; this.logger.info(rtlStore); }); } + onOpenChannel() { + const peerToAddChannelMessage = { + peers: this.peers, + information: this.information, + balance: this.totalBalance + }; + this.store.dispatch(new RTLActions.OpenAlert({ data: { + alertTitle: 'Open Channel', + message: peerToAddChannelMessage, + component: ECLOpenChannelComponent + }})); + } + + onSelectedTabChange(event) { + this.router.navigateByUrl('/ecl/connections/channels/' + this.links[event.index].link); + } + + ngOnDestroy() { this.unSubs.forEach(completeSub => { completeSub.next(); diff --git a/src/app/eclair/peers-channels/channels/open-channel-modal/open-channel.component.html b/src/app/eclair/peers-channels/channels/open-channel-modal/open-channel.component.html index b03679bc..e958ccab 100644 --- a/src/app/eclair/peers-channels/channels/open-channel-modal/open-channel.component.html +++ b/src/app/eclair/peers-channels/channels/open-channel-modal/open-channel.component.html @@ -12,14 +12,43 @@ - {{peer.alias ? peer.alias : peer.id ? peer.id : ''}} + {{peer.alias ? peer.alias : peer.nodeId ? peer.nodeId : ''}} Peer alias is required. Peer not found in the list.
- +
+
+ + + Remaining Bal: {{totalBalance - ((fundingAmount) ? fundingAmount : 0) | number}} + {{information?.smaller_currency_unit}} + Amount is required. + Amount must be less than or equal to {{totalBalance}}. + +
+ Private Channel +
+
+ + + + {{advancedTitle}} + + +
+
+
+ + + +
+
+
+
+
{{channelConnectionError}} @@ -61,35 +90,3 @@
- - -
- - - Remaining Bal: {{totalBalance - ((fundingAmount) ? fundingAmount : 0) | number}} - {{information?.smaller_currency_unit}} - Amount is required. - Amount must be less than or equal to {{totalBalance}}. - -
- Private Channel -
-
- - - - {{advancedTitle}} - - -
-
-
- - - -
-
-
-
- -
diff --git a/src/app/eclair/peers-channels/channels/open-channel-modal/open-channel.component.ts b/src/app/eclair/peers-channels/channels/open-channel-modal/open-channel.component.ts index da8cc588..c8d9a381 100644 --- a/src/app/eclair/peers-channels/channels/open-channel-modal/open-channel.component.ts +++ b/src/app/eclair/peers-channels/channels/open-channel-modal/open-channel.component.ts @@ -20,7 +20,7 @@ import * as fromRTLReducer from '../../../../store/rtl.reducers'; styleUrls: ['./open-channel.component.scss'] }) export class ECLOpenChannelComponent implements OnInit, OnDestroy { - @ViewChild('form', { static: false }) form: any; + @ViewChild('form', { static: true }) form: any; public selectedPeer = new FormControl(); public faExclamationTriangle = faExclamationTriangle; public alertTitle: string; @@ -112,7 +112,7 @@ export class ECLOpenChannelComponent implements OnInit, OnDestroy { } } - onOpenChannel() { + onOpenChannel():boolean|void { if ((!this.peer && !this.selectedPubkey) || (!this.fundingAmount || ((this.totalBalance - this.fundingAmount) < 0))) { return true; } this.store.dispatch(new RTLActions.OpenSpinner('Opening Channel...')); this.store.dispatch(new ECLActions.SaveNewChannel({ diff --git a/src/app/eclair/peers-channels/connect-peer/connect-peer.component.html b/src/app/eclair/peers-channels/connect-peer/connect-peer.component.html index 2570be3c..7382ce29 100644 --- a/src/app/eclair/peers-channels/connect-peer/connect-peer.component.html +++ b/src/app/eclair/peers-channels/connect-peer/connect-peer.component.html @@ -31,7 +31,7 @@
- + Remaining Bal: {{totalBalance - ((channelFormGroup.controls.fundingAmount.value) ? channelFormGroup.controls.fundingAmount.value : 0)}} Sats Amount is required. @@ -45,7 +45,7 @@
- +
diff --git a/src/app/eclair/peers-channels/connect-peer/connect-peer.component.ts b/src/app/eclair/peers-channels/connect-peer/connect-peer.component.ts index 24d9f06a..880a1fc6 100644 --- a/src/app/eclair/peers-channels/connect-peer/connect-peer.component.ts +++ b/src/app/eclair/peers-channels/connect-peer/connect-peer.component.ts @@ -23,7 +23,7 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; styleUrls: ['./connect-peer.component.scss'] }) export class ECLConnectPeerComponent implements OnInit, OnDestroy { - @ViewChild('peersForm', {static: true}) form: any; + @ViewChild('peersForm', {static: false}) form: any; @ViewChild('stepper', { static: false }) stepper: MatVerticalStepper; public faExclamationTriangle = faExclamationTriangle; public peerAddress = ''; @@ -81,14 +81,14 @@ export class ECLConnectPeerComponent implements OnInit, OnDestroy { }); } - onConnectPeer() { + onConnectPeer():boolean|void { if(!this.peerFormGroup.controls.peerAddress.value) { return true; } this.peerConnectionError = ''; this.store.dispatch(new RTLActions.OpenSpinner('Adding Peer...')); this.store.dispatch(new ECLActions.SaveNewPeer({id: this.peerFormGroup.controls.peerAddress.value})); } - onOpenChannel() { + onOpenChannel():boolean|void { if (!this.channelFormGroup.controls.fundingAmount.value || ((this.totalBalance - this.channelFormGroup.controls.fundingAmount.value) < 0)) { return true; } this.channelConnectionError = ''; this.store.dispatch(new RTLActions.OpenSpinner('Opening Channel...')); diff --git a/src/app/clightning/peers-channels/peers-channels.component.html b/src/app/eclair/peers-channels/connections.component.html similarity index 62% rename from src/app/clightning/peers-channels/peers-channels.component.html rename to src/app/eclair/peers-channels/connections.component.html index 1f1bcf26..67d1ea91 100644 --- a/src/app/clightning/peers-channels/peers-channels.component.html +++ b/src/app/eclair/peers-channels/connections.component.html @@ -1,4 +1,4 @@ -
+
On-chain Balance
@@ -9,32 +9,28 @@
-
+
Connections
- + Channels -
-
- -
- -
Peers -
+
+ +
\ No newline at end of file diff --git a/src/app/eclair/peers-channels/connections.component.scss b/src/app/eclair/peers-channels/connections.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/eclair/peers-channels/peers-channels.component.spec.ts b/src/app/eclair/peers-channels/connections.component.spec.ts similarity index 51% rename from src/app/eclair/peers-channels/peers-channels.component.spec.ts rename to src/app/eclair/peers-channels/connections.component.spec.ts index f18e476b..20e06a3e 100644 --- a/src/app/eclair/peers-channels/peers-channels.component.spec.ts +++ b/src/app/eclair/peers-channels/connections.component.spec.ts @@ -1,20 +1,20 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; -import { ECLPeersChannelsComponent } from './peers-channels.component'; +import { ECLConnectionsComponent } from './connections.component'; -describe('ECLPeersChannelsComponent', () => { - let component: ECLPeersChannelsComponent; - let fixture: ComponentFixture; +describe('ECLConnectionsComponent', () => { + let component: ECLConnectionsComponent; + let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ ECLPeersChannelsComponent ] + declarations: [ ECLConnectionsComponent ] }) .compileComponents(); })); beforeEach(() => { - fixture = TestBed.createComponent(ECLPeersChannelsComponent); + fixture = TestBed.createComponent(ECLConnectionsComponent); component = fixture.componentInstance; fixture.detectChanges(); }); diff --git a/src/app/eclair/peers-channels/peers-channels.component.ts b/src/app/eclair/peers-channels/connections.component.ts similarity index 58% rename from src/app/eclair/peers-channels/peers-channels.component.ts rename to src/app/eclair/peers-channels/connections.component.ts index ba55190a..39848352 100644 --- a/src/app/eclair/peers-channels/peers-channels.component.ts +++ b/src/app/eclair/peers-channels/connections.component.ts @@ -1,61 +1,49 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; -import { takeUntil } from 'rxjs/operators'; +import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; -import { Actions } from '@ngrx/effects'; import { faUsers, faChartPie } from '@fortawesome/free-solid-svg-icons'; import { GetInfo, Peer } from '../../shared/models/eclModels'; -import { ECLOpenChannelComponent } from './channels/open-channel-modal/open-channel.component'; import { SelNodeChild } from '../../shared/models/RTLconfig'; -import * as RTLActions from '../../store/rtl.actions'; import * as fromRTLReducer from '../../store/rtl.reducers'; @Component({ - selector: 'rtl-ecl-peers-channels', - templateUrl: './peers-channels.component.html', - styleUrls: ['./peers-channels.component.scss'] + selector: 'rtl-ecl-connections', + templateUrl: './connections.component.html', + styleUrls: ['./connections.component.scss'] }) -export class ECLPeersChannelsComponent implements OnInit, OnDestroy { - public selNode: SelNodeChild = {}; - public information: GetInfo = {}; - public peers: Peer[] = []; - public totalBalance = 0; +export class ECLConnectionsComponent implements OnInit, OnDestroy { public activePeers = 0; public activeChannels = 0; public faUsers = faUsers; public faChartPie = faChartPie; public balances = [{title: 'Total Balance', dataValue: 0}, {title: 'Confirmed', dataValue: 0}, {title: 'Unconfirmed', dataValue: 0}]; + public links = [{link: 'channels', name: 'Channels'}, {link: 'peers', name: 'Peers'}]; + public activeLink = 0; private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; - constructor(private store: Store, private actions$: Actions) {} + constructor(private store: Store, private router: Router) {} ngOnInit() { + this.activeLink = this.links.findIndex(link => link.link === this.router.url.substring(this.router.url.lastIndexOf('/') + 1)); + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + this.activeLink = this.links.findIndex(link => link.link === value.urlAfterRedirects.substring(value.urlAfterRedirects.lastIndexOf('/') + 1)); + }); this.store.select('ecl') .pipe(takeUntil(this.unSubs[1])) .subscribe((rtlStore) => { - this.selNode = rtlStore.nodeSettings; - this.information = rtlStore.information; - this.peers = rtlStore.peers; this.activePeers = (rtlStore.peers && rtlStore.peers.length) ? rtlStore.peers.length : 0; this.activeChannels = rtlStore.channelsStatus && rtlStore.channelsStatus.active && rtlStore.channelsStatus.active.channels ? rtlStore.channelsStatus.active.channels : 0; - this.totalBalance = rtlStore.onchainBalance.total; this.balances = [{title: 'Total Balance', dataValue: rtlStore.onchainBalance.total || 0}, {title: 'Confirmed', dataValue: rtlStore.onchainBalance.confirmed}, {title: 'Unconfirmed', dataValue: rtlStore.onchainBalance.unconfirmed}]; }); } - onOpenChannel() { - const peerToAddChannelMessage = { - peers: this.peers, - information: this.information, - balance: this.totalBalance - }; - this.store.dispatch(new RTLActions.OpenAlert({ data: { - alertTitle: 'Open Channel', - message: peerToAddChannelMessage, - component: ECLOpenChannelComponent - }})); + onSelectedTabChange(event) { + this.router.navigateByUrl('/ecl/connections/' + this.links[event.index].link); } ngOnDestroy() { diff --git a/src/app/eclair/peers-channels/peers/peers.component.html b/src/app/eclair/peers-channels/peers/peers.component.html index 49166fd8..a1e2c0f4 100644 --- a/src/app/eclair/peers-channels/peers/peers.component.html +++ b/src/app/eclair/peers-channels/peers/peers.component.html @@ -3,18 +3,18 @@
-
+
Peers
- +
-
+
diff --git a/src/app/eclair/peers-channels/peers/peers.component.ts b/src/app/eclair/peers-channels/peers/peers.component.ts index c38092a0..a5818061 100644 --- a/src/app/eclair/peers-channels/peers/peers.component.ts +++ b/src/app/eclair/peers-channels/peers/peers.component.ts @@ -33,13 +33,14 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; ] }) export class ECLPeersComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public faUsers = faUsers; public newlyAddedPeer = ''; public flgAnimate = true; - public displayedColumns = []; + public displayedColumns: any[] = []; public peerAddress = ''; + public peersData: Peer[] = []; public peers: any; public information: GetInfo = {}; public availableBalance = 0; @@ -79,10 +80,8 @@ export class ECLPeersComponent implements OnInit, OnDestroy { }); this.information = rtlStore.information; this.availableBalance = rtlStore.onchainBalance.total || 0; - this.peers = (rtlStore.peers) ? new MatTableDataSource([...rtlStore.peers]) : new MatTableDataSource([]); - this.peers.sort = this.sort; - this.peers.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; - this.peers.paginator = this.paginator; + this.peersData = rtlStore.peers; + this.loadPeersTable(this.peersData); if (this.flgLoading[0] !== 'error') { this.flgLoading[0] = false; } @@ -99,6 +98,12 @@ export class ECLPeersComponent implements OnInit, OnDestroy { }); } + ngAfterViewInit() { + if (this.peersData.length > 0) { + this.loadPeersTable(this.peersData); + } + } + onPeerClick(selPeer: Peer, event: any) { const reorderedPeer = [ [{key: 'nodeId', value: selPeer.nodeId, title: 'Public Key', width: 100}], @@ -167,8 +172,15 @@ export class ECLPeersComponent implements OnInit, OnDestroy { }); } - applyFilter(selFilter: string) { - this.peers.filter = selFilter; + applyFilter(selFilter: any) { + this.peers.filter = selFilter.value; + } + + loadPeersTable(peers: Peer[]) { + this.peers = (peers) ? new MatTableDataSource([...peers]) : new MatTableDataSource([]); + this.peers.sort = this.sort; + this.peers.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; + this.peers.paginator = this.paginator; } onDownloadCSV() { diff --git a/src/app/eclair/reports/fee/fee-report.component.html b/src/app/eclair/reports/fee/fee-report.component.html new file mode 100644 index 00000000..362f5c91 --- /dev/null +++ b/src/app/eclair/reports/fee/fee-report.component.html @@ -0,0 +1,35 @@ +
+ +
+
{{(totalFeeSat || 0) | number:'1.0-0'}} Sats/{{(filteredEventsBySelectedPeriod.length || 0) | number}} Events
+
No fee report for the selected period
+
+ + + + Events: {{(model.extra.totalEvents || 0) | number}} + Fee: {{(model.value || 0) | number:'1.0-0'}} + + + +
+
+ +
+
+
diff --git a/src/app/eclair/reports/fee/fee-report.component.scss b/src/app/eclair/reports/fee/fee-report.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/eclair/reports/fee/fee-report.component.spec.ts b/src/app/eclair/reports/fee/fee-report.component.spec.ts new file mode 100644 index 00000000..bb68923c --- /dev/null +++ b/src/app/eclair/reports/fee/fee-report.component.spec.ts @@ -0,0 +1,31 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { DataService } from '../../../shared/services/data.service'; + +import { ECLFeeReportComponent } from './fee-report.component'; + +describe('ECLFeeReportComponent', () => { + let component: ECLFeeReportComponent; + let fixture: ComponentFixture; + const mockDataService = jasmine.createSpyObj("DataService", ["getChildAPIUrl","setChildAPIUrl","getFiatRates", + "getAliasesFromPubkeys","signMessage","verifyMessage","handleErrorWithoutAlert","handleErrorWithAlert"]); + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ECLFeeReportComponent ], + providers: [ + { provide: DataService, useValue: mockDataService } + ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ECLFeeReportComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/eclair/reports/fee/fee-report.component.ts b/src/app/eclair/reports/fee/fee-report.component.ts new file mode 100644 index 00000000..c9d0efd3 --- /dev/null +++ b/src/app/eclair/reports/fee/fee-report.component.ts @@ -0,0 +1,157 @@ +import { Component, OnInit, OnDestroy, HostListener, AfterViewInit } from '@angular/core'; +import { Subject } from 'rxjs'; +import { takeUntil } from 'rxjs/operators'; +import { Store } from '@ngrx/store'; + +import { PaymentRelayed } from '../../../shared/models/eclModels'; +import { CommonService } from '../../../shared/services/common.service'; +import { MONTHS, ScreenSizeEnum, SCROLL_RANGES } from '../../../shared/services/consts-enums-functions'; +import { DataService } from '../../../shared/services/data.service'; +import { fadeIn } from '../../../shared/animation/opacity-animation'; + +import * as fromRTLReducer from '../../../store/rtl.reducers'; +import { LoggerService } from '../../../shared/services/logger.service'; + +@Component({ + selector: 'rtl-ecl-fee-report', + templateUrl: './fee-report.component.html', + styleUrls: ['./fee-report.component.scss'], + animations: [fadeIn] +}) +export class ECLFeeReportComponent implements OnInit, AfterViewInit, OnDestroy { + public reportPeriod = SCROLL_RANGES[0]; + public secondsInADay = 24 * 60 * 60; + public events: PaymentRelayed[] = []; + public filteredEventsBySelectedPeriod: PaymentRelayed[] = []; + public eventFilterValue = ''; + public totalFeeSat = null; + public today = new Date(Date.now()); + public timezoneOffset = this.today.getTimezoneOffset() * 60; + public startDate = new Date(this.today.getFullYear(), this.today.getMonth(), 1, 0, 0, 0); + public endDate = new Date(this.today.getFullYear(), this.today.getMonth(), this.getMonthDays(this.today.getMonth(), this.today.getFullYear()), 23, 59, 59); + public feeReportData: any = []; + public view: [number, number] = [350, 350]; + public screenPaddingX = 100; + public gradient = true; + public xAxisLabel = 'Date'; + public yAxisLabel = 'Fee (Sats)'; + public showYAxisLabel = true; + public screenSize = ''; + public screenSizeEnum = ScreenSizeEnum; + private unSubs: Array> = [new Subject(), new Subject()]; + + constructor(private logger: LoggerService, private dataService: DataService, private commonService: CommonService, private store: Store) {} + + ngOnInit() { + this.screenSize = this.commonService.getScreenSize(); + this.showYAxisLabel = !(this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM); + this.store.select('ecl') + .pipe(takeUntil(this.unSubs[0])) + .subscribe((rtlStore) => { + this.events = rtlStore.payments && rtlStore.payments.relayed ? rtlStore.payments.relayed : []; + this.filterForwardingEvents(this.startDate, this.endDate); + this.logger.info(rtlStore); + }); + } + + ngAfterViewInit() { + const CONTAINER_SIZE = this.commonService.getContainerSize(); + switch (this.screenSize) { + case ScreenSizeEnum.MD: + this.screenPaddingX = CONTAINER_SIZE.width/10; + break; + + case ScreenSizeEnum.LG: + this.screenPaddingX = CONTAINER_SIZE.width/16; + break; + + default: + this.screenPaddingX = CONTAINER_SIZE.width/20; + break; + } + this.view = [CONTAINER_SIZE.width - this.screenPaddingX, CONTAINER_SIZE.height/2.2]; + } + + filterForwardingEvents(start: Date, end: Date) { + const startDateInSeconds = (Math.round(start.getTime()/1000) - this.timezoneOffset); + const endDateInSeconds = (Math.round(end.getTime()/1000) - this.timezoneOffset); + this.filteredEventsBySelectedPeriod = []; + this.feeReportData = []; + this.totalFeeSat = null; + if (this.events && this.events.length > 0) { + this.events.forEach(event => { + if (Math.floor(event.timestamp/1000) >= startDateInSeconds && Math.floor(event.timestamp/1000) < endDateInSeconds) { + this.filteredEventsBySelectedPeriod.push(event); + } + }); + this.feeReportData = this.prepareFeeReport(start); + } + } + + @HostListener('mouseup', ['$event']) onChartMouseUp(e) { + if (e.srcElement.tagName === 'svg' && e.srcElement.classList.length > 0 && e.srcElement.classList[0] === 'ngx-charts') { + this.eventFilterValue = ''; + } + } + + onChartBarSelected(event) { + if(this.reportPeriod === SCROLL_RANGES[1]) { + this.eventFilterValue = event.name.toUpperCase() + '/' + this.startDate.getFullYear(); + } else { + this.eventFilterValue = event.name.toString().padStart(2, '0') + '/' + MONTHS[this.startDate.getMonth()].name.toUpperCase() + '/' + this.startDate.getFullYear(); + } + } + + prepareFeeReport(start: Date) { + const startDateInSeconds = Math.round(start.getTime()/1000) - this.timezoneOffset; + let feeReport = []; + if (this.reportPeriod === SCROLL_RANGES[1]) { + for (let i = 0; i < 12; i++) { + feeReport.push({name: MONTHS[i].name, value: 0.000000001, extra: {totalEvents: 0}}); + } + this.filteredEventsBySelectedPeriod.map(event => { + let monthNumber = new Date(event.timestamp + (this.timezoneOffset*1000)).getMonth(); + feeReport[monthNumber].value = feeReport[monthNumber].value + (event.amountIn - event.amountOut); + feeReport[monthNumber].extra.totalEvents = feeReport[monthNumber].extra.totalEvents + 1; + this.totalFeeSat = (this.totalFeeSat ? this.totalFeeSat : 0) + (event.amountIn - event.amountOut); + }); + } else { + for (let i = 0; i < this.getMonthDays(start.getMonth(), start.getFullYear()); i++) { + feeReport.push({name: i + 1, value: 0.000000001, extra: {totalEvents: 0}}); + } + this.filteredEventsBySelectedPeriod.map(event => { + let dateNumber = Math.floor((Math.floor(event.timestamp/1000) - startDateInSeconds) / this.secondsInADay); + feeReport[dateNumber].value = feeReport[dateNumber].value + (event.amountIn - event.amountOut); + feeReport[dateNumber].extra.totalEvents = feeReport[dateNumber].extra.totalEvents + 1; + this.totalFeeSat = (this.totalFeeSat ? this.totalFeeSat : 0) + (event.amountIn - event.amountOut); + }); + } + return feeReport; + } + + onSelectionChange(selectedValues: {selDate: Date, selScrollRange: string}) { + const selMonth = selectedValues.selDate.getMonth(); + const selYear = selectedValues.selDate.getFullYear(); + this.reportPeriod = selectedValues.selScrollRange; + if (this.reportPeriod === SCROLL_RANGES[1]) { + this.startDate = new Date(selYear, 0, 1, 0, 0, 0); + this.endDate = new Date(selYear, 11, 31, 23, 59, 59); + } else { + this.startDate = new Date(selYear, selMonth, 1, 0, 0, 0); + this.endDate = new Date(selYear, selMonth, this.getMonthDays(selMonth, selYear), 23, 59, 59); + } + this.filterForwardingEvents(this.startDate, this.endDate); + this.eventFilterValue = ''; + } + + getMonthDays(selMonth: number, selYear: number) { + return (selMonth === 1 && selYear%4 === 0) ? (MONTHS[selMonth].days+1) : MONTHS[selMonth].days; + } + + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } +} diff --git a/src/app/eclair/reports/reports.component.html b/src/app/eclair/reports/reports.component.html new file mode 100644 index 00000000..6b396353 --- /dev/null +++ b/src/app/eclair/reports/reports.component.html @@ -0,0 +1,15 @@ +
+ + Reports +
+
+ + + + + + +
+ \ No newline at end of file diff --git a/src/app/eclair/reports/reports.component.scss b/src/app/eclair/reports/reports.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/eclair/reports/reports.component.spec.ts b/src/app/eclair/reports/reports.component.spec.ts new file mode 100644 index 00000000..5f5e580e --- /dev/null +++ b/src/app/eclair/reports/reports.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ECLReportsComponent } from './reports.component'; + +describe('ECLReportsComponent', () => { + let component: ECLReportsComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ECLReportsComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ECLReportsComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/eclair/reports/reports.component.ts b/src/app/eclair/reports/reports.component.ts new file mode 100644 index 00000000..377986f7 --- /dev/null +++ b/src/app/eclair/reports/reports.component.ts @@ -0,0 +1,37 @@ +import { Component, OnDestroy, OnInit } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; +import { Subject } from 'rxjs'; +import { takeUntil, filter } from 'rxjs/operators'; +import { faChartBar } from '@fortawesome/free-solid-svg-icons'; + +@Component({ + selector: 'rtl-ecl-reports', + templateUrl: './reports.component.html', + styleUrls: ['./reports.component.scss'] +}) +export class ECLReportsComponent implements OnInit, OnDestroy { + public faChartBar = faChartBar; + public links = [{link: 'routingfees', name: 'Routing Fees'}, {link: 'transactions', name: 'Transactions'}]; + public activeLink = this.links[0].link; + private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; + + constructor(private router: Router) {} + + ngOnInit() { + let linkFound = this.links.find(link => this.router.url.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + let linkFound = this.links.find(link => value.urlAfterRedirects.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + }); + } + + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } + +} diff --git a/src/app/eclair/reports/transactions/transactions-report.component.html b/src/app/eclair/reports/transactions/transactions-report.component.html new file mode 100644 index 00000000..9b8a8d3a --- /dev/null +++ b/src/app/eclair/reports/transactions/transactions-report.component.html @@ -0,0 +1,40 @@ +
+ +
+
+
+ Paid {{(transactionsReportSummary.amountPaidSelectedPeriod || 0) | number:'1.0-0'}} Sats/{{transactionsReportSummary.paymentsSelectedPeriod | number}} Payments +
+
+ Received {{(transactionsReportSummary.amountReceivedSelectedPeriod || 0) | number:'1.0-0'}} Sats/{{transactionsReportSummary.invoicesSelectedPeriod | number}} Invoices +
+
+
No transactions report for the selected period
+
+ + + {{model.name}}: {{(model.value || 0) | number:'1.0-0'}}/# {{model.name === 'Paid' ? 'Payments' : 'Invoices'}}: {{(model.extra?.total || 0) | number}} + + +
+
+ +
+
+
diff --git a/src/app/eclair/reports/transactions/transactions-report.component.scss b/src/app/eclair/reports/transactions/transactions-report.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/eclair/reports/transactions/transactions-report.component.spec.ts b/src/app/eclair/reports/transactions/transactions-report.component.spec.ts new file mode 100644 index 00000000..982cd8a3 --- /dev/null +++ b/src/app/eclair/reports/transactions/transactions-report.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ECLTransactionsReportComponent } from './transactions-report.component'; + +describe('ECLTransactionsReportComponent', () => { + let component: ECLTransactionsReportComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ECLTransactionsReportComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ECLTransactionsReportComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/eclair/reports/transactions/transactions-report.component.ts b/src/app/eclair/reports/transactions/transactions-report.component.ts new file mode 100644 index 00000000..20c8212e --- /dev/null +++ b/src/app/eclair/reports/transactions/transactions-report.component.ts @@ -0,0 +1,177 @@ +import { Component, OnInit, OnDestroy, HostListener, AfterViewInit } from '@angular/core'; +import { Subject } from 'rxjs'; +import { takeUntil } from 'rxjs/operators'; +import { Store } from '@ngrx/store'; + +import { PaymentSent, Invoice } from '../../../shared/models/eclModels'; +import { CommonService } from '../../../shared/services/common.service'; +import { MONTHS, ScreenSizeEnum, SCROLL_RANGES } from '../../../shared/services/consts-enums-functions'; +import { DataService } from '../../../shared/services/data.service'; +import { fadeIn } from '../../../shared/animation/opacity-animation'; + +import * as fromRTLReducer from '../../../store/rtl.reducers'; + +@Component({ + selector: 'rtl-ecl-transactions-report', + templateUrl: './transactions-report.component.html', + styleUrls: ['./transactions-report.component.scss'], + animations: [fadeIn] +}) +export class ECLTransactionsReportComponent implements OnInit, AfterViewInit, OnDestroy { + public scrollRanges = SCROLL_RANGES; + public reportPeriod = SCROLL_RANGES[0]; + public secondsInADay = 24 * 60 * 60; + public payments: PaymentSent[] = []; + public invoices: Invoice[] = []; + public transactionsReportSummary = { paymentsSelectedPeriod: 0, invoicesSelectedPeriod: 0, amountPaidSelectedPeriod: 0, amountReceivedSelectedPeriod: 0 }; + public transactionFilterValue = ''; + public today = new Date(Date.now()); + public timezoneOffset = this.today.getTimezoneOffset() * 60; + public startDate = new Date(this.today.getFullYear(), this.today.getMonth(), 1, 0, 0, 0); + public endDate = new Date(this.today.getFullYear(), this.today.getMonth(), this.getMonthDays(this.today.getMonth(), this.today.getFullYear()), 23, 59, 59); + public transactionsReportData: any = []; + public transactionsNonZeroReportData: any = []; + public view: [number, number] = [350, 350]; + public screenPaddingX = 100; + public gradient = true; + public xAxisLabel = 'Date'; + public yAxisLabel = 'Amount (Sats)'; + public showYAxisLabel = true; + public screenSize = ''; + public screenSizeEnum = ScreenSizeEnum; + private unSubs: Array> = [new Subject(), new Subject()]; + + constructor(private dataService: DataService, private commonService: CommonService, private store: Store) {} + + ngOnInit() { + this.screenSize = this.commonService.getScreenSize(); + this.showYAxisLabel = !(this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM); + this.store.select('ecl') + .pipe(takeUntil(this.unSubs[0])) + .subscribe((rtlStore) => { + if(rtlStore.initialAPIResponseStatus[0] === 'COMPLETE') { + this.dataService.getTransactionsForReport() + .pipe(takeUntil(this.unSubs[1])).subscribe(res => { + this.payments = res.payments.sent; + this.invoices = res.invoices; + this.transactionsReportData = this.filterTransactionsForSelectedPeriod(this.startDate, this.endDate); + this.transactionsNonZeroReportData = this.prepareTableData(); + }); + } + }); + } + + ngAfterViewInit() { + const CONTAINER_SIZE = this.commonService.getContainerSize(); + switch (this.screenSize) { + case ScreenSizeEnum.MD: + this.screenPaddingX = CONTAINER_SIZE.width/10; + break; + + case ScreenSizeEnum.LG: + this.screenPaddingX = CONTAINER_SIZE.width/16; + break; + + default: + this.screenPaddingX = CONTAINER_SIZE.width/20; + break; + } + this.view = [CONTAINER_SIZE.width - this.screenPaddingX, CONTAINER_SIZE.height/2.2]; + } + + @HostListener('mouseup', ['$event']) onChartMouseUp(e) { + if (e.srcElement.tagName === 'svg' && e.srcElement.classList.length > 0 && e.srcElement.classList[0] === 'ngx-charts') { + this.transactionFilterValue = ''; + } + } + + onChartBarSelected(event) { + if(this.reportPeriod === SCROLL_RANGES[1]) { + this.transactionFilterValue = event.series.toUpperCase() + '/' + this.startDate.getFullYear(); + } else { + this.transactionFilterValue = event.series.toString().padStart(2, '0') + '/' + MONTHS[this.startDate.getMonth()].name.toUpperCase() + '/' + this.startDate.getFullYear(); + } + } + + filterTransactionsForSelectedPeriod(start: Date, end: Date) { + const startDateInSeconds = Math.round(start.getTime()/1000) - this.timezoneOffset; + const endDateInSeconds = Math.round(end.getTime()/1000) - this.timezoneOffset; + let transactionsReport = []; + this.transactionsReportSummary = { paymentsSelectedPeriod: 0, invoicesSelectedPeriod: 0, amountPaidSelectedPeriod: 0, amountReceivedSelectedPeriod: 0 }; + let filteredPayments = this.payments.filter(payment => Math.floor(payment.firstPartTimestamp/1000) >= startDateInSeconds && Math.floor(payment.firstPartTimestamp/1000) < endDateInSeconds); + let filteredInvoices = this.invoices.filter(invoice => invoice.status === 'received' && invoice.timestamp >= startDateInSeconds && invoice.timestamp < endDateInSeconds); + this.transactionsReportSummary.paymentsSelectedPeriod = filteredPayments.length; + this.transactionsReportSummary.invoicesSelectedPeriod = filteredInvoices.length; + if (this.reportPeriod === SCROLL_RANGES[1]) { + for (let i = 0; i < 12; i++) { + transactionsReport.push({name: MONTHS[i].name, date: new Date(start.getFullYear(), i, 1, 0, 0, 0, 0), series: [{name: 'Paid', value: 0, extra: {total: 0}}, {name: 'Received', value: 0, extra: {total: 0}}]}); + } + filteredPayments.map(payment => { + let monthNumber = new Date(payment.firstPartTimestamp + (this.timezoneOffset*1000)).getMonth(); + this.transactionsReportSummary.amountPaidSelectedPeriod = this.transactionsReportSummary.amountPaidSelectedPeriod + payment.recipientAmount; + transactionsReport[monthNumber].series[0].value = transactionsReport[monthNumber].series[0].value + payment.recipientAmount; + transactionsReport[monthNumber].series[0].extra.total = transactionsReport[monthNumber].series[0].extra.total + 1; + }); + filteredInvoices.map(invoice => { + let monthNumber = new Date((invoice.timestamp + this.timezoneOffset)*1000).getMonth(); + this.transactionsReportSummary.amountReceivedSelectedPeriod = this.transactionsReportSummary.amountReceivedSelectedPeriod + invoice.amountSettled; + transactionsReport[monthNumber].series[1].value = transactionsReport[monthNumber].series[1].value + invoice.amountSettled; + transactionsReport[monthNumber].series[1].extra.total = transactionsReport[monthNumber].series[1].extra.total + 1; + }); + } else { + for (let i = 0; i < this.getMonthDays(start.getMonth(), start.getFullYear()); i++) { + transactionsReport.push({name: (i + 1).toString(), date: new Date((((i+1)*this.secondsInADay) + startDateInSeconds)*1000), series: [{name: 'Paid', value: 0, extra: {total: 0}}, {name: 'Received', value: 0, extra: {total: 0}}]}); + } + filteredPayments.map(payment => { + let dateNumber = Math.floor((Math.floor(payment.firstPartTimestamp/1000) - startDateInSeconds) / this.secondsInADay); + this.transactionsReportSummary.amountPaidSelectedPeriod = this.transactionsReportSummary.amountPaidSelectedPeriod + payment.recipientAmount; + transactionsReport[dateNumber].series[0].value = transactionsReport[dateNumber].series[0].value + payment.recipientAmount; + transactionsReport[dateNumber].series[0].extra.total = transactionsReport[dateNumber].series[0].extra.total + 1; + }); + filteredInvoices.map(invoice => { + let dateNumber = Math.floor((invoice.timestamp - startDateInSeconds) / this.secondsInADay); + this.transactionsReportSummary.amountReceivedSelectedPeriod = this.transactionsReportSummary.amountReceivedSelectedPeriod + invoice.amountSettled; + transactionsReport[dateNumber].series[1].value = transactionsReport[dateNumber].series[1].value + invoice.amountSettled; + transactionsReport[dateNumber].series[1].extra.total = transactionsReport[dateNumber].series[1].extra.total + 1; + }); + } + return transactionsReport; + } + + prepareTableData() { + return this.transactionsReportData.reduce((acc, curr) => { + if (curr.series[0].value > 0 || curr.series[1].value >0) { + return acc.concat({date: curr.date, date_str: this.commonService.convertTimestampToDate(curr.date.getTime()/1000), amount_paid: curr.series[0].value, num_payments: curr.series[0].extra.total, amount_received: curr.series[1].value, num_invoices: curr.series[1].extra.total}); + } + return acc; + }, []); + } + + onSelectionChange(selectedValues: {selDate: Date, selScrollRange: string}) { + const selMonth = selectedValues.selDate.getMonth(); + const selYear = selectedValues.selDate.getFullYear(); + this.reportPeriod = selectedValues.selScrollRange; + if (this.reportPeriod === SCROLL_RANGES[1]) { + this.startDate = new Date(selYear, 0, 1, 0, 0, 0); + this.endDate = new Date(selYear, 11, 31, 23, 59, 59); + } else { + this.startDate = new Date(selYear, selMonth, 1, 0, 0, 0); + this.endDate = new Date(selYear, selMonth, this.getMonthDays(selMonth, selYear), 23, 59, 59); + } + this.transactionsReportData = this.filterTransactionsForSelectedPeriod(this.startDate, this.endDate); + this.transactionsNonZeroReportData = this.prepareTableData(); + this.transactionFilterValue = ''; + } + + getMonthDays(selMonth: number, selYear: number) { + return (selMonth === 1 && selYear%4 === 0) ? (MONTHS[selMonth].days+1) : MONTHS[selMonth].days; + } + + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } +} + diff --git a/src/app/eclair/routing/forwarding-history/forwarding-history.component.html b/src/app/eclair/routing/forwarding-history/forwarding-history.component.html index 73b5137b..15a50778 100644 --- a/src/app/eclair/routing/forwarding-history/forwarding-history.component.html +++ b/src/app/eclair/routing/forwarding-history/forwarding-history.component.html @@ -1,21 +1,22 @@ -
-
+
+
{{errorMessage}}
+
- +
-
+
- + - + diff --git a/src/app/eclair/routing/forwarding-history/forwarding-history.component.ts b/src/app/eclair/routing/forwarding-history/forwarding-history.component.ts index bb0e5045..4303240a 100644 --- a/src/app/eclair/routing/forwarding-history/forwarding-history.component.ts +++ b/src/app/eclair/routing/forwarding-history/forwarding-history.component.ts @@ -1,4 +1,6 @@ -import { Component, OnInit, OnChanges, ViewChild, Input } from '@angular/core'; +import { Component, OnInit, ViewChild, OnDestroy, Input, SimpleChanges, AfterViewInit } from '@angular/core'; +import { Subject } from 'rxjs'; +import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { MatPaginator, MatPaginatorIntl } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; @@ -20,17 +22,21 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Events') } ] }) -export class ECLForwardingHistoryComponent implements OnInit, OnChanges { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; - @Input() successfulEvents: any; - public displayedColumns = []; +export class ECLForwardingHistoryComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; + @Input() eventsData = []; + @Input() filterValue = ''; + public successfulEvents = []; + public errorMessage = ''; + public displayedColumns: any[] = []; public forwardingHistoryEvents: any; public flgSticky = false; public pageSize = PAGE_SIZE; public pageSizeOptions = PAGE_SIZE_OPTIONS; public screenSize = ''; public screenSizeEnum = ScreenSizeEnum; + private unSubs: Array> = [new Subject(), new Subject(), new Subject()]; constructor(private logger: LoggerService, private commonService: CommonService, private store: Store) { this.screenSize = this.commonService.getScreenSize(); @@ -45,14 +51,43 @@ export class ECLForwardingHistoryComponent implements OnInit, OnChanges { this.displayedColumns = ['timestamp', 'amountIn', 'amountOut', 'fee', 'actions']; } else { this.flgSticky = true; - this.displayedColumns = ['timestamp', 'fromAlias', 'toAlias', 'amountIn', 'amountOut', 'fee', 'actions']; + this.displayedColumns = ['timestamp', 'fromChannelAlias', 'toChannelAlias', 'amountIn', 'amountOut', 'fee', 'actions']; } } - ngOnInit() {} + ngOnInit() { + this.store.select('ecl') + .pipe(takeUntil(this.unSubs[0])) + .subscribe((rtlStore) => { + if (this.eventsData.length <= 0) { + this.errorMessage = ''; + rtlStore.effectErrors.forEach(effectsErr => { + if (effectsErr.action === 'FetchPayments') { + this.errorMessage = (typeof(effectsErr.message) === 'object') ? JSON.stringify(effectsErr.message) : effectsErr.message; + } + }); + this.successfulEvents = rtlStore.payments && rtlStore.payments.relayed ? rtlStore.payments.relayed : []; + this.loadForwardingEventsTable(this.successfulEvents); + this.logger.info(rtlStore); + } + }); + } - ngOnChanges() { - this.loadForwardingEventsTable(this.successfulEvents); + ngAfterViewInit() { + if (this.successfulEvents.length > 0) { + this.loadForwardingEventsTable(this.successfulEvents); + } + } + + ngOnChanges(changes: SimpleChanges) { + if (changes.eventsData) { + this.eventsData = changes.eventsData.currentValue; + this.successfulEvents = this.eventsData; + this.loadForwardingEventsTable(this.successfulEvents); + } + if (changes.filterValue) { + this.applyFilter(); + } } onForwardingEventClick(selFEvent: PaymentRelayed, event: any) { @@ -79,7 +114,15 @@ export class ECLForwardingHistoryComponent implements OnInit, OnChanges { loadForwardingEventsTable(forwardingEvents: PaymentRelayed[]) { this.forwardingHistoryEvents = new MatTableDataSource([...forwardingEvents]); this.forwardingHistoryEvents.sort = this.sort; - this.forwardingHistoryEvents.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.forwardingHistoryEvents.sortingDataAccessor = (data: any, sortHeaderId: string) => { + switch (sortHeaderId) { + case 'fee': + return data.amountIn - data.amountOut; + + default: + return (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; + } + } this.forwardingHistoryEvents.paginator = this.paginator; this.logger.info(this.forwardingHistoryEvents); } @@ -90,8 +133,14 @@ export class ECLForwardingHistoryComponent implements OnInit, OnChanges { } } - applyFilter(selFilter: string) { - this.forwardingHistoryEvents.filter = selFilter; + applyFilter() { + this.forwardingHistoryEvents.filter = this.filterValue; } + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } } diff --git a/src/app/eclair/routing/routing-peers/routing-peers.component.html b/src/app/eclair/routing/routing-peers/routing-peers.component.html index e4c09a57..c41370b5 100644 --- a/src/app/eclair/routing/routing-peers/routing-peers.component.html +++ b/src/app/eclair/routing/routing-peers/routing-peers.component.html @@ -1,13 +1,14 @@ -
-
+
+
{{errorMessage}}
+
Incoming
- +
-
+
Date/Time {{fhEvent?.timestampStr}} In Channel {{fhEvent?.fromChannelAlias}} Out Channel {{fhEvent?.toChannelAlias}}
@@ -45,10 +46,10 @@
Outgoing
- +
-
+
Channel ID
diff --git a/src/app/eclair/routing/routing-peers/routing-peers.component.ts b/src/app/eclair/routing/routing-peers/routing-peers.component.ts index ade6103d..64295e8b 100644 --- a/src/app/eclair/routing/routing-peers/routing-peers.component.ts +++ b/src/app/eclair/routing/routing-peers/routing-peers.component.ts @@ -1,4 +1,6 @@ -import { Component, OnInit, OnChanges, ViewChild, Input } from '@angular/core'; +import { Component, OnInit, ViewChild, OnDestroy } from '@angular/core'; +import { Subject } from 'rxjs'; +import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { Actions } from '@ngrx/effects'; @@ -16,16 +18,18 @@ import { ScreenSizeEnum } from '../../../shared/services/consts-enums-functions' templateUrl: './routing-peers.component.html', styleUrls: ['./routing-peers.component.scss'] }) -export class ECLRoutingPeersComponent implements OnInit, OnChanges { - @ViewChild(MatSort, { static: true }) sortIn: MatSort; - @ViewChild('tableOut', {read: MatSort, static: true}) sortOut: MatSort; - @Input() routingPeersData: any; - public displayedColumns = []; +export class ECLRoutingPeersComponent implements OnInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sortIn: MatSort; + @ViewChild('tableOut', {read: MatSort, static: false}) sortOut: MatSort; + public routingPeersData = []; + public errorMessage = ''; + public displayedColumns: any[] = []; public RoutingPeersIncoming: any; public RoutingPeersOutgoing: any; public flgSticky = false; public screenSize = ''; public screenSizeEnum = ScreenSizeEnum; + private unSubs: Array> = [new Subject(), new Subject(), new Subject()]; constructor(private logger: LoggerService, private commonService: CommonService, private store: Store, private actions$: Actions) { this.screenSize = this.commonService.getScreenSize(); @@ -44,10 +48,20 @@ export class ECLRoutingPeersComponent implements OnInit, OnChanges { } } - ngOnInit() {} - - ngOnChanges() { - this.loadRoutingPeersTable(this.routingPeersData); + ngOnInit() { + this.store.select('ecl') + .pipe(takeUntil(this.unSubs[0])) + .subscribe((rtlStore) => { + this.errorMessage = ''; + rtlStore.effectErrors.forEach(effectsErr => { + if (effectsErr.action === 'FetchPayments') { + this.errorMessage = (typeof(effectsErr.message) === 'object') ? JSON.stringify(effectsErr.message) : effectsErr.message; + } + }); + this.routingPeersData = rtlStore.payments && rtlStore.payments.relayed ? rtlStore.payments.relayed : []; + this.loadRoutingPeersTable(this.routingPeersData); + this.logger.info(rtlStore); + }); } loadRoutingPeersTable(forwardingEvents: PaymentRelayed[]) { @@ -90,12 +104,18 @@ export class ECLRoutingPeersComponent implements OnInit, OnChanges { return [this.commonService.sortDescByKey(incomingResults, 'totalFee'), this.commonService.sortDescByKey(outgoingResults, 'totalFee')]; } - applyIncomingFilter(selFilter: string) { - this.RoutingPeersIncoming.filter = selFilter; + applyIncomingFilter(selFilter: any) { + this.RoutingPeersIncoming.filter = selFilter.value; } - applyOutgoingFilter(selFilter: string) { - this.RoutingPeersOutgoing.filter = selFilter; + applyOutgoingFilter(selFilter: any) { + this.RoutingPeersOutgoing.filter = selFilter.value; } + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } } diff --git a/src/app/eclair/routing/routing.component.html b/src/app/eclair/routing/routing.component.html index 3f4f9da0..ca6d9d0b 100644 --- a/src/app/eclair/routing/routing.component.html +++ b/src/app/eclair/routing/routing.component.html @@ -1,22 +1,18 @@
-
+
Routing
- -
- - -
{{errorMessage}}
- -
- -
{{errorMessage}}
- -
-
+ +
+ +
+
+
diff --git a/src/app/eclair/routing/routing.component.ts b/src/app/eclair/routing/routing.component.ts index ec819e48..c25af197 100644 --- a/src/app/eclair/routing/routing.component.ts +++ b/src/app/eclair/routing/routing.component.ts @@ -1,6 +1,7 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; -import { takeUntil } from 'rxjs/operators'; +import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { faMapSigns } from '@fortawesome/free-solid-svg-icons'; @@ -8,7 +9,6 @@ import { LoggerService } from '../../shared/services/logger.service'; import * as fromRTLReducer from '../../store/rtl.reducers'; - @Component({ selector: 'rtl-ecl-routing', templateUrl: './routing.component.html', @@ -19,26 +19,19 @@ export class ECLRoutingComponent implements OnInit, OnDestroy { public events = []; public flgLoading: Array = [true]; public errorMessage = ''; + public links = [{link: 'forwardinghistory', name: 'Forwarding History'}, {link: 'peers', name: 'Routing Peers'}]; + public activeLink = this.links[0].link; private unSubs: Array> = [new Subject(), new Subject(), new Subject()]; - constructor(private logger: LoggerService, private store: Store) {} + constructor(private router: Router) {} ngOnInit() { - this.store.select('ecl') - .pipe(takeUntil(this.unSubs[0])) - .subscribe((rtlStore) => { - this.errorMessage = ''; - rtlStore.effectErrors.forEach(effectsErr => { - if (effectsErr.action === 'FetchPayments') { - this.flgLoading[0] = 'error'; - this.errorMessage = (typeof(effectsErr.message) === 'object') ? JSON.stringify(effectsErr.message) : effectsErr.message; - } - }); - this.events = rtlStore.payments && rtlStore.payments.relayed ? rtlStore.payments.relayed : []; - if (this.flgLoading[0] !== 'error') { - this.flgLoading[0] = (rtlStore.payments) ? false : true; - } - this.logger.info(rtlStore); + let linkFound = this.links.find(link => this.router.url.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + let linkFound = this.links.find(link => value.urlAfterRedirects.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; }); } diff --git a/src/app/eclair/transactions/create-invoice-modal/create-invoice.component.html b/src/app/eclair/transactions/create-invoice-modal/create-invoice.component.html index a0ad2853..682b37d6 100644 --- a/src/app/eclair/transactions/create-invoice-modal/create-invoice.component.html +++ b/src/app/eclair/transactions/create-invoice-modal/create-invoice.component.html @@ -14,12 +14,12 @@
- + {{information?.smaller_currency_unit}} {{invoiceValueHint}} - + {{selTimeUnit | titlecase}} diff --git a/src/app/eclair/transactions/create-invoice-modal/create-invoice.component.ts b/src/app/eclair/transactions/create-invoice-modal/create-invoice.component.ts index 657bf7a2..15795fcc 100644 --- a/src/app/eclair/transactions/create-invoice-modal/create-invoice.component.ts +++ b/src/app/eclair/transactions/create-invoice-modal/create-invoice.component.ts @@ -27,7 +27,7 @@ export class ECLCreateInvoiceComponent implements OnInit, OnDestroy { public selNode: SelNodeChild = {}; public description = ''; public expiry: number; - public invoiceValue: number; + public invoiceValue: number = null; public invoiceValueHint = ''; public invoicePaymentReq = ''; public invoices: any; @@ -63,7 +63,7 @@ export class ECLCreateInvoiceComponent implements OnInit, OnDestroy { }); } - onAddInvoice(form: any) { + onAddInvoice(form: any):boolean|void { this.invoiceError = ''; if(!this.description) { return true; } let expiryInSecs = (this.expiry ? this.expiry : 3600); @@ -82,7 +82,7 @@ export class ECLCreateInvoiceComponent implements OnInit, OnDestroy { resetData() { this.description = ''; - this.invoiceValue = undefined; + this.invoiceValue = null; this.private = false; this.expiry = undefined; this.invoiceValueHint = ''; diff --git a/src/app/eclair/transactions/invoices/lightning-invoices.component.html b/src/app/eclair/transactions/invoices/lightning-invoices.component.html index df52e2cf..6df4a0b3 100644 --- a/src/app/eclair/transactions/invoices/lightning-invoices.component.html +++ b/src/app/eclair/transactions/invoices/lightning-invoices.component.html @@ -1,11 +1,11 @@ -
-
+
+ Description is required. - + {{information?.smaller_currency_unit}} {{invoiceValueHint}} @@ -14,20 +14,20 @@
-
+
-
-
-
+
+
+
Invoices History
- - + +
-
+
Channel ID
diff --git a/src/app/eclair/transactions/invoices/lightning-invoices.component.ts b/src/app/eclair/transactions/invoices/lightning-invoices.component.ts index 184c0f07..607c6380 100644 --- a/src/app/eclair/transactions/invoices/lightning-invoices.component.ts +++ b/src/app/eclair/transactions/invoices/lightning-invoices.component.ts @@ -32,9 +32,9 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; ] }) export class ECLLightningInvoicesComponent implements OnInit, OnDestroy { - @Input() showDetails = true; - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; + @Input() calledFrom = 'transactions'; // transactions/home + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; faHistory = faHistory; public selNode: SelNodeChild = {}; public newlyAddedInvoiceMemo = ''; @@ -42,9 +42,9 @@ export class ECLLightningInvoicesComponent implements OnInit, OnDestroy { public flgAnimate = true; public description = ''; public expiry: number; - public invoiceValue: number; + public invoiceValue: number = null; public invoiceValueHint = ''; - public displayedColumns = []; + public displayedColumns: any[] = []; public invoicePaymentReq = ''; public invoices: any; public invoiceJSONArr: Invoice[] = []; @@ -86,21 +86,16 @@ export class ECLLightningInvoicesComponent implements OnInit, OnDestroy { }); this.selNode = rtlStore.nodeSettings; this.information = rtlStore.information; - this.logger.info(rtlStore); this.invoiceJSONArr = (rtlStore.invoices && rtlStore.invoices.length > 0) ? rtlStore.invoices : []; - this.invoices = (rtlStore.invoices) ? new MatTableDataSource([]) : new MatTableDataSource([...this.invoiceJSONArr]); - this.invoices.data = this.invoiceJSONArr; - this.invoices.sort = this.sort; - this.invoices.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; - this.invoices.paginator = this.paginator; - setTimeout(() => { this.flgAnimate = false; }, 5000); - this.logger.info(this.invoices); - - if (this.flgLoading[0] !== 'error') { - this.flgLoading[0] = ( rtlStore.invoices) ? false : true; + if (this.invoiceJSONArr && this.invoiceJSONArr.length > 0) { + this.loadInvoicesTable(this.invoiceJSONArr); } + setTimeout(() => { this.flgAnimate = false; }, 5000); + if (this.flgLoading[0] !== 'error') { + this.flgLoading[0] = (rtlStore.invoices) ? false : true; + } + this.logger.info(rtlStore); }); - } openCreateInvoiceModal() { @@ -110,7 +105,7 @@ export class ECLLightningInvoicesComponent implements OnInit, OnDestroy { }})); } - onAddInvoice(form: any) { + onAddInvoice(form: any):boolean|void { if(!this.description) { return true; } let expiryInSecs = (this.expiry ? this.expiry : 3600); this.flgAnimate = true; @@ -135,15 +130,23 @@ export class ECLLightningInvoicesComponent implements OnInit, OnDestroy { }})); } + loadInvoicesTable(invoices: Invoice[]) { + invoices[0].amountSettled + this.invoices = new MatTableDataSource([...invoices]); + this.invoices.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; + this.invoices.sort = this.sort; + this.invoices.paginator = this.paginator; + } + resetData() { this.description = ''; - this.invoiceValue = undefined; - this.expiry = undefined; + this.invoiceValue = null; + this.expiry = null; this.invoiceValueHint = ''; } - applyFilter(selFilter: string) { - this.invoices.filter = selFilter; + applyFilter(selFilter: any) { + this.invoices.filter = selFilter.value; } onInvoiceValueChange() { diff --git a/src/app/eclair/transactions/payment-information-modal/payment-information.component.html b/src/app/eclair/transactions/payment-information-modal/payment-information.component.html index c50a8c41..39dc18ac 100644 --- a/src/app/eclair/transactions/payment-information-modal/payment-information.component.html +++ b/src/app/eclair/transactions/payment-information-modal/payment-information.component.html @@ -6,7 +6,7 @@ - +
diff --git a/src/app/eclair/transactions/payment-information-modal/payment-information.component.ts b/src/app/eclair/transactions/payment-information-modal/payment-information.component.ts index 0dddfce0..03f0256b 100644 --- a/src/app/eclair/transactions/payment-information-modal/payment-information.component.ts +++ b/src/app/eclair/transactions/payment-information-modal/payment-information.component.ts @@ -10,7 +10,7 @@ import { ECLPaymentInformation } from '../../../shared/models/alertData'; styleUrls: ['./payment-information.component.scss'] }) export class ECLPaymentInformationComponent implements OnInit, AfterViewChecked { - @ViewChild('scrollContainer', { static: true }) scrollContainer: ElementRef; + @ViewChild('scrollContainer', { static: false }) scrollContainer: ElementRef; public payment: PaymentSent; public description: string = null; public shouldScroll = true; diff --git a/src/app/eclair/transactions/payments/lightning-payments.component.html b/src/app/eclair/transactions/payments/lightning-payments.component.html index 427cc08d..04e6792e 100644 --- a/src/app/eclair/transactions/payments/lightning-payments.component.html +++ b/src/app/eclair/transactions/payments/lightning-payments.component.html @@ -1,29 +1,29 @@
-
- - + + + {{paymentDecodedHint}} Payment request is required. -
+
-
- -
-
-
-
+
+ +
+
+
+
Payments History
- - + +
-
+
diff --git a/src/app/eclair/transactions/payments/lightning-payments.component.ts b/src/app/eclair/transactions/payments/lightning-payments.component.ts index c7f4b0b7..23d9ffa9 100644 --- a/src/app/eclair/transactions/payments/lightning-payments.component.ts +++ b/src/app/eclair/transactions/payments/lightning-payments.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy, ViewChild, Input } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, Input, AfterViewInit } from '@angular/core'; import { DecimalPipe, TitleCasePipe } from '@angular/common'; import { forkJoin, Subject } from 'rxjs'; import { takeUntil, take } from 'rxjs/operators'; @@ -33,11 +33,11 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Payments') } ] }) -export class ECLLightningPaymentsComponent implements OnInit, OnDestroy { - @Input() showDetails = true; - @ViewChild('sendPaymentForm', { static: true }) form; - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; +export class ECLLightningPaymentsComponent implements OnInit, AfterViewInit, OnDestroy { + @Input() calledFrom = 'transactions'; // transactions/home + @ViewChild('sendPaymentForm', { static: false }) form; + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public faHistory = faHistory; public newlyAddedPayment = ''; public flgAnimate = true; @@ -47,7 +47,7 @@ export class ECLLightningPaymentsComponent implements OnInit, OnDestroy { public payments: any; public paymentJSONArr: PaymentSent[] = []; public paymentDecoded: PayRequest = {}; - public displayedColumns = []; + public displayedColumns: any[] = []; public partColumns = []; public paymentRequest = ''; public paymentDecodedHint = ''; @@ -103,16 +103,27 @@ export class ECLLightningPaymentsComponent implements OnInit, OnDestroy { }); } this.paymentJSONArr = (rtlStore.payments && rtlStore.payments.sent && rtlStore.payments.sent.length > 0) ? rtlStore.payments.sent : []; - this.payments = new MatTableDataSource([...this.paymentJSONArr]); - // if(this.paymentJSONArr[0] && this.paymentJSONArr[0].parts) { // FOR MPP TESTING - // this.paymentJSONArr[0].parts.push({ - // id: 'ID', amount: 100, feesPaid: 0, toChannelId: 'toChannel', toChannelAlias: 'Alias', timestampStr: 'str' + // FOR MPP TESTING START + // if(this.paymentJSONArr.length > 0) { + // this.paymentJSONArr[3].parts.push({ + // id: '34b609a5-f0f1-474e-9e5d-d7783b48702d', amount: 26000, feesPaid: 22, toChannelId: '7e78fa4a27db55df2955fb2be54162d01168744ad45a6539172a6dd6e6139c87', toChannelAlias: 'ion.radar.tech1', timestamp: 1596389827075, timestampStr: "02/AUG/2020 17:37" + // }); + // this.paymentJSONArr[3].parts.push({ + // id: '35b609a5-f0f1-474e-9e5d-d7783b48702e', amount: 27000, feesPaid: 20, toChannelId: '7e78fa4a27db55df2955fb2be54162d01168744ad45a6539172a6dd6e6139c86', toChannelAlias: 'ion.radar.tech2', timestamp: 1596389817075, timestampStr: "02/AUG/2020 17:36" + // }); + // this.paymentJSONArr[5].parts.push({ + // id: '38b609a5-f0f1-474e-9e5d-d7783b48702h', amount: 31000, feesPaid: 18, toChannelId: '7e78fa4a27db55df2955fb2be54162d01168744ad45a6539172a6dd6e6139c85', toChannelAlias: 'ion.radar.tech3', timestamp: 1596389887075, timestampStr: "02/AUG/2020 17:38" + // }); + // this.paymentJSONArr[5].parts.push({ + // id: '36b609a5-f0f1-474e-9e5d-d7783b48702f', amount: 28000, feesPaid: 13, toChannelId: '7e78fa4a27db55df2955fb2be54162d01168744ad45a6539172a6dd6e6139c84', toChannelAlias: 'ion.radar.tech4', timestamp: 1596389687075, timestampStr: "02/AUG/2020 17:34" + // }); + // this.paymentJSONArr[5].parts.push({ + // id: '37b609a5-f0f1-474e-9e5d-d7783b48702g', amount: 25000, feesPaid: 19, toChannelId: '7e78fa4a27db55df2955fb2be54162d01168744ad45a6539172a6dd6e6139c83', toChannelAlias: 'ion.radar.tech5', timestamp: 1596389707075, timestampStr: "02/AUG/2020 17:35" // }); // } - this.payments.data = this.paymentJSONArr; - this.payments.sort = this.sort; - this.payments.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; - this.payments.paginator = this.paginator; + // this.paymentJSONArr = this.paymentJSONArr.splice(2, 5); + // FOR MPP TESTING END + this.loadPaymentsTable(this.paymentJSONArr); setTimeout(() => { this.flgAnimate = false; }, 3000); if (this.flgLoading[0] !== 'error') { this.flgLoading[0] = (this.paymentJSONArr) ? false : true; @@ -122,7 +133,39 @@ export class ECLLightningPaymentsComponent implements OnInit, OnDestroy { } - onSendPayment() { + ngAfterViewInit() { + this.loadPaymentsTable(this.paymentJSONArr); + } + + loadPaymentsTable(payments: PaymentSent[]) { + this.payments = new MatTableDataSource([...payments]); + this.payments.sort = this.sort; + this.payments.sortingDataAccessor = (data: any, sortHeaderId: string) => { + switch (sortHeaderId) { + case 'firstPartTimestamp': + this.commonService.sortByKey(data.parts, 'timestamp', 'number', this.sort.direction); + return data.firstPartTimestamp; + + case 'id': + this.commonService.sortByKey(data.parts, 'id', 'string', this.sort.direction); + return data.id; + + case 'recipientNodeAlias': + this.commonService.sortByKey(data.parts, 'toChannelAlias', 'string', this.sort.direction); + return data.recipientNodeAlias; + + case 'recipientAmount': + this.commonService.sortByKey(data.parts, 'amount', 'number', this.sort.direction); + return data.recipientAmount; + + default: + return (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; + } + } + this.payments.paginator = this.paginator; + } + + onSendPayment():boolean|void { if(!this.paymentRequest) { return true; } if (this.paymentDecoded.timestamp) { this.sendPayment(); @@ -242,16 +285,16 @@ export class ECLLightningPaymentsComponent implements OnInit, OnDestroy { this.form.resetForm(); } - is_group(index: number, payment: PaymentSent) { + is_group(index: number, payment: PaymentSent):boolean { return payment.parts && payment.parts.length > 1; } onPaymentClick(selPayment: PaymentSent) { if (selPayment.paymentHash && selPayment.paymentHash.trim() !== '') { - this.dataService.decodePayment(selPayment.paymentHash, false) + this.dataService.decodePayments(selPayment.paymentHash) .pipe(take(1)) .subscribe(sentPaymentInfo => { - this.showPaymentView(selPayment, sentPaymentInfo); + this.showPaymentView(selPayment, (sentPaymentInfo.length && sentPaymentInfo.length > 0) ? sentPaymentInfo[0] : []); }, (error) => { this.showPaymentView(selPayment, []); }); @@ -270,7 +313,7 @@ export class ECLLightningPaymentsComponent implements OnInit, OnDestroy { onPartClick(selPart: PaymentSentPart, selPayment: PaymentSent) { if (selPayment.paymentHash && selPayment.paymentHash.trim() !== '') { - this.dataService.decodePayment(selPayment.paymentHash, false) + this.dataService.decodePayments(selPayment.paymentHash) .pipe(take(1)) .subscribe(sentPaymentInfo => { this.showPartView(selPart, selPayment, sentPaymentInfo); @@ -302,8 +345,8 @@ export class ECLLightningPaymentsComponent implements OnInit, OnDestroy { }})); } - applyFilter(selFilter: string) { - this.payments.filter = selFilter; + applyFilter(selFilter: any) { + this.payments.filter = selFilter.value; } onDownloadCSV() { diff --git a/src/app/eclair/transactions/query-routes/query-routes.component.html b/src/app/eclair/transactions/query-routes/query-routes.component.html index b8db406a..0df819ee 100644 --- a/src/app/eclair/transactions/query-routes/query-routes.component.html +++ b/src/app/eclair/transactions/query-routes/query-routes.component.html @@ -9,7 +9,7 @@ Destination Node ID is required. - + Amount is required.
@@ -23,7 +23,7 @@ Transaction Route
-
+
diff --git a/src/app/eclair/transactions/query-routes/query-routes.component.ts b/src/app/eclair/transactions/query-routes/query-routes.component.ts index 0bb1dd07..2d3c9a75 100644 --- a/src/app/eclair/transactions/query-routes/query-routes.component.ts +++ b/src/app/eclair/transactions/query-routes/query-routes.component.ts @@ -21,13 +21,13 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; styleUrls: ['./query-routes.component.scss'] }) export class ECLQueryRoutesComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild('queryRoutesForm', { static: false }) form: any; + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild('queryRoutesForm', { static: true }) form: any; public nodeId = ''; - public amount = null; + public amount:number = 0; public qrHops: any; public flgSticky = false; - public displayedColumns = []; + public displayedColumns: any[] = []; public flgLoading: Array = [false]; // 0: peers public faRoute = faRoute; public faExclamationTriangle = faExclamationTriangle; @@ -66,11 +66,11 @@ export class ECLQueryRoutesComponent implements OnInit, OnDestroy { this.flgLoading[0] = 'error'; } this.qrHops.sort = this.sort; - this.qrHops.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.qrHops.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; }); } - onQueryRoutes() { + onQueryRoutes():boolean|void { if(!this.nodeId || !this.amount) { return true; } this.qrHops.data = []; this.flgLoading[0] = true; @@ -79,7 +79,7 @@ export class ECLQueryRoutesComponent implements OnInit, OnDestroy { resetData() { this.nodeId = ''; - this.amount = null; + this.amount = 0; this.flgLoading[0] = false; this.qrHops.data = []; this.form.resetForm(); diff --git a/src/app/eclair/transactions/send-payment-modal/send-payment.component.ts b/src/app/eclair/transactions/send-payment-modal/send-payment.component.ts index 2245afa3..74226678 100644 --- a/src/app/eclair/transactions/send-payment-modal/send-payment.component.ts +++ b/src/app/eclair/transactions/send-payment-modal/send-payment.component.ts @@ -26,7 +26,7 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; styleUrls: ['./send-payment.component.scss'], }) export class ECLLightningSendPaymentsComponent implements OnInit, OnDestroy { - @ViewChild('paymentReq', { static: true }) paymentReq: NgModel; + @ViewChild('paymentReq', { static: false }) paymentReq: NgModel; public faExclamationTriangle = faExclamationTriangle; public selNode: SelNodeChild = {}; public paymentDecoded: PayRequest = {}; @@ -67,7 +67,7 @@ export class ECLLightningSendPaymentsComponent implements OnInit, OnDestroy { }); } - onSendPayment() { + onSendPayment():boolean|void { if(!this.paymentRequest) { return true; } if (this.paymentDecoded.timestamp) { this.sendPayment(); diff --git a/src/app/eclair/transactions/transactions.component.html b/src/app/eclair/transactions/transactions.component.html index befa03d4..79fc7ea3 100644 --- a/src/app/eclair/transactions/transactions.component.html +++ b/src/app/eclair/transactions/transactions.component.html @@ -1,4 +1,4 @@ -
+
Lightning Balance
@@ -9,18 +9,19 @@
-
+
Lightning Transactions
- - - - - + +
+ +
diff --git a/src/app/eclair/transactions/transactions.component.ts b/src/app/eclair/transactions/transactions.component.ts index 3986b8f1..5475753a 100644 --- a/src/app/eclair/transactions/transactions.component.ts +++ b/src/app/eclair/transactions/transactions.component.ts @@ -1,6 +1,7 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; -import { takeUntil } from 'rxjs/operators'; +import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { faExchangeAlt, faChartPie } from '@fortawesome/free-solid-svg-icons'; @@ -18,13 +19,22 @@ export class ECLTransactionsComponent implements OnInit, OnDestroy { faChartPie = faChartPie; currencyUnits = []; balances = [{title: 'Local Capacity', dataValue: 0, tooltip: 'Amount you can send'}, {title: 'Remote Capacity', dataValue: 0, tooltip: 'Amount you can receive'}]; + public links = [{link: 'payments', name: 'Payments'}, {link: 'invoices', name: 'Invoices'}, {link: 'queryroutes', name: 'Query Routes'}]; + public activeLink = this.links[0].link; private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; - constructor(private logger: LoggerService, private store: Store) {} + constructor(private logger: LoggerService, private store: Store, private router: Router) {} ngOnInit() { + let linkFound = this.links.find(link => this.router.url.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + let linkFound = this.links.find(link => value.urlAfterRedirects.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + }); this.store.select('ecl') - .pipe(takeUntil(this.unSubs[0])) + .pipe(takeUntil(this.unSubs[1])) .subscribe((rtlStore) => { this.currencyUnits = rtlStore.nodeSettings.currencyUnits; if(rtlStore.nodeSettings.userPersona === UserPersonaEnum.OPERATOR) { diff --git a/src/app/lnd/backup/backup.component.html b/src/app/lnd/backup/backup.component.html index bc8cdb3c..7889ac62 100644 --- a/src/app/lnd/backup/backup.component.html +++ b/src/app/lnd/backup/backup.component.html @@ -1,14 +1,16 @@ -
+
Channels Backup
- - - - + +
+ +
diff --git a/src/app/lnd/backup/backup.component.ts b/src/app/lnd/backup/backup.component.ts index c34b3314..fb21eb62 100644 --- a/src/app/lnd/backup/backup.component.ts +++ b/src/app/lnd/backup/backup.component.ts @@ -1,4 +1,7 @@ -import { Component } from '@angular/core'; +import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; +import { Subject } from 'rxjs'; +import { takeUntil, filter } from 'rxjs/operators'; import { faDownload } from '@fortawesome/free-solid-svg-icons'; @Component({ @@ -6,9 +9,29 @@ import { faDownload } from '@fortawesome/free-solid-svg-icons'; templateUrl: './backup.component.html', styleUrls: ['./backup.component.scss'] }) -export class BackupComponent { +export class BackupComponent implements OnInit, OnDestroy { public faDownload = faDownload; + public links = [{link: 'bckup', name: 'Backup'}, {link: 'restore', name: 'Restore'}]; + public activeLink = this.links[0].link; + private unSubs: Array> = [new Subject(), new Subject()]; - constructor() {} + constructor(private router: Router) {} + + ngOnInit() { + let linkFound = this.links.find(link => this.router.url.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + let linkFound = this.links.find(link => value.urlAfterRedirects.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + }); + } + + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } } diff --git a/src/app/lnd/backup/channel-backup-table/channel-backup-table.component.html b/src/app/lnd/backup/channel-backup-table/channel-backup-table.component.html index a343fa43..41aee88a 100644 --- a/src/app/lnd/backup/channel-backup-table/channel-backup-table.component.html +++ b/src/app/lnd/backup/channel-backup-table/channel-backup-table.component.html @@ -20,10 +20,10 @@ Backups
- +
-
+
@@ -33,7 +33,7 @@
Actions -
+
View Info diff --git a/src/app/lnd/backup/channel-backup-table/channel-backup-table.component.ts b/src/app/lnd/backup/channel-backup-table/channel-backup-table.component.ts index f0c076a9..8dff79cb 100644 --- a/src/app/lnd/backup/channel-backup-table/channel-backup-table.component.ts +++ b/src/app/lnd/backup/channel-backup-table/channel-backup-table.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from '@angular/core'; import { Subject } from 'rxjs'; import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; @@ -11,7 +11,7 @@ import { MatSort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/table'; import { SelNodeChild } from '../../../shared/models/RTLconfig'; import { Channel } from '../../../shared/models/lndModels'; -import { PAGE_SIZE, PAGE_SIZE_OPTIONS, getPaginatorLabel, AlertTypeEnum, DataTypeEnum, ScreenSizeEnum } from '../../../shared/services/consts-enums-functions'; +import { PAGE_SIZE, PAGE_SIZE_OPTIONS, getPaginatorLabel, ScreenSizeEnum } from '../../../shared/services/consts-enums-functions'; import { LoggerService } from '../../../shared/services/logger.service'; import { CommonService } from '../../../shared/services/common.service'; @@ -28,9 +28,9 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Channels') } ] }) -export class ChannelBackupTableComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; +export class ChannelBackupTableComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public faInfoCircle = faInfoCircle; public faExclamationTriangle = faExclamationTriangle; public faArchive = faArchive; @@ -39,6 +39,7 @@ export class ChannelBackupTableComponent implements OnInit, OnDestroy { public selNode: SelNodeChild = {}; public displayedColumns = ['channel_point', 'actions']; public selectedChannel: Channel; + public channelsData = []; public channels: any; public flgLoading: Array = [true]; // 0: channels public flgSticky = false; @@ -60,24 +61,10 @@ export class ChannelBackupTableComponent implements OnInit, OnDestroy { this.flgLoading[0] = 'error'; } }); - this.channels = new MatTableDataSource([]); - this.channels.data = []; - if ( rtlStore.allChannels) { - this.channels = new MatTableDataSource([...rtlStore.allChannels]); - this.channels.data = rtlStore.allChannels; + this.channelsData = rtlStore.allChannels; + if (this.channelsData.length > 0) { + this.loadBackupTable(this.channelsData); } - this.channels.sort = this.sort; - this.channels.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; - this.channels.paginator = this.paginator; - this.channels.filterPredicate = (channel: Channel, fltr: string) => { - const newChannel = ((channel.active) ? 'active' : 'inactive') + (channel.channel_point ? channel.channel_point : '') + (channel.chan_id ? channel.chan_id : '') + - (channel.remote_pubkey ? channel.remote_pubkey : '') + (channel.remote_alias ? channel.remote_alias : '') + - (channel.capacity ? channel.capacity : '') + (channel.local_balance ? channel.local_balance : '') + - (channel.remote_balance ? channel.remote_balance : '') + (channel.total_satoshis_sent ? channel.total_satoshis_sent : '') + - (channel.total_satoshis_received ? channel.total_satoshis_received : '') + (channel.commit_fee ? channel.commit_fee : '') + - (channel.private ? 'private' : 'public'); - return newChannel.includes(fltr); - }; if (this.flgLoading[0] !== 'error') { this.flgLoading[0] = false; } @@ -96,6 +83,12 @@ export class ChannelBackupTableComponent implements OnInit, OnDestroy { }); } + ngAfterViewInit() { + if (this.channelsData.length > 0) { + this.loadBackupTable(this.channelsData); + } + } + onBackupChannels(selChannel: Channel) { this.store.dispatch(new RTLActions.OpenSpinner('Backup Channels...')); this.store.dispatch(new LNDActions.BackupChannels({channelPoint: (selChannel.channel_point) ? selChannel.channel_point : 'ALL', showMessage: ''})); @@ -109,7 +102,7 @@ export class ChannelBackupTableComponent implements OnInit, OnDestroy { onDownloadBackup(selChannel: Channel) { this.selectedChannel = selChannel; this.store.dispatch(new RTLActions.OpenSpinner('Downloading Backup File...')); - this.store.dispatch(new RTLActions.FetchFile({channelPoint: selChannel.channel_point ? selChannel.channel_point : 'ALL'})); + this.store.dispatch(new RTLActions.FetchFile({channelPoint: selChannel.channel_point ? selChannel.channel_point : 'all'})); } onChannelClick(selChannel: Channel, event: any) { @@ -120,8 +113,24 @@ export class ChannelBackupTableComponent implements OnInit, OnDestroy { }})); } - applyFilter(selFilter: string) { - this.channels.filter = selFilter; + applyFilter(selFilter: any) { + this.channels.filter = selFilter.value; + } + + loadBackupTable(channels: any[]) { + this.channels = channels ? new MatTableDataSource([...channels]) : new MatTableDataSource([]); + this.channels.sort = this.sort; + this.channels.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; + this.channels.paginator = this.paginator; + this.channels.filterPredicate = (channel: Channel, fltr: string) => { + const newChannel = ((channel.active) ? 'active' : 'inactive') + (channel.channel_point ? channel.channel_point : '') + (channel.chan_id ? channel.chan_id : '') + + (channel.remote_pubkey ? channel.remote_pubkey : '') + (channel.remote_alias ? channel.remote_alias : '') + + (channel.capacity ? channel.capacity : '') + (channel.local_balance ? channel.local_balance : '') + + (channel.remote_balance ? channel.remote_balance : '') + (channel.total_satoshis_sent ? channel.total_satoshis_sent : '') + + (channel.total_satoshis_received ? channel.total_satoshis_received : '') + (channel.commit_fee ? channel.commit_fee : '') + + (channel.private ? 'private' : 'public'); + return newChannel.includes(fltr); + }; } ngOnDestroy() { diff --git a/src/app/lnd/backup/channel-restore-table/channel-restore-table.component.html b/src/app/lnd/backup/channel-restore-table/channel-restore-table.component.html index 32c0a886..73171cb6 100644 --- a/src/app/lnd/backup/channel-restore-table/channel-restore-table.component.html +++ b/src/app/lnd/backup/channel-restore-table/channel-restore-table.component.html @@ -15,10 +15,10 @@
- +
-
+
diff --git a/src/app/lnd/backup/channel-restore-table/channel-restore-table.component.ts b/src/app/lnd/backup/channel-restore-table/channel-restore-table.component.ts index 64717d93..606685cd 100644 --- a/src/app/lnd/backup/channel-restore-table/channel-restore-table.component.ts +++ b/src/app/lnd/backup/channel-restore-table/channel-restore-table.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, ViewChild } from '@angular/core'; +import { AfterViewInit, Component, OnDestroy, OnInit, ViewChild } from '@angular/core'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; @@ -25,14 +25,15 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Channels') } ] }) -export class ChannelRestoreTableComponent implements OnInit { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; +export class ChannelRestoreTableComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public pageSize = PAGE_SIZE; public pageSizeOptions = PAGE_SIZE_OPTIONS; public selNode: SelNodeChild = {}; public displayedColumns = ['channel_point', 'actions']; public selChannel: Channel; + public channelsData = []; public channels: any; public allRestoreExists = false; public flgLoading: Array = [true]; // 0: channels @@ -57,11 +58,10 @@ export class ChannelRestoreTableComponent implements OnInit { .pipe(takeUntil(this.unSubs[0])) .subscribe((resRCList) => { this.allRestoreExists = resRCList.all_restore_exists; - this.channels = new MatTableDataSource([...resRCList.files]); - this.channels.data = resRCList.files; - this.channels.sort = this.sort; - this.channels.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; - this.channels.paginator = this.paginator; + this.channelsData = resRCList.files; + if (this.channelsData.length > 0) { + this.loadRestoreTable(this.channelsData); + } if (this.flgLoading[0] !== 'error' || (resRCList && resRCList.files)) { this.flgLoading[0] = false; } @@ -69,13 +69,26 @@ export class ChannelRestoreTableComponent implements OnInit { }); } + ngAfterViewInit() { + if (this.channelsData.length > 0) { + this.loadRestoreTable(this.channelsData); + } + } + onRestoreChannels(selChannel: Channel) { this.store.dispatch(new RTLActions.OpenSpinner('Restoring Channels...')); this.store.dispatch(new LNDActions.RestoreChannels({channelPoint: (selChannel.channel_point) ? selChannel.channel_point : 'ALL'})); } - applyFilter(selFilter: string) { - this.channels.filter = selFilter; + applyFilter(selFilter: any) { + this.channels.filter = selFilter.value; + } + + loadRestoreTable(channels: any[]) { + this.channels = new MatTableDataSource([...channels]); + this.channels.sort = this.sort; + this.channels.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; + this.channels.paginator = this.paginator; } ngOnDestroy() { diff --git a/src/app/lnd/home/channel-capacity-info/channel-capacity-info.component.html b/src/app/lnd/home/channel-capacity-info/channel-capacity-info.component.html index e98e88b7..c4bb71f1 100644 --- a/src/app/lnd/home/channel-capacity-info/channel-capacity-info.component.html +++ b/src/app/lnd/home/channel-capacity-info/channel-capacity-info.component.html @@ -12,7 +12,7 @@
-
+
{{(channel.remote_alias || channel.remote_pubkey) | slice:0:24}}{{(channel.remote_alias || channel.remote_pubkey).length > 25 ? '...' : ''}} diff --git a/src/app/lnd/home/channel-capacity-info/channel-capacity-info.component.ts b/src/app/lnd/home/channel-capacity-info/channel-capacity-info.component.ts index 0795e9c5..5fbbd7ee 100644 --- a/src/app/lnd/home/channel-capacity-info/channel-capacity-info.component.ts +++ b/src/app/lnd/home/channel-capacity-info/channel-capacity-info.component.ts @@ -19,7 +19,7 @@ export class ChannelCapacityInfoComponent { constructor(private router: Router) {} goToChannels() { - this.router.navigateByUrl('/lnd/peerschannels'); + this.router.navigateByUrl('/lnd/connections'); } } diff --git a/src/app/lnd/home/channel-liquidity-info/channel-liquidity-info.component.html b/src/app/lnd/home/channel-liquidity-info/channel-liquidity-info.component.html index 83e9b96e..b0fa3bc8 100644 --- a/src/app/lnd/home/channel-liquidity-info/channel-liquidity-info.component.html +++ b/src/app/lnd/home/channel-liquidity-info/channel-liquidity-info.component.html @@ -1,22 +1,22 @@ -
+
Total Capacity {{totalLiquidity | number}} Sats
-
-
-
- {{(channel.remote_alias || channel.remote_pubkey) | slice:0:24}}{{(channel.remote_alias || channel.remote_pubkey).length > 25 ? '...' : ''}} -
- Capacity: {{channel.remote_balance || 0 | number}} Sats - Capacity: {{channel.local_balance || 0 | number}} Sats - +
+
+ {{(channel.remote_alias || channel.remote_pubkey) | slice:0:24}}{{(channel.remote_alias || channel.remote_pubkey).length > 25 ? '...' : ''}} +
+ Capacity: {{channel.remote_balance || 0 | number}} Sats +
+ Capacity: {{channel.local_balance || 0 | number}} Sats +
- -
+ +
diff --git a/src/app/lnd/home/channel-liquidity-info/channel-liquidity-info.component.ts b/src/app/lnd/home/channel-liquidity-info/channel-liquidity-info.component.ts index 39a2460b..febff063 100644 --- a/src/app/lnd/home/channel-liquidity-info/channel-liquidity-info.component.ts +++ b/src/app/lnd/home/channel-liquidity-info/channel-liquidity-info.component.ts @@ -4,10 +4,11 @@ import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; -import { SwapTypeEnum } from '../../../shared/services/consts-enums-functions'; +import { ScreenSizeEnum, SwapTypeEnum } from '../../../shared/services/consts-enums-functions'; import { Channel } from '../../../shared/models/lndModels'; import { LoopModalComponent } from '../../loop/loop-modal/loop-modal.component'; import { LoopService } from '../../../shared/services/loop.service'; +import { CommonService } from '../../../shared/services/common.service'; import * as fromRTLReducer from '../../../store/rtl.reducers'; import * as RTLActions from '../../../store/rtl.actions'; @@ -23,11 +24,14 @@ export class ChannelLiquidityInfoComponent implements OnInit, OnDestroy { @Input() allChannels: Channel[]; public showLoop: boolean; private targetConf = 6; + public screenSize = ''; + public screenSizeEnum = ScreenSizeEnum; private unSubs: Array> = [new Subject(), new Subject()]; - constructor(private router: Router, private loopService: LoopService, private store: Store) {} + constructor(private router: Router, private loopService: LoopService, private commonService: CommonService, private store: Store) {} ngOnInit() { + this.screenSize = this.commonService.getScreenSize(); this.store.select('lnd') .pipe(takeUntil(this.unSubs[0])) .subscribe((rtlStore) => { @@ -36,7 +40,7 @@ export class ChannelLiquidityInfoComponent implements OnInit, OnDestroy { } goToChannels() { - this.router.navigateByUrl('/lnd/peerschannels'); + this.router.navigateByUrl('/lnd/connections'); } onLoopOut(channel: Channel) { diff --git a/src/app/lnd/home/home.component.html b/src/app/lnd/home/home.component.html index 91051c47..cfb0ef11 100644 --- a/src/app/lnd/home/home.component.html +++ b/src/app/lnd/home/home.component.html @@ -1,25 +1,30 @@
-
+
{{!flgLoading[0] ? 'Welcome ' + information.alias + '! Your node is up and running.' : 'Error! Please check the server connection.'}}
- + - + - - - {{card.title}} - - - - - + +
+ + {{card.title}} +
+
+ + + + + + +
- +
@@ -34,45 +39,50 @@
-
+
Welcome {{information.alias}}! Your node is up and running.
- + - + - - - {{card.title}} - - - - + +
+ + {{card.title}} +
+
+ + + + +
- +
- + - - + + - - + + - +

Error! Unable to find information!

diff --git a/src/app/lnd/home/home.component.scss b/src/app/lnd/home/home.component.scss index b966f638..e69de29b 100644 --- a/src/app/lnd/home/home.component.scss +++ b/src/app/lnd/home/home.component.scss @@ -1,17 +0,0 @@ -.dashboard-card { - position: absolute; - top: 1rem; - left: 1rem; - right: 1rem; - bottom: 1rem; -} - -.more-button { - position: absolute; - top: 7px; - right: 7px; -} - -.dashboard-card-content { - text-align: left; -} diff --git a/src/app/lnd/home/home.component.ts b/src/app/lnd/home/home.component.ts index d57633cd..c45f7816 100644 --- a/src/app/lnd/home/home.component.ts +++ b/src/app/lnd/home/home.component.ts @@ -16,6 +16,16 @@ import { SelNodeChild } from '../../shared/models/RTLconfig'; import * as LNDActions from '../store/lnd.actions'; import * as fromRTLReducer from '../../store/rtl.reducers'; +export interface Tile { + id: string; + title: string; + cols: number; + rows: number; + goTo?: string; + link?: string; + icon?: any; +} + @Component({ selector: 'rtl-home', templateUrl: './home.component.html', @@ -34,7 +44,7 @@ export class HomeComponent implements OnInit, OnDestroy { public userPersonaEnum = UserPersonaEnum; public activeChannels = 0; public inactiveChannels = 0; - public channelBalances = {localBalance: 0, remoteBalance: 0, balancedness: '0'}; + public channelBalances = {localBalance: 0, remoteBalance: 0, balancedness: 0}; public selNode: SelNodeChild = {}; public showLoop = false; public fees: Fees; @@ -47,8 +57,8 @@ export class HomeComponent implements OnInit, OnDestroy { public allOutboundChannels: Channel[] = []; public totalInboundLiquidity = 0; public totalOutboundLiquidity = 0; - public operatorCards = []; - public merchantCards = []; + public operatorCards: Tile[] = []; + public merchantCards: Tile[] = []; public screenSize = ''; public operatorCardHeight = '330px'; public merchantCardHeight = '65px'; @@ -59,48 +69,70 @@ export class HomeComponent implements OnInit, OnDestroy { constructor(private logger: LoggerService, private store: Store, private actions$: Actions, private commonService: CommonService, private router: Router) { this.screenSize = this.commonService.getScreenSize(); - if(this.screenSize === ScreenSizeEnum.XS) { - this.operatorCards = [ - { id: 'node', icon: this.faServer, title: 'Node Information', cols: 10, rows: 1 }, - { id: 'balance', goTo: 'On-Chain', link: '/lnd/onchain', icon: this.faChartPie, title: 'Balances', cols: 10, rows: 1 }, - { id: 'fee', goTo: 'Routing', link: '/lnd/routing', icon: this.faBolt, title: 'Routing Fee', cols: 10, rows: 1 }, - { id: 'status', goTo: 'Channels', link: '/lnd/peerschannels', icon: this.faNetworkWired, title: 'Channels', cols: 10, rows: 1 }, - { id: 'capacity', goTo: 'Channels', link: '/lnd/peerschannels', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 10, rows: 2 } - ]; - this.merchantCards = [ - { id: 'balance', goTo: 'On-Chain', link: '/lnd/onchain', icon: this.faChartPie, title: 'Balances', cols: 6, rows: 4 }, - { id: 'transactions', goTo: 'Transactions', link: '/lnd/transactions', title: '', cols: 6, rows: 6 }, - { id: 'inboundLiq', goTo: 'Channels', link: '/lnd/peerschannels', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 6, rows: 8 }, - { id: 'outboundLiq', goTo: 'Channels', link: '/lnd/peerschannels', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 6, rows: 8 } - ]; - } else if(this.screenSize === ScreenSizeEnum.SM || this.screenSize === ScreenSizeEnum.MD) { - this.operatorCards = [ - { id: 'node', icon: this.faServer, title: 'Node Information', cols: 5, rows: 1 }, - { id: 'balance', goTo: 'On-Chain', link: '/lnd/onchain', icon: this.faChartPie, title: 'Balances', cols: 5, rows: 1 }, - { id: 'fee', goTo: 'Routing', link: '/lnd/routing', icon: this.faBolt, title: 'Routing Fee', cols: 5, rows: 1 }, - { id: 'status', goTo: 'Channels', link: '/lnd/peerschannels', icon: this.faNetworkWired, title: 'Channels', cols: 5, rows: 1 }, - { id: 'capacity', goTo: 'Channels', link: '/lnd/peerschannels', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 10, rows: 2 } - ]; - this.merchantCards = [ - { id: 'balance', goTo: 'On-Chain', link: '/lnd/onchain', icon: this.faChartPie, title: 'Balances', cols: 3, rows: 4 }, - { id: 'transactions', goTo: 'Transactions', link: '/lnd/transactions', title: '', cols: 3, rows: 4 }, - { id: 'inboundLiq', goTo: 'Channels', link: '/lnd/peerschannels', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 3, rows: 8 }, - { id: 'outboundLiq', goTo: 'Channels', link: '/lnd/peerschannels', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 3, rows: 8 } - ]; - } else { - this.operatorCards = [ - { id: 'node', icon: this.faServer, title: 'Node Information', cols: 3, rows: 1 }, - { id: 'balance', goTo: 'On-Chain', link: '/lnd/onchain', icon: this.faChartPie, title: 'Balances', cols: 3, rows: 1 }, - { id: 'capacity', goTo: 'Channels', link: '/lnd/peerschannels', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 4, rows: 2 }, - { id: 'fee', goTo: 'Routing', link: '/lnd/routing', icon: this.faBolt, title: 'Routing Fee', cols: 3, rows: 1 }, - { id: 'status', goTo: 'Channels', link: '/lnd/peerschannels', icon: this.faNetworkWired, title: 'Channels', cols: 3, rows: 1 } - ]; - this.merchantCards = [ - { id: 'balance', goTo: 'On-Chain', link: '/lnd/onchain', icon: this.faChartPie, title: 'Balances', cols: 2, rows: 5 }, - { id: 'inboundLiq', goTo: 'Channels', link: '/lnd/peerschannels', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 2, rows: 10 }, - { id: 'outboundLiq', goTo: 'Channels', link: '/lnd/peerschannels', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 2, rows: 10 }, - { id: 'transactions', goTo: 'Transactions', link: '/lnd/transactions', title: '', cols: 2, rows: 5 } - ]; + switch (this.screenSize) { + case ScreenSizeEnum.XS: + this.operatorCards = [ + { id: 'node', icon: this.faServer, title: 'Node Information', cols: 10, rows: 1 }, + { id: 'balance', goTo: 'On-Chain', link: '/lnd/onchain', icon: this.faChartPie, title: 'Balances', cols: 10, rows: 1 }, + { id: 'fee', goTo: 'Routing', link: '/lnd/routing', icon: this.faBolt, title: 'Routing Fee', cols: 10, rows: 1 }, + { id: 'status', goTo: 'Channels', link: '/lnd/connections', icon: this.faNetworkWired, title: 'Channels', cols: 10, rows: 1 }, + { id: 'capacity', goTo: 'Channels', link: '/lnd/connections', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 10, rows: 2 } + ]; + this.merchantCards = [ + { id: 'balance', goTo: 'On-Chain', link: '/lnd/onchain', icon: this.faChartPie, title: 'Balances', cols: 6, rows: 4 }, + { id: 'transactions', goTo: 'Transactions', link: '/lnd/transactions', title: '', cols: 6, rows: 6 }, + { id: 'inboundLiq', goTo: 'Channels', link: '/lnd/connections', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 6, rows: 8 }, + { id: 'outboundLiq', goTo: 'Channels', link: '/lnd/connections', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 6, rows: 8 } + ]; + break; + + case ScreenSizeEnum.SM: + this.operatorCards = [ + { id: 'node', icon: this.faServer, title: 'Node Information', cols: 5, rows: 1 }, + { id: 'balance', goTo: 'On-Chain', link: '/lnd/onchain', icon: this.faChartPie, title: 'Balances', cols: 5, rows: 1 }, + { id: 'fee', goTo: 'Routing', link: '/lnd/routing', icon: this.faBolt, title: 'Routing Fee', cols: 5, rows: 1 }, + { id: 'status', goTo: 'Channels', link: '/lnd/connections', icon: this.faNetworkWired, title: 'Channels', cols: 5, rows: 1 }, + { id: 'capacity', goTo: 'Channels', link: '/lnd/connections', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 10, rows: 2 } + ]; + this.merchantCards = [ + { id: 'balance', goTo: 'On-Chain', link: '/lnd/onchain', icon: this.faChartPie, title: 'Balances', cols: 3, rows: 4 }, + { id: 'transactions', goTo: 'Transactions', link: '/lnd/transactions', title: '', cols: 3, rows: 4 }, + { id: 'inboundLiq', goTo: 'Channels', link: '/lnd/connections', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 3, rows: 8 }, + { id: 'outboundLiq', goTo: 'Channels', link: '/lnd/connections', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 3, rows: 8 } + ]; + break; + + case ScreenSizeEnum.MD: + this.operatorCards = [ + { id: 'node', icon: this.faServer, title: 'Node Information', cols: 3, rows: 1 }, + { id: 'balance', goTo: 'On-Chain', link: '/lnd/onchain', icon: this.faChartPie, title: 'Balances', cols: 3, rows: 1 }, + { id: 'capacity', goTo: 'Channels', link: '/lnd/connections', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 4, rows: 2 }, + { id: 'fee', goTo: 'Routing', link: '/lnd/routing', icon: this.faBolt, title: 'Routing Fee', cols: 3, rows: 1 }, + { id: 'status', goTo: 'Channels', link: '/lnd/connections', icon: this.faNetworkWired, title: 'Channels', cols: 3, rows: 1 } + ]; + this.merchantCards = [ + { id: 'balance', goTo: 'On-Chain', link: '/lnd/onchain', icon: this.faChartPie, title: 'Balances', cols: 2, rows: 5 }, + { id: 'inboundLiq', goTo: 'Channels', link: '/lnd/connections', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 2, rows: 10 }, + { id: 'outboundLiq', goTo: 'Channels', link: '/lnd/connections', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 2, rows: 10 }, + { id: 'transactions', goTo: 'Transactions', link: '/lnd/transactions', title: '', cols: 2, rows: 5 } + ]; + break; + + default: + this.operatorCards = [ + { id: 'node', icon: this.faServer, title: 'Node Information', cols: 3, rows: 1 }, + { id: 'balance', goTo: 'On-Chain', link: '/lnd/onchain', icon: this.faChartPie, title: 'Balances', cols: 3, rows: 1 }, + { id: 'capacity', goTo: 'Channels', link: '/lnd/connections', icon: this.faNetworkWired, title: 'Channels Capacity', cols: 4, rows: 2 }, + { id: 'fee', goTo: 'Routing', link: '/lnd/routing', icon: this.faBolt, title: 'Routing Fee', cols: 3, rows: 1 }, + { id: 'status', goTo: 'Channels', link: '/lnd/connections', icon: this.faNetworkWired, title: 'Channels', cols: 3, rows: 1 } + ]; + this.merchantCards = [ + { id: 'balance', goTo: 'On-Chain', link: '/lnd/onchain', icon: this.faChartPie, title: 'Balances', cols: 2, rows: 5 }, + { id: 'inboundLiq', goTo: 'Channels', link: '/lnd/connections', icon: this.faAngleDoubleDown, title: 'In-Bound Liquidity', cols: 2, rows: 10 }, + { id: 'outboundLiq', goTo: 'Channels', link: '/lnd/connections', icon: this.faAngleDoubleUp, title: 'Out-Bound Liquidity', cols: 2, rows: 10 }, + { id: 'transactions', goTo: 'Transactions', link: '/lnd/transactions', title: '', cols: 2, rows: 5 } + ]; + break; } } @@ -129,7 +161,7 @@ export class HomeComponent implements OnInit, OnDestroy { let local = (rtlStore.totalLocalBalance) ? +rtlStore.totalLocalBalance : 0; let remote = (rtlStore.totalRemoteBalance) ? +rtlStore.totalRemoteBalance : 0; let total = local + remote; - this.channelBalances = { localBalance: local, remoteBalance: remote, balancedness: (1 - Math.abs((local-remote)/total)).toFixed(3) }; + this.channelBalances = { localBalance: local, remoteBalance: remote, balancedness: +(1 - Math.abs((local-remote)/total)).toFixed(3) }; this.balances.lightning = rtlStore.totalLocalBalance; this.balances.total = this.balances.lightning + this.balances.onchain; this.balances = Object.assign({}, this.balances); diff --git a/src/app/lnd/home/node-info/node-info.component.ts b/src/app/lnd/home/node-info/node-info.component.ts index 3692cd5b..8582b4e9 100644 --- a/src/app/lnd/home/node-info/node-info.component.ts +++ b/src/app/lnd/home/node-info/node-info.component.ts @@ -9,7 +9,7 @@ import { CommonService } from '../../../shared/services/common.service'; }) export class NodeInfoComponent implements OnChanges { @Input() information: GetInfo; - @Input() showColorFieldSeparately: false; + @Input() showColorFieldSeparately: boolean; public chains: Array = ['']; constructor(private commonService: CommonService) { } diff --git a/src/app/lnd/lnd.module.ts b/src/app/lnd/lnd.module.ts index 24e876ae..7b9952fa 100644 --- a/src/app/lnd/lnd.module.ts +++ b/src/app/lnd/lnd.module.ts @@ -6,7 +6,7 @@ import { SharedModule } from '../shared/shared.module'; import { LNDRootComponent } from './lnd-root.component'; import { HomeComponent } from './home/home.component'; -import { PeersChannelsComponent } from './peers-channels/peers-channels.component'; +import { ConnectionsComponent } from './peers-channels/connections.component'; import { ChannelsTablesComponent } from './peers-channels/channels/channels-tables/channels-tables.component'; import { PeersComponent } from './peers-channels/peers/peers.component'; import { LightningInvoicesComponent } from './transactions/invoices/lightning-invoices.component'; @@ -22,6 +22,9 @@ import { BumpFeeComponent } from './peers-channels/channels/bump-fee-modal/bump- import { ChannelClosedTableComponent } from './peers-channels/channels/channels-tables/channel-closed-table/channel-closed-table.component'; import { TransactionsComponent } from './transactions/transactions.component'; import { LookupsComponent } from './lookups/lookups.component'; +import { ReportsComponent } from './reports/reports.component'; +import { FeeReportComponent } from './reports/fee/fee-report.component'; +import { TransactionsReportComponent } from './reports/transactions/transactions-report.component'; import { RoutingComponent } from './routing/routing.component'; import { ForwardingHistoryComponent } from './routing/forwarding-history/forwarding-history.component'; import { RoutingPeersComponent } from './routing/routing-peers/routing-peers.component'; @@ -47,6 +50,17 @@ import { ChannelLiquidityInfoComponent } from './home/channel-liquidity-info/cha import { NetworkInfoComponent } from './network-info/network-info.component'; import { LoopComponent } from './loop/loop.component'; import { SwapsComponent } from './loop/swaps/swaps.component'; +import { InvoiceInformationComponent } from './transactions/invoice-information-modal/invoice-information.component'; +import { ChannelRebalanceComponent } from './peers-channels/channels/channel-rebalance-modal/channel-rebalance.component'; +import { CloseChannelComponent } from './peers-channels/channels/close-channel-modal/close-channel.component'; +import { OpenChannelComponent } from './peers-channels/channels/open-channel-modal/open-channel.component'; +import { ChannelInformationComponent } from './peers-channels/channels/channel-information-modal/channel-information.component'; +import { OnChainSendModalComponent } from './on-chain/on-chain-send-modal/on-chain-send-modal.component'; +import { OnChainSendComponent } from './on-chain/on-chain-send/on-chain-send.component'; +import { LightningSendPaymentsComponent } from './transactions/send-payment-modal/send-payment.component'; +import { CreateInvoiceComponent } from './transactions/create-invoice-modal/create-invoice.component'; +import { ConnectPeerComponent } from './peers-channels/connect-peer/connect-peer.component'; +import { LoopModalComponent } from './loop/loop-modal/loop-modal.component'; import { LNDUnlockedGuard } from '../shared/services/auth.guard'; @@ -60,7 +74,7 @@ import { LNDUnlockedGuard } from '../shared/services/auth.guard'; LNDRootComponent, HomeComponent, PeersComponent, - PeersChannelsComponent, + ConnectionsComponent, LightningInvoicesComponent, WalletComponent, LightningPaymentsComponent, @@ -80,6 +94,9 @@ import { LNDUnlockedGuard } from '../shared/services/auth.guard'; SignVerifyMessageComponent, SignComponent, VerifyComponent, + ReportsComponent, + FeeReportComponent, + TransactionsReportComponent, QueryRoutesComponent, OnChainReceiveComponent, OnChainComponent, @@ -99,7 +116,18 @@ import { LNDUnlockedGuard } from '../shared/services/auth.guard'; ChannelLiquidityInfoComponent, NetworkInfoComponent, LoopComponent, - SwapsComponent + SwapsComponent, + InvoiceInformationComponent, + ChannelRebalanceComponent, + OpenChannelComponent, + ChannelInformationComponent, + LightningSendPaymentsComponent, + ConnectPeerComponent, + CloseChannelComponent, + CreateInvoiceComponent, + OnChainSendComponent, + OnChainSendModalComponent, + LoopModalComponent ], providers: [ LNDUnlockedGuard diff --git a/src/app/lnd/lnd.routing.ts b/src/app/lnd/lnd.routing.ts index 77739266..a1a866bc 100644 --- a/src/app/lnd/lnd.routing.ts +++ b/src/app/lnd/lnd.routing.ts @@ -3,16 +3,36 @@ import { ModuleWithProviders } from '@angular/core'; import { LNDRootComponent } from './lnd-root.component'; import { HomeComponent } from './home/home.component'; -import { PeersChannelsComponent } from './peers-channels/peers-channels.component'; +import { ConnectionsComponent } from './peers-channels/connections.component'; +import { PeersComponent } from './peers-channels/peers/peers.component'; +import { ChannelsTablesComponent } from './peers-channels/channels/channels-tables/channels-tables.component'; +import { ChannelOpenTableComponent } from './peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component'; +import { ChannelPendingTableComponent } from './peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component'; +import { ChannelClosedTableComponent } from './peers-channels/channels/channels-tables/channel-closed-table/channel-closed-table.component'; +import { ChannelActiveHTLCsTableComponent } from './peers-channels/channels/channels-tables/channel-active-htlcs-table/channel-active-htlcs-table.component'; import { WalletComponent } from './wallet/wallet.component'; import { TransactionsComponent } from './transactions/transactions.component'; +import { LightningPaymentsComponent } from './transactions/payments/lightning-payments.component'; +import { LightningInvoicesComponent } from './transactions/invoices/lightning-invoices.component'; +import { QueryRoutesComponent } from './transactions/query-routes/query-routes.component'; import { LookupsComponent } from './lookups/lookups.component'; import { RoutingComponent } from './routing/routing.component'; +import { ForwardingHistoryComponent } from './routing/forwarding-history/forwarding-history.component'; +import { RoutingPeersComponent } from './routing/routing-peers/routing-peers.component'; +import { ReportsComponent } from './reports/reports.component'; +import { FeeReportComponent } from './reports/fee/fee-report.component'; +import { TransactionsReportComponent } from './reports/transactions/transactions-report.component'; import { OnChainComponent } from './on-chain/on-chain.component'; +import { OnChainReceiveComponent } from './on-chain/on-chain-receive/on-chain-receive.component'; +import { OnChainSendComponent } from './on-chain/on-chain-send/on-chain-send.component'; import { NetworkInfoComponent } from './network-info/network-info.component'; import { LoopComponent } from './loop/loop.component'; import { BackupComponent } from './backup/backup.component'; +import { ChannelRestoreTableComponent } from './backup/channel-restore-table/channel-restore-table.component'; +import { ChannelBackupTableComponent } from './backup/channel-backup-table/channel-backup-table.component'; import { SignVerifyMessageComponent } from './sign-verify-message/sign-verify-message.component'; +import { SignComponent } from './sign-verify-message/sign/sign.component'; +import { VerifyComponent } from './sign-verify-message/verify/verify.component'; import { NotFoundComponent } from '../shared/components/not-found/not-found.component'; import { AuthGuard, LNDUnlockedGuard } from '../shared/services/auth.guard'; @@ -20,14 +40,52 @@ import { AuthGuard, LNDUnlockedGuard } from '../shared/services/auth.guard'; export const LndRoutes: Routes = [ { path: '', component: LNDRootComponent, children: [ - { path: 'wallet', component: WalletComponent, canActivate: [AuthGuard] }, + { path: '', pathMatch: 'full', redirectTo: 'home' }, { path: 'home', component: HomeComponent, canActivate: [LNDUnlockedGuard] }, - { path: 'onchain', component: OnChainComponent, canActivate: [LNDUnlockedGuard] }, - { path: 'peerschannels', component: PeersChannelsComponent, canActivate: [LNDUnlockedGuard] }, - { path: 'transactions', component: TransactionsComponent, canActivate: [LNDUnlockedGuard] }, - { path: 'signverify', component: SignVerifyMessageComponent, canActivate: [LNDUnlockedGuard] }, - { path: 'backup', component: BackupComponent, canActivate: [LNDUnlockedGuard] }, - { path: 'routing', component: RoutingComponent, canActivate: [LNDUnlockedGuard] }, + { path: 'wallet', component: WalletComponent, canActivate: [AuthGuard] }, + { path: 'onchain', component: OnChainComponent, canActivate: [LNDUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'receive/utxos' }, + { path: 'receive/:selTab', component: OnChainReceiveComponent, canActivate: [LNDUnlockedGuard] }, + { path: 'send/:selTab', component: OnChainSendComponent, data : {sweepAll : false}, canActivate: [LNDUnlockedGuard] }, + { path: 'sweep/:selTab', component: OnChainSendComponent, data : {sweepAll : true}, canActivate: [LNDUnlockedGuard] } + ] }, + { path: 'connections', component: ConnectionsComponent, canActivate: [LNDUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'channels' }, + { path: 'channels', component: ChannelsTablesComponent, canActivate: [LNDUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'open' }, + { path: 'open', component: ChannelOpenTableComponent, canActivate: [LNDUnlockedGuard] }, + { path: 'pending', component: ChannelPendingTableComponent, canActivate: [LNDUnlockedGuard] }, + { path: 'closed', component: ChannelClosedTableComponent, canActivate: [LNDUnlockedGuard] }, + { path: 'activehtlcs', component: ChannelActiveHTLCsTableComponent, canActivate: [LNDUnlockedGuard] } + ] }, + { path: 'peers', component: PeersComponent, data : {sweepAll : false}, canActivate: [LNDUnlockedGuard] } + ] }, + { path: 'transactions', component: TransactionsComponent, canActivate: [LNDUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'payments' }, + { path: 'payments', component: LightningPaymentsComponent, canActivate: [LNDUnlockedGuard] }, + { path: 'invoices', component: LightningInvoicesComponent, canActivate: [LNDUnlockedGuard] }, + { path: 'queryroutes', component: QueryRoutesComponent, canActivate: [LNDUnlockedGuard] } + ] }, + { path: 'messages', component: SignVerifyMessageComponent, canActivate: [LNDUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'sign' }, + { path: 'sign', component: SignComponent, canActivate: [LNDUnlockedGuard] }, + { path: 'verify', component: VerifyComponent, canActivate: [LNDUnlockedGuard] } + ] }, + { path: 'channelbackup', component: BackupComponent, canActivate: [LNDUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'bckup' }, + { path: 'bckup', component: ChannelBackupTableComponent, canActivate: [LNDUnlockedGuard] }, + { path: 'restore', component: ChannelRestoreTableComponent, canActivate: [LNDUnlockedGuard] } + ] }, + { path: 'routing', component: RoutingComponent, canActivate: [LNDUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'forwardinghistory' }, + { path: 'forwardinghistory', component: ForwardingHistoryComponent, canActivate: [LNDUnlockedGuard] }, + { path: 'peers', component: RoutingPeersComponent, canActivate: [LNDUnlockedGuard] } + ] }, + { path: 'reports', component: ReportsComponent, canActivate: [LNDUnlockedGuard], children: [ + { path: '', pathMatch: 'full', redirectTo: 'routingfees' }, + { path: 'routingfees', component: FeeReportComponent, canActivate: [LNDUnlockedGuard] }, + { path: 'transactions', component: TransactionsReportComponent, canActivate: [LNDUnlockedGuard] } + ] }, { path: 'lookups', component: LookupsComponent, canActivate: [LNDUnlockedGuard] }, { path: 'network', component: NetworkInfoComponent, canActivate: [LNDUnlockedGuard] }, { path: 'loop', component: LoopComponent, canActivate: [LNDUnlockedGuard] }, @@ -36,4 +94,4 @@ export const LndRoutes: Routes = [ ]} ]; -export const LNDRouting: ModuleWithProviders = RouterModule.forChild(LndRoutes); +export const LNDRouting: ModuleWithProviders = RouterModule.forChild(LndRoutes); diff --git a/src/app/lnd/lookups/lookups.component.html b/src/app/lnd/lookups/lookups.component.html index 1bf9b632..432c85b6 100644 --- a/src/app/lnd/lookups/lookups.component.html +++ b/src/app/lnd/lookups/lookups.component.html @@ -1,5 +1,5 @@
-
+
Graph Lookups
diff --git a/src/app/lnd/lookups/lookups.component.ts b/src/app/lnd/lookups/lookups.component.ts index 8678c87b..87205d4f 100644 --- a/src/app/lnd/lookups/lookups.component.ts +++ b/src/app/lnd/lookups/lookups.component.ts @@ -19,7 +19,7 @@ import { CommonService } from '../../shared/services/common.service'; styleUrls: ['./lookups.component.scss'] }) export class LookupsComponent implements OnInit, OnDestroy { - @ViewChild('form', { static: false }) form: any; + @ViewChild('form', { static: true }) form: any; public lookupKey = ''; public lookupValue = {}; public flgSetLookupValue = false; @@ -58,7 +58,7 @@ export class LookupsComponent implements OnInit, OnDestroy { }); } - onLookup() { + onLookup():boolean|void { if(!this.lookupKey) { return true; } this.flgSetLookupValue = false; this.lookupValue = {}; diff --git a/src/app/lnd/lookups/node-lookup/node-lookup.component.html b/src/app/lnd/lookups/node-lookup/node-lookup.component.html index 43858577..7333f077 100644 --- a/src/app/lnd/lookups/node-lookup/node-lookup.component.html +++ b/src/app/lnd/lookups/node-lookup/node-lookup.component.html @@ -29,7 +29,7 @@

Addresses

-
+
diff --git a/src/app/lnd/loop/loop-modal/loop-modal.component.html b/src/app/lnd/loop/loop-modal/loop-modal.component.html index 3971a301..61e7dabf 100644 --- a/src/app/lnd/loop/loop-modal/loop-modal.component.html +++ b/src/app/lnd/loop/loop-modal/loop-modal.component.html @@ -24,7 +24,7 @@
- + Range: {{minQuote.amount | number}}-{{maxQuote.amount | number}} Sats Amount is required. @@ -32,12 +32,12 @@ Amount must be less than or equal to {{maxQuote.amount | number}}. - + Confirmation target is required. Confirmation target must be a positive number. - + Percentage is required. Percentage must be a positive number. Percentage must be less than or equal to {{maxRoutingFeePercentage}}. @@ -53,8 +53,9 @@
{{quoteFormLabel}} +

closeLocal balance amount is insufficient for swap.

- +
@@ -81,7 +82,7 @@
{{loopDirectionCaption}} Status
- + {{(!loopStatus) ? ('Waiting for ' + loopDirectionCaption + ' request...') : (loopStatus.id_bytes) ? (loopDirectionCaption + ' request details') : (loopDirectionCaption + ' error details')}}{{(loopStatus && loopStatus?.id_bytes) ? 'check' : 'close'}} @@ -91,7 +92,7 @@
-

{{(loopStatus && loopStatus.error) ? (loopDirectionCaption + ' failed.') : (loopStatus && loopStatus.id_bytes && channel) ? (loopDirectionCaption + ' request placed successfully. Go to loop to check it\'s status.') : (loopDirectionCaption + ' request placed successfully.')}}

+

{{(loopStatus && loopStatus.error) ? (loopDirectionCaption + ' failed.') : (loopStatus && loopStatus.id_bytes && channel) ? (loopDirectionCaption + ' request placed successfully. You can check the status of the request on the \'Loop\' menu.') : (loopDirectionCaption + ' request placed successfully.')}}

diff --git a/src/app/lnd/loop/loop-modal/loop-modal.component.ts b/src/app/lnd/loop/loop-modal/loop-modal.component.ts index 85687d1b..05679cb9 100644 --- a/src/app/lnd/loop/loop-modal/loop-modal.component.ts +++ b/src/app/lnd/loop/loop-modal/loop-modal.component.ts @@ -50,11 +50,12 @@ export class LoopModalComponent implements OnInit, AfterViewInit, OnDestroy { public screenSizeEnum = ScreenSizeEnum; public animationDirection = 'forward'; public flgEditable = true; + public localBalanceToCompare = null; inputFormGroup: FormGroup; quoteFormGroup: FormGroup; addressFormGroup: FormGroup; statusFormGroup: FormGroup; - private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject(), new Subject(), new Subject()]; + private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject(), new Subject(), new Subject(), new Subject()]; constructor(public dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: LoopAlert, private store: Store, private loopService: LoopService, private formBuilder: FormBuilder, private decimalPipe: DecimalPipe, private logger: LoggerService, private router: Router, private commonService: CommonService) { } @@ -79,6 +80,11 @@ export class LoopModalComponent implements OnInit, AfterViewInit, OnDestroy { }); this.statusFormGroup = this.formBuilder.group({}); this.onFormValueChanges(); + this.store.select('lnd') + .pipe(takeUntil(this.unSubs[6])) + .subscribe((rtlStore) => { + this.localBalanceToCompare = (this.channel) ? +this.channel.local_balance : +rtlStore.totalLocalBalance; + }); } ngAfterViewInit() { @@ -113,7 +119,13 @@ export class LoopModalComponent implements OnInit, AfterViewInit, OnDestroy { this.addressFormGroup.setErrors({'Invalid': true}); } - onLoop() { + onValidateAmount() { + if (this.inputFormGroup.controls.amount.value <= this.localBalanceToCompare) { + this.stepper.next(); + } + } + + onLoop():boolean|void { if(!this.inputFormGroup.controls.amount.value || this.inputFormGroup.controls.amount.value < this.minQuote.amount || this.inputFormGroup.controls.amount.value > this.maxQuote.amount || !this.inputFormGroup.controls.sweepConfTarget.value || this.inputFormGroup.controls.sweepConfTarget.value < 2 || (this.direction === SwapTypeEnum.LOOP_OUT && (!this.inputFormGroup.controls.routingFeePercent.value || this.inputFormGroup.controls.routingFeePercent.value < 0 || this.inputFormGroup.controls.routingFeePercent.value > this.maxRoutingFeePercentage)) || (this.direction === SwapTypeEnum.LOOP_OUT && this.addressFormGroup.controls.addressType.value === 'external' && (!this.addressFormGroup.controls.address.value || this.addressFormGroup.controls.address.value.trim() === ''))) { return true; } this.flgEditable = false; this.stepper.selected.stepControl.setErrors(null); @@ -146,7 +158,7 @@ export class LoopModalComponent implements OnInit, AfterViewInit, OnDestroy { } } - onEstimateQuote() { + onEstimateQuote():boolean|void { if(!this.inputFormGroup.controls.amount.value || this.inputFormGroup.controls.amount.value < this.minQuote.amount || this.inputFormGroup.controls.amount.value > this.maxQuote.amount || !this.inputFormGroup.controls.sweepConfTarget.value || this.inputFormGroup.controls.sweepConfTarget.value < 2) { return true; } this.store.dispatch(new RTLActions.OpenSpinner('Getting Quotes...')); let swapPublicationDeadline = this.inputFormGroup.controls.fast.value ? 0 : new Date().getTime() + (30 * 60000); diff --git a/src/app/lnd/loop/loop-quote/loop-quote.component.html b/src/app/lnd/loop/loop-quote/loop-quote.component.html index 72c1f888..494f916f 100644 --- a/src/app/lnd/loop/loop-quote/loop-quote.component.html +++ b/src/app/lnd/loop/loop-quote/loop-quote.component.html @@ -1,7 +1,4 @@ - diff --git a/src/app/lnd/loop/loop.component.html b/src/app/lnd/loop/loop.component.html index 7a2d8bcf..d63ace64 100644 --- a/src/app/lnd/loop/loop.component.html +++ b/src/app/lnd/loop/loop.component.html @@ -1,4 +1,4 @@ -
+
Loop
diff --git a/src/app/lnd/loop/swaps/swaps.component.html b/src/app/lnd/loop/swaps/swaps.component.html index d1ca4e68..0a8ce345 100644 --- a/src/app/lnd/loop/swaps/swaps.component.html +++ b/src/app/lnd/loop/swaps/swaps.component.html @@ -5,11 +5,11 @@ {{swapCaption}} History
- +
-
+
Network
diff --git a/src/app/lnd/loop/swaps/swaps.component.ts b/src/app/lnd/loop/swaps/swaps.component.ts index 58e51668..d833ba2a 100644 --- a/src/app/lnd/loop/swaps/swaps.component.ts +++ b/src/app/lnd/loop/swaps/swaps.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnChanges, OnDestroy, ViewChild, Input } from '@angular/core'; +import { Component, OnInit, OnChanges, OnDestroy, ViewChild, Input, AfterViewInit } from '@angular/core'; import { Subject } from 'rxjs'; import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; @@ -26,14 +26,14 @@ import * as LNDActions from '../../store/lnd.actions'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Swaps') } ] }) -export class SwapsComponent implements OnInit, OnChanges, OnDestroy { +export class SwapsComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy { @Input() selectedSwapType: SwapTypeEnum = SwapTypeEnum.LOOP_OUT; - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public swapStateEnum = SwapStateEnum; public faHistory = faHistory; public swapCaption = 'Loop Out'; - public displayedColumns = []; + public displayedColumns: any[] = []; public listSwaps: any; public storedSwaps: SwapStatus[] = []; public filteredSwaps: SwapStatus[] = []; @@ -77,7 +77,9 @@ export class SwapsComponent implements OnInit, OnChanges, OnDestroy { if (rtlStore.loopSwaps) { this.storedSwaps = rtlStore.loopSwaps; this.filteredSwaps = this.storedSwaps.filter(swap => swap.type === this.selectedSwapType); - this.loadSwapsTable(this.filteredSwaps); + if (this.filteredSwaps.length > 0) { + this.loadSwapsTable(this.filteredSwaps); + } } if (this.flgLoading[0] !== 'error') { this.flgLoading[0] = (rtlStore.loopSwaps) ? false : true; @@ -87,6 +89,12 @@ export class SwapsComponent implements OnInit, OnChanges, OnDestroy { } + ngAfterViewInit() { + if (this.filteredSwaps.length > 0) { + this.loadSwapsTable(this.filteredSwaps); + } + } + ngOnChanges() { this.swapCaption = (this.selectedSwapType === SwapTypeEnum.LOOP_IN) ? 'Loop In' : 'Loop Out'; this.emptyTableMessage = 'No ' + this.swapCaption.toLowerCase() + ' swaps available.'; @@ -94,8 +102,8 @@ export class SwapsComponent implements OnInit, OnChanges, OnDestroy { this.loadSwapsTable(this.filteredSwaps); } - applyFilter(selFilter: string) { - this.listSwaps.filter = selFilter; + applyFilter(selFilter: any) { + this.listSwaps.filter = selFilter.value; } onSwapClick(selSwap: SwapStatus, event: any) { @@ -124,7 +132,7 @@ export class SwapsComponent implements OnInit, OnChanges, OnDestroy { loadSwapsTable(swaps) { this.listSwaps = new MatTableDataSource([...swaps]); this.listSwaps.sort = this.sort; - this.listSwaps.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.listSwaps.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.listSwaps.paginator = this.paginator; this.logger.info(this.listSwaps); } diff --git a/src/app/lnd/network-info/network-info.component.html b/src/app/lnd/network-info/network-info.component.html index 2c938705..1776570b 100644 --- a/src/app/lnd/network-info/network-info.component.html +++ b/src/app/lnd/network-info/network-info.component.html @@ -3,13 +3,13 @@
-
+
{{card.title}}
- +
@@ -22,13 +22,13 @@
-
+
Network
- +
diff --git a/src/app/lnd/on-chain/on-chain-receive/on-chain-receive.component.html b/src/app/lnd/on-chain/on-chain-receive/on-chain-receive.component.html index 2d6f6820..04240e4c 100644 --- a/src/app/lnd/on-chain/on-chain-receive/on-chain-receive.component.html +++ b/src/app/lnd/on-chain/on-chain-receive/on-chain-receive.component.html @@ -1,5 +1,5 @@
-
+
diff --git a/src/app/lnd/on-chain/on-chain-receive/on-chain-receive.component.ts b/src/app/lnd/on-chain/on-chain-receive/on-chain-receive.component.ts index be2ccbc6..a6ee6924 100644 --- a/src/app/lnd/on-chain/on-chain-receive/on-chain-receive.component.ts +++ b/src/app/lnd/on-chain/on-chain-receive/on-chain-receive.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit } from '@angular/core'; +import { Component } from '@angular/core'; import { take } from 'rxjs/operators'; import { Store } from '@ngrx/store'; @@ -16,15 +16,13 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; templateUrl: './on-chain-receive.component.html', styleUrls: ['./on-chain-receive.component.scss'] }) -export class OnChainReceiveComponent implements OnInit { +export class OnChainReceiveComponent { public addressTypes = ADDRESS_TYPES; public selectedAddressType: AddressType = ADDRESS_TYPES[0]; public newAddress = ''; constructor(private store: Store, private lndEffects: LNDEffects) {} - ngOnInit() {} - onGenerateAddress() { this.store.dispatch(new RTLActions.OpenSpinner('Getting New Address...')); this.store.dispatch(new LNDActions.GetNewAddress(this.selectedAddressType)); diff --git a/src/app/lnd/on-chain/on-chain-send-modal/on-chain-send.component.html b/src/app/lnd/on-chain/on-chain-send-modal/on-chain-send-modal.component.html similarity index 94% rename from src/app/lnd/on-chain/on-chain-send-modal/on-chain-send.component.html rename to src/app/lnd/on-chain/on-chain-send-modal/on-chain-send-modal.component.html index 654a0f4f..116fbe7c 100644 --- a/src/app/lnd/on-chain/on-chain-send-modal/on-chain-send.component.html +++ b/src/app/lnd/on-chain/on-chain-send-modal/on-chain-send-modal.component.html @@ -13,7 +13,7 @@ Bitcoin address is required. - + {{selAmountUnit}} Amount is required. @@ -31,11 +31,11 @@ - + Number of blocks is required. - + Fees is required.
@@ -86,11 +86,11 @@ - + Number of blocks is required. - + Fees is required.
diff --git a/src/app/lnd/on-chain/on-chain-send-modal/on-chain-send-modal.component.scss b/src/app/lnd/on-chain/on-chain-send-modal/on-chain-send-modal.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/lnd/on-chain/on-chain-send-modal/on-chain-send-modal.component.spec.ts b/src/app/lnd/on-chain/on-chain-send-modal/on-chain-send-modal.component.spec.ts new file mode 100644 index 00000000..72e2abd6 --- /dev/null +++ b/src/app/lnd/on-chain/on-chain-send-modal/on-chain-send-modal.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { OnChainSendModalComponent } from './on-chain-send-modal.component'; + +describe('OnChainSendModalComponent', () => { + let component: OnChainSendModalComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ OnChainSendModalComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(OnChainSendModalComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/lnd/on-chain/on-chain-send-modal/on-chain-send.component.ts b/src/app/lnd/on-chain/on-chain-send-modal/on-chain-send-modal.component.ts similarity index 93% rename from src/app/lnd/on-chain/on-chain-send-modal/on-chain-send.component.ts rename to src/app/lnd/on-chain/on-chain-send-modal/on-chain-send-modal.component.ts index 966d279b..c374417a 100644 --- a/src/app/lnd/on-chain/on-chain-send-modal/on-chain-send.component.ts +++ b/src/app/lnd/on-chain/on-chain-send-modal/on-chain-send-modal.component.ts @@ -26,12 +26,12 @@ import * as RTLActions from '../../../store/rtl.actions'; import * as fromRTLReducer from '../../../store/rtl.reducers'; @Component({ - selector: 'rtl-on-chain-send', - templateUrl: './on-chain-send.component.html', - styleUrls: ['./on-chain-send.component.scss'] + selector: 'rtl-on-chain-send-modal', + templateUrl: './on-chain-send-modal.component.html', + styleUrls: ['./on-chain-send-modal.component.scss'] }) -export class OnChainSendComponent implements OnInit, OnDestroy { - @ViewChild('form', { static: false }) form: any; +export class OnChainSendModalComponent implements OnInit, OnDestroy { + @ViewChild('form', { static: true }) form: any; @ViewChild('formSweepAll', { static: false }) formSweepAll: any; @ViewChild('stepper', { static: false }) stepper: MatVerticalStepper; public faExclamationTriangle = faExclamationTriangle; @@ -68,7 +68,7 @@ export class OnChainSendComponent implements OnInit, OnDestroy { confirmFormGroup: FormGroup; private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject(), new Subject()]; - constructor(public dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: OnChainSendFunds, private logger: LoggerService, private store: Store, private rtlEffects: RTLEffects, private commonService: CommonService, private decimalPipe: DecimalPipe, private snackBar: MatSnackBar, private actions$: Actions, private formBuilder: FormBuilder) {} + constructor(public dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: OnChainSendFunds, private logger: LoggerService, private store: Store, private rtlEffects: RTLEffects, private commonService: CommonService, private decimalPipe: DecimalPipe, private snackBar: MatSnackBar, private actions$: Actions, private formBuilder: FormBuilder) {} ngOnInit() { this.sweepAll = this.data.sweepAll; @@ -119,7 +119,7 @@ export class OnChainSendComponent implements OnInit, OnDestroy { } - onAuthenticate() { + onAuthenticate():boolean|void { if (!this.passwordFormGroup.controls.password.value) { return true; } this.flgValidated = false; this.store.dispatch(new RTLActions.IsAuthorized(sha256(this.passwordFormGroup.controls.password.value))); @@ -136,7 +136,7 @@ export class OnChainSendComponent implements OnInit, OnDestroy { }); } - onSendFunds() { + onSendFunds():boolean|void { if(this.invalidValues) { return true; } this.sendFundError = ''; let amount = this.transactionAmount ? this.transactionAmount : 0; diff --git a/src/app/lnd/on-chain/on-chain-send/on-chain-send.component.html b/src/app/lnd/on-chain/on-chain-send/on-chain-send.component.html new file mode 100644 index 00000000..6db44756 --- /dev/null +++ b/src/app/lnd/on-chain/on-chain-send/on-chain-send.component.html @@ -0,0 +1,5 @@ +
+
+ +
+
diff --git a/src/app/lnd/on-chain/on-chain-send/on-chain-send.component.scss b/src/app/lnd/on-chain/on-chain-send/on-chain-send.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/lnd/on-chain/on-chain-send-modal/on-chain-send.component.spec.ts b/src/app/lnd/on-chain/on-chain-send/on-chain-send.component.spec.ts similarity index 100% rename from src/app/lnd/on-chain/on-chain-send-modal/on-chain-send.component.spec.ts rename to src/app/lnd/on-chain/on-chain-send/on-chain-send.component.spec.ts diff --git a/src/app/lnd/on-chain/on-chain-send/on-chain-send.component.ts b/src/app/lnd/on-chain/on-chain-send/on-chain-send.component.ts new file mode 100644 index 00000000..cc23a3b5 --- /dev/null +++ b/src/app/lnd/on-chain/on-chain-send/on-chain-send.component.ts @@ -0,0 +1,41 @@ +import { Component, OnDestroy, OnInit } from '@angular/core'; +import { ActivatedRoute } from '@angular/router'; +import { Subject } from 'rxjs'; +import { takeUntil } from 'rxjs/operators'; +import { Store } from '@ngrx/store'; + +import { OnChainSendModalComponent } from '../on-chain-send-modal/on-chain-send-modal.component'; + +import * as RTLActions from '../../../store/rtl.actions'; +import * as fromRTLReducer from '../../../store/rtl.reducers'; + +@Component({ + selector: 'rtl-on-chain-send', + templateUrl: './on-chain-send.component.html', + styleUrls: ['./on-chain-send.component.scss'] +}) +export class OnChainSendComponent implements OnInit, OnDestroy { + public sweepAll = false; + private unSubs: Array> = [new Subject(), new Subject()]; + + constructor(private store: Store, private activatedRoute: ActivatedRoute) {} + + ngOnInit() { + this.activatedRoute.data.pipe(takeUntil(this.unSubs[0])).subscribe(routeData => this.sweepAll = routeData.sweepAll); + } + + openSendFundsModal() { + this.store.dispatch(new RTLActions.OpenAlert({ data: { + sweepAll: this.sweepAll, + component: OnChainSendModalComponent + }})); + } + + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } + +} diff --git a/src/app/lnd/on-chain/on-chain.component.html b/src/app/lnd/on-chain/on-chain.component.html index 841fb597..e54a3bb4 100644 --- a/src/app/lnd/on-chain/on-chain.component.html +++ b/src/app/lnd/on-chain/on-chain.component.html @@ -1,4 +1,4 @@ -
+
On-chain Balance
@@ -9,34 +9,21 @@
-
+
On-chain Transactions
- - - - - -
-
- -
-
-
- -
-
- -
-
-
-
+ +
+ +
- +
diff --git a/src/app/lnd/on-chain/on-chain.component.ts b/src/app/lnd/on-chain/on-chain.component.ts index e7f3c7fb..647f2892 100644 --- a/src/app/lnd/on-chain/on-chain.component.ts +++ b/src/app/lnd/on-chain/on-chain.component.ts @@ -1,13 +1,12 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; -import { takeUntil } from 'rxjs/operators'; +import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { faExchangeAlt, faChartPie } from '@fortawesome/free-solid-svg-icons'; import { SelNodeChild } from '../../shared/models/RTLconfig'; import * as fromRTLReducer from '../../store/rtl.reducers'; -import * as RTLActions from '../../store/rtl.actions'; -import { OnChainSendComponent } from './on-chain-send-modal/on-chain-send.component'; @Component({ selector: 'rtl-on-chain', @@ -19,11 +18,24 @@ export class OnChainComponent implements OnInit, OnDestroy { public faExchangeAlt = faExchangeAlt; public faChartPie = faChartPie; public balances = [{title: 'Total Balance', dataValue: 0}, {title: 'Confirmed', dataValue: 0}, {title: 'Unconfirmed', dataValue: 0}]; + public links = [{link: 'receive', name: 'Receive'}, {link: 'send', name: 'Send'}, {link: 'sweep', name: 'Sweep All'}]; + public activeLink = this.links[0].link; + public tables = [{id: 0, name: 'utxos'}, {id: 1, name: 'trans'}]; + public selectedTable = this.tables[0]; private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; - constructor(private store: Store) {} + constructor(private store: Store, private router: Router) {} ngOnInit() { + let linkFound = this.links.find(link => this.router.url.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.selectedTable = this.tables.find(table => table.name === this.router.url.substring(this.router.url.lastIndexOf('/') + 1)); + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + let linkFound = this.links.find(link => value.urlAfterRedirects.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.selectedTable = this.tables.find(table => table.name === value.urlAfterRedirects.substring(value.urlAfterRedirects.lastIndexOf('/') + 1)); + }); this.store.select('lnd') .pipe(takeUntil(this.unSubs[1])) .subscribe((rtlStore) => { @@ -32,11 +44,8 @@ export class OnChainComponent implements OnInit, OnDestroy { }); } - openSendFundsModal(sweepAll: boolean) { - this.store.dispatch(new RTLActions.OpenAlert({ data: { - sweepAll: sweepAll, - component: OnChainSendComponent - }})); + onSelectedTableIndexChanged(event: number) { + this.selectedTable = this.tables.find(table => table.id === event); } ngOnDestroy() { diff --git a/src/app/lnd/on-chain/utxo-tables/on-chain-transaction-history/on-chain-transaction-history.component.html b/src/app/lnd/on-chain/utxo-tables/on-chain-transaction-history/on-chain-transaction-history.component.html index 24855862..34264521 100644 --- a/src/app/lnd/on-chain/utxo-tables/on-chain-transaction-history/on-chain-transaction-history.component.html +++ b/src/app/lnd/on-chain/utxo-tables/on-chain-transaction-history/on-chain-transaction-history.component.html @@ -1,12 +1,11 @@ -
-
-
+
+
- +
-
+
diff --git a/src/app/lnd/on-chain/utxo-tables/on-chain-transaction-history/on-chain-transaction-history.component.ts b/src/app/lnd/on-chain/utxo-tables/on-chain-transaction-history/on-chain-transaction-history.component.ts index aec43ba4..ef6730c5 100644 --- a/src/app/lnd/on-chain/utxo-tables/on-chain-transaction-history/on-chain-transaction-history.component.ts +++ b/src/app/lnd/on-chain/utxo-tables/on-chain-transaction-history/on-chain-transaction-history.component.ts @@ -23,12 +23,12 @@ import * as fromRTLReducer from '../../../../store/rtl.reducers'; ] }) export class OnChainTransactionHistoryComponent implements OnChanges { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; @Input() transactions: Transaction[]; @Input() errorLoading: any; faHistory = faHistory; - public displayedColumns = []; + public displayedColumns: any[] = []; public listTransactions: any; public flgSticky = false; public pageSize = PAGE_SIZE; @@ -59,8 +59,8 @@ export class OnChainTransactionHistoryComponent implements OnChanges { } } - applyFilter(selFilter: string) { - this.listTransactions.filter = selFilter; + applyFilter(selFilter: any) { + this.listTransactions.filter = selFilter.value; } onTransactionClick(selTransaction: Transaction, event: any) { @@ -85,7 +85,7 @@ export class OnChainTransactionHistoryComponent implements OnChanges { loadTransactionsTable(transactions) { this.listTransactions = new MatTableDataSource([...transactions]); this.listTransactions.sort = this.sort; - this.listTransactions.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.listTransactions.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.listTransactions.paginator = this.paginator; this.logger.info(this.listTransactions); } diff --git a/src/app/lnd/on-chain/utxo-tables/utxo-tables.component.html b/src/app/lnd/on-chain/utxo-tables/utxo-tables.component.html index 68a90813..b217e54c 100644 --- a/src/app/lnd/on-chain/utxo-tables/utxo-tables.component.html +++ b/src/app/lnd/on-chain/utxo-tables/utxo-tables.component.html @@ -1,5 +1,5 @@
- + UTXOs diff --git a/src/app/lnd/on-chain/utxo-tables/utxo-tables.component.ts b/src/app/lnd/on-chain/utxo-tables/utxo-tables.component.ts index fdf2d591..e1160fec 100644 --- a/src/app/lnd/on-chain/utxo-tables/utxo-tables.component.ts +++ b/src/app/lnd/on-chain/utxo-tables/utxo-tables.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Component, OnInit, OnDestroy, Input, Output, EventEmitter } from '@angular/core'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; @@ -15,6 +15,8 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; styleUrls: ['./utxo-tables.component.scss'] }) export class UTXOTablesComponent implements OnInit, OnDestroy { + @Input() selectedTableIndex = 0; + @Output() selectedTableIndexChange = new EventEmitter(); public transactions: Transaction[] = []; public utxos: UTXO[] = []; public numUtxos = 0; @@ -56,6 +58,10 @@ export class UTXOTablesComponent implements OnInit, OnDestroy { }); } + onSelectedIndexChanged(event) { + this.selectedTableIndexChange.emit(event); + } + ngOnDestroy() { this.unSubs.forEach(completeSub => { completeSub.next(); diff --git a/src/app/lnd/on-chain/utxo-tables/utxos/utxos.component.html b/src/app/lnd/on-chain/utxo-tables/utxos/utxos.component.html index f2142777..73a8b18e 100644 --- a/src/app/lnd/on-chain/utxo-tables/utxos/utxos.component.html +++ b/src/app/lnd/on-chain/utxo-tables/utxos/utxos.component.html @@ -1,12 +1,11 @@ -
-
-
+
+
- +
-
+
@@ -15,8 +14,10 @@ - - + + diff --git a/src/app/lnd/on-chain/utxo-tables/utxos/utxos.component.ts b/src/app/lnd/on-chain/utxo-tables/utxos/utxos.component.ts index 44cc9cf1..03e98385 100644 --- a/src/app/lnd/on-chain/utxo-tables/utxos/utxos.component.ts +++ b/src/app/lnd/on-chain/utxo-tables/utxos/utxos.component.ts @@ -23,13 +23,13 @@ import * as fromRTLReducer from '../../../../store/rtl.reducers'; ] }) export class OnChainUTXOsComponent implements OnChanges { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; @Input() utxos: UTXO[]; @Input() errorLoading: any; public addressType = WALLET_ADDRESS_TYPE; faMoneyBillWave = faMoneyBillWave; - public displayedColumns = []; + public displayedColumns: any[] = []; public listUTXOs: any; public flgSticky = false; public pageSize = PAGE_SIZE; @@ -60,8 +60,8 @@ export class OnChainUTXOsComponent implements OnChanges { } } - applyFilter(selFilter: string) { - this.listUTXOs.filter = selFilter; + applyFilter(selFilter: any) { + this.listUTXOs.filter = selFilter.value; } onUTXOClick(selUTXO: UTXO, event: any) { @@ -81,7 +81,7 @@ export class OnChainUTXOsComponent implements OnChanges { }})); } - loadUTXOsTable(UTXOs) { + loadUTXOsTable(UTXOs: UTXO[]) { this.listUTXOs = new MatTableDataSource([...UTXOs]); this.listUTXOs.filterPredicate = (utxo: UTXO, fltr: string) => { const newUTXO = ((utxo.outpoint.txid_str ? utxo.outpoint.txid_str : '') + (utxo.outpoint.output_index ? utxo.outpoint.output_index : '') @@ -89,8 +89,14 @@ export class OnChainUTXOsComponent implements OnChanges { + (utxo.amount_sat ? utxo.amount_sat : '') + (utxo.confirmations ? utxo.confirmations : '') + (utxo.pk_script ? utxo.pk_script : '')); return newUTXO.includes(fltr.toLowerCase()); }; + this.listUTXOs.sortingDataAccessor = (data: any, sortHeaderId: string) => { + switch (sortHeaderId) { + case 'tx_id': return data.outpoint.txid_str.toLocaleLowerCase(); + case 'output': return +data.outpoint.output_index; + default: return (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; + } + } this.listUTXOs.sort = this.sort; - this.listUTXOs.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; this.listUTXOs.paginator = this.paginator; this.logger.info(this.listUTXOs); } diff --git a/src/app/lnd/peers-channels/channels/bump-fee-modal/bump-fee.component.html b/src/app/lnd/peers-channels/channels/bump-fee-modal/bump-fee.component.html index 3dadfdf5..bf964532 100644 --- a/src/app/lnd/peers-channels/channels/bump-fee-modal/bump-fee.component.html +++ b/src/app/lnd/peers-channels/channels/bump-fee-modal/bump-fee.component.html @@ -24,7 +24,7 @@
- + Index for change output is required. Invalid index value. @@ -36,13 +36,13 @@ - + Number of blocks is required. + type="number" name="fees" [step]="1" [min]="0" required tabindex="4" #fee="ngModel"> Fees is required.
diff --git a/src/app/lnd/peers-channels/channels/bump-fee-modal/bump-fee.component.ts b/src/app/lnd/peers-channels/channels/bump-fee-modal/bump-fee.component.ts index c954cb12..572ec486 100644 --- a/src/app/lnd/peers-channels/channels/bump-fee-modal/bump-fee.component.ts +++ b/src/app/lnd/peers-channels/channels/bump-fee-modal/bump-fee.component.ts @@ -42,7 +42,7 @@ export class BumpFeeComponent implements OnInit, OnDestroy { this.bumpFeeChannel.channel.output_index = channelPointArr[1] ? +channelPointArr[1] : null; } - onBumpFee() { + onBumpFee():boolean|void { if (this.outputIndex === this.bumpFeeChannel.channel.output_index) { this.outputIdx.control.setErrors({'pendingChannelOutputIndex': true}); return true; diff --git a/src/app/lnd/peers-channels/channels/channel-rebalance-modal/channel-rebalance.component.html b/src/app/lnd/peers-channels/channels/channel-rebalance-modal/channel-rebalance.component.html index 0d12e2b1..8d244373 100644 --- a/src/app/lnd/peers-channels/channels/channel-rebalance-modal/channel-rebalance.component.html +++ b/src/app/lnd/peers-channels/channels/channel-rebalance-modal/channel-rebalance.component.html @@ -25,7 +25,7 @@ {{inputFormLabel}}
- + (Local Bal: {{selChannel?.local_balance}}, Remaining: {{selChannel?.local_balance - ((inputFormGroup.controls.rebalanceAmount.value) ? inputFormGroup.controls.rebalanceAmount.value : 0)}}) Sats Amount is required. @@ -70,7 +70,7 @@ - + {{feeFormGroup.controls.selFeeLimitType.value ? feeFormGroup.controls.selFeeLimitType.value.placeholder : feeLimitTypes[0].placeholder}} is required. {{feeFormGroup.controls.selFeeLimitType.value ? feeFormGroup.controls.selFeeLimitType.value.placeholder : feeLimitTypes[0].placeholder}} must be a positive number. diff --git a/src/app/lnd/peers-channels/channels/channel-rebalance-modal/channel-rebalance.component.ts b/src/app/lnd/peers-channels/channels/channel-rebalance-modal/channel-rebalance.component.ts index 50c7ec7e..292702e9 100644 --- a/src/app/lnd/peers-channels/channels/channel-rebalance-modal/channel-rebalance.component.ts +++ b/src/app/lnd/peers-channels/channels/channel-rebalance-modal/channel-rebalance.component.ts @@ -91,7 +91,7 @@ export class ChannelRebalanceComponent implements OnInit, OnDestroy { }); } - onEstimateFee() { + onEstimateFee():boolean|void { if(!this.inputFormGroup.controls.selRebalancePeer.value || !this.inputFormGroup.controls.rebalanceAmount.value) { return true; } if (this.stepper.selectedIndex === 0) { this.inputFormGroup.controls.hiddenAmount.setValue(this.inputFormGroup.controls.rebalanceAmount.value); @@ -151,7 +151,7 @@ export class ChannelRebalanceComponent implements OnInit, OnDestroy { this.feeFormGroup.controls.feeLimit.setValue((this.queryRoute.routes && this.queryRoute.routes.length > 0 && this.queryRoute.routes[0].total_fees_msat) ? Math.ceil(+this.queryRoute.routes[0].total_fees_msat/1000) : 0); } - onRebalance() { + onRebalance():boolean|void { if (!this.inputFormGroup.controls.rebalanceAmount.value || this.inputFormGroup.controls.rebalanceAmount.value <= 0 || this.inputFormGroup.controls.rebalanceAmount.value > +this.selChannel.local_balance || !this.feeFormGroup.controls.feeLimit.value || this.feeFormGroup.controls.feeLimit.value < 0 || !this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey) { return true; } this.feeFormGroup.controls.hiddenFeeLimit.setValue(this.feeFormGroup.controls.feeLimit.value); this.stepper.next(); diff --git a/src/app/lnd/peers-channels/channels/channels-tables/channel-active-htlcs-table/channel-active-htlcs-table.component.html b/src/app/lnd/peers-channels/channels/channels-tables/channel-active-htlcs-table/channel-active-htlcs-table.component.html index 12c99883..3cdf200a 100644 --- a/src/app/lnd/peers-channels/channels/channels-tables/channel-active-htlcs-table/channel-active-htlcs-table.component.html +++ b/src/app/lnd/peers-channels/channels/channels-tables/channel-active-htlcs-table/channel-active-htlcs-table.component.html @@ -2,10 +2,10 @@
- +
-
+
{{utxo.outpoint.txid_str}} Output {{utxo.outpoint.output_index}} Output + {{utxo.outpoint.output_index}} + Amount (Sats)
@@ -34,7 +34,9 @@ - + - + - -
Expiration Height + Expiration Height + {{' '}} @@ -45,18 +47,20 @@ Hash Lock + Hash Lock + - {{' '}} + {{' '}} - + {{htlc?.hash_lock}} +
@@ -64,7 +68,7 @@
+ diff --git a/src/app/lnd/peers-channels/channels/channels-tables/channel-active-htlcs-table/channel-active-htlcs-table.component.scss b/src/app/lnd/peers-channels/channels/channels-tables/channel-active-htlcs-table/channel-active-htlcs-table.component.scss index a7d1fd3c..a8267e46 100644 --- a/src/app/lnd/peers-channels/channels/channels-tables/channel-active-htlcs-table/channel-active-htlcs-table.component.scss +++ b/src/app/lnd/peers-channels/channels/channels-tables/channel-active-htlcs-table/channel-active-htlcs-table.component.scss @@ -1,5 +1,6 @@ .mat-column-amount, .mat-column-expiration_height { - width: 15%; + flex: 0 0 30%; + width: 30%; } .mat-column-incoming, .mat-column-hash_lock { diff --git a/src/app/lnd/peers-channels/channels/channels-tables/channel-active-htlcs-table/channel-active-htlcs-table.component.ts b/src/app/lnd/peers-channels/channels/channels-tables/channel-active-htlcs-table/channel-active-htlcs-table.component.ts index 269a4974..19b03c56 100644 --- a/src/app/lnd/peers-channels/channels/channels-tables/channel-active-htlcs-table/channel-active-htlcs-table.component.ts +++ b/src/app/lnd/peers-channels/channels/channels-tables/channel-active-htlcs-table/channel-active-htlcs-table.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from '@angular/core'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; @@ -23,13 +23,13 @@ import * as fromRTLReducer from '../../../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('HTLCs') } ] }) -export class ChannelActiveHTLCsTableComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; +export class ChannelActiveHTLCsTableComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public flgLoading: Array = [true]; public channels: any; public channelsJSONArr: Channel[] = []; - public displayedColumns = []; + public displayedColumns: any[] = []; public htlcColumns = []; public flgSticky = false; public pageSize = PAGE_SIZE; @@ -64,16 +64,8 @@ export class ChannelActiveHTLCsTableComponent implements OnInit, OnDestroy { this.flgLoading[0] = 'error'; } }); - this.channelsJSONArr = (rtlStore.allChannels && rtlStore.allChannels.length > 0) ? rtlStore.allChannels.filter(channel => { if (channel.pending_htlcs && channel.pending_htlcs.length > 0) { return channel; }}) : []; - this.channels = (rtlStore.allChannels) ? new MatTableDataSource([]) : new MatTableDataSource([...this.channelsJSONArr]); - this.channels.data = this.channelsJSONArr; - this.channels.sort = this.sort; - this.channels.sortingDataAccessor = (data, sortHeaderId) => (sortHeaderId === 'amount' && data.pending_htlcs && data.pending_htlcs.length) ? data.pending_htlcs.length : (sortHeaderId === 'incoming' ? data.remote_alias.toLocaleLowerCase() : data); - this.channels.paginator = this.paginator; - this.channels.filterPredicate = (channel: Channel, fltr: string) => { - const newChannel = channel.remote_alias + channel.pending_htlcs.map(htlc => JSON.stringify(htlc) + (htlc.incoming ? 'yes' : 'no')); - return newChannel.includes(fltr.toLowerCase()); - }; + this.channelsJSONArr = (rtlStore.allChannels && rtlStore.allChannels.length > 0) ? rtlStore.allChannels.filter(channel => channel.pending_htlcs && channel.pending_htlcs.length > 0) : []; + this.loadHTLCsTable(this.channelsJSONArr); if (this.flgLoading[0] !== 'error') { this.flgLoading[0] = ( this.channelsJSONArr) ? false : true; } @@ -81,6 +73,10 @@ export class ChannelActiveHTLCsTableComponent implements OnInit, OnDestroy { }); } + ngAfterViewInit() { + this.loadHTLCsTable(this.channelsJSONArr); + } + onHTLCClick(selHtlc: ChannelHTLC, selChannel: Channel) { const reorderedHTLC = [ [{key: 'remote_alias', value: selChannel.remote_alias, title: 'Alias', width: 100, type: DataTypeEnum.STRING}], @@ -104,8 +100,40 @@ export class ChannelActiveHTLCsTableComponent implements OnInit, OnDestroy { }})); } - applyFilter(selFilter: string) { - this.channels.filter = selFilter; + applyFilter(selFilter: any) { + this.channels.filter = selFilter.value; + } + + loadHTLCsTable(channels: Channel[]) { + this.channels = (channels) ? new MatTableDataSource([...channels]) : new MatTableDataSource([]); + this.channels.sort = this.sort; + this.channels.sortingDataAccessor = (data: any, sortHeaderId: string) => { + switch (sortHeaderId) { + case 'amount': + this.commonService.sortByKey(data.pending_htlcs, sortHeaderId, 'number', this.sort.direction); + return data.pending_htlcs && data.pending_htlcs.length ? data.pending_htlcs.length : null; + + case 'incoming': + this.commonService.sortByKey(data.pending_htlcs, sortHeaderId, 'boolean', this.sort.direction); + return data.remote_alias ? data.remote_alias : data.remote_pubkey ? data.remote_pubkey : null; + + case 'expiration_height': + this.commonService.sortByKey(data.pending_htlcs, sortHeaderId, 'number', this.sort.direction); + return data; + + case 'hash_lock': + this.commonService.sortByKey(data.pending_htlcs, sortHeaderId, 'number', this.sort.direction); + return data; + + default: + return (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; + } + }; + this.channels.paginator = this.paginator; + this.channels.filterPredicate = (channel: Channel, fltr: string) => { + const newChannel = channel.remote_alias + channel.pending_htlcs.map(htlc => JSON.stringify(htlc) + (htlc.incoming ? 'yes' : 'no')); + return newChannel.includes(fltr.toLowerCase()); + }; } onDownloadCSV() { diff --git a/src/app/lnd/peers-channels/channels/channels-tables/channel-closed-table/channel-closed-table.component.html b/src/app/lnd/peers-channels/channels/channels-tables/channel-closed-table/channel-closed-table.component.html index c036ecf3..c8e85dcd 100644 --- a/src/app/lnd/peers-channels/channels/channels-tables/channel-closed-table/channel-closed-table.component.html +++ b/src/app/lnd/peers-channels/channels/channels-tables/channel-closed-table/channel-closed-table.component.html @@ -2,10 +2,10 @@
- +
-
+
diff --git a/src/app/lnd/peers-channels/channels/channels-tables/channel-closed-table/channel-closed-table.component.ts b/src/app/lnd/peers-channels/channels/channels-tables/channel-closed-table/channel-closed-table.component.ts index d8c09521..36279e80 100644 --- a/src/app/lnd/peers-channels/channels/channels-tables/channel-closed-table/channel-closed-table.component.ts +++ b/src/app/lnd/peers-channels/channels/channels-tables/channel-closed-table/channel-closed-table.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from '@angular/core'; import { Subject } from 'rxjs'; import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; @@ -24,15 +24,15 @@ import * as fromRTLReducer from '../../../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Channels') } ] }) -export class ChannelClosedTableComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; +export class ChannelClosedTableComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public channelClosureType = CHANNEL_CLOSURE_TYPE; public faHistory = faHistory; - public displayedColumns = []; + public displayedColumns: any[] = []; + public closedChannelsData: ClosedChannel[] =[]; public closedChannels: any; public flgLoading: Array = [true]; - public selectedFilter = ''; public flgSticky = false; public pageSize = PAGE_SIZE; public pageSizeOptions = PAGE_SIZE_OPTIONS; @@ -63,20 +63,25 @@ export class ChannelClosedTableComponent implements OnInit, OnDestroy { this.flgLoading[0] = 'error'; } }); - if (rtlStore.closedChannels) { - this.loadClosedChannelsTable(rtlStore.closedChannels); + this.closedChannelsData = rtlStore.closedChannels; + if (this.closedChannelsData.length > 0) { + this.loadClosedChannelsTable(this.closedChannelsData); } if (this.flgLoading[0] !== 'error') { this.flgLoading[0] = ( rtlStore.closedChannels) ? false : true; } this.logger.info(rtlStore); }); - } - applyFilter(selFilter: string) { - this.selectedFilter = selFilter; - this.closedChannels.filter = selFilter; + ngAfterViewInit() { + if (this.closedChannelsData.length > 0) { + this.loadClosedChannelsTable(this.closedChannelsData); + } + } + + applyFilter(selFilter: any) { + this.closedChannels.filter = selFilter.value; } onClosedChannelClick(selChannel: ClosedChannel, event: any) { @@ -102,15 +107,11 @@ export class ChannelClosedTableComponent implements OnInit, OnDestroy { loadClosedChannelsTable(closedChannels) { this.closedChannels = new MatTableDataSource([...closedChannels]); this.closedChannels.sort = this.sort; - this.closedChannels.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.closedChannels.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.closedChannels.paginator = this.paginator; this.logger.info(this.closedChannels); } - resetData() { - this.selectedFilter = ''; - } - onDownloadCSV() { if(this.closedChannels.data && this.closedChannels.data.length > 0) { this.commonService.downloadFile(this.closedChannels.data, 'Closed-channels'); diff --git a/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.html b/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.html index 1d2d8d27..e69fac20 100644 --- a/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.html +++ b/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.html @@ -5,7 +5,7 @@ -
+
@@ -60,7 +60,7 @@
-
+
View Info diff --git a/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.scss b/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.scss index 2d4466e5..214344b5 100644 --- a/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.scss +++ b/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.scss @@ -13,11 +13,11 @@ } .mat-column-uptime, .mat-column-local_balance, .mat-column-remote_balance, .mat-column-total_satoshis_sent, .mat-column-total_satoshis_received { - flex: 0 0 10%; + flex: 1 1 20%; width: 10%; white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; + overflow: hidden; + text-overflow: ellipsis; } .mat-column-actions { diff --git a/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.ts b/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.ts index 8d963345..7245142f 100644 --- a/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.ts +++ b/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from '@angular/core'; import { DecimalPipe } from '@angular/common'; import { Subject } from 'rxjs'; import { take, takeUntil } from 'rxjs/operators'; @@ -33,20 +33,20 @@ import {faEye, faEyeSlash} from "@fortawesome/free-solid-svg-icons"; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Channels') } ] }) -export class ChannelOpenTableComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; +export class ChannelOpenTableComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public timeUnit = 'mins:secs'; public userPersonaEnum = UserPersonaEnum; public selNode: SelNodeChild = {}; public totalBalance = 0; - public displayedColumns = []; + public displayedColumns: any[] = []; + public channelsData: Channel[] = []; public channels: any; public myChanPolicy: any = {}; public information: GetInfo = {}; public numPeers = -1; public flgLoading: Array = [true]; - public selectedFilter = ''; public selFilter = ''; public flgSticky = false; public pageSize = PAGE_SIZE; @@ -90,8 +90,9 @@ export class ChannelOpenTableComponent implements OnInit, OnDestroy { if(this.information && this.information.version) { this.versionsArr = this.information.version.split('.'); } this.numPeers = (rtlStore.peers && rtlStore.peers.length) ? rtlStore.peers.length : 0; this.totalBalance = +rtlStore.blockchainBalance.total_balance; - if (rtlStore.allChannels) { - this.loadChannelsTable(this.calculateUptime(rtlStore.allChannels)); + this.channelsData = this.calculateUptime(rtlStore.allChannels); + if (this.channelsData.length > 0) { + this.loadChannelsTable(this.channelsData); } if (this.flgLoading[0] !== 'error') { this.flgLoading[0] = (rtlStore.allChannels) ? false : true; @@ -100,11 +101,17 @@ export class ChannelOpenTableComponent implements OnInit, OnDestroy { }); } + ngAfterViewInit() { + if (this.channelsData.length > 0) { + this.loadChannelsTable(this.channelsData); + } + } + onViewRemotePolicy(selChannel: Channel) { this.store.dispatch(new LNDActions.ChannelLookup(selChannel.chan_id.toString() + '/' + this.information.identity_pubkey)); this.lndEffects.setLookup .pipe(take(1)) - .subscribe(resLookup => { + .subscribe((resLookup):boolean|void => { if(!resLookup.fee_base_msat && !resLookup.fee_rate_milli_msat && !resLookup.time_lock_delta) { return false; } const reorderedChannelPolicy = [ [{key: 'fee_base_msat', value: resLookup.fee_base_msat, title: 'Base Fees (mSats)', width: 34, type: DataTypeEnum.NUMBER}, @@ -214,7 +221,6 @@ export class ChannelOpenTableComponent implements OnInit, OnDestroy { } applyFilter() { - this.selectedFilter = this.selFilter; this.channels.filter = this.selFilter; } @@ -241,7 +247,7 @@ export class ChannelOpenTableComponent implements OnInit, OnDestroy { return newChannel.includes(fltr); }; this.channels.sort = this.sort; - this.channels.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.channels.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.channels.paginator = this.paginator; this.logger.info(this.channels); } diff --git a/src/app/lnd/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.html b/src/app/lnd/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.html index 6fd38cc4..793cf4c6 100644 --- a/src/app/lnd/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.html +++ b/src/app/lnd/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.html @@ -6,7 +6,7 @@ Pending Open ({{pendingOpenChannelsLength}}) -
+
Peer @@ -27,7 +27,7 @@ Actions -
+
View Info @@ -52,7 +52,7 @@ Pending Force Closing ({{pendingForceClosingChannelsLength}}) -
+
Peer @@ -92,7 +92,7 @@ Pending Closing ({{pendingClosingChannelsLength}}) -
+
@@ -139,7 +139,7 @@ Waiting Close ({{pendingWaitClosingChannelsLength}}) -
+
diff --git a/src/app/lnd/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.ts b/src/app/lnd/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.ts index 385b4e64..785a633f 100644 --- a/src/app/lnd/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.ts +++ b/src/app/lnd/peers-channels/channels/channels-tables/channel-pending-table/channel-pending-table.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from '@angular/core'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; @@ -20,8 +20,8 @@ import { AlertTypeEnum, DataTypeEnum, ScreenSizeEnum } from '../../../../../shar templateUrl: './channel-pending-table.component.html', styleUrls: ['./channel-pending-table.component.scss'] }) -export class ChannelPendingTableComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; +export class ChannelPendingTableComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; public selNode: SelNodeChild = {}; public selectedFilter = 0; public information: GetInfo = {}; @@ -78,16 +78,16 @@ export class ChannelPendingTableComponent implements OnInit, OnDestroy { if (this.pendingChannels.total_limbo_balance) { this.flgLoading[1] = false; } - if (this.pendingChannels.pending_open_channels) { + if (this.pendingChannels.pending_open_channels.length > 0) { this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels); } - if (this.pendingChannels.pending_force_closing_channels) { + if (this.pendingChannels.pending_force_closing_channels.length > 0) { this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels); } - if (this.pendingChannels.pending_closing_channels) { + if (this.pendingChannels.pending_closing_channels.length > 0) { this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels); } - if (this.pendingChannels.waiting_close_channels) { + if (this.pendingChannels.waiting_close_channels.length > 0) { this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels); } if (this.flgLoading[0] !== 'error') { @@ -98,6 +98,21 @@ export class ChannelPendingTableComponent implements OnInit, OnDestroy { } + ngAfterViewInit() { + if (this.pendingChannels.pending_open_channels.length > 0) { + this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels); + } + if (this.pendingChannels.pending_force_closing_channels.length > 0) { + this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels); + } + if (this.pendingChannels.pending_closing_channels.length > 0) { + this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels); + } + if (this.pendingChannels.waiting_close_channels.length > 0) { + this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels); + } + } + onOpenClick(selChannel: any) { const fcChannelObj1 = JSON.parse(JSON.stringify(selChannel, ['commit_weight', 'confirmation_height', 'fee_per_kw', 'commit_fee'], 2)); const fcChannelObj2 = JSON.parse(JSON.stringify(selChannel.channel, ['remote_alias', 'channel_point', 'remote_balance', 'local_balance', 'remote_node_pub', 'capacity'], 2)); @@ -203,7 +218,7 @@ export class ChannelPendingTableComponent implements OnInit, OnDestroy { this.pendingOpenChannelsLength = (channels.length) ? channels.length : 0; this.pendingOpenChannels = new MatTableDataSource([...channels]); this.pendingOpenChannels.sort = this.sort; - this.pendingOpenChannels.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.pendingOpenChannels.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.logger.info(this.pendingOpenChannels); } @@ -214,7 +229,7 @@ export class ChannelPendingTableComponent implements OnInit, OnDestroy { this.pendingForceClosingChannelsLength = (channels.length) ? channels.length : 0; this.pendingForceClosingChannels = new MatTableDataSource([...channels]); this.pendingForceClosingChannels.sort = this.sort; - this.pendingForceClosingChannels.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.pendingForceClosingChannels.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.logger.info(this.pendingForceClosingChannels); } @@ -225,7 +240,7 @@ export class ChannelPendingTableComponent implements OnInit, OnDestroy { this.pendingClosingChannelsLength = (channels.length) ? channels.length : 0; this.pendingClosingChannels = new MatTableDataSource([...channels]); this.pendingClosingChannels.sort = this.sort; - this.pendingClosingChannels.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.pendingClosingChannels.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.logger.info(this.pendingClosingChannels); } @@ -236,7 +251,7 @@ export class ChannelPendingTableComponent implements OnInit, OnDestroy { this.pendingWaitClosingChannelsLength = (channels.length) ? channels.length : 0; this.pendingWaitClosingChannels = new MatTableDataSource([...channels]); this.pendingWaitClosingChannels.sort = this.sort; - this.pendingWaitClosingChannels.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.pendingWaitClosingChannels.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.logger.info(this.pendingWaitClosingChannels); } diff --git a/src/app/lnd/peers-channels/channels/channels-tables/channels-tables.component.html b/src/app/lnd/peers-channels/channels/channels-tables/channels-tables.component.html index 6e1d7cda..7b7ef3c1 100644 --- a/src/app/lnd/peers-channels/channels/channels-tables/channels-tables.component.html +++ b/src/app/lnd/peers-channels/channels/channels-tables/channels-tables.component.html @@ -1,28 +1,32 @@ -
- - - - Open - - - - - - Pending - - - - - - Closed - - - - - - Active HTLCs - - - - +
+
+ +
+
+ + + + Open + + + + + Pending + + + + + Closed + + + + + Active HTLCs + + + +
+ +
+
diff --git a/src/app/lnd/peers-channels/channels/channels-tables/channels-tables.component.ts b/src/app/lnd/peers-channels/channels/channels-tables/channels-tables.component.ts index 01ea73eb..aca6b817 100644 --- a/src/app/lnd/peers-channels/channels/channels-tables/channels-tables.component.ts +++ b/src/app/lnd/peers-channels/channels/channels-tables/channels-tables.component.ts @@ -1,9 +1,14 @@ -import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; +import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; -import { takeUntil } from 'rxjs/operators'; +import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; +import { OpenChannelComponent } from '../open-channel-modal/open-channel.component'; +import { Peer, GetInfo } from '../../../../shared/models/lndModels'; import { LoggerService } from '../../../../shared/services/logger.service'; + +import * as RTLActions from '../../../../store/rtl.actions'; import * as fromRTLReducer from '../../../../store/rtl.reducers'; @Component({ @@ -16,13 +21,23 @@ export class ChannelsTablesComponent implements OnInit, OnDestroy { public numPendingChannels = 0; public numClosedChannels = 0; public numActiveHTLCs = 0; - private unSubs: Array> = [new Subject()]; + public peers: Peer[] = []; + public information: GetInfo = {}; + public totalBalance = 0; + public links = [{link: 'open', name: 'Open'}, {link: 'pending', name: 'Pending'}, {link: 'closed', name: 'Closed'}, {link: 'activehtlcs', name: 'Active HTLCs'}]; + public activeLink = 0; + private unSubs: Array> = [new Subject(), new Subject]; - constructor(private logger: LoggerService, private store: Store) {} + constructor(private logger: LoggerService, private store: Store, private router: Router) {} ngOnInit() { + this.activeLink = this.links.findIndex(link => link.link === this.router.url.substring(this.router.url.lastIndexOf('/') + 1)); + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + this.activeLink = this.links.findIndex(link => link.link === value.urlAfterRedirects.substring(value.urlAfterRedirects.lastIndexOf('/') + 1)); + }); this.store.select('lnd') - .pipe(takeUntil(this.unSubs[0])) + .pipe(takeUntil(this.unSubs[1])) .subscribe((rtlStore) => { this.numOpenChannels = (rtlStore.allChannels && rtlStore.allChannels.length) ? rtlStore.allChannels.length : 0; this.numPendingChannels = (rtlStore.numberOfPendingChannels.total_channels) ? rtlStore.numberOfPendingChannels.total_channels : 0; @@ -30,10 +45,35 @@ export class ChannelsTablesComponent implements OnInit, OnDestroy { this.numActiveHTLCs = rtlStore.allChannels.reduce((totalHTLCs, channel) => { return totalHTLCs + (channel.pending_htlcs && channel.pending_htlcs.length > 0 ? channel.pending_htlcs.length : 0); }, 0); + this.information = rtlStore.information; + this.totalBalance = +rtlStore.blockchainBalance.total_balance; + this.peers = rtlStore.peers; + this.peers.forEach(peer => { + if (!peer.alias || peer.alias === '') { + peer.alias = peer.pub_key.substring(0, 15) + '...'; + } + }); this.logger.info(rtlStore); }); } + onOpenChannel() { + const peerToAddChannelMessage = { + peers: this.peers, + information: this.information, + balance: this.totalBalance + }; + this.store.dispatch(new RTLActions.OpenAlert({ data: { + alertTitle: 'Open Channel', + message: peerToAddChannelMessage, + component: OpenChannelComponent + }})); + } + + onSelectedTabChange(event) { + this.router.navigateByUrl('/lnd/connections/channels/' + this.links[event.index].link); + } + ngOnDestroy() { this.unSubs.forEach(completeSub => { completeSub.next(); diff --git a/src/app/lnd/peers-channels/channels/close-channel-modal/close-channel.component.html b/src/app/lnd/peers-channels/channels/close-channel-modal/close-channel.component.html index 6a00f6e0..82dac72b 100644 --- a/src/app/lnd/peers-channels/channels/close-channel-modal/close-channel.component.html +++ b/src/app/lnd/peers-channels/channels/close-channel-modal/close-channel.component.html @@ -30,13 +30,13 @@ - + Number of blocks is required. + type="number" name="ccfees" [step]="1" [min]="0" required tabindex="3" #clchfee="ngModel"> Fees is required.
diff --git a/src/app/lnd/peers-channels/channels/close-channel-modal/close-channel.component.ts b/src/app/lnd/peers-channels/channels/close-channel-modal/close-channel.component.ts index a39dcf9b..4bb91831 100644 --- a/src/app/lnd/peers-channels/channels/close-channel-modal/close-channel.component.ts +++ b/src/app/lnd/peers-channels/channels/close-channel-modal/close-channel.component.ts @@ -51,7 +51,7 @@ export class CloseChannelComponent implements OnInit, OnDestroy { }); } - onCloseChannel() { + onCloseChannel():boolean|void { if ((this.selTransType === '1' && (!this.blocks || this.blocks === 0)) || (this.selTransType === '2' && (!this.fees || this.fees === 0))) { return true; } let closeChannelParams: any = { channelPoint: this.channelToClose.channel_point, forcibly: !this.channelToClose.active }; if (this.blocks) { closeChannelParams.targetConf = this.blocks; } diff --git a/src/app/lnd/peers-channels/channels/open-channel-modal/open-channel.component.html b/src/app/lnd/peers-channels/channels/open-channel-modal/open-channel.component.html index 58ed00db..994bc3d9 100644 --- a/src/app/lnd/peers-channels/channels/open-channel-modal/open-channel.component.html +++ b/src/app/lnd/peers-channels/channels/open-channel-modal/open-channel.component.html @@ -19,7 +19,47 @@
- +
+
+ + + (Remaining Bal: {{totalBalance - ((fundingAmount) ? fundingAmount : 0) | number}}) + {{information?.smaller_currency_unit}} + Amount is required. + Amount must be less than or equal to {{totalBalance}}. + +
+ Private Channel +
+
+ + + + {{advancedTitle}} + + +
+
+ + + + {{transType.name}} + + + + + + {{selTransType === '1' ? 'Target Confirmation Blocks' : 'Fee'}} is required. + +
+
+
+ Spend Unconfirmed Output +
+
+
+
+
{{channelConnectionError}} @@ -61,46 +101,3 @@
- -
-
- - - (Remaining Bal: {{totalBalance - ((fundingAmount) ? fundingAmount : 0) | number}}) - {{information?.smaller_currency_unit}} - Amount is required. - Amount must be less than or equal to {{totalBalance}}. - -
- Private Channel -
-
- - - - {{advancedTitle}} - - -
-
- - - - {{transType.name}} - - - - - - {{selTransType === '1' ? 'Target Confirmation Blocks' : 'Fee'}} is required. - -
-
-
- Spend Unconfirmed Output -
-
-
-
-
-
diff --git a/src/app/lnd/peers-channels/channels/open-channel-modal/open-channel.component.ts b/src/app/lnd/peers-channels/channels/open-channel-modal/open-channel.component.ts index 7d2695dd..6213b2ea 100644 --- a/src/app/lnd/peers-channels/channels/open-channel-modal/open-channel.component.ts +++ b/src/app/lnd/peers-channels/channels/open-channel-modal/open-channel.component.ts @@ -1,7 +1,7 @@ import { Component, OnInit, OnDestroy, Inject, ViewChild } from '@angular/core'; import { FormControl } from '@angular/forms'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; -import { Subject, Observable, of } from 'rxjs'; +import { Subject, Observable } from 'rxjs'; import { takeUntil, filter, startWith, map } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { Actions } from '@ngrx/effects'; @@ -21,8 +21,9 @@ import * as fromRTLReducer from '../../../../store/rtl.reducers'; styleUrls: ['./open-channel.component.scss'] }) export class OpenChannelComponent implements OnInit, OnDestroy { - @ViewChild('form', { static: false }) form: any; + @ViewChild('form', { static: true }) form: any; public selectedPeer = new FormControl(); + public amount = new FormControl(); public faExclamationTriangle = faExclamationTriangle; public alertTitle: string; public peer: Peer; @@ -110,7 +111,7 @@ export class OpenChannelComponent implements OnInit, OnDestroy { this.form.resetForm(); } - onOpenChannel() { + onOpenChannel():boolean|void { if ((!this.peer && !this.selectedPubkey) || (!this.fundingAmount || ((this.totalBalance - this.fundingAmount) < 0) || ((this.selTransType === '1' || this.selTransType === '2') && !this.transTypeValue))) { return true; } this.store.dispatch(new RTLActions.OpenSpinner('Opening Channel...')); this.store.dispatch(new LNDActions.SaveNewChannel({ diff --git a/src/app/lnd/peers-channels/connect-peer/connect-peer.component.html b/src/app/lnd/peers-channels/connect-peer/connect-peer.component.html index 7ab3d211..96f3e1db 100644 --- a/src/app/lnd/peers-channels/connect-peer/connect-peer.component.html +++ b/src/app/lnd/peers-channels/connect-peer/connect-peer.component.html @@ -31,7 +31,7 @@
- + Remaining Bal: {{totalBalance - ((channelFormGroup.controls.fundingAmount.value) ? channelFormGroup.controls.fundingAmount.value : 0)}} Sats Amount is required. @@ -51,7 +51,7 @@ - + {{channelFormGroup.controls.selTransType.value === '0' ? 'Default' : channelFormGroup.controls.selTransType.value === '1' ? 'Target Confirmation Blocks' : 'Fee (Sats/Byte)'}} is required.
diff --git a/src/app/lnd/peers-channels/connect-peer/connect-peer.component.ts b/src/app/lnd/peers-channels/connect-peer/connect-peer.component.ts index 2f66cf98..45462523 100644 --- a/src/app/lnd/peers-channels/connect-peer/connect-peer.component.ts +++ b/src/app/lnd/peers-channels/connect-peer/connect-peer.component.ts @@ -24,7 +24,7 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; styleUrls: ['./connect-peer.component.scss'] }) export class ConnectPeerComponent implements OnInit, OnDestroy { - @ViewChild('peersForm', {static: true}) form: any; + @ViewChild('peersForm', {static: false}) form: any; @ViewChild('stepper', { static: false }) stepper: MatVerticalStepper; public faExclamationTriangle = faExclamationTriangle; public peerAddress = ''; @@ -95,7 +95,7 @@ export class ConnectPeerComponent implements OnInit, OnDestroy { }); } - onConnectPeer() { + onConnectPeer():boolean|void { if(!this.peerFormGroup.controls.peerAddress.value) { return true; } this.peerConnectionError = ''; const deviderIndex = this.peerFormGroup.controls.peerAddress.value.search('@'); @@ -123,7 +123,7 @@ export class ConnectPeerComponent implements OnInit, OnDestroy { this.store.dispatch(new LNDActions.SaveNewPeer({pubkey: pubkey, host: host, perm: false})); } - onOpenChannel() { + onOpenChannel():boolean|void { if (!this.channelFormGroup.controls.fundingAmount.value || ((this.totalBalance - this.channelFormGroup.controls.fundingAmount.value) < 0) || (this.channelFormGroup.controls.selTransType.value === '1' && !this.channelFormGroup.controls.transTypeValue.value) || (this.channelFormGroup.controls.selTransType.value === '2' && !this.channelFormGroup.controls.transTypeValue.value)) { return true; } this.channelConnectionError = ''; this.store.dispatch(new RTLActions.OpenSpinner('Opening Channel...')); diff --git a/src/app/eclair/peers-channels/peers-channels.component.html b/src/app/lnd/peers-channels/connections.component.html similarity index 62% rename from src/app/eclair/peers-channels/peers-channels.component.html rename to src/app/lnd/peers-channels/connections.component.html index bfdc58ce..67d1ea91 100644 --- a/src/app/eclair/peers-channels/peers-channels.component.html +++ b/src/app/lnd/peers-channels/connections.component.html @@ -1,4 +1,4 @@ -
+
On-chain Balance
@@ -9,32 +9,28 @@
-
+
Connections
- + Channels -
-
- -
- -
Peers -
+
+ +
\ No newline at end of file diff --git a/src/app/lnd/peers-channels/connections.component.scss b/src/app/lnd/peers-channels/connections.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/lnd/peers-channels/connections.component.spec.ts b/src/app/lnd/peers-channels/connections.component.spec.ts new file mode 100644 index 00000000..0487b6fc --- /dev/null +++ b/src/app/lnd/peers-channels/connections.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ConnectionsComponent } from './connections.component'; + +describe('ConnectionsComponent', () => { + let component: ConnectionsComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ConnectionsComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ConnectionsComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/lnd/peers-channels/peers-channels.component.ts b/src/app/lnd/peers-channels/connections.component.ts similarity index 56% rename from src/app/lnd/peers-channels/peers-channels.component.ts rename to src/app/lnd/peers-channels/connections.component.ts index bcda6365..aa9b63f6 100644 --- a/src/app/lnd/peers-channels/peers-channels.component.ts +++ b/src/app/lnd/peers-channels/connections.component.ts @@ -1,38 +1,39 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; -import { takeUntil } from 'rxjs/operators'; +import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; -import { Actions } from '@ngrx/effects'; import { faUsers, faChartPie } from '@fortawesome/free-solid-svg-icons'; -import { OpenChannelComponent } from './channels/open-channel-modal/open-channel.component'; import { SelNodeChild } from '../../shared/models/RTLconfig'; -import { Peer, GetInfo } from '../../shared/models/lndModels'; import { LoggerService } from '../../shared/services/logger.service'; -import * as RTLActions from '../../store/rtl.actions'; import * as fromRTLReducer from '../../store/rtl.reducers'; @Component({ - selector: 'rtl-peers-channels', - templateUrl: './peers-channels.component.html', - styleUrls: ['./peers-channels.component.scss'] + selector: 'rtl-connections', + templateUrl: './connections.component.html', + styleUrls: ['./connections.component.scss'] }) -export class PeersChannelsComponent implements OnInit, OnDestroy { +export class ConnectionsComponent implements OnInit, OnDestroy { public selNode: SelNodeChild = {}; public activePeers = 0; public activeChannels = 0; public faUsers = faUsers; public faChartPie = faChartPie; public balances = [{title: 'Total Balance', dataValue: 0}, {title: 'Confirmed', dataValue: 0}, {title: 'Unconfirmed', dataValue: 0}]; - public peers: Peer[] = []; - public information: GetInfo = {}; - public totalBalance = 0; + public links = [{link: 'channels', name: 'Channels'}, {link: 'peers', name: 'Peers'}]; + public activeLink = 0; private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; - constructor(private store: Store, private logger: LoggerService) {} + constructor(private store: Store, private logger: LoggerService, private router: Router) {} ngOnInit() { + this.activeLink = this.links.findIndex(link => link.link === this.router.url.substring(this.router.url.lastIndexOf('/') + 1)); + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + this.activeLink = this.links.findIndex(link => link.link === value.urlAfterRedirects.substring(value.urlAfterRedirects.lastIndexOf('/') + 1)); + }); this.store.select('lnd') .pipe(takeUntil(this.unSubs[1])) .subscribe((rtlStore) => { @@ -40,29 +41,12 @@ export class PeersChannelsComponent implements OnInit, OnDestroy { this.activePeers = (rtlStore.peers && rtlStore.peers.length) ? rtlStore.peers.length : 0; this.activeChannels = rtlStore.numberOfActiveChannels; this.balances = [{title: 'Total Balance', dataValue: rtlStore.blockchainBalance.total_balance || 0}, {title: 'Confirmed', dataValue: rtlStore.blockchainBalance.confirmed_balance}, {title: 'Unconfirmed', dataValue: rtlStore.blockchainBalance.unconfirmed_balance}]; - this.information = rtlStore.information; - this.totalBalance = +rtlStore.blockchainBalance.total_balance; - this.peers = rtlStore.peers; - this.peers.forEach(peer => { - if (!peer.alias || peer.alias === '') { - peer.alias = peer.pub_key.substring(0, 15) + '...'; - } - }); this.logger.info(rtlStore); }); } - onOpenChannel() { - const peerToAddChannelMessage = { - peers: this.peers, - information: this.information, - balance: this.totalBalance - }; - this.store.dispatch(new RTLActions.OpenAlert({ data: { - alertTitle: 'Open Channel', - message: peerToAddChannelMessage, - component: OpenChannelComponent - }})); + onSelectedTabChange(event) { + this.router.navigateByUrl('/lnd/connections/' + this.links[event.index].link); } ngOnDestroy() { diff --git a/src/app/lnd/peers-channels/peers/peers.component.html b/src/app/lnd/peers-channels/peers/peers.component.html index 4afd6d7e..3db41569 100644 --- a/src/app/lnd/peers-channels/peers/peers.component.html +++ b/src/app/lnd/peers-channels/peers/peers.component.html @@ -1,20 +1,18 @@ -
+
-
-
+
+
Connected Peers
- -
- -
+ +
-
+
@@ -50,7 +48,7 @@
-
+
View Info diff --git a/src/app/lnd/peers-channels/peers/peers.component.ts b/src/app/lnd/peers-channels/peers/peers.component.ts index 6d2eb1cf..3303d58c 100644 --- a/src/app/lnd/peers-channels/peers/peers.component.ts +++ b/src/app/lnd/peers-channels/peers/peers.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from '@angular/core'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; @@ -30,12 +30,13 @@ import { isNumber } from 'util'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Peers') }, ] }) -export class PeersComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; +export class PeersComponent implements OnInit, AfterViewInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public availableBalance = 0; public faUsers = faUsers; - public displayedColumns = []; + public displayedColumns: any[] = []; + public peersData: Peer[] = []; public peers: any; public information: GetInfo = {}; public flgLoading: Array = [true]; // 0: peers @@ -74,15 +75,10 @@ export class PeersComponent implements OnInit, OnDestroy { }); this.information = rtlStore.information; this.availableBalance = rtlStore.blockchainBalance.total_balance || 0; - this.peers = new MatTableDataSource([]); - this.peers.data = []; - if (rtlStore.peers) { - this.peers = new MatTableDataSource([...rtlStore.peers]); - this.peers.data = rtlStore.peers; + this.peersData = rtlStore.peers; + if (this.peersData.length > 0) { + this.loadPeersTable(this.peersData); } - this.peers.sort = this.sort; - this.peers.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; - this.peers.paginator = this.paginator; if (this.flgLoading[0] !== 'error') { this.flgLoading[0] = false; } @@ -90,6 +86,12 @@ export class PeersComponent implements OnInit, OnDestroy { }); } + ngAfterViewInit() { + if (this.peersData.length > 0) { + this.loadPeersTable(this.peersData); + } + } + onPeerClick(selPeer: Peer, event: any) { const reorderedPeer = [ [{key: 'pub_key', value: selPeer.pub_key, title: 'Public Key', width: 100}], @@ -146,8 +148,15 @@ export class PeersComponent implements OnInit, OnDestroy { }); } - applyFilter(selFilter: string) { - this.peers.filter = selFilter; + applyFilter(selFilter: any) { + this.peers.filter = selFilter.value; + } + + loadPeersTable(peers: Peer[]) { + this.peers = peers ? new MatTableDataSource([...peers]) : new MatTableDataSource([]); + this.peers.sort = this.sort; + this.peers.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; + this.peers.paginator = this.paginator; } onDownloadCSV() { diff --git a/src/app/lnd/reports/fee/fee-report.component.html b/src/app/lnd/reports/fee/fee-report.component.html new file mode 100644 index 00000000..e971c97b --- /dev/null +++ b/src/app/lnd/reports/fee/fee-report.component.html @@ -0,0 +1,35 @@ +
+ +
+
{{(events.total_fee_msat / 1000 || 0) | number:'1.0-0'}} Sats/{{(events?.forwarding_events?.length || 0) | number}} Events
+
No fee report for the selected period
+
+ + + + Events: {{(model.extra.totalEvents || 0) | number}} + Fee: {{(model.value || 0) | number:'1.0-0'}} + + + +
+
+ +
+
+
diff --git a/src/app/lnd/reports/fee/fee-report.component.scss b/src/app/lnd/reports/fee/fee-report.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/lnd/reports/fee/fee-report.component.spec.ts b/src/app/lnd/reports/fee/fee-report.component.spec.ts new file mode 100644 index 00000000..e1cded6c --- /dev/null +++ b/src/app/lnd/reports/fee/fee-report.component.spec.ts @@ -0,0 +1,31 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { DataService } from '../../../shared/services/data.service'; + +import { FeeReportComponent } from './fee-report.component'; + +describe('FeeReportComponent', () => { + let component: FeeReportComponent; + let fixture: ComponentFixture; + const mockDataService = jasmine.createSpyObj("DataService", ["getChildAPIUrl","setChildAPIUrl","getFiatRates", + "getAliasesFromPubkeys","signMessage","verifyMessage","handleErrorWithoutAlert","handleErrorWithAlert"]); + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ FeeReportComponent ], + providers: [ + { provide: DataService, useValue: mockDataService } + ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(FeeReportComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/lnd/reports/fee/fee-report.component.ts b/src/app/lnd/reports/fee/fee-report.component.ts new file mode 100644 index 00000000..d5d03662 --- /dev/null +++ b/src/app/lnd/reports/fee/fee-report.component.ts @@ -0,0 +1,154 @@ +import { Component, OnInit, OnDestroy, HostListener, AfterViewInit } from '@angular/core'; +import { Subject } from 'rxjs'; +import { takeUntil } from 'rxjs/operators'; +import { Store } from '@ngrx/store'; + +import { SwitchRes } from '../../../shared/models/lndModels'; +import { CommonService } from '../../../shared/services/common.service'; +import { MONTHS, ScreenSizeEnum, SCROLL_RANGES } from '../../../shared/services/consts-enums-functions'; +import { DataService } from '../../../shared/services/data.service'; +import { fadeIn } from '../../../shared/animation/opacity-animation'; + +import * as fromRTLReducer from '../../../store/rtl.reducers'; + +@Component({ + selector: 'rtl-fee-report', + templateUrl: './fee-report.component.html', + styleUrls: ['./fee-report.component.scss'], + animations: [fadeIn] +}) +export class FeeReportComponent implements OnInit, AfterViewInit, OnDestroy { + public reportPeriod = SCROLL_RANGES[0]; + public secondsInADay = 24 * 60 * 60; + public events: SwitchRes = {}; + public eventFilterValue = ''; + public today = new Date(Date.now()); + public timezoneOffset = this.today.getTimezoneOffset() * 60; + public startDate = new Date(this.today.getFullYear(), this.today.getMonth(), 1, 0, 0, 0); + public endDate = new Date(this.today.getFullYear(), this.today.getMonth(), this.getMonthDays(this.today.getMonth(), this.today.getFullYear()), 23, 59, 59); + public feeReportData: any = []; + public view: [number, number] = [350, 350]; + public screenPaddingX = 100; + public gradient = true; + public xAxisLabel = 'Date'; + public yAxisLabel = 'Fee (Sats)'; + public showYAxisLabel = true; + public screenSize = ''; + public screenSizeEnum = ScreenSizeEnum; + private unSubs: Array> = [new Subject(), new Subject()]; + + constructor(private dataService: DataService, private commonService: CommonService, private store: Store) {} + + ngOnInit() { + this.screenSize = this.commonService.getScreenSize(); + this.showYAxisLabel = !(this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM); + this.store.select('lnd') + .pipe(takeUntil(this.unSubs[0])) + .subscribe((rtlStore) => { + if(rtlStore.initialAPIResponseStatus[0] === 'COMPLETE') { + this.fetchEvents(this.startDate, this.endDate); + } + }); + } + + ngAfterViewInit() { + const CONTAINER_SIZE = this.commonService.getContainerSize(); + switch (this.screenSize) { + case ScreenSizeEnum.MD: + this.screenPaddingX = CONTAINER_SIZE.width/10; + break; + + case ScreenSizeEnum.LG: + this.screenPaddingX = CONTAINER_SIZE.width/16; + break; + + default: + this.screenPaddingX = CONTAINER_SIZE.width/20; + break; + } + this.view = [CONTAINER_SIZE.width - this.screenPaddingX, CONTAINER_SIZE.height/2.2]; + } + + fetchEvents(start: Date, end: Date) { + const startDateInSeconds = (Math.round(start.getTime()/1000) - this.timezoneOffset).toString(); + const endDateInSeconds = (Math.round(end.getTime()/1000) - this.timezoneOffset).toString(); + this.dataService.getForwardingHistory(startDateInSeconds, endDateInSeconds) + .pipe(takeUntil(this.unSubs[1])).subscribe(res => { + if (res.forwarding_events && res.forwarding_events.length) { + res.forwarding_events = res.forwarding_events.reverse(); + this.events = res; + this.feeReportData = this.prepareFeeReport(start); + } else { + this.events = {}; + this.feeReportData = []; + } + }); + } + + @HostListener('mouseup', ['$event']) onChartMouseUp(e) { + if (e.srcElement.tagName === 'svg' && e.srcElement.classList.length > 0 && e.srcElement.classList[0] === 'ngx-charts') { + this.eventFilterValue = ''; + } + } + + onChartBarSelected(event) { + if(this.reportPeriod === SCROLL_RANGES[1]) { + this.eventFilterValue = event.name.toUpperCase() + '/' + this.startDate.getFullYear(); + } else { + this.eventFilterValue = event.name.toString().padStart(2, '0') + '/' + MONTHS[this.startDate.getMonth()].name.toUpperCase() + '/' + this.startDate.getFullYear(); + } + } + + prepareFeeReport(start: Date) { + const startDateInSeconds = Math.round(start.getTime()/1000) - this.timezoneOffset; + let feeReport = []; + if (this.reportPeriod === SCROLL_RANGES[1]) { + for (let i = 0; i < 12; i++) { + feeReport.push({name: MONTHS[i].name, value: 0.000000001, extra: {totalEvents: 0}}); + } + this.events.forwarding_events.map(event => { + let monthNumber = new Date((+event.timestamp + this.timezoneOffset)*1000).getMonth(); + feeReport[monthNumber].value = feeReport[monthNumber].value + (+event.fee_msat / 1000); + feeReport[monthNumber].extra.totalEvents = feeReport[monthNumber].extra.totalEvents + 1; + this.events.total_fee_msat = (this.events.total_fee_msat ? this.events.total_fee_msat : 0) + +event.fee_msat; + }); + } else { + for (let i = 0; i < this.getMonthDays(start.getMonth(), start.getFullYear()); i++) { + feeReport.push({name: i + 1, value: 0.000000001, extra: {totalEvents: 0}}); + } + this.events.forwarding_events.map(event => { + let dateNumber = Math.floor((+event.timestamp - startDateInSeconds) / this.secondsInADay); + feeReport[dateNumber].value = feeReport[dateNumber].value + (+event.fee_msat / 1000); + feeReport[dateNumber].extra.totalEvents = feeReport[dateNumber].extra.totalEvents + 1; + this.events.total_fee_msat = (this.events.total_fee_msat ? this.events.total_fee_msat : 0) + +event.fee_msat; + }); + } + return feeReport; + } + + onSelectionChange(selectedValues: {selDate: Date, selScrollRange: string}) { + const selMonth = selectedValues.selDate.getMonth(); + const selYear = selectedValues.selDate.getFullYear(); + this.reportPeriod = selectedValues.selScrollRange; + if (this.reportPeriod === SCROLL_RANGES[1]) { + this.startDate = new Date(selYear, 0, 1, 0, 0, 0); + this.endDate = new Date(selYear, 11, 31, 23, 59, 59); + } else { + this.startDate = new Date(selYear, selMonth, 1, 0, 0, 0); + this.endDate = new Date(selYear, selMonth, this.getMonthDays(selMonth, selYear), 23, 59, 59); + } + this.fetchEvents(this.startDate, this.endDate); + this.eventFilterValue = ''; + } + + getMonthDays(selMonth: number, selYear: number) { + return (selMonth === 1 && selYear%4 === 0) ? (MONTHS[selMonth].days+1) : MONTHS[selMonth].days; + } + + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } +} diff --git a/src/app/lnd/reports/reports.component.html b/src/app/lnd/reports/reports.component.html new file mode 100644 index 00000000..6b396353 --- /dev/null +++ b/src/app/lnd/reports/reports.component.html @@ -0,0 +1,15 @@ +
+ + Reports +
+
+ + + + + + +
+ \ No newline at end of file diff --git a/src/app/lnd/reports/reports.component.scss b/src/app/lnd/reports/reports.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/lnd/reports/reports.component.spec.ts b/src/app/lnd/reports/reports.component.spec.ts new file mode 100644 index 00000000..0c7a3d22 --- /dev/null +++ b/src/app/lnd/reports/reports.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ReportsComponent } from './reports.component'; + +describe('ReportsComponent', () => { + let component: ReportsComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ReportsComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ReportsComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/lnd/reports/reports.component.ts b/src/app/lnd/reports/reports.component.ts new file mode 100644 index 00000000..2f7783e8 --- /dev/null +++ b/src/app/lnd/reports/reports.component.ts @@ -0,0 +1,37 @@ +import { Component, OnDestroy, OnInit } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; +import { Subject } from 'rxjs'; +import { takeUntil, filter } from 'rxjs/operators'; +import { faChartBar } from '@fortawesome/free-solid-svg-icons'; + +@Component({ + selector: 'rtl-reports', + templateUrl: './reports.component.html', + styleUrls: ['./reports.component.scss'] +}) +export class ReportsComponent implements OnInit, OnDestroy { + public faChartBar = faChartBar; + public links = [{link: 'routingfees', name: 'Routing Fees'}, {link: 'transactions', name: 'Transactions'}]; + public activeLink = this.links[0].link; + private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; + + constructor(private router: Router) {} + + ngOnInit() { + let linkFound = this.links.find(link => this.router.url.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + let linkFound = this.links.find(link => value.urlAfterRedirects.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + }); + } + + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } + +} diff --git a/src/app/lnd/reports/transactions/transactions-report.component.html b/src/app/lnd/reports/transactions/transactions-report.component.html new file mode 100644 index 00000000..6ad52e79 --- /dev/null +++ b/src/app/lnd/reports/transactions/transactions-report.component.html @@ -0,0 +1,40 @@ +
+ +
+
+
+ Paid {{(transactionsReportSummary.amountPaidSelectedPeriod / 1000 || 0) | number:'1.0-0'}} Sats/{{transactionsReportSummary.paymentsSelectedPeriod | number}} Payments +
+
+ Received {{(transactionsReportSummary.amountReceivedSelectedPeriod / 1000 || 0) | number:'1.0-0'}} Sats/{{transactionsReportSummary.invoicesSelectedPeriod | number}} Invoices +
+
+
No transactions report for the selected period
+
+ + + {{model.name}}: {{(model.value || 0) | number:'1.0-0'}}/# {{model.name === 'Paid' ? 'Payments' : 'Invoices'}}: {{(model.extra?.total || 0) | number}} + + +
+
+ +
+
+
diff --git a/src/app/lnd/reports/transactions/transactions-report.component.scss b/src/app/lnd/reports/transactions/transactions-report.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/lnd/reports/transactions/transactions-report.component.spec.ts b/src/app/lnd/reports/transactions/transactions-report.component.spec.ts new file mode 100644 index 00000000..dda186e9 --- /dev/null +++ b/src/app/lnd/reports/transactions/transactions-report.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { TransactionsReportComponent } from './transactions-report.component'; + +describe('TransactionsReportComponent', () => { + let component: TransactionsReportComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ TransactionsReportComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(TransactionsReportComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/lnd/reports/transactions/transactions-report.component.ts b/src/app/lnd/reports/transactions/transactions-report.component.ts new file mode 100644 index 00000000..da892a40 --- /dev/null +++ b/src/app/lnd/reports/transactions/transactions-report.component.ts @@ -0,0 +1,177 @@ +import { Component, OnInit, OnDestroy, HostListener, AfterViewInit } from '@angular/core'; +import { Subject } from 'rxjs'; +import { takeUntil } from 'rxjs/operators'; +import { Store } from '@ngrx/store'; + +import { Payment, Invoice } from '../../../shared/models/lndModels'; +import { CommonService } from '../../../shared/services/common.service'; +import { MONTHS, ScreenSizeEnum, SCROLL_RANGES } from '../../../shared/services/consts-enums-functions'; +import { DataService } from '../../../shared/services/data.service'; +import { fadeIn } from '../../../shared/animation/opacity-animation'; + +import * as fromRTLReducer from '../../../store/rtl.reducers'; + +@Component({ + selector: 'rtl-transactions-report', + templateUrl: './transactions-report.component.html', + styleUrls: ['./transactions-report.component.scss'], + animations: [fadeIn] +}) +export class TransactionsReportComponent implements OnInit, AfterViewInit, OnDestroy { + public scrollRanges = SCROLL_RANGES; + public reportPeriod = SCROLL_RANGES[0]; + public secondsInADay = 24 * 60 * 60; + public payments: Payment[] = []; + public invoices: Invoice[] = []; + public transactionsReportSummary = { paymentsSelectedPeriod: 0, invoicesSelectedPeriod: 0, amountPaidSelectedPeriod: 0, amountReceivedSelectedPeriod: 0 }; + public transactionFilterValue = ''; + public today = new Date(Date.now()); + public timezoneOffset = this.today.getTimezoneOffset() * 60; + public startDate = new Date(this.today.getFullYear(), this.today.getMonth(), 1, 0, 0, 0); + public endDate = new Date(this.today.getFullYear(), this.today.getMonth(), this.getMonthDays(this.today.getMonth(), this.today.getFullYear()), 23, 59, 59); + public transactionsReportData: any = []; + public transactionsNonZeroReportData: any = []; + public view: [number, number] = [350, 350]; + public screenPaddingX = 100; + public gradient = true; + public xAxisLabel = 'Date'; + public yAxisLabel = 'Amount (Sats)'; + public showYAxisLabel = true; + public screenSize = ''; + public screenSizeEnum = ScreenSizeEnum; + private unSubs: Array> = [new Subject(), new Subject()]; + + constructor(private dataService: DataService, private commonService: CommonService, private store: Store) {} + + ngOnInit() { + this.screenSize = this.commonService.getScreenSize(); + this.showYAxisLabel = !(this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM); + this.store.select('lnd') + .pipe(takeUntil(this.unSubs[0])) + .subscribe((rtlStore) => { + if(rtlStore.initialAPIResponseStatus[0] === 'COMPLETE') { + this.dataService.getTransactionsForReport() + .pipe(takeUntil(this.unSubs[1])).subscribe(res => { + this.payments = res.payments; + this.invoices = res.invoices; + this.transactionsReportData = this.filterTransactionsForSelectedPeriod(this.startDate, this.endDate); + this.transactionsNonZeroReportData = this.prepareTableData(); + }); + } + }); + } + + ngAfterViewInit() { + const CONTAINER_SIZE = this.commonService.getContainerSize(); + switch (this.screenSize) { + case ScreenSizeEnum.MD: + this.screenPaddingX = CONTAINER_SIZE.width/10; + break; + + case ScreenSizeEnum.LG: + this.screenPaddingX = CONTAINER_SIZE.width/16; + break; + + default: + this.screenPaddingX = CONTAINER_SIZE.width/20; + break; + } + this.view = [CONTAINER_SIZE.width - this.screenPaddingX, CONTAINER_SIZE.height/2.2]; + } + + @HostListener('mouseup', ['$event']) onChartMouseUp(e) { + if (e.srcElement.tagName === 'svg' && e.srcElement.classList.length > 0 && e.srcElement.classList[0] === 'ngx-charts') { + this.transactionFilterValue = ''; + } + } + + onChartBarSelected(event) { + if(this.reportPeriod === SCROLL_RANGES[1]) { + this.transactionFilterValue = event.series.toUpperCase() + '/' + this.startDate.getFullYear(); + } else { + this.transactionFilterValue = event.series.toString().padStart(2, '0') + '/' + MONTHS[this.startDate.getMonth()].name.toUpperCase() + '/' + this.startDate.getFullYear(); + } + } + + filterTransactionsForSelectedPeriod(start: Date, end: Date) { + const startDateInSeconds = Math.round(start.getTime()/1000) - this.timezoneOffset; + const endDateInSeconds = Math.round(end.getTime()/1000) - this.timezoneOffset; + let transactionsReport = []; + this.transactionsReportSummary = { paymentsSelectedPeriod: 0, invoicesSelectedPeriod: 0, amountPaidSelectedPeriod: 0, amountReceivedSelectedPeriod: 0 }; + let filteredPayments = this.payments.filter(payment => payment.status === 'SUCCEEDED' && payment.creation_date >= startDateInSeconds && payment.creation_date < endDateInSeconds); + let filteredInvoices = this.invoices.filter(invoice => invoice.settled && +invoice.creation_date >= startDateInSeconds && +invoice.creation_date < endDateInSeconds); + this.transactionsReportSummary.paymentsSelectedPeriod = filteredPayments.length; + this.transactionsReportSummary.invoicesSelectedPeriod = filteredInvoices.length; + if (this.reportPeriod === SCROLL_RANGES[1]) { + for (let i = 0; i < 12; i++) { + transactionsReport.push({name: MONTHS[i].name, date: new Date(start.getFullYear(), i, 1, 0, 0, 0, 0), series: [{name: 'Paid', value: 0, extra: {total: 0}}, {name: 'Received', value: 0, extra: {total: 0}}]}); + } + filteredPayments.map(payment => { + let monthNumber = new Date((+payment.creation_date + this.timezoneOffset)*1000).getMonth(); + this.transactionsReportSummary.amountPaidSelectedPeriod = this.transactionsReportSummary.amountPaidSelectedPeriod + (+payment.value_msat) + (+payment.fee_msat); + transactionsReport[monthNumber].series[0].value = transactionsReport[monthNumber].series[0].value + ((+payment.value_msat + +payment.fee_msat) / 1000); + transactionsReport[monthNumber].series[0].extra.total = transactionsReport[monthNumber].series[0].extra.total + 1; + }); + filteredInvoices.map(invoice => { + let monthNumber = new Date((+invoice.creation_date + this.timezoneOffset)*1000).getMonth(); + this.transactionsReportSummary.amountReceivedSelectedPeriod = this.transactionsReportSummary.amountReceivedSelectedPeriod + (+invoice.amt_paid_msat); + transactionsReport[monthNumber].series[1].value = transactionsReport[monthNumber].series[1].value + (+invoice.amt_paid_msat / 1000); + transactionsReport[monthNumber].series[1].extra.total = transactionsReport[monthNumber].series[1].extra.total + 1; + }); + } else { + for (let i = 0; i < this.getMonthDays(start.getMonth(), start.getFullYear()); i++) { + transactionsReport.push({name: (i + 1).toString(), date: new Date((((i+1)*this.secondsInADay) + startDateInSeconds)*1000), series: [{name: 'Paid', value: 0, extra: {total: 0}}, {name: 'Received', value: 0, extra: {total: 0}}]}); + } + filteredPayments.map(payment => { + let dateNumber = Math.floor((+payment.creation_date - startDateInSeconds) / this.secondsInADay); + this.transactionsReportSummary.amountPaidSelectedPeriod = this.transactionsReportSummary.amountPaidSelectedPeriod + (+payment.value_msat) + (+payment.fee_msat); + transactionsReport[dateNumber].series[0].value = transactionsReport[dateNumber].series[0].value + ((+payment.value_msat + +payment.fee_msat) / 1000); + transactionsReport[dateNumber].series[0].extra.total = transactionsReport[dateNumber].series[0].extra.total + 1; + }); + filteredInvoices.map(invoice => { + let dateNumber = Math.floor((+invoice.creation_date - startDateInSeconds) / this.secondsInADay); + this.transactionsReportSummary.amountReceivedSelectedPeriod = this.transactionsReportSummary.amountReceivedSelectedPeriod + (+invoice.amt_paid_msat); + transactionsReport[dateNumber].series[1].value = transactionsReport[dateNumber].series[1].value + (+invoice.amt_paid_msat / 1000); + transactionsReport[dateNumber].series[1].extra.total = transactionsReport[dateNumber].series[1].extra.total + 1; + }); + } + return transactionsReport; + } + + prepareTableData() { + return this.transactionsReportData.reduce((acc, curr) => { + if (curr.series[0].value > 0 || curr.series[1].value >0) { + return acc.concat({date: curr.date, date_str: this.commonService.convertTimestampToDate((curr.date.getTime()/1000) - this.timezoneOffset), amount_paid: curr.series[0].value, num_payments: curr.series[0].extra.total, amount_received: curr.series[1].value, num_invoices: curr.series[1].extra.total}); + } + return acc; + }, []); + } + + onSelectionChange(selectedValues: {selDate: Date, selScrollRange: string}) { + const selMonth = selectedValues.selDate.getMonth(); + const selYear = selectedValues.selDate.getFullYear(); + this.reportPeriod = selectedValues.selScrollRange; + if (this.reportPeriod === SCROLL_RANGES[1]) { + this.startDate = new Date(selYear, 0, 1, 0, 0, 0); + this.endDate = new Date(selYear, 11, 31, 23, 59, 59); + } else { + this.startDate = new Date(selYear, selMonth, 1, 0, 0, 0); + this.endDate = new Date(selYear, selMonth, this.getMonthDays(selMonth, selYear), 23, 59, 59); + } + this.transactionsReportData = this.filterTransactionsForSelectedPeriod(this.startDate, this.endDate); + this.transactionsNonZeroReportData = this.prepareTableData(); + this.transactionFilterValue = ''; + } + + getMonthDays(selMonth: number, selYear: number) { + return (selMonth === 1 && selYear%4 === 0) ? (MONTHS[selMonth].days+1) : MONTHS[selMonth].days; + } + + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } +} + diff --git a/src/app/lnd/routing/forwarding-history/forwarding-history.component.html b/src/app/lnd/routing/forwarding-history/forwarding-history.component.html index a29343cd..24d48b52 100644 --- a/src/app/lnd/routing/forwarding-history/forwarding-history.component.html +++ b/src/app/lnd/routing/forwarding-history/forwarding-history.component.html @@ -1,11 +1,12 @@ -
-
+
+
{{errorMessage}}
+
- +
-
+
diff --git a/src/app/lnd/routing/forwarding-history/forwarding-history.component.ts b/src/app/lnd/routing/forwarding-history/forwarding-history.component.ts index 369bac9e..82207608 100644 --- a/src/app/lnd/routing/forwarding-history/forwarding-history.component.ts +++ b/src/app/lnd/routing/forwarding-history/forwarding-history.component.ts @@ -1,4 +1,6 @@ -import { Component, OnInit, OnChanges, ViewChild, Input } from '@angular/core'; +import { Component, OnInit, OnChanges, ViewChild, Input, SimpleChanges, OnDestroy, AfterViewInit } from '@angular/core'; +import { Subject } from 'rxjs'; +import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { MatPaginator, MatPaginatorIntl } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; @@ -20,17 +22,21 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Events') } ] }) -export class ForwardingHistoryComponent implements OnInit, OnChanges { - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; - @Input() forwardingHistoryData: any; - public displayedColumns = []; +export class ForwardingHistoryComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy { + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; + @Input() eventsData = []; + @Input() filterValue = ''; + public forwardingHistoryData = []; + public errorMessage = ''; + public displayedColumns: any[] = []; public forwardingHistoryEvents: any; public flgSticky = false; public pageSize = PAGE_SIZE; public pageSizeOptions = PAGE_SIZE_OPTIONS; public screenSize = ''; public screenSizeEnum = ScreenSizeEnum; + private unSubs: Array> = [new Subject(), new Subject(), new Subject()]; constructor(private logger: LoggerService, private commonService: CommonService, private store: Store) { this.screenSize = this.commonService.getScreenSize(); @@ -46,10 +52,39 @@ export class ForwardingHistoryComponent implements OnInit, OnChanges { } } - ngOnInit() {} + ngOnInit() { + this.store.select('lnd') + .pipe(takeUntil(this.unSubs[0])) + .subscribe((rtlStore) => { + if (this.eventsData.length <= 0) { + this.errorMessage = ''; + rtlStore.effectErrors.forEach(effectsErr => { + if (effectsErr.action === 'GetForwardingHistory') { + this.errorMessage = (typeof(effectsErr.message) === 'object') ? JSON.stringify(effectsErr.message) : effectsErr.message; + } + }); + this.forwardingHistoryData = (rtlStore.forwardingHistory && rtlStore.forwardingHistory.forwarding_events) ? rtlStore.forwardingHistory.forwarding_events : []; + this.loadForwardingEventsTable(this.forwardingHistoryData); + this.logger.info(rtlStore); + } + }); + } - ngOnChanges() { - this.loadForwardingEventsTable(this.forwardingHistoryData); + ngAfterViewInit() { + if (this.forwardingHistoryData.length > 0) { + this.loadForwardingEventsTable(this.forwardingHistoryData); + } + } + + ngOnChanges(changes: SimpleChanges) { + if (changes.eventsData) { + this.eventsData = changes.eventsData.currentValue; + this.forwardingHistoryData = this.eventsData; + this.loadForwardingEventsTable(this.forwardingHistoryData); + } + if (changes.filterValue) { + this.applyFilter(); + } } onForwardingEventClick(selFEvent: ForwardingEvent, event: any) { @@ -73,7 +108,7 @@ export class ForwardingHistoryComponent implements OnInit, OnChanges { loadForwardingEventsTable(forwardingEvents: ForwardingEvent[]) { this.forwardingHistoryEvents = new MatTableDataSource([...forwardingEvents]); this.forwardingHistoryEvents.sort = this.sort; - this.forwardingHistoryEvents.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.forwardingHistoryEvents.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; this.forwardingHistoryEvents.paginator = this.paginator; this.logger.info(this.forwardingHistoryEvents); } @@ -84,8 +119,16 @@ export class ForwardingHistoryComponent implements OnInit, OnChanges { } } - applyFilter(selFilter: string) { - this.forwardingHistoryEvents.filter = selFilter; + applyFilter() { + if (this.forwardingHistoryEvents) { + this.forwardingHistoryEvents.filter = this.filterValue; + } } + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } } diff --git a/src/app/lnd/routing/routing-peers/routing-peers.component.html b/src/app/lnd/routing/routing-peers/routing-peers.component.html index ffc8a594..7f18aa89 100644 --- a/src/app/lnd/routing/routing-peers/routing-peers.component.html +++ b/src/app/lnd/routing/routing-peers/routing-peers.component.html @@ -1,13 +1,14 @@ -
-
+
+
{{errorMessage}}
+
Incoming
- +
-
+
Timestamp
@@ -28,7 +29,7 @@ - @@ -47,10 +48,10 @@
Outgoing
- +
-
+
Channel ID Actions +
diff --git a/src/app/lnd/routing/routing-peers/routing-peers.component.ts b/src/app/lnd/routing/routing-peers/routing-peers.component.ts index 751cc59a..c10aaa13 100644 --- a/src/app/lnd/routing/routing-peers/routing-peers.component.ts +++ b/src/app/lnd/routing/routing-peers/routing-peers.component.ts @@ -1,4 +1,6 @@ -import { Component, OnInit, OnChanges, ViewChild, Input } from '@angular/core'; +import { Component, OnInit, ViewChild, OnDestroy } from '@angular/core'; +import { Subject } from 'rxjs'; +import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { Actions } from '@ngrx/effects'; @@ -17,16 +19,18 @@ import { AlertTypeEnum, DataTypeEnum, ScreenSizeEnum } from '../../../shared/ser templateUrl: './routing-peers.component.html', styleUrls: ['./routing-peers.component.scss'] }) -export class RoutingPeersComponent implements OnInit, OnChanges { - @ViewChild(MatSort, { static: true }) sortIn: MatSort; - @ViewChild('tableOut', {read: MatSort, static: true}) sortOut: MatSort; - @Input() routingPeersData: any; - public displayedColumns = []; +export class RoutingPeersComponent implements OnInit, OnDestroy { + @ViewChild(MatSort, { static: false }) sortIn: MatSort; + @ViewChild('tableOut', {read: MatSort, static: false}) sortOut: MatSort; + public routingPeersData = []; + public errorMessage = ''; + public displayedColumns: any[] = []; public RoutingPeersIncoming: any; public RoutingPeersOutgoing: any; public flgSticky = false; public screenSize = ''; public screenSizeEnum = ScreenSizeEnum; + private unSubs: Array> = [new Subject(), new Subject(), new Subject()]; constructor(private logger: LoggerService, private commonService: CommonService, private store: Store, private actions$: Actions) { this.screenSize = this.commonService.getScreenSize(); @@ -45,10 +49,24 @@ export class RoutingPeersComponent implements OnInit, OnChanges { } } - ngOnInit() {} - - ngOnChanges() { - this.loadRoutingPeersTable(this.routingPeersData); + ngOnInit() { + this.store.select('lnd') + .pipe(takeUntil(this.unSubs[0])) + .subscribe((rtlStore) => { + this.errorMessage = ''; + rtlStore.effectErrors.forEach(effectsErr => { + if (effectsErr.action === 'GetForwardingHistory') { + this.errorMessage = (typeof(effectsErr.message) === 'object') ? JSON.stringify(effectsErr.message) : effectsErr.message; + } + }); + if (rtlStore.forwardingHistory && rtlStore.forwardingHistory.forwarding_events) { + this.routingPeersData = rtlStore.forwardingHistory.forwarding_events; + } else { + this.routingPeersData = []; + } + this.loadRoutingPeersTable(this.routingPeersData); + this.logger.info(rtlStore); + }); } onRoutingPeerClick(selRPeer: RoutingPeers, event: any, direction: string) { @@ -109,12 +127,19 @@ export class RoutingPeersComponent implements OnInit, OnChanges { return [this.commonService.sortDescByKey(incomingResults, 'total_amount'), this.commonService.sortDescByKey(outgoingResults, 'total_amount')]; } - applyIncomingFilter(selFilter: string) { - this.RoutingPeersIncoming.filter = selFilter; + applyIncomingFilter(selFilter: any) { + this.RoutingPeersIncoming.filter = selFilter.value; } - applyOutgoingFilter(selFilter: string) { - this.RoutingPeersOutgoing.filter = selFilter; + applyOutgoingFilter(selFilter: any) { + this.RoutingPeersOutgoing.filter = selFilter.value; + } + + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); } } diff --git a/src/app/lnd/routing/routing.component.html b/src/app/lnd/routing/routing.component.html index 7b38e2b4..9fd3829f 100644 --- a/src/app/lnd/routing/routing.component.html +++ b/src/app/lnd/routing/routing.component.html @@ -1,24 +1,26 @@
-
+
Routing
- +
- + Invalid date format. - + Invalid date format.
@@ -26,17 +28,13 @@
-
- - -
{{errorMessage}}
- -
- -
{{errorMessage}}
- -
-
+
+ +
+
+
diff --git a/src/app/lnd/routing/routing.component.ts b/src/app/lnd/routing/routing.component.ts index d63641ed..d7d1a118 100644 --- a/src/app/lnd/routing/routing.component.ts +++ b/src/app/lnd/routing/routing.component.ts @@ -1,14 +1,11 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; -import { Actions } from '@ngrx/effects'; import { faMapSigns } from '@fortawesome/free-solid-svg-icons'; -import { LoggerService } from '../../shared/services/logger.service'; - import * as LNDActions from '../store/lnd.actions'; -import * as RTLActions from '../../store/rtl.actions'; import * as fromRTLReducer from '../../store/rtl.reducers'; @Component({ @@ -18,53 +15,35 @@ import * as fromRTLReducer from '../../store/rtl.reducers'; }) export class RoutingComponent implements OnInit, OnDestroy { public faMapSigns = faMapSigns; - public lastOffsetIndex = 0; - public eventsData = []; public today = new Date(Date.now()); - public lastMonthDay = new Date( - this.today.getFullYear(), this.today.getMonth(), this.today.getDate() - 30, - this.today.getHours(), this.today.getMinutes(), this.today.getSeconds() - ); - public yesterday = new Date(this.today.getFullYear(), this.today.getMonth(), this.today.getDate() - 1, this.today.getHours(), this.today.getMinutes(), this.today.getSeconds()); + public lastMonthDay = new Date(this.today.getFullYear(), this.today.getMonth() - 1, this.today.getDate() + 1, 0, 0, 0); + public yesterday = new Date(this.today.getFullYear(), this.today.getMonth(), this.today.getDate() - 1, 0, 0, 0); public endDate = this.today; public startDate = this.lastMonthDay; - public flgLoading: Array = [true]; - public errorMessage = ''; + public links = [{link: 'forwardinghistory', name: 'Forwarding History'}, {link: 'peers', name: 'Routing Peers'}]; + public activeLink = this.links[0].link; private unSubs: Array> = [new Subject(), new Subject(), new Subject()]; - constructor(private logger: LoggerService, private store: Store, private actions$: Actions) {} + constructor(private store: Store, private router: Router) {} ngOnInit() { this.onEventsFetch(); - this.store.select('lnd') - .pipe(takeUntil(this.unSubs[0])) - .subscribe((rtlStore) => { - this.errorMessage = ''; - rtlStore.effectErrors.forEach(effectsErr => { - if (effectsErr.action === 'GetForwardingHistory') { - this.flgLoading[0] = 'error'; - this.errorMessage = (typeof(effectsErr.message) === 'object') ? JSON.stringify(effectsErr.message) : effectsErr.message; - } - }); - if ( rtlStore.forwardingHistory && rtlStore.forwardingHistory.forwarding_events) { - this.lastOffsetIndex = rtlStore.forwardingHistory.last_offset_index; - this.eventsData = rtlStore.forwardingHistory.forwarding_events; - } else { - // To reset table after other Forwarding history calls - this.lastOffsetIndex = 0; - this.eventsData = []; - } - if (this.flgLoading[0] !== 'error') { - this.flgLoading[0] = ( rtlStore.forwardingHistory) ? false : true; - } - this.logger.info(rtlStore); + let linkFound = this.links.find(link => this.router.url.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + let linkFound = this.links.find(link => value.urlAfterRedirects.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; }); } onEventsFetch() { - if (!this.endDate) { this.endDate = new Date(); } + this.store.dispatch(new LNDActions.SetForwardingHistory({})); + if (!this.endDate) { + this.endDate = this.today; + } if (!this.startDate) { - this.startDate = new Date(this.endDate.getFullYear(), this.endDate.getMonth(), this.endDate.getDate() - 30); + this.startDate = new Date(this.endDate.getFullYear(), this.endDate.getMonth() - 1, this.endDate.getDate() + 1, 0, 0, 0); } this.store.dispatch(new LNDActions.GetForwardingHistory({ end_time: Math.round(this.endDate.getTime() / 1000).toString(), @@ -75,7 +54,6 @@ export class RoutingComponent implements OnInit, OnDestroy { resetData() { this.endDate = this.today; this.startDate = this.lastMonthDay; - this.lastOffsetIndex = 0; } ngOnDestroy() { diff --git a/src/app/lnd/sign-verify-message/sign-verify-message.component.html b/src/app/lnd/sign-verify-message/sign-verify-message.component.html index ed74866d..499d96b5 100644 --- a/src/app/lnd/sign-verify-message/sign-verify-message.component.html +++ b/src/app/lnd/sign-verify-message/sign-verify-message.component.html @@ -1,14 +1,16 @@ -
+
Sign/Verify Message
- - - - + +
+ +
diff --git a/src/app/lnd/sign-verify-message/sign-verify-message.component.ts b/src/app/lnd/sign-verify-message/sign-verify-message.component.ts index ae92ccd8..2458ef85 100644 --- a/src/app/lnd/sign-verify-message/sign-verify-message.component.ts +++ b/src/app/lnd/sign-verify-message/sign-verify-message.component.ts @@ -1,4 +1,7 @@ -import { Component } from '@angular/core'; +import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; +import { Subject } from 'rxjs'; +import { takeUntil, filter } from 'rxjs/operators'; import { faUserCheck } from '@fortawesome/free-solid-svg-icons'; @Component({ @@ -6,9 +9,29 @@ import { faUserCheck } from '@fortawesome/free-solid-svg-icons'; templateUrl: './sign-verify-message.component.html', styleUrls: ['./sign-verify-message.component.scss'] }) -export class SignVerifyMessageComponent { +export class SignVerifyMessageComponent implements OnInit, OnDestroy { public faUserCheck = faUserCheck; + public links = [{link: 'sign', name: 'Sign'}, {link: 'verify', name: 'Verify'}]; + public activeLink = this.links[0].link; + private unSubs: Array> = [new Subject(), new Subject()]; - constructor() {} + constructor(private router: Router) {} + + ngOnInit() { + let linkFound = this.links.find(link => this.router.url.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + let linkFound = this.links.find(link => value.urlAfterRedirects.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + }); + } + + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } } diff --git a/src/app/lnd/sign-verify-message/sign/sign.component.ts b/src/app/lnd/sign-verify-message/sign/sign.component.ts index 5083670b..66c6fb96 100644 --- a/src/app/lnd/sign-verify-message/sign/sign.component.ts +++ b/src/app/lnd/sign-verify-message/sign/sign.component.ts @@ -21,7 +21,7 @@ export class SignComponent implements OnInit, OnDestroy { ngOnInit() {} - onSign() { + onSign():boolean|void { if (!this.message || this.message === '') { return true; } this.dataService.signMessage(this.message).pipe(takeUntil(this.unSubs[0])).subscribe(res => { this.signedMessage = this.message; diff --git a/src/app/lnd/sign-verify-message/verify/verify.component.ts b/src/app/lnd/sign-verify-message/verify/verify.component.ts index 8b8291aa..26d976fe 100644 --- a/src/app/lnd/sign-verify-message/verify/verify.component.ts +++ b/src/app/lnd/sign-verify-message/verify/verify.component.ts @@ -24,7 +24,7 @@ export class VerifyComponent implements OnInit, OnDestroy { ngOnInit() {} - onVerify() { + onVerify():boolean|void { if ((!this.message || this.message === '') || (!this.signature || this.signature === '')) { return true; } this.dataService.verifyMessage(this.message, this.signature).pipe(takeUntil(this.unSubs[0])) .subscribe(res => { diff --git a/src/app/lnd/transactions/create-invoice-modal/create-invoice.component.html b/src/app/lnd/transactions/create-invoice-modal/create-invoice.component.html index 525c6b92..d306ec86 100644 --- a/src/app/lnd/transactions/create-invoice-modal/create-invoice.component.html +++ b/src/app/lnd/transactions/create-invoice-modal/create-invoice.component.html @@ -12,12 +12,12 @@ - + {{information?.smaller_currency_unit}} {{invoiceValueHint}} - + {{selTimeUnit | titlecase}} diff --git a/src/app/lnd/transactions/invoice-information-modal/invoice-information.component.html b/src/app/lnd/transactions/invoice-information-modal/invoice-information.component.html index 0866a8e9..078bda6c 100644 --- a/src/app/lnd/transactions/invoice-information-modal/invoice-information.component.html +++ b/src/app/lnd/transactions/invoice-information-modal/invoice-information.component.html @@ -15,7 +15,7 @@ -
+

{{screenSize === screenSizeEnum.XS ? 'Amount' : 'Amount Requested'}}

@@ -89,7 +89,7 @@ {{htlc.chan_id}} - {{htlc.amt_msat/1000 | number:htlc?.amt_msat < 1000 ? '1.0-4' : '1.0-0'}} + {{((+htlc.amt_msat/1000) || 0) | number:getDecimalFormat(htlc)}}
diff --git a/src/app/lnd/transactions/invoice-information-modal/invoice-information.component.ts b/src/app/lnd/transactions/invoice-information-modal/invoice-information.component.ts index 45eb05e4..2ccdca93 100644 --- a/src/app/lnd/transactions/invoice-information-modal/invoice-information.component.ts +++ b/src/app/lnd/transactions/invoice-information-modal/invoice-information.component.ts @@ -61,4 +61,8 @@ export class InvoiceInformationComponent implements OnInit { this.snackBar.open('Payment request copied.'); this.logger.info('Copied Text: ' + payload); } + + getDecimalFormat(htlc: any):string { + return htlc.amt_msat < 1000 ? '1.0-4' : '1.0-0'; + } } diff --git a/src/app/lnd/transactions/invoices/lightning-invoices.component.html b/src/app/lnd/transactions/invoices/lightning-invoices.component.html index ee65c16c..5e49144a 100644 --- a/src/app/lnd/transactions/invoices/lightning-invoices.component.html +++ b/src/app/lnd/transactions/invoices/lightning-invoices.component.html @@ -1,10 +1,10 @@
-
+ - + {{information?.smaller_currency_unit}} {{invoiceValueHint}} @@ -13,20 +13,20 @@
-
+
-
-
-
+
+
+
Invoices History
- - + +
-
+
Channel ID
diff --git a/src/app/lnd/transactions/invoices/lightning-invoices.component.ts b/src/app/lnd/transactions/invoices/lightning-invoices.component.ts index 01b04182..95f1cd6d 100644 --- a/src/app/lnd/transactions/invoices/lightning-invoices.component.ts +++ b/src/app/lnd/transactions/invoices/lightning-invoices.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy, ViewChild, Input } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, Input, AfterViewInit } from '@angular/core'; import { DecimalPipe } from '@angular/common'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; @@ -31,9 +31,9 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Invoices') }, ] }) -export class LightningInvoicesComponent implements OnInit, OnDestroy { - @Input() showDetails = true; - @ViewChild(MatSort, { static: true }) sort: MatSort; +export class LightningInvoicesComponent implements OnInit, AfterViewInit, OnDestroy { + @Input() calledFrom = 'transactions'; // transactions/home + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; faHistory = faHistory; public selNode: SelNodeChild = {}; public newlyAddedInvoiceMemo = null; @@ -43,8 +43,9 @@ export class LightningInvoicesComponent implements OnInit, OnDestroy { public expiry: number; public invoiceValue: number; public invoiceValueHint = ''; - public displayedColumns = []; + public displayedColumns: any[] = []; public invoicePaymentReq = ''; + public invoicesData: Invoice[] = []; public invoices: any; public information: GetInfo = {}; public flgLoading: Array = [true]; @@ -91,14 +92,24 @@ export class LightningInvoicesComponent implements OnInit, OnDestroy { this.totalInvoices = rtlStore.totalInvoices; this.firstOffset = +rtlStore.invoices.first_index_offset; this.lastOffset = +rtlStore.invoices.last_index_offset; - this.logger.info(rtlStore); - this.loadInvoicesTable(rtlStore.invoices.invoices ? rtlStore.invoices.invoices : []); + this.invoicesData = rtlStore.invoices.invoices ? rtlStore.invoices.invoices : []; + if (this.invoicesData.length > 0) { + this.loadInvoicesTable(this.invoicesData); + } if (this.flgLoading[0] !== 'error') { this.flgLoading[0] = ( rtlStore.invoices) ? false : true; } + this.logger.info(rtlStore); }); } + ngAfterViewInit() { + if (this.invoicesData.length > 0) { + this.loadInvoicesTable(this.invoicesData); + } + } + + onAddInvoice(form: any) { let expiryInSecs = (this.expiry ? this.expiry : 3600); this.flgAnimate = true; @@ -122,7 +133,7 @@ export class LightningInvoicesComponent implements OnInit, OnDestroy { loadInvoicesTable(invoices) { this.invoices = new MatTableDataSource([...invoices]); this.invoices.sort = this.sort; - this.invoices.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.invoices.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; setTimeout(() => { this.flgAnimate = false; }, 5000); this.logger.info(this.invoices); } @@ -135,8 +146,8 @@ export class LightningInvoicesComponent implements OnInit, OnDestroy { this.invoiceValueHint = ''; } - applyFilter(selFilter: string) { - this.invoices.filter = selFilter; + applyFilter(selFilter: any) { + this.invoices.filter = selFilter.value; } onPageChange(event: any) { diff --git a/src/app/lnd/transactions/payments/lightning-payments.component.html b/src/app/lnd/transactions/payments/lightning-payments.component.html index 75ab7390..adfad222 100644 --- a/src/app/lnd/transactions/payments/lightning-payments.component.html +++ b/src/app/lnd/transactions/payments/lightning-payments.component.html @@ -1,7 +1,7 @@ -
-
+
+ - + {{paymentDecodedHint}} Payment request is required. @@ -10,142 +10,143 @@
-
+
-
-
-
+
+
+
Payments History
- - + +
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + +
Creation Date - - - {{payment?.creation_date_str}} - Payment Hash{{payment?.payment_hash}}Fee (Sats){{payment?.fee | number}}Value (Sats){{payment?.value | number}}#Hops{{payment?.htlcs[0]?.route?.hops?.length || 0}} -
- - - Download CSV - -
-
- - -

No payments available.

-
- +
+
+ + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - + + + + + + - - - -
Creation Date - Total Attempts: {{payment?.htlcs?.length}} - - - - - - {{htlc.attempt_time_str}} - - - - {{payment?.payment_hash}} - - - HTLC {{i + 1}} - - - - {{payment?.fee | number:'1.0-0'}} - - - {{htlc.route?.total_fees | number:'1.0-0'}} - - - - {{payment?.value | number:'1.0-0'}} - - - {{htlc.route?.total_amt | number:'1.0-0'}} - - - - - - - - {{(htlc.route?.hops?.length || 0) | number:'1.0-0'}} - - - - - - -
-
- + {{payment?.creation_date_str}} +
Payment Hash{{payment?.payment_hash}}Fee (Sats){{payment?.fee | number}}Value (Sats){{payment?.value | number}}#Hops{{payment?.htlcs[0]?.route?.hops?.length || 0}} +
+ + + Download CSV +
- - - -
+ + +

No payments available.

+
+ + +
+ + + + Total Attempts: {{payment?.htlcs?.length}} + + + + + + {{htlc.attempt_time_str}} + + + + {{payment?.payment_hash}} + + + HTLC {{i + 1}} + + + + {{payment?.fee | number:'1.0-0'}} + + + {{htlc.route?.total_fees | number:'1.0-0'}} + + + + {{payment?.value | number:'1.0-0'}} + + + {{htlc.route?.total_amt | number:'1.0-0'}} + + + + - + + + {{(htlc.route?.hops?.length || 0) | number:'1.0-0'}} + + + + + + +
+
+ +
+
+
+ +
-
diff --git a/src/app/lnd/transactions/payments/lightning-payments.component.ts b/src/app/lnd/transactions/payments/lightning-payments.component.ts index 93f5b2d2..184288c6 100644 --- a/src/app/lnd/transactions/payments/lightning-payments.component.ts +++ b/src/app/lnd/transactions/payments/lightning-payments.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy, ViewChild, Input } from '@angular/core'; +import { Component, OnInit, OnDestroy, ViewChild, Input, AfterViewInit } from '@angular/core'; import { DecimalPipe } from '@angular/common'; import { Subject, forkJoin } from 'rxjs'; import { takeUntil, take } from 'rxjs/operators'; @@ -33,11 +33,11 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Payments') } ] }) -export class LightningPaymentsComponent implements OnInit, OnDestroy { - @Input() showDetails = true; +export class LightningPaymentsComponent implements OnInit, AfterViewInit, OnDestroy { + @Input() calledFrom = 'transactions'; // transactions/home @ViewChild('sendPaymentForm', { static: false }) form; //static should be false due to ngIf on form element - @ViewChild(MatSort, { static: true }) sort: MatSort; - @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; + @ViewChild(MatSort, {static: false}) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; public faHistory = faHistory; public newlyAddedPayment = ''; public flgAnimate = true; @@ -47,7 +47,7 @@ export class LightningPaymentsComponent implements OnInit, OnDestroy { public peers: Peer[] = []; public payments: any; public paymentJSONArr: Payment[] = []; - public displayedColumns = []; + public displayedColumns: any[] = []; public htlcColumns = []; public paymentDecoded: PayRequest = {}; public paymentRequest = ''; @@ -93,11 +93,9 @@ export class LightningPaymentsComponent implements OnInit, OnDestroy { this.selNode = rtlStore.nodeSettings; this.peers = rtlStore.peers; this.paymentJSONArr = (rtlStore.payments && rtlStore.payments.length > 0) ? rtlStore.payments : []; - this.payments = (rtlStore.payments) ? new MatTableDataSource([]) : new MatTableDataSource([...this.paymentJSONArr]); - this.payments.data = this.paymentJSONArr; - this.payments.sort = this.sort; - this.payments.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; - this.payments.paginator = this.paginator; + if (this.paymentJSONArr && this.paymentJSONArr.length > 0) { + this.loadPaymentsTable(this.paymentJSONArr); + } setTimeout(() => { this.flgAnimate = false; }, 3000); if (this.flgLoading[0] !== 'error') { this.flgLoading[0] = ( this.paymentJSONArr) ? false : true; @@ -106,7 +104,13 @@ export class LightningPaymentsComponent implements OnInit, OnDestroy { }); } - onSendPayment() { + ngAfterViewInit() { + if (this.paymentJSONArr && this.paymentJSONArr.length > 0) { + this.loadPaymentsTable(this.paymentJSONArr); + } + } + + onSendPayment():boolean|void { if(!this.paymentRequest) { return true; } if ( this.paymentDecoded.timestamp_str) { this.sendPayment(); @@ -339,10 +343,26 @@ export class LightningPaymentsComponent implements OnInit, OnDestroy { }})); } - applyFilter(selFilter: string) { - this.payments.filter = selFilter; + applyFilter(selFilter: any) { + this.payments.filter = selFilter.value; } + loadPaymentsTable(payments) { + this.payments = (payments) ? new MatTableDataSource([]) : new MatTableDataSource([...payments]); + this.payments.data = payments; + this.payments.sortingDataAccessor = (data: any, sortHeaderId: string) => { + switch (sortHeaderId) { + case 'hops': + return (data.htlcs.length && data.htlcs[0] && data.htlcs[0].route && data.htlcs[0].route.hops && data.htlcs[0].route.hops.length ) ? data.htlcs[0].route.hops.length : 0; + + default: + return (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; + } + } + this.payments.sort = this.sort; + this.payments.paginator = this.paginator; +} + onDownloadCSV() { if(this.payments.data && this.payments.data.length > 0) { let paymentsDataCopy = JSON.parse(JSON.stringify(this.payments.data)); diff --git a/src/app/lnd/transactions/query-routes/query-routes.component.html b/src/app/lnd/transactions/query-routes/query-routes.component.html index 951cd693..ee6dc330 100644 --- a/src/app/lnd/transactions/query-routes/query-routes.component.html +++ b/src/app/lnd/transactions/query-routes/query-routes.component.html @@ -9,7 +9,7 @@ Destination pubkey is required. - + Amount is required.
@@ -17,13 +17,13 @@
-
-
+
+
Transaction Route
-
+
diff --git a/src/app/lnd/transactions/query-routes/query-routes.component.ts b/src/app/lnd/transactions/query-routes/query-routes.component.ts index 64792c3a..4f56ce3c 100644 --- a/src/app/lnd/transactions/query-routes/query-routes.component.ts +++ b/src/app/lnd/transactions/query-routes/query-routes.component.ts @@ -21,12 +21,12 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; styleUrls: ['./query-routes.component.scss'] }) export class QueryRoutesComponent implements OnInit, OnDestroy { - @ViewChild(MatSort, { static: true }) sort: MatSort; + @ViewChild(MatSort, { static: false }) sort: MatSort|undefined; public destinationPubkey = ''; public amount = null; public qrHops: any; public flgSticky = false; - public displayedColumns = []; + public displayedColumns: any[] = []; public flgLoading: Array = [false]; // 0: peers public faRoute = faRoute; public faExclamationTriangle = faExclamationTriangle; @@ -65,11 +65,11 @@ export class QueryRoutesComponent implements OnInit, OnDestroy { this.flgLoading[0] = 'error'; } this.qrHops.sort = this.sort; - this.qrHops.sortingDataAccessor = (data, sortHeaderId) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : +data[sortHeaderId]; + this.qrHops.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; }); } - onQueryRoutes() { + onQueryRoutes():boolean|void { if(!this.destinationPubkey || !this.amount) { return true; } this.flgLoading[0] = true; this.store.dispatch(new LNDActions.GetQueryRoutes({destPubkey: this.destinationPubkey, amount: this.amount})); diff --git a/src/app/lnd/transactions/send-payment-modal/send-payment.component.html b/src/app/lnd/transactions/send-payment-modal/send-payment.component.html index 719401ec..e90d2353 100644 --- a/src/app/lnd/transactions/send-payment-modal/send-payment.component.html +++ b/src/app/lnd/transactions/send-payment-modal/send-payment.component.html @@ -34,7 +34,7 @@ - + {{selFeeLimitType.placeholder}} is required. diff --git a/src/app/lnd/transactions/send-payment-modal/send-payment.component.ts b/src/app/lnd/transactions/send-payment-modal/send-payment.component.ts index f189c72a..35a209e5 100644 --- a/src/app/lnd/transactions/send-payment-modal/send-payment.component.ts +++ b/src/app/lnd/transactions/send-payment-modal/send-payment.component.ts @@ -25,7 +25,7 @@ import * as fromRTLReducer from '../../../store/rtl.reducers'; styleUrls: ['./send-payment.component.scss'], }) export class LightningSendPaymentsComponent implements OnInit, OnDestroy { - @ViewChild('paymentReq', { static: true }) paymentReq: NgModel; + @ViewChild('paymentReq', { static: false }) paymentReq: NgModel; public faExclamationTriangle = faExclamationTriangle; public selNode: SelNodeChild = {}; public paymentDecoded: PayRequest = {}; @@ -70,7 +70,7 @@ export class LightningSendPaymentsComponent implements OnInit, OnDestroy { }); } - onSendPayment() { + onSendPayment():boolean|void { if(!this.paymentRequest) { return true; } if ( this.paymentDecoded.timestamp_str) { this.sendPayment(); diff --git a/src/app/lnd/transactions/transactions.component.html b/src/app/lnd/transactions/transactions.component.html index 9689c525..79fc7ea3 100644 --- a/src/app/lnd/transactions/transactions.component.html +++ b/src/app/lnd/transactions/transactions.component.html @@ -1,4 +1,4 @@ -
+
Lightning Balance
@@ -9,18 +9,19 @@
-
+
Lightning Transactions
- - - - - + +
+ +
diff --git a/src/app/lnd/transactions/transactions.component.ts b/src/app/lnd/transactions/transactions.component.ts index 81b67989..cf4fb718 100644 --- a/src/app/lnd/transactions/transactions.component.ts +++ b/src/app/lnd/transactions/transactions.component.ts @@ -1,12 +1,13 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; -import { takeUntil } from 'rxjs/operators'; +import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { faExchangeAlt, faChartPie } from '@fortawesome/free-solid-svg-icons'; +import { UserPersonaEnum } from '../../shared/services/consts-enums-functions'; import { LoggerService } from '../../shared/services/logger.service'; import * as fromRTLReducer from '../../store/rtl.reducers'; -import { UserPersonaEnum } from '../../shared/services/consts-enums-functions'; @Component({ selector: 'rtl-transactions', @@ -18,13 +19,22 @@ export class TransactionsComponent implements OnInit, OnDestroy { faChartPie = faChartPie; currencyUnits = []; balances = [{title: 'Local Capacity', dataValue: 0, tooltip: 'Amount you can send'}, {title: 'Remote Capacity', dataValue: 0, tooltip: 'Amount you can receive'}]; + public links = [{link: 'payments', name: 'Payments'}, {link: 'invoices', name: 'Invoices'}, {link: 'queryroutes', name: 'Query Routes'}]; + public activeLink = this.links[0].link; private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; - constructor(private logger: LoggerService, private store: Store) {} + constructor(private logger: LoggerService, private store: Store, private router: Router) {} ngOnInit() { + let linkFound = this.links.find(link => this.router.url.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + let linkFound = this.links.find(link => value.urlAfterRedirects.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + }); this.store.select('lnd') - .pipe(takeUntil(this.unSubs[0])) + .pipe(takeUntil(this.unSubs[1])) .subscribe((rtlStore) => { this.currencyUnits = rtlStore.nodeSettings.currencyUnits; if(rtlStore.nodeSettings.userPersona === UserPersonaEnum.OPERATOR) { diff --git a/src/app/lnd/wallet/initialize/initialize.component.ts b/src/app/lnd/wallet/initialize/initialize.component.ts index 545f0bbb..c3fc5797 100644 --- a/src/app/lnd/wallet/initialize/initialize.component.ts +++ b/src/app/lnd/wallet/initialize/initialize.component.ts @@ -32,7 +32,7 @@ export const cipherSeedLength: ValidatorFn = (control: FormGroup): ValidationErr }] }) export class InitializeWalletComponent implements OnInit, OnDestroy { - @ViewChild(MatStepper, { static: true }) stepper: MatStepper; + @ViewChild(MatStepper, { static: false }) stepper: MatStepper; public insecureLND = false; public genSeedResponse = []; public initWalletResponse = ''; @@ -107,7 +107,7 @@ export class InitializeWalletComponent implements OnInit, OnDestroy { } - onInitWallet() { + onInitWallet():boolean|void { if (this.passwordFormGroup.invalid || this.cipherFormGroup.invalid || this.passphraseFormGroup.invalid) { return true; } this.store.dispatch(new RTLActions.OpenSpinner('Initializing...')); if (this.cipherFormGroup.controls.existingCipher.value) { diff --git a/src/app/lnd/wallet/unlock/unlock.component.ts b/src/app/lnd/wallet/unlock/unlock.component.ts index 1973b936..d90327c0 100644 --- a/src/app/lnd/wallet/unlock/unlock.component.ts +++ b/src/app/lnd/wallet/unlock/unlock.component.ts @@ -19,7 +19,7 @@ export class UnlockWalletComponent implements OnInit { this.walletPassword = ''; } - onUnlockWallet() { + onUnlockWallet():boolean|void { if(!this.walletPassword) { return true; } this.store.dispatch(new RTLActions.OpenSpinner('Unlocking...')); this.store.dispatch(new LNDActions.UnlockWallet({pwd: window.btoa(this.walletPassword)})); diff --git a/src/app/lnd/wallet/wallet.component.html b/src/app/lnd/wallet/wallet.component.html index fb5f20c0..93d11ac9 100644 --- a/src/app/lnd/wallet/wallet.component.html +++ b/src/app/lnd/wallet/wallet.component.html @@ -1,4 +1,4 @@ -
+
Wallet
diff --git a/src/app/shared/animation/opacity-animation.ts b/src/app/shared/animation/opacity-animation.ts index 79219a84..1f168540 100644 --- a/src/app/shared/animation/opacity-animation.ts +++ b/src/app/shared/animation/opacity-animation.ts @@ -1,4 +1,4 @@ -import { animate, style, transition, trigger } from '@angular/animations'; +import { animate, keyframes, style, transition, trigger } from '@angular/animations'; export const opacityAnimation = [ trigger('opacityAnimation', [ @@ -11,3 +11,16 @@ export const opacityAnimation = [ ]) ]) ]; + +export const fadeIn = [ + trigger('fadeIn', [ + transition('void => *', []), // when the item is created + transition('* => void', []), // when the item is removed + transition('* => *', [ // when the item is changed + animate(800, keyframes([ // animate for 800 ms + style ({ opacity: 0, transform: 'translateY(100%)' }), + style ({ opacity: 1, transform: 'translateY(0%)' }), + ])), + ]), + ]) +]; diff --git a/src/app/shared/components/data-modal/alert-message/alert-message.component.html b/src/app/shared/components/data-modal/alert-message/alert-message.component.html index ee9cb261..a9e3dc54 100644 --- a/src/app/shared/components/data-modal/alert-message/alert-message.component.html +++ b/src/app/shared/components/data-modal/alert-message/alert-message.component.html @@ -1,6 +1,6 @@
@@ -10,7 +10,7 @@ - + @@ -38,7 +38,7 @@

{{data.titleMessage}}

diff --git a/src/app/shared/components/data-modal/confirmation-message/confirmation-message.component.html b/src/app/shared/components/data-modal/confirmation-message/confirmation-message.component.html index 7ae1fc0b..86a1d405 100644 --- a/src/app/shared/components/data-modal/confirmation-message/confirmation-message.component.html +++ b/src/app/shared/components/data-modal/confirmation-message/confirmation-message.component.html @@ -41,9 +41,9 @@
- - - + + +
diff --git a/src/app/shared/components/data-modal/confirmation-message/confirmation-message.component.ts b/src/app/shared/components/data-modal/confirmation-message/confirmation-message.component.ts index 3bda37ff..1d07a87d 100644 --- a/src/app/shared/components/data-modal/confirmation-message/confirmation-message.component.ts +++ b/src/app/shared/components/data-modal/confirmation-message/confirmation-message.component.ts @@ -39,7 +39,7 @@ export class ConfirmationMessageComponent implements OnInit { } } - onClose(dialogRes: any) { + onClose(dialogRes: any):boolean|void { if (dialogRes && this.getInputs && this.getInputs.some(input => !input.inputValue)) { return true; } this.store.dispatch(new RTLActions.CloseConfirmation(dialogRes)); } diff --git a/src/app/shared/components/data-modal/login-2fa-token/login-2fa-token.component.ts b/src/app/shared/components/data-modal/login-2fa-token/login-2fa-token.component.ts index f978b2d5..23b59e29 100644 --- a/src/app/shared/components/data-modal/login-2fa-token/login-2fa-token.component.ts +++ b/src/app/shared/components/data-modal/login-2fa-token/login-2fa-token.component.ts @@ -42,7 +42,7 @@ export class LoginTokenComponent implements OnInit, OnDestroy { this.dialogRef.close(false); } - onVerifyToken() { + onVerifyToken():boolean|void { if (!this.token) { return true; } this.tokenErrorMessage = ''; this.store.dispatch(new RTLActions.VerifyTwoFA({token: this.token, authResponse: this.authRes})); diff --git a/src/app/shared/components/data-modal/two-factor-auth/two-factor-auth.component.html b/src/app/shared/components/data-modal/two-factor-auth/two-factor-auth.component.html index 4138790c..d8d59398 100644 --- a/src/app/shared/components/data-modal/two-factor-auth/two-factor-auth.component.html +++ b/src/app/shared/components/data-modal/two-factor-auth/two-factor-auth.component.html @@ -13,7 +13,7 @@
- Password is required. + Password is required.
@@ -25,7 +25,7 @@
{{secretFormLabel}}
- +
@@ -34,8 +34,8 @@
- - Secret Code is required. + + Secret Code is required.
@@ -50,12 +50,12 @@
- Token is required. - Token is invalid. + Token is required. + Token is invalid.
- +
diff --git a/src/app/shared/components/data-modal/two-factor-auth/two-factor-auth.component.ts b/src/app/shared/components/data-modal/two-factor-auth/two-factor-auth.component.ts index f840e841..9a973128 100644 --- a/src/app/shared/components/data-modal/two-factor-auth/two-factor-auth.component.ts +++ b/src/app/shared/components/data-modal/two-factor-auth/two-factor-auth.component.ts @@ -1,13 +1,13 @@ import { Component, OnInit, OnDestroy, Inject, ViewChild } from '@angular/core'; import { FormGroup, FormBuilder, Validators } from '@angular/forms'; import { Subject } from 'rxjs'; -import { take, takeUntil } from 'rxjs/operators'; +import { take } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { MatSnackBar } from '@angular/material/snack-bar'; import { MatVerticalStepper } from '@angular/material/stepper'; -import { authenticator } from 'otplib/otplib-browser'; import { faInfoCircle, faCopy, faExclamationTriangle } from '@fortawesome/free-solid-svg-icons'; +import { authenticator } from 'otplib'; import * as sha256 from 'sha256'; import { RTLConfiguration } from '../../../models/RTLconfig'; @@ -23,7 +23,6 @@ import * as RTLActions from '../../../../store/rtl.actions'; styleUrls: ['./two-factor-auth.component.scss'] }) export class TwoFactorAuthComponent implements OnInit, OnDestroy { - @ViewChild('twoFAForm', { static: true }) twoFAForm: any; @ViewChild('stepper', { static: false }) stepper: MatVerticalStepper; public faExclamationTriangle = faExclamationTriangle; public faCopy = faCopy; @@ -38,10 +37,17 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy { public secretFormLabel = 'Scan or copy the secret'; public tokenFormLabel = 'Verify your authentication is working'; public disableFormLabel = 'Disable two factor authentication'; - passwordFormGroup: FormGroup; - secretFormGroup: FormGroup; - tokenFormGroup: FormGroup; - disableFormGroup: FormGroup; + passwordFormGroup: FormGroup = this.formBuilder.group({ + hiddenPassword: ['', [Validators.required]], + password: ['', [Validators.required]] + }); + secretFormGroup: FormGroup = this.formBuilder.group({ + secret: [{value: '', disabled: true}, Validators.required] + }); + tokenFormGroup: FormGroup = this.formBuilder.group({ + token: ['', Validators.required] + }); + disableFormGroup: FormGroup = this.formBuilder.group({}); unSubs: Array> = [new Subject(), new Subject()]; constructor(public dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: AuthConfig, private store: Store, private formBuilder: FormBuilder, private rtlEffects: RTLEffects, private snackBar: MatSnackBar) {} @@ -49,17 +55,9 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy { ngOnInit() { this.appConfig = this.data.appConfig; this.showDisableStepper = !!this.appConfig.enable2FA; - this.passwordFormGroup = this.formBuilder.group({ - hiddenPassword: ['', [Validators.required]], - password: ['', [Validators.required]] - }); - this.secretFormGroup = this.formBuilder.group({ + this.secretFormGroup = this.formBuilder.group({ secret: [{value: !this.appConfig.enable2FA ? this.generateSecret() : '', disabled: true}, Validators.required] - }); - this.tokenFormGroup = this.formBuilder.group({ - token: ['', Validators.required] - }); - this.disableFormGroup = this.formBuilder.group({}); + }); } generateSecret() { @@ -68,7 +66,7 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy { return secret2fa; } - onAuthenticate() { + onAuthenticate():boolean|void { if (!this.passwordFormGroup.controls.password.value) { return true; } this.flgValidated = false; this.store.dispatch(new RTLActions.IsAuthorized(sha256(this.passwordFormGroup.controls.password.value))); @@ -89,7 +87,7 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy { this.snackBar.open('Secret code ' + this.secretFormGroup.controls.secret.value + ' copied.'); } - onVerifyToken() { + onVerifyToken():boolean|void { if (this.appConfig.enable2FA) { this.store.dispatch(new RTLActions.OpenSpinner('Updating Settings...')); this.store.dispatch(new RTLActions.TwoFASaveSettings({secret2fa: ''})); diff --git a/src/app/shared/components/error/error.component.html b/src/app/shared/components/error/error.component.html index 31274700..66f335ed 100644 --- a/src/app/shared/components/error/error.component.html +++ b/src/app/shared/components/error/error.component.html @@ -1,4 +1,4 @@ -
+
Error {{error.errorCode}}
diff --git a/src/app/shared/components/help/help.component.html b/src/app/shared/components/help/help.component.html index a44ba4d5..9c66817e 100644 --- a/src/app/shared/components/help/help.component.html +++ b/src/app/shared/components/help/help.component.html @@ -1,5 +1,5 @@
-
+
Help
diff --git a/src/app/shared/components/horizontal-scroller/horizontal-scroller.component.html b/src/app/shared/components/horizontal-scroller/horizontal-scroller.component.html new file mode 100644 index 00000000..acca4c9f --- /dev/null +++ b/src/app/shared/components/horizontal-scroller/horizontal-scroller.component.html @@ -0,0 +1,38 @@ +
+
+ + +
+ + + +
+ + +
+
+ +
+
+ + + {{scrollRange | titlecase}} + + +
+
+ + + + + + + + + + +
+
+
\ No newline at end of file diff --git a/src/app/shared/components/horizontal-scroller/horizontal-scroller.component.scss b/src/app/shared/components/horizontal-scroller/horizontal-scroller.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/shared/components/horizontal-scroller/horizontal-scroller.component.spec.ts b/src/app/shared/components/horizontal-scroller/horizontal-scroller.component.spec.ts new file mode 100644 index 00000000..7fb22590 --- /dev/null +++ b/src/app/shared/components/horizontal-scroller/horizontal-scroller.component.spec.ts @@ -0,0 +1,43 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { HorizontalScrollerComponent } from './horizontal-scroller.component'; +import { CommonService } from '../../services/common.service'; +import { Store, StoreModule } from '@ngrx/store'; +import * as fromRTLReducer from '../../../store/rtl.reducers'; +import { RTLReducer } from '../../../store/rtl.reducers'; + +describe('HorizontalScrollerComponent', () => { + let component: HorizontalScrollerComponent; + let fixture: ComponentFixture; + const mockCommonService = jasmine.createSpyObj("CommonService",["getScreenSize","setScreenSize", +"sortDescByKey","camelCase","titleCase","convertCurrency","convertWithoutFiat","convertWithFiat", +"convertTime","convertTimestampToDate","downloadFile","convertToCSV"]); + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ HorizontalScrollerComponent ], + providers: [ + { provide: CommonService, useValue: mockCommonService } + ], + imports:[ + StoreModule.forRoot(RTLReducer, { + runtimeChecks: { + strictStateImmutability: false, + strictActionImmutability: false + } + }) + ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(HorizontalScrollerComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/shared/components/horizontal-scroller/horizontal-scroller.component.ts b/src/app/shared/components/horizontal-scroller/horizontal-scroller.component.ts new file mode 100644 index 00000000..2c73883e --- /dev/null +++ b/src/app/shared/components/horizontal-scroller/horizontal-scroller.component.ts @@ -0,0 +1,107 @@ +import { Component, Output, EventEmitter, OnInit, ViewChild, HostListener } from '@angular/core'; + +import { sliderAnimation } from '../../../shared/animation/slider-animation'; +import { SCROLL_RANGES } from '../../services/consts-enums-functions'; +import { LoggerService } from '../../services/logger.service'; + +@Component({ + selector: 'rtl-horizontal-scroller', + templateUrl: './horizontal-scroller.component.html', + styleUrls: ['./horizontal-scroller.component.scss'], + animations: [sliderAnimation] +}) +export class HorizontalScrollerComponent implements OnInit { + @ViewChild('monthlyDatepicker') monthlyDatepicker; + @ViewChild('yearlyDatepicker') yearlyDatepicker; + public scrollRanges = SCROLL_RANGES; + public selScrollRange = this.scrollRanges[0]; + public today = new Date(Date.now()); + public first = new Date(2018, 0, 1, 0, 0, 0); + public last = new Date(this.today.getFullYear(), this.today.getMonth(), this.today.getDate(), 0, 0, 0); + public disablePrev = false; + public disableNext = true; + public animationDirection = ''; + public selectedValue = this.last; + @Output() stepChanged = new EventEmitter<{selDate:Date, selScrollRange:string}>(); + + constructor(private logger: LoggerService) {} + + ngOnInit() {} + + onRangeChanged(event: any) { + this.selScrollRange = event.value; + this.onStepChange('LAST'); + } + + onMonthSelected(event: any) { + this.selectedValue = event; + this.onStepChange('SELECTED'); + this.monthlyDatepicker.close(); + } + + onYearSelected(event: any) { + this.selectedValue = event; + this.onStepChange('SELECTED'); + this.yearlyDatepicker.close(); + } + + onStepChange(direction: string) { + this.logger.info(direction); + switch (direction) { + case 'FIRST': + this.animationDirection = 'backward'; + if (this.selectedValue !== this.first) { + this.selectedValue = this.first; + this.stepChanged.emit({selDate: this.selectedValue, selScrollRange: this.selScrollRange}); + } + break; + + case 'PREVIOUS': + if (this.selScrollRange === SCROLL_RANGES[1]) { + this.selectedValue = new Date(this.selectedValue.getFullYear() - 1, 0, 1, 0, 0, 0); + } else { + this.selectedValue = new Date(this.selectedValue.getFullYear(), this.selectedValue.getMonth() - 1, 1, 0, 0, 0); + } + this.animationDirection = 'backward'; + this.stepChanged.emit({selDate: this.selectedValue, selScrollRange: this.selScrollRange}); + break; + + case 'NEXT': + if (this.selScrollRange === SCROLL_RANGES[1]) { + this.selectedValue = new Date(this.selectedValue.getFullYear() + 1, 0, 1, 0, 0, 0); + } else { + this.selectedValue = new Date(this.selectedValue.getFullYear(), this.selectedValue.getMonth() + 1 , 1, 0, 0, 0); + } + this.animationDirection = 'forward'; + this.stepChanged.emit({selDate: this.selectedValue, selScrollRange: this.selScrollRange}); + break; + + case 'LAST': + this.animationDirection = 'forward'; + this.selectedValue = this.last; + this.stepChanged.emit({selDate: this.selectedValue, selScrollRange: this.selScrollRange}); + break; + + default: + this.animationDirection = ''; + this.stepChanged.emit({selDate: this.selectedValue, selScrollRange: this.selScrollRange}); + break; + } + this.disablePrev = (this.selScrollRange === SCROLL_RANGES[1]) ? this.selectedValue.getFullYear() <= this.first.getFullYear() : (this.selectedValue.getFullYear() <= this.first.getFullYear() && this.selectedValue.getMonth() <= this.first.getMonth()); + this.disableNext = (this.selScrollRange === SCROLL_RANGES[1]) ? this.selectedValue.getFullYear() >= this.last.getFullYear() : (this.selectedValue.getFullYear() >= this.last.getFullYear() && this.selectedValue.getMonth() >= this.last.getMonth()); + this.logger.info(this.disablePrev); + this.logger.info(this.disableNext); + setTimeout(() => { + this.animationDirection = ''; + }, 800); + } + + @HostListener('click', ['$event']) onChartMouseUp(e) { + if(e.srcElement.name === 'monthlyDate') { + this.monthlyDatepicker.open(); + } else if(e.srcElement.name === 'yearlyDate') { + this.yearlyDatepicker.open(); + } + } + +} diff --git a/src/app/shared/components/login/login.component.html b/src/app/shared/components/login/login.component.html index 6fb65002..9f363db7 100644 --- a/src/app/shared/components/login/login.component.html +++ b/src/app/shared/components/login/login.component.html @@ -1,4 +1,4 @@ -
+
Login to RTL
diff --git a/src/app/shared/components/login/login.component.ts b/src/app/shared/components/login/login.component.ts index 85e0e551..1905295b 100644 --- a/src/app/shared/components/login/login.component.ts +++ b/src/app/shared/components/login/login.component.ts @@ -57,7 +57,7 @@ export class LoginComponent implements OnInit, OnDestroy { }); } - onLogin() { + onLogin():boolean|void { if(!this.password) { return true; } this.loginErrorMessage = ''; if (this.appConfig.enable2FA) { diff --git a/src/app/shared/components/navigation/side-navigation/side-navigation.component.html b/src/app/shared/components/navigation/side-navigation/side-navigation.component.html index 5fba470a..4dfd2518 100644 --- a/src/app/shared/components/navigation/side-navigation/side-navigation.component.html +++ b/src/app/shared/components/navigation/side-navigation/side-navigation.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/src/app/shared/components/navigation/side-navigation/side-navigation.component.ts b/src/app/shared/components/navigation/side-navigation/side-navigation.component.ts index 94a804af..c884e10b 100644 --- a/src/app/shared/components/navigation/side-navigation/side-navigation.component.ts +++ b/src/app/shared/components/navigation/side-navigation/side-navigation.component.ts @@ -27,7 +27,7 @@ import { CommonService } from '../../../services/common.service'; styleUrls: ['./side-navigation.component.scss'] }) export class SideNavigationComponent implements OnInit, OnDestroy { - @ViewChild(MatTree, { static: true }) tree: any; + @ViewChild(MatTree, { static: false }) tree: any; @Output() ChildNavClicked = new EventEmitter(); faEject = faEject; faEye = faEye; @@ -173,8 +173,8 @@ export class SideNavigationComponent implements OnInit, OnDestroy { this.navMenus.data = clonedMenu.filter(navMenuData => { if(navMenuData.children && navMenuData.children.length) { navMenuData.children = navMenuData.children.filter(navMenuChild => { - return ((navMenuChild.userPersona === UserPersonaEnum.ALL || navMenuChild.userPersona === this.settings.userPersona) && navMenuChild.link !== '/cl/signverify') - || (navMenuChild.link === '/cl/signverify' && this.information.api_version && this.commonService.isVersionCompatible(this.information.api_version, '0.2.2')); + return ((navMenuChild.userPersona === UserPersonaEnum.ALL || navMenuChild.userPersona === this.settings.userPersona) && navMenuChild.link !== '/cl/messages') + || (navMenuChild.link === '/cl/messages' && this.information.api_version && this.commonService.isVersionCompatible(this.information.api_version, '0.2.2')); }); } return navMenuData.userPersona === UserPersonaEnum.ALL || navMenuData.userPersona === this.settings.userPersona; diff --git a/src/app/shared/components/navigation/top-menu/top-menu.component.html b/src/app/shared/components/navigation/top-menu/top-menu.component.html index 37069a0b..2b3caeb2 100644 --- a/src/app/shared/components/navigation/top-menu/top-menu.component.html +++ b/src/app/shared/components/navigation/top-menu/top-menu.component.html @@ -13,7 +13,7 @@ - \ No newline at end of file diff --git a/src/app/shared/components/navigation/top-menu/top-menu.component.ts b/src/app/shared/components/navigation/top-menu/top-menu.component.ts index 386e63b5..bb33a133 100644 --- a/src/app/shared/components/navigation/top-menu/top-menu.component.ts +++ b/src/app/shared/components/navigation/top-menu/top-menu.component.ts @@ -43,10 +43,8 @@ export class TopMenuComponent implements OnInit, OnDestroy { .pipe(takeUntil(this.unSubs[0])) .subscribe((rtlStore) => { this.selNode = rtlStore.selNode; - this.information = rtlStore.nodeData; this.flgLoading = ( this.information.identity_pubkey) ? false : true; - if ( this.information.identity_pubkey) { if ( this.information.chains && typeof this.information.chains[0] === 'string') { this.informationChain.chain = this.information.chains[0].toString(); diff --git a/src/app/shared/components/not-found/not-found.component.html b/src/app/shared/components/not-found/not-found.component.html index b488a14a..452c73ac 100644 --- a/src/app/shared/components/not-found/not-found.component.html +++ b/src/app/shared/components/not-found/not-found.component.html @@ -1,4 +1,4 @@ -
+
Page Not Found
diff --git a/src/app/shared/components/settings/app-settings/app-settings.component.html b/src/app/shared/components/settings/app-settings/app-settings.component.html index b5e6a5a7..f8cb52ca 100644 --- a/src/app/shared/components/settings/app-settings/app-settings.component.html +++ b/src/app/shared/components/settings/app-settings/app-settings.component.html @@ -1,4 +1,4 @@ -
+
@@ -21,9 +21,9 @@
-
+
-
+
Customization
@@ -38,7 +38,7 @@
- +
@@ -53,7 +53,7 @@
- +

Mode

@@ -77,7 +77,7 @@
-
+
diff --git a/src/app/shared/components/settings/app-settings/app-settings.component.ts b/src/app/shared/components/settings/app-settings/app-settings.component.ts index 2b7d2455..3067d3b6 100644 --- a/src/app/shared/components/settings/app-settings/app-settings.component.ts +++ b/src/app/shared/components/settings/app-settings/app-settings.component.ts @@ -87,7 +87,7 @@ export class AppSettingsComponent implements OnInit, OnDestroy { this.selNode.settings.themeMode = this.selectedThemeMode.id; } - onUpdateSettings() { + onUpdateSettings():boolean|void { if(this.selNode.settings.fiatConversion && !this.selNode.settings.currencyUnit) { return true; } let defaultNodeIndex = (this.previousDefaultNode !== this.appConfig.defaultNodeIndex) ? this.appConfig.defaultNodeIndex : null; this.logger.info(this.selNode.settings); diff --git a/src/app/shared/components/settings/auth-settings/auth-settings.component.html b/src/app/shared/components/settings/auth-settings/auth-settings.component.html index ba604923..d862ef5a 100644 --- a/src/app/shared/components/settings/auth-settings/auth-settings.component.html +++ b/src/app/shared/components/settings/auth-settings/auth-settings.component.html @@ -1,5 +1,5 @@
-
+
Password diff --git a/src/app/shared/components/settings/auth-settings/auth-settings.component.ts b/src/app/shared/components/settings/auth-settings/auth-settings.component.ts index 3bec5ffa..22fdbfa4 100644 --- a/src/app/shared/components/settings/auth-settings/auth-settings.component.ts +++ b/src/app/shared/components/settings/auth-settings/auth-settings.component.ts @@ -29,21 +29,23 @@ export class AuthSettingsComponent implements OnInit, OnDestroy { public confirmPassword = ''; public errorMsg = ''; public errorConfirmMsg = ''; + public initializeNodeData = false; public appConfig: RTLConfiguration; public selNode: ConfigSettingsNode; - unSubs: Array> = [new Subject(), new Subject()]; + unSubs: Array> = [new Subject(), new Subject(), new Subject()]; constructor(private store: Store, private logger: LoggerService, private actions$: Actions, private router: Router) {} ngOnInit() { + this.initializeNodeData = !!history.state.initial; this.store.select('root') - .pipe(takeUntil(this.unSubs[0])) + .pipe(takeUntil(this.unSubs[1])) .subscribe((rtlStore) => { this.appConfig = rtlStore.appConfig; this.selNode = rtlStore.selNode; this.logger.info(rtlStore); }); - this.actions$.pipe(takeUntil(this.unSubs[1]), + this.actions$.pipe(takeUntil(this.unSubs[2]), filter((action) => action.type === RTLActions.RESET_PASSWORD_RES)) .subscribe((action: (RTLActions.ResetPasswordRes)) => { if (this.currPassword.toLowerCase() === 'password') { @@ -65,7 +67,7 @@ export class AuthSettingsComponent implements OnInit, OnDestroy { }); } - onChangePassword() { + onChangePassword():boolean|void { if(!this.currPassword || !this.newPassword || !this.confirmPassword || this.currPassword === this.newPassword || this.newPassword !== this.confirmPassword) { return true; } this.store.dispatch(new RTLActions.ResetPassword({currPassword: sha256(this.currPassword), newPassword: sha256(this.newPassword)})); } @@ -118,6 +120,9 @@ export class AuthSettingsComponent implements OnInit, OnDestroy { } ngOnDestroy() { + if(this.initializeNodeData) { + this.store.dispatch(new RTLActions.SetSelelectedNode({lnNode: this.selNode, isInitialSetup: true})); + } this.unSubs.forEach(unsub => { unsub.next(); unsub.complete(); diff --git a/src/app/shared/components/settings/server-config/server-config.component.html b/src/app/shared/components/settings/server-config/server-config.component.html index 82a8d3fe..51a29476 100644 --- a/src/app/shared/components/settings/server-config/server-config.component.html +++ b/src/app/shared/components/settings/server-config/server-config.component.html @@ -4,7 +4,7 @@
{{configData | json}}
-
+
diff --git a/src/app/shared/components/settings/server-config/server-config.component.ts b/src/app/shared/components/settings/server-config/server-config.component.ts index 3cf9f2b8..502fa944 100644 --- a/src/app/shared/components/settings/server-config/server-config.component.ts +++ b/src/app/shared/components/settings/server-config/server-config.component.ts @@ -1,28 +1,34 @@ -import { Component, OnInit, Input } from '@angular/core'; +import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; -import { takeUntil } from 'rxjs/operators'; +import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; +import { faCog } from '@fortawesome/free-solid-svg-icons'; import { RTLEffects } from '../../../../store/rtl.effects'; import * as RTLActions from '../../../../store/rtl.actions'; import * as fromRTLReducer from '../../../../store/rtl.reducers'; -import { faCog } from '@fortawesome/free-solid-svg-icons'; @Component({ selector: 'rtl-server-config', templateUrl: './server-config.component.html', styleUrls: ['./server-config.component.scss'] }) -export class ServerConfigComponent implements OnInit { - @Input() selectedNodeType = ''; +export class ServerConfigComponent implements OnInit, OnDestroy { + public selectedNodeType = ''; public configData = ''; public fileFormat = 'INI'; public faCog = faCog; private unSubs: Array> = [new Subject(), new Subject()]; - constructor(private store: Store, private rtlEffects: RTLEffects) {} + constructor(private store: Store, private rtlEffects: RTLEffects, private router: Router) {} ngOnInit() { + this.selectedNodeType = (this.router.url.includes('bconfig')) ? 'bitcoind' : 'ln'; + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + this.selectedNodeType = (value.urlAfterRedirects.includes('bconfig')) ? 'bitcoind' : 'ln'; + }); this.store.dispatch(new RTLActions.OpenSpinner('Opening Config File...')); this.store.dispatch(new RTLActions.FetchConfig(this.selectedNodeType)); this.rtlEffects.showLnConfig @@ -30,7 +36,7 @@ export class ServerConfigComponent implements OnInit { .subscribe((config: any) => { const configFile = config.data; this.fileFormat = config.format; - if (configFile !== '' && configFile && this.fileFormat === 'INI') { + if (configFile !== '' && configFile && (this.fileFormat === 'INI' || this.fileFormat === 'HOCON')) { this.configData = configFile.split('\n'); } else if (configFile !== '' && configFile && this.fileFormat === 'JSON') { this.configData = configFile; @@ -40,4 +46,10 @@ export class ServerConfigComponent implements OnInit { }); } + ngOnDestroy() { + this.unSubs.forEach(completeSub => { + completeSub.next(); + completeSub.complete(); + }); + } } diff --git a/src/app/shared/components/settings/settings.component.html b/src/app/shared/components/settings/settings.component.html index b8d580a4..4fc5e31e 100644 --- a/src/app/shared/components/settings/settings.component.html +++ b/src/app/shared/components/settings/settings.component.html @@ -1,24 +1,19 @@ -
+
Settings
- - - - - - - - - - - - - - + +
+ +
diff --git a/src/app/shared/components/settings/settings.component.ts b/src/app/shared/components/settings/settings.component.ts index a5ba2bbe..d09cf89a 100644 --- a/src/app/shared/components/settings/settings.component.ts +++ b/src/app/shared/components/settings/settings.component.ts @@ -1,13 +1,12 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; -import { ActivatedRoute } from '@angular/router'; +import { Router, ResolveEnd } from '@angular/router'; import { Subject } from 'rxjs'; -import { takeUntil } from 'rxjs/operators'; +import { takeUntil, filter } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { faTools } from '@fortawesome/free-solid-svg-icons'; import { ConfigSettingsNode, RTLConfiguration } from '../../models/RTLconfig'; import * as fromRTLReducer from '../../../store/rtl.reducers'; -import * as RTLActions from '../../../store/rtl.actions'; @Component({ selector: 'rtl-settings', @@ -21,21 +20,21 @@ export class SettingsComponent implements OnInit, OnDestroy{ public selNode: ConfigSettingsNode; public appConfig: RTLConfiguration; public lnImplementationStr = ''; - public loadTab = 'appSettings'; - public initializeNodeData = false; - private unSubs: Array> = [new Subject(), new Subject()]; + public links = [{link: 'layout', name: 'Layout'}, {link: 'auth', name: 'Authentication'}, {link: 'lnconfig', name: this.lnImplementationStr}, {link: 'bconfig', name: 'BitcoinD Config'}]; + public activeLink = ''; + private unSubs: Array> = [new Subject(), new Subject(), new Subject()]; - constructor(private store: Store, private activatedRoute: ActivatedRoute) {} + constructor(private store: Store, private router: Router) {} ngOnInit() { - this.activatedRoute.paramMap - .pipe(takeUntil(this.unSubs[0])) - .subscribe(data => { - this.loadTab = window.history.state.loadTab ? window.history.state.loadTab : 'appSettings'; - this.initializeNodeData = window.history.state.initializeNodeData ? window.history.state.initializeNodeData : false; - }); - this.store.select('root') - .pipe(takeUntil(this.unSubs[1])) + let linkFound = this.links.find(link => this.router.url.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + this.router.events.pipe(takeUntil(this.unSubs[0]), filter(e => e instanceof ResolveEnd)) + .subscribe((value: ResolveEnd) => { + let linkFound = this.links.find(link => value.urlAfterRedirects.includes(link.link)); + this.activeLink = linkFound ? linkFound.link : this.links[0].link; + }); + this.store.select('root').pipe(takeUntil(this.unSubs[1])) .subscribe((rtlStore) => { this.showLnConfig = false; this.showBitcoind = false; @@ -54,8 +53,8 @@ export class SettingsComponent implements OnInit, OnDestroy{ this.lnImplementationStr = 'LND Config'; break; } - if (this.selNode.authentication && this.selNode.authentication.configPath && this.selNode.authentication.configPath.trim() !== '') { + this.links[2].name = this.lnImplementationStr; this.showLnConfig = true; } if (this.selNode.settings && this.selNode.settings.bitcoindConfigPath && this.selNode.settings.bitcoindConfigPath.trim() !== '') { @@ -65,9 +64,6 @@ export class SettingsComponent implements OnInit, OnDestroy{ } ngOnDestroy() { - if(this.initializeNodeData) { - this.store.dispatch(new RTLActions.SetSelelectedNode({lnNode: this.selNode, isInitialSetup: true})); - } this.unSubs.forEach(completeSub => { completeSub.next(); completeSub.complete(); diff --git a/src/app/shared/components/transactions-report-table/transactions-report-table.component.html b/src/app/shared/components/transactions-report-table/transactions-report-table.component.html new file mode 100644 index 00000000..4133125d --- /dev/null +++ b/src/app/shared/components/transactions-report-table/transactions-report-table.component.html @@ -0,0 +1,58 @@ +
+
+
+
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Date{{transaction?.date | date:(dataRange === scrollRanges[1] ? 'MMM/yyyy' : 'dd/MMM/yyyy') | uppercase}}Amount Paid (Sats){{transaction?.amount_paid | number:'1.0-0'}}# Payments{{transaction?.num_payments | number}}Amount Received (Sats){{transaction?.amount_received | number:'1.0-0'}}# Invoices{{transaction?.num_invoices | number}} +
+ + + Download CSV + +
+
+ + +

No transactions available.

+
+ +
+
+
+
diff --git a/src/app/shared/components/transactions-report-table/transactions-report-table.component.scss b/src/app/shared/components/transactions-report-table/transactions-report-table.component.scss new file mode 100644 index 00000000..0ad983c7 --- /dev/null +++ b/src/app/shared/components/transactions-report-table/transactions-report-table.component.scss @@ -0,0 +1,3 @@ +.mat-column-actions { + min-height: 4.8rem; +} diff --git a/src/app/shared/components/transactions-report-table/transactions-report-table.component.ts b/src/app/shared/components/transactions-report-table/transactions-report-table.component.ts new file mode 100644 index 00000000..9c33b8be --- /dev/null +++ b/src/app/shared/components/transactions-report-table/transactions-report-table.component.ts @@ -0,0 +1,101 @@ +import { Component, ViewChild, Input, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core'; +import { DatePipe } from '@angular/common'; +import { Store } from '@ngrx/store'; + +import { MatPaginator, MatPaginatorIntl } from '@angular/material/paginator'; +import { MatSort } from '@angular/material/sort'; +import { MatTableDataSource } from '@angular/material/table'; +import { PAGE_SIZE, PAGE_SIZE_OPTIONS, getPaginatorLabel, AlertTypeEnum, DataTypeEnum, ScreenSizeEnum, SCROLL_RANGES } from '../../services/consts-enums-functions'; +import { CommonService } from '../../services/common.service'; + +import * as RTLActions from '../../../store/rtl.actions'; +import * as fromRTLReducer from '../../../store/rtl.reducers'; + +@Component({ + selector: 'rtl-transactions-report-table', + templateUrl: './transactions-report-table.component.html', + styleUrls: ['./transactions-report-table.component.scss'], + providers: [ + { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Transactions') } + ] +}) +export class TransactionsReportTableComponent implements AfterViewInit, OnChanges { + @Input() dataRange = SCROLL_RANGES[0]; + @Input() dataList = []; + @Input() filterValue = ''; + @ViewChild(MatSort, {static: false}) sort: MatSort|undefined; + @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator|undefined; + public scrollRanges = SCROLL_RANGES; + public transactions: any; + public displayedColumns: any[] = []; + public flgSticky = false; + public pageSize = PAGE_SIZE; + public pageSizeOptions = PAGE_SIZE_OPTIONS; + public screenSize = ''; + public screenSizeEnum = ScreenSizeEnum; + + constructor(private commonService: CommonService, private store: Store, private datePipe: DatePipe) { + this.screenSize = this.commonService.getScreenSize(); + if(this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM) { + this.flgSticky = false; + this.displayedColumns = ['date', 'amount_paid', 'amount_received', 'actions']; + } else if(this.screenSize === ScreenSizeEnum.MD) { + this.flgSticky = false; + this.displayedColumns = ['date', 'amount_paid', 'num_payments', 'amount_received', 'num_invoices', 'actions']; + } else { + this.flgSticky = true; + this.displayedColumns = ['date', 'amount_paid', 'num_payments', 'amount_received', 'num_invoices', 'actions']; + } + } + + ngAfterViewInit() { + if (this.dataList && this.dataList.length > 0) { + this.loadTransactionsTable(this.dataList); + } + } + + ngOnChanges(changes: SimpleChanges) { + if (changes.dataList) { + this.loadTransactionsTable(this.dataList); + } + if (changes.filterValue) { + this.applyFilter(); + } + } + + onTransactionClick(selTransaction: any) { + const reorderedTransactions = [ + [{key: 'date', value: this.dataRange === SCROLL_RANGES[1] ? this.datePipe.transform(selTransaction.date, 'MMM/yyyy') : this.datePipe.transform(selTransaction.date, 'dd/MMM/yyyy'), title: 'Date', width: 100, type: DataTypeEnum.DATE}], + [{key: 'amount_paid', value: Math.round(selTransaction.amount_paid), title: 'Amount Paid (Sats)', width: 50, type: DataTypeEnum.NUMBER}, + {key: 'num_payments', value: selTransaction.num_payments, title: '# Payments', width: 50, type: DataTypeEnum.NUMBER}], + [{key: 'amount_received', value: Math.round(selTransaction.amount_received), title: 'Amount Received (Sats)', width: 50, type: DataTypeEnum.NUMBER}, + {key: 'num_invoices', value: selTransaction.num_invoices, title: '# Invoices', width: 50, type: DataTypeEnum.NUMBER}] + ]; + this.store.dispatch(new RTLActions.OpenAlert({ data: { + type: AlertTypeEnum.INFORMATION, + alertTitle: 'Transaction Summary', + message: reorderedTransactions + }})); + } + + applyFilter() { + if (this.transactions) { + this.transactions.filter = this.filterValue; + } + } + + loadTransactionsTable(transactions: any[]) { + this.transactions = (transactions) ? new MatTableDataSource([]) : new MatTableDataSource([...transactions]); + this.transactions.data = transactions; + this.transactions.sortingDataAccessor = (data: any, sortHeaderId: string) => (data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null; + this.transactions.sort = this.sort; + this.transactions.paginator = this.paginator; +} + + onDownloadCSV() { + if(this.transactions.data && this.transactions.data.length > 0) { + this.commonService.downloadFile(this.dataList, 'Transactions-report-' + this.dataRange.toLowerCase()); + } + } + +} diff --git a/src/app/shared/directive/date-formats.directive.ts b/src/app/shared/directive/date-formats.directive.ts new file mode 100644 index 00000000..e7a0628e --- /dev/null +++ b/src/app/shared/directive/date-formats.directive.ts @@ -0,0 +1,57 @@ +import { Directive, Injectable } from '@angular/core'; +import { DateAdapter, MAT_DATE_FORMATS, NativeDateAdapter, MatDateFormats } from '@angular/material/core'; +import { MONTHS } from '../services/consts-enums-functions'; + +@Injectable() class CustomDateAdapter extends NativeDateAdapter { + format(date: Date, displayFormat: Object): string { + if (displayFormat === 'MMM YYYY') { + return MONTHS[date.getMonth()].name + ', ' + date.getFullYear(); + } else if (displayFormat === 'YYYY') { + return date.getFullYear().toString(); + } else { + return date.getDate() + '/' + MONTHS[date.getMonth()].name + '/' + date.getFullYear(); + } + } +} + +export const MONTHLY_DATE_FORMATS: MatDateFormats = { + parse: { + dateInput: 'LL' + }, + display: { + dateInput: 'MMM YYYY', + monthYearLabel: 'YYYY', + dateA11yLabel: 'LL', + monthYearA11yLabel: 'YYYY' + } +}; + +export const YEARLY_DATE_FORMATS: MatDateFormats = { + parse: { + dateInput: 'LL' + }, + display: { + dateInput: 'YYYY', + monthYearLabel: 'YYYY', + dateA11yLabel: 'LL', + monthYearA11yLabel: 'YYYY' + } +}; + +@Directive({ + selector: '[monthlyDate]', + providers: [ + {provide: DateAdapter, useClass: CustomDateAdapter}, + {provide: MAT_DATE_FORMATS, useValue: MONTHLY_DATE_FORMATS} + ], +}) +export class MonthlyDateDirective {} + +@Directive({ + selector: '[yearlyDate]', + providers: [ + {provide: DateAdapter, useClass: CustomDateAdapter}, + {provide: MAT_DATE_FORMATS, useValue: YEARLY_DATE_FORMATS} + ], +}) +export class YearlyDateDirective {} diff --git a/src/app/shared/models/clModels.ts b/src/app/shared/models/clModels.ts index d458d514..04c029eb 100644 --- a/src/app/shared/models/clModels.ts +++ b/src/app/shared/models/clModels.ts @@ -229,6 +229,7 @@ export interface Channel { their_channel_reserve_satoshis?: string; our_channel_reserve_satoshis?: string; spendable_msatoshi?: string; + balancedness?: number; // Between -1 to +1 } export interface ChannelEdge { diff --git a/src/app/shared/models/lndModels.ts b/src/app/shared/models/lndModels.ts index 23337200..b0c88c28 100644 --- a/src/app/shared/models/lndModels.ts +++ b/src/app/shared/models/lndModels.ts @@ -500,6 +500,7 @@ export interface RoutingPeers { export interface SwitchRes { last_offset_index?: number; + total_fee_msat?: number; forwarding_events?: ForwardingEvent[]; } diff --git a/src/app/shared/models/navMenu.ts b/src/app/shared/models/navMenu.ts index bc0572ca..c06280cc 100644 --- a/src/app/shared/models/navMenu.ts +++ b/src/app/shared/models/navMenu.ts @@ -1,18 +1,19 @@ -import { faTachometerAlt, faLink, faBolt, faExchangeAlt, faUsers, faMapSigns, faQuestion, faSearch, faTools, faProjectDiagram, faDownload, faServer, faPercentage, faInfinity, faUserCheck } from '@fortawesome/free-solid-svg-icons'; +import { faTachometerAlt, faLink, faBolt, faExchangeAlt, faUsers, faMapSigns, faQuestion, faSearch, faChartBar, faTools, faProjectDiagram, faDownload, faServer, faPercentage, faInfinity, faUserCheck } from '@fortawesome/free-solid-svg-icons'; import { UserPersonaEnum } from '../services/consts-enums-functions'; export const MENU_DATA: MenuRootNode = { LNDChildren: [ {id: 1, parentId: 0, name: 'Dashboard', iconType: 'FA', icon: faTachometerAlt, link: '/lnd/home', userPersona: UserPersonaEnum.ALL}, {id: 2, parentId: 0, name: 'On-chain', iconType: 'FA', icon: faLink, link: '/lnd/onchain', userPersona: UserPersonaEnum.ALL}, - {id: 3, parentId: 0, name: 'Lightning', iconType: 'FA', icon: faBolt, link: '/lnd/peerschannels', userPersona: UserPersonaEnum.ALL, children: [ - {id: 31, parentId: 3, name: 'Peers/Channels', iconType: 'FA', icon: faUsers, link: '/lnd/peerschannels', userPersona: UserPersonaEnum.ALL}, + {id: 3, parentId: 0, name: 'Lightning', iconType: 'FA', icon: faBolt, link: '/lnd/connections', userPersona: UserPersonaEnum.ALL, children: [ + {id: 31, parentId: 3, name: 'Peers/Channels', iconType: 'FA', icon: faUsers, link: '/lnd/connections', userPersona: UserPersonaEnum.ALL}, {id: 32, parentId: 3, name: 'Transactions', iconType: 'FA', icon: faExchangeAlt, link: '/lnd/transactions', userPersona: UserPersonaEnum.ALL}, {id: 33, parentId: 3, name: 'Routing', iconType: 'FA', icon: faMapSigns, link: '/lnd/routing', userPersona: UserPersonaEnum.ALL}, - {id: 34, parentId: 3, name: 'Graph Lookup', iconType: 'FA', icon: faSearch, link: '/lnd/lookups', userPersona: UserPersonaEnum.ALL}, - {id: 35, parentId: 3, name: 'Sign/Verify', iconType: 'FA', icon: faUserCheck, link: '/lnd/signverify', userPersona: UserPersonaEnum.ALL}, - {id: 36, parentId: 3, name: 'Loop', iconType: 'FA', icon: faInfinity, link: '/lnd/loop', userPersona: UserPersonaEnum.ALL}, - {id: 37, parentId: 3, name: 'Backup', iconType: 'FA', icon: faDownload, link: '/lnd/backup', userPersona: UserPersonaEnum.ALL} + {id: 34, parentId: 3, name: 'Reports', iconType: 'FA', icon: faChartBar, link: '/lnd/reports', userPersona: UserPersonaEnum.ALL}, + {id: 35, parentId: 3, name: 'Graph Lookup', iconType: 'FA', icon: faSearch, link: '/lnd/lookups', userPersona: UserPersonaEnum.ALL}, + {id: 36, parentId: 3, name: 'Sign/Verify', iconType: 'FA', icon: faUserCheck, link: '/lnd/messages', userPersona: UserPersonaEnum.ALL}, + {id: 37, parentId: 3, name: 'Loop', iconType: 'FA', icon: faInfinity, link: '/lnd/loop', userPersona: UserPersonaEnum.ALL}, + {id: 38, parentId: 3, name: 'Backup', iconType: 'FA', icon: faDownload, link: '/lnd/channelbackup', userPersona: UserPersonaEnum.ALL} ]}, {id: 5, parentId: 0, name: 'Network', iconType: 'FA', icon: faProjectDiagram, link: '/lnd/network', userPersona: UserPersonaEnum.OPERATOR}, {id: 6, parentId: 0, name: 'Node/Network', iconType: 'FA', icon: faServer, link: '/lnd/network', userPersona: UserPersonaEnum.MERCHANT}, @@ -22,12 +23,13 @@ export const MENU_DATA: MenuRootNode = { CLChildren: [ {id: 1, parentId: 0, name: 'Dashboard', iconType: 'FA', icon: faTachometerAlt, link: '/cl/home', userPersona: UserPersonaEnum.ALL}, {id: 2, parentId: 0, name: 'On-chain', iconType: 'FA', icon: faLink, link: '/cl/onchain', userPersona: UserPersonaEnum.ALL}, - {id: 3, parentId: 0, name: 'Lightning', iconType: 'FA', icon: faBolt, link: '/cl/peerschannels', userPersona: UserPersonaEnum.ALL, children: [ - {id: 31, parentId: 3, name: 'Peers/Channels', iconType: 'FA', icon: faUsers, link: '/cl/peerschannels', userPersona: UserPersonaEnum.ALL}, + {id: 3, parentId: 0, name: 'Lightning', iconType: 'FA', icon: faBolt, link: '/cl/connections', userPersona: UserPersonaEnum.ALL, children: [ + {id: 31, parentId: 3, name: 'Peers/Channels', iconType: 'FA', icon: faUsers, link: '/cl/connections', userPersona: UserPersonaEnum.ALL}, {id: 32, parentId: 3, name: 'Transactions', iconType: 'FA', icon: faExchangeAlt, link: '/cl/transactions', userPersona: UserPersonaEnum.ALL}, - {id: 34, parentId: 3, name: 'Routing', iconType: 'FA', icon: faMapSigns, link: '/cl/routing', userPersona: UserPersonaEnum.ALL}, + {id: 33, parentId: 3, name: 'Routing', iconType: 'FA', icon: faMapSigns, link: '/cl/routing', userPersona: UserPersonaEnum.ALL}, + {id: 34, parentId: 3, name: 'Reports', iconType: 'FA', icon: faChartBar, link: '/cl/reports', userPersona: UserPersonaEnum.ALL}, {id: 35, parentId: 3, name: 'Graph Lookup', iconType: 'FA', icon: faSearch, link: '/cl/lookups', userPersona: UserPersonaEnum.ALL}, - {id: 36, parentId: 3, name: 'Sign/Verify', iconType: 'FA', icon: faUserCheck, link: '/cl/signverify', userPersona: UserPersonaEnum.ALL}, + {id: 36, parentId: 3, name: 'Sign/Verify', iconType: 'FA', icon: faUserCheck, link: '/cl/messages', userPersona: UserPersonaEnum.ALL}, {id: 37, parentId: 3, name: 'Fee Rates', iconType: 'FA', icon: faPercentage, link: '/cl/rates', userPersona: UserPersonaEnum.OPERATOR}, {id: 38, parentId: 3, name: 'Node/Fee Rates', iconType: 'FA', icon: faServer, link: '/cl/rates', userPersona: UserPersonaEnum.MERCHANT} ]}, @@ -37,10 +39,11 @@ export const MENU_DATA: MenuRootNode = { ECLChildren: [ {id: 1, parentId: 0, name: 'Dashboard', iconType: 'FA', icon: faTachometerAlt, link: '/ecl/home', userPersona: UserPersonaEnum.ALL}, {id: 2, parentId: 0, name: 'On-chain', iconType: 'FA', icon: faLink, link: '/ecl/onchain', userPersona: UserPersonaEnum.ALL}, - {id: 3, parentId: 0, name: 'Lightning', iconType: 'FA', icon: faBolt, link: '/ecl/peerschannels', userPersona: UserPersonaEnum.ALL, children: [ - {id: 31, parentId: 3, name: 'Peers/Channels', iconType: 'FA', icon: faUsers, link: '/ecl/peerschannels', userPersona: UserPersonaEnum.ALL}, + {id: 3, parentId: 0, name: 'Lightning', iconType: 'FA', icon: faBolt, link: '/ecl/connections', userPersona: UserPersonaEnum.ALL, children: [ + {id: 31, parentId: 3, name: 'Peers/Channels', iconType: 'FA', icon: faUsers, link: '/ecl/connections', userPersona: UserPersonaEnum.ALL}, {id: 32, parentId: 3, name: 'Transactions', iconType: 'FA', icon: faExchangeAlt, link: '/ecl/transactions', userPersona: UserPersonaEnum.ALL}, - {id: 34, parentId: 3, name: 'Routing', iconType: 'FA', icon: faMapSigns, link: '/ecl/routing', userPersona: UserPersonaEnum.ALL}, + {id: 33, parentId: 3, name: 'Routing', iconType: 'FA', icon: faMapSigns, link: '/ecl/routing', userPersona: UserPersonaEnum.ALL}, + {id: 34, parentId: 3, name: 'Reports', iconType: 'FA', icon: faChartBar, link: '/ecl/reports', userPersona: UserPersonaEnum.ALL}, {id: 35, parentId: 3, name: 'Graph Lookup', iconType: 'FA', icon: faSearch, link: '/ecl/lookups', userPersona: UserPersonaEnum.ALL} ]}, {id: 7, parentId: 0, name: 'Settings', iconType: 'FA', icon: faTools, link: '/settings', userPersona: UserPersonaEnum.ALL}, diff --git a/src/app/shared/services/common.service.ts b/src/app/shared/services/common.service.ts index 91e263f0..9c942e65 100644 --- a/src/app/shared/services/common.service.ts +++ b/src/app/shared/services/common.service.ts @@ -11,6 +11,7 @@ export class CommonService implements OnInit { CurrencyUnitEnum = CurrencyUnitEnum; conversionData = { data: null, last_fetched: null }; private screenSize = ScreenSizeEnum.MD; + private containerSize = {width: 1200, height: 800}; constructor(private dataService: DataService) {} @@ -24,6 +25,30 @@ export class CommonService implements OnInit { this.screenSize = screenSize; } + getContainerSize() { + return this.containerSize; + } + + setContainerSize(width: number, height) { + this.containerSize = {width: width, height: height}; + } + + sortByKey(array: any[], key: string, keyDataType: string, direction = 'asc') { + if (keyDataType === 'number') { + if (direction === 'desc') { + return array.sort((a, b) => +a[key] > +b[key] ? -1 : 1); + } else { + return array.sort((a, b) => +a[key] > +b[key] ? 1 : -1); + } + } else { + if (direction === 'desc') { + return array.sort((a, b) => a[key] > b[key] ? -1 : 1); + } else { + return array.sort((a, b) => a[key] > b[key] ? 1 : -1); + } + } + } + sortDescByKey(array, key) { return array.sort(function (a, b) { const x = +a[key]; diff --git a/src/app/shared/services/consts-enums-functions.ts b/src/app/shared/services/consts-enums-functions.ts index ee3b3dfd..45956700 100644 --- a/src/app/shared/services/consts-enums-functions.ts +++ b/src/app/shared/services/consts-enums-functions.ts @@ -106,8 +106,9 @@ export enum DataTypeEnum { export enum ScreenSizeEnum { XS = 'XS', // < 600 => mobile handsets SM = 'SM', // 600 - 839 => tab portrait - MD = 'MD', // 840 - 1439 => tab landscape & small laptops - LG = 'LG' // >1440 => big laptops + MD = 'MD', // 840 - 1239 => tab landscape & small laptops + LG = 'LG', // 1240 - 1800 => small laptops + XL = 'XL' // >1801 => big laptops } export const CHANNEL_CLOSURE_TYPE = { @@ -139,3 +140,20 @@ export enum SwapTypeEnum { LOOP_OUT = 'LOOP_OUT', LOOP_IN = 'LOOP_IN' } + +export const MONTHS = [ + {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} +]; + +export const SCROLL_RANGES = ['MONTHLY','YEARLY']; diff --git a/src/app/shared/services/data.service.ts b/src/app/shared/services/data.service.ts index e1566f1c..f4ea088e 100644 --- a/src/app/shared/services/data.service.ts +++ b/src/app/shared/services/data.service.ts @@ -1,22 +1,25 @@ import { Injectable, OnInit, OnDestroy } from '@angular/core'; import { HttpClient, HttpParams } from '@angular/common/http'; -import { of, Subject, throwError } from 'rxjs'; -import { map, takeUntil, catchError } from 'rxjs/operators'; +import { Subject, throwError, of } from 'rxjs'; +import { map, takeUntil, catchError, mergeMap, withLatestFrom } from 'rxjs/operators'; import { Store } from '@ngrx/store'; import { MatSnackBar } from '@angular/material/snack-bar'; import { LoggerService } from '../../shared/services/logger.service'; import { environment, API_URL } from '../../../environments/environment'; +import { ListInvoices, SwitchReq } from '../models/lndModels'; import { ErrorMessageComponent } from '../components/data-modal/error-message/error-message.component'; + import * as RTLActions from '../../store/rtl.actions'; import * as fromRTLReducer from '../../store/rtl.reducers'; +import * as fromLNDReducers from '../../lnd/store/lnd.reducers'; @Injectable() export class DataService implements OnInit, OnDestroy { private lnImplementation = 'LND'; private childAPIUrl = API_URL; - private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; + private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject(), new Subject(), new Subject(), new Subject(), new Subject()]; constructor(private httpClient: HttpClient, private store: Store, private logger: LoggerService, private snackBar: MatSnackBar) {} @@ -57,10 +60,9 @@ export class DataService implements OnInit, OnDestroy { url = this.childAPIUrl + environment.PAYMENTS_API + '/' + payment; } this.store.dispatch(new RTLActions.OpenSpinner('Decoding Payment...')); - return this.httpClient.get(url) - .pipe(takeUntil(this.unSubs[3]), + return this.httpClient.get(url).pipe(takeUntil(this.unSubs[0]), map((res: any) => { - this.store.dispatch(new RTLActions.CloseSpinner()); + this.store.dispatch(new RTLActions.CloseSpinner()); return res; }), catchError(err => { @@ -82,7 +84,7 @@ export class DataService implements OnInit, OnDestroy { } this.store.dispatch(new RTLActions.OpenSpinner(msg + '...')); return this.httpClient.post(url, {payments: payments}) - .pipe(takeUntil(this.unSubs[0]), + .pipe(takeUntil(this.unSubs[1]), map((res: any) => { this.store.dispatch(new RTLActions.CloseSpinner()); return res; @@ -105,7 +107,7 @@ export class DataService implements OnInit, OnDestroy { signMessage(msg: string) { this.store.dispatch(new RTLActions.OpenSpinner('Signing Message...')); return this.httpClient.post(this.childAPIUrl + environment.MESSAGE_API + '/sign', {message: msg}) - .pipe(takeUntil(this.unSubs[1]), + .pipe(takeUntil(this.unSubs[2]), map((res: any) => { this.store.dispatch(new RTLActions.CloseSpinner()); return res; @@ -119,7 +121,7 @@ export class DataService implements OnInit, OnDestroy { verifyMessage(msg: string, sign: string) { this.store.dispatch(new RTLActions.OpenSpinner('Verifying Message...')); return this.httpClient.post(this.childAPIUrl + environment.MESSAGE_API + '/verify', {message: msg, signature: sign}) - .pipe(takeUntil(this.unSubs[2]), + .pipe(takeUntil(this.unSubs[3]), map((res: any) => { this.store.dispatch(new RTLActions.CloseSpinner()); return res; @@ -136,7 +138,7 @@ export class DataService implements OnInit, OnDestroy { if (satPerByte) { bumpFeeBody.satPerByte = satPerByte; } this.store.dispatch(new RTLActions.OpenSpinner('Bumping Fee...')); return this.httpClient.post(this.childAPIUrl + environment.WALLET_API + '/bumpfee', bumpFeeBody) - .pipe(takeUntil(this.unSubs[2]), + .pipe(takeUntil(this.unSubs[4]), map((res: any) => { this.store.dispatch(new RTLActions.CloseSpinner()); this.snackBar.open('Successfully bumped the fee. Use the block explorer to verify transaction.'); @@ -148,6 +150,59 @@ export class DataService implements OnInit, OnDestroy { })); } + getForwardingHistory(start: string, end: string) { + const queryHeaders: SwitchReq = {end_time: end, start_time: start}; + return this.httpClient.post(this.childAPIUrl + environment.SWITCH_API, queryHeaders) + .pipe(takeUntil(this.unSubs[5]), + withLatestFrom(this.store.select('lnd')), + mergeMap(([res, lndData]: [any, fromLNDReducers.LNDState]) => { + if (res.forwarding_events) { + const storedChannels = [...lndData.allChannels, ...lndData.closedChannels]; + res.forwarding_events.forEach(event => { + if (storedChannels && storedChannels.length > 0) { + for (let idx = 0; idx < storedChannels.length; idx++) { + if (storedChannels[idx].chan_id.toString() === event.chan_id_in) { + event.alias_in = storedChannels[idx].remote_alias ? storedChannels[idx].remote_alias : event.chan_id_in; + if (event.alias_out) { return; } + } + if (storedChannels[idx].chan_id.toString() === event.chan_id_out) { + event.alias_out = storedChannels[idx].remote_alias ? storedChannels[idx].remote_alias : event.chan_id_out; + if (event.alias_in) { return; } + } + if(idx === storedChannels.length-1) { + if (!event.alias_in) { event.alias_in = event.chan_id_in; } + if (!event.alias_out) { event.alias_out = event.chan_id_out; } + } + } + } else { + event.alias_in = event.chan_id_in; + event.alias_out = event.chan_id_out; + } + }); + } else { + res = {}; + } + return of(res); + }), + catchError(err => { + this.handleErrorWithAlert('ERROR', 'Forwarding History Failed', this.childAPIUrl + environment.SWITCH_API, err); + return throwError(err.error && err.error.error ? err.error.error : err.error ? err.error : err); + })); + } + + getTransactionsForReport() { + return this.httpClient.get(this.childAPIUrl + environment.INVOICES_API + '?num_max_invoices=100000&index_offset=0&reversed=true') + .pipe(takeUntil(this.unSubs[5]), + withLatestFrom(this.store.select(this.lnImplementation === 'CLT' ? 'cl' : (this.lnImplementation === 'ECL' ? 'ecl' : 'lnd'))), + mergeMap(([res, storeData]: [any, any]) => { + return of({payments: storeData.payments, invoices: (res.invoices && res.invoices.length && res.invoices.length > 0) ? res.invoices : (res.length && res.length > 0) ? res : []}); + }), + catchError(err => { + this.handleErrorWithAlert('ERROR', 'Invoice List Failed', this.childAPIUrl + environment.INVOICES_API, err); + return throwError(err.error && err.error.error ? err.error.error : err.error ? err.error : err); + })); + } + handleErrorWithoutAlert(actionName: string, err: { status: number, error: any }) { this.store.dispatch(new RTLActions.CloseSpinner()); this.logger.error('ERROR IN: ' + actionName + '\n' + JSON.stringify(err)); diff --git a/src/app/shared/shared.module.ts b/src/app/shared/shared.module.ts index f4d58a0f..21cb180e 100644 --- a/src/app/shared/shared.module.ts +++ b/src/app/shared/shared.module.ts @@ -1,4 +1,4 @@ -import { NgModule } from '@angular/core'; +import { NgModule, Injectable } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; @@ -6,13 +6,15 @@ import { HttpClientModule } from '@angular/common/http'; import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { FlexLayoutModule } from '@angular/flex-layout'; import { LayoutModule } from '@angular/cdk/layout'; + +import { MatNativeDateModule, DateAdapter, MAT_DATE_FORMATS, NativeDateAdapter, MatDateFormats } from '@angular/material/core'; +import { MatDialogModule, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog'; import { MatAutocompleteModule } from '@angular/material/autocomplete'; import { MatBadgeModule } from '@angular/material/badge'; import { MatButtonModule } from '@angular/material/button'; import { MatButtonToggleModule } from '@angular/material/button-toggle'; import { MatCardModule } from '@angular/material/card'; import { MatCheckboxModule } from '@angular/material/checkbox'; -import { MatNativeDateModule } from '@angular/material/core'; import { MatDatepickerModule } from '@angular/material/datepicker'; import { MatExpansionModule } from '@angular/material/expansion'; import { MatGridListModule } from '@angular/material/grid-list'; @@ -37,16 +39,17 @@ import { MatToolbarModule } from '@angular/material/toolbar'; import { MatTooltipModule } from '@angular/material/tooltip'; import { MatTreeModule } from '@angular/material/tree'; +import { NgxChartsModule } from '@swimlane/ngx-charts'; import { QRCodeModule } from 'angularx-qrcode'; -import { DecimalPipe, TitleCasePipe } from '@angular/common'; +import { DecimalPipe, TitleCasePipe, DatePipe } from '@angular/common'; import { PerfectScrollbarModule } from 'ngx-perfect-scrollbar'; import { PERFECT_SCROLLBAR_CONFIG } from 'ngx-perfect-scrollbar'; import { PerfectScrollbarConfigInterface } from 'ngx-perfect-scrollbar'; -const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = { - suppressScrollX: false, - suppressScrollY: false -}; +import { ThemeOverlay } from './theme/overlay-container/theme-overlay'; +import { OverlayContainer } from '@angular/cdk/overlay'; +import { LoggerService, ConsoleLoggerService } from './services/logger.service'; +import { MONTHS } from './services/consts-enums-functions'; import { AppSettingsComponent } from './components/settings/app-settings/app-settings.component'; import { NotFoundComponent } from './components/not-found/not-found.component'; @@ -58,18 +61,56 @@ import { SettingsComponent } from './components/settings/settings.component'; import { ServerConfigComponent } from './components/settings/server-config/server-config.component'; import { ErrorComponent } from './components/error/error.component'; import { CurrencyUnitConverterComponent } from './components/currency-unit-converter/currency-unit-converter.component'; +import { HorizontalScrollerComponent } from './components/horizontal-scroller/horizontal-scroller.component'; import { AuthSettingsComponent } from './components/settings/auth-settings/auth-settings.component'; import { LoopQuoteComponent } from '../lnd/loop/loop-quote/loop-quote.component'; +import { LoopStatusComponent } from '../lnd/loop/loop-status/loop-status.component'; +import { LoopOutInfoGraphicsComponent } from '../lnd/loop/loop-out-info-graphics/info-graphics.component'; +import { LoopInInfoGraphicsComponent } from '../lnd/loop/loop-in-info-graphics/info-graphics.component'; +import { TransactionsReportTableComponent } from './components/transactions-report-table/transactions-report-table.component'; +import { ShowPubkeyComponent } from './components/data-modal/show-pubkey/show-pubkey.component'; +import { OnChainGeneratedAddressComponent } from './components/data-modal/on-chain-generated-address/on-chain-generated-address.component'; +import { SpinnerDialogComponent } from './components/data-modal/spinner-dialog/spinner-dialog.component'; +import { AlertMessageComponent } from './components/data-modal/alert-message/alert-message.component'; +import { ConfirmationMessageComponent } from './components/data-modal/confirmation-message/confirmation-message.component'; +import { ErrorMessageComponent } from './components/data-modal/error-message/error-message.component'; +import { TwoFactorAuthComponent } from './components/data-modal/two-factor-auth/two-factor-auth.component'; +import { LoginTokenComponent } from './components/data-modal/login-2fa-token/login-2fa-token.component'; + import { ClipboardDirective } from './directive/clipboard.directive'; import { AutoFocusDirective } from './directive/auto-focus.directive'; +import { MonthlyDateDirective, YearlyDateDirective } from './directive/date-formats.directive'; import { MaxValidator } from './directive/max-amount.directive'; import { MinValidator } from './directive/min-amount.directive'; import { RemoveLeadingZerosPipe } from './pipes/app.pipe'; -import { LoggerService, ConsoleLoggerService } from '../shared/services/logger.service'; -import { LoopStatusComponent } from '../lnd/loop/loop-status/loop-status.component'; -import { LoopOutInfoGraphicsComponent } from '../lnd/loop/loop-out-info-graphics/info-graphics.component'; -import { LoopInInfoGraphicsComponent } from '../lnd/loop/loop-in-info-graphics/info-graphics.component'; +const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = { + suppressScrollX: false, + suppressScrollY: false +}; + +@Injectable() class DefaultDateAdapter extends NativeDateAdapter { + format(date: Date, displayFormat: Object): string { + if (displayFormat === 'input') { + let day: string = date.getDate().toString(); + day = +day < 10 ? '0' + day : day; + return day + '/' + MONTHS[date.getMonth()].name.toUpperCase() + '/' + date.getFullYear(); + } + return MONTHS[date.getMonth()].name.toUpperCase() + ' ' + date.getFullYear(); + } +} + +export const DEFAULT_DATE_FORMAT: MatDateFormats = { + 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' }, + } +}; @NgModule({ imports: [ @@ -79,6 +120,7 @@ import { LoopInInfoGraphicsComponent } from '../lnd/loop/loop-in-info-graphics/i FontAwesomeModule, FlexLayoutModule, LayoutModule, + MatDialogModule, MatButtonModule, MatButtonToggleModule, MatCardModule, @@ -109,6 +151,7 @@ import { LoopInInfoGraphicsComponent } from '../lnd/loop/loop-in-info-graphics/i MatTabsModule, MatSnackBarModule, MatAutocompleteModule, + NgxChartsModule, QRCodeModule, RouterModule, HttpClientModule, @@ -120,6 +163,7 @@ import { LoopInInfoGraphicsComponent } from '../lnd/loop/loop-in-info-graphics/i FontAwesomeModule, FlexLayoutModule, LayoutModule, + MatDialogModule, MatButtonModule, MatButtonToggleModule, MatCardModule, @@ -159,17 +203,22 @@ import { LoopInInfoGraphicsComponent } from '../lnd/loop/loop-in-info-graphics/i HelpComponent, ServerConfigComponent, CurrencyUnitConverterComponent, + HorizontalScrollerComponent, ClipboardDirective, AutoFocusDirective, + MonthlyDateDirective, + YearlyDateDirective, MaxValidator, MinValidator, + NgxChartsModule, QRCodeModule, RemoveLeadingZerosPipe, PerfectScrollbarModule, LoopQuoteComponent, LoopStatusComponent, LoopOutInfoGraphicsComponent, - LoopInInfoGraphicsComponent + LoopInInfoGraphicsComponent, + TransactionsReportTableComponent ], declarations: [ AppSettingsComponent, @@ -181,9 +230,12 @@ import { LoopInInfoGraphicsComponent } from '../lnd/loop/loop-in-info-graphics/i HelpComponent, ServerConfigComponent, CurrencyUnitConverterComponent, + HorizontalScrollerComponent, ErrorComponent, ClipboardDirective, AutoFocusDirective, + MonthlyDateDirective, + YearlyDateDirective, MaxValidator, MinValidator, RemoveLeadingZerosPipe, @@ -191,13 +243,26 @@ import { LoopInInfoGraphicsComponent } from '../lnd/loop/loop-in-info-graphics/i LoopQuoteComponent, LoopStatusComponent, LoopOutInfoGraphicsComponent, - LoopInInfoGraphicsComponent + LoopInInfoGraphicsComponent, + TransactionsReportTableComponent, + OnChainGeneratedAddressComponent, + ShowPubkeyComponent, + SpinnerDialogComponent, + AlertMessageComponent, + ConfirmationMessageComponent, + ErrorMessageComponent, + TwoFactorAuthComponent, + LoginTokenComponent ], providers: [ { provide: LoggerService, useClass: ConsoleLoggerService }, { provide: PERFECT_SCROLLBAR_CONFIG, useValue: DEFAULT_PERFECT_SCROLLBAR_CONFIG }, { provide: MAT_SNACK_BAR_DEFAULT_OPTIONS, useValue: { duration: 2000, verticalPosition: 'bottom', panelClass: 'rtl-snack-bar' } }, - DecimalPipe, TitleCasePipe + { provide: MAT_DIALOG_DEFAULT_OPTIONS, useValue: { hasBackdrop: true, autoFocus: true, disableClose: true, role: 'dialog', width: '55%' } }, + { provide: DateAdapter, useClass: DefaultDateAdapter }, + { provide: MAT_DATE_FORMATS, useValue: DEFAULT_DATE_FORMAT }, + { provide: OverlayContainer, useClass: ThemeOverlay }, + DecimalPipe, TitleCasePipe, DatePipe ] }) export class SharedModule { } diff --git a/src/app/shared/theme/skins/blue.scss b/src/app/shared/theme/skins/blue.scss index 3bf0a010..e74cd70c 100644 --- a/src/app/shared/theme/skins/blue.scss +++ b/src/app/shared/theme/skins/blue.scss @@ -3,7 +3,6 @@ @import './color-swatches/red-warn.swatch.scss'; @import './color-swatches/white.swatch.scss'; @import '~@angular/material/theming'; -@include mat-core(); $blue-primary: mat-palette($mat-blue, 700, 200, A200); $blue-accent: mat-palette($mat-gray, 800, 600, 900); diff --git a/src/app/shared/theme/skins/green.scss b/src/app/shared/theme/skins/green.scss index 4967d127..497501ca 100644 --- a/src/app/shared/theme/skins/green.scss +++ b/src/app/shared/theme/skins/green.scss @@ -4,7 +4,6 @@ @import './color-swatches/green-primary.swatch.scss'; @import './color-swatches/white.swatch.scss'; @import '~@angular/material/theming'; -@include mat-core(); $green-primary: mat-palette($green-primary, 500, 300, A200); $green-accent: mat-palette($mat-gray, 800, 600, 900); diff --git a/src/app/shared/theme/skins/indigo.scss b/src/app/shared/theme/skins/indigo.scss index 98fdd1a2..b62081b8 100644 --- a/src/app/shared/theme/skins/indigo.scss +++ b/src/app/shared/theme/skins/indigo.scss @@ -3,8 +3,6 @@ @import './color-swatches/red-warn.swatch.scss'; @import './color-swatches/white.swatch.scss'; @import '~@angular/material/theming'; -@include mat-core(); - $indigo-primary: mat-palette($mat-indigo, 500, 200, A200); $indigo-accent: mat-palette($mat-gray, 800, 600, 900); diff --git a/src/app/shared/theme/skins/pink.scss b/src/app/shared/theme/skins/pink.scss index 19180a10..8d20ac10 100644 --- a/src/app/shared/theme/skins/pink.scss +++ b/src/app/shared/theme/skins/pink.scss @@ -3,7 +3,6 @@ @import './color-swatches/red-warn.swatch.scss'; @import './color-swatches/white.swatch.scss'; @import '~@angular/material/theming'; -@include mat-core(); $pink-primary: mat-palette($mat-pink, 500, 300, A200); $pink-accent: mat-palette($mat-gray, 800, 600, 900); diff --git a/src/app/shared/theme/skins/purple.scss b/src/app/shared/theme/skins/purple.scss index e29c202e..38fff0a0 100644 --- a/src/app/shared/theme/skins/purple.scss +++ b/src/app/shared/theme/skins/purple.scss @@ -4,7 +4,6 @@ @import './color-swatches/red-warn.swatch.scss'; @import './color-swatches/white.swatch.scss'; @import '~@angular/material/theming'; -@include mat-core(); $purple-primary: mat-palette($purple-primary, 500, 300, A200); $purple-accent: mat-palette($mat-gray, 800, 600, 900); diff --git a/src/app/shared/theme/skins/teal.scss b/src/app/shared/theme/skins/teal.scss index 39bd3560..7f217440 100644 --- a/src/app/shared/theme/skins/teal.scss +++ b/src/app/shared/theme/skins/teal.scss @@ -3,7 +3,6 @@ @import './color-swatches/red-warn.swatch.scss'; @import './color-swatches/white.swatch.scss'; @import '~@angular/material/theming'; -@include mat-core(); $teal-primary: mat-palette($mat-teal, 800, 300, A200); $teal-accent: mat-palette($mat-gray, 800, 600, 900); diff --git a/src/app/shared/theme/skins/yellow.scss b/src/app/shared/theme/skins/yellow.scss index e7ad732c..2cf25b0b 100644 --- a/src/app/shared/theme/skins/yellow.scss +++ b/src/app/shared/theme/skins/yellow.scss @@ -4,7 +4,6 @@ @import './color-swatches/yellow-primary.swatch.scss'; @import './color-swatches/white.swatch.scss'; @import '~@angular/material/theming'; -@include mat-core(); $yellow-primary: mat-palette($yellow-primary, 500, 300, A200); $yellow-accent: mat-palette($mat-gray, 800, 600, 900); diff --git a/src/app/shared/theme/styles/constants.scss b/src/app/shared/theme/styles/constants.scss index e1bc5730..83ea94ed 100644 --- a/src/app/shared/theme/styles/constants.scss +++ b/src/app/shared/theme/styles/constants.scss @@ -3,21 +3,20 @@ $small-font-size: 1.2rem; $medium-font-size: 1.4rem; $large-font-size: 1.6rem; -$nodes-toolbar-height: 52px; -$horizontal-toolbar-height: 60px; +$nodes-toolbar-height: 5.2rem; +$horizontal-toolbar-height: 6rem; -$font-family: 'Roboto', sans-serif; $font-size: 1.4rem; -$toolbar-height: 48px; +$toolbar-height: 5rem; $regular-sidenav-width: 22rem; -$compact-sidenav-width: 200px; -$mini-sidenav-width: 100px; -$sidenav-info-height: 90px; -$settings-nav-width: 150px; -$gap: 8px; +$compact-sidenav-width: 20rem; +$mini-sidenav-width: 10rem; +$sidenav-info-height: 9rem; +$settings-nav-width: 15rem; +$gap: 0.8rem; $icon-size: 3.6rem; -$pubkey-info-height: 15px; -$tree-node-height:42px; +$pubkey-info-height: 1.5rem; +$tree-node-height:4rem; $fa-icon-small-size: 2rem; $fa-icon-regular-size: 4rem; diff --git a/src/app/shared/theme/styles/mixins.scss b/src/app/shared/theme/styles/mixins.scss index f19b76c8..61911177 100644 --- a/src/app/shared/theme/styles/mixins.scss +++ b/src/app/shared/theme/styles/mixins.scss @@ -17,7 +17,7 @@ ORDER: Base + typography > general layout + grid > page layout > components 1em = 16px */ -@mixin respond($breakpoint) { +@mixin for_screensize($breakpoint) { @if $breakpoint == phone { @media only screen and (max-width: 37.5em) { @content }; //600px } diff --git a/src/app/shared/theme/styles/root.scss b/src/app/shared/theme/styles/root.scss index 029708b4..7ebe2bf5 100644 --- a/src/app/shared/theme/styles/root.scss +++ b/src/app/shared/theme/styles/root.scss @@ -12,6 +12,8 @@ html { body { box-sizing: border-box; + height: 100%; + margin: 0; } .rtl-container{ @@ -30,52 +32,6 @@ body { .mat-nested-tree-node-child>.mat-tree-node { padding-left: 4rem; } - &.horizontal { - .horizontal-nav { - height: $horizontal-toolbar-height !important; - } - .inner-sidenav-content { - top: $gap; - } - .mat-sidenav-container .mat-drawer-content.mat-sidenav-content { - margin-left: 0; - } - } - &.compact { - .mat-sidenav-container .mat-sidenav-content { - margin-left: $compact-sidenav-width; - } - .sidenav{ - width: $compact-sidenav-width; - } - .mat-tree-node, .mat-nested-tree-node-parent { - min-height: 4rem; - height: 4rem; - padding: 0 1.6rem 0 1.6rem; - } - .mat-nested-tree-node-child>.mat-tree-node { - padding-left: 3.2rem; - } - } - &.mini { - .mat-sidenav-container .mat-sidenav-content { - margin-left: $mini-sidenav-width; - } - .sidenav { - width: $mini-sidenav-width; - } - .mat-select.multi-node-select { - width: 84%; - } - .mat-tree-node, .mat-nested-tree-node-parent { - min-height: 5.4rem; - height: 5.4rem; - padding: 0 2.4rem 0 2.4rem; - } - .mat-nested-tree-node-child>.mat-tree-node { - padding: 0 0.8rem 1.2rem 4rem; - } - } } .mat-sidenav-container .mat-sidenav-content { @@ -127,9 +83,15 @@ body { bottom:0; left:0; right:0; - padding: 1rem; + padding: $gap; min-height: calc(100% - (#{$toolbar-height} + #{$gap}*4)); max-height: 90vh; + @include for_screensize(tab-port) { + padding: $gap $gap/2; + } + @include for_screensize(phone) { + padding: $gap/2 $gap/4; + } } .top-50 { @@ -160,18 +122,42 @@ body { .padding-gap { padding: $gap !important; + @include for_screensize(tab-port) { + padding: $gap/2 !important; + } + @include for_screensize(phone) { + padding: $gap/4 !important; + } } .padding-gap-x { padding: 0 $gap 0 $gap !important; + @include for_screensize(tab-port) { + padding: 0 $gap/2 0 $gap/2 !important; + } + @include for_screensize(phone) { + padding: 0 $gap/4 0 $gap/4 !important; + } } .padding-gap-large { padding: $gap * 2 !important; + @include for_screensize(tab-port) { + padding: $gap !important; + } + @include for_screensize(phone) { + padding: $gap/4 !important; + } } .padding-gap-x-large { padding: 0 ($gap*2) 0 ($gap*2) !important; + @include for_screensize(tab-port) { + padding: 0 $gap 0 $gap !important; + } + @include for_screensize(phone) { + padding: 0 $gap/4 0 $gap/4 !important; + } } .overflow-wrap { @@ -190,8 +176,34 @@ body { } .mat-tab-body-wrapper, .card-content-gap { - padding: 1.2rem 2.4rem !important; + padding: $gap*1.2 $gap*2 !important; height: 100%; + @include for_screensize(tab-port) { + padding: $gap $gap !important; + } + @include for_screensize(phone) { + padding: $gap/2 $gap/4 !important; + } +} + +th.mat-header-cell:first-of-type, td.mat-cell:first-of-type, td.mat-footer-cell:first-of-type, +mat-cell:first-of-type, mat-header-cell:first-of-type, mat-footer-cell:first-of-type { + @include for_screensize(tab-port) { + padding-left: $gap/2 !important; + } + @include for_screensize(phone) { + padding-left: $gap/4 !important; + } +} + +th.mat-header-cell:last-of-type, td.mat-cell:last-of-type, td.mat-footer-cell:last-of-type, +mat-cell:last-of-type, mat-header-cell:last-of-type, mat-footer-cell:last-of-type { + @include for_screensize(tab-port) { + padding-right: $gap/2 !important; + } + @include for_screensize(phone) { + padding-right: $gap/4 !important; + } } .routing-tabs-block .mat-tab-body-wrapper { @@ -199,7 +211,6 @@ body { min-height: 10rem; } - .mat-card-actions{ display: block; margin-bottom: 1.6rem; @@ -268,6 +279,12 @@ body { .mt-1 { margin-top: 1rem !important; + @include for_screensize(tab-port) { + margin-top: 0.8rem !important; + } + @include for_screensize(phone) { + margin-top: 0.8rem !important; + } } .mb-0 { @@ -284,10 +301,22 @@ body { .mb-1 { margin-bottom: 1rem !important; + @include for_screensize(tab-port) { + margin-bottom: 0.8rem !important; + } + @include for_screensize(phone) { + margin-bottom: 0.8rem !important; + } } .mb-6 { margin-bottom: 6rem !important; + @include for_screensize(tab-port) { + margin-bottom: 5rem !important; + } + @include for_screensize(phone) { + margin-bottom: 5rem !important; + } } .ml-0 { @@ -296,6 +325,12 @@ body { .ml-1 { margin-left: 1rem !important; + @include for_screensize(tab-port) { + margin-left: 0.4rem !important; + } + @include for_screensize(phone) { + margin-left: 0.2rem !important; + } } .ml-minus-1 { @@ -316,70 +351,182 @@ body { .mr-1 { margin-right: 1rem !important; + @include for_screensize(tab-port) { + margin-right: 0.4rem !important; + } + @include for_screensize(phone) { + margin-right: 0.2rem !important; + } } .mx-1 { margin: 0 1rem !important; + @include for_screensize(tab-port) { + margin: 0 0.4rem !important; + } + @include for_screensize(phone) { + margin: 0 0.2rem !important; + } } .my-1 { margin: 1rem 0 !important; + @include for_screensize(tab-port) { + margin: 0.8rem 0 !important; + } + @include for_screensize(phone) { + margin: 0.8rem 0 !important; + } } .m-1 { margin: 1rem !important; + @include for_screensize(tab-port) { + margin: 0.8rem !important; + } + @include for_screensize(phone) { + margin: 0.8rem !important; + } } .mt-2 { margin-top: 2rem !important; + @include for_screensize(tab-port) { + margin-top: 1.6rem !important; + } + @include for_screensize(phone) { + margin-top: 1.6rem !important; + } } .mt-3 { margin-top: 3rem !important; + @include for_screensize(tab-port) { + margin-top: 2.4rem !important; + } + @include for_screensize(phone) { + margin-top: 2.6rem !important; + } } .mt-4 { margin-top: 4rem !important; + @include for_screensize(tab-port) { + margin-top: 3.4rem !important; + } + @include for_screensize(phone) { + margin-top: 3.4rem !important; + } } .mt-6 { margin-top: 6rem !important; + @include for_screensize(tab-port) { + margin-top: 4.8rem !important; + } + @include for_screensize(phone) { + margin-top: 4.8rem !important; + } } .mt-minus-1 { margin-top: -1rem !important; + @include for_screensize(tab-port) { + margin-top: -0.8rem !important; + } + @include for_screensize(phone) { + margin-top: -0.8rem !important; + } } .mt-minus-2 { margin-top: -2rem !important; + @include for_screensize(tab-port) { + margin-top: -1.6rem !important; + } + @include for_screensize(phone) { + margin-top: -1.6rem !important; + } } .mb-2 { margin-bottom: 2rem !important; + @include for_screensize(tab-port) { + margin-bottom: 1.6rem !important; + } + @include for_screensize(phone) { + margin-bottom: 1.6rem !important; + } +} + +.mb-3 { + margin-bottom: 3rem !important; + @include for_screensize(tab-port) { + margin-bottom: 2.4rem !important; + } + @include for_screensize(phone) { + margin-bottom: 2.4rem !important; + } } .mb-4 { margin-bottom: 4rem !important; + @include for_screensize(tab-port) { + margin-bottom: 3.2rem !important; + } + @include for_screensize(phone) { + margin-bottom: 3.2rem !important; + } } .ml-2 { margin-left: 2rem !important; + @include for_screensize(tab-port) { + margin-left: 0.8rem !important; + } + @include for_screensize(phone) { + margin-left: 0.4rem !important; + } } .mr-2 { margin-right: 2rem !important; + @include for_screensize(tab-port) { + margin-right: 0.8rem !important; + } + @include for_screensize(phone) { + margin-right: 0.4rem !important; + } } .ml-4 { margin-left: 4rem !important; + @include for_screensize(tab-port) { + margin-left: 1.6rem !important; + } + @include for_screensize(phone) { + margin-left: 0.8rem !important; + } } .mr-4 { margin-right: 4rem !important; + @include for_screensize(tab-port) { + margin-right: 1.6rem !important; + } + @include for_screensize(phone) { + margin-right: 0.8rem !important; + } } .mx-2 { margin: 0 2rem !important; + @include for_screensize(tab-port) { + margin: 0 0.8rem !important; + } + @include for_screensize(phone) { + margin: 0 0.4rem !important; + } } .my-0 { @@ -389,22 +536,52 @@ body { .my-2 { margin: 2rem 0 !important; + @include for_screensize(tab-port) { + margin: 1.6rem 0 !important; + } + @include for_screensize(phone) { + margin: 1.6rem 0 !important; + } } .my-3 { margin: 3rem 0 !important; + @include for_screensize(tab-port) { + margin: 2.4rem 0 !important; + } + @include for_screensize(phone) { + margin: 2.4rem 0 !important; + } } .my-4 { margin: 4rem 0 !important; + @include for_screensize(tab-port) { + margin: 3.2rem 0 !important; + } + @include for_screensize(phone) { + margin: 3.2rem 0 !important; + } } .m-2 { margin: 2rem !important; + @include for_screensize(tab-port) { + margin: 1.6rem !important; + } + @include for_screensize(phone) { + margin: 1.6rem !important; + } } .pt-1 { padding-top: 1rem !important; + @include for_screensize(tab-port) { + padding-top: 0.8rem !important; + } + @include for_screensize(phone) { + padding-top: 0.8rem !important; + } } .pb-0 { @@ -413,14 +590,32 @@ body { .pb-1 { padding-bottom: 1rem !important; + @include for_screensize(tab-port) { + padding-bottom: 0.8rem !important; + } + @include for_screensize(phone) { + padding-bottom: 0.8rem !important; + } } .pl-1 { padding-left: 1rem !important; + @include for_screensize(tab-port) { + padding-left: 0.4rem !important; + } + @include for_screensize(phone) { + padding-left: 0.2rem !important; + } } .pl-15px { padding-left: 1.5rem !important; + @include for_screensize(tab-port) { + padding-left: 0.6rem !important; + } + @include for_screensize(phone) { + padding-left: 0.4rem !important; + } } .pr-0 { @@ -429,14 +624,32 @@ body { .pr-1 { padding-right: 1rem !important; + @include for_screensize(tab-port) { + padding-right: 0.4rem !important; + } + @include for_screensize(phone) { + padding-right: 0.2rem !important; + } } .pr-3 { padding-right: 3rem !important; + @include for_screensize(tab-port) { + padding-right: 1.2rem !important; + } + @include for_screensize(phone) { + padding-right: 0.6rem !important; + } } .pr-4 { padding-right: 4rem !important; + @include for_screensize(tab-port) { + padding-right: 1.6rem !important; + } + @include for_screensize(phone) { + padding-right: 0.8rem !important; + } } .pr-4px { @@ -457,82 +670,202 @@ body { .px-1 { padding: 0 1rem !important; + @include for_screensize(tab-port) { + padding: 0 0.4rem !important; + } + @include for_screensize(phone) { + padding: 0 0.2rem !important; + } } .py-0 { padding: 1rem 0 !important; + @include for_screensize(tab-port) { + padding: 0.8rem 0 !important; + } + @include for_screensize(phone) { + padding: 0.8rem 0 !important; + } } .py-1 { padding: 1rem 0 !important; + @include for_screensize(tab-port) { + padding: 0.8rem 0 !important; + } + @include for_screensize(phone) { + padding: 0.8rem 0 !important; + } } .p-1 { padding: 1rem !important; + @include for_screensize(tab-port) { + padding: 0.8rem !important; + } + @include for_screensize(phone) { + padding: 0.8rem !important; + } } .p-16 { padding: 1.6rem !important; + @include for_screensize(tab-port) { + padding: 0.8rem !important; + } + @include for_screensize(phone) { + padding: 0.4rem !important; + } } .pt-2 { padding-top: 2rem !important; + @include for_screensize(tab-port) { + padding-top: 1.6rem !important; + } + @include for_screensize(phone) { + padding-top: 1.6rem !important; + } } .pt-3 { padding-top: 3rem !important; + @include for_screensize(tab-port) { + padding-top: 2.4rem !important; + } + @include for_screensize(phone) { + padding-top: 2.4rem !important; + } } .pb-2 { padding-bottom: 2rem !important; + @include for_screensize(tab-port) { + padding-bottom: 1.6rem !important; + } + @include for_screensize(phone) { + padding-bottom: 1.6rem !important; + } } .pl-2 { padding-left: 2rem !important; + @include for_screensize(tab-port) { + padding-left: 0.8rem !important; + } + @include for_screensize(phone) { + padding-left: 0.4rem !important; + } } .pt-4 { padding-top: 3.2rem !important; + @include for_screensize(tab-port) { + padding-top: 2.5rem !important; + } + @include for_screensize(phone) { + padding-top: 2.5rem !important; + } } .pl-3 { padding-left: 3rem !important; + @include for_screensize(tab-port) { + padding-left: 1.2rem !important; + } + @include for_screensize(phone) { + padding-left: 0.6rem !important; + } } .pl-4 { padding-left: 4rem !important; + @include for_screensize(tab-port) { + padding-left: 1.6rem !important; + } + @include for_screensize(phone) { + padding-left: 0.8rem !important; + } } .pr-2 { padding-right: 2rem !important; + @include for_screensize(tab-port) { + padding-right: 0.8rem !important; + } + @include for_screensize(phone) { + padding-right: 0.4rem !important; + } } .pr-5 { padding-right: 4rem !important; + @include for_screensize(tab-port) { + padding-right: 1.6rem !important; + } + @include for_screensize(phone) { + padding-right: 0.8rem !important; + } } .px-2 { padding: 0 2rem !important; + @include for_screensize(tab-port) { + padding: 0 0.8rem !important; + } + @include for_screensize(phone) { + padding: 0 0.4rem !important; + } } .px-3 { padding: 0 3rem !important; + @include for_screensize(tab-port) { + padding: 0 1.2rem !important; + } + @include for_screensize(phone) { + padding: 0 0.6rem !important; + } } .px-4 { padding: 0 4rem !important; + @include for_screensize(tab-port) { + padding: 0 1.6rem !important; + } + @include for_screensize(phone) { + padding: 0 0.8rem !important; + } } .py-2 { padding: 2rem 0 !important; + @include for_screensize(tab-port) { + padding: 1.6rem 0 !important; + } + @include for_screensize(phone) { + padding: 1.6rem 0 !important; + } } .p-2 { padding: 2rem !important; + @include for_screensize(tab-port) { + padding: 1.6rem !important; + } + @include for_screensize(phone) { + padding: 1.6rem !important; + } } .p-24 { padding: 2.4rem !important; + @include for_screensize(tab-port) { + padding: 1.2rem !important; + } + @include for_screensize(phone) { + padding: 1rem !important; + } } .m-1px { @@ -745,9 +1078,12 @@ body { 100% {-webkit-transform: rotate(360deg)} } -.top-toolbar-icon .top-toolbar-img { - padding-right: 0.7rem; - cursor:pointer; +.mat-icon-button.top-toolbar-icon { + margin-right: 2rem; + & .top-toolbar-img { + padding-right: 0.7rem; + cursor:pointer; + } } .mt-minus-5 { @@ -898,7 +1234,16 @@ a { } .page-title-container { - margin-bottom: 0.5rem; + padding: 0 $gap*1.5; + margin-bottom: $gap; + @include for_screensize(tab-port) { + padding: 0 $gap; + margin: $gap 0; + } + @include for_screensize(phone) { + padding: 0 $gap; + margin: $gap 0; + } } table { @@ -1059,4 +1404,70 @@ table { & input, mat-select, .mat-select-trigger, .mat-select-value, .mat-select-arro-wrapper, textarea, .mat-form-field-infix { cursor: not-allowed; } -} +} + +.ngx-charts-tooltip-content { + &.type-tooltip { + background: rgba(50, 50, 50, 0.9) !important; + } + & .tooltip-caret { + border-top-color : rgba(50, 50, 50, 0.9) !important; + } +} + +.mat-card.dashboard-card { + margin: $gap; + padding: 1.2rem 2.4rem !important; + @include for_screensize(tab-port) { + padding: 0.5rem 1rem !important; + margin-top: $gap*5 !important; + } + @include for_screensize(phone) { + padding: 0.4rem 0.8rem !important; + margin-top: $gap*5 !important; + } + &.p-0 { + padding: 0 !important; + } + & .mat-card-header-text { + width: 100%; + } +} + +.dashboard-card-content { + text-align: left; +} + +.mat-expansion-panel.flat-expansion-panel { + box-shadow: none; + padding: 0; + border-radius: 4px; + background: none; + & .mat-expansion-panel-header { + padding: 0 $gap*3 0 $gap*3; + @include for_screensize(tab-port) { + padding: 0 $gap 0 $gap; + } + @include for_screensize(phone) { + padding: 0 $gap/2 0 $gap/2; + } + } + & .mat-expansion-panel-body { + padding: 0 $gap*3 $gap*2 $gap*3; + @include for_screensize(tab-port) { + padding: 0 $gap $gap $gap; + } + @include for_screensize(phone) { + padding: 0 $gap/2 $gap/4 $gap/2; + } + & .mat-expansion-panel-header-title, .mat-expansion-panel-header-description { + @include for_screensize(tab-port) { + margin-right: $gap; + } + @include for_screensize(phone) { + margin-right: $gap/2; + } + } + } +} + diff --git a/src/app/shared/theme/styles/styles.scss b/src/app/shared/theme/styles/styles.scss index ada0af66..da8b9b5e 100644 --- a/src/app/shared/theme/styles/styles.scss +++ b/src/app/shared/theme/styles/styles.scss @@ -1,6 +1,6 @@ @import '~material-design-icons/iconfont/material-icons.css'; @import '~roboto-fontface/css/roboto/roboto-fontface.css'; +@import "./perfect-scrollbar.scss"; @import "./root.scss"; -@import "./perfect-scrollbar.scss"; @import "./theme.scss"; diff --git a/src/app/shared/theme/styles/theme-color.scss b/src/app/shared/theme/styles/theme-color.scss index f18dc086..9ed43868 100644 --- a/src/app/shared/theme/styles/theme-color.scss +++ b/src/app/shared/theme/styles/theme-color.scss @@ -1,4 +1,5 @@ @import "constants"; +@import "mixins"; @mixin theme-color($theme) { $primary: map-get($theme, primary); @@ -202,7 +203,8 @@ padding-right: 0; & .more-button { position: absolute; - right: 0 + right: 0; + top: 0.4rem; } } } @@ -219,11 +221,6 @@ top: 1px; } - .mat-badge-medium.mat-badge-after .mat-badge-content { - margin-left: 0.4rem; - right: auto; - } - .tab-badge { & .mat-badge-content { width: auto; @@ -240,6 +237,14 @@ } } + .mat-badge-medium.mat-badge-after .mat-badge-content { + right: unset; + margin-left: 1rem !important; + @include for_screensize(phone) { + margin-left: 0 !important; + } + } + .table-actions-select { padding: 0.5rem 1rem; margin: 0.7rem 0; @@ -283,8 +288,9 @@ border-top-width: 2px; } & .mat-card-header .mat-card-title { + min-height: 4rem; font-size: 180%; - margin-bottom: 2.4rem; + margin-bottom: 0 0 0.8rem 0; } & .dashboard-info-value { font-weight: 700; @@ -310,6 +316,9 @@ font-size: 120%; } } + & .mat-icon-button.more-button { + width: 2rem; + } } .color-warn { @@ -408,4 +417,13 @@ .mat-expansion-panel-header[aria-disabled='true'] { color: $foreground-text; } + + ngx-charts-bar-vertical, ngx-charts-bar-vertical-2d { + & text { + fill: $foreground-text; + } + .ngx-charts .grid-panel.odd rect { + fill: none; + } + } } diff --git a/src/app/shared/theme/styles/theme-font.scss b/src/app/shared/theme/styles/theme-font.scss index 6722381f..625d7b28 100644 --- a/src/app/shared/theme/styles/theme-font.scss +++ b/src/app/shared/theme/styles/theme-font.scss @@ -1,8 +1,6 @@ @import "constants"; -@include mat-core(); @mixin theme-font($typography) { - @include mat-core($typography); &.small { .mat-header-cell { font-weight: 700; @@ -79,9 +77,6 @@ .mat-header-cell { font-weight: 700; } - .inner-sidenav-content { - padding-top: $medium-font-size; - } .mat-tree .mat-tree-node, .mat-tree .mat-nested-tree-node-parent { min-height: $tree-node-height; height: $tree-node-height; diff --git a/src/app/shared/theme/styles/theme-mode-dark.scss b/src/app/shared/theme/styles/theme-mode-dark.scss index b7c83431..b00227b7 100644 --- a/src/app/shared/theme/styles/theme-mode-dark.scss +++ b/src/app/shared/theme/styles/theme-mode-dark.scss @@ -20,156 +20,160 @@ $hover-background: rgba(0, 0, 0, 0.04); $hover-background-dark: rgba(255, 255, 255, 0.06); - &.night { - .mat-primary { + .mat-primary { + color: $primary-darker; + } + .mat-button-base.mat-flat-button.mat-primary { + color: $foreground-text; + } + .rtl-top-toolbar { + border-bottom: 1px solid $background-color; + } + .mat-tab-label { + &.mat-tab-label-active { color: $primary-darker; - } - .mat-button-base.mat-flat-button.mat-primary { - color: $foreground-text; - } - .rtl-top-toolbar { - border-bottom: 1px solid $background-color; - } - .mat-tab-label { - &.mat-tab-label-active { - color: $primary-darker; - & .tab-badge .mat-badge-content { - background: $primary-darker; - } - } & .tab-badge .mat-badge-content { - color: mat-color($background, dialog); - background: $foreground-secondary-text; - } + background: $primary-darker; + } } - .cc-data-block .cc-data-title { - color: $primary-darker; - } - .mat-stroked-button.mat-primary { - border-color: $primary-darker; + & .tab-badge .mat-badge-content { + color: mat-color($background, dialog); + background: $foreground-secondary-text; + } + } + .mat-tab-group.mat-primary .mat-ink-bar, .mat-tab-nav-bar.mat-primary .mat-ink-bar { + background-color: $primary-darker; + } + .cc-data-block .cc-data-title { + color: $primary-darker; + } + .mat-stroked-button.mat-primary { + border-color: $primary-darker; + color: $primary-darker; + } + .mat-stroked-button.mat-primary:hover .mat-button-focus-overlay { + background-color: white; + opacity: 0.09; + } + .mat-stroked-button.mat-accent { + border-color: $accent-color; + } + .mat-stroked-button.mat-warn { + border-color: $warn-color; + } + .active-link, .active-link .fa-icon-small, .mat-select-panel .mat-option.mat-active, .mat-select-panel .mat-option.mat-active .fa-icon-small { + color: $primary-darker; + font-weight: 500; + cursor: pointer; + fill: $primary-darker; + } + .mat-tree-node:hover, .mat-nested-tree-node-parent:hover, .mat-select-panel .mat-option:hover, .mat-menu-panel .mat-menu-content .mat-menu-item:hover { + color: $primary-darker; + cursor: pointer; + background: $hover-background-dark; + & .ng-fa-icon, & .mat-icon { color: $primary-darker; } - .mat-stroked-button.mat-primary:hover .mat-button-focus-overlay { - background-color: white; - opacity: 0.09; - } - .mat-stroked-button.mat-accent { - border-color: $accent-color; - } - .mat-stroked-button.mat-warn { - border-color: $warn-color; - } - .active-link, .active-link .fa-icon-small, .mat-select-panel .mat-option.mat-active, .mat-select-panel .mat-option.mat-active .fa-icon-small { - color: $primary-darker; - font-weight: 500; - cursor: pointer; - fill: $primary-darker; - } - .mat-tree-node:hover, .mat-nested-tree-node-parent:hover, .mat-select-panel .mat-option:hover, .mat-menu-panel .mat-menu-content .mat-menu-item:hover { - color: $primary-darker; - cursor: pointer; - background: $hover-background-dark; - & .ng-fa-icon, & .mat-icon { - color: $primary-darker; - } - & .sidenav-img svg { - fill: $primary-darker; - } - } - .mat-tree-node .sidenav-img, .mat-nested-tree-node .sidenav-img, .mat-nested-tree-node-parent .sidenav-img, - .page-title-container .page-title-img, svg.top-icon-small { - fill: $foreground-text; - } - .selected-color { - border-color: $primary-lighter; - } - .mat-progress-bar-fill::after { - background-color: mat-color($primary, 600); - } - .chart-legend .legend-label:hover, .chart-legend .legend-label .active .legend-label-text { - color: $foreground-text !important; - } - .cdk-overlay-dark-backdrop { - background: rgba(255, 255, 255, 0.32); - } - .mat-tree { - background: mat-color($background, dialog); - } - .mat-tab-label, .mat-tab-link { - color: $foreground-secondary-text; - } - .dashboard-card .mat-card-header .mat-card-title { - color: $foreground-text; - & .ng-fa-icon { - color: $foreground-text; - } - } - & .dashboard-info-title { - color: $primary-darker; - } - & .dashboard-info-value { - color: $foreground-text; - } - & .dashboard-capacity-header { - color: $foreground-text; - } - .mat-progress-bar.this-channel-bar .mat-progress-bar-fill::after { - background-color: mat-color($accent, A200); - } - .mat-progress-bar.this-channel-bar .mat-progress-bar-buffer { - background-color: mat-color($accent, 400); - } - .color-primary { - color: $primary-darker !important; - } - .dot-primary { - background-color: $primary-darker !important; - } - .dot-primary-lighter { - background-color: $primary-color !important; - } - .mat-stepper-vertical { - background-color: mat-color($background, dialog); - } - svg { - & .fill-color-1 { fill: #232323; } - & .fill-color-2 { fill: #222222; } - & .fill-color-3 { fill: #3A3A3A; } - & .fill-color-4 { fill: #383838; } - & .fill-color-5 { fill: #555555; } - & .fill-color-6 { fill: #5B5B5B; } - & .fill-color-7 { fill: #202020; } - & .fill-color-8 { fill: #242424; } - & .fill-color-9 { fill: #262626; } - & .fill-color-10 { fill: #1A1A1A; } - & .fill-color-11 { fill: #171717; } - & .fill-color-12 { fill: #CCCCCC; } - & .fill-color-13 { fill: #ADADAD; } - & .fill-color-14 { fill: #ABABAB; } - & .fill-color-15 { fill: #B6B6B6; } - & .fill-color-16 { fill: #707070; } - & .fill-color-17 { fill: #7C7C7C; } - & .fill-color-18 { fill: #5A5A5A; } - & .fill-color-19 { fill: #4A4A4A; } - & .fill-color-20 { fill: #9F9F9F; } - & .fill-color-21 { fill: #CACACA; } - & .fill-color-22 { fill: #7F7F7F; } - & .fill-color-23 { fill: #777777; } - & .fill-color-24 { fill: #5E5E5E; } - & .fill-color-25 { fill: #252525; } - & .fill-color-26 { fill: #6F6F6F; } - & .fill-color-27 { fill: #000000; } - & .fill-color-28 { fill: #313131; } - & .fill-color-29 { fill: #E7E7E7; } - & .fill-color-30 { fill: #FFFFFF; } - & .fill-color-31 { fill: $primary-color; } - & .fill-color-green-light { fill: #6ECB48; } - & .fill-color-primary { fill: $primary-color; } - & .fill-color-primary-lighter { fill: $primary-lighter; } - & .fill-color-primary-darker { fill: $primary-darker; } + & .sidenav-img svg { + fill: $primary-darker; } } - + .mat-tree-node .sidenav-img, .mat-nested-tree-node .sidenav-img, .mat-nested-tree-node-parent .sidenav-img, + .page-title-container .page-title-img, svg.top-icon-small { + fill: $foreground-text; + } + .selected-color { + border-color: $primary-lighter; + } + .mat-progress-bar-fill::after { + background-color: mat-color($primary, 600); + } + .chart-legend .legend-label:hover, .chart-legend .legend-label .active .legend-label-text { + color: $foreground-text !important; + } + .cdk-overlay-dark-backdrop { + background: rgba(255, 255, 255, 0.32); + } + .mat-tree { + background: mat-color($background, dialog); + } + .mat-tab-label, .mat-tab-link { + color: $foreground-secondary-text; + } + .dashboard-card .mat-card-header .mat-card-title { + color: $foreground-text; + & .ng-fa-icon { + color: $foreground-text; + } + } + & .dashboard-info-title { + color: $primary-darker; + } + & .dashboard-info-value { + color: $foreground-text; + } + & .dashboard-capacity-header { + color: $foreground-text; + } + .mat-progress-bar.this-channel-bar .mat-progress-bar-fill::after { + background-color: mat-color($accent, A200); + } + .mat-progress-bar.this-channel-bar .mat-progress-bar-buffer { + background-color: mat-color($accent, 400); + } + .color-primary { + color: $primary-darker !important; + } + .dot-primary { + background-color: $primary-darker !important; + } + .dot-primary-lighter { + background-color: $primary-color !important; + } + .mat-stepper-vertical { + background-color: mat-color($background, dialog); + } + svg { + & .fill-color-1 { fill: #232323; } + & .fill-color-2 { fill: #222222; } + & .fill-color-3 { fill: #3A3A3A; } + & .fill-color-4 { fill: #383838; } + & .fill-color-5 { fill: #555555; } + & .fill-color-6 { fill: #5B5B5B; } + & .fill-color-7 { fill: #202020; } + & .fill-color-8 { fill: #242424; } + & .fill-color-9 { fill: #262626; } + & .fill-color-10 { fill: #1A1A1A; } + & .fill-color-11 { fill: #171717; } + & .fill-color-12 { fill: #CCCCCC; } + & .fill-color-13 { fill: #ADADAD; } + & .fill-color-14 { fill: #ABABAB; } + & .fill-color-15 { fill: #B6B6B6; } + & .fill-color-16 { fill: #707070; } + & .fill-color-17 { fill: #7C7C7C; } + & .fill-color-18 { fill: #5A5A5A; } + & .fill-color-19 { fill: #4A4A4A; } + & .fill-color-20 { fill: #9F9F9F; } + & .fill-color-21 { fill: #CACACA; } + & .fill-color-22 { fill: #7F7F7F; } + & .fill-color-23 { fill: #777777; } + & .fill-color-24 { fill: #5E5E5E; } + & .fill-color-25 { fill: #252525; } + & .fill-color-26 { fill: #6F6F6F; } + & .fill-color-27 { fill: #000000; } + & .fill-color-28 { fill: #313131; } + & .fill-color-29 { fill: #E7E7E7; } + & .fill-color-30 { fill: #FFFFFF; } + & .fill-color-31 { fill: $primary-color; } + & .fill-color-green-light { fill: #6ECB48; } + & .fill-color-primary { fill: $primary-color; } + & .fill-color-primary-lighter { fill: $primary-lighter; } + & .fill-color-primary-darker { fill: $primary-darker; } + } + & .mat-select-value, & .mat-select-arrow { + color: $foreground-text; + } + & .mat-form-field-disabled { & .mat-form-field-underline{ background-color: transparent; @@ -195,4 +199,21 @@ cursor: not-allowed !important; } } + + .mat-button.mat-primary, .mat-icon-button.mat-primary, .mat-stroked-button.mat-primary { + color: $primary-darker; + } + + ngx-charts-bar-vertical, ngx-charts-bar-vertical-2d { + & text { + fill: $foreground-text; + } + & .ngx-charts .chart.bar-chart g g:nth-child(2n+1) path { + fill: mat-color($primary, 800); + } + & .ngx-charts .chart.bar-chart g g:nth-child(2n+2) path { + fill: $primary-darker; + } + } + } diff --git a/src/app/shared/theme/styles/theme-mode-light.scss b/src/app/shared/theme/styles/theme-mode-light.scss index 79b502e7..7203e066 100644 --- a/src/app/shared/theme/styles/theme-mode-light.scss +++ b/src/app/shared/theme/styles/theme-mode-light.scss @@ -20,150 +20,148 @@ $hover-background: rgba(0, 0, 0, 0.04); $hover-background-dark: rgba(255, 255, 255, 0.06); - &.day { - .mat-progress-bar.this-channel-bar .mat-progress-bar-fill::after { - background-color: mat-color($accent, 700); - } - .mat-progress-bar.this-channel-bar .mat-progress-bar-buffer { - background-color: mat-color($accent, 200); - } - .rtl-top-toolbar { - border-bottom: 1px solid white; - } - .mat-tab-label { - &.mat-tab-label-active { - color: $primary-color; - & .tab-badge .mat-badge-content { - background: $primary-color; - } - } + .mat-progress-bar.this-channel-bar .mat-progress-bar-fill::after { + background-color: mat-color($accent, 700); + } + .mat-progress-bar.this-channel-bar .mat-progress-bar-buffer { + background-color: mat-color($accent, 200); + } + .rtl-top-toolbar { + border-bottom: 1px solid white; + } + .mat-tab-label { + &.mat-tab-label-active { + color: $primary-color; & .tab-badge .mat-badge-content { - background: $foreground-secondary-text; - } + background: $primary-color; + } } - .ng-fa-icon, .mat-nested-tree-node-parent .mat-icon, .mat-form-field-suffix { - color: $foreground-secondary-text; + & .tab-badge .mat-badge-content { + background: $foreground-secondary-text; + } + } + .ng-fa-icon, .mat-nested-tree-node-parent .mat-icon, .mat-form-field-suffix { + color: $foreground-secondary-text; + } + .mat-stroked-button.mat-primary { + border-color: $primary-color; + } + .mat-stroked-button.mat-accent { + border-color: $accent-color; + } + .mat-stroked-button.mat-warn { + border-color: $warn-color; + } + .selected-color { + border-color: $primary-lighter; + } + .mat-stroked-button.mat-primary:hover .mat-button-focus-overlay { + opacity: 0.06; + } + .page-title-container, .page-sub-title-container { + & .page-title-img { + color: $foreground-disabled; } - .mat-stroked-button.mat-primary { - border-color: $primary-color; - } - .mat-stroked-button.mat-accent { - border-color: $accent-color; - } - .mat-stroked-button.mat-warn { - border-color: $warn-color; - } - .selected-color { - border-color: $primary-lighter; - } - .mat-stroked-button.mat-primary:hover .mat-button-focus-overlay { - opacity: 0.06; - } - .page-title-container, .page-sub-title-container { - & .page-title-img { - color: $foreground-disabled; - } - color: $foreground-secondary-text; - } - .cc-data-block .cc-data-title { + color: $foreground-secondary-text; + } + .cc-data-block .cc-data-title { + color: $primary-color; + } + .active-link, .active-link .fa-icon-small { + color: $primary-color; + font-weight: 500; + cursor: pointer; + fill: $primary-color; + } + .mat-tree-node:hover, .mat-nested-tree-node-parent:hover, .mat-select-panel .mat-option:hover, .mat-menu-panel .mat-menu-content .mat-menu-item:hover { + color: $primary-color; + cursor: pointer; + background: $hover-background; + & .ng-fa-icon, & .mat-icon { color: $primary-color; - } - .active-link, .active-link .fa-icon-small { - color: $primary-color; - font-weight: 500; - cursor: pointer; - fill: $primary-color; } - .mat-tree-node:hover, .mat-nested-tree-node-parent:hover, .mat-select-panel .mat-option:hover, .mat-menu-panel .mat-menu-content .mat-menu-item:hover { - color: $primary-color; - cursor: pointer; - background: $hover-background; - & .ng-fa-icon, & .mat-icon { - color: $primary-color; - } - & .sidenav-img svg { - fill: $primary-color; - } + & .sidenav-img svg { + fill: $primary-color; } - .mat-tree-node .sidenav-img, .mat-nested-tree-node .sidenav-img, .mat-nested-tree-node-parent .sidenav-img, - .page-title-container .page-title-img, svg.top-icon-small { - fill: $foreground-text; - } - .mat-progress-bar-fill::after { - background-color: mat-color($primary, 900); - } - .modal-qr-code-container { - background: $foreground-divider; - } - .mat-tab-label, .mat-tab-link { - color: $foreground-secondary-text; - } - .mat-card, .mat-card:not([class*='mat-elevation-z']){ - box-shadow: none; - border: 1px solid $foreground-divider; - } - .dashboard-card .mat-card-header .mat-card-title { + } + .mat-tree-node .sidenav-img, .mat-nested-tree-node .sidenav-img, .mat-nested-tree-node-parent .sidenav-img, + .page-title-container .page-title-img, svg.top-icon-small { + fill: $foreground-text; + } + .mat-progress-bar-fill::after { + background-color: mat-color($primary, 900); + } + .modal-qr-code-container { + background: $foreground-divider; + } + .mat-tab-label, .mat-tab-link { + color: $foreground-secondary-text; + } + .mat-card, .mat-card:not([class*='mat-elevation-z']){ + box-shadow: none; + border: 1px solid $foreground-divider; + } + .dashboard-card .mat-card-header .mat-card-title { + color: $foreground-disabled; + & .ng-fa-icon { color: $foreground-disabled; - & .ng-fa-icon { - color: $foreground-disabled; - } - } - & .dashboard-info-title { - color: $primary-color; - } - & .dashboard-info-value { - color: $foreground-secondary-text; - } - .color-primary { - color: $primary-color !important; - } - .dot-primary { - background-color: $primary-color !important; - } - .dot-primary-lighter { - background-color: $primary-lighter !important; - } - .mat-expansion-panel.flat-expansion-panel { - border: 1px solid $foreground-divider; - } - svg { - & .fill-color-1 { fill: #FFFFFF; } - & .fill-color-2 { fill: #F1F1F1; } - & .fill-color-3 { fill: #F2F2F2; } - & .fill-color-4 { fill: #F2F2F2; } - & .fill-color-5 { fill: #F2F2F2; } - & .fill-color-6 { fill: #FFFFFF; } - & .fill-color-7 { fill: #CBCBCB; } - & .fill-color-8 { fill: #CBCBCB; } - & .fill-color-9 { fill: #FFFFFF; } - & .fill-color-10 { fill: #E6E6E6; } - & .fill-color-11 { fill: #E6E6E6; } - & .fill-color-12 { fill: #5B5B5B; } - & .fill-color-13 { fill: #4A4A4A; } - & .fill-color-14 { fill: #4A4A4A; } - & .fill-color-15 { fill: #4A4A4A; } - & .fill-color-16 { fill: #404040; } - & .fill-color-17 { fill: #404040; } - & .fill-color-18 { fill: #000000; } - & .fill-color-19 { fill: #4A4A4A; } - & .fill-color-20 { fill: #4A4A4A; } - & .fill-color-21 { fill: #5B5B5B; } - & .fill-color-22 { fill: #CBCBCB; } - & .fill-color-23 { fill: #CBCBCB; } - & .fill-color-24 { fill: #000000; } - & .fill-color-25 { fill: #F2F2F2; } - & .fill-color-26 { fill: #6F6F6F; } - & .fill-color-27 { fill: #000000; } - & .fill-color-28 { fill: #313131; } - & .fill-color-29 { fill: #5B5B5B; } - & .fill-color-30 { fill: #FFFFFF; } - & .fill-color-31 { fill: $primary-color; } - & .fill-color-green-light { fill: #6ECB48; } - & .fill-color-primary { fill: $primary-color; } - & .fill-color-primary-lighter { fill: $primary-lighter; } - & .fill-color-primary-darker { fill: $primary-color; } } } + & .dashboard-info-title { + color: $primary-color; + } + & .dashboard-info-value { + color: $foreground-secondary-text; + } + .color-primary { + color: $primary-color !important; + } + .dot-primary { + background-color: $primary-color !important; + } + .dot-primary-lighter { + background-color: $primary-lighter !important; + } + .mat-expansion-panel.flat-expansion-panel { + border: 1px solid $foreground-divider; + } + svg { + & .fill-color-1 { fill: #FFFFFF; } + & .fill-color-2 { fill: #F1F1F1; } + & .fill-color-3 { fill: #F2F2F2; } + & .fill-color-4 { fill: #F2F2F2; } + & .fill-color-5 { fill: #F2F2F2; } + & .fill-color-6 { fill: #FFFFFF; } + & .fill-color-7 { fill: #CBCBCB; } + & .fill-color-8 { fill: #CBCBCB; } + & .fill-color-9 { fill: #FFFFFF; } + & .fill-color-10 { fill: #E6E6E6; } + & .fill-color-11 { fill: #E6E6E6; } + & .fill-color-12 { fill: #5B5B5B; } + & .fill-color-13 { fill: #4A4A4A; } + & .fill-color-14 { fill: #4A4A4A; } + & .fill-color-15 { fill: #4A4A4A; } + & .fill-color-16 { fill: #404040; } + & .fill-color-17 { fill: #404040; } + & .fill-color-18 { fill: #000000; } + & .fill-color-19 { fill: #4A4A4A; } + & .fill-color-20 { fill: #4A4A4A; } + & .fill-color-21 { fill: #5B5B5B; } + & .fill-color-22 { fill: #CBCBCB; } + & .fill-color-23 { fill: #CBCBCB; } + & .fill-color-24 { fill: #000000; } + & .fill-color-25 { fill: #F2F2F2; } + & .fill-color-26 { fill: #6F6F6F; } + & .fill-color-27 { fill: #000000; } + & .fill-color-28 { fill: #313131; } + & .fill-color-29 { fill: #5B5B5B; } + & .fill-color-30 { fill: #FFFFFF; } + & .fill-color-31 { fill: $primary-color; } + & .fill-color-green-light { fill: #6ECB48; } + & .fill-color-primary { fill: $primary-color; } + & .fill-color-primary-lighter { fill: $primary-lighter; } + & .fill-color-primary-darker { fill: $primary-color; } + } & .mat-form-field-disabled { & .mat-form-field-underline{ @@ -186,5 +184,16 @@ cursor: not-allowed !important; } } - + + ngx-charts-bar-vertical, ngx-charts-bar-vertical-2d { + & text { + fill: $foreground-text; + } + & .ngx-charts .chart.bar-chart g g:nth-child(2n+1) path { + fill: mat-color($primary, 900); + } + & .ngx-charts .chart.bar-chart g g:nth-child(2n+2) path { + fill: mat-color($primary, 200); + } + } } diff --git a/src/app/shared/theme/styles/theme.scss b/src/app/shared/theme/styles/theme.scss index 6ea1bd7a..7ff4db19 100644 --- a/src/app/shared/theme/styles/theme.scss +++ b/src/app/shared/theme/styles/theme.scss @@ -4,9 +4,9 @@ @import 'theme-mode-light'; @import 'theme-color'; @import 'typography'; -@include mat-core(); .rtl-container{ + @include mat-core(); //CHECK IF MATERIAL STYLES BEHAVE STRANGELY &.purple { @import "../skins/purple"; &.small {@include theme-font($small-typography);} diff --git a/src/app/store/rtl.effects.ts b/src/app/store/rtl.effects.ts index bce8e096..4e7b3625 100644 --- a/src/app/store/rtl.effects.ts +++ b/src/app/store/rtl.effects.ts @@ -3,7 +3,7 @@ import { HttpClient } from '@angular/common/http'; import { Router } from '@angular/router'; import { Store } from '@ngrx/store'; import { Actions, Effect, ofType } from '@ngrx/effects'; -import { of, Subject, forkJoin } from 'rxjs'; +import { of, Subject, forkJoin, Observable } from 'rxjs'; import { map, mergeMap, catchError, take, withLatestFrom } from 'rxjs/operators'; import { MatDialog } from '@angular/material/dialog'; @@ -79,6 +79,15 @@ export class RTLEffects implements OnDestroy { ofType(RTLActions.CLOSE_SPINNER), map((action: RTLActions.CloseSpinner) => { if (this.dialogRef) { this.dialogRef.close(); } + try { + this.dialog.openDialogs.forEach(localDialog => { + if (localDialog.componentInstance && localDialog.componentInstance.data && localDialog.componentInstance.data.titleMessage && localDialog.componentInstance.data.titleMessage.includes('...')) { + localDialog.close(); + } + }); + } catch (err) { + this.logger.error(err); + } } )); @@ -192,10 +201,11 @@ export class RTLEffects implements OnDestroy { let defaultNodeRes = this.httpClient.post(environment.CONF_API + '/updateDefaultNode', { defaultNodeIndex: action.payload.defaultNodeIndex }); return forkJoin([settingsRes, defaultNodeRes]); } else if(action.payload.settings && !action.payload.defaultNodeIndex) { - return this.httpClient.post(environment.CONF_API, { updatedSettings: action.payload.settings }); + return this.httpClient.post(environment.CONF_API, { updatedSettings: action.payload.settings }); } else if(!action.payload.settings && action.payload.defaultNodeIndex) { return this.httpClient.post(environment.CONF_API + '/updateDefaultNode', { defaultNodeIndex: action.payload.defaultNodeIndex }); } + return of({type: RTLActions.VOID}); }), map((updateStatus: any) => { this.store.dispatch(new RTLActions.CloseSpinner()); @@ -306,7 +316,7 @@ export class RTLEffects implements OnDestroy { rootStore.selNode.settings.currencyUnits = [...CURRENCY_UNITS, rootStore.selNode.settings.currencyUnit]; if (initialPass) { this.store.dispatch(new RTLActions.OpenSnackBar('Reset your password.')); - this.router.navigate(['/settings'], { state: { loadTab: 'authSettings', initializeNodeData: true }}); + this.router.navigate(['/settings/auth'], {state: { initial: true }}); } else { this.store.dispatch(new RTLActions.SetSelelectedNode({lnNode: rootStore.selNode, isInitialSetup: true})); } diff --git a/src/browserslist b/src/browserslist deleted file mode 100644 index 37371cb0..00000000 --- a/src/browserslist +++ /dev/null @@ -1,11 +0,0 @@ -# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers -# For additional information regarding the format and rule options, please see: -# https://github.com/browserslist/browserslist#queries -# -# For IE 9-11 support, please remove 'not' from the last line of the file and adjust as needed - -> 0.5% -last 2 versions -Firefox ESR -not dead -not IE 9-11 \ No newline at end of file diff --git a/src/environments/version.ts b/src/environments/version.ts index 34e88c8e..b4941dc1 100644 --- a/src/environments/version.ts +++ b/src/environments/version.ts @@ -1 +1 @@ -export const VERSION = '0.9.3-beta'; \ No newline at end of file +export const VERSION = '0.10.0-beta'; \ No newline at end of file diff --git a/src/polyfills.ts b/src/polyfills.ts index e309974a..aa7e0451 100644 --- a/src/polyfills.ts +++ b/src/polyfills.ts @@ -11,69 +11,56 @@ * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. * - * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html + * Learn more in https://angular.io/guide/browser-support */ /*************************************************************************************************** * BROWSER POLYFILLS */ -/** IE9, IE10 and IE11 requires all of the following polyfills. **/ -// import 'core-js/es6/symbol'; -// import 'core-js/es6/object'; -// import 'core-js/es6/function'; -// import 'core-js/es6/parse-int'; -// import 'core-js/es6/parse-float'; -// import 'core-js/es6/number'; -// import 'core-js/es6/math'; -// import 'core-js/es6/string'; -// import 'core-js/es6/date'; -// import 'core-js/es6/array'; -// import 'core-js/es6/regexp'; -// import 'core-js/es6/map'; -// import 'core-js/es6/weak-map'; -// import 'core-js/es6/set'; - -/** IE10 and IE11 requires the following for NgClass support on SVG elements */ +/** IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`. -/** IE10 and IE11 requires the following for the Reflect API. */ -// import 'core-js/es6/reflect'; - -/** Evergreen browsers require these. **/ -// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. - - - /** * Web Animations `@angular/platform-browser/animations` * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). - **/ + */ // import 'web-animations-js'; // Run `npm install --save web-animations-js`. /** * By default, zone.js will patch all possible macroTask and DomEvents * user can disable parts of macroTask/DomEvents patch by setting following flags + * because those flags need to be set before `zone.js` being loaded, and webpack + * will put import in the top of bundle, so user need to create a separate file + * in this directory (for example: zone-flags.ts), and put the following flags + * into that file, and then add the following code before importing zone.js. + * import './zone-flags'; + * + * The flags allowed in zone-flags.ts are listed here. + * + * The following flags will work for all browsers. + * + * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame + * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick + * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames + * + * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js + * with the following flag, it will bypass `zone.js` patch for IE/Edge + * + * (window as any).__Zone_enable_cross_context_check = true; + * */ - // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame - // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick - // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames - - /* - * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js - * with the following flag, it will bypass `zone.js` patch for IE/Edge - */ -// (window as any).__Zone_enable_cross_context_check = true; - /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ import 'zone.js/dist/zone'; // Included with Angular CLI. - /*************************************************************************************************** * APPLICATION IMPORTS */ +(window as any).global = window; +global.Buffer = global.Buffer || require('buffer').Buffer || []; +global.process = require('process') || { env: { DEBUG: undefined }, version: '' }; diff --git a/src/tsconfig.app.json b/src/tsconfig.app.json deleted file mode 100644 index 190fd300..00000000 --- a/src/tsconfig.app.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "outDir": "../out-tsc/app", - "types": [] - }, - "exclude": [ - "test.ts", - "**/*.spec.ts" - ] -} diff --git a/src/tsconfig.spec.json b/src/tsconfig.spec.json deleted file mode 100644 index de773363..00000000 --- a/src/tsconfig.spec.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "outDir": "../out-tsc/spec", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "test.ts", - "polyfills.ts" - ], - "include": [ - "**/*.spec.ts", - "**/*.d.ts" - ] -} diff --git a/src/tslint.json b/src/tslint.json deleted file mode 100644 index 9fceb7c0..00000000 --- a/src/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../tslint.json", - "rules": { - "directive-selector": [ - true, - "attribute", - "rtl", - "camelCase" - ], - "component-selector": [ - true, - "element", - "rtl", - "kebab-case" - ] - } -} diff --git a/tsconfig.app.json b/tsconfig.app.json new file mode 100644 index 00000000..4ccac923 --- /dev/null +++ b/tsconfig.app.json @@ -0,0 +1,20 @@ +/* To learn more about this file see: https://angular.io/config/tsconfig. */ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "baseUrl": "./", + "outDir": "./angular", + "types": ["node"], + "paths": { + "crypto": ["node_modules/crypto-browserify"], + "stream": ["node_modules/stream-browserify"] + } + }, + "files": [ + "src/main.ts", + "src/polyfills.ts" + ], + "include": [ + "src/**/*.d.ts" + ] +} diff --git a/tsconfig.json b/tsconfig.json index 9365cc89..82e29af4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,15 +1,20 @@ +/* To learn more about this file see: https://angular.io/config/tsconfig. */ { "compileOnSave": false, "compilerOptions": { - "importHelpers": true, - "outDir": "./angular", + "outDir": "./angular/out-tsc", + "forceConsistentCasingInFileNames": true, + "strict": false, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, "sourceMap": true, "declaration": false, - "moduleResolution": "node", - "emitDecoratorMetadata": true, + "downlevelIteration": true, "experimentalDecorators": true, - "module": "esnext", - "target": "es5", + "moduleResolution": "node", + "importHelpers": true, + "target": "es2015", + "module": "es2020", "typeRoots": [ "node_modules/@types" ], @@ -19,8 +24,8 @@ ] }, "angularCompilerOptions": { - "fullTemplateTypeCheck": true, "strictInjectionParameters": true, - "enableIvy": true - } + "strictInputAccessModifiers": true, + "strictTemplates": false + } } diff --git a/tsconfig.spec.json b/tsconfig.spec.json new file mode 100644 index 00000000..092345b0 --- /dev/null +++ b/tsconfig.spec.json @@ -0,0 +1,18 @@ +/* To learn more about this file see: https://angular.io/config/tsconfig. */ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/spec", + "types": [ + "jasmine" + ] + }, + "files": [ + "src/test.ts", + "src/polyfills.ts" + ], + "include": [ + "src/**/*.spec.ts", + "src/**/*.d.ts" + ] +} diff --git a/tslint.json b/tslint.json index 03baed77..277c8eba 100644 --- a/tslint.json +++ b/tslint.json @@ -1,33 +1,37 @@ { + "extends": "tslint:recommended", "rulesDirectory": [ - "node_modules/codelyzer" + "codelyzer" ], "rules": { + "align": { + "options": [ + "parameters", + "statements" + ] + }, + "array-type": false, "arrow-return-shorthand": true, - "callable-types": true, - "class-name": true, - "comment-format": [ - true, - "check-space" - ], "curly": true, + "deprecation": { + "severity": "warning" + }, "eofline": true, - "forin": true, "import-blacklist": [ - true + true, + "rxjs/Rx" ], "import-spacing": true, - "indent": [ - true, - "spaces" - ], - "interface-over-type-literal": true, - "label-position": true, + "indent": { + "options": [ + "spaces" + ] + }, + "max-classes-per-file": false, "max-line-length": [ true, - 180 + 140 ], - "member-access": false, "member-ordering": [ true, { @@ -39,8 +43,6 @@ ] } ], - "no-arg": true, - "no-bitwise": true, "no-console": [ true, "debug", @@ -49,93 +51,102 @@ "timeEnd", "trace" ], - "no-construct": true, - "no-debugger": true, - "no-duplicate-super": true, "no-empty": false, - "no-empty-interface": true, - "no-eval": true, "no-inferrable-types": [ true, "ignore-params" ], - "no-misused-new": true, "no-non-null-assertion": true, - "no-shadowed-variable": true, - "no-string-literal": false, - "no-string-throw": true, + "no-redundant-jsdoc": true, "no-switch-case-fall-through": true, - "no-trailing-whitespace": true, - "no-unnecessary-initializer": true, - "no-unused-expression": true, - "no-use-before-declare": true, - "no-var-keyword": true, - "object-literal-sort-keys": false, - "one-line": [ + "no-var-requires": false, + "object-literal-key-quotes": [ true, - "check-open-brace", - "check-catch", - "check-else", - "check-whitespace" + "as-needed" ], - "prefer-const": true, "quotemark": [ true, "single" ], - "radix": true, - "semicolon": [ - true, - "always" - ], - "triple-equals": [ - true, - "allow-null-check" - ], - "typedef-whitespace": [ - true, - { - "call-signature": "nospace", - "index-signature": "nospace", - "parameter": "nospace", - "property-declaration": "nospace", - "variable-declaration": "nospace" + "semicolon": { + "options": [ + "always" + ] + }, + "space-before-function-paren": { + "options": { + "anonymous": "never", + "asyncArrow": "always", + "constructor": "never", + "method": "never", + "named": "never" } - ], - "typeof-compare": true, - "unified-signatures": true, - "variable-name": false, - "whitespace": [ + }, + "typedef": [ true, - "check-branch", - "check-decl", - "check-operator", - "check-separator", - "check-type" + "call-signature" ], + "typedef-whitespace": { + "options": [ + { + "call-signature": "nospace", + "index-signature": "nospace", + "parameter": "nospace", + "property-declaration": "nospace", + "variable-declaration": "nospace" + }, + { + "call-signature": "onespace", + "index-signature": "onespace", + "parameter": "onespace", + "property-declaration": "onespace", + "variable-declaration": "onespace" + } + ] + }, + "variable-name": { + "options": [ + "ban-keywords", + "check-format", + "allow-pascal-case" + ] + }, + "whitespace": { + "options": [ + "check-branch", + "check-decl", + "check-operator", + "check-separator", + "check-type", + "check-typecast" + ] + }, + "component-class-suffix": true, + "contextual-lifecycle": true, + "directive-class-suffix": true, + "no-conflicting-lifecycle": true, + "no-host-metadata-property": true, + "no-input-rename": true, + "no-inputs-metadata-property": true, + "no-output-native": true, + "no-output-on-prefix": true, + "no-output-rename": true, + "no-outputs-metadata-property": true, + "template-banana-in-box": true, + "template-no-negated-async": true, + "use-lifecycle-interface": true, + "use-pipe-transform-interface": true, "directive-selector": [ true, "attribute", - "rtl", + "app", "camelCase" ], "component-selector": [ true, "element", - "rtl", + "app", "kebab-case" - ], - "use-input-property-decorator": true, - "use-output-property-decorator": true, - "use-host-property-decorator": true, - "no-input-rename": true, - "no-output-rename": true, - "use-life-cycle-interface": true, - "use-pipe-transform-interface": true, - "component-class-suffix": true, - "directive-class-suffix": true, - "no-access-missing-member": true, - "templates-use-public": true, - "invoke-injectable": true + ] } }