diff --git a/frontend/angular.json b/frontend/angular.json index 708dd2a..83556bb 100644 --- a/frontend/angular.json +++ b/frontend/angular.json @@ -102,5 +102,8 @@ } } }, - "defaultProject": "ethereal" + "defaultProject": "ethereal", + "cli": { + "analytics": false + } } diff --git a/frontend/package-lock.json b/frontend/package-lock.json index c427acc..402a9f6 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -280,21 +280,62 @@ "dev": true }, "node_modules/@angular-devkit/schematics": { - "version": "12.2.5", - "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-12.2.5.tgz", - "integrity": "sha512-8WAdZ39FZqbU1/ZQQrK+7PeRuj6QUGlxFUgoVXk5nzRbpZo/OSaKhPoC7sC1A0EU+7udLp5vT7R12sDz7Mr9vQ==", + "version": "12.2.18", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-12.2.18.tgz", + "integrity": "sha512-bZ9NS5PgoVfetRC6WeQBHCY5FqPZ9y2TKHUo12sOB2YSL3tgWgh1oXyP8PtX34gasqsLjNULxEQsAQYEsiX/qQ==", "dev": true, "dependencies": { - "@angular-devkit/core": "12.2.5", + "@angular-devkit/core": "12.2.18", "ora": "5.4.1", "rxjs": "6.6.7" }, "engines": { "node": "^12.14.1 || >=14.0.0", - "npm": "^6.11.0 || ^7.5.6", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", "yarn": ">= 1.13.0" } }, + "node_modules/@angular-devkit/schematics/node_modules/@angular-devkit/core": { + "version": "12.2.18", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-12.2.18.tgz", + "integrity": "sha512-GDLHGe9HEY5SRS+NrKr14C8aHsRCiBFkBFSSbeohgLgcgSXzZHFoU84nDWrl3KZNP8oqcUSv5lHu6dLcf2fnww==", + "dev": true, + "dependencies": { + "ajv": "8.6.2", + "ajv-formats": "2.1.0", + "fast-json-stable-stringify": "2.1.0", + "magic-string": "0.25.7", + "rxjs": "6.6.7", + "source-map": "0.7.3" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@angular-devkit/schematics/node_modules/ajv": { + "version": "8.6.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.2.tgz", + "integrity": "sha512-9807RlWAgT564wT+DjeyU5OFMPjmzxVobvDFmNAhY+5zD6A2ly3jDp6sgnfyDtlIQ+7H97oc/DGCzzfu9rjw9w==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@angular-devkit/schematics/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, "node_modules/@angular/animations": { "version": "12.2.5", "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-12.2.5.tgz", @@ -310,16 +351,16 @@ } }, "node_modules/@angular/cli": { - "version": "12.2.5", - "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-12.2.5.tgz", - "integrity": "sha512-O/NqRaFGx2jns03oWwhWBpilV4s7B8Zie6rgo2hJty1T3douGkK5kTO38N4Lebeayw8LTiPhT/JOrQTfFgXSjw==", + "version": "12.2.18", + "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-12.2.18.tgz", + "integrity": "sha512-AvHi6DsxavxXJgEoFrrlYDtGGgCpofPDmOwHmxpIFNAeG1xdGYtK1zJhGbfu5acn8/5cGoJoBgDY+SEI+WOjxA==", "dev": true, "hasInstallScript": true, "dependencies": { - "@angular-devkit/architect": "0.1202.5", - "@angular-devkit/core": "12.2.5", - "@angular-devkit/schematics": "12.2.5", - "@schematics/angular": "12.2.5", + "@angular-devkit/architect": "0.1202.18", + "@angular-devkit/core": "12.2.18", + "@angular-devkit/schematics": "12.2.18", + "@schematics/angular": "12.2.18", "@yarnpkg/lockfile": "1.1.0", "ansi-colors": "4.1.1", "debug": "4.3.2", @@ -330,7 +371,7 @@ "npm-pick-manifest": "6.1.1", "open": "8.2.1", "ora": "5.4.1", - "pacote": "11.3.5", + "pacote": "12.0.2", "resolve": "1.20.0", "semver": "7.3.5", "symbol-observable": "4.0.0", @@ -341,10 +382,66 @@ }, "engines": { "node": "^12.14.1 || >=14.0.0", - "npm": "^6.11.0 || ^7.5.6", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@angular/cli/node_modules/@angular-devkit/architect": { + "version": "0.1202.18", + "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1202.18.tgz", + "integrity": "sha512-C4ASKe+xBjl91MJyHDLt3z7ICPF9FU6B0CeJ1phwrlSHK9lmFG99WGxEj/Tc82+vHyPhajqS5XJ38KyVAPBGzA==", + "dev": true, + "dependencies": { + "@angular-devkit/core": "12.2.18", + "rxjs": "6.6.7" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", "yarn": ">= 1.13.0" } }, + "node_modules/@angular/cli/node_modules/@angular-devkit/core": { + "version": "12.2.18", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-12.2.18.tgz", + "integrity": "sha512-GDLHGe9HEY5SRS+NrKr14C8aHsRCiBFkBFSSbeohgLgcgSXzZHFoU84nDWrl3KZNP8oqcUSv5lHu6dLcf2fnww==", + "dev": true, + "dependencies": { + "ajv": "8.6.2", + "ajv-formats": "2.1.0", + "fast-json-stable-stringify": "2.1.0", + "magic-string": "0.25.7", + "rxjs": "6.6.7", + "source-map": "0.7.3" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@angular/cli/node_modules/ajv": { + "version": "8.6.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.2.tgz", + "integrity": "sha512-9807RlWAgT564wT+DjeyU5OFMPjmzxVobvDFmNAhY+5zD6A2ly3jDp6sgnfyDtlIQ+7H97oc/DGCzzfu9rjw9w==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@angular/cli/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, "node_modules/@angular/cli/node_modules/uuid": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", @@ -2515,9 +2612,9 @@ } }, "node_modules/@npmcli/node-gyp": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-1.0.2.tgz", - "integrity": "sha512-yrJUe6reVMpktcvagumoqD9r08fH1iRo01gn1u0zoCApa9lnZGEigVKUd2hzsCId4gdtkZZIVscLhNxMECKgRg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-1.0.3.tgz", + "integrity": "sha512-fnkhw+fmX65kiLqk6E3BFLXNC26rUhK90zVwe2yncPliVT/Qos3xjhTLE59Df8KnPlcwIERXKVlU1bXoUQ+liA==", "dev": true }, "node_modules/@npmcli/promise-spawn": { @@ -2530,33 +2627,74 @@ } }, "node_modules/@npmcli/run-script": { - "version": "1.8.6", - "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-1.8.6.tgz", - "integrity": "sha512-e42bVZnC6VluBZBAFEr3YrdqSspG3bgilyg4nSLBJ7TRGNCzxHa92XAHxQBLYg0BmgwO4b2mf3h/l5EkEWRn3g==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-2.0.0.tgz", + "integrity": "sha512-fSan/Pu11xS/TdaTpTB0MRn9guwGU8dye+x56mEVgBEd/QsybBbYcAL0phPXi8SGWFEChkQd6M9qL4y6VOpFig==", "dev": true, "dependencies": { "@npmcli/node-gyp": "^1.0.2", "@npmcli/promise-spawn": "^1.3.2", - "node-gyp": "^7.1.0", + "node-gyp": "^8.2.0", "read-package-json-fast": "^2.0.1" } }, "node_modules/@schematics/angular": { - "version": "12.2.5", - "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-12.2.5.tgz", - "integrity": "sha512-Ln2GyO7Y00PrQKjqCONCDb4dwGzGboH3zIJvicWzFO+ZgkNLr/dsitGKm8b8OfR/UEiBcnK72xwPj9FWfXA4EQ==", + "version": "12.2.18", + "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-12.2.18.tgz", + "integrity": "sha512-niRS9Ly9y8uI0YmTSbo8KpdqCCiZ/ATMZWeS2id5M8JZvfXbngwiqJvojdSol0SWU+n1W4iA+lJBdt4gSKlD5w==", "dev": true, "dependencies": { - "@angular-devkit/core": "12.2.5", - "@angular-devkit/schematics": "12.2.5", + "@angular-devkit/core": "12.2.18", + "@angular-devkit/schematics": "12.2.18", "jsonc-parser": "3.0.0" }, "engines": { "node": "^12.14.1 || >=14.0.0", - "npm": "^6.11.0 || ^7.5.6", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", "yarn": ">= 1.13.0" } }, + "node_modules/@schematics/angular/node_modules/@angular-devkit/core": { + "version": "12.2.18", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-12.2.18.tgz", + "integrity": "sha512-GDLHGe9HEY5SRS+NrKr14C8aHsRCiBFkBFSSbeohgLgcgSXzZHFoU84nDWrl3KZNP8oqcUSv5lHu6dLcf2fnww==", + "dev": true, + "dependencies": { + "ajv": "8.6.2", + "ajv-formats": "2.1.0", + "fast-json-stable-stringify": "2.1.0", + "magic-string": "0.25.7", + "rxjs": "6.6.7", + "source-map": "0.7.3" + }, + "engines": { + "node": "^12.14.1 || >=14.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@schematics/angular/node_modules/ajv": { + "version": "8.6.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.2.tgz", + "integrity": "sha512-9807RlWAgT564wT+DjeyU5OFMPjmzxVobvDFmNAhY+5zD6A2ly3jDp6sgnfyDtlIQ+7H97oc/DGCzzfu9rjw9w==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@schematics/angular/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, "node_modules/@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", @@ -2921,19 +3059,28 @@ } }, "node_modules/agentkeepalive": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.1.4.tgz", - "integrity": "sha512-+V/rGa3EuU74H6wR04plBb7Ks10FbtUQgRj/FQOG7uUIEuaINI+AiqJR1k6t3SVNs7o7ZjIdus6706qqzVq8jQ==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.3.0.tgz", + "integrity": "sha512-7Epl1Blf4Sy37j4v9f9FjICCh4+KAQOyXgHEwlyBiAQLbhKdq/i2QQU3amQalS/wPhdPzDXPL5DMR5bkn+YeWg==", "dev": true, "dependencies": { "debug": "^4.1.0", - "depd": "^1.1.2", + "depd": "^2.0.0", "humanize-ms": "^1.2.1" }, "engines": { "node": ">= 8.0.0" } }, + "node_modules/agentkeepalive/node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", @@ -3063,9 +3210,9 @@ } }, "node_modules/ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, "engines": { "node": ">=8" @@ -3097,43 +3244,22 @@ } }, "node_modules/aproba": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", + "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==", "dev": true }, "node_modules/are-we-there-yet": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz", - "integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", + "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==", "dev": true, "dependencies": { "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "node_modules/are-we-there-yet/node_modules/readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "dev": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/are-we-there-yet/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.1.0" + "readable-stream": "^3.6.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, "node_modules/arr-diff": { @@ -3196,24 +3322,6 @@ "node": ">=0.10.0" } }, - "node_modules/asn1": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", - "dev": true, - "dependencies": { - "safer-buffer": "~2.1.0" - } - }, - "node_modules/assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true, - "engines": { - "node": ">=0.8" - } - }, "node_modules/assign-symbols": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", @@ -3244,12 +3352,6 @@ "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==", "dev": true }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true - }, "node_modules/atob": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", @@ -3323,21 +3425,6 @@ "node": ">=6" } }, - "node_modules/aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/aws4": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", - "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==", - "dev": true - }, "node_modules/babel-loader": { "version": "8.2.2", "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.2.2.tgz", @@ -3558,15 +3645,6 @@ "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=", "dev": true }, - "node_modules/bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "dev": true, - "dependencies": { - "tweetnacl": "^0.14.3" - } - }, "node_modules/big.js": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", @@ -3755,7 +3833,7 @@ "node_modules/builtins": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz", - "integrity": "sha1-y5T662HIaWRR2zZTThQi+U8K7og=", + "integrity": "sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==", "dev": true }, "node_modules/bytes": { @@ -3874,12 +3952,6 @@ "integrity": "sha512-feylzsbDxi1gPZ1IjystzIQZagYYLvfKrSuygUCgf7z6x790VEzze5QEkdSV1U58RA7Hi0+v6fv4K54atOzATg==", "dev": true }, - "node_modules/caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", - "dev": true - }, "node_modules/chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", @@ -4116,15 +4188,6 @@ "node": ">=6" } }, - "node_modules/code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/collection-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", @@ -4153,6 +4216,15 @@ "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", "dev": true }, + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "dev": true, + "bin": { + "color-support": "bin.js" + } + }, "node_modules/colord": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/colord/-/colord-2.7.0.tgz", @@ -4174,18 +4246,6 @@ "node": ">=0.1.90" } }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, "node_modules/commander": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", @@ -4300,7 +4360,7 @@ "node_modules/console-control-strings": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", + "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==", "dev": true }, "node_modules/content-disposition": { @@ -5143,18 +5203,6 @@ "integrity": "sha1-XQKkaFCt8bSjF5RqOSj8y1v9BCU=", "dev": true }, - "node_modules/dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "dev": true, - "dependencies": { - "assert-plus": "^1.0.0" - }, - "engines": { - "node": ">=0.10" - } - }, "node_modules/date-format": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/date-format/-/date-format-3.0.0.tgz", @@ -5387,19 +5435,10 @@ "rimraf": "bin.js" } }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", + "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", "dev": true }, "node_modules/depd": { @@ -5542,16 +5581,6 @@ "url": "https://github.com/fb55/domutils?sponsor=1" } }, - "node_modules/ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "dev": true, - "dependencies": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, "node_modules/ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", @@ -6141,15 +6170,6 @@ "node": ">=0.10.0" } }, - "node_modules/extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true, - "engines": [ - "node >=0.6.0" - ] - }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -6350,29 +6370,6 @@ "node": ">=0.10.0" } }, - "node_modules/forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "dev": true, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 0.12" - } - }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -6462,66 +6459,22 @@ "dev": true }, "node_modules/gauge": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", - "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", - "dev": true, - "dependencies": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - } - }, - "node_modules/gauge/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gauge/node_modules/is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "dependencies": { - "number-is-nan": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gauge/node_modules/string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", + "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==", "dev": true, "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^3.0.7", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" }, "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gauge/node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, "node_modules/gensync": { @@ -6577,15 +6530,6 @@ "node": ">=0.10.0" } }, - "node_modules/getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "dev": true, - "dependencies": { - "assert-plus": "^1.0.0" - } - }, "node_modules/glob": { "version": "7.1.7", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", @@ -6665,29 +6609,6 @@ "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==", "dev": true }, - "node_modules/har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/har-validator": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", - "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", - "deprecated": "this library is no longer supported", - "dev": true, - "dependencies": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -6739,7 +6660,7 @@ "node_modules/has-unicode": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", + "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==", "dev": true }, "node_modules/has-value": { @@ -6823,9 +6744,9 @@ "dev": true }, "node_modules/hosted-git-info": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", - "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", + "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -6883,9 +6804,9 @@ "dev": true }, "node_modules/http-cache-semantics": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", - "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", "dev": true }, "node_modules/http-deceiver": { @@ -7086,21 +7007,6 @@ "node": ">=0.10.0" } }, - "node_modules/http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "dev": true, - "dependencies": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - }, - "engines": { - "node": ">=0.8", - "npm": ">=1.3.7" - } - }, "node_modules/https-proxy-agent": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", @@ -7117,7 +7023,7 @@ "node_modules/humanize-ms": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", - "integrity": "sha1-xG4xWaKT9riW2ikxbYtv6Lt5u+0=", + "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", "dev": true, "dependencies": { "ms": "^2.0.0" @@ -7177,12 +7083,15 @@ } }, "node_modules/ignore-walk": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.4.tgz", - "integrity": "sha512-PY6Ii8o1jMRA1z4F2hRkH/xN59ox43DavKvD3oDpfurRlOJyAHpifIwpbdv1n4jt4ov0jSpw3kQ4GhJnpBL6WQ==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-4.0.1.tgz", + "integrity": "sha512-rzDQLaW4jQbh2YrOFlJdCtX8qgJTehFRYiUB2r1osqTeDzV/3+Jh8fz1oAPzUThf3iku8Ds4IDqawI5d8mUiQw==", "dev": true, "dependencies": { "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=10" } }, "node_modules/image-size": { @@ -7703,7 +7612,7 @@ "node_modules/is-lambda": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", - "integrity": "sha1-PZh3iZ5qU+/AFgUEzeFfgubwYdU=", + "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==", "dev": true }, "node_modules/is-number": { @@ -7791,12 +7700,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, "node_modules/is-unicode-supported": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", @@ -7869,12 +7772,6 @@ "node": ">=0.10.0" } }, - "node_modules/isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", - "dev": true - }, "node_modules/istanbul-lib-coverage": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz", @@ -8029,12 +7926,6 @@ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "dev": true }, - "node_modules/jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true - }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", @@ -8059,24 +7950,12 @@ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, - "node_modules/json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "dev": true - }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true - }, "node_modules/json3": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.3.tgz", @@ -8116,27 +7995,12 @@ "node_modules/jsonparse": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", - "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", + "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", "dev": true, "engines": [ "node >= 0.2.0" ] }, - "node_modules/jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "dev": true, - "engines": [ - "node >=0.6.0" - ], - "dependencies": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, "node_modules/karma": { "version": "6.3.4", "resolved": "https://registry.npmjs.org/karma/-/karma-6.3.4.tgz", @@ -9324,20 +9188,20 @@ } }, "node_modules/node-gyp": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-7.1.2.tgz", - "integrity": "sha512-CbpcIo7C3eMu3dL1c3d0xw449fHIGALIJsRP4DDPHpyiW8vcriNY7ubh9TE4zEKfSxscY7PjeFnshE7h75ynjQ==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-8.4.1.tgz", + "integrity": "sha512-olTJRgUtAb/hOXG0E93wZDs5YiJlgbXxTwQAFHyNlRsXQnYzUaF2aGgujZbw+hR8aF4ZG/rST57bWMWD16jr9w==", "dev": true, "dependencies": { "env-paths": "^2.2.0", "glob": "^7.1.4", - "graceful-fs": "^4.2.3", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^9.1.0", "nopt": "^5.0.0", - "npmlog": "^4.1.2", - "request": "^2.88.2", + "npmlog": "^6.0.0", "rimraf": "^3.0.2", - "semver": "^7.3.2", - "tar": "^6.0.2", + "semver": "^7.3.5", + "tar": "^6.1.2", "which": "^2.0.2" }, "bin": { @@ -9467,13 +9331,13 @@ } }, "node_modules/npm-packlist": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-2.2.2.tgz", - "integrity": "sha512-Jt01acDvJRhJGthnUJVF/w6gumWOZxO7IkpY/lsX9//zqQgnF7OJaxgQXcerd4uQOLu7W5bkb4mChL9mdfm+Zg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-3.0.0.tgz", + "integrity": "sha512-L/cbzmutAwII5glUcf2DBRNY/d0TFd4e/FnaZigJV6JD85RHZXJFGwCndjMWiiViiWSsWt3tiOLpI3ByTnIdFQ==", "dev": true, "dependencies": { "glob": "^7.1.6", - "ignore-walk": "^3.0.3", + "ignore-walk": "^4.0.1", "npm-bundled": "^1.1.1", "npm-normalize-package-bin": "^1.0.1" }, @@ -9526,15 +9390,18 @@ } }, "node_modules/npmlog": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", - "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", + "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==", "dev": true, "dependencies": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" + "are-we-there-yet": "^3.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^4.0.3", + "set-blocking": "^2.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, "node_modules/nth-check": { @@ -9553,25 +9420,7 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", - "dev": true - }, - "node_modules/number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/oauth-sign": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "dev": true, - "engines": { - "node": "*" - } + "dev": true }, "node_modules/object-assign": { "version": "4.1.1", @@ -9969,15 +9818,15 @@ } }, "node_modules/pacote": { - "version": "11.3.5", - "resolved": "https://registry.npmjs.org/pacote/-/pacote-11.3.5.tgz", - "integrity": "sha512-fT375Yczn4zi+6Hkk2TBe1x1sP8FgFsEIZ2/iWaXY2r/NkhDJfxbcn5paz1+RTFCyNf+dPnaoBDJoAxXSU8Bkg==", + "version": "12.0.2", + "resolved": "https://registry.npmjs.org/pacote/-/pacote-12.0.2.tgz", + "integrity": "sha512-Ar3mhjcxhMzk+OVZ8pbnXdb0l8+pimvlsqBGRNkble2NVgyqOGE3yrCGi/lAYq7E7NRDMz89R1Wx5HIMCGgeYg==", "dev": true, "dependencies": { "@npmcli/git": "^2.1.0", "@npmcli/installed-package-contents": "^1.0.6", "@npmcli/promise-spawn": "^1.2.0", - "@npmcli/run-script": "^1.8.2", + "@npmcli/run-script": "^2.0.0", "cacache": "^15.0.5", "chownr": "^2.0.0", "fs-minipass": "^2.1.0", @@ -9985,7 +9834,7 @@ "minipass": "^3.1.3", "mkdirp": "^1.0.3", "npm-package-arg": "^8.0.1", - "npm-packlist": "^2.1.4", + "npm-packlist": "^3.0.0", "npm-pick-manifest": "^6.0.0", "npm-registry-fetch": "^11.0.0", "promise-retry": "^2.0.1", @@ -9998,7 +9847,7 @@ "pacote": "lib/bin.js" }, "engines": { - "node": ">=10" + "node": "^12.13.0 || ^14.15.0 || >=16" } }, "node_modules/pako": { @@ -10158,12 +10007,6 @@ "node": ">=8" } }, - "node_modules/performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", - "dev": true - }, "node_modules/picomatch": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", @@ -12540,12 +12383,6 @@ "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", "dev": true }, - "node_modules/psl": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", - "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", - "dev": true - }, "node_modules/pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", @@ -12860,47 +12697,6 @@ "node": ">=0.10" } }, - "node_modules/request": { - "version": "2.88.2", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", - "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", - "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", - "dev": true, - "dependencies": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.5.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/request/node_modules/qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -13484,9 +13280,9 @@ } }, "node_modules/signal-exit": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", - "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, "node_modules/slash": { @@ -13752,13 +13548,13 @@ } }, "node_modules/socks": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.6.1.tgz", - "integrity": "sha512-kLQ9N5ucj8uIcxrDwjm0Jsqk06xdpBjGNQtpXy4Q8/QY2k+fY7nZH8CARy+hkbG+SGAovmzzuauCpBlb8FrnBA==", + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", + "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", "dev": true, "dependencies": { - "ip": "^1.1.5", - "smart-buffer": "^4.1.0" + "ip": "^2.0.0", + "smart-buffer": "^4.2.0" }, "engines": { "node": ">= 10.13.0", @@ -13766,19 +13562,42 @@ } }, "node_modules/socks-proxy-agent": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.0.0.tgz", - "integrity": "sha512-FIgZbQWlnjVEQvMkylz64/rUggGtrKstPnx8OZyYFG0tAFR8CSBtpXxSwbFLHyeXFn/cunFL7MpuSOvDSOPo9g==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.2.1.tgz", + "integrity": "sha512-a6KW9G+6B3nWZ1yB8G7pJwL3ggLy1uTzKAgCb7ttblwqdz9fMGJUuTy3uFzEP48FAs9FLILlmzDlE2JJhVQaXQ==", "dev": true, "dependencies": { "agent-base": "^6.0.2", - "debug": "^4.3.1", - "socks": "^2.6.1" + "debug": "^4.3.3", + "socks": "^2.6.2" }, "engines": { "node": ">= 10" } }, + "node_modules/socks-proxy-agent/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/socks/node_modules/ip": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==", + "dev": true + }, "node_modules/source-list-map": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", @@ -13922,31 +13741,6 @@ "node": ">=0.10.0" } }, - "node_modules/sshpk": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", - "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", - "dev": true, - "dependencies": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - }, - "bin": { - "sshpk-conv": "bin/sshpk-conv", - "sshpk-sign": "bin/sshpk-sign", - "sshpk-verify": "bin/sshpk-verify" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/ssri": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", @@ -14055,26 +13849,26 @@ ] }, "node_modules/string-width": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" + "strip-ansi": "^6.0.1" }, "engines": { "node": ">=8" } }, "node_modules/strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, "dependencies": { - "ansi-regex": "^5.0.0" + "ansi-regex": "^5.0.1" }, "engines": { "node": ">=8" @@ -14451,19 +14245,6 @@ "node": ">=0.6" } }, - "node_modules/tough-cookie": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", - "dev": true, - "dependencies": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=0.8" - } - }, "node_modules/tree-kill": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", @@ -14478,24 +14259,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" }, - "node_modules/tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "dev": true, - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": "*" - } - }, - "node_modules/tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true - }, "node_modules/type-fest": { "version": "0.21.3", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", @@ -14793,7 +14556,7 @@ "node_modules/validate-npm-package-name": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-3.0.0.tgz", - "integrity": "sha1-X6kS2B630MdK/BQN5zF/DKffQ34=", + "integrity": "sha512-M6w37eVCMMouJ9V/sdPGnC5H4uDr73/+xdq0FBLO3TFFX1+7wiUY6Es328NN+y43tmY+doUdN9g9J21vqB7iLw==", "dev": true, "dependencies": { "builtins": "^1.0.3" @@ -14818,26 +14581,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "dev": true, - "engines": [ - "node >=0.6.0" - ], - "dependencies": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, - "node_modules/verror/node_modules/core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true - }, "node_modules/void-elements": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-2.0.1.tgz", @@ -15531,55 +15274,12 @@ "dev": true }, "node_modules/wide-align": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", - "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", - "dev": true, - "dependencies": { - "string-width": "^1.0.2 || 2" - } - }, - "node_modules/wide-align/node_modules/ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/wide-align/node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/wide-align/node_modules/string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "dependencies": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/wide-align/node_modules/strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", + "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", "dev": true, "dependencies": { - "ansi-regex": "^3.0.0" - }, - "engines": { - "node": ">=4" + "string-width": "^1.0.2 || 2 || 3 || 4" } }, "node_modules/wildcard": { @@ -16003,14 +15703,48 @@ } }, "@angular-devkit/schematics": { - "version": "12.2.5", - "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-12.2.5.tgz", - "integrity": "sha512-8WAdZ39FZqbU1/ZQQrK+7PeRuj6QUGlxFUgoVXk5nzRbpZo/OSaKhPoC7sC1A0EU+7udLp5vT7R12sDz7Mr9vQ==", + "version": "12.2.18", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-12.2.18.tgz", + "integrity": "sha512-bZ9NS5PgoVfetRC6WeQBHCY5FqPZ9y2TKHUo12sOB2YSL3tgWgh1oXyP8PtX34gasqsLjNULxEQsAQYEsiX/qQ==", "dev": true, "requires": { - "@angular-devkit/core": "12.2.5", + "@angular-devkit/core": "12.2.18", "ora": "5.4.1", "rxjs": "6.6.7" + }, + "dependencies": { + "@angular-devkit/core": { + "version": "12.2.18", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-12.2.18.tgz", + "integrity": "sha512-GDLHGe9HEY5SRS+NrKr14C8aHsRCiBFkBFSSbeohgLgcgSXzZHFoU84nDWrl3KZNP8oqcUSv5lHu6dLcf2fnww==", + "dev": true, + "requires": { + "ajv": "8.6.2", + "ajv-formats": "2.1.0", + "fast-json-stable-stringify": "2.1.0", + "magic-string": "0.25.7", + "rxjs": "6.6.7", + "source-map": "0.7.3" + } + }, + "ajv": { + "version": "8.6.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.2.tgz", + "integrity": "sha512-9807RlWAgT564wT+DjeyU5OFMPjmzxVobvDFmNAhY+5zD6A2ly3jDp6sgnfyDtlIQ+7H97oc/DGCzzfu9rjw9w==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + } } }, "@angular/animations": { @@ -16022,15 +15756,15 @@ } }, "@angular/cli": { - "version": "12.2.5", - "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-12.2.5.tgz", - "integrity": "sha512-O/NqRaFGx2jns03oWwhWBpilV4s7B8Zie6rgo2hJty1T3douGkK5kTO38N4Lebeayw8LTiPhT/JOrQTfFgXSjw==", + "version": "12.2.18", + "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-12.2.18.tgz", + "integrity": "sha512-AvHi6DsxavxXJgEoFrrlYDtGGgCpofPDmOwHmxpIFNAeG1xdGYtK1zJhGbfu5acn8/5cGoJoBgDY+SEI+WOjxA==", "dev": true, "requires": { - "@angular-devkit/architect": "0.1202.5", - "@angular-devkit/core": "12.2.5", - "@angular-devkit/schematics": "12.2.5", - "@schematics/angular": "12.2.5", + "@angular-devkit/architect": "0.1202.18", + "@angular-devkit/core": "12.2.18", + "@angular-devkit/schematics": "12.2.18", + "@schematics/angular": "12.2.18", "@yarnpkg/lockfile": "1.1.0", "ansi-colors": "4.1.1", "debug": "4.3.2", @@ -16041,13 +15775,55 @@ "npm-pick-manifest": "6.1.1", "open": "8.2.1", "ora": "5.4.1", - "pacote": "11.3.5", + "pacote": "12.0.2", "resolve": "1.20.0", "semver": "7.3.5", "symbol-observable": "4.0.0", "uuid": "8.3.2" }, "dependencies": { + "@angular-devkit/architect": { + "version": "0.1202.18", + "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1202.18.tgz", + "integrity": "sha512-C4ASKe+xBjl91MJyHDLt3z7ICPF9FU6B0CeJ1phwrlSHK9lmFG99WGxEj/Tc82+vHyPhajqS5XJ38KyVAPBGzA==", + "dev": true, + "requires": { + "@angular-devkit/core": "12.2.18", + "rxjs": "6.6.7" + } + }, + "@angular-devkit/core": { + "version": "12.2.18", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-12.2.18.tgz", + "integrity": "sha512-GDLHGe9HEY5SRS+NrKr14C8aHsRCiBFkBFSSbeohgLgcgSXzZHFoU84nDWrl3KZNP8oqcUSv5lHu6dLcf2fnww==", + "dev": true, + "requires": { + "ajv": "8.6.2", + "ajv-formats": "2.1.0", + "fast-json-stable-stringify": "2.1.0", + "magic-string": "0.25.7", + "rxjs": "6.6.7", + "source-map": "0.7.3" + } + }, + "ajv": { + "version": "8.6.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.2.tgz", + "integrity": "sha512-9807RlWAgT564wT+DjeyU5OFMPjmzxVobvDFmNAhY+5zD6A2ly3jDp6sgnfyDtlIQ+7H97oc/DGCzzfu9rjw9w==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, "uuid": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", @@ -17584,9 +17360,9 @@ } }, "@npmcli/node-gyp": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-1.0.2.tgz", - "integrity": "sha512-yrJUe6reVMpktcvagumoqD9r08fH1iRo01gn1u0zoCApa9lnZGEigVKUd2hzsCId4gdtkZZIVscLhNxMECKgRg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-1.0.3.tgz", + "integrity": "sha512-fnkhw+fmX65kiLqk6E3BFLXNC26rUhK90zVwe2yncPliVT/Qos3xjhTLE59Df8KnPlcwIERXKVlU1bXoUQ+liA==", "dev": true }, "@npmcli/promise-spawn": { @@ -17599,26 +17375,60 @@ } }, "@npmcli/run-script": { - "version": "1.8.6", - "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-1.8.6.tgz", - "integrity": "sha512-e42bVZnC6VluBZBAFEr3YrdqSspG3bgilyg4nSLBJ7TRGNCzxHa92XAHxQBLYg0BmgwO4b2mf3h/l5EkEWRn3g==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-2.0.0.tgz", + "integrity": "sha512-fSan/Pu11xS/TdaTpTB0MRn9guwGU8dye+x56mEVgBEd/QsybBbYcAL0phPXi8SGWFEChkQd6M9qL4y6VOpFig==", "dev": true, "requires": { "@npmcli/node-gyp": "^1.0.2", "@npmcli/promise-spawn": "^1.3.2", - "node-gyp": "^7.1.0", + "node-gyp": "^8.2.0", "read-package-json-fast": "^2.0.1" } }, "@schematics/angular": { - "version": "12.2.5", - "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-12.2.5.tgz", - "integrity": "sha512-Ln2GyO7Y00PrQKjqCONCDb4dwGzGboH3zIJvicWzFO+ZgkNLr/dsitGKm8b8OfR/UEiBcnK72xwPj9FWfXA4EQ==", + "version": "12.2.18", + "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-12.2.18.tgz", + "integrity": "sha512-niRS9Ly9y8uI0YmTSbo8KpdqCCiZ/ATMZWeS2id5M8JZvfXbngwiqJvojdSol0SWU+n1W4iA+lJBdt4gSKlD5w==", "dev": true, "requires": { - "@angular-devkit/core": "12.2.5", - "@angular-devkit/schematics": "12.2.5", + "@angular-devkit/core": "12.2.18", + "@angular-devkit/schematics": "12.2.18", "jsonc-parser": "3.0.0" + }, + "dependencies": { + "@angular-devkit/core": { + "version": "12.2.18", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-12.2.18.tgz", + "integrity": "sha512-GDLHGe9HEY5SRS+NrKr14C8aHsRCiBFkBFSSbeohgLgcgSXzZHFoU84nDWrl3KZNP8oqcUSv5lHu6dLcf2fnww==", + "dev": true, + "requires": { + "ajv": "8.6.2", + "ajv-formats": "2.1.0", + "fast-json-stable-stringify": "2.1.0", + "magic-string": "0.25.7", + "rxjs": "6.6.7", + "source-map": "0.7.3" + } + }, + "ajv": { + "version": "8.6.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.2.tgz", + "integrity": "sha512-9807RlWAgT564wT+DjeyU5OFMPjmzxVobvDFmNAhY+5zD6A2ly3jDp6sgnfyDtlIQ+7H97oc/DGCzzfu9rjw9w==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + } } }, "@tootallnate/once": { @@ -17961,14 +17771,22 @@ } }, "agentkeepalive": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.1.4.tgz", - "integrity": "sha512-+V/rGa3EuU74H6wR04plBb7Ks10FbtUQgRj/FQOG7uUIEuaINI+AiqJR1k6t3SVNs7o7ZjIdus6706qqzVq8jQ==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.3.0.tgz", + "integrity": "sha512-7Epl1Blf4Sy37j4v9f9FjICCh4+KAQOyXgHEwlyBiAQLbhKdq/i2QQU3amQalS/wPhdPzDXPL5DMR5bkn+YeWg==", "dev": true, "requires": { "debug": "^4.1.0", - "depd": "^1.1.2", + "depd": "^2.0.0", "humanize-ms": "^1.2.1" + }, + "dependencies": { + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "dev": true + } } }, "aggregate-error": { @@ -18064,70 +17882,44 @@ "dev": true }, "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "anymatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "aproba": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "dev": true - }, - "are-we-there-yet": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz", - "integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==", - "dev": true, - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - }, - "dependencies": { - "readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "anymatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", + "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "dev": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "aproba": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", + "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==", + "dev": true + }, + "are-we-there-yet": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", + "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==", + "dev": true, + "requires": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" } }, "arr-diff": { @@ -18172,21 +17964,6 @@ "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", "dev": true }, - "asn1": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", - "dev": true, - "requires": { - "safer-buffer": "~2.1.0" - } - }, - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true - }, "assign-symbols": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", @@ -18214,12 +17991,6 @@ "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==", "dev": true }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true - }, "atob": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", @@ -18269,18 +18040,6 @@ } } }, - "aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", - "dev": true - }, - "aws4": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", - "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==", - "dev": true - }, "babel-loader": { "version": "8.2.2", "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.2.2.tgz", @@ -18447,15 +18206,6 @@ "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=", "dev": true }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "dev": true, - "requires": { - "tweetnacl": "^0.14.3" - } - }, "big.js": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", @@ -18607,7 +18357,7 @@ "builtins": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz", - "integrity": "sha1-y5T662HIaWRR2zZTThQi+U8K7og=", + "integrity": "sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==", "dev": true }, "bytes": { @@ -18704,12 +18454,6 @@ "integrity": "sha512-feylzsbDxi1gPZ1IjystzIQZagYYLvfKrSuygUCgf7z6x790VEzze5QEkdSV1U58RA7Hi0+v6fv4K54atOzATg==", "dev": true }, - "caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", - "dev": true - }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", @@ -18891,12 +18635,6 @@ "shallow-clone": "^3.0.0" } }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true - }, "collection-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", @@ -18922,6 +18660,12 @@ "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", "dev": true }, + "color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "dev": true + }, "colord": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/colord/-/colord-2.7.0.tgz", @@ -18940,15 +18684,6 @@ "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", "dev": true }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, - "requires": { - "delayed-stream": "~1.0.0" - } - }, "commander": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", @@ -19052,7 +18787,7 @@ "console-control-strings": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", + "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==", "dev": true }, "content-disposition": { @@ -19665,15 +19400,6 @@ "integrity": "sha1-XQKkaFCt8bSjF5RqOSj8y1v9BCU=", "dev": true }, - "dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, "date-format": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/date-format/-/date-format-3.0.0.tgz", @@ -19852,16 +19578,10 @@ } } }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true - }, "delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", + "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", "dev": true }, "depd": { @@ -19977,16 +19697,6 @@ "domhandler": "^4.2.0" } }, - "ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "dev": true, - "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, "ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", @@ -20470,12 +20180,6 @@ } } }, - "extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true - }, "fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -20632,23 +20336,6 @@ "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", "dev": true }, - "forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true - }, - "form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "dev": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - } - }, "forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -20716,56 +20403,19 @@ "dev": true }, "gauge": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", - "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", + "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==", "dev": true, "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - } + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^3.0.7", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" } }, "gensync": { @@ -20806,15 +20456,6 @@ "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", "dev": true }, - "getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, "glob": { "version": "7.1.7", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", @@ -20876,22 +20517,6 @@ "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==", "dev": true }, - "har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true - }, - "har-validator": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", - "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", - "dev": true, - "requires": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" - } - }, "has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -20925,7 +20550,7 @@ "has-unicode": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", + "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==", "dev": true }, "has-value": { @@ -20998,9 +20623,9 @@ "dev": true }, "hosted-git-info": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", - "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", + "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -21057,9 +20682,9 @@ "dev": true }, "http-cache-semantics": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", - "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", "dev": true }, "http-deceiver": { @@ -21234,17 +20859,6 @@ } } }, - "http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, "https-proxy-agent": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", @@ -21258,7 +20872,7 @@ "humanize-ms": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", - "integrity": "sha1-xG4xWaKT9riW2ikxbYtv6Lt5u+0=", + "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", "dev": true, "requires": { "ms": "^2.0.0" @@ -21293,9 +20907,9 @@ "dev": true }, "ignore-walk": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.4.tgz", - "integrity": "sha512-PY6Ii8o1jMRA1z4F2hRkH/xN59ox43DavKvD3oDpfurRlOJyAHpifIwpbdv1n4jt4ov0jSpw3kQ4GhJnpBL6WQ==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-4.0.1.tgz", + "integrity": "sha512-rzDQLaW4jQbh2YrOFlJdCtX8qgJTehFRYiUB2r1osqTeDzV/3+Jh8fz1oAPzUThf3iku8Ds4IDqawI5d8mUiQw==", "dev": true, "requires": { "minimatch": "^3.0.4" @@ -21691,7 +21305,7 @@ "is-lambda": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", - "integrity": "sha1-PZh3iZ5qU+/AFgUEzeFfgubwYdU=", + "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==", "dev": true }, "is-number": { @@ -21755,12 +21369,6 @@ "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", "dev": true }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, "is-unicode-supported": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", @@ -21812,12 +21420,6 @@ "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", "dev": true }, - "isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", - "dev": true - }, "istanbul-lib-coverage": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz", @@ -21941,12 +21543,6 @@ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "dev": true }, - "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true - }, "jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", @@ -21965,24 +21561,12 @@ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, - "json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "dev": true - }, "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true - }, "json3": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.3.tgz", @@ -22016,21 +21600,9 @@ "jsonparse": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", - "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", + "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", "dev": true }, - "jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "dev": true, - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, "karma": { "version": "6.3.4", "resolved": "https://registry.npmjs.org/karma/-/karma-6.3.4.tgz", @@ -22946,20 +22518,20 @@ "dev": true }, "node-gyp": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-7.1.2.tgz", - "integrity": "sha512-CbpcIo7C3eMu3dL1c3d0xw449fHIGALIJsRP4DDPHpyiW8vcriNY7ubh9TE4zEKfSxscY7PjeFnshE7h75ynjQ==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-8.4.1.tgz", + "integrity": "sha512-olTJRgUtAb/hOXG0E93wZDs5YiJlgbXxTwQAFHyNlRsXQnYzUaF2aGgujZbw+hR8aF4ZG/rST57bWMWD16jr9w==", "dev": true, "requires": { "env-paths": "^2.2.0", "glob": "^7.1.4", - "graceful-fs": "^4.2.3", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^9.1.0", "nopt": "^5.0.0", - "npmlog": "^4.1.2", - "request": "^2.88.2", + "npmlog": "^6.0.0", "rimraf": "^3.0.2", - "semver": "^7.3.2", - "tar": "^6.0.2", + "semver": "^7.3.5", + "tar": "^6.1.2", "which": "^2.0.2" }, "dependencies": { @@ -23050,13 +22622,13 @@ } }, "npm-packlist": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-2.2.2.tgz", - "integrity": "sha512-Jt01acDvJRhJGthnUJVF/w6gumWOZxO7IkpY/lsX9//zqQgnF7OJaxgQXcerd4uQOLu7W5bkb4mChL9mdfm+Zg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-3.0.0.tgz", + "integrity": "sha512-L/cbzmutAwII5glUcf2DBRNY/d0TFd4e/FnaZigJV6JD85RHZXJFGwCndjMWiiViiWSsWt3tiOLpI3ByTnIdFQ==", "dev": true, "requires": { "glob": "^7.1.6", - "ignore-walk": "^3.0.3", + "ignore-walk": "^4.0.1", "npm-bundled": "^1.1.1", "npm-normalize-package-bin": "^1.0.1" } @@ -23097,15 +22669,15 @@ } }, "npmlog": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", - "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", + "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==", "dev": true, "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" + "are-we-there-yet": "^3.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^4.0.3", + "set-blocking": "^2.0.0" } }, "nth-check": { @@ -23123,18 +22695,6 @@ "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", "dev": true }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true - }, - "oauth-sign": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "dev": true - }, "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", @@ -23423,15 +22983,15 @@ "dev": true }, "pacote": { - "version": "11.3.5", - "resolved": "https://registry.npmjs.org/pacote/-/pacote-11.3.5.tgz", - "integrity": "sha512-fT375Yczn4zi+6Hkk2TBe1x1sP8FgFsEIZ2/iWaXY2r/NkhDJfxbcn5paz1+RTFCyNf+dPnaoBDJoAxXSU8Bkg==", + "version": "12.0.2", + "resolved": "https://registry.npmjs.org/pacote/-/pacote-12.0.2.tgz", + "integrity": "sha512-Ar3mhjcxhMzk+OVZ8pbnXdb0l8+pimvlsqBGRNkble2NVgyqOGE3yrCGi/lAYq7E7NRDMz89R1Wx5HIMCGgeYg==", "dev": true, "requires": { "@npmcli/git": "^2.1.0", "@npmcli/installed-package-contents": "^1.0.6", "@npmcli/promise-spawn": "^1.2.0", - "@npmcli/run-script": "^1.8.2", + "@npmcli/run-script": "^2.0.0", "cacache": "^15.0.5", "chownr": "^2.0.0", "fs-minipass": "^2.1.0", @@ -23439,7 +22999,7 @@ "minipass": "^3.1.3", "mkdirp": "^1.0.3", "npm-package-arg": "^8.0.1", - "npm-packlist": "^2.1.4", + "npm-packlist": "^3.0.0", "npm-pick-manifest": "^6.0.0", "npm-registry-fetch": "^11.0.0", "promise-retry": "^2.0.1", @@ -23576,12 +23136,6 @@ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true }, - "performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", - "dev": true - }, "picomatch": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", @@ -25286,12 +24840,6 @@ "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", "dev": true }, - "psl": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", - "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", - "dev": true - }, "pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", @@ -25537,42 +25085,6 @@ "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", "dev": true }, - "request": { - "version": "2.88.2", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", - "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", - "dev": true, - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.5.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "dependencies": { - "qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true - } - } - }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -26014,9 +25526,9 @@ "dev": true }, "signal-exit": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", - "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, "slash": { @@ -26243,24 +25755,43 @@ } }, "socks": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.6.1.tgz", - "integrity": "sha512-kLQ9N5ucj8uIcxrDwjm0Jsqk06xdpBjGNQtpXy4Q8/QY2k+fY7nZH8CARy+hkbG+SGAovmzzuauCpBlb8FrnBA==", + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", + "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", "dev": true, "requires": { - "ip": "^1.1.5", - "smart-buffer": "^4.1.0" + "ip": "^2.0.0", + "smart-buffer": "^4.2.0" + }, + "dependencies": { + "ip": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==", + "dev": true + } } }, "socks-proxy-agent": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.0.0.tgz", - "integrity": "sha512-FIgZbQWlnjVEQvMkylz64/rUggGtrKstPnx8OZyYFG0tAFR8CSBtpXxSwbFLHyeXFn/cunFL7MpuSOvDSOPo9g==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.2.1.tgz", + "integrity": "sha512-a6KW9G+6B3nWZ1yB8G7pJwL3ggLy1uTzKAgCb7ttblwqdz9fMGJUuTy3uFzEP48FAs9FLILlmzDlE2JJhVQaXQ==", "dev": true, "requires": { "agent-base": "^6.0.2", - "debug": "^4.3.1", - "socks": "^2.6.1" + "debug": "^4.3.3", + "socks": "^2.6.2" + }, + "dependencies": { + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + } } }, "source-list-map": { @@ -26379,23 +25910,6 @@ "extend-shallow": "^3.0.0" } }, - "sshpk": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", - "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", - "dev": true, - "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - } - }, "ssri": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", @@ -26475,23 +25989,23 @@ } }, "string-width": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, "requires": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" + "strip-ansi": "^6.0.1" } }, "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, "requires": { - "ansi-regex": "^5.0.0" + "ansi-regex": "^5.0.1" } }, "strip-eof": { @@ -26764,16 +26278,6 @@ "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", "dev": true }, - "tough-cookie": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", - "dev": true, - "requires": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - } - }, "tree-kill": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", @@ -26785,21 +26289,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" }, - "tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "dev": true, - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true - }, "type-fest": { "version": "0.21.3", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", @@ -27026,7 +26515,7 @@ "validate-npm-package-name": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-3.0.0.tgz", - "integrity": "sha1-X6kS2B630MdK/BQN5zF/DKffQ34=", + "integrity": "sha512-M6w37eVCMMouJ9V/sdPGnC5H4uDr73/+xdq0FBLO3TFFX1+7wiUY6Es328NN+y43tmY+doUdN9g9J21vqB7iLw==", "dev": true, "requires": { "builtins": "^1.0.3" @@ -27044,25 +26533,6 @@ "integrity": "sha512-/juG65kTL4Cy2su4P8HjtkTxk6VmJDiOPBufWniqQ6wknac6jNiXS9vU+hO3wgusiyqWlzTbVHi0dyJqRONg3w==", "dev": true }, - "verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - }, - "dependencies": { - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true - } - } - }, "void-elements": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-2.0.1.tgz", @@ -27601,45 +27071,12 @@ "dev": true }, "wide-align": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", - "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", + "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", "dev": true, "requires": { - "string-width": "^1.0.2 || 2" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } + "string-width": "^1.0.2 || 2 || 3 || 4" } }, "wildcard": { diff --git a/frontend/src/app/app.component.html b/frontend/src/app/app.component.html index 4016501..a53278c 100644 --- a/frontend/src/app/app.component.html +++ b/frontend/src/app/app.component.html @@ -8,7 +8,7 @@ ">
-

2.4.0.0    

+

2.4.0.1    

diff --git a/src/Ethereal.Application.UnitTests/Tests/VideoDescriptionTests.cs b/src/Ethereal.Application.UnitTests/Tests/VideoDescriptionTests.cs index c165308..948f4a6 100644 --- a/src/Ethereal.Application.UnitTests/Tests/VideoDescriptionTests.cs +++ b/src/Ethereal.Application.UnitTests/Tests/VideoDescriptionTests.cs @@ -23,64 +23,91 @@ public class VideoDescriptionTests 5. Cutting Crew - (I Just) Died in Your Arms 03:17:21 6. Roxy Music - More Than This 03:21:40 - 7. Toto - Africa 03:28:00"; + 7. Toto - Africa 03:28:00 + 7. Toto - Africa 04:30:00 + 7. Toto - Africa 05:30:00"; private readonly VideoChapter[] expectedChapters = { - new VideoChapter + new() { Original = "1. (0:00) KOPI / KOBASOLO – Swayed in Spring Reiniscence", Name = "1. KOPI KOBASOLO – Swayed in Spring Reiniscence", + UniqueName = "1. KOPI KOBASOLO – Swayed in Spring Reiniscence", StartTimespan = new TimeSpan(00, 00, 00), - EndTimespan = new TimeSpan(00, 09, 13) + EndTimespan = new TimeSpan(00, 09, 13), }, - new VideoChapter + new() { Original = "2. (09:13) Memai Siren -Nisemono no Utage", Name = "2. Memai Siren -Nisemono no Utage", + UniqueName = "2. Memai Siren -Nisemono no Utage", StartTimespan = new TimeSpan(00, 09, 13), EndTimespan = new TimeSpan(00, 34, 36) }, - new VideoChapter + new() { Original = "3. (34:36) Vivid Undress – Sayonara Dilemma", Name = "3. Vivid Undress – Sayonara Dilemma", + UniqueName = "3. Vivid Undress – Sayonara Dilemma", StartTimespan = new TimeSpan(00, 34, 36), EndTimespan = new TimeSpan(01, 23, 31) }, - new VideoChapter + new() { Original = "4. (1:23:31) Vivid Undress – Yours", Name = "4. Vivid Undress – Yours", + UniqueName = "4. Vivid Undress – Yours", StartTimespan = new TimeSpan(01, 23, 31), EndTimespan = new TimeSpan(03, 17, 21) }, - new VideoChapter + new() { Original = "5. Cutting Crew - (I Just) Died in Your Arms 03:17:21", Name = "5. Cutting Crew - (I Just) Died in Your Arms", + UniqueName = "5. Cutting Crew - (I Just) Died in Your Arms", StartTimespan = new TimeSpan(03, 17, 21), EndTimespan = new TimeSpan(03, 21, 40) }, - new VideoChapter + new() { Original = "6. Roxy Music - More Than This 03:21:40", Name = "6. Roxy Music - More Than This", + UniqueName = "6. Roxy Music - More Than This", StartTimespan = new TimeSpan(03, 21, 40), EndTimespan = new TimeSpan(03, 28, 00) }, - new VideoChapter + new() { Original = "7. Toto - Africa 03:28:00", Name = "7. Toto - Africa", - StartTimespan = new TimeSpan(03, 28, 00) - } + UniqueName = "7. Toto - Africa", + StartTimespan = new TimeSpan(03, 28, 00), + EndTimespan = new TimeSpan(04, 30, 00) + }, + + new() + { + Original = "7. Toto - Africa 04:30:00", + Name = "7. Toto - Africa", + UniqueName = "7. Toto - Africa (2)", + StartTimespan = new TimeSpan(04, 30, 00), + EndTimespan = new TimeSpan(05, 30, 00) + }, + + new() + { + Original = "7. Toto - Africa 05:30:00", + Name = "7. Toto - Africa", + UniqueName = "7. Toto - Africa (3)", + StartTimespan = new TimeSpan(05, 30, 00) + }, }; [Test] diff --git a/src/Ethereal.Application.UnitTests/WithInMemoryDatabaseTestBase.cs b/src/Ethereal.Application.UnitTests/WithInMemoryDatabaseTestBase.cs index 135833e..2041ff0 100644 --- a/src/Ethereal.Application.UnitTests/WithInMemoryDatabaseTestBase.cs +++ b/src/Ethereal.Application.UnitTests/WithInMemoryDatabaseTestBase.cs @@ -8,7 +8,7 @@ namespace Ethereal.Application.UnitTests; -public class WithInMemoryDatabaseTestBase +public abstract class WithInMemoryDatabaseTestBase { protected TestSettings Settings; diff --git a/src/Ethereal.Application/Commands/FetchYoutubeVideoCommand.cs b/src/Ethereal.Application/Commands/FetchYoutubeVideoCommand.cs index 4282922..ba629c6 100644 --- a/src/Ethereal.Application/Commands/FetchYoutubeVideoCommand.cs +++ b/src/Ethereal.Application/Commands/FetchYoutubeVideoCommand.cs @@ -42,6 +42,7 @@ public async Task ExecuteAsync(Guid jobId) var cts = new CancellationTokenSource(); var timeoutDate = DateTime.UtcNow.Add(settings.DownloadingTimeout); + // todo: refactor this var thread = new Thread(async () => { while (true) diff --git a/src/Ethereal.Application/Extensions/ProcessingJobExtensions.cs b/src/Ethereal.Application/Extensions/ProcessingJobExtensions.cs index ebf9b4a..f3383b8 100644 --- a/src/Ethereal.Application/Extensions/ProcessingJobExtensions.cs +++ b/src/Ethereal.Application/Extensions/ProcessingJobExtensions.cs @@ -23,7 +23,7 @@ public static string GetArchivePath(this ProcessingJob job) public static string GetChapterLocalFilePath(this ProcessingJob job, VideoChapter chapter) { - return Path.Combine(job.LocalPath, $"{chapter.Name.RemoveIllegalCharacters()}.mp4"); + return Path.Combine(job.LocalPath, $"{chapter.UniqueName.RemoveIllegalCharacters()}.mp4"); } public static string GetChapterLocalThumbnailFilePath(this ProcessingJob job, VideoChapter chapter, IEtherealSettings settings) diff --git a/src/Ethereal.Application/VideoChapter.cs b/src/Ethereal.Application/VideoChapter.cs index 7378a99..bb824f7 100644 --- a/src/Ethereal.Application/VideoChapter.cs +++ b/src/Ethereal.Application/VideoChapter.cs @@ -21,6 +21,8 @@ public VideoChapter(string original, string name, TimeSpan timespan) public string Name { get; set; } + public string UniqueName { get; set; } + public TimeSpan StartTimespan { get; set; } public TimeSpan? EndTimespan { get; set; } diff --git a/src/Ethereal.Application/VideoDescription.cs b/src/Ethereal.Application/VideoDescription.cs index 21071d1..5666f68 100644 --- a/src/Ethereal.Application/VideoDescription.cs +++ b/src/Ethereal.Application/VideoDescription.cs @@ -56,10 +56,20 @@ public IReadOnlyCollection ParseChapters() StartTimespan = timespan, Name = line.RemoveTimespan().RemoveIllegalCharacters() }; + + chapter.UniqueName = chapter.Name; + + var duplicatesCount = chapters.Count(s => s.Name == chapter.Name); + if (duplicatesCount > 0) + { + chapter.UniqueName += $" ({duplicatesCount + 1})"; + } + chapters.Add(chapter); } catch { + // ignored } } diff --git a/src/Ethereal.WebAPI/Frontend/index.html b/src/Ethereal.WebAPI/Frontend/index.html index 92f33b0..f105661 100644 --- a/src/Ethereal.WebAPI/Frontend/index.html +++ b/src/Ethereal.WebAPI/Frontend/index.html @@ -9,7 +9,7 @@ - + @@ -17,6 +17,6 @@ - + \ No newline at end of file diff --git a/src/Ethereal.WebAPI/Frontend/main.063182d3141acc9f2552.js b/src/Ethereal.WebAPI/Frontend/main.c701f9a37cf8a995727e.js similarity index 99% rename from src/Ethereal.WebAPI/Frontend/main.063182d3141acc9f2552.js rename to src/Ethereal.WebAPI/Frontend/main.c701f9a37cf8a995727e.js index 797b7a1..3cdb35e 100644 --- a/src/Ethereal.WebAPI/Frontend/main.063182d3141acc9f2552.js +++ b/src/Ethereal.WebAPI/Frontend/main.c701f9a37cf8a995727e.js @@ -1 +1 @@ -(self.webpackChunkethereal=self.webpackChunkethereal||[]).push([[179],{255:li=>{function qn(ui){return Promise.resolve().then(()=>{var Tn=new Error("Cannot find module '"+ui+"'");throw Tn.code="MODULE_NOT_FOUND",Tn})}qn.keys=()=>[],qn.resolve=qn,qn.id=255,li.exports=qn},447:(li,qn,ui)=>{"use strict";function Tn(t){return"function"==typeof t}let mu=!1;const Gt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else mu&&console.log("RxJS: Back to a better error behavior. Thank you. <3");mu=t},get useDeprecatedSynchronousErrorHandling(){return mu}};function qr(t){setTimeout(()=>{throw t},0)}const js={closed:!0,next(t){},error(t){if(Gt.useDeprecatedSynchronousErrorHandling)throw t;qr(t)},complete(){}},Hs=Array.isArray||(t=>t&&"number"==typeof t.length);function yu(t){return null!==t&&"object"==typeof t}const Bs=(()=>{function t(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})();class ye{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:o,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof ye)n.remove(this);else if(null!==n)for(let s=0;se.concat(n instanceof Bs?n.errors:n),[])}ye.EMPTY=((t=new ye).closed=!0,t);const Us="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class pe extends ye{constructor(e,n,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=js;break;case 1:if(!e){this.destination=js;break}if("object"==typeof e){e instanceof pe?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new lp(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new lp(this,e,n,r)}}[Us](){return this}static create(e,n,r){const o=new pe(e,n,r);return o.syncErrorThrowable=!1,o}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class lp extends pe{constructor(e,n,r,o){super(),this._parentSubscriber=e;let i,s=this;Tn(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==js&&(s=Object.create(n),Tn(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=i,this._error=r,this._complete=o}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;Gt.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:r}=Gt;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=e,n.syncErrorThrown=!0):qr(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;qr(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const n=()=>this._complete.call(this._context);Gt.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(r){if(this.unsubscribe(),Gt.useDeprecatedSynchronousErrorHandling)throw r;qr(r)}}__tryOrSetError(e,n,r){if(!Gt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(o){return Gt.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=o,e.syncErrorThrown=!0,!0):(qr(o),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const ci="function"==typeof Symbol&&Symbol.observable||"@@observable";function $s(t){return t}let le=(()=>{class t{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){const{operator:i}=this,s=function(t,e,n){if(t){if(t instanceof pe)return t;if(t[Us])return t[Us]()}return t||e||n?new pe(t,e,n):new pe(js)}(n,r,o);if(s.add(i?i.call(s,this.source):this.source||Gt.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Gt.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){Gt.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof pe?n:null}return!0}(n)?n.error(r):console.warn(r)}}forEach(n,r){return new(r=cp(r))((o,i)=>{let s;s=this.subscribe(a=>{try{n(a)}catch(l){i(l),s&&s.unsubscribe()}},i,o)})}_subscribe(n){const{source:r}=this;return r&&r.subscribe(n)}[ci](){return this}pipe(...n){return 0===n.length?this:function(t){return 0===t.length?$s:1===t.length?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=cp(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function cp(t){if(t||(t=Gt.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const zr=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class eD extends ye{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,n=e.observers;if(this.subject=null,!n||0===n.length||e.isStopped||e.closed)return;const r=n.indexOf(this.subscriber);-1!==r&&n.splice(r,1)}}class dp extends pe{constructor(e){super(e),this.destination=e}}let An=(()=>{class t extends le{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Us](){return new dp(this)}lift(n){const r=new fp(this,this);return r.operator=n,r}next(n){if(this.closed)throw new zr;if(!this.isStopped){const{observers:r}=this,o=r.length,i=r.slice();for(let s=0;snew fp(e,n),t})();class fp extends An{constructor(e,n){super(),this.destination=e,this.source=n}next(e){const{destination:n}=this;n&&n.next&&n.next(e)}error(e){const{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:n}=this;return n?this.source.subscribe(e):ye.EMPTY}}function Gs(t){return t&&"function"==typeof t.schedule}function X(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new tD(t,e))}}class tD{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new nD(e,this.project,this.thisArg))}}class nD extends pe{constructor(e,n,r){super(e),this.project=n,this.count=0,this.thisArg=r||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const hp=t=>e=>{for(let n=0,r=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function gp(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const _u=t=>{if(t&&"function"==typeof t[ci])return(t=>e=>{const n=t[ci]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if(pp(t))return hp(t);if(gp(t))return(t=>e=>(t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,qr),e))(t);if(t&&"function"==typeof t[Ws])return(t=>e=>{const n=t[Ws]();for(;;){let r;try{r=n.next()}catch(o){return e.error(o),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const n=`You provided ${yu(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function vu(t,e){return new le(n=>{const r=new ye;let o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function Ge(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[ci]}(t))return function(t,e){return new le(n=>{const r=new ye;return r.add(e.schedule(()=>{const o=t[ci]();r.add(o.subscribe({next(i){r.add(e.schedule(()=>n.next(i)))},error(i){r.add(e.schedule(()=>n.error(i)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(gp(t))return function(t,e){return new le(n=>{const r=new ye;return r.add(e.schedule(()=>t.then(o=>{r.add(e.schedule(()=>{n.next(o),r.add(e.schedule(()=>n.complete()))}))},o=>{r.add(e.schedule(()=>n.error(o)))}))),r})}(t,e);if(pp(t))return vu(t,e);if(function(t){return t&&"function"==typeof t[Ws]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new le(n=>{const r=new ye;let o;return r.add(()=>{o&&"function"==typeof o.return&&o.return()}),r.add(e.schedule(()=>{o=t[Ws](),r.add(e.schedule(function(){if(n.closed)return;let i,s;try{const a=o.next();i=a.value,s=a.done}catch(a){return void n.error(a)}s?n.complete():(n.next(i),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof le?t:new le(_u(t))}class Cu extends pe{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class bu extends pe{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Eu(t,e){if(e.closed)return;if(t instanceof le)return t.subscribe(e);let n;try{n=_u(t)(e)}catch(r){e.error(r)}return n}function We(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(We((o,i)=>Ge(t(o,i)).pipe(X((s,a)=>e(o,s,i,a))),n)):("number"==typeof e&&(n=e),r=>r.lift(new hD(t,n)))}class hD{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new pD(e,this.project,this.concurrent))}}class pD extends bu{constructor(e,n,r=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function di(t=Number.POSITIVE_INFINITY){return We($s,t)}function wu(t,e){return e?vu(t,e):new le(hp(t))}function Du(){return function(e){return e.lift(new mD(e))}}class mD{constructor(e){this.connectable=e}call(e,n){const{connectable:r}=this;r._refCount++;const o=new yD(e,r),i=n.subscribe(o);return o.closed||(o.connection=r.connect()),i}}class yD extends pe{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const n=e._refCount;if(n<=0)return void(this.connection=null);if(e._refCount=n-1,n>1)return void(this.connection=null);const{connection:r}=this,o=e._connection;this.connection=null,o&&(!r||o===r)&&o.unsubscribe()}}class mp extends le{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new ye,e.add(this.source.subscribe(new vD(this.getSubject(),this))),e.closed&&(this._connection=null,e=ye.EMPTY)),e}refCount(){return Du()(this)}}const _D=(()=>{const t=mp.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 vD extends dp{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}}function wD(){return new An}function ee(t){for(let e in t)if(t[e]===ee)return e;throw Error("Could not find renamed property on target object.")}function Su(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function $(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map($).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 Iu(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const SD=ee({__forward_ref__:ee});function ie(t){return t.__forward_ref__=ie,t.toString=function(){return $(this())},t}function A(t){return yp(t)?t():t}function yp(t){return"function"==typeof t&&t.hasOwnProperty(SD)&&t.__forward_ref__===ie}class mr extends Error{constructor(e,n){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(e,n)),this.code=e}}function j(t){return"string"==typeof t?t:null==t?"":String(t)}function ot(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():j(t)}function qs(t,e){const n=e?` in ${e}`:"";throw new mr("201",`No provider for ${ot(t)} found${n}`)}function Ct(t,e){null==t&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function N(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function it(t){return{providers:t.providers||[],imports:t.imports||[]}}function Rn(t){return _p(t,zs)||_p(t,Cp)}function _p(t,e){return t.hasOwnProperty(e)?t[e]:null}function vp(t){return t&&(t.hasOwnProperty(Tu)||t.hasOwnProperty(ND))?t[Tu]:null}const zs=ee({\u0275prov:ee}),Tu=ee({\u0275inj:ee}),Cp=ee({ngInjectableDef:ee}),ND=ee({ngInjectorDef:ee});var x=(()=>((x=x||{})[x.Default=0]="Default",x[x.Host=1]="Host",x[x.Self=2]="Self",x[x.SkipSelf=4]="SkipSelf",x[x.Optional=8]="Optional",x))();let Au;function zn(t){const e=Au;return Au=t,e}function bp(t,e,n){const r=Rn(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&x.Optional?null:void 0!==e?e:void qs($(t),"Injector")}function Qn(t){return{toString:t}.toString()}var At=(()=>((At=At||{})[At.OnPush=0]="OnPush",At[At.Default=1]="Default",At))(),xe=(()=>((xe=xe||{})[xe.Emulated=0]="Emulated",xe[xe.None=2]="None",xe[xe.ShadowDom=3]="ShadowDom",xe))();const PD="undefined"!=typeof globalThis&&globalThis,FD="undefined"!=typeof window&&window,kD="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,VD="undefined"!=typeof global&&global,te=PD||VD||FD||kD,Qr={},re=[],Qs=ee({\u0275cmp:ee}),xu=ee({\u0275dir:ee}),Ru=ee({\u0275pipe:ee}),Ep=ee({\u0275mod:ee}),LD=ee({\u0275loc:ee}),Nn=ee({\u0275fac:ee}),fi=ee({__NG_ELEMENT_ID__:ee});let jD=0;function Jr(t){return Qn(()=>{const n={},r={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:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===At.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||re,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||xe.Emulated,id:"c",styles:t.styles||re,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,i=t.features,s=t.pipes;return r.id+=jD++,r.inputs=Ip(t.inputs,n),r.outputs=Ip(t.outputs),i&&i.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(wp):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(Dp):null,r})}function wp(t){return st(t)||function(t){return t[xu]||null}(t)}function Dp(t){return function(t){return t[Ru]||null}(t)}const Sp={};function bt(t){return Qn(()=>{const e={type:t.type,bootstrap:t.bootstrap||re,declarations:t.declarations||re,imports:t.imports||re,exports:t.exports||re,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Sp[t.id]=t.type),e})}function Ip(t,e){if(null==t)return Qr;const n={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,e&&(e[o]=i)}return n}const O=Jr;function st(t){return t[Qs]||null}function xt(t,e){const n=t[Ep]||null;if(!n&&!0===e)throw new Error(`Type ${$(t)} does not have '\u0275mod' property.`);return n}const B=11;function dn(t){return Array.isArray(t)&&"object"==typeof t[1]}function qt(t){return Array.isArray(t)&&!0===t[1]}function Pu(t){return 0!=(8&t.flags)}function Zs(t){return 2==(2&t.flags)}function Xs(t){return 1==(1&t.flags)}function zt(t){return null!==t.template}function qD(t){return 0!=(512&t[2])}function br(t,e){return t.hasOwnProperty(Nn)?t[Nn]:null}class Tp{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ke(){return Ap}function Ap(t){return t.type.prototype.ngOnChanges&&(t.setInput=KD),JD}function JD(){const t=Rp(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Qr)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function KD(t,e,n,r){const o=Rp(t)||function(t,e){return t[xp]=e}(t,{previous:Qr,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],l=s[a];i[a]=new Tp(l&&l.currentValue,e,s===Qr),t[r]=e}Ke.ngInherit=!0;const xp="__ngSimpleChanges__";function Rp(t){return t[xp]||null}const Np="http://www.w3.org/2000/svg";let Vu;function _e(t){return!!t.listen}const Pp={createRenderer:(t,e)=>void 0!==Vu?Vu:"undefined"!=typeof document?document:void 0};function we(t){for(;Array.isArray(t);)t=t[0];return t}function ea(t,e){return we(e[t])}function Ot(t,e){return we(e[t.index])}function ju(t,e){return t.data[e]}function wt(t,e){const n=e[t];return dn(n)?n:n[0]}function Hu(t){return 128==(128&t[2])}function Kn(t,e){return null==e?null:t[e]}function kp(t){t[18]=0}function Bu(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const F={lFrame:Gp(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Vp(){return F.bindingsEnabled}function v(){return F.lFrame.lView}function Z(){return F.lFrame.tView}function ta(t){return F.lFrame.contextLView=t,t[8]}function Re(){let t=Lp();for(;null!==t&&64===t.type;)t=t.parent;return t}function Lp(){return F.lFrame.currentTNode}function fn(t,e){const n=F.lFrame;n.currentTNode=t,n.isParent=e}function Uu(){return F.lFrame.isParent}function $u(){F.lFrame.isParent=!1}function na(){return F.isInCheckNoChangesMode}function ra(t){F.isInCheckNoChangesMode=t}function to(){return F.lFrame.bindingIndex++}function On(t){const e=F.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function d0(t,e){const n=F.lFrame;n.bindingIndex=n.bindingRootIndex=t,Gu(e)}function Gu(t){F.lFrame.currentDirectiveIndex=t}function qu(t){F.lFrame.currentQueryIndex=t}function h0(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Up(t,e,n){if(n&x.SkipSelf){let o=e,i=t;for(;!(o=o.parent,null!==o||n&x.Host||(o=h0(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;e=o,t=i}const r=F.lFrame=$p();return r.currentTNode=e,r.lView=t,!0}function oa(t){const e=$p(),n=t[1];F.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function $p(){const t=F.lFrame,e=null===t?null:t.child;return null===e?Gp(t):e}function Gp(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 Wp(){const t=F.lFrame;return F.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const qp=Wp;function ia(){const t=Wp();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 lt(){return F.lFrame.selectedIndex}function Yn(t){F.lFrame.selectedIndex=t}function ve(){const t=F.lFrame;return ju(t.tView,t.selectedIndex)}function sa(){F.lFrame.currentNamespace=Np}function aa(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[l]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class yi{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function ca(t,e,n){const r=_e(t);let o=0;for(;oe){s=i-1;break}}}for(;i>16}(t),r=e;for(;n>0;)r=r[15],n--;return r}let Ku=!0;function fa(t){const e=Ku;return Ku=t,e}let I0=0;function vi(t,e){const n=Zu(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Yu(r.data,t),Yu(e,null),Yu(r.blueprint,null));const o=ha(t,e),i=t.injectorIndex;if(Yp(o)){const s=no(o),a=ro(o,e),l=a[1].data;for(let u=0;u<8;u++)e[i+u]=a[s+u]|l[s+u]}return e[i+8]=o,i}function Yu(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Zu(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function ha(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;null!==o;){const i=o[1],s=i.type;if(r=2===s?i.declTNode:1===s?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function pa(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(fi)&&(r=n[fi]),null==r&&(r=n[fi]=I0++);const o=255&r;e.data[t+(o>>5)]|=1<=0?255&e:A0:e}(n);if("function"==typeof i){if(!Up(e,t,r))return r&x.Host?eg(o,n,r):tg(e,n,r,o);try{const s=i(r);if(null!=s||r&x.Optional)return s;qs(n)}finally{qp()}}else if("number"==typeof i){let s=null,a=Zu(t,e),l=-1,u=r&x.Host?e[16][6]:null;for((-1===a||r&x.SkipSelf)&&(l=-1===a?ha(t,e):e[a+8],-1!==l&&ig(r,!1)?(s=e[1],a=no(l),e=ro(l,e)):a=-1);-1!==a;){const c=e[1];if(og(i,a,c.data)){const d=x0(a,e,n,s,r,u);if(d!==rg)return d}l=e[a+8],-1!==l&&ig(r,e[1].data[a+8]===u)&&og(i,a,e)?(s=c,a=no(l),e=ro(l,e)):a=-1}}}return tg(e,n,r,o)}const rg={};function A0(){return new oo(Re(),v())}function x0(t,e,n,r,o,i){const s=e[1],a=s.data[t+8],c=function(t,e,n,r,o){const i=t.providerIndexes,s=e.data,a=1048575&i,l=t.directiveStart,c=i>>20,f=o?a+c:t.directiveEnd;for(let h=r?a:a+c;h=l&&p.type===n)return h}if(o){const h=s[l];if(h&&zt(h)&&h.type===n)return l}return null}(a,s,n,null==r?Zs(a)&&Ku:r!=s&&0!=(3&a.type),o&x.Host&&i===a);return null!==c?Ci(e,s,c,a):rg}function Ci(t,e,n,r){let o=t[n];const i=e.data;if(function(t){return t instanceof yi}(o)){const s=o;s.resolving&&function(t,e){throw new mr("200",`Circular dependency in DI detected for ${t}`)}(ot(i[n]));const a=fa(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?zn(s.injectImpl):null;Up(t,r,x.Default);try{o=t[n]=s.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){const s=Ap(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{null!==l&&zn(l),fa(a),s.resolving=!1,qp()}}return o}function og(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Nn]||Xu(e),r=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){const i=o[Nn]||Xu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Xu(t){return yp(t)?()=>{const e=Xu(A(t));return e&&e()}:br(t)}const so="__parameters__";function Er(t,e,n){return Qn(()=>{const r=function(t){return function(...n){if(t){const r=t(...n);for(const o in r)this[o]=r[o]}}}(e);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(so)?l[so]:Object.defineProperty(l,so,{value:[]})[so];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}class G{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=N({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const P0=new G("AnalyzeForEntryComponents"),ma=Function;function pn(t,e){t.forEach(n=>Array.isArray(n)?pn(n,e):e(n))}function _a(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function wr(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Dt(t,e,n){let r=lo(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(1===o)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;)t[o]=t[o-2],o--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function tc(t,e){const n=lo(t,e);if(n>=0)return t[1|n]}function lo(t,e){return function(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=t[i<e?o=i:r=i+1}return~(o< ");else if("object"==typeof e){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):$(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(G0,"\n ")}`}("\n"+t.message,o,n,r),t.ngTokenPath=o,t[uo]=null,t}const fo=Mi(Er("Inject",t=>({token:t})),-1),yt=Mi(Er("Optional"),8),er=Mi(Er("SkipSelf"),4);class Sr{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function St(t){return t instanceof Sr?t.changingThisBreaksApplicationSecurity:t}function gn(t,e){const n=function(t){return t instanceof Sr&&t.getTypeName()||null}(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}const yS=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,_S=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var oe=(()=>((oe=oe||{})[oe.NONE=0]="NONE",oe[oe.HTML=1]="HTML",oe[oe.STYLE=2]="STYLE",oe[oe.SCRIPT=3]="SCRIPT",oe[oe.URL=4]="URL",oe[oe.RESOURCE_URL=5]="RESOURCE_URL",oe))();function Ri(t){const e=function(){const t=v();return t&&t[12]}();return e?e.sanitize(oe.URL,t)||"":gn(t,"URL")?St(t):function(t){return(t=String(t)).match(yS)||t.match(_S)?t:"unsafe:"+t}(j(t))}const xg="__ngContext__";function Ye(t,e){t[xg]=e}function pc(t){const e=function(t){return t[xg]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Sa(t){return t.ngOriginalError}function HS(t,...e){t.error(...e)}class Ir{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),r=this._findContext(e),o=function(t){return t&&t.ngErrorLogger||HS}(e);o(this._console,"ERROR",e),n&&o(this._console,"ORIGINAL ERROR",n),r&&o(this._console,"ERROR CONTEXT",r)}_findContext(e){return e?function(t){return t.ngDebugContext}(e)||this._findContext(Sa(e)):null}_findOriginalError(e){let n=e&&Sa(e);for(;n&&Sa(n);)n=Sa(n);return n||null}}const jg=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(te))();function yn(t){return t instanceof Function?t():t}var It=(()=>((It=It||{})[It.Important=1]="Important",It[It.DashCase=2]="DashCase",It))();function yc(t,e){return undefined(t,e)}function Pi(t){const e=t[3];return qt(e)?e[3]:e}function _c(t){return Gg(t[13])}function vc(t){return Gg(t[4])}function Gg(t){for(;null!==t&&!qt(t);)t=t[4];return t}function mo(t,e,n,r,o){if(null!=r){let i,s=!1;qt(r)?i=r:dn(r)&&(s=!0,r=r[0]);const a=we(r);0===t&&null!==n?null==o?Kg(e,n,a):Mr(e,n,a,o||null,!0):1===t&&null!==n?Mr(e,n,a,o||null,!0):2===t?function(t,e,n){const r=Ma(t,e);r&&function(t,e,n,r){_e(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,r,o){const i=n[7];i!==we(n)&&mo(e,t,r,i,o);for(let a=10;a0&&(t[n-1][4]=r[4]);const i=wr(t,10+e);!function(t,e){Fi(t,e,e[B],2,null,null),e[0]=null,e[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function zg(t,e){if(!(256&e[2])){const n=e[B];_e(n)&&n.destroyNode&&Fi(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return wc(t[1],t);for(;e;){let n=null;if(dn(e))n=e[13];else{const r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)dn(e)&&wc(e[1],e),e=e[3];null===e&&(e=t),dn(e)&&wc(e[1],e),n=e&&e[4]}e=n}}(e)}}function wc(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 r=0;r=0?r[o=u]():r[o=-u].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==sm(h,u,0)||2&r&&u!==f){if(Qt(r))return!1;s=!0}}}}else{if(!s&&!Qt(r)&&!Qt(l))return!1;if(s&&Qt(l))continue;s=!1,r=l|1&r}}return Qt(r)||s}function Qt(t){return 0==(1&t)}function gI(t,e,n,r){if(null===e)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Qt(s)&&(e+=cm(i,o),o=""),r=s,i=i||!Qt(r);n++}return""!==o&&(e+=cm(i,o)),e}const V={};function K(t){dm(Z(),v(),lt()+t,na())}function dm(t,e,n,r){if(!r)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&la(e,i,n)}else{const i=t.preOrderHooks;null!==i&&ua(e,i,0,n)}Yn(n)}function xa(t,e){return t<<17|e<<2}function Jt(t){return t>>17&32767}function Tc(t){return 2|t}function Pn(t){return(131068&t)>>2}function Ac(t,e){return-131069&t|e<<2}function xc(t){return 1|t}function bm(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r20&&dm(t,e,20,na()),n(r,o)}finally{Yn(i)}}function wm(t,e,n){if(Pu(e)){const o=e.directiveEnd;for(let i=e.directiveStart;i0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(a)!=l&&a.push(l),a.push(r,o,s)}}function Rm(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Nm(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function qI(t,e,n){if(n){if(e.exportAs)for(let r=0;r0&&Uc(n)}}function Uc(t){for(let r=_c(t);null!==r;r=vc(r))for(let o=10;o0&&Uc(i)}const n=t[1].components;if(null!==n)for(let r=0;r0&&Uc(o)}}function XI(t,e){const n=wt(e,t),r=n[1];(function(t,e){for(let n=e.length;nPromise.resolve(null))();function Vm(t){return t[7]||(t[7]=[])}function Lm(t){return t.cleanup||(t.cleanup=[])}function Hm(t,e){const n=t[9],r=n?n.get(Ir,null):null;r&&r.handleError(e)}function Bm(t,e,n,r,o){for(let i=0;ithis.processProvider(a,e,n)),pn([e],a=>this.processInjectorType(a,[],i)),this.records.set(Co,bo(void 0,this));const s=this.records.get(Li);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:$(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=Si,r=x.Default){this.assertNotDestroyed();const o=co(this),i=zn(void 0);try{if(!(r&x.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function(t){return"function"==typeof t||"object"==typeof t&&t instanceof G}(e)&&Rn(e);a=l&&this.injectableDefInScope(l)?bo(Qc(e),ji):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&x.Self?$m():this.parent).get(e,n=r&x.Optional&&n===Si?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[uo]=s[uo]||[]).unshift($(e)),o)throw s;return dg(s,e,"R3InjectorError",this.source)}throw s}finally{zn(i),co(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,o)=>e.push($(o))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,n,r){if(!(e=A(e)))return!1;let o=vp(e);const i=null==o&&e.ngModule||void 0,s=void 0===i?e:i,a=-1!==r.indexOf(s);if(void 0!==i&&(o=vp(i)),null==o)return!1;if(null!=o.imports&&!a){let c;r.push(s);try{pn(o.imports,d=>{this.processInjectorType(d,n,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;dthis.processProvider(p,f,h||re))}}this.injectorDefTypes.add(s);const l=br(s)||(()=>new s);this.records.set(s,bo(l,ji));const u=o.providers;if(null!=u&&!a){const c=e;pn(u,d=>this.processProvider(d,c,u))}return void 0!==i&&void 0!==e.providers}processProvider(e,n,r){let o=Eo(e=A(e))?e:A(e&&e.provide);const i=function(t,e,n){return qm(t)?bo(void 0,t.useValue):bo(Wm(t),ji)}(e);if(Eo(e)||!0!==e.multi)this.records.get(o);else{let s=this.records.get(o);s||(s=bo(void 0,ji,!0),s.factory=()=>Dr(s.multi),this.records.set(o,s)),o=e,s.multi.push(e)}this.records.set(o,i)}hydrate(e,n){return n.value===ji&&(n.value=aM,n.value=n.factory()),"object"==typeof n.value&&n.value&&function(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=A(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Qc(t){const e=Rn(t),n=null!==e?e.factory:br(t);if(null!==n)return n;if(t instanceof G)throw new Error(`Token ${$(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const r=function(t,e){const n=[];for(let r=0;rn.factory(t):()=>new t}(t);throw new Error("unreachable")}function Wm(t,e,n){let r;if(Eo(t)){const o=A(t);return br(o)||Qc(o)}if(qm(t))r=()=>A(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...Dr(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>b(A(t.useExisting));else{const o=A(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return br(o)||Qc(o);r=()=>new o(...Dr(t.deps))}return r}function bo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function qm(t){return null!==t&&"object"==typeof t&&ic in t}function Eo(t){return"function"==typeof t}const zm=function(t,e,n){return function(t,e=null,n=null,r){const o=Gm(t,e,n,r);return o._resolveInjectorDefTypes(),o}({name:n},e,t,n)};class Y{static create(e,n){return Array.isArray(e)?zm(e,n,""):zm(e.providers,e.parent,e.name||"")}}function xM(t,e){aa(pc(t)[1],Re())}function ce(t){let e=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const r=[t];for(;e;){let o;if(zt(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");o=e.\u0275dir}if(o){if(n){r.push(o);const s=t;s.inputs=ed(t.inputs),s.declaredInputs=ed(t.declaredInputs),s.outputs=ed(t.outputs);const a=o.hostBindings;a&&PM(t,a);const l=o.viewQuery,u=o.contentQueries;if(l&&NM(t,l),u&&OM(t,u),Su(t.inputs,o.inputs),Su(t.declaredInputs,o.declaredInputs),Su(t.outputs,o.outputs),zt(o)&&o.data.animation){const c=t.data;c.animation=(c.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s=0;r--){const o=t[r];o.hostVars=e+=o.hostVars,o.hostAttrs=da(o.hostAttrs,n=da(n,o.hostAttrs))}}(r)}function ed(t){return t===Qr?{}:t===re?[]:t}function NM(t,e){const n=t.viewQuery;t.viewQuery=n?(r,o)=>{e(r,o),n(r,o)}:e}function OM(t,e){const n=t.contentQueries;t.contentQueries=n?(r,o,i)=>{e(r,o,i),n(r,o,i)}:e}function PM(t,e){const n=t.hostBindings;t.hostBindings=n?(r,o)=>{e(r,o),n(r,o)}:e}Y.THROW_IF_NOT_FOUND=Si,Y.NULL=new Um,Y.\u0275prov=N({token:Y,providedIn:"any",factory:()=>b(Co)}),Y.__NG_ELEMENT_ID__=-1;let ka=null;function wo(){if(!ka){const t=te.Symbol;if(t&&t.iterator)ka=t.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;na(we(T[r.index])):r.index;if(_e(n)){let T=null;if(!a&&l&&(T=function(t,e,n,r){const o=t.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(t,e,o,r.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=i,T.__ngLastListenerFn__=i,h=!1;else{i=ud(r,e,d,i,!1);const W=n.listen(_,o,i);f.push(i,W),c&&c.push(o,w,y,y+1)}}else i=ud(r,e,d,i,!0),_.addEventListener(o,i,s),f.push(i),c&&c.push(o,w,y,s)}else i=ud(r,e,d,i,!1);const p=r.outputs;let m;if(h&&null!==p&&(m=p[o])){const g=m.length;if(g)for(let _=0;_0;)e=e[15],t--;return e}(t,F.lFrame.contextLView))[8]}(t)}function cd(t,e,n){return Ba(t,"",e,"",n),cd}function Ba(t,e,n,r,o){const i=v(),s=So(i,e,n,r);return s!==V&&Mt(Z(),ve(),i,t,s,i[B],o,!1),Ba}function $y(t,e,n,r,o){const i=t[n+1],s=null===e;let a=r?Jt(i):Pn(i),l=!1;for(;0!==a&&(!1===l||s);){const c=t[a+1];bT(t[a],e)&&(l=!0,t[a+1]=r?xc(c):Tc(c)),a=r?Jt(c):Pn(c)}l&&(t[n+1]=r?Tc(i):xc(i))}function bT(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&lo(t,e)>=0}function Ua(t,e){return function(t,e,n,r){const o=v(),i=Z(),s=On(2);i.firstUpdatePass&&function(t,e,n,r){const o=t.data;if(null===o[n+1]){const i=o[lt()],s=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(i,r)&&null===e&&!s&&(e=!1),e=function(t,e,n,r){const o=function(t){const e=F.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=r?e.residualClasses:e.residualStyles;if(null===o)0===(r?e.classBindings:e.styleBindings)&&(n=Gi(n=dd(null,t,e,n,r),e.attrs,r),i=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==o)if(n=dd(o,t,e,n,r),null===i){let l=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Pn(r))return t[Jt(r)]}(t,e,r);void 0!==l&&Array.isArray(l)&&(l=dd(null,t,e,l[1],r),l=Gi(l,e.attrs,r),function(t,e,n,r){t[Jt(n?e.classBindings:e.styleBindings)]=r}(t,e,r,l))}else i=function(t,e,n){let r;const o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0)&&(u=!0)}else c=n;if(o)if(0!==l){const f=Jt(t[a+1]);t[r+1]=xa(f,a),0!==f&&(t[f+1]=Ac(t[f+1],r)),t[a+1]=function(t,e){return 131071&t|e<<17}(t[a+1],r)}else t[r+1]=xa(a,0),0!==a&&(t[a+1]=Ac(t[a+1],r)),a=r;else t[r+1]=xa(l,0),0===a?a=r:t[l+1]=Ac(t[l+1],r),l=r;u&&(t[r+1]=Tc(t[r+1])),$y(t,c,r,!0),$y(t,c,r,!1),function(t,e,n,r,o){const i=o?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&lo(i,e)>=0&&(n[r+1]=xc(n[r+1]))}(e,c,t,r,i),s=xa(a,l),i?e.classBindings=s:e.styleBindings=s}(o,i,e,n,s,r)}}(i,t,s,r),e!==V&&Ze(o,s,e)&&function(t,e,n,r,o,i,s,a){if(!(3&e.type))return;const l=t.data,u=l[a+1];$a(function(t){return 1==(1&t)}(u)?t_(l,e,n,o,Pn(u),s):void 0)||($a(i)||function(t){return 2==(2&t)}(u)&&(i=t_(l,null,n,o,a,s)),function(t,e,n,r,o){const i=_e(t);if(e)o?i?t.addClass(n,r):n.classList.add(r):i?t.removeClass(n,r):n.classList.remove(r);else{let s=-1===r.indexOf("-")?void 0:It.DashCase;if(null==o)i?t.removeStyle(n,r,s):n.style.removeProperty(r);else{const a="string"==typeof o&&o.endsWith("!important");a&&(o=o.slice(0,-10),s|=It.Important),i?t.setStyle(n,r,o,s):n.style.setProperty(r,o,a?"important":"")}}}(r,s,ea(lt(),n),o,i))}(i,i.data[lt()],o,o[B],t,o[s+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=$(St(t)))),t}(e,n),r,s)}(t,e,null,!0),Ua}function dd(t,e,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=t[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===V&&(f=d?re:void 0);let h=d?tc(f,r):c===r?f:void 0;if(u&&!$a(h)&&(h=tc(l,r)),$a(h)&&(a=h,s))return a;const p=t[o+1];o=s?Jt(p):Pn(p)}if(null!==e){let l=i?e.residualClasses:e.residualStyles;null!=l&&(a=tc(l,r))}return a}function $a(t){return void 0!==t}function Fe(t,e=""){const n=v(),r=Z(),o=t+20,i=r.firstCreatePass?yo(r,o,1,e,null):r.data[o],s=n[o]=function(t,e){return _e(t)?t.createText(e):t.createTextNode(e)}(n[B],e);Ta(r,n,s,i),fn(i,!1)}function Ar(t){return xr("",t,""),Ar}function xr(t,e,n){const r=v(),o=So(r,t,e,n);return o!==V&&kn(r,lt(),o),xr}function fd(t,e,n,r,o){const i=v(),s=Io(i,t,e,n,r,o);return s!==V&&kn(i,lt(),s),fd}function hd(t,e,n){const r=v();return Ze(r,to(),e)&&Mt(Z(),ve(),r,t,e,r[B],n,!0),hd}const Rr=void 0;var nA=["en",[["a","p"],["AM","PM"],Rr],[["AM","PM"],Rr,Rr],[["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"]],Rr,[["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"]],Rr,[["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}",Rr,"{1} 'at' {0}",Rr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Fo={};function b_(t){return t in Fo||(Fo[t]=te.ng&&te.ng.common&&te.ng.common.locales&&te.ng.common.locales[t]),Fo[t]}var D=(()=>((D=D||{})[D.LocaleId=0]="LocaleId",D[D.DayPeriodsFormat=1]="DayPeriodsFormat",D[D.DayPeriodsStandalone=2]="DayPeriodsStandalone",D[D.DaysFormat=3]="DaysFormat",D[D.DaysStandalone=4]="DaysStandalone",D[D.MonthsFormat=5]="MonthsFormat",D[D.MonthsStandalone=6]="MonthsStandalone",D[D.Eras=7]="Eras",D[D.FirstDayOfWeek=8]="FirstDayOfWeek",D[D.WeekendRange=9]="WeekendRange",D[D.DateFormat=10]="DateFormat",D[D.TimeFormat=11]="TimeFormat",D[D.DateTimeFormat=12]="DateTimeFormat",D[D.NumberSymbols=13]="NumberSymbols",D[D.NumberFormats=14]="NumberFormats",D[D.CurrencyCode=15]="CurrencyCode",D[D.CurrencySymbol=16]="CurrencySymbol",D[D.CurrencyName=17]="CurrencyName",D[D.Currencies=18]="Currencies",D[D.Directionality=19]="Directionality",D[D.PluralCase=20]="PluralCase",D[D.ExtraData=21]="ExtraData",D))();const Ga="en-US";let E_=Ga;function pd(t){Ct(t,"Expected localeId to be defined"),"string"==typeof t&&(E_=t.toLowerCase().replace(/_/g,"-"))}function yd(t,e,n,r,o){if(t=A(t),Array.isArray(t))for(let i=0;i>20;if(Eo(t)||!t.multi){const h=new yi(l,o,C),p=vd(a,e,o?c:c+f,d);-1===p?(pa(vi(u,s),i,a),_d(i,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=vd(a,e,c+f,d),p=vd(a,e,c,c+f),m=h>=0&&n[h],g=p>=0&&n[p];if(o&&!g||!o&&!m){pa(vi(u,s),i,a);const _=function(t,e,n,r,o){const i=new yi(t,n,C);return i.multi=[],i.index=e,i.componentProviders=0,q_(i,o,r&&!n),i}(o?XA:ZA,n.length,o,r,l);!o&&g&&(n[p].providerFactory=_),_d(i,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(_),s.push(_)}else _d(i,t,h>-1?h:p,q_(n[o?p:h],l,!o&&r));!o&&r&&g&&n[p].componentProviders++}}}function _d(t,e,n,r){const o=Eo(e);if(o||function(t){return!!t.useClass}(e)){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const a=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){const l=a.indexOf(n);-1===l?a.push(n,[r,s]):a[l+1].push(r,s)}else a.push(n,s)}}}function q_(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function vd(t,e,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function(t,e,n){const r=Z();if(r.firstCreatePass){const o=zt(t);yd(n,r.data,r.blueprint,o,!0),yd(e,r.data,r.blueprint,o,!1)}}(r,o?o(t):t,e)}}class z_{}const J_="ngComponent";class nx{resolveComponentFactory(e){throw function(t){const e=Error(`No component factory found for ${$(t)}. Did you add it to @NgModule.entryComponents?`);return e[J_]=t,e}(e)}}class rr{}function Ja(...t){}function Vo(t,e){return new Be(Ot(t,e))}rr.NULL=new nx;const ix=function(){return Vo(Re(),v())};let Be=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=ix,t})();class Ka{}let Ln=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ax(),t})();const ax=function(){const t=v(),n=wt(Re().index,t);return function(t){return t[B]}(dn(n)?n:t)};let Ed=(()=>{class t{}return t.\u0275prov=N({token:t,providedIn:"root",factory:()=>null}),t})();class Ji{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Y_=new Ji("12.2.5");class Z_{constructor(){}supports(e){return Bi(e)}create(e){return new dx(e)}}const cx=(t,e)=>e;class dx{constructor(e){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=e||cx}forEachItem(e){let n;for(n=this._itHead;null!==n;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,o){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new fx(n,r),i,o),e}_verifyReinsertion(e,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;null!==e;){const n=e._next;this._addToRemovals(this._unlink(e)),e=n}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(e,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const o=e._prevRemoved,i=e._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){const o=null===n?this._itHead:n._next;return e._next=o,e._prev=n,null===o?this._itTail=e:o._prev=e,null===n?this._itHead=e:n._next=e,null===this._linkedRecords&&(this._linkedRecords=new X_),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const n=e._prev,r=e._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new X_),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class fx{constructor(e,n){this.item=e,this.trackById=n,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 hx{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const n=e._prevDup,r=e._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class X_{constructor(){this.map=new Map}put(e){const n=e.trackById;let r=this.map.get(n);r||(r=new hx,this.map.set(n,r)),r.add(e)}get(e,n){const o=this.map.get(e);return o?o.get(e,n):null}remove(e){const n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ev(t,e,n){const r=t.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,n){if(e){const r=e._prev;return n._next=e,n._prev=r,e._prev=n,r&&(r._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){const o=this._records.get(e);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new gx(e);return this._records.set(e,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(r=>n(e[r],r))}}class gx{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function nv(){return new Ki([new Z_])}let Ki=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||nv()),deps:[[t,new er,new yt]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(t){return t.name||typeof t}(n)}'`)}}return t.\u0275prov=N({token:t,providedIn:"root",factory:nv}),t})();function rv(){return new Lo([new tv])}let Lo=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||rv()),deps:[[t,new er,new yt]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return t.\u0275prov=N({token:t,providedIn:"root",factory:rv}),t})();function Ya(t,e,n,r,o=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&r.push(we(i)),qt(i))for(let a=10;a-1&&(Ec(e,r),wr(n,r))}this._attachedToViewContainer=!1}zg(this._lView[1],this._lView)}onDestroy(e){!function(t,e,n,r){const o=Vm(e);null===n?o.push(r):(o.push(n),t.firstCreatePass&&Lm(t).push(r,o.length-1))}(this._lView[1],this._lView,null,e)}markForCheck(){$c(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Wc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){ra(!0);try{Wc(t,e,n)}finally{ra(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function(t,e){Fi(t,e,e[B],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class yx extends Yi{constructor(e){super(e),this._view=e}detectChanges(){km(this._view)}checkNoChanges(){!function(t){ra(!0);try{km(t)}finally{ra(!1)}}(this._view)}get context(){return null}}const vx=function(t){return function(t,e,n){if(Zs(t)&&!n){const r=wt(t.index,e);return new Yi(r,r)}return 47&t.type?new Yi(e[16],e):null}(Re(),v(),16==(16&t))};let wd=(()=>{class t{}return t.__NG_ELEMENT_ID__=vx,t})();const Ex=[new tv],Dx=new Ki([new Z_]),Sx=new Lo(Ex),Mx=function(){return function(t,e){return 4&t.type?new Ax(e,t,Vo(t,e)):null}(Re(),v())};let jn=(()=>{class t{}return t.__NG_ELEMENT_ID__=Mx,t})();const Tx=jn,Ax=class extends Tx{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(e){const n=this._declarationTContainer.tViews,r=ki(this._declarationLView,n,e,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(r[19]=i.createEmbeddedView(n)),Vi(n,r,e),new Yi(r)}};class wn{}class ov{}const Nx=function(){return function(t,e){let n;const r=e[t.index];if(qt(r))n=r;else{let o;if(8&t.type)o=we(r);else{const i=e[B];o=i.createComment("");const s=Ot(t,e);Mr(i,Ma(i,s),o,function(t,e){return _e(t)?t.nextSibling(e):e.nextSibling}(i,s),!1)}e[t.index]=n=Fm(r,e,o,t),Pa(e,n)}return new iv(n,t,e)}(Re(),v())};let tn=(()=>{class t{}return t.__NG_ELEMENT_ID__=Nx,t})();const Px=tn,iv=class extends Px{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Vo(this._hostTNode,this._hostLView)}get injector(){return new oo(this._hostTNode,this._hostLView)}get parentInjector(){const e=ha(this._hostTNode,this._hostLView);if(Yp(e)){const n=ro(e,this._hostLView),r=no(e);return new oo(n[1].data[r+8],n)}return new oo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=sv(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,r){const o=e.createEmbeddedView(n||{});return this.insert(o,r),o}createComponent(e,n,r,o,i){const s=r||this.parentInjector;if(!i&&null==e.ngModule&&s){const l=s.get(wn,null);l&&(i=l)}const a=e.create(s,o,void 0,i);return this.insert(a.hostView,n),a}insert(e,n){const r=e._lView,o=r[1];if(function(t){return qt(t[3])}(r)){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const d=r[3],f=new iv(d,d[6],d[3]);f.detach(f.indexOf(e))}}const i=this._adjustIndex(n),s=this._lContainer;!function(t,e,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=e),rjg});class Av extends z_{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function(t){return t.map(CI).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Tv(this.componentDef.inputs)}get outputs(){return Tv(this.componentDef.outputs)}create(e,n,r,o){const i=(o=o||this.ngModule)?function(t,e){return{get:(n,r,o)=>{const i=t.get(n,Uo,o);return i!==Uo||r===Uo?i:e.get(n,r,o)}}}(e,o.injector):e,s=i.get(Ka,Pp),a=i.get(Ed,null),l=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",c=r?function(t,e,n){if(_e(t))return t.selectRootElement(e,n===xe.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(l,r,this.componentDef.encapsulation):bc(s.createRenderer(null,this.componentDef),u,function(t){const e=t.toLowerCase();return"svg"===e?Np:"math"===e?"http://www.w3.org/1998/MathML/":null}(u)),d=this.componentDef.onPush?576:528,f=function(t,e){return{components:[],scheduler:t||jg,clean:oM,playerHandler:e||null,flags:0}}(),h=Oa(0,null,null,1,0,null,null,null,null,null),p=ki(null,h,f,d,null,null,s,l,a,i);let m,g;oa(p);try{const _=function(t,e,n,r,o,i){const s=n[1];n[20]=t;const l=yo(s,20,2,"#host",null),u=l.mergedAttrs=e.hostAttrs;null!==u&&(Fa(l,u,!0),null!==t&&(ca(o,t,u),null!==l.classes&&Mc(o,t,l.classes),null!==l.styles&&im(o,t,l.styles)));const c=r.createRenderer(t,e),d=ki(n,Dm(e),null,e.onPush?64:16,n[20],l,r,c,i||null,null);return s.firstCreatePass&&(pa(vi(l,n),s,e.type),Nm(s,l),Om(l,n.length,1)),Pa(n,d),n[20]=d}(c,this.componentDef,p,s,l);if(c)if(r)ca(l,c,["ng-version",Y_.full]);else{const{attrs:y,classes:w}=function(t){const e=[],n=[];let r=1,o=2;for(;r0&&Mc(l,c,w.join(" "))}if(g=ju(h,20),void 0!==n){const y=g.projection=[];for(let w=0;wl(s,e)),e.contentQueries){const l=Re();e.contentQueries(1,s,l.directiveStart)}const a=Re();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Yn(a.index),xm(n[1],a,0,a.directiveStart,a.directiveEnd,e),Rm(e,s)),s}(_,this.componentDef,p,f,[xM]),Vi(h,p,null)}finally{ia()}return new OR(this.componentType,m,Vo(g,p),p,g)}}class OR extends class{}{constructor(e,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new yx(o),this.componentType=e}get injector(){return new oo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const $o=new Map;class kR extends wn{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Mv(this);const r=xt(e),o=function(t){return t[LD]||null}(e);o&&pd(o),this._bootstrapComponents=yn(r.bootstrap),this._r3Injector=Gm(e,n,[{provide:wn,useValue:this},{provide:rr,useValue:this.componentFactoryResolver}],$(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=Y.THROW_IF_NOT_FOUND,r=x.Default){return e===Y||e===wn||e===Co?this:this._r3Injector.get(e,n,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Vd extends ov{constructor(e){super(),this.moduleType=e,null!==xt(e)&&function(t){const e=new Set;!function n(r){const o=xt(r,!0),i=o.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${$(e)} vs ${$(e.name)}`)}(i,$o.get(i),r),$o.set(i,r));const s=yn(o.imports);for(const a of s)e.has(a)||(e.add(a),n(a))}(t)}(e)}create(e){return new kR(this.moduleType,e)}}function rl(t,e,n){const r=function(){const t=F.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}()+t,o=v();return o[r]===V?function(t,e,n){return t[e]=n}(o,r,n?e.call(n):e()):function(t,e){return t[e]}(o,r)}function Ld(t){return e=>{setTimeout(t,void 0,e)}}const ke=class extends An{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){var o,i,s;let a=e,l=n||(()=>null),u=r;if(e&&"object"==typeof e){const d=e;a=null===(o=d.next)||void 0===o?void 0:o.bind(d),l=null===(i=d.error)||void 0===i?void 0:i.bind(d),u=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=Ld(l),a&&(a=Ld(a)),u&&(u=Ld(u)));const c=super.subscribe({next:a,error:l,complete:u});return e instanceof ye&&e.add(c),c}};Symbol;const us=new G("Application Initializer");let Wo=(()=>{class t{constructor(n){this.appInits=n,this.resolve=Ja,this.reject=Ja,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:l})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(b(us,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const cs=new G("AppId"),V1={provide:cs,useFactory:function(){return`${Zd()}${Zd()}${Zd()}`},deps:[]};function Zd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const iC=new G("Platform Initializer"),al=new G("Platform ID"),sC=new G("appBootstrapListener");let ll=(()=>{class t{log(n){console.log(n)}warn(n){console.warn(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const ir=new G("LocaleId"),aC=new G("DefaultCurrencyCode");class j1{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}}const Xd=function(t){return new Vd(t)},H1=Xd,B1=function(t){return Promise.resolve(Xd(t))},lC=function(t){const e=Xd(t),r=yn(xt(t).declarations).reduce((o,i)=>{const s=st(i);return s&&o.push(new Av(s)),o},[]);return new j1(e,r)},U1=lC,$1=function(t){return Promise.resolve(lC(t))};let Pr=(()=>{class t{constructor(){this.compileModuleSync=H1,this.compileModuleAsync=B1,this.compileModuleAndAllComponentsSync=U1,this.compileModuleAndAllComponentsAsync=$1}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const q1=(()=>Promise.resolve(0))();function ef(t){"undefined"==typeof Zone?q1.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class De{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ke(!1),this.onMicrotaskEmpty=new ke(!1),this.onStable=new ke(!1),this.onError=new ke(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function(){let t=te.requestAnimationFrame,e=te.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(te,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,nf(t),t.isCheckStableRunning=!0,tf(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),nf(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return uC(t),n.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&e(),cC(t)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return uC(t),n.invoke(o,i,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),cC(t)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,nf(t),tf(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!De.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(De.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,Q1,Ja,Ja);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const Q1={};function tf(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 nf(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function uC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function cC(t){t._nesting--,tf(t)}class Y1{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ke,this.onMicrotaskEmpty=new ke,this.onStable=new ke,this.onError=new ke}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}}let rf=(()=>{class t{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.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:()=>{De.assertNotInAngularZone(),ef(()=>{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())ef(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return t.\u0275fac=function(n){return new(n||t)(b(De))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),dC=(()=>{class t{constructor(){this._applications=new Map,of.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return of.findTestabilityInTree(this,n,r)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();class Z1{addToWindow(e){}findTestabilityInTree(e,n,r){return null}}let of=new Z1,fC=!0,hC=!1;let on;const gC=new G("AllowMultipleToken");class sf{constructor(e,n){this.name=e,this.token=n}}function mC(t,e,n=[]){const r=`Platform: ${e}`,o=new G(r);return(i=[])=>{let s=yC();if(!s||s.injector.get(gC,!1))if(t)t(n.concat(i).concat({provide:o,useValue:!0}));else{const a=n.concat(i).concat({provide:o,useValue:!0},{provide:Li,useValue:"platform"});!function(t){if(on&&!on.destroyed&&!on.injector.get(gC,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");on=t.get(_C);const e=t.get(iC,null);e&&e.forEach(n=>n())}(Y.create({providers:a,name:r}))}return function(t){const e=yC();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function yC(){return on&&!on.destroyed?on:null}let _C=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function(t,e){let n;return n="noop"===t?new Y1:("zone.js"===t?void 0:t)||new De({enableLongStackTrace:(hC=!0,fC),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),l=[{provide:De,useValue:a}];return a.run(()=>{const u=Y.create({providers:l,parent:this.injector,name:n.moduleType.name}),c=n.create(u),d=c.injector.get(Ir,null);if(!d)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});c.onDestroy(()=>{af(this._modules,c),f.unsubscribe()})}),function(t,e,n){try{const r=n();return $i(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(d,a,()=>{const f=c.injector.get(Wo);return f.runInitializers(),f.donePromise.then(()=>(pd(c.injector.get(ir,Ga)||Ga),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,r=[]){const o=vC({},r);return function(t,e,n){const r=new Vd(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(qo);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${$(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(b(Y))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();function vC(t,e){return Array.isArray(e)?e.reduce(vC,t):Object.assign(Object.assign({},t),e)}let qo=(()=>{class t{constructor(n,r,o,i,s){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=i,this._initStatus=s,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 a=new le(u=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{u.next(this._stable),u.complete()})}),l=new le(u=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{De.assertNotInAngularZone(),ef(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,u.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{De.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{u.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return Gs(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof le?t[0]:di(e)(wu(t,n))}(a,l.pipe(t=>Du()(function(t,e){return function(r){let o;o="function"==typeof t?t:function(){return t};const i=Object.create(r,_D);return i.source=r,i.subjectFactory=o,i}}(wD)(t))))}bootstrap(n,r){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 o;o=n instanceof z_?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const i=function(t){return t.isBoundToModule}(o)?void 0:this._injector.get(wn),a=o.create(Y.NULL,[],r||o.selector,i),l=a.location.nativeElement,u=a.injector.get(rf,null),c=u&&a.injector.get(dC);return u&&c&&c.registerApplication(l,u),a.onDestroy(()=>{this.detachView(a.hostView),af(this.components,a),c&&c.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;af(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(sC,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(n){return new(n||t)(b(De),b(Y),b(Ir),b(rr),b(Wo))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();function af(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class cl{}class hN{}const pN={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let gN=(()=>{class t{constructor(n,r){this._compiler=n,this._config=r||pN}load(n){return this.loadAndCompile(n)}loadAndCompile(n){let[r,o]=n.split("#");return void 0===o&&(o="default"),ui(255)(r).then(i=>i[o]).then(i=>wC(i,r,o)).then(i=>this._compiler.compileModuleAsync(i))}loadFactory(n){let[r,o]=n.split("#"),i="NgFactory";return void 0===o&&(o="default",i=""),ui(255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(s=>s[o+i]).then(s=>wC(s,r,o))}}return t.\u0275fac=function(n){return new(n||t)(b(Pr),b(hN,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();function wC(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const SN=mC(null,"core",[{provide:al,useValue:"unknown"},{provide:_C,deps:[Y]},{provide:dC,deps:[]},{provide:ll,deps:[]}]),xN=[{provide:qo,useClass:qo,deps:[De,Y,Ir,rr,Wo]},{provide:xR,deps:[De],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(n){e.push(n)}}},{provide:Wo,useClass:Wo,deps:[[new yt,us]]},{provide:Pr,useClass:Pr,deps:[]},V1,{provide:Ki,useFactory:function(){return Dx},deps:[]},{provide:Lo,useFactory:function(){return Sx},deps:[]},{provide:ir,useFactory:function(t){return pd(t=t||"undefined"!=typeof $localize&&$localize.locale||Ga),t},deps:[[new fo(ir),new yt,new er]]},{provide:aC,useValue:"USD"}];let NN=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(b(qo))},t.\u0275mod=bt({type:t}),t.\u0275inj=it({providers:xN}),t})(),Cl=null;function Dn(){return Cl}const Se=new G("DocumentToken");let Vr=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({factory:RO,token:t,providedIn:"platform"}),t})();function RO(){return b(zC)}const NO=new G("Location Initialized");let zC=(()=>{class t extends Vr{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Dn().getBaseHref(this._doc)}onPopState(n){const r=Dn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Dn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this.location.pathname=n}pushState(n,r,o){QC()?this._history.pushState(n,r,o):this.location.hash=o}replaceState(n,r,o){QC()?this._history.replaceState(n,r,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return t.\u0275fac=function(n){return new(n||t)(b(Se))},t.\u0275prov=N({factory:OO,token:t,providedIn:"platform"}),t})();function QC(){return!!window.history.pushState}function OO(){return new zC(b(Se))}function Ef(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 JC(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 Bn(t){return t&&"?"!==t[0]?"?"+t:t}let Jo=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({factory:PO,token:t,providedIn:"root"}),t})();function PO(t){const e=b(Se).location;return new KC(b(Vr),e&&e.origin||"")}const wf=new G("appBaseHref");let KC=(()=>{class t extends Jo{constructor(n,r){if(super(),this._platformLocation=n,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)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=r}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Ef(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Bn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Bn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Bn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformLocation).historyGo)||void 0===o||o.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(b(Vr),b(wf,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),FO=(()=>{class t extends Jo{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Ef(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Bn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Bn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformLocation).historyGo)||void 0===o||o.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(b(Vr),b(wf,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),bl=(()=>{class t{constructor(n,r){this._subject=new ke,this._urlChangeListeners=[],this._platformStrategy=n;const o=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=JC(YC(o)),this._platformStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}path(n=!1){return this.normalize(this._platformStrategy.path(n))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Bn(r))}normalize(n){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,YC(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._platformStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Bn(r)),o)}replaceState(n,r="",o=null){this._platformStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Bn(r)),o)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformStrategy).historyGo)||void 0===o||o.call(r,n)}onUrlChange(n){this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return t.\u0275fac=function(n){return new(n||t)(b(Jo),b(Vr))},t.normalizeQueryParams=Bn,t.joinWithSlash=Ef,t.stripTrailingSlash=JC,t.\u0275prov=N({factory:kO,token:t,providedIn:"root"}),t})();function kO(){return new bl(b(Jo),b(Vr))}function YC(t){return t.replace(/\/index.html$/,"")}var Ie=(()=>((Ie=Ie||{})[Ie.Zero=0]="Zero",Ie[Ie.One=1]="One",Ie[Ie.Two=2]="Two",Ie[Ie.Few=3]="Few",Ie[Ie.Many=4]="Many",Ie[Ie.Other=5]="Other",Ie))();const GO=function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=b_(e);if(n)return n;const r=e.split("-")[0];if(n=b_(r),n)return n;if("en"===r)return nA;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[D.PluralCase]};class Rl{}let vP=(()=>{class t extends Rl{constructor(n){super(),this.locale=n}getPluralCategory(n,r){switch(GO(r||this.locale)(n)){case Ie.Zero:return"zero";case Ie.One:return"one";case Ie.Two:return"two";case Ie.Few:return"few";case Ie.Many:return"many";default:return"other"}}}return t.\u0275fac=function(n){return new(n||t)(b(ir))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();function sb(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}class EP{constructor(e,n,r,o){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=o}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 Nf=(()=>{class t{constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(n){n&&(this._template=n)}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(r){throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(t){return t.name||typeof t}(n)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=[];n.forEachOperation((o,i,s)=>{if(null==o.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new EP(null,this._ngForOf,-1,-1),null===s?void 0:s),l=new ab(o,a);r.push(l)}else if(null==s)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const a=this._viewContainer.get(i);this._viewContainer.move(a,s);const l=new ab(o,a);r.push(l)}});for(let o=0;o{this._viewContainer.get(o.currentIndex).context.$implicit=o.item})}_perViewChange(n,r){n.context.$implicit=r.item}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(C(tn),C(jn),C(Ki))},t.\u0275dir=O({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ab{constructor(e,n){this.record=e,this.view=n}}let Of=(()=>{class t{constructor(n,r){this._viewContainer=n,this._context=new DP,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){lb("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){lb("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(C(tn),C(jn))},t.\u0275dir=O({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class DP{constructor(){this.$implicit=null,this.ngIf=null}}function lb(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${$(e)}'.`)}let KP=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=it({providers:[{provide:Rl,useClass:vP}]}),t})();let fb=(()=>{class t{}return t.\u0275prov=N({token:t,providedIn:"root",factory:()=>new eF(b(Se),window)}),t})();class eF{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const n=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,e);n&&(this.scrollToElement(n),this.attemptFocus(n))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=e)}}scrollToElement(e){const n=e.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=hb(this.window.history)||hb(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function hb(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class pb{}class Lf extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(t){Cl||(Cl=t)}(new Lf)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=(ys=ys||document.querySelector("base"),ys?ys.getAttribute("href"):null);return null==n?null:function(t){Nl=Nl||document.createElement("a"),Nl.setAttribute("href",t);const e=Nl.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){ys=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return sb(document.cookie,e)}}let Nl,ys=null;const gb=new G("TRANSITION_ID"),sF=[{provide:us,useFactory:function(t,e,n){return()=>{n.get(Wo).donePromise.then(()=>{const r=Dn(),o=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let i=0;i{const i=e.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},te.getAllAngularTestabilities=()=>e.getAllTestabilities(),te.getAllAngularRootElements=()=>e.getAllRootElements(),te.frameworkStabilizers||(te.frameworkStabilizers=[]),te.frameworkStabilizers.push(r=>{const o=te.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,n,r){if(null==n)return null;const o=e.getTestability(n);return null!=o?o:r?Dn().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let aF=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const _s=new G("EventManagerPlugins");let Pl=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),vs=(()=>{class t extends yb{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(i=>{const s=this._doc.createElement("style");s.textContent=i,o.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(_b),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(_b))}}return t.\u0275fac=function(n){return new(n||t)(b(Se))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();function _b(t){Dn().remove(t)}const Bf={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/"},Uf=/%COMP%/g;function Fl(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let $f=(()=>{class t{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Gf(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case xe.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new EF(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case xe.ShadowDom:return new wF(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=Fl(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(b(Pl),b(vs),b(cs))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();class Gf{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,n){return n?document.createElementNS(Bf[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,r){e&&e.insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,o){if(o){n=o+":"+n;const i=Bf[o];i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const o=Bf[r];o?e.removeAttributeNS(o,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,o){o&(It.DashCase|It.Important)?e.style.setProperty(n,r,o&It.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&It.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,bb(r)):this.eventManager.addEventListener(e,n,bb(r))}}class EF extends Gf{constructor(e,n,r,o){super(e),this.component=r;const i=Fl(o+"-"+r.id,r.styles,[]);n.addStyles(i),this.contentAttr=function(t){return"_ngcontent-%COMP%".replace(Uf,t)}(o+"-"+r.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(Uf,t)}(o+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}class wF extends Gf{constructor(e,n,r,o){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Fl(o.id,o.styles,[]);for(let s=0;s{class t extends Hf{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return t.\u0275fac=function(n){return new(n||t)(b(Se))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const Db=["alt","control","meta","shift"],RF={"\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"},Sb={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"},NF={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let OF=(()=>{class t extends Hf{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,o){const i=t.parseEventName(r),s=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Dn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=t._normalizeKey(r.pop());let s="";if(Db.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const a={};return a.domEventName=o,a.fullKey=s,a}static getEventFullKey(n){let r="",o=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&&Sb.hasOwnProperty(e)&&(e=Sb[e]))}return RF[e]||e}(n);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Db.forEach(i=>{i!=o&&NF[i](n)&&(r+=i+".")}),r+=o,r}static eventCallback(n,r,o){return i=>{t.getEventFullKey(i)===n&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){switch(n){case"esc":return"escape";default:return n}}}return t.\u0275fac=function(n){return new(n||t)(b(Se))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const BF=mC(SN,"browser",[{provide:al,useValue:"browser"},{provide:iC,useValue:function(){Lf.makeCurrent(),jf.init()},multi:!0},{provide:Se,useFactory:function(){return function(t){Vu=t}(document),document},deps:[]}]),UF=[[],{provide:Li,useValue:"root"},{provide:Ir,useFactory:function(){return new Ir},deps:[]},{provide:_s,useClass:DF,multi:!0,deps:[Se,De,al]},{provide:_s,useClass:OF,multi:!0,deps:[Se]},[],{provide:$f,useClass:$f,deps:[Pl,vs,cs]},{provide:Ka,useExisting:$f},{provide:yb,useExisting:vs},{provide:vs,useClass:vs,deps:[Se]},{provide:rf,useClass:rf,deps:[De]},{provide:Pl,useClass:Pl,deps:[_s,De]},{provide:pb,useClass:aF,deps:[]},[]];let $F=(()=>{class t{constructor(n){if(n)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(n){return{ngModule:t,providers:[{provide:cs,useValue:n.appId},{provide:gb,useExisting:cs},sF]}}}return t.\u0275fac=function(n){return new(n||t)(b(t,12))},t.\u0275mod=bt({type:t}),t.\u0275inj=it({providers:UF,imports:[KP,NN]}),t})();function WF(){return new Qf(b(Se))}let Qf=(()=>{class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return t.\u0275fac=function(n){return new(n||t)(b(Se))},t.\u0275prov=N({factory:WF,token:t,providedIn:"root"}),t})();function kl(t,e){return new le(n=>{const r=t.length;if(0===r)return void n.complete();const o=new Array(r);let i=0,s=0;for(let a=0;a{u||(u=!0,s++),o[a]=c},error:c=>n.error(c),complete:()=>{i++,(i===r||!u)&&(s===r&&n.next(e?e.reduce((c,d,f)=>(c[d]=o[f],c),{}):o),n.complete())}}))}})}"undefined"!=typeof window&&window;let Mb=(()=>{class t{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return t.\u0275fac=function(n){return new(n||t)(C(Ln),C(Be))},t.\u0275dir=O({type:t}),t})(),Lr=(()=>{class t extends Mb{}return t.\u0275fac=function(){let e;return function(r){return(e||(e=Pt(t)))(r||t)}}(),t.\u0275dir=O({type:t,features:[ce]}),t})();const Sn=new G("NgValueAccessor"),ZF={provide:Sn,useExisting:ie(()=>Kf),multi:!0};let Kf=(()=>{class t extends Lr{writeValue(n){this.setProperty("checked",n)}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=Pt(t)))(r||t)}}(),t.\u0275dir=O({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&Oe("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[he([ZF]),ce]}),t})();const XF={provide:Sn,useExisting:ie(()=>Vl),multi:!0},tk=new G("CompositionEventMode");let Vl=(()=>{class t extends Mb{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Dn()?Dn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(n){this.setProperty("value",null==n?"":n)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return t.\u0275fac=function(n){return new(n||t)(C(Ln),C(Be),C(tk,8))},t.\u0275dir=O({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(n,r){1&n&&Oe("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[he([XF]),ce]}),t})();const tt=new G("NgValidators"),ur=new G("NgAsyncValidators");function Vb(t){return null!=t}function Lb(t){const e=$i(t)?Ge(t):t;return Ha(e),e}function jb(t){let e={};return t.forEach(n=>{e=null!=n?Object.assign(Object.assign({},e),n):e}),0===Object.keys(e).length?null:e}function Hb(t,e){return e.map(n=>n(t))}function Bb(t){return t.map(e=>function(t){return!t.validate}(e)?e:n=>e.validate(n))}function Yf(t){return null!=t?function(t){if(!t)return null;const e=t.filter(Vb);return 0==e.length?null:function(n){return jb(Hb(n,e))}}(Bb(t)):null}function Zf(t){return null!=t?function(t){if(!t)return null;const e=t.filter(Vb);return 0==e.length?null:function(n){return function(...t){if(1===t.length){const e=t[0];if(Hs(e))return kl(e,null);if(yu(e)&&Object.getPrototypeOf(e)===Object.prototype){const n=Object.keys(e);return kl(n.map(r=>e[r]),n)}}if("function"==typeof t[t.length-1]){const e=t.pop();return kl(t=1===t.length&&Hs(t[0])?t[0]:t,null).pipe(X(n=>e(...n)))}return kl(t,null)}(Hb(n,e).map(Lb)).pipe(X(jb))}}(Bb(t)):null}function Gb(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Xf(t){return t?Array.isArray(t)?t:[t]:[]}function Ll(t,e){return Array.isArray(t)?t.includes(e):t===e}function zb(t,e){const n=Xf(e);return Xf(t).forEach(o=>{Ll(n,o)||n.push(o)}),n}function Qb(t,e){return Xf(e).filter(n=>!Ll(t,n))}let Jb=(()=>{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(n){this._rawValidators=n||[],this._composedValidatorFn=Yf(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Zf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,r){return!!this.control&&this.control.hasError(n,r)}getError(n,r){return this.control?this.control.getError(n,r):null}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=O({type:t}),t})(),ht=(()=>{class t extends Jb{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=Pt(t)))(r||t)}}(),t.\u0275dir=O({type:t,features:[ce]}),t})();class dr extends Jb{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Kb{constructor(e){this._cd=e}is(e){var n,r,o;return"submitted"===e?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(o=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===o?void 0:o[e])}}let Yb=(()=>{class t extends Kb{constructor(n){super(n)}}return t.\u0275fac=function(n){return new(n||t)(C(dr,2))},t.\u0275dir=O({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Ua("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[ce]}),t})(),eh=(()=>{class t extends Kb{constructor(n){super(n)}}return t.\u0275fac=function(n){return new(n||t)(C(ht,10))},t.\u0275dir=O({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&Ua("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))("ng-submitted",r.is("submitted"))},features:[ce]}),t})();function Cs(t,e){rh(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Zb(t,e)})}(t,e),function(t,e){const n=(r,o)=>{e.valueAccessor.writeValue(r),o&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Zb(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function Ul(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function rh(t,e){const n=function(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(Gb(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=function(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(Gb(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const o=()=>t.updateValueAndValidity();Ul(e._rawValidators,o),Ul(e._rawAsyncValidators,o)}function Zb(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Gl(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const bs="VALID",Wl="INVALID",Ko="PENDING",Es="DISABLED";function sh(t){return(lh(t)?t.validators:t)||null}function tE(t){return Array.isArray(t)?Yf(t):t||null}function ah(t,e){return(lh(e)?e.asyncValidators:t)||null}function nE(t){return Array.isArray(t)?Zf(t):t||null}function lh(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class uh{constructor(e,n){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=tE(this._rawValidators),this._composedAsyncValidatorFn=nE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===bs}get invalid(){return this.status===Wl}get pending(){return this.status==Ko}get disabled(){return this.status===Es}get enabled(){return this.status!==Es}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=tE(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=nE(e)}addValidators(e){this.setValidators(zb(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(zb(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Qb(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Qb(e,this._rawAsyncValidators))}hasValidator(e){return Ll(this._rawValidators,e)}hasAsyncValidator(e){return Ll(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Ko,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=Es,this.errors=null,this._forEachChild(r=>{r.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=bs,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===bs||this.status===Ko)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Es:bs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Ko,this._hasOwnPendingAsyncValidator=!0;const n=Lb(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(!1!==n.emitEvent)}get(e){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let r=t;return e.forEach(o=>{r=r instanceof ch?r.controls.hasOwnProperty(o)?r.controls[o]:null:r instanceof gk&&r.at(o)||null}),r}(this,e)}getError(e,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new ke,this.statusChanges=new ke}_calculateStatus(){return this._allControlsDisabled()?Es:this.errors?Wl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ko)?Ko:this._anyControlsHaveStatus(Wl)?Wl:bs}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){lh(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ql extends uh{constructor(e=null,n,r){super(sh(n),ah(r,n)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=null,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Gl(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Gl(this._onDisabledChange,e)}_forEachChild(e){}_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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class ch extends uh{constructor(e,n,r){super(sh(n),ah(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,r={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(r=>{this._throwIfControlMissing(r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(Object.keys(e).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((r,o)=>{r.reset(e[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,r)=>(e[r]=n instanceof ql?n.value:n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){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[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&e(r,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const n of Object.keys(this.controls)){const r=this.controls[n];if(this.contains(n)&&e(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(e,n){let r=e;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((n,r)=>{if(void 0===e[r])throw new Error(`Must supply a value for form control with name: '${r}'.`)})}}class gk extends uh{constructor(e,n,r){super(sh(n),ah(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,r={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),n&&(this.controls.splice(e,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){this._checkAllValuesPresent(e),e.forEach((r,o)=>{this._throwIfControlMissing(o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(e.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((r,o)=>{r.reset(e[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>e instanceof ql?e.value:e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((n,r)=>!!r._syncPendingControls()||n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){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(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((n,r)=>{e(n,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((n,r)=>{if(void 0===e[r])throw new Error(`Must supply a value for form control at index: ${r}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const mk={provide:ht,useExisting:ie(()=>Ds)},ws=(()=>Promise.resolve(null))();let Ds=(()=>{class t extends ht{constructor(n,r){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new ke,this.form=new ch({},Yf(n),Zf(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){ws.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Cs(n.control,n),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){ws.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),Gl(this._directives,n)})}addFormGroup(n){ws.then(()=>{const r=this._findContainer(n.path),o=new ch({});(function(t,e){rh(t,e)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){ws.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){ws.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function(t,e){t._syncPendingControls(),e.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),!1}onReset(){this.resetForm()}resetForm(n){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return t.\u0275fac=function(n){return new(n||t)(C(tt,10),C(ur,10))},t.\u0275dir=O({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&Oe("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[he([mk]),ce]}),t})();const _k={provide:dr,useExisting:ie(()=>dh)},iE=(()=>Promise.resolve(null))();let dh=(()=>{class t extends dr{constructor(n,r,o,i){super(),this.control=new ql,this._registered=!1,this.update=new ke,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function(t,e){if(!e)return null;let n,r,o;return Array.isArray(e),e.forEach(i=>{i.constructor===Vl?n=i:function(t){return Object.getPrototypeOf(t.constructor)===Lr}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in n&&this._updateDisabled(n),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function(t,e){return[...e.path,t]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_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(){Cs(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(n){iE.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1})})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=""===r||r&&"false"!==r;iE.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(n){return new(n||t)(C(ht,9),C(tt,10),C(ur,10),C(Sn,10))},t.\u0275dir=O({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:[he([_k]),ce,Ke]}),t})(),fh=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=O({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),aE=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=it({}),t})(),DE=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=it({imports:[[aE]]}),t})(),Uk=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=it({imports:[DE]}),t})();function H(...t){let e=t[t.length-1];return Gs(e)?(t.pop(),vu(t,e)):wu(t)}class cn extends An{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const n=super._subscribe(e);return n&&!n.closed&&e.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new zr;return this._value}next(e){super.next(this._value=e)}}class $k extends pe{notifyNext(e,n,r,o,i){this.destination.next(n)}notifyError(e,n){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class Gk extends pe{constructor(e,n,r){super(),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Wk(t,e,n,r,o=new Gk(t,n,r)){if(!o.closed)return e instanceof le?e.subscribe(o):_u(e)(o)}const SE={};class zk{constructor(e){this.resultSelector=e}call(e,n){return n.subscribe(new Qk(e,this.resultSelector))}}class Qk extends $k{constructor(e,n){super(e),this.resultSelector=n,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(SE),this.observables.push(e)}_complete(){const e=this.observables,n=e.length;if(0===n)this.destination.complete();else{this.active=n,this.toRespond=n;for(let r=0;r{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Ch(...t){return di(1)(H(...t))}const Yo=new le(t=>t.complete());function bh(t){return t?function(t){return new le(e=>t.schedule(()=>e.complete()))}(t):Yo}function IE(t){return new le(e=>{let n;try{n=t()}catch(o){return void e.error(o)}return(n?Ge(n):bh()).subscribe(e)})}function fr(t,e){return"function"==typeof e?n=>n.pipe(fr((r,o)=>Ge(t(r,o)).pipe(X((i,s)=>e(r,i,o,s))))):n=>n.lift(new Yk(t))}class Yk{constructor(e){this.project=e}call(e,n){return n.subscribe(new Zk(e,this.project))}}class Zk extends bu{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(o){return void this.destination.error(o)}this._innerSub(n)}_innerSub(e){const n=this.innerSubscription;n&&n.unsubscribe();const r=new Cu(this),o=this.destination;o.add(r),this.innerSubscription=Eu(e,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const ME=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Eh(t){return e=>0===t?bh():e.lift(new Xk(t))}class Xk{constructor(e){if(this.total=e,this.total<0)throw new ME}call(e,n){return n.subscribe(new eV(e,this.total))}}class eV extends pe{constructor(e,n){super(e),this.total=n,this.count=0}_next(e){const n=this.total,r=++this.count;r<=n&&(this.destination.next(e),r===n&&(this.destination.complete(),this.unsubscribe()))}}function TE(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(o){return o.lift(new nV(t,e,n))}}class nV{constructor(e,n,r=!1){this.accumulator=e,this.seed=n,this.hasSeed=r}call(e,n){return n.subscribe(new rV(e,this.accumulator,this.seed,this.hasSeed))}}class rV extends pe{constructor(e,n,r,o){super(e),this.accumulator=n,this._seed=r,this.hasSeed=o,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const n=this.index++;let r;try{r=this.accumulator(this.seed,e,n)}catch(o){this.destination.error(o)}this.seed=r,this.destination.next(r)}}function jr(t,e){return function(r){return r.lift(new oV(t,e))}}class oV{constructor(e,n){this.predicate=e,this.thisArg=n}call(e,n){return n.subscribe(new iV(e,this.predicate,this.thisArg))}}class iV extends pe{constructor(e,n,r){super(e),this.predicate=n,this.thisArg=r,this.count=0}_next(e){let n;try{n=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}n&&this.destination.next(e)}}function Hr(t){return function(n){const r=new sV(t),o=n.lift(r);return r.caught=o}}class sV{constructor(e){this.selector=e}call(e,n){return n.subscribe(new aV(e,this.selector,this.caught))}}class aV extends bu{constructor(e,n,r){super(e),this.selector=n,this.caught=r}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(i){return void super.error(i)}this._unsubscribeAndRecycle();const r=new Cu(this);this.add(r);const o=Eu(n,r);o!==r&&this.add(o)}}}function Zo(t,e){return We(t,e,1)}function wh(t){return function(n){return 0===t?bh():n.lift(new lV(t))}}class lV{constructor(e){if(this.total=e,this.total<0)throw new ME}call(e,n){return n.subscribe(new uV(e,this.total))}}class uV extends pe{constructor(e,n){super(e),this.total=n,this.ring=new Array,this.count=0}_next(e){const n=this.ring,r=this.total,o=this.count++;n.length0){const r=this.count>=this.total?this.total:this.count,o=this.ring;for(let i=0;ie.lift(new cV(t))}class cV{constructor(e){this.errorFactory=e}call(e,n){return n.subscribe(new dV(e,this.errorFactory))}}class dV extends pe{constructor(e,n){super(e),this.errorFactory=n,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(n){e=n}this.destination.error(e)}}}function fV(){return new zl}function xE(t=null){return e=>e.lift(new hV(t))}class hV{constructor(e){this.defaultValue=e}call(e,n){return n.subscribe(new pV(e,this.defaultValue))}}class pV extends pe{constructor(e,n){super(e),this.defaultValue=n,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Xo(t,e){const n=arguments.length>=2;return r=>r.pipe(t?jr((o,i)=>t(o,i,r)):$s,Eh(1),n?xE(e):AE(()=>new zl))}function hr(){}function Tt(t,e,n){return function(o){return o.lift(new mV(t,e,n))}}class mV{constructor(e,n,r){this.nextOrObserver=e,this.error=n,this.complete=r}call(e,n){return n.subscribe(new yV(e,this.nextOrObserver,this.error,this.complete))}}class yV extends pe{constructor(e,n,r,o){super(e),this._tapNext=hr,this._tapError=hr,this._tapComplete=hr,this._tapError=r||hr,this._tapComplete=o||hr,Tn(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||hr,this._tapError=n.error||hr,this._tapComplete=n.complete||hr)}_next(e){try{this._tapNext.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}class vV{constructor(e){this.callback=e}call(e,n){return n.subscribe(new CV(e,this.callback))}}class CV extends pe{constructor(e,n){super(e),this.add(new ye(n))}}class $n{constructor(e,n){this.id=e,this.url=n}}class Dh extends $n{constructor(e,n,r="imperative",o=null){super(e,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ss extends $n{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class RE extends $n{constructor(e,n,r){super(e,n),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bV extends $n{constructor(e,n,r){super(e,n),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class EV extends $n{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wV extends $n{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class DV extends $n{constructor(e,n,r,o,i){super(e,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class SV extends $n{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class IV extends $n{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NE{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class OE{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class MV{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class TV{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class AV{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xV{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class PE{constructor(e,n,r){this.routerEvent=e,this.position=n,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const z="primary";class RV{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function ei(t){return new RV(t)}const FE="ngNavigationCancelingError";function Sh(t){const e=Error("NavigationCancelingError: "+t);return e[FE]=!0,e}function OV(t,e,n){const r=n.path.split("/");if(r.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||r.lengthr[i]===o)}return t===e}function VE(t){return Array.prototype.concat.apply([],t)}function LE(t){return t.length>0?t[t.length-1]:null}function ze(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Mn(t){return Ha(t)?t:$i(t)?Ge(Promise.resolve(t)):H(t)}const kV={exact:function BE(t,e,n){if(!Ur(t.segments,e.segments)||!Ql(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!t.children[r]||!BE(t.children[r],e.children[r],n))return!1;return!0},subset:UE},jE={exact:function(t,e){return In(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>kE(t[n],e[n]))},ignored:()=>!0};function HE(t,e,n){return kV[n.paths](t.root,e.root,n.matrixParams)&&jE[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function UE(t,e,n){return $E(t,e,e.segments,n)}function $E(t,e,n,r){if(t.segments.length>n.length){const o=t.segments.slice(0,n.length);return!(!Ur(o,n)||e.hasChildren()||!Ql(o,n,r))}if(t.segments.length===n.length){if(!Ur(t.segments,n)||!Ql(t.segments,n,r))return!1;for(const o in e.children)if(!t.children[o]||!UE(t.children[o],e.children[o],r))return!1;return!0}{const o=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!!(Ur(t.segments,o)&&Ql(t.segments,o,r)&&t.children[z])&&$E(t.children[z],e,i,r)}}function Ql(t,e,n){return e.every((r,o)=>jE[n](t[o].parameters,r.parameters))}class Br{constructor(e,n,r){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ei(this.queryParams)),this._queryParamMap}toString(){return BV.serialize(this)}}class J{constructor(e,n){this.segments=e,this.children=n,this.parent=null,ze(n,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Jl(this)}}class Is{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=ei(this.parameters)),this._parameterMap}toString(){return zE(this)}}function Ur(t,e){return t.length===e.length&&t.every((n,r)=>n.path===e[r].path)}class Ih{}class GE{parse(e){const n=new KV(e);return new Br(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){return`${`/${Ms(e.root,!0)}`}${function(t){const e=Object.keys(t).map(n=>{const r=t[n];return Array.isArray(r)?r.map(o=>`${Kl(n)}=${Kl(o)}`).join("&"):`${Kl(n)}=${Kl(r)}`}).filter(n=>!!n);return e.length?`?${e.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${function(t){return encodeURI(t)}(e.fragment)}`:""}`}}const BV=new GE;function Jl(t){return t.segments.map(e=>zE(e)).join("/")}function Ms(t,e){if(!t.hasChildren())return Jl(t);if(e){const n=t.children[z]?Ms(t.children[z],!1):"",r=[];return ze(t.children,(o,i)=>{i!==z&&r.push(`${i}:${Ms(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function(t,e){let n=[];return ze(t.children,(r,o)=>{o===z&&(n=n.concat(e(r,o)))}),ze(t.children,(r,o)=>{o!==z&&(n=n.concat(e(r,o)))}),n}(t,(r,o)=>o===z?[Ms(t.children[z],!1)]:[`${o}:${Ms(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[z]?`${Jl(t)}/${n[0]}`:`${Jl(t)}/(${n.join("//")})`}}function WE(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Kl(t){return WE(t).replace(/%3B/gi,";")}function Mh(t){return WE(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Yl(t){return decodeURIComponent(t)}function qE(t){return Yl(t.replace(/\+/g,"%20"))}function zE(t){return`${Mh(t.path)}${function(t){return Object.keys(t).map(e=>`;${Mh(e)}=${Mh(t[e])}`).join("")}(t.parameters)}`}const WV=/^[^\/()?;=#]+/;function Zl(t){const e=t.match(WV);return e?e[0]:""}const qV=/^[^=?&#]+/,QV=/^[^?&#]+/;class KV{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new J([],{}):new J([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(r[z]=new J(e,n)),r}parseSegment(){const e=Zl(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Is(Yl(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const n=Zl(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Zl(this.remaining);o&&(r=o,this.capture(r))}e[Yl(n)]=Yl(r)}parseQueryParam(e){const n=function(t){const e=t.match(qV);return e?e[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function(t){const e=t.match(QV);return e?e[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=qE(n),i=qE(r);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Zl(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error(`Cannot parse url '${this.url}'`);let i;r.indexOf(":")>-1?(i=r.substr(0,r.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=z);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[z]:new J([],s),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class QE{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){const n=Th(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){const n=Th(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){const n=Ah(e,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Ah(e,this._root).map(n=>n.value)}}function Th(t,e){if(t===e.value)return e;for(const n of e.children){const r=Th(t,n);if(r)return r}return null}function Ah(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Ah(t,n);if(r.length)return r.unshift(e),r}return[]}class Gn{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}}function Ts(t){const e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}class JE extends QE{constructor(e,n){super(e),this.snapshot=n,xh(this,e)}toString(){return this.snapshot.toString()}}function KE(t,e){const n=function(t,e){const s=new Xl([],{},{},"",{},z,e,null,t.root,-1,{});return new ZE("",new Gn(s,[]))}(t,e),r=new cn([new Is("",{})]),o=new cn({}),i=new cn({}),s=new cn({}),a=new cn(""),l=new $r(r,o,s,a,i,z,e,n.root);return l.snapshot=n.root,new JE(new Gn(l,[]),n)}class $r{constructor(e,n,r,o,i,s,a,l){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this._futureSnapshot=l}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(X(e=>ei(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(X(e=>ei(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function YE(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function(t){return t.reduce((e,n)=>({params:Object.assign(Object.assign({},e.params),n.params),data:Object.assign(Object.assign({},e.data),n.data),resolve:Object.assign(Object.assign({},e.resolve),n._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Xl{constructor(e,n,r,o,i,s,a,l,u,c,d){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}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=ei(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ei(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ZE extends QE{constructor(e,n){super(n),this.url=e,xh(this,n)}toString(){return XE(this._root)}}function xh(t,e){e.value._routerState=t,e.children.forEach(n=>xh(t,n))}function XE(t){const e=t.children.length>0?` { ${t.children.map(XE).join(", ")} } `:"";return`${t.value}${e}`}function Rh(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,In(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),In(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nIn(n.parameters,e[r].parameters))}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||Nh(t.parent,e.parent))}function eu(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const o=function(t,e,n){return e.children.map(r=>{for(const o of n.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return eu(t,r,o);return eu(t,r)})}(t,e,n);return new Gn(r,o)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const s=i.route;return ew(e,s),s}}const r=function(t){return new $r(new cn(t.url),new cn(t.params),new cn(t.queryParams),new cn(t.fragment),new cn(t.data),t.outlet,t.component,t)}(e.value),o=e.children.map(i=>eu(t,i));return new Gn(r,o)}}function ew(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{i[a]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),new Br(n.root===t?e:tw(n.root,t,e),i,o)}function tw(t,e,n){const r={};return ze(t.children,(o,i)=>{r[i]=o===e?n:tw(o,e,n)}),new J(t.segments,r)}class nw{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&tu(r[0]))throw new Error("Root segment cannot have matrix parameters");const o=r.find(As);if(o&&o!==LE(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ph{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}}function rw(t,e,n){if(t||(t=new J([],{})),0===t.segments.length&&t.hasChildren())return nu(t,e,n);const r=function(t,e,n){let r=0,o=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=t.segments[o],a=n[r];if(As(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!iw(l,u,s))return i;r+=2}else{if(!iw(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=rw(t.children[s],e,i))}),ze(t.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new J(t.segments,o)}}function Fh(t,e,n){const r=t.segments.slice(0,e);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(e[r]=Fh(new J([],{}),0,n))}),e}function ow(t){const e={};return ze(t,(n,r)=>e[r]=`${n}`),e}function iw(t,e,n){return t==n.path&&In(e,n.parameters)}class cL{constructor(e,n,r,o){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=o}activate(e){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),Rh(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){const o=Ts(n);e.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),ze(o,(i,s)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(e,n,r){const o=e.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(e,n,s.children)}else this.deactivateChildRoutes(e,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(e,n){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){const r=n.getContext(e.value.outlet);if(r&&r.outlet){const o=r.outlet.detach(),i=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:i})}}deactivateRouteAndOutlet(e,n){const r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=Ts(e);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(e,n,r){const o=Ts(n);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new xV(i.value.snapshot))}),e.children.length&&this.forwardEvent(new TV(e.value.snapshot))}activateRoutes(e,n,r){const o=e.value,i=n?n.value:null;if(Rh(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),sw(a.route)}else{const a=function(t){for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(o.snapshot),l=a?a.module.componentFactoryResolver:null;s.attachRef=null,s.route=o,s.resolver=l,s.outlet&&s.outlet.activateWith(o,l),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,r)}}function sw(t){Rh(t.value),t.children.forEach(sw)}class kh{constructor(e,n){this.routes=e,this.module=n}}function pr(t){return"function"==typeof t}function Gr(t){return t instanceof Br}const xs=Symbol("INITIAL_VALUE");function Rs(){return fr(t=>function(...t){let e,n;return Gs(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Hs(t[0])&&(t=t[0]),wu(t,n).lift(new zk(e))}(t.map(e=>e.pipe(Eh(1),function(...t){const e=t[t.length-1];return Gs(e)?(t.pop(),n=>Ch(t,n,e)):n=>Ch(t,n)}(xs)))).pipe(TE((e,n)=>{let r=!1;return n.reduce((o,i,s)=>o!==xs?o:(i===xs&&(r=!0),r||!1!==i&&s!==n.length-1&&!Gr(i)?o:i),e)},xs),jr(e=>e!==xs),X(e=>Gr(e)?e:!0===e),Eh(1)))}let aw=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Jr({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,r){1&n&&Zt(0,"router-outlet")},directives:function(){return[Uh]},encapsulation:2}),t})();function lw(t,e=""){for(let n=0;nUt(r)===e);return n.push(...t.filter(r=>Ut(r)!==e)),n}const cw={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function ru(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},cw):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(e.matcher||OV)(n,t,e);if(!i)return Object.assign({},cw);const s={};ze(i.posParams,(l,u)=>{s[u]=l.path});const a=i.consumed.length>0?Object.assign(Object.assign({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function ou(t,e,n,r,o="corrected"){if(n.length>0&&function(t,e,n){return n.some(r=>iu(t,e,r)&&Ut(r)!==z)}(t,n,r)){const s=new J(e,function(t,e,n,r){const o={};o[z]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&Ut(i)!==z){const s=new J([],{});s._sourceSegment=t,s._segmentIndexShift=e.length,o[Ut(i)]=s}return o}(t,e,r,new J(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(r=>iu(t,e,r))}(t,n,r)){const s=new J(t.segments,function(t,e,n,r,o,i){const s={};for(const a of r)if(iu(t,n,a)&&!o[Ut(a)]){const l=new J([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===i?t.segments.length:e.length,s[Ut(a)]=l}return Object.assign(Object.assign({},o),s)}(t,e,n,r,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const i=new J(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function iu(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function dw(t,e,n,r){return!!(Ut(t)===r||r!==z&&iu(e,n,t))&&("**"===t.path||ru(e,t,n).matched)}function fw(t,e,n){return 0===e.length&&!t.children[n]}class Ns{constructor(e){this.segmentGroup=e||null}}class hw{constructor(e){this.urlTree=e}}function su(t){return new le(e=>e.error(new Ns(t)))}function pw(t){return new le(e=>e.error(new hw(t)))}function wL(t){return new le(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class IL{constructor(e,n,r,o,i){this.configLoader=n,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(wn)}apply(){const e=ou(this.urlTree.root,[],[],this.config).segmentGroup,n=new J(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,z).pipe(X(i=>this.createUrlTree(Lh(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Hr(i=>{if(i instanceof hw)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof Ns?this.noMatchError(i):i}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,z).pipe(X(o=>this.createUrlTree(Lh(o),e.queryParams,e.fragment))).pipe(Hr(o=>{throw o instanceof Ns?this.noMatchError(o):o}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,n,r){const o=e.segments.length>0?new J([],{[z]:e}):e;return new Br(o,n,r)}expandSegmentGroup(e,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,n,r).pipe(X(i=>new J([],i))):this.expandSegment(e,r,n,r.segments,o,!0)}expandChildren(e,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return Ge(o).pipe(Zo(i=>{const s=r.children[i],a=uw(n,i);return this.expandSegmentGroup(e,a,s,i).pipe(X(l=>({segment:l,outlet:i})))}),TE((i,s)=>(i[s.outlet]=s.segment,i),{}),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?jr((o,i)=>t(o,i,r)):$s,wh(1),n?xE(e):AE(()=>new zl))}())}expandSegment(e,n,r,o,i,s){return Ge(r).pipe(Zo(a=>this.expandSegmentAgainstRoute(e,n,r,a,o,i,s).pipe(Hr(u=>{if(u instanceof Ns)return H(null);throw u}))),Xo(a=>!!a),Hr((a,l)=>{if(a instanceof zl||"EmptyError"===a.name){if(fw(n,o,i))return H(new J([],{}));throw new Ns(n)}throw a}))}expandSegmentAgainstRoute(e,n,r,o,i,s,a){return dw(o,n,i,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(e,n,o,i,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s):su(n):su(n)}expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?pw(i):this.lineralizeSegments(r,i).pipe(We(s=>{const a=new J(s,{});return this.expandSegment(e,a,n,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s){const{matched:a,consumedSegments:l,lastChild:u,positionalParamSegments:c}=ru(n,o,i);if(!a)return su(n);const d=this.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?pw(d):this.lineralizeSegments(o,d).pipe(We(f=>this.expandSegment(e,n,r,f.concat(i.slice(u)),s,!1)))}matchSegmentAgainstRoute(e,n,r,o,i){if("**"===r.path)return r.loadChildren?(r._loadedConfig?H(r._loadedConfig):this.configLoader.load(e.injector,r)).pipe(X(f=>(r._loadedConfig=f,new J(o,{})))):H(new J(o,{}));const{matched:s,consumedSegments:a,lastChild:l}=ru(n,r,o);if(!s)return su(n);const u=o.slice(l);return this.getChildConfig(e,r,o).pipe(We(d=>{const f=d.module,h=d.routes,{segmentGroup:p,slicedSegments:m}=ou(n,a,u,h),g=new J(p.segments,p.children);if(0===m.length&&g.hasChildren())return this.expandChildren(f,h,g).pipe(X(T=>new J(a,T)));if(0===h.length&&0===m.length)return H(new J(a,{}));const _=Ut(r)===i;return this.expandSegment(f,g,h,m,_?z:i,!0).pipe(X(w=>new J(a.concat(w.segments),w.children)))}))}getChildConfig(e,n,r){return n.children?H(new kh(n.children,e)):n.loadChildren?void 0!==n._loadedConfig?H(n._loadedConfig):this.runCanLoadGuards(e.injector,n,r).pipe(We(o=>o?this.configLoader.load(e.injector,n).pipe(X(i=>(n._loadedConfig=i,i))):function(t){return new le(e=>e.error(Sh(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(n))):H(new kh([],e))}runCanLoadGuards(e,n,r){const o=n.canLoad;return o&&0!==o.length?H(o.map(s=>{const a=e.get(s);let l;if(function(t){return t&&pr(t.canLoad)}(a))l=a.canLoad(n,r);else{if(!pr(a))throw new Error("Invalid CanLoad guard");l=a(n,r)}return Mn(l)})).pipe(Rs(),Tt(s=>{if(!Gr(s))return;const a=Sh(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw a.url=s,a}),X(s=>!0===s)):H(!0)}lineralizeSegments(e,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return H(r);if(o.numberOfChildren>1||!o.children[z])return wL(e.redirectTo);o=o.children[z]}}applyRedirectCommands(e,n,r){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),e,r)}applyRedirectCreatreUrlTree(e,n,r,o){const i=this.createSegmentGroup(e,n.root,r,o);return new Br(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){const r={};return ze(e,(o,i)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(e,n,r,o){const i=this.createSegments(e,n.segments,r,o);let s={};return ze(n.children,(a,l)=>{s[l]=this.createSegmentGroup(e,a,r,o)}),new J(i,s)}createSegments(e,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(e,i,o):this.findOrReturn(i,r))}findPosParam(e,n,r){const o=r[n.path.substring(1)];if(!o)throw new Error(`Cannot redirect to '${e}'. Cannot find '${n.path}'.`);return o}findOrReturn(e,n){let r=0;for(const o of n){if(o.path===e.path)return n.splice(r),o;r++}return e}}function Lh(t){const e={};for(const r of Object.keys(t.children)){const i=Lh(t.children[r]);(i.segments.length>0||i.hasChildren())&&(e[r]=i)}return function(t){if(1===t.numberOfChildren&&t.children[z]){const e=t.children[z];return new J(t.segments.concat(e.segments),e.children)}return t}(new J(t.segments,e))}class gw{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class au{constructor(e,n){this.component=e,this.route=n}}function AL(t,e,n){const r=t._root;return Os(r,e?e._root:null,n,[r.value])}function lu(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Os(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Ts(e);return t.children.forEach(s=>{(function(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Ur(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ur(t.url,e.url)||!In(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Nh(t,e)||!In(t.queryParams,e.queryParams);case"paramsChange":default:return!Nh(t,e)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new gw(r)):(i.data=s.data,i._resolvedData=s._resolvedData),Os(t,e,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new au(a.outlet.component,s))}else s&&Ps(e,a,o),o.canActivateChecks.push(new gw(r)),Os(t,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),ze(i,(s,a)=>Ps(s,n.getContext(a),o)),o}function Ps(t,e,n){const r=Ts(t),o=t.value;ze(r,(i,s)=>{Ps(i,o.component?e?e.children.getContext(s):null:e,n)}),n.canDeactivateChecks.push(new au(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}class UL{}function mw(t){return new le(e=>e.error(t))}class GL{constructor(e,n,r,o,i,s){this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){const e=ou(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,e,z);if(null===n)return null;const r=new Xl([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},z,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Gn(r,n),i=new ZE(this.url,o);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(e){const n=e.value,r=YE(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(e,n):this.processSegment(e,n,n.segments,r)}processChildren(e,n){const r=[];for(const i of Object.keys(n.children)){const s=n.children[i],a=uw(e,i),l=this.processSegmentGroup(a,s,i);if(null===l)return null;r.push(...l)}const o=yw(r);return function(t){t.sort((e,n)=>e.value.outlet===z?-1:n.value.outlet===z?1:e.value.outlet.localeCompare(n.value.outlet))}(o),o}processSegment(e,n,r,o){for(const i of e){const s=this.processSegmentAgainstRoute(i,n,r,o);if(null!==s)return s}return fw(n,r,o)?[]:null}processSegmentAgainstRoute(e,n,r,o){if(e.redirectTo||!dw(e,n,r,o))return null;let i,s=[],a=[];if("**"===e.path){const h=r.length>0?LE(r).parameters:{};i=new Xl(r,h,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Cw(e),Ut(e),e.component,e,_w(n),vw(n)+r.length,bw(e))}else{const h=ru(n,e,r);if(!h.matched)return null;s=h.consumedSegments,a=r.slice(h.lastChild),i=new Xl(s,h.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Cw(e),Ut(e),e.component,e,_w(n),vw(n)+s.length,bw(e))}const l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(e),{segmentGroup:u,slicedSegments:c}=ou(n,s,a,l.filter(h=>void 0===h.redirectTo),this.relativeLinkResolution);if(0===c.length&&u.hasChildren()){const h=this.processChildren(l,u);return null===h?null:[new Gn(i,h)]}if(0===l.length&&0===c.length)return[new Gn(i,[])];const d=Ut(e)===o,f=this.processSegment(l,u,c,d?z:o);return null===f?null:[new Gn(i,f)]}}function zL(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function yw(t){const e=[],n=new Set;for(const r of t){if(!zL(r)){e.push(r);continue}const o=e.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):e.push(r)}for(const r of n){const o=yw(r.children);e.push(new Gn(r.value,o))}return e.filter(r=>!n.has(r))}function _w(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function vw(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 Cw(t){return t.data||{}}function bw(t){return t.resolve||{}}function jh(t){return fr(e=>{const n=t(e);return n?Ge(n).pipe(X(()=>e)):H(e)})}class t2 extends class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}}{}const Hh=new G("ROUTES");class Ew{constructor(e,n,r,o){this.loader=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=o}load(e,n){if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);const o=this.loadModuleFactory(n.loadChildren).pipe(X(i=>{this.onLoadEndListener&&this.onLoadEndListener(n);const s=i.create(e);return new kh(VE(s.injector.get(Hh,void 0,x.Self|x.Optional)).map(Vh),s)}),Hr(i=>{throw n._loader$=void 0,i}));return n._loader$=new mp(o,()=>new An).pipe(Du()),n._loader$}loadModuleFactory(e){return"string"==typeof e?Ge(this.loader.load(e)):Mn(e()).pipe(We(n=>n instanceof ov?H(n):Ge(this.compiler.compileModuleAsync(n))))}}class n2{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ti,this.attachRef=null}}class ti{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new n2,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}}class o2{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}}function i2(t){throw t}function s2(t,e,n){return e.parse("/")}function ww(t,e){return H(null)}const a2={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},l2={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let pt=(()=>{class t{constructor(n,r,o,i,s,a,l,u){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=o,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new An,this.errorHandler=i2,this.malformedUriErrorHandler=s2,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ww,afterPreactivation:ww},this.urlHandlingStrategy=new o2,this.routeReuseStrategy=new t2,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(wn),this.console=s.get(ll);const f=s.get(De);this.isNgZoneEnabled=f instanceof De&&De.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new Br(new J([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ew(a,l,h=>this.triggerEvent(new NE(h)),h=>this.triggerEvent(new OE(h))),this.routerState=KE(this.currentUrlTree,this.rootComponentType),this.transitions=new cn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(jr(o=>0!==o.id),X(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),fr(o=>{let i=!1,s=!1;return H(o).pipe(Tt(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),fr(a=>{const l=!this.navigated||a.extractedUrl.toString()!==this.browserUrlTree.toString(),u=("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl);if(uu(a.source)&&(this.browserUrlTree=a.rawUrl),u)return H(a).pipe(fr(c=>{const d=this.transitions.getValue();return r.next(new Dh(c.id,this.serializeUrl(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions.getValue()?Yo:Promise.resolve(c)}),function(t,e,n,r){return fr(o=>function(t,e,n,r,o){return new IL(t,e,n,r,o).apply()}(t,e,n,o.extractedUrl,r).pipe(X(i=>Object.assign(Object.assign({},o),{urlAfterRedirects:i}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Tt(c=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:c.urlAfterRedirects})}),function(t,e,n,r,o){return We(i=>function(t,e,n,r,o="emptyOnly",i="legacy"){try{const s=new GL(t,e,n,r,o,i).recognize();return null===s?mw(new UL):H(s)}catch(s){return mw(s)}}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,o).pipe(X(s=>Object.assign(Object.assign({},i),{targetSnapshot:s}))))}(this.rootComponentType,this.config,c=>this.serializeUrl(c),this.paramsInheritanceStrategy,this.relativeLinkResolution),Tt(c=>{"eager"===this.urlUpdateStrategy&&(c.extras.skipLocationChange||this.setBrowserUrl(c.urlAfterRedirects,c),this.browserUrlTree=c.urlAfterRedirects);const d=new EV(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);r.next(d)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:d,extractedUrl:f,source:h,restoredState:p,extras:m}=a,g=new Dh(d,this.serializeUrl(f),h,p);r.next(g);const _=KE(f,this.rootComponentType).snapshot;return H(Object.assign(Object.assign({},a),{targetSnapshot:_,urlAfterRedirects:f,extras:Object.assign(Object.assign({},m),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,this.browserUrlTree=a.urlAfterRedirects,a.resolve(null),Yo}),jh(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.beforePreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),Tt(a=>{const l=new wV(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),X(a=>Object.assign(Object.assign({},a),{guards:AL(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(t,e){return We(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?H(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Ge(t).pipe(We(o=>function(t,e,n,r,o){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?H(i.map(a=>{const l=lu(a,e,o);let u;if(function(t){return t&&pr(t.canDeactivate)}(l))u=Mn(l.canDeactivate(t,e,n,r));else{if(!pr(l))throw new Error("Invalid CanDeactivate guard");u=Mn(l(t,e,n,r))}return u.pipe(Xo())})).pipe(Rs()):H(!0)}(o.component,o.route,n,e,r)),Xo(o=>!0!==o,!0))}(s,r,o,t).pipe(We(a=>a&&function(t){return"boolean"==typeof t}(a)?function(t,e,n,r){return Ge(e).pipe(Zo(o=>Ch(function(t,e){return null!==t&&e&&e(new MV(t)),H(!0)}(o.route.parent,r),function(t,e){return null!==t&&e&&e(new AV(t)),H(!0)}(o.route,r),function(t,e,n){const r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(s)).filter(s=>null!==s).map(s=>IE(()=>H(s.guards.map(l=>{const u=lu(l,s.node,n);let c;if(function(t){return t&&pr(t.canActivateChild)}(u))c=Mn(u.canActivateChild(r,t));else{if(!pr(u))throw new Error("Invalid CanActivateChild guard");c=Mn(u(r,t))}return c.pipe(Xo())})).pipe(Rs())));return H(i).pipe(Rs())}(t,o.path,n),function(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?H(r.map(i=>IE(()=>{const s=lu(i,e,n);let a;if(function(t){return t&&pr(t.canActivate)}(s))a=Mn(s.canActivate(e,t));else{if(!pr(s))throw new Error("Invalid CanActivate guard");a=Mn(s(e,t))}return a.pipe(Xo())}))).pipe(Rs()):H(!0)}(t,o.route,n))),Xo(o=>!0!==o,!0))}(r,i,t,e):H(a)),X(a=>Object.assign(Object.assign({},n),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Tt(a=>{if(Gr(a.guardsResult)){const u=Sh(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw u.url=a.guardsResult,u}const l=new DV(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),jr(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),jh(a=>{if(a.guards.canActivateChecks.length)return H(a).pipe(Tt(l=>{const u=new SV(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),fr(l=>{let u=!1;return H(l).pipe(function(t,e){return We(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return H(n);let i=0;return Ge(o).pipe(Zo(s=>function(t,e,n,r){return function(t,e,n,r){const o=Object.keys(t);if(0===o.length)return H({});const i={};return Ge(o).pipe(We(s=>function(t,e,n,r){const o=lu(t,e,r);return Mn(o.resolve?o.resolve(e,n):o(e,n))}(t[s],e,n,r).pipe(Tt(a=>{i[s]=a}))),wh(1),We(()=>Object.keys(i).length===o.length?H(i):Yo))}(t._resolve,t,e,r).pipe(X(i=>(t._resolvedData=i,t.data=Object.assign(Object.assign({},t.data),YE(t,n).resolve),null)))}(s.route,r,t,e)),Tt(()=>i++),wh(1),We(s=>i===o.length?H(n):Yo))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Tt({next:()=>u=!0,complete:()=>{u||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),Tt(l=>{const u=new IV(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}))}),jh(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.afterPreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),X(a=>{const l=function(t,e,n){const r=eu(t,e._root,n?n._root:void 0);return new JE(r,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),Tt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,e,n)=>X(r=>(new cL(e,r.targetRouterState,r.currentRouterState,n).activate(t),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Tt({next(){i=!0},complete(){i=!0}}),function(t){return e=>e.lift(new vV(t))}(()=>{if(!i&&!s){const a=`Navigation ID ${o.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(o),this.cancelNavigationTransition(o,a)):this.cancelNavigationTransition(o,a)}this.currentNavigation=null}),Hr(a=>{if(s=!0,function(t){return t&&t[FE]}(a)){const l=Gr(a.url);l||(this.navigated=!0,this.restoreHistory(o,!0));const u=new RE(o.id,this.serializeUrl(o.extractedUrl),a.message);r.next(u),l?setTimeout(()=>{const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||uu(o.source)};this.scheduleNavigation(c,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{this.restoreHistory(o,!0);const l=new bV(o.id,this.serializeUrl(o.extractedUrl),a);r.next(l);try{o.resolve(this.errorHandler(a))}catch(u){o.reject(u)}}return Yo}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}getTransition(){const n=this.transitions.value;return n.urlAfterRedirects=this.browserUrlTree,n}setTransition(n){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),n))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r=this.extractLocationChangeInfoFromEvent(n);this.shouldScheduleNavigation(this.lastLocationChangeInfo,r)&&setTimeout(()=>{const{source:o,state:i,urlTree:s}=r,a={replaceUrl:!0};if(i){const l=Object.assign({},i);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(a.state=l)}this.scheduleNavigation(s,o,i,a)},0),this.lastLocationChangeInfo=r}))}extractLocationChangeInfoFromEvent(n){var r;return{source:"popstate"===n.type?"popstate":"hashchange",urlTree:this.parseUrl(n.url),state:(null===(r=n.state)||void 0===r?void 0:r.navigationId)?n.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(n,r){if(!n)return!0;const o=r.urlTree.toString()===n.urlTree.toString();return r.transitionId!==n.transitionId||!o||!("hashchange"===r.source&&"popstate"===n.source||"popstate"===r.source&&"hashchange"===n.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){lw(n),this.config=n.map(Vh),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=o||this.routerState.root,c=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,n,r,o){if(0===n.length)return Oh(e.root,e.root,e,r,o);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new nw(!0,0,t);let e=0,n=!1;const r=t.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return ze(i.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?e++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new nw(n,e,r)}(n);if(i.toRoot())return Oh(e.root,new J([],{}),e,r,o);const s=function(t,e,n){if(t.isAbsolute)return new Ph(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const i=n.snapshot._urlSegment;return new Ph(i,i===e.root,0)}const r=tu(t.commands[0])?0:1;return function(t,e,n){let r=t,o=e,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new Error("Invalid number of '../'");o=r.segments.length}return new Ph(r,!1,o-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=s.processChildren?nu(s.segmentGroup,s.index,i.commands):rw(s.segmentGroup,s.index,i.commands);return Oh(s.segmentGroup,a,e,r,o)}(u,this.currentUrlTree,n,d,null!=c?c:null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Gr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=n[o];return null!=i&&(r[o]=i),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new Ss(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,o,i,s){var a,l;if(this.disposed)return Promise.resolve(!1);const u=this.getTransition(),c=uu(r)&&u&&!uu(u.source),h=(this.lastSuccessfulId===u.id||this.currentNavigation?u.rawUrl:u.urlAfterRedirects).toString()===n.toString();if(c&&h)return Promise.resolve(!0);let p,m,g;s?(p=s.resolve,m=s.reject,g=s.promise):g=new Promise((w,T)=>{p=w,m=T});const _=++this.navigationId;let y;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),y=o&&o.\u0275routerPageId?o.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):y=0,this.setTransition({id:_,targetPageId:y,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:i,resolve:p,reject:m,promise:g,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),g.catch(w=>Promise.reject(w))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n),i=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",i):this.location.go(o,"",i)}restoreHistory(n,r=!1){var o,i;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===s?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,r){const o=new RE(n.id,this.serializeUrl(n.extractedUrl),r);this.triggerEvent(o),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return t.\u0275fac=function(n){return new(n||t)(b(ma),b(Ih),b(ti),b(bl),b(Y),b(cl),b(Pr),b(void 0))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();function uu(t){return"imperative"!==t}let cu=(()=>{class t{constructor(n,r,o){this.router=n,this.route=r,this.locationStrategy=o,this.commands=[],this.onChanges=new An,this.subscription=n.events.subscribe(i=>{i instanceof Ss&&this.updateTargetUrlAndHref()})}set routerLink(n){this.commands=null!=n?Array.isArray(n)?n:[n]:[]}ngOnChanges(n){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(n,r,o,i,s){if(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target)return!0;const a={skipLocationChange:ni(this.skipLocationChange),replaceUrl:ni(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ni(this.preserveFragment)})}}return t.\u0275fac=function(n){return new(n||t)(C(pt),C($r),C(Jo))},t.\u0275dir=O({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(n,r){1&n&&Oe("click",function(i){return r.onClick(i.button,i.ctrlKey,i.shiftKey,i.altKey,i.metaKey)}),2&n&&(hd("href",r.href,Ri),Cn("target",r.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Ke]}),t})();function ni(t){return""===t||!!t}let Uh=(()=>{class t{constructor(n,r,o,i,s){this.parentContexts=n,this.location=r,this.resolver=o,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new ke,this.deactivateEvents=new ke,this.name=i||z,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.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 n=this.activated;return this.activated=null,this._activatedRoute=null,n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=n;const s=(r=r||this.resolver).resolveComponentFactory(n._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new f2(n,a,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(n){return new(n||t)(C(ti),C(tn),C(rr),function(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const r=n.length;let o=0;for(;o{class t{constructor(n,r,o,i,s){this.router=n,this.injector=i,this.preloadingStrategy=s,this.loader=new Ew(r,o,u=>n.triggerEvent(new NE(u)),u=>n.triggerEvent(new OE(u)))}setUpPreloading(){this.subscription=this.router.events.pipe(jr(n=>n instanceof Ss),Zo(()=>this.preload())).subscribe(()=>{})}preload(){const n=this.injector.get(wn);return this.processRoutes(n,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const s=i._loadedConfig;o.push(this.processRoutes(s.module,s.routes))}else i.loadChildren&&!i.canLoad?o.push(this.preloadConfig(n,i)):i.children&&o.push(this.processRoutes(n,i.children));return Ge(o).pipe(di(),X(i=>{}))}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?H(r._loadedConfig):this.loader.load(n.injector,r)).pipe(We(i=>(r._loadedConfig=i,this.processRoutes(i.module,i.routes)))))}}return t.\u0275fac=function(n){return new(n||t)(b(pt),b(cl),b(Pr),b(Y),b(Dw))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),$h=(()=>{class t{constructor(n,r,o={}){this.router=n,this.viewportScroller=r,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.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(n=>{n instanceof Dh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Ss&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof PE&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.router.triggerEvent(new PE(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(b(pt),b(fb),b(void 0))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const Wr=new G("ROUTER_CONFIGURATION"),Mw=new G("ROUTER_FORROOT_GUARD"),p2=[bl,{provide:Ih,useClass:GE},{provide:pt,useFactory:function(t,e,n,r,o,i,s,a={},l,u){const c=new pt(null,t,e,n,r,o,i,VE(s));return l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,c),a.enableTracing&&c.events.subscribe(d=>{var f,h;null===(f=console.group)||void 0===f||f.call(console,`Router Event: ${d.constructor.name}`),console.log(d.toString()),console.log(d),null===(h=console.groupEnd)||void 0===h||h.call(console)}),c},deps:[Ih,ti,bl,Y,cl,Pr,Hh,Wr,[class{},new yt],[class{},new yt]]},ti,{provide:$r,useFactory:function(t){return t.routerState.root},deps:[pt]},{provide:cl,useClass:gN},Iw,Sw,class{preload(e,n){return n().pipe(Hr(()=>H(null)))}},{provide:Wr,useValue:{enableTracing:!1}}];function g2(){return new sf("Router",pt)}let Tw=(()=>{class t{constructor(n,r){}static forRoot(n,r){return{ngModule:t,providers:[p2,Aw(n),{provide:Mw,useFactory:_2,deps:[[pt,new yt,new er]]},{provide:Wr,useValue:r||{}},{provide:Jo,useFactory:y2,deps:[Vr,[new fo(wf),new yt],Wr]},{provide:$h,useFactory:m2,deps:[pt,fb,Wr]},{provide:Dw,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:Sw},{provide:sf,multi:!0,useFactory:g2},[Gh,{provide:us,multi:!0,useFactory:E2,deps:[Gh]},{provide:xw,useFactory:w2,deps:[Gh]},{provide:sC,multi:!0,useExisting:xw}]]}}static forChild(n){return{ngModule:t,providers:[Aw(n)]}}}return t.\u0275fac=function(n){return new(n||t)(b(Mw,8),b(pt,8))},t.\u0275mod=bt({type:t}),t.\u0275inj=it({}),t})();function m2(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new $h(t,e,n)}function y2(t,e,n={}){return n.useHash?new FO(t,e):new KC(t,e)}function _2(t){return"guarded"}function Aw(t){return[{provide:P0,multi:!0,useValue:t},{provide:Hh,multi:!0,useValue:t}]}let Gh=(()=>{class t{constructor(n){this.injector=n,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new An}appInitializer(){return this.injector.get(NO,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const o=new Promise(a=>r=a),i=this.injector.get(pt),s=this.injector.get(Wr);return"disabled"===s.initialNavigation?(i.setUpLocationChangeListener(),r(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?H(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),i.initialNavigation()):r(!0),o})}bootstrapListener(n){const r=this.injector.get(Wr),o=this.injector.get(Iw),i=this.injector.get($h),s=this.injector.get(pt),a=this.injector.get(qo);n===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&s.initialNavigation(),o.setUpPreloading(),i.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(n){return new(n||t)(b(Y))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();function E2(t){return t.appInitializer.bind(t)}function w2(t){return t.bootstrapListener.bind(t)}const xw=new G("Router Initializer"),du_apiUrl="http://81.177.135.200:80";class Rw{}class Nw{}class Wn{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(n=>{let r=e[n];const o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(o,r),this.maybeSetNormalizedName(n,o))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof Wn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){const n=new Wn;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Wn?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){const n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,n);const o=("a"===e.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=e.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}}class S2{encodeKey(e){return Ow(e)}encodeValue(e){return Ow(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const M2=/%(\d[a-f0-9])/gi,T2={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Ow(t){return encodeURIComponent(t).replace(M2,(e,n)=>{var r;return null!==(r=T2[n])&&void 0!==r?r:e})}function Pw(t){return`${t}`}class gr{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new S2,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{const r=e.fromObject[n];this.map.set(n,Array.isArray(r)?r:[r])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){const n=[];return Object.keys(e).forEach(r=>{const o=e[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const n=new gr({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const n=("a"===e.op?this.map.get(e.param):void 0)||[];n.push(Pw(e.value)),this.map.set(e.param,n);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const o=r.indexOf(Pw(e.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class A2{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}keys(){return this.map.keys()}}function Fw(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function kw(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Vw(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Fs{constructor(e,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new Wn),this.context||(this.context=new A2),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":af.set(h,e.setHeaders[h]),u)),e.setParams&&(c=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),c)),new Fs(r,o,s,{params:c,headers:u,context:d,reportProgress:l,responseType:i,withCredentials:a})}}var Te=(()=>((Te=Te||{})[Te.Sent=0]="Sent",Te[Te.UploadProgress=1]="UploadProgress",Te[Te.ResponseHeader=2]="ResponseHeader",Te[Te.DownloadProgress=3]="DownloadProgress",Te[Te.Response=4]="Response",Te[Te.User=5]="User",Te))();class Wh{constructor(e,n=200,r="OK"){this.headers=e.headers||new Wn,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class qh extends Wh{constructor(e={}){super(e),this.type=Te.ResponseHeader}clone(e={}){return new qh({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class fu extends Wh{constructor(e={}){super(e),this.type=Te.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new fu({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Lw extends Wh{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function zh(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Qh=(()=>{class t{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Fs)i=n;else{let l,u;l=o.headers instanceof Wn?o.headers:new Wn(o.headers),o.params&&(u=o.params instanceof gr?o.params:new gr({fromObject:o.params})),i=new Fs(n,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=H(i).pipe(Zo(l=>this.handler.handle(l)));if(n instanceof Fs||"events"===o.observe)return s;const a=s.pipe(jr(l=>l instanceof fu));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(X(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(X(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(X(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));case"json":default:return a.pipe(X(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new gr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,zh(o,r))}post(n,r,o={}){return this.request("POST",n,zh(o,r))}put(n,r,o={}){return this.request("PUT",n,zh(o,r))}}return t.\u0275fac=function(n){return new(n||t)(b(Rw))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();class jw{constructor(e,n){this.next=e,this.interceptor=n}handle(e){return this.interceptor.intercept(e,this.next)}}const Hw=new G("HTTP_INTERCEPTORS");let N2=(()=>{class t{intercept(n,r){return r.handle(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const O2=/^\)\]\}',?\n/;let Bw=(()=>{class t{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new le(r=>{const o=this.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((h,p)=>o.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&o.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();o.responseType="json"!==h?h:"text"}const i=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=1223===o.status?204:o.status,p=o.statusText||"OK",m=new Wn(o.getAllResponseHeaders()),g=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(o)||n.url;return s=new qh({headers:m,status:h,statusText:p,url:g}),s},l=()=>{let{headers:h,status:p,statusText:m,url:g}=a(),_=null;204!==p&&(_=void 0===o.response?o.responseText:o.response),0===p&&(p=_?200:0);let y=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof _){const w=_;_=_.replace(O2,"");try{_=""!==_?JSON.parse(_):null}catch(T){_=w,y&&(y=!1,_={error:T,text:_})}}y?(r.next(new fu({body:_,headers:h,status:p,statusText:m,url:g||void 0})),r.complete()):r.error(new Lw({error:_,headers:h,status:p,statusText:m,url:g||void 0}))},u=h=>{const{url:p}=a(),m=new Lw({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(m)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:Te.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&!!o.responseText&&(p.partialText=o.responseText),r.next(p)},f=h=>{let p={type:Te.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",l),o.addEventListener("error",u),o.addEventListener("timeout",u),o.addEventListener("abort",u),n.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),r.next({type:Te.Sent}),()=>{o.removeEventListener("error",u),o.removeEventListener("abort",u),o.removeEventListener("load",l),o.removeEventListener("timeout",u),n.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return t.\u0275fac=function(n){return new(n||t)(b(pb))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const Jh=new G("XSRF_COOKIE_NAME"),Kh=new G("XSRF_HEADER_NAME");class Uw{}let F2=(()=>{class t{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=sb(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return t.\u0275fac=function(n){return new(n||t)(b(Se),b(al),b(Jh))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),Yh=(()=>{class t{constructor(n,r){this.tokenService=n,this.headerName=r}intercept(n,r){const o=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||o.startsWith("http://")||o.startsWith("https://"))return r.handle(n);const i=this.tokenService.getToken();return null!==i&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,i)})),r.handle(n)}}return t.\u0275fac=function(n){return new(n||t)(b(Uw),b(Kh))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),k2=(()=>{class t{constructor(n,r){this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=this.injector.get(Hw,[]);this.chain=r.reduceRight((o,i)=>new jw(o,i),this.backend)}return this.chain.handle(n)}}return t.\u0275fac=function(n){return new(n||t)(b(Nw),b(Y))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),V2=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Yh,useClass:N2}]}}static withOptions(n={}){return{ngModule:t,providers:[n.cookieName?{provide:Jh,useValue:n.cookieName}:[],n.headerName?{provide:Kh,useValue:n.headerName}:[]]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=it({providers:[Yh,{provide:Hw,useExisting:Yh,multi:!0},{provide:Uw,useClass:F2},{provide:Jh,useValue:"XSRF-TOKEN"},{provide:Kh,useValue:"X-XSRF-TOKEN"}]}),t})(),L2=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=it({providers:[Qh,{provide:Rw,useClass:k2},Bw,{provide:Nw,useExisting:Bw}],imports:[[V2.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),j2=(()=>{class t{constructor(n){this.http=n,this.url=`${du_apiUrl}/api/preview`}getDescriptionPreview(n){return this.http.post(`${this.url}/description`,{url:n},{responseType:"text"})}getChaptersPreview(n,r){return this.http.post(`${this.url}/chapters`,{url:n,description:r},{responseType:"json"})}}return t.\u0275fac=function(n){return new(n||t)(b(Qh))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$w=(()=>{class t{constructor(n){this.http=n,this.url=`${du_apiUrl}/api/jobs`}initializeJob(n,r){return this.http.post(`${this.url}/initialize`,{url:n,description:r},{responseType:"json"})}convertVideoToMp3(n){return this.http.post(`${this.url}/initializeWithoutChapters`,{url:n},{responseType:"json"})}getJob(n){return this.http.get(`${this.url}/${n}`,{responseType:"json"})}}return t.\u0275fac=function(n){return new(n||t)(b(Qh))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function H2(t,e){if(1&t&&(I(0,"div",14),Fe(1),M()),2&t){const n=qe();K(1),Ar(n.error)}}function B2(t,e){1&t&&(sa(),I(0,"svg",25),Zt(1,"circle",26),M())}const Zh=function(){return{standalone:!0}};function U2(t,e){if(1&t){const n=ja();I(0,"textarea",27),Oe("ngModelChange",function(o){return ta(n),qe(2).onDescriptionChanged(o)}),M()}if(2&t){const n=qe(2);de("ngModel",n.description)("ngModelOptions",rl(4,Zh))("disabled",!n.useCustomDescription)("readonly",!n.useCustomDescription)}}function $2(t,e){1&t&&(sa(),I(0,"svg",25),Zt(1,"circle",26),M())}function G2(t,e){if(1&t&&(I(0,"div",14),Fe(1),M()),2&t){const n=qe(2);K(1),Ar(n.chaptersError)}}function W2(t,e){if(1&t&&(function(t,e,n){const r=v(),o=Z(),i=t+20,s=o.firstCreatePass?function(t,e,n,r,o){const i=e.consts,s=Kn(i,r),a=yo(e,t,8,"ng-container",s);return null!==s&&Fa(a,s,!0),Hc(e,n,a,Kn(i,o)),null!==e.queries&&e.queries.elementStart(e,a),a}(i,o,r,e,n):o.data[i];fn(s,!0);const a=r[i]=r[B].createComment("");Ta(o,r,a,s),Ye(a,r),Xs(s)&&(Lc(o,r,s),wm(o,s,r)),null!=n&&jc(r,s)}(0),Fe(1),function(){let t=Re();const e=Z();Uu()?$u():(t=t.parent,fn(t,!1)),e.firstCreatePass&&(aa(e,t),Pu(t)&&e.queries.elementEnd(t))}()),2&t){const n=qe(4);K(1),xr(" ",n.onIsLoadingChaptersChanged(!1)," ")}}function q2(t,e){if(1&t&&(I(0,"li",31),Fe(1),He(2,W2,2,1,"ng-container",32),M()),2&t){const n=e.$implicit,r=e.last;K(1),xr("",n.name," "),K(1),de("ngIf",r)}}function z2(t,e){if(1&t&&(I(0,"div",28),I(1,"ul",29),He(2,q2,3,2,"li",30),M(),M()),2&t){const n=qe(2);K(2),de("ngForOf",n.previewChapters)}}function Q2(t,e){if(1&t){const n=ja();I(0,"div",4),I(1,"div",15),I(2,"div",4),I(3,"div",16),I(4,"span"),Fe(5,"\xa0Specify timecodes manually"),M(),I(6,"label"),I(7,"input",17),Oe("ngModelChange",function(o){return ta(n),qe().onUseCustomDescriptionChanged(o)}),M(),Zt(8,"span",18),M(),M(),M(),I(9,"div",19),He(10,B2,2,0,"svg",20),I(11,"div",21),He(12,U2,1,5,"textarea",22),M(),M(),M(),I(13,"div",23),I(14,"div",4),Fe(15," Preview "),M(),I(16,"div",19),He(17,$2,2,0,"svg",20),He(18,G2,2,1,"div",9),He(19,z2,3,1,"div",24),M(),M(),M()}if(2&t){const n=qe();K(7),de("ngModel",n.useCustomDescription)("ngModelOptions",rl(7,Zh)),K(3),de("ngIf",n.isLoadingDescription),K(2),de("ngIf",!n.isLoadingDescription),K(5),de("ngIf",n.isLoadingChapters),K(1),de("ngIf",n.hasChaptersError()),K(1),de("ngIf",!n.hasChaptersError()&&!n.isLoadingChapters&&0!=n.previewChapters.length)}}let J2=(()=>{class t{constructor(n,r,o,i){this.previewService=n,this.router=r,this.mainService=o,this.title=i,this.isCorrectUrl=!1,this.url="",this.isLoadingDescription=!0,this.useCustomDescription=!1,this.description="",this.previewChapters=[],this.isLoadingChapters=!0,this.processing=!1}ngOnInit(){}hasError(){return null!=this.error||null!=this.error}hasChaptersError(){return null!=this.chaptersError||null!=this.chaptersError}onUrlChanged(n){this.isCorrectUrl=this.isValidYoutubeUrl(n),0!=this.isCorrectUrl?(this.error=null,this.url=n,this.isLoadingDescription=!0,this.previewService.getDescriptionPreview(this.url).subscribe(r=>{this.onDescriptionChanged(r),this.isLoadingDescription=!1},r=>{if(0==r.status)console.log(r),this.error="Server not responding (CONNECTION REFUSED)",this.isLoadingDescription=!1;else{var o=JSON.parse(r.error);this.error=o.errorMessage,this.isLoadingDescription=!1}})):this.error="Invalid youtube url"}onUseCustomDescriptionChanged(n){this.useCustomDescription=n}onDescriptionChanged(n){this.chaptersError=null,this.description=n,this.onIsLoadingChaptersChanged(!0),this.previewService.getChaptersPreview(this.url,this.description).subscribe(r=>{this.previewChapters=r,this.onIsLoadingChaptersChanged(!1)},r=>{console.log(r),this.chaptersError=r.error.errorMessage,this.onIsLoadingChaptersChanged(!1)})}onIsLoadingChaptersChanged(n){this.isLoadingChapters=n}onParseChaptersButtonClick(){this.processing=!0,this.mainService.initializeJob(this.url,this.description).subscribe(n=>{this.title.setTitle("Processing..."),this.router.navigateByUrl(`job/${n.id}`)},n=>{this.processing=!1})}onConvertVideoToMp3ButtonClick(){this.processing=!0,this.mainService.convertVideoToMp3(this.url).subscribe(n=>{this.title.setTitle("Processing..."),this.router.navigateByUrl(`job/${n.id}`)},n=>{this.error=n.error.errorMessage,this.processing=!1})}isValidYoutubeUrl(n){if(null!=n||""!=n){var o=n.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=|\?v=)([^#\&\?]*).*/);return!(!o||11!=o[2].length)}return!1}}return t.\u0275fac=function(n){return new(n||t)(C(j2),C(pt),C($w),C(Qf))},t.\u0275cmp=Jr({type:t,selectors:[["app-create"]],decls:18,vars:7,consts:[[1,"card"],[1,"card-content"],[1,"card-title","black-text"],["aria-hidden","true",1,"fa","fa-github"],[1,"row"],[1,"input-field","col","s12"],[1,"material-icons","prefix"],["id","icon_prefix","type","text",1,"validate",3,"ngModel","ngModelOptions","ngModelChange"],["for","icon_prefix"],["class","card-panel red accent-1",4,"ngIf"],["class","row",4,"ngIf"],[1,"card-action","right-align"],["type","submit","value","Download",1,"btn","red","lighten-3",2,"margin-right","10px",3,"disabled","click"],["type","submit","value","Split chapters",1,"btn","red","lighten-3",3,"disabled","click"],[1,"card-panel","red","accent-1"],[1,"col","s8"],[1,"switch"],["type","checkbox",3,"ngModel","ngModelOptions","ngModelChange"],[1,"lever"],[1,"row",2,"align-items","center","justify-content","center"],["class","spinner","viewBox","0 0 50 50",4,"ngIf"],[1,"input-field"],["id","descripionTextArea","style","height: 300px; resize: none;",3,"ngModel","ngModelOptions","disabled","readonly","ngModelChange",4,"ngIf"],[1,"col","s4",2,"padding-left","20px"],["style","overflow-y: scroll; height:300px; padding-right: 5px;",4,"ngIf"],["viewBox","0 0 50 50",1,"spinner"],["cx","25","cy","25","r","20","fill","none","stroke-width","5",1,"path"],["id","descripionTextArea",2,"height","300px","resize","none",3,"ngModel","ngModelOptions","disabled","readonly","ngModelChange"],[2,"overflow-y","scroll","height","300px","padding-right","5px"],[1,"collection"],["class","collection-item",4,"ngFor","ngForOf"],[1,"collection-item"],[4,"ngIf"]],template:function(n,r){1&n&&(I(0,"div",0),I(1,"div",1),I(2,"span",2),Fe(3,"Ethereal"),M(),I(4,"form"),Zt(5,"i",3),I(6,"div",4),I(7,"div",5),I(8,"i",6),Fe(9,"video_settings"),M(),I(10,"input",7),Oe("ngModelChange",function(i){return r.onUrlChanged(i)}),M(),I(11,"label",8),Fe(12,"Youtube video url"),M(),M(),M(),He(13,H2,2,1,"div",9),He(14,Q2,20,8,"div",10),M(),M(),I(15,"div",11),I(16,"input",12),Oe("click",function(){return r.onConvertVideoToMp3ButtonClick()}),M(),I(17,"input",13),Oe("click",function(){return r.onParseChaptersButtonClick()}),M(),M(),M()),2&n&&(K(10),de("ngModel",r.url)("ngModelOptions",rl(6,Zh)),K(3),de("ngIf",r.hasError()),K(1),de("ngIf",!r.hasError()&&r.isCorrectUrl),K(2),de("disabled",r.processing||r.hasError()||0==r.url.length),K(1),de("disabled",r.processing||0==r.previewChapters.length||r.hasError()||r.hasChaptersError()))},directives:[fh,eh,Ds,Vl,Yb,dh,Of,Kf,Nf],styles:["input[_ngcontent-%COMP%]:-webkit-autofill{-webkit-box-shadow:0 0 0px 1000px white inset!important}"]}),t})();var Gw=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hu=function(t){function e(n,r){var i=this,s=this.constructor.prototype;return(i=t.call(this,n)||this).statusCode=r,i.__proto__=s,i}return Gw(e,t),e}(Error),Ww=function(t){function e(n){void 0===n&&(n="A timeout occurred.");var o=this,i=this.constructor.prototype;return(o=t.call(this,n)||this).__proto__=i,o}return Gw(e,t),e}(Error),S=(()=>(function(t){t[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Information=2]="Information",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Critical=5]="Critical",t[t.None=6]="None"}(S||(S={})),S))(),K2=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=200&&s.status<300?o(new Y2(s.status,s.statusText,s.response||s.responseText)):i(new hu(s.statusText,s.status))},s.onerror=function(){r.logger.log(S.Warning,"Error from HTTP request. "+s.status+": "+s.statusText),i(new hu(s.statusText,s.status))},s.ontimeout=function(){r.logger.log(S.Warning,"Timeout from HTTP request."),i(new Ww)},s.send(n.content||"")})},e}(function(){function t(){}return t.prototype.get=function(e,n){return this.send(Xh({},n,{method:"GET",url:e}))},t.prototype.post=function(e,n){return this.send(Xh({},n,{method:"POST",url:e}))},t.prototype.delete=function(e,n){return this.send(Xh({},n,{method:"DELETE",url:e}))},t}()),ri=function(){function t(){}return t.write=function(e){return""+e+t.RecordSeparator},t.parse=function(e){if(e[e.length-1]!==t.RecordSeparator)throw new Error("Message is incomplete.");var n=e.split(t.RecordSeparator);return n.pop(),n},t.RecordSeparatorCode=30,t.RecordSeparator=String.fromCharCode(t.RecordSeparatorCode),t}(),ep=function(){function t(){}return t.prototype.log=function(e,n){},t.instance=new t,t}(),Qe=function(){function t(){}return t.isRequired=function(e,n){if(null==e)throw new Error("The '"+n+"' argument is required.")},t.isIn=function(e,n,r){if(!(e in n))throw new Error("Unknown "+r+" value: "+e+".")},t}();function ks(t,e){var n=null;return zw(t)?(n="Binary data of length "+t.byteLength,e&&(n+=". Content: '"+function(t){var e=new Uint8Array(t),n="";return e.forEach(function(r){n+="0x"+(r<16?"0":"")+r.toString(16)+" "}),n.substr(0,n.length-1)}(t)+"'")):"string"==typeof t&&(n="String data of length "+t.length,e&&(n+=". Content: '"+t+"'.")),n}function qw(t,e,n,r,o,i,s){return function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(u){try{l(r.next(u))}catch(c){i(c)}}function a(u){try{l(r.throw(u))}catch(c){i(c)}}function l(u){u.done?o(u.value):new n(function(c){c(u.value)}).then(s,a)}l((r=r.apply(t,[])).next())})}(this,0,void 0,function(){var a,l,u,c;return function(t,e){var r,o,i,s,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=2&u[0]?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(!(i=(i=n.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]-1&&this.subject.observers.splice(e,1),0===this.subject.observers.length&&this.subject.cancelCallback().catch(function(n){})},t}(),tp=function(){function t(e){this.minimumLogLevel=e}return t.prototype.log=function(e,n){if(e>=this.minimumLogLevel)switch(e){case S.Critical:case S.Error:console.error(S[e]+": "+n);break;case S.Warning:console.warn(S[e]+": "+n);break;case S.Information:console.info(S[e]+": "+n);break;default:console.log(S[e]+": "+n)}},t}();function zw(t){return t&&"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}var sj=function(){function t(){}return t.prototype.writeHandshakeRequest=function(e){return ri.write(JSON.stringify(e))},t.prototype.parseHandshakeResponse=function(e){var r,o;if(zw(e)){var i=new Uint8Array(e);if(-1===(s=i.indexOf(ri.RecordSeparatorCode)))throw new Error("Message is incomplete.");var a=s+1;r=String.fromCharCode.apply(null,i.slice(0,a)),o=i.byteLength>a?i.slice(a).buffer:null}else{var s,l=e;if(-1===(s=l.indexOf(ri.RecordSeparator)))throw new Error("Message is incomplete.");r=l.substring(0,a=s+1),o=l.length>a?l.substring(a):null}var u=ri.parse(r);return[o,JSON.parse(u[0])]},t}(),Ae=(()=>(function(t){t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close"}(Ae||(Ae={})),Ae))(),cj=function(){function t(e,n,r){var o=this;Qe.isRequired(e,"connection"),Qe.isRequired(n,"logger"),Qe.isRequired(r,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.logger=n,this.protocol=r,this.connection=e,this.handshakeProtocol=new sj,this.connection.onreceive=function(i){return o.processIncomingData(i)},this.connection.onclose=function(i){return o.connectionClosed(i)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.id=0}return t.create=function(e,n,r){return new t(e,n,r)},t.prototype.start=function(){return function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(u){try{l(r.next(u))}catch(c){i(c)}}function a(u){try{l(r.throw(u))}catch(c){i(c)}}function l(u){u.done?o(u.value):new n(function(c){c(u.value)}).then(s,a)}l((r=r.apply(t,[])).next())})}(this,0,void 0,function(){var e;return function(t,e){var r,o,i,s,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=2&u[0]?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(!(i=(i=n.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1](function(t){t[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling"}(nt||(nt={})),nt))(),rt=(()=>(function(t){t[t.Text=1]="Text",t[t.Binary=2]="Binary"}(rt||(rt={})),rt))(),dj=function(){function t(){this.isAborted=!1}return t.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(t.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),t}(),pu=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(u){try{l(r.next(u))}catch(c){i(c)}}function a(u){try{l(r.throw(u))}catch(c){i(c)}}function l(u){u.done?o(u.value):new n(function(c){c(u.value)}).then(s,a)}l((r=r.apply(t,e||[])).next())})},gu=function(t,e){var r,o,i,s,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=2&u[0]?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(!(i=(i=n.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]")),this.onclose(r)),this.logger.log(S.Trace,"(LongPolling transport) Transport finished."),[7];case 9:return[2]}})})},t.prototype.send=function(e){return pu(this,void 0,void 0,function(){return gu(this,function(n){return this.running?[2,qw(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},t.prototype.stop=function(){return pu(this,void 0,void 0,function(){var e,n,r=this;return gu(this,function(o){switch(o.label){case 0:return o.trys.push([0,,3,4]),this.running=!1,this.logger.log(S.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),e={headers:{}},[4,this.accessTokenFactory()];case 1:return n=o.sent(),this.updateHeaderToken(e,n),[4,this.httpClient.delete(this.url,e)];case 2:return o.sent(),this.logger.log(S.Trace,"(LongPolling transport) DELETE request accepted."),[3,4];case 3:return this.stopped||(this.shutdownTimer=setTimeout(function(){r.logger.log(S.Warning,"(LongPolling transport) server did not terminate after DELETE request, canceling poll."),r.pollAbort.abort()},this.shutdownTimeout)),[7];case 4:return[2]}})})},t}(),Jw=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(u){try{l(r.next(u))}catch(c){i(c)}}function a(u){try{l(r.throw(u))}catch(c){i(c)}}function l(u){u.done?o(u.value):new n(function(c){c(u.value)}).then(s,a)}l((r=r.apply(t,e||[])).next())})},Kw=function(t,e){var r,o,i,s,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=2&u[0]?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(!(i=(i=n.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]0&&i[i.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]0&&i[i.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]=0){if(!(o===nt.WebSockets&&"undefined"==typeof WebSocket||o===nt.ServerSentEvents&&"undefined"==typeof EventSource))return this.logger.log(S.Debug,"Selecting transport '"+nt[o]+"'"),o;this.logger.log(S.Debug,"Skipping transport '"+nt[o]+"' because it is not supported in your environment.'")}else this.logger.log(S.Debug,"Skipping transport '"+nt[o]+"' because it does not support the requested transfer format '"+rt[r]+"'.");else this.logger.log(S.Debug,"Skipping transport '"+nt[o]+"' because it was disabled by the client.")}return null},t.prototype.isITransport=function(e){return e&&"object"==typeof e&&"connect"in e},t.prototype.changeState=function(e,n){return this.connectionState===e&&(this.connectionState=n,!0)},t.prototype.stopConnection=function(e){return Vs(this,void 0,void 0,function(){return oi(this,function(n){return this.transport=null,(e=this.stopError||e)?this.logger.log(S.Error,"Connection disconnected with error '"+e+"'."):this.logger.log(S.Information,"Connection disconnected."),this.connectionState=2,this.onclose&&this.onclose(e),[2]})})},t.prototype.resolveUrl=function(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if("undefined"==typeof window||!window||!window.document)throw new Error("Cannot resolve '"+e+"'.");var n=window.document.createElement("a");return n.href=e,this.logger.log(S.Information,"Normalizing '"+e+"' to '"+n.href+"'."),n.href},t.prototype.resolveNegotiateUrl=function(e){var n=e.indexOf("?"),r=e.substring(0,-1===n?e.length:n);return"/"!==r[r.length-1]&&(r+="/"),(r+="negotiate")+(-1===n?"":e.substring(n))},t}(),Cj=function(){function t(){this.name="json",this.version=1,this.transferFormat=rt.Text}return t.prototype.parseMessages=function(e,n){if("string"!=typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===n&&(n=ep.instance);for(var o=[],i=0,s=ri.parse(e);i{class t{constructor(){this.startConnection=n=>{this.hubConnection=(new bj).withUrl(`${du_apiUrl}/logger?jobId=${n}`).build(),this.hubConnection.start().then(()=>console.log("Connection started")).catch(r=>console.log("Error while starting connection: "+r))},this.addReceiveLogListener=n=>{this.hubConnection.on("onReceiveLog",r=>{n(r)})}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Dj(t,e){if(1&t&&(I(0,"div",7),Fe(1),M()),2&t){const n=qe(3);let r;K(1),Ar(null!==(r=n.error)&&void 0!==r?r:"Failed. Try again.")}}function Sj(t,e){if(1&t&&(I(0,"div"),He(1,Dj,2,1,"div",6),M()),2&t){const n=qe(2);K(1),de("ngIf",n.isFailed())}}function Ij(t,e){if(1&t&&(I(0,"div"),I(1,"div",8),I(2,"div",9),sa(),I(3,"svg",10),Zt(4,"circle",11),M(),M(),F.lFrame.currentNamespace=null,I(5,"div",12),Fe(6),M(),M(),M()),2&t){const n=qe(2);K(6),xr(" ",n.currentLog," ")}}function Mj(t,e){if(1&t&&(I(0,"li",17),Zt(1,"img",18),I(2,"span",19),Fe(3),M(),I(4,"p"),Fe(5),Zt(6,"br"),Fe(7),M(),I(8,"a",20),I(9,"i",21),Fe(10,"save_alt"),M(),M(),M()),2&t){const n=e.$implicit;K(1),cd("src",n.thumbnailUrl,Ri),K(2),Ar(n.name),K(2),fd("",n.startTimespan," - ",n.endTimespan,""),K(2),xr(" Duration: ",n.duration," "),K(1),Ba("href","",n.mp3Url,"?inline=false",Ri)}}function Tj(t,e){if(1&t&&(I(0,"div",14),I(1,"ul",15),He(2,Mj,11,6,"li",16),M(),M()),2&t){const n=qe(3);K(2),de("ngForOf",n.job.chapters)}}function Aj(t,e){if(1&t&&(I(0,"div"),He(1,Tj,3,1,"div",13),M()),2&t){const n=qe(2);K(1),de("ngIf",!n.isLoadingChapters)}}function xj(t,e){if(1&t&&(I(0,"div"),I(1,"span",4),Fe(2),M(),I(3,"form"),I(4,"div",5),Zt(5,"br"),He(6,Sj,2,1,"div",2),He(7,Ij,7,1,"div",2),He(8,Aj,2,1,"div",2),M(),M(),M()),2&t){const n=qe();K(2),Ar(n.job.video.title),K(4),de("ngIf",n.isFailed()),K(1),de("ngIf",n.isProcessing()),K(1),de("ngIf",n.isSucceed())}}function Rj(t,e){if(1&t){const n=ja();I(0,"div",22),I(1,"a",23),Fe(2,"Back"),M(),I(3,"input",24),Oe("click",function(){ta(n);const o=qe();return o.openUrl(o.job.zipArchiveUrl)}),M(),M()}if(2&t){const n=qe();K(3),de("disabled",n.isProcessing()||n.isFailed())}}const Nj=[{path:"job/:id",component:(()=>{class t{constructor(n,r,o,i){this.route=n,this.mainService=r,this.signalR=o,this.title=i,this.isLoadingChapters=!1}ngOnInit(){this.routeSub=this.route.params.subscribe(n=>{var r=n.id;this.mainService.getJob(r).subscribe(o=>{this.job=o,this.currentStatus=this.job.status,this.currentLog=this.job.lastLogMessage,this.title.setTitle(this.currentLog),this.isFailed()&&(this.error=this.job.lastLogMessage,this.title.setTitle(this.job.lastLogMessage)),this.isProcessing()&&(this.signalR.startConnection(r),this.signalR.addReceiveLogListener(i=>{console.log(i),this.currentStatus=i.status,this.currentLog=i.log,this.isFailed()&&(this.error=this.currentLog),this.title.setTitle(this.currentLog)})),console.log(this.job)})})}onIsLoadingChaptersChanged(n){this.isLoadingChapters=n}openUrl(n){window.open(n)}isProcessing(){return"Created"==this.currentStatus||"Processing"==this.currentStatus}isSucceed(){return"Succeed"==this.currentStatus}isFailed(){return"Failed"==this.currentStatus||"Expired"==this.currentStatus}}return t.\u0275fac=function(n){return new(n||t)(C($r),C($w),C(wj),C(Qf))},t.\u0275cmp=Jr({type:t,selectors:[["app-job"]],decls:4,vars:2,consts:[[1,"card"],[1,"card-content"],[4,"ngIf"],["class","card-action right-align",4,"ngIf"],[1,"card-title","black-text"],[1,"row"],["class","card-panel red accent-1",4,"ngIf"],[1,"card-panel","red","accent-1"],[1,"content"],[1,"col","s2"],["viewBox","0 0 50 50",1,"spinner"],["cx","25","cy","25","r","20","fill","none","stroke-width","5",1,"path"],[1,"col","s8"],["style","overflow-y: scroll; height:300px; padding-right: 5px;",4,"ngIf"],[2,"overflow-y","scroll","height","300px","padding-right","5px"],[1,"collection"],["class","collection-item avatar",4,"ngFor","ngForOf"],[1,"collection-item","avatar"],["alt","",1,"circle",3,"src"],[1,"title"],[1,"secondary-content",3,"href"],[1,"material-icons"],[1,"card-action","right-align"],["routerLink","",1,"left",2,"margin-top","5px"],["type","submit","value","Download ZIP",1,"btn","red","lighten-3",3,"disabled","click"]],template:function(n,r){1&n&&(I(0,"div",0),I(1,"div",1),He(2,xj,9,4,"div",2),M(),He(3,Rj,4,1,"div",3),M()),2&n&&(K(2),de("ngIf",null!=r.job),K(1),de("ngIf",null!=r.job))},directives:[Of,fh,eh,Ds,Nf,cu],styles:[""]}),t})()},{path:"",component:J2},{path:"**",redirectTo:""}];let Oj=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=it({imports:[[Tw.forRoot(Nj)],Tw]}),t})(),Pj=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Jr({type:t,selectors:[["app-root"]],decls:8,vars:0,consts:[[1,"valign-wrapper",2,"width","100%","height","100%","position","absolute","background-color","#4158D0","background-image","linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%)"],[2,"position","absolute","bottom","0","right","0","width","100px","text-align","right"],[2,"color","white"],[1,"valign",2,"width","100%"],[1,"row"],[1,"col","s12","m6","offset-m3"]],template:function(n,r){1&n&&(I(0,"div",0),I(1,"div",1),I(2,"p",2),Fe(3,"2.4.0.0 \xa0 \xa0"),M(),M(),I(4,"div",3),I(5,"div",4),I(6,"div",5),Zt(7,"router-outlet"),M(),M(),M(),M())},directives:[Uh],styles:[".loader[_ngcontent-%COMP%]{position:absolute;top:0px;right:0px;width:100%;height:100%;background-color:#eceaea;background-image:url(data:image/svg+xml,);background-size:50px;background-repeat:no-repeat;background-position:center;z-index:10000000;opacity:.4;filter:alpha(opacity=40)}.spinner[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;z-index:2;top:50%;left:50%;margin:0 auto;width:50px;height:50px}.spinner[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{stroke:#93bfec;stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}body[_ngcontent-%COMP%]{display:flex;min-height:100vh;flex-direction:column}main[_ngcontent-%COMP%]{flex:1 0 auto}"]}),t})(),Fj=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t,bootstrap:[Pj]}),t.\u0275inj=it({providers:[],imports:[[$F,Oj,Uk,L2]]}),t})();(function(){if(hC)throw new Error("Cannot enable prod mode after platform setup.");fC=!1})(),BF().bootstrapModule(Fj).catch(t=>console.error(t))}},li=>{li(li.s=447)}]); \ No newline at end of file +(self.webpackChunkethereal=self.webpackChunkethereal||[]).push([[179],{255:li=>{function qn(ui){return Promise.resolve().then(()=>{var Tn=new Error("Cannot find module '"+ui+"'");throw Tn.code="MODULE_NOT_FOUND",Tn})}qn.keys=()=>[],qn.resolve=qn,qn.id=255,li.exports=qn},447:(li,qn,ui)=>{"use strict";function Tn(t){return"function"==typeof t}let mu=!1;const Gt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else mu&&console.log("RxJS: Back to a better error behavior. Thank you. <3");mu=t},get useDeprecatedSynchronousErrorHandling(){return mu}};function qr(t){setTimeout(()=>{throw t},0)}const js={closed:!0,next(t){},error(t){if(Gt.useDeprecatedSynchronousErrorHandling)throw t;qr(t)},complete(){}},Hs=Array.isArray||(t=>t&&"number"==typeof t.length);function yu(t){return null!==t&&"object"==typeof t}const Bs=(()=>{function t(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})();class ye{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:o,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof ye)n.remove(this);else if(null!==n)for(let s=0;se.concat(n instanceof Bs?n.errors:n),[])}ye.EMPTY=((t=new ye).closed=!0,t);const Us="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class pe extends ye{constructor(e,n,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=js;break;case 1:if(!e){this.destination=js;break}if("object"==typeof e){e instanceof pe?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new lp(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new lp(this,e,n,r)}}[Us](){return this}static create(e,n,r){const o=new pe(e,n,r);return o.syncErrorThrowable=!1,o}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class lp extends pe{constructor(e,n,r,o){super(),this._parentSubscriber=e;let i,s=this;Tn(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==js&&(s=Object.create(n),Tn(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=i,this._error=r,this._complete=o}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;Gt.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:r}=Gt;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=e,n.syncErrorThrown=!0):qr(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;qr(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const n=()=>this._complete.call(this._context);Gt.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(r){if(this.unsubscribe(),Gt.useDeprecatedSynchronousErrorHandling)throw r;qr(r)}}__tryOrSetError(e,n,r){if(!Gt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(o){return Gt.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=o,e.syncErrorThrown=!0,!0):(qr(o),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const ci="function"==typeof Symbol&&Symbol.observable||"@@observable";function $s(t){return t}let le=(()=>{class t{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){const{operator:i}=this,s=function(t,e,n){if(t){if(t instanceof pe)return t;if(t[Us])return t[Us]()}return t||e||n?new pe(t,e,n):new pe(js)}(n,r,o);if(s.add(i?i.call(s,this.source):this.source||Gt.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Gt.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){Gt.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof pe?n:null}return!0}(n)?n.error(r):console.warn(r)}}forEach(n,r){return new(r=cp(r))((o,i)=>{let s;s=this.subscribe(a=>{try{n(a)}catch(l){i(l),s&&s.unsubscribe()}},i,o)})}_subscribe(n){const{source:r}=this;return r&&r.subscribe(n)}[ci](){return this}pipe(...n){return 0===n.length?this:function(t){return 0===t.length?$s:1===t.length?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=cp(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function cp(t){if(t||(t=Gt.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const zr=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class eD extends ye{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,n=e.observers;if(this.subject=null,!n||0===n.length||e.isStopped||e.closed)return;const r=n.indexOf(this.subscriber);-1!==r&&n.splice(r,1)}}class dp extends pe{constructor(e){super(e),this.destination=e}}let An=(()=>{class t extends le{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Us](){return new dp(this)}lift(n){const r=new fp(this,this);return r.operator=n,r}next(n){if(this.closed)throw new zr;if(!this.isStopped){const{observers:r}=this,o=r.length,i=r.slice();for(let s=0;snew fp(e,n),t})();class fp extends An{constructor(e,n){super(),this.destination=e,this.source=n}next(e){const{destination:n}=this;n&&n.next&&n.next(e)}error(e){const{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:n}=this;return n?this.source.subscribe(e):ye.EMPTY}}function Gs(t){return t&&"function"==typeof t.schedule}function X(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new tD(t,e))}}class tD{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new nD(e,this.project,this.thisArg))}}class nD extends pe{constructor(e,n,r){super(e),this.project=n,this.count=0,this.thisArg=r||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const hp=t=>e=>{for(let n=0,r=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function gp(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const _u=t=>{if(t&&"function"==typeof t[ci])return(t=>e=>{const n=t[ci]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if(pp(t))return hp(t);if(gp(t))return(t=>e=>(t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,qr),e))(t);if(t&&"function"==typeof t[Ws])return(t=>e=>{const n=t[Ws]();for(;;){let r;try{r=n.next()}catch(o){return e.error(o),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const n=`You provided ${yu(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function vu(t,e){return new le(n=>{const r=new ye;let o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function Ge(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[ci]}(t))return function(t,e){return new le(n=>{const r=new ye;return r.add(e.schedule(()=>{const o=t[ci]();r.add(o.subscribe({next(i){r.add(e.schedule(()=>n.next(i)))},error(i){r.add(e.schedule(()=>n.error(i)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(gp(t))return function(t,e){return new le(n=>{const r=new ye;return r.add(e.schedule(()=>t.then(o=>{r.add(e.schedule(()=>{n.next(o),r.add(e.schedule(()=>n.complete()))}))},o=>{r.add(e.schedule(()=>n.error(o)))}))),r})}(t,e);if(pp(t))return vu(t,e);if(function(t){return t&&"function"==typeof t[Ws]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new le(n=>{const r=new ye;let o;return r.add(()=>{o&&"function"==typeof o.return&&o.return()}),r.add(e.schedule(()=>{o=t[Ws](),r.add(e.schedule(function(){if(n.closed)return;let i,s;try{const a=o.next();i=a.value,s=a.done}catch(a){return void n.error(a)}s?n.complete():(n.next(i),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof le?t:new le(_u(t))}class Cu extends pe{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class bu extends pe{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Eu(t,e){if(e.closed)return;if(t instanceof le)return t.subscribe(e);let n;try{n=_u(t)(e)}catch(r){e.error(r)}return n}function We(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(We((o,i)=>Ge(t(o,i)).pipe(X((s,a)=>e(o,s,i,a))),n)):("number"==typeof e&&(n=e),r=>r.lift(new hD(t,n)))}class hD{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new pD(e,this.project,this.concurrent))}}class pD extends bu{constructor(e,n,r=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function di(t=Number.POSITIVE_INFINITY){return We($s,t)}function wu(t,e){return e?vu(t,e):new le(hp(t))}function Du(){return function(e){return e.lift(new mD(e))}}class mD{constructor(e){this.connectable=e}call(e,n){const{connectable:r}=this;r._refCount++;const o=new yD(e,r),i=n.subscribe(o);return o.closed||(o.connection=r.connect()),i}}class yD extends pe{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const n=e._refCount;if(n<=0)return void(this.connection=null);if(e._refCount=n-1,n>1)return void(this.connection=null);const{connection:r}=this,o=e._connection;this.connection=null,o&&(!r||o===r)&&o.unsubscribe()}}class mp extends le{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new ye,e.add(this.source.subscribe(new vD(this.getSubject(),this))),e.closed&&(this._connection=null,e=ye.EMPTY)),e}refCount(){return Du()(this)}}const _D=(()=>{const t=mp.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 vD extends dp{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}}function wD(){return new An}function ee(t){for(let e in t)if(t[e]===ee)return e;throw Error("Could not find renamed property on target object.")}function Su(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function $(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map($).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 Iu(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const SD=ee({__forward_ref__:ee});function ie(t){return t.__forward_ref__=ie,t.toString=function(){return $(this())},t}function A(t){return yp(t)?t():t}function yp(t){return"function"==typeof t&&t.hasOwnProperty(SD)&&t.__forward_ref__===ie}class mr extends Error{constructor(e,n){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(e,n)),this.code=e}}function j(t){return"string"==typeof t?t:null==t?"":String(t)}function ot(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():j(t)}function qs(t,e){const n=e?` in ${e}`:"";throw new mr("201",`No provider for ${ot(t)} found${n}`)}function Ct(t,e){null==t&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function N(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function it(t){return{providers:t.providers||[],imports:t.imports||[]}}function Rn(t){return _p(t,zs)||_p(t,Cp)}function _p(t,e){return t.hasOwnProperty(e)?t[e]:null}function vp(t){return t&&(t.hasOwnProperty(Tu)||t.hasOwnProperty(ND))?t[Tu]:null}const zs=ee({\u0275prov:ee}),Tu=ee({\u0275inj:ee}),Cp=ee({ngInjectableDef:ee}),ND=ee({ngInjectorDef:ee});var x=(()=>((x=x||{})[x.Default=0]="Default",x[x.Host=1]="Host",x[x.Self=2]="Self",x[x.SkipSelf=4]="SkipSelf",x[x.Optional=8]="Optional",x))();let Au;function zn(t){const e=Au;return Au=t,e}function bp(t,e,n){const r=Rn(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&x.Optional?null:void 0!==e?e:void qs($(t),"Injector")}function Qn(t){return{toString:t}.toString()}var At=(()=>((At=At||{})[At.OnPush=0]="OnPush",At[At.Default=1]="Default",At))(),xe=(()=>((xe=xe||{})[xe.Emulated=0]="Emulated",xe[xe.None=2]="None",xe[xe.ShadowDom=3]="ShadowDom",xe))();const PD="undefined"!=typeof globalThis&&globalThis,FD="undefined"!=typeof window&&window,kD="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,VD="undefined"!=typeof global&&global,te=PD||VD||FD||kD,Qr={},re=[],Qs=ee({\u0275cmp:ee}),xu=ee({\u0275dir:ee}),Ru=ee({\u0275pipe:ee}),Ep=ee({\u0275mod:ee}),LD=ee({\u0275loc:ee}),Nn=ee({\u0275fac:ee}),fi=ee({__NG_ELEMENT_ID__:ee});let jD=0;function Jr(t){return Qn(()=>{const n={},r={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:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===At.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||re,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||xe.Emulated,id:"c",styles:t.styles||re,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,i=t.features,s=t.pipes;return r.id+=jD++,r.inputs=Ip(t.inputs,n),r.outputs=Ip(t.outputs),i&&i.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(wp):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(Dp):null,r})}function wp(t){return st(t)||function(t){return t[xu]||null}(t)}function Dp(t){return function(t){return t[Ru]||null}(t)}const Sp={};function bt(t){return Qn(()=>{const e={type:t.type,bootstrap:t.bootstrap||re,declarations:t.declarations||re,imports:t.imports||re,exports:t.exports||re,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Sp[t.id]=t.type),e})}function Ip(t,e){if(null==t)return Qr;const n={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,e&&(e[o]=i)}return n}const O=Jr;function st(t){return t[Qs]||null}function xt(t,e){const n=t[Ep]||null;if(!n&&!0===e)throw new Error(`Type ${$(t)} does not have '\u0275mod' property.`);return n}const B=11;function dn(t){return Array.isArray(t)&&"object"==typeof t[1]}function qt(t){return Array.isArray(t)&&!0===t[1]}function Pu(t){return 0!=(8&t.flags)}function Zs(t){return 2==(2&t.flags)}function Xs(t){return 1==(1&t.flags)}function zt(t){return null!==t.template}function qD(t){return 0!=(512&t[2])}function br(t,e){return t.hasOwnProperty(Nn)?t[Nn]:null}class Tp{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ke(){return Ap}function Ap(t){return t.type.prototype.ngOnChanges&&(t.setInput=KD),JD}function JD(){const t=Rp(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Qr)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function KD(t,e,n,r){const o=Rp(t)||function(t,e){return t[xp]=e}(t,{previous:Qr,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],l=s[a];i[a]=new Tp(l&&l.currentValue,e,s===Qr),t[r]=e}Ke.ngInherit=!0;const xp="__ngSimpleChanges__";function Rp(t){return t[xp]||null}const Np="http://www.w3.org/2000/svg";let Vu;function _e(t){return!!t.listen}const Pp={createRenderer:(t,e)=>void 0!==Vu?Vu:"undefined"!=typeof document?document:void 0};function we(t){for(;Array.isArray(t);)t=t[0];return t}function ea(t,e){return we(e[t])}function Ot(t,e){return we(e[t.index])}function ju(t,e){return t.data[e]}function wt(t,e){const n=e[t];return dn(n)?n:n[0]}function Hu(t){return 128==(128&t[2])}function Kn(t,e){return null==e?null:t[e]}function kp(t){t[18]=0}function Bu(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const F={lFrame:Gp(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Vp(){return F.bindingsEnabled}function v(){return F.lFrame.lView}function Z(){return F.lFrame.tView}function ta(t){return F.lFrame.contextLView=t,t[8]}function Re(){let t=Lp();for(;null!==t&&64===t.type;)t=t.parent;return t}function Lp(){return F.lFrame.currentTNode}function fn(t,e){const n=F.lFrame;n.currentTNode=t,n.isParent=e}function Uu(){return F.lFrame.isParent}function $u(){F.lFrame.isParent=!1}function na(){return F.isInCheckNoChangesMode}function ra(t){F.isInCheckNoChangesMode=t}function to(){return F.lFrame.bindingIndex++}function On(t){const e=F.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function d0(t,e){const n=F.lFrame;n.bindingIndex=n.bindingRootIndex=t,Gu(e)}function Gu(t){F.lFrame.currentDirectiveIndex=t}function qu(t){F.lFrame.currentQueryIndex=t}function h0(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Up(t,e,n){if(n&x.SkipSelf){let o=e,i=t;for(;!(o=o.parent,null!==o||n&x.Host||(o=h0(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;e=o,t=i}const r=F.lFrame=$p();return r.currentTNode=e,r.lView=t,!0}function oa(t){const e=$p(),n=t[1];F.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function $p(){const t=F.lFrame,e=null===t?null:t.child;return null===e?Gp(t):e}function Gp(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 Wp(){const t=F.lFrame;return F.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const qp=Wp;function ia(){const t=Wp();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 lt(){return F.lFrame.selectedIndex}function Yn(t){F.lFrame.selectedIndex=t}function ve(){const t=F.lFrame;return ju(t.tView,t.selectedIndex)}function sa(){F.lFrame.currentNamespace=Np}function aa(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[l]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class yi{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function ca(t,e,n){const r=_e(t);let o=0;for(;oe){s=i-1;break}}}for(;i>16}(t),r=e;for(;n>0;)r=r[15],n--;return r}let Ku=!0;function fa(t){const e=Ku;return Ku=t,e}let I0=0;function vi(t,e){const n=Zu(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Yu(r.data,t),Yu(e,null),Yu(r.blueprint,null));const o=ha(t,e),i=t.injectorIndex;if(Yp(o)){const s=no(o),a=ro(o,e),l=a[1].data;for(let u=0;u<8;u++)e[i+u]=a[s+u]|l[s+u]}return e[i+8]=o,i}function Yu(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Zu(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function ha(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;null!==o;){const i=o[1],s=i.type;if(r=2===s?i.declTNode:1===s?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function pa(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(fi)&&(r=n[fi]),null==r&&(r=n[fi]=I0++);const o=255&r;e.data[t+(o>>5)]|=1<=0?255&e:A0:e}(n);if("function"==typeof i){if(!Up(e,t,r))return r&x.Host?eg(o,n,r):tg(e,n,r,o);try{const s=i(r);if(null!=s||r&x.Optional)return s;qs(n)}finally{qp()}}else if("number"==typeof i){let s=null,a=Zu(t,e),l=-1,u=r&x.Host?e[16][6]:null;for((-1===a||r&x.SkipSelf)&&(l=-1===a?ha(t,e):e[a+8],-1!==l&&ig(r,!1)?(s=e[1],a=no(l),e=ro(l,e)):a=-1);-1!==a;){const c=e[1];if(og(i,a,c.data)){const d=x0(a,e,n,s,r,u);if(d!==rg)return d}l=e[a+8],-1!==l&&ig(r,e[1].data[a+8]===u)&&og(i,a,e)?(s=c,a=no(l),e=ro(l,e)):a=-1}}}return tg(e,n,r,o)}const rg={};function A0(){return new oo(Re(),v())}function x0(t,e,n,r,o,i){const s=e[1],a=s.data[t+8],c=function(t,e,n,r,o){const i=t.providerIndexes,s=e.data,a=1048575&i,l=t.directiveStart,c=i>>20,f=o?a+c:t.directiveEnd;for(let h=r?a:a+c;h=l&&p.type===n)return h}if(o){const h=s[l];if(h&&zt(h)&&h.type===n)return l}return null}(a,s,n,null==r?Zs(a)&&Ku:r!=s&&0!=(3&a.type),o&x.Host&&i===a);return null!==c?Ci(e,s,c,a):rg}function Ci(t,e,n,r){let o=t[n];const i=e.data;if(function(t){return t instanceof yi}(o)){const s=o;s.resolving&&function(t,e){throw new mr("200",`Circular dependency in DI detected for ${t}`)}(ot(i[n]));const a=fa(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?zn(s.injectImpl):null;Up(t,r,x.Default);try{o=t[n]=s.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){const s=Ap(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{null!==l&&zn(l),fa(a),s.resolving=!1,qp()}}return o}function og(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Nn]||Xu(e),r=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){const i=o[Nn]||Xu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Xu(t){return yp(t)?()=>{const e=Xu(A(t));return e&&e()}:br(t)}const so="__parameters__";function Er(t,e,n){return Qn(()=>{const r=function(t){return function(...n){if(t){const r=t(...n);for(const o in r)this[o]=r[o]}}}(e);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(so)?l[so]:Object.defineProperty(l,so,{value:[]})[so];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}class G{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=N({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const P0=new G("AnalyzeForEntryComponents"),ma=Function;function pn(t,e){t.forEach(n=>Array.isArray(n)?pn(n,e):e(n))}function _a(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function wr(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Dt(t,e,n){let r=lo(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(1===o)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;)t[o]=t[o-2],o--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function tc(t,e){const n=lo(t,e);if(n>=0)return t[1|n]}function lo(t,e){return function(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=t[i<e?o=i:r=i+1}return~(o< ");else if("object"==typeof e){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):$(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(G0,"\n ")}`}("\n"+t.message,o,n,r),t.ngTokenPath=o,t[uo]=null,t}const fo=Mi(Er("Inject",t=>({token:t})),-1),yt=Mi(Er("Optional"),8),er=Mi(Er("SkipSelf"),4);class Sr{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function St(t){return t instanceof Sr?t.changingThisBreaksApplicationSecurity:t}function gn(t,e){const n=function(t){return t instanceof Sr&&t.getTypeName()||null}(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}const yS=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,_S=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var oe=(()=>((oe=oe||{})[oe.NONE=0]="NONE",oe[oe.HTML=1]="HTML",oe[oe.STYLE=2]="STYLE",oe[oe.SCRIPT=3]="SCRIPT",oe[oe.URL=4]="URL",oe[oe.RESOURCE_URL=5]="RESOURCE_URL",oe))();function Ri(t){const e=function(){const t=v();return t&&t[12]}();return e?e.sanitize(oe.URL,t)||"":gn(t,"URL")?St(t):function(t){return(t=String(t)).match(yS)||t.match(_S)?t:"unsafe:"+t}(j(t))}const xg="__ngContext__";function Ye(t,e){t[xg]=e}function pc(t){const e=function(t){return t[xg]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Sa(t){return t.ngOriginalError}function HS(t,...e){t.error(...e)}class Ir{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),r=this._findContext(e),o=function(t){return t&&t.ngErrorLogger||HS}(e);o(this._console,"ERROR",e),n&&o(this._console,"ORIGINAL ERROR",n),r&&o(this._console,"ERROR CONTEXT",r)}_findContext(e){return e?function(t){return t.ngDebugContext}(e)||this._findContext(Sa(e)):null}_findOriginalError(e){let n=e&&Sa(e);for(;n&&Sa(n);)n=Sa(n);return n||null}}const jg=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(te))();function yn(t){return t instanceof Function?t():t}var It=(()=>((It=It||{})[It.Important=1]="Important",It[It.DashCase=2]="DashCase",It))();function yc(t,e){return undefined(t,e)}function Pi(t){const e=t[3];return qt(e)?e[3]:e}function _c(t){return Gg(t[13])}function vc(t){return Gg(t[4])}function Gg(t){for(;null!==t&&!qt(t);)t=t[4];return t}function mo(t,e,n,r,o){if(null!=r){let i,s=!1;qt(r)?i=r:dn(r)&&(s=!0,r=r[0]);const a=we(r);0===t&&null!==n?null==o?Kg(e,n,a):Mr(e,n,a,o||null,!0):1===t&&null!==n?Mr(e,n,a,o||null,!0):2===t?function(t,e,n){const r=Ma(t,e);r&&function(t,e,n,r){_e(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,r,o){const i=n[7];i!==we(n)&&mo(e,t,r,i,o);for(let a=10;a0&&(t[n-1][4]=r[4]);const i=wr(t,10+e);!function(t,e){Fi(t,e,e[B],2,null,null),e[0]=null,e[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function zg(t,e){if(!(256&e[2])){const n=e[B];_e(n)&&n.destroyNode&&Fi(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return wc(t[1],t);for(;e;){let n=null;if(dn(e))n=e[13];else{const r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)dn(e)&&wc(e[1],e),e=e[3];null===e&&(e=t),dn(e)&&wc(e[1],e),n=e&&e[4]}e=n}}(e)}}function wc(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 r=0;r=0?r[o=u]():r[o=-u].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==sm(h,u,0)||2&r&&u!==f){if(Qt(r))return!1;s=!0}}}}else{if(!s&&!Qt(r)&&!Qt(l))return!1;if(s&&Qt(l))continue;s=!1,r=l|1&r}}return Qt(r)||s}function Qt(t){return 0==(1&t)}function gI(t,e,n,r){if(null===e)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Qt(s)&&(e+=cm(i,o),o=""),r=s,i=i||!Qt(r);n++}return""!==o&&(e+=cm(i,o)),e}const V={};function K(t){dm(Z(),v(),lt()+t,na())}function dm(t,e,n,r){if(!r)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&la(e,i,n)}else{const i=t.preOrderHooks;null!==i&&ua(e,i,0,n)}Yn(n)}function xa(t,e){return t<<17|e<<2}function Jt(t){return t>>17&32767}function Tc(t){return 2|t}function Pn(t){return(131068&t)>>2}function Ac(t,e){return-131069&t|e<<2}function xc(t){return 1|t}function bm(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r20&&dm(t,e,20,na()),n(r,o)}finally{Yn(i)}}function wm(t,e,n){if(Pu(e)){const o=e.directiveEnd;for(let i=e.directiveStart;i0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(a)!=l&&a.push(l),a.push(r,o,s)}}function Rm(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Nm(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function qI(t,e,n){if(n){if(e.exportAs)for(let r=0;r0&&Uc(n)}}function Uc(t){for(let r=_c(t);null!==r;r=vc(r))for(let o=10;o0&&Uc(i)}const n=t[1].components;if(null!==n)for(let r=0;r0&&Uc(o)}}function XI(t,e){const n=wt(e,t),r=n[1];(function(t,e){for(let n=e.length;nPromise.resolve(null))();function Vm(t){return t[7]||(t[7]=[])}function Lm(t){return t.cleanup||(t.cleanup=[])}function Hm(t,e){const n=t[9],r=n?n.get(Ir,null):null;r&&r.handleError(e)}function Bm(t,e,n,r,o){for(let i=0;ithis.processProvider(a,e,n)),pn([e],a=>this.processInjectorType(a,[],i)),this.records.set(Co,bo(void 0,this));const s=this.records.get(Li);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:$(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=Si,r=x.Default){this.assertNotDestroyed();const o=co(this),i=zn(void 0);try{if(!(r&x.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function(t){return"function"==typeof t||"object"==typeof t&&t instanceof G}(e)&&Rn(e);a=l&&this.injectableDefInScope(l)?bo(Qc(e),ji):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&x.Self?$m():this.parent).get(e,n=r&x.Optional&&n===Si?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[uo]=s[uo]||[]).unshift($(e)),o)throw s;return dg(s,e,"R3InjectorError",this.source)}throw s}finally{zn(i),co(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,o)=>e.push($(o))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,n,r){if(!(e=A(e)))return!1;let o=vp(e);const i=null==o&&e.ngModule||void 0,s=void 0===i?e:i,a=-1!==r.indexOf(s);if(void 0!==i&&(o=vp(i)),null==o)return!1;if(null!=o.imports&&!a){let c;r.push(s);try{pn(o.imports,d=>{this.processInjectorType(d,n,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;dthis.processProvider(p,f,h||re))}}this.injectorDefTypes.add(s);const l=br(s)||(()=>new s);this.records.set(s,bo(l,ji));const u=o.providers;if(null!=u&&!a){const c=e;pn(u,d=>this.processProvider(d,c,u))}return void 0!==i&&void 0!==e.providers}processProvider(e,n,r){let o=Eo(e=A(e))?e:A(e&&e.provide);const i=function(t,e,n){return qm(t)?bo(void 0,t.useValue):bo(Wm(t),ji)}(e);if(Eo(e)||!0!==e.multi)this.records.get(o);else{let s=this.records.get(o);s||(s=bo(void 0,ji,!0),s.factory=()=>Dr(s.multi),this.records.set(o,s)),o=e,s.multi.push(e)}this.records.set(o,i)}hydrate(e,n){return n.value===ji&&(n.value=aM,n.value=n.factory()),"object"==typeof n.value&&n.value&&function(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=A(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Qc(t){const e=Rn(t),n=null!==e?e.factory:br(t);if(null!==n)return n;if(t instanceof G)throw new Error(`Token ${$(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const r=function(t,e){const n=[];for(let r=0;rn.factory(t):()=>new t}(t);throw new Error("unreachable")}function Wm(t,e,n){let r;if(Eo(t)){const o=A(t);return br(o)||Qc(o)}if(qm(t))r=()=>A(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...Dr(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>b(A(t.useExisting));else{const o=A(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return br(o)||Qc(o);r=()=>new o(...Dr(t.deps))}return r}function bo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function qm(t){return null!==t&&"object"==typeof t&&ic in t}function Eo(t){return"function"==typeof t}const zm=function(t,e,n){return function(t,e=null,n=null,r){const o=Gm(t,e,n,r);return o._resolveInjectorDefTypes(),o}({name:n},e,t,n)};class Y{static create(e,n){return Array.isArray(e)?zm(e,n,""):zm(e.providers,e.parent,e.name||"")}}function xM(t,e){aa(pc(t)[1],Re())}function ce(t){let e=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const r=[t];for(;e;){let o;if(zt(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");o=e.\u0275dir}if(o){if(n){r.push(o);const s=t;s.inputs=ed(t.inputs),s.declaredInputs=ed(t.declaredInputs),s.outputs=ed(t.outputs);const a=o.hostBindings;a&&PM(t,a);const l=o.viewQuery,u=o.contentQueries;if(l&&NM(t,l),u&&OM(t,u),Su(t.inputs,o.inputs),Su(t.declaredInputs,o.declaredInputs),Su(t.outputs,o.outputs),zt(o)&&o.data.animation){const c=t.data;c.animation=(c.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s=0;r--){const o=t[r];o.hostVars=e+=o.hostVars,o.hostAttrs=da(o.hostAttrs,n=da(n,o.hostAttrs))}}(r)}function ed(t){return t===Qr?{}:t===re?[]:t}function NM(t,e){const n=t.viewQuery;t.viewQuery=n?(r,o)=>{e(r,o),n(r,o)}:e}function OM(t,e){const n=t.contentQueries;t.contentQueries=n?(r,o,i)=>{e(r,o,i),n(r,o,i)}:e}function PM(t,e){const n=t.hostBindings;t.hostBindings=n?(r,o)=>{e(r,o),n(r,o)}:e}Y.THROW_IF_NOT_FOUND=Si,Y.NULL=new Um,Y.\u0275prov=N({token:Y,providedIn:"any",factory:()=>b(Co)}),Y.__NG_ELEMENT_ID__=-1;let ka=null;function wo(){if(!ka){const t=te.Symbol;if(t&&t.iterator)ka=t.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;na(we(T[r.index])):r.index;if(_e(n)){let T=null;if(!a&&l&&(T=function(t,e,n,r){const o=t.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(t,e,o,r.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=i,T.__ngLastListenerFn__=i,h=!1;else{i=ud(r,e,d,i,!1);const W=n.listen(_,o,i);f.push(i,W),c&&c.push(o,w,y,y+1)}}else i=ud(r,e,d,i,!0),_.addEventListener(o,i,s),f.push(i),c&&c.push(o,w,y,s)}else i=ud(r,e,d,i,!1);const p=r.outputs;let m;if(h&&null!==p&&(m=p[o])){const g=m.length;if(g)for(let _=0;_0;)e=e[15],t--;return e}(t,F.lFrame.contextLView))[8]}(t)}function cd(t,e,n){return Ba(t,"",e,"",n),cd}function Ba(t,e,n,r,o){const i=v(),s=So(i,e,n,r);return s!==V&&Mt(Z(),ve(),i,t,s,i[B],o,!1),Ba}function $y(t,e,n,r,o){const i=t[n+1],s=null===e;let a=r?Jt(i):Pn(i),l=!1;for(;0!==a&&(!1===l||s);){const c=t[a+1];bT(t[a],e)&&(l=!0,t[a+1]=r?xc(c):Tc(c)),a=r?Jt(c):Pn(c)}l&&(t[n+1]=r?Tc(i):xc(i))}function bT(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&lo(t,e)>=0}function Ua(t,e){return function(t,e,n,r){const o=v(),i=Z(),s=On(2);i.firstUpdatePass&&function(t,e,n,r){const o=t.data;if(null===o[n+1]){const i=o[lt()],s=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(i,r)&&null===e&&!s&&(e=!1),e=function(t,e,n,r){const o=function(t){const e=F.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=r?e.residualClasses:e.residualStyles;if(null===o)0===(r?e.classBindings:e.styleBindings)&&(n=Gi(n=dd(null,t,e,n,r),e.attrs,r),i=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==o)if(n=dd(o,t,e,n,r),null===i){let l=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Pn(r))return t[Jt(r)]}(t,e,r);void 0!==l&&Array.isArray(l)&&(l=dd(null,t,e,l[1],r),l=Gi(l,e.attrs,r),function(t,e,n,r){t[Jt(n?e.classBindings:e.styleBindings)]=r}(t,e,r,l))}else i=function(t,e,n){let r;const o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0)&&(u=!0)}else c=n;if(o)if(0!==l){const f=Jt(t[a+1]);t[r+1]=xa(f,a),0!==f&&(t[f+1]=Ac(t[f+1],r)),t[a+1]=function(t,e){return 131071&t|e<<17}(t[a+1],r)}else t[r+1]=xa(a,0),0!==a&&(t[a+1]=Ac(t[a+1],r)),a=r;else t[r+1]=xa(l,0),0===a?a=r:t[l+1]=Ac(t[l+1],r),l=r;u&&(t[r+1]=Tc(t[r+1])),$y(t,c,r,!0),$y(t,c,r,!1),function(t,e,n,r,o){const i=o?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&lo(i,e)>=0&&(n[r+1]=xc(n[r+1]))}(e,c,t,r,i),s=xa(a,l),i?e.classBindings=s:e.styleBindings=s}(o,i,e,n,s,r)}}(i,t,s,r),e!==V&&Ze(o,s,e)&&function(t,e,n,r,o,i,s,a){if(!(3&e.type))return;const l=t.data,u=l[a+1];$a(function(t){return 1==(1&t)}(u)?t_(l,e,n,o,Pn(u),s):void 0)||($a(i)||function(t){return 2==(2&t)}(u)&&(i=t_(l,null,n,o,a,s)),function(t,e,n,r,o){const i=_e(t);if(e)o?i?t.addClass(n,r):n.classList.add(r):i?t.removeClass(n,r):n.classList.remove(r);else{let s=-1===r.indexOf("-")?void 0:It.DashCase;if(null==o)i?t.removeStyle(n,r,s):n.style.removeProperty(r);else{const a="string"==typeof o&&o.endsWith("!important");a&&(o=o.slice(0,-10),s|=It.Important),i?t.setStyle(n,r,o,s):n.style.setProperty(r,o,a?"important":"")}}}(r,s,ea(lt(),n),o,i))}(i,i.data[lt()],o,o[B],t,o[s+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=$(St(t)))),t}(e,n),r,s)}(t,e,null,!0),Ua}function dd(t,e,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=t[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===V&&(f=d?re:void 0);let h=d?tc(f,r):c===r?f:void 0;if(u&&!$a(h)&&(h=tc(l,r)),$a(h)&&(a=h,s))return a;const p=t[o+1];o=s?Jt(p):Pn(p)}if(null!==e){let l=i?e.residualClasses:e.residualStyles;null!=l&&(a=tc(l,r))}return a}function $a(t){return void 0!==t}function Fe(t,e=""){const n=v(),r=Z(),o=t+20,i=r.firstCreatePass?yo(r,o,1,e,null):r.data[o],s=n[o]=function(t,e){return _e(t)?t.createText(e):t.createTextNode(e)}(n[B],e);Ta(r,n,s,i),fn(i,!1)}function Ar(t){return xr("",t,""),Ar}function xr(t,e,n){const r=v(),o=So(r,t,e,n);return o!==V&&kn(r,lt(),o),xr}function fd(t,e,n,r,o){const i=v(),s=Io(i,t,e,n,r,o);return s!==V&&kn(i,lt(),s),fd}function hd(t,e,n){const r=v();return Ze(r,to(),e)&&Mt(Z(),ve(),r,t,e,r[B],n,!0),hd}const Rr=void 0;var nA=["en",[["a","p"],["AM","PM"],Rr],[["AM","PM"],Rr,Rr],[["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"]],Rr,[["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"]],Rr,[["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}",Rr,"{1} 'at' {0}",Rr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Fo={};function b_(t){return t in Fo||(Fo[t]=te.ng&&te.ng.common&&te.ng.common.locales&&te.ng.common.locales[t]),Fo[t]}var D=(()=>((D=D||{})[D.LocaleId=0]="LocaleId",D[D.DayPeriodsFormat=1]="DayPeriodsFormat",D[D.DayPeriodsStandalone=2]="DayPeriodsStandalone",D[D.DaysFormat=3]="DaysFormat",D[D.DaysStandalone=4]="DaysStandalone",D[D.MonthsFormat=5]="MonthsFormat",D[D.MonthsStandalone=6]="MonthsStandalone",D[D.Eras=7]="Eras",D[D.FirstDayOfWeek=8]="FirstDayOfWeek",D[D.WeekendRange=9]="WeekendRange",D[D.DateFormat=10]="DateFormat",D[D.TimeFormat=11]="TimeFormat",D[D.DateTimeFormat=12]="DateTimeFormat",D[D.NumberSymbols=13]="NumberSymbols",D[D.NumberFormats=14]="NumberFormats",D[D.CurrencyCode=15]="CurrencyCode",D[D.CurrencySymbol=16]="CurrencySymbol",D[D.CurrencyName=17]="CurrencyName",D[D.Currencies=18]="Currencies",D[D.Directionality=19]="Directionality",D[D.PluralCase=20]="PluralCase",D[D.ExtraData=21]="ExtraData",D))();const Ga="en-US";let E_=Ga;function pd(t){Ct(t,"Expected localeId to be defined"),"string"==typeof t&&(E_=t.toLowerCase().replace(/_/g,"-"))}function yd(t,e,n,r,o){if(t=A(t),Array.isArray(t))for(let i=0;i>20;if(Eo(t)||!t.multi){const h=new yi(l,o,C),p=vd(a,e,o?c:c+f,d);-1===p?(pa(vi(u,s),i,a),_d(i,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=vd(a,e,c+f,d),p=vd(a,e,c,c+f),m=h>=0&&n[h],g=p>=0&&n[p];if(o&&!g||!o&&!m){pa(vi(u,s),i,a);const _=function(t,e,n,r,o){const i=new yi(t,n,C);return i.multi=[],i.index=e,i.componentProviders=0,q_(i,o,r&&!n),i}(o?XA:ZA,n.length,o,r,l);!o&&g&&(n[p].providerFactory=_),_d(i,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(_),s.push(_)}else _d(i,t,h>-1?h:p,q_(n[o?p:h],l,!o&&r));!o&&r&&g&&n[p].componentProviders++}}}function _d(t,e,n,r){const o=Eo(e);if(o||function(t){return!!t.useClass}(e)){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const a=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){const l=a.indexOf(n);-1===l?a.push(n,[r,s]):a[l+1].push(r,s)}else a.push(n,s)}}}function q_(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function vd(t,e,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function(t,e,n){const r=Z();if(r.firstCreatePass){const o=zt(t);yd(n,r.data,r.blueprint,o,!0),yd(e,r.data,r.blueprint,o,!1)}}(r,o?o(t):t,e)}}class z_{}const J_="ngComponent";class nx{resolveComponentFactory(e){throw function(t){const e=Error(`No component factory found for ${$(t)}. Did you add it to @NgModule.entryComponents?`);return e[J_]=t,e}(e)}}class rr{}function Ja(...t){}function Vo(t,e){return new Be(Ot(t,e))}rr.NULL=new nx;const ix=function(){return Vo(Re(),v())};let Be=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=ix,t})();class Ka{}let Ln=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ax(),t})();const ax=function(){const t=v(),n=wt(Re().index,t);return function(t){return t[B]}(dn(n)?n:t)};let Ed=(()=>{class t{}return t.\u0275prov=N({token:t,providedIn:"root",factory:()=>null}),t})();class Ji{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Y_=new Ji("12.2.5");class Z_{constructor(){}supports(e){return Bi(e)}create(e){return new dx(e)}}const cx=(t,e)=>e;class dx{constructor(e){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=e||cx}forEachItem(e){let n;for(n=this._itHead;null!==n;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,o){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new fx(n,r),i,o),e}_verifyReinsertion(e,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;null!==e;){const n=e._next;this._addToRemovals(this._unlink(e)),e=n}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(e,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const o=e._prevRemoved,i=e._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){const o=null===n?this._itHead:n._next;return e._next=o,e._prev=n,null===o?this._itTail=e:o._prev=e,null===n?this._itHead=e:n._next=e,null===this._linkedRecords&&(this._linkedRecords=new X_),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const n=e._prev,r=e._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new X_),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class fx{constructor(e,n){this.item=e,this.trackById=n,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 hx{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const n=e._prevDup,r=e._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class X_{constructor(){this.map=new Map}put(e){const n=e.trackById;let r=this.map.get(n);r||(r=new hx,this.map.set(n,r)),r.add(e)}get(e,n){const o=this.map.get(e);return o?o.get(e,n):null}remove(e){const n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ev(t,e,n){const r=t.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,n){if(e){const r=e._prev;return n._next=e,n._prev=r,e._prev=n,r&&(r._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){const o=this._records.get(e);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new gx(e);return this._records.set(e,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(r=>n(e[r],r))}}class gx{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function nv(){return new Ki([new Z_])}let Ki=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||nv()),deps:[[t,new er,new yt]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(t){return t.name||typeof t}(n)}'`)}}return t.\u0275prov=N({token:t,providedIn:"root",factory:nv}),t})();function rv(){return new Lo([new tv])}let Lo=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||rv()),deps:[[t,new er,new yt]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return t.\u0275prov=N({token:t,providedIn:"root",factory:rv}),t})();function Ya(t,e,n,r,o=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&r.push(we(i)),qt(i))for(let a=10;a-1&&(Ec(e,r),wr(n,r))}this._attachedToViewContainer=!1}zg(this._lView[1],this._lView)}onDestroy(e){!function(t,e,n,r){const o=Vm(e);null===n?o.push(r):(o.push(n),t.firstCreatePass&&Lm(t).push(r,o.length-1))}(this._lView[1],this._lView,null,e)}markForCheck(){$c(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Wc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){ra(!0);try{Wc(t,e,n)}finally{ra(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function(t,e){Fi(t,e,e[B],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class yx extends Yi{constructor(e){super(e),this._view=e}detectChanges(){km(this._view)}checkNoChanges(){!function(t){ra(!0);try{km(t)}finally{ra(!1)}}(this._view)}get context(){return null}}const vx=function(t){return function(t,e,n){if(Zs(t)&&!n){const r=wt(t.index,e);return new Yi(r,r)}return 47&t.type?new Yi(e[16],e):null}(Re(),v(),16==(16&t))};let wd=(()=>{class t{}return t.__NG_ELEMENT_ID__=vx,t})();const Ex=[new tv],Dx=new Ki([new Z_]),Sx=new Lo(Ex),Mx=function(){return function(t,e){return 4&t.type?new Ax(e,t,Vo(t,e)):null}(Re(),v())};let jn=(()=>{class t{}return t.__NG_ELEMENT_ID__=Mx,t})();const Tx=jn,Ax=class extends Tx{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(e){const n=this._declarationTContainer.tViews,r=ki(this._declarationLView,n,e,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(r[19]=i.createEmbeddedView(n)),Vi(n,r,e),new Yi(r)}};class wn{}class ov{}const Nx=function(){return function(t,e){let n;const r=e[t.index];if(qt(r))n=r;else{let o;if(8&t.type)o=we(r);else{const i=e[B];o=i.createComment("");const s=Ot(t,e);Mr(i,Ma(i,s),o,function(t,e){return _e(t)?t.nextSibling(e):e.nextSibling}(i,s),!1)}e[t.index]=n=Fm(r,e,o,t),Pa(e,n)}return new iv(n,t,e)}(Re(),v())};let tn=(()=>{class t{}return t.__NG_ELEMENT_ID__=Nx,t})();const Px=tn,iv=class extends Px{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Vo(this._hostTNode,this._hostLView)}get injector(){return new oo(this._hostTNode,this._hostLView)}get parentInjector(){const e=ha(this._hostTNode,this._hostLView);if(Yp(e)){const n=ro(e,this._hostLView),r=no(e);return new oo(n[1].data[r+8],n)}return new oo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=sv(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,r){const o=e.createEmbeddedView(n||{});return this.insert(o,r),o}createComponent(e,n,r,o,i){const s=r||this.parentInjector;if(!i&&null==e.ngModule&&s){const l=s.get(wn,null);l&&(i=l)}const a=e.create(s,o,void 0,i);return this.insert(a.hostView,n),a}insert(e,n){const r=e._lView,o=r[1];if(function(t){return qt(t[3])}(r)){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const d=r[3],f=new iv(d,d[6],d[3]);f.detach(f.indexOf(e))}}const i=this._adjustIndex(n),s=this._lContainer;!function(t,e,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=e),rjg});class Av extends z_{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function(t){return t.map(CI).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Tv(this.componentDef.inputs)}get outputs(){return Tv(this.componentDef.outputs)}create(e,n,r,o){const i=(o=o||this.ngModule)?function(t,e){return{get:(n,r,o)=>{const i=t.get(n,Uo,o);return i!==Uo||r===Uo?i:e.get(n,r,o)}}}(e,o.injector):e,s=i.get(Ka,Pp),a=i.get(Ed,null),l=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",c=r?function(t,e,n){if(_e(t))return t.selectRootElement(e,n===xe.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(l,r,this.componentDef.encapsulation):bc(s.createRenderer(null,this.componentDef),u,function(t){const e=t.toLowerCase();return"svg"===e?Np:"math"===e?"http://www.w3.org/1998/MathML/":null}(u)),d=this.componentDef.onPush?576:528,f=function(t,e){return{components:[],scheduler:t||jg,clean:oM,playerHandler:e||null,flags:0}}(),h=Oa(0,null,null,1,0,null,null,null,null,null),p=ki(null,h,f,d,null,null,s,l,a,i);let m,g;oa(p);try{const _=function(t,e,n,r,o,i){const s=n[1];n[20]=t;const l=yo(s,20,2,"#host",null),u=l.mergedAttrs=e.hostAttrs;null!==u&&(Fa(l,u,!0),null!==t&&(ca(o,t,u),null!==l.classes&&Mc(o,t,l.classes),null!==l.styles&&im(o,t,l.styles)));const c=r.createRenderer(t,e),d=ki(n,Dm(e),null,e.onPush?64:16,n[20],l,r,c,i||null,null);return s.firstCreatePass&&(pa(vi(l,n),s,e.type),Nm(s,l),Om(l,n.length,1)),Pa(n,d),n[20]=d}(c,this.componentDef,p,s,l);if(c)if(r)ca(l,c,["ng-version",Y_.full]);else{const{attrs:y,classes:w}=function(t){const e=[],n=[];let r=1,o=2;for(;r0&&Mc(l,c,w.join(" "))}if(g=ju(h,20),void 0!==n){const y=g.projection=[];for(let w=0;wl(s,e)),e.contentQueries){const l=Re();e.contentQueries(1,s,l.directiveStart)}const a=Re();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Yn(a.index),xm(n[1],a,0,a.directiveStart,a.directiveEnd,e),Rm(e,s)),s}(_,this.componentDef,p,f,[xM]),Vi(h,p,null)}finally{ia()}return new OR(this.componentType,m,Vo(g,p),p,g)}}class OR extends class{}{constructor(e,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new yx(o),this.componentType=e}get injector(){return new oo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const $o=new Map;class kR extends wn{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Mv(this);const r=xt(e),o=function(t){return t[LD]||null}(e);o&&pd(o),this._bootstrapComponents=yn(r.bootstrap),this._r3Injector=Gm(e,n,[{provide:wn,useValue:this},{provide:rr,useValue:this.componentFactoryResolver}],$(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=Y.THROW_IF_NOT_FOUND,r=x.Default){return e===Y||e===wn||e===Co?this:this._r3Injector.get(e,n,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Vd extends ov{constructor(e){super(),this.moduleType=e,null!==xt(e)&&function(t){const e=new Set;!function n(r){const o=xt(r,!0),i=o.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${$(e)} vs ${$(e.name)}`)}(i,$o.get(i),r),$o.set(i,r));const s=yn(o.imports);for(const a of s)e.has(a)||(e.add(a),n(a))}(t)}(e)}create(e){return new kR(this.moduleType,e)}}function rl(t,e,n){const r=function(){const t=F.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}()+t,o=v();return o[r]===V?function(t,e,n){return t[e]=n}(o,r,n?e.call(n):e()):function(t,e){return t[e]}(o,r)}function Ld(t){return e=>{setTimeout(t,void 0,e)}}const ke=class extends An{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){var o,i,s;let a=e,l=n||(()=>null),u=r;if(e&&"object"==typeof e){const d=e;a=null===(o=d.next)||void 0===o?void 0:o.bind(d),l=null===(i=d.error)||void 0===i?void 0:i.bind(d),u=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=Ld(l),a&&(a=Ld(a)),u&&(u=Ld(u)));const c=super.subscribe({next:a,error:l,complete:u});return e instanceof ye&&e.add(c),c}};Symbol;const us=new G("Application Initializer");let Wo=(()=>{class t{constructor(n){this.appInits=n,this.resolve=Ja,this.reject=Ja,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:l})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(b(us,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const cs=new G("AppId"),V1={provide:cs,useFactory:function(){return`${Zd()}${Zd()}${Zd()}`},deps:[]};function Zd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const iC=new G("Platform Initializer"),al=new G("Platform ID"),sC=new G("appBootstrapListener");let ll=(()=>{class t{log(n){console.log(n)}warn(n){console.warn(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const ir=new G("LocaleId"),aC=new G("DefaultCurrencyCode");class j1{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}}const Xd=function(t){return new Vd(t)},H1=Xd,B1=function(t){return Promise.resolve(Xd(t))},lC=function(t){const e=Xd(t),r=yn(xt(t).declarations).reduce((o,i)=>{const s=st(i);return s&&o.push(new Av(s)),o},[]);return new j1(e,r)},U1=lC,$1=function(t){return Promise.resolve(lC(t))};let Pr=(()=>{class t{constructor(){this.compileModuleSync=H1,this.compileModuleAsync=B1,this.compileModuleAndAllComponentsSync=U1,this.compileModuleAndAllComponentsAsync=$1}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const q1=(()=>Promise.resolve(0))();function ef(t){"undefined"==typeof Zone?q1.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class De{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ke(!1),this.onMicrotaskEmpty=new ke(!1),this.onStable=new ke(!1),this.onError=new ke(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function(){let t=te.requestAnimationFrame,e=te.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(te,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,nf(t),t.isCheckStableRunning=!0,tf(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),nf(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return uC(t),n.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&e(),cC(t)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return uC(t),n.invoke(o,i,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),cC(t)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,nf(t),tf(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!De.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(De.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,Q1,Ja,Ja);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const Q1={};function tf(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 nf(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function uC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function cC(t){t._nesting--,tf(t)}class Y1{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ke,this.onMicrotaskEmpty=new ke,this.onStable=new ke,this.onError=new ke}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}}let rf=(()=>{class t{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.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:()=>{De.assertNotInAngularZone(),ef(()=>{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())ef(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return t.\u0275fac=function(n){return new(n||t)(b(De))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),dC=(()=>{class t{constructor(){this._applications=new Map,of.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return of.findTestabilityInTree(this,n,r)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();class Z1{addToWindow(e){}findTestabilityInTree(e,n,r){return null}}let of=new Z1,fC=!0,hC=!1;let on;const gC=new G("AllowMultipleToken");class sf{constructor(e,n){this.name=e,this.token=n}}function mC(t,e,n=[]){const r=`Platform: ${e}`,o=new G(r);return(i=[])=>{let s=yC();if(!s||s.injector.get(gC,!1))if(t)t(n.concat(i).concat({provide:o,useValue:!0}));else{const a=n.concat(i).concat({provide:o,useValue:!0},{provide:Li,useValue:"platform"});!function(t){if(on&&!on.destroyed&&!on.injector.get(gC,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");on=t.get(_C);const e=t.get(iC,null);e&&e.forEach(n=>n())}(Y.create({providers:a,name:r}))}return function(t){const e=yC();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function yC(){return on&&!on.destroyed?on:null}let _C=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function(t,e){let n;return n="noop"===t?new Y1:("zone.js"===t?void 0:t)||new De({enableLongStackTrace:(hC=!0,fC),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),l=[{provide:De,useValue:a}];return a.run(()=>{const u=Y.create({providers:l,parent:this.injector,name:n.moduleType.name}),c=n.create(u),d=c.injector.get(Ir,null);if(!d)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});c.onDestroy(()=>{af(this._modules,c),f.unsubscribe()})}),function(t,e,n){try{const r=n();return $i(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(d,a,()=>{const f=c.injector.get(Wo);return f.runInitializers(),f.donePromise.then(()=>(pd(c.injector.get(ir,Ga)||Ga),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,r=[]){const o=vC({},r);return function(t,e,n){const r=new Vd(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(qo);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${$(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(b(Y))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();function vC(t,e){return Array.isArray(e)?e.reduce(vC,t):Object.assign(Object.assign({},t),e)}let qo=(()=>{class t{constructor(n,r,o,i,s){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=i,this._initStatus=s,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 a=new le(u=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{u.next(this._stable),u.complete()})}),l=new le(u=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{De.assertNotInAngularZone(),ef(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,u.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{De.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{u.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return Gs(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof le?t[0]:di(e)(wu(t,n))}(a,l.pipe(t=>Du()(function(t,e){return function(r){let o;o="function"==typeof t?t:function(){return t};const i=Object.create(r,_D);return i.source=r,i.subjectFactory=o,i}}(wD)(t))))}bootstrap(n,r){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 o;o=n instanceof z_?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const i=function(t){return t.isBoundToModule}(o)?void 0:this._injector.get(wn),a=o.create(Y.NULL,[],r||o.selector,i),l=a.location.nativeElement,u=a.injector.get(rf,null),c=u&&a.injector.get(dC);return u&&c&&c.registerApplication(l,u),a.onDestroy(()=>{this.detachView(a.hostView),af(this.components,a),c&&c.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;af(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(sC,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(n){return new(n||t)(b(De),b(Y),b(Ir),b(rr),b(Wo))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();function af(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class cl{}class hN{}const pN={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let gN=(()=>{class t{constructor(n,r){this._compiler=n,this._config=r||pN}load(n){return this.loadAndCompile(n)}loadAndCompile(n){let[r,o]=n.split("#");return void 0===o&&(o="default"),ui(255)(r).then(i=>i[o]).then(i=>wC(i,r,o)).then(i=>this._compiler.compileModuleAsync(i))}loadFactory(n){let[r,o]=n.split("#"),i="NgFactory";return void 0===o&&(o="default",i=""),ui(255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(s=>s[o+i]).then(s=>wC(s,r,o))}}return t.\u0275fac=function(n){return new(n||t)(b(Pr),b(hN,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();function wC(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const SN=mC(null,"core",[{provide:al,useValue:"unknown"},{provide:_C,deps:[Y]},{provide:dC,deps:[]},{provide:ll,deps:[]}]),xN=[{provide:qo,useClass:qo,deps:[De,Y,Ir,rr,Wo]},{provide:xR,deps:[De],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(n){e.push(n)}}},{provide:Wo,useClass:Wo,deps:[[new yt,us]]},{provide:Pr,useClass:Pr,deps:[]},V1,{provide:Ki,useFactory:function(){return Dx},deps:[]},{provide:Lo,useFactory:function(){return Sx},deps:[]},{provide:ir,useFactory:function(t){return pd(t=t||"undefined"!=typeof $localize&&$localize.locale||Ga),t},deps:[[new fo(ir),new yt,new er]]},{provide:aC,useValue:"USD"}];let NN=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(b(qo))},t.\u0275mod=bt({type:t}),t.\u0275inj=it({providers:xN}),t})(),Cl=null;function Dn(){return Cl}const Se=new G("DocumentToken");let Vr=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({factory:RO,token:t,providedIn:"platform"}),t})();function RO(){return b(zC)}const NO=new G("Location Initialized");let zC=(()=>{class t extends Vr{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Dn().getBaseHref(this._doc)}onPopState(n){const r=Dn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Dn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this.location.pathname=n}pushState(n,r,o){QC()?this._history.pushState(n,r,o):this.location.hash=o}replaceState(n,r,o){QC()?this._history.replaceState(n,r,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return t.\u0275fac=function(n){return new(n||t)(b(Se))},t.\u0275prov=N({factory:OO,token:t,providedIn:"platform"}),t})();function QC(){return!!window.history.pushState}function OO(){return new zC(b(Se))}function Ef(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 JC(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 Bn(t){return t&&"?"!==t[0]?"?"+t:t}let Jo=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({factory:PO,token:t,providedIn:"root"}),t})();function PO(t){const e=b(Se).location;return new KC(b(Vr),e&&e.origin||"")}const wf=new G("appBaseHref");let KC=(()=>{class t extends Jo{constructor(n,r){if(super(),this._platformLocation=n,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)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=r}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Ef(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Bn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Bn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Bn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformLocation).historyGo)||void 0===o||o.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(b(Vr),b(wf,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),FO=(()=>{class t extends Jo{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Ef(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Bn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Bn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformLocation).historyGo)||void 0===o||o.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(b(Vr),b(wf,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),bl=(()=>{class t{constructor(n,r){this._subject=new ke,this._urlChangeListeners=[],this._platformStrategy=n;const o=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=JC(YC(o)),this._platformStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}path(n=!1){return this.normalize(this._platformStrategy.path(n))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Bn(r))}normalize(n){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,YC(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._platformStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Bn(r)),o)}replaceState(n,r="",o=null){this._platformStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Bn(r)),o)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformStrategy).historyGo)||void 0===o||o.call(r,n)}onUrlChange(n){this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return t.\u0275fac=function(n){return new(n||t)(b(Jo),b(Vr))},t.normalizeQueryParams=Bn,t.joinWithSlash=Ef,t.stripTrailingSlash=JC,t.\u0275prov=N({factory:kO,token:t,providedIn:"root"}),t})();function kO(){return new bl(b(Jo),b(Vr))}function YC(t){return t.replace(/\/index.html$/,"")}var Ie=(()=>((Ie=Ie||{})[Ie.Zero=0]="Zero",Ie[Ie.One=1]="One",Ie[Ie.Two=2]="Two",Ie[Ie.Few=3]="Few",Ie[Ie.Many=4]="Many",Ie[Ie.Other=5]="Other",Ie))();const GO=function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=b_(e);if(n)return n;const r=e.split("-")[0];if(n=b_(r),n)return n;if("en"===r)return nA;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[D.PluralCase]};class Rl{}let vP=(()=>{class t extends Rl{constructor(n){super(),this.locale=n}getPluralCategory(n,r){switch(GO(r||this.locale)(n)){case Ie.Zero:return"zero";case Ie.One:return"one";case Ie.Two:return"two";case Ie.Few:return"few";case Ie.Many:return"many";default:return"other"}}}return t.\u0275fac=function(n){return new(n||t)(b(ir))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();function sb(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}class EP{constructor(e,n,r,o){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=o}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 Nf=(()=>{class t{constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(n){n&&(this._template=n)}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(r){throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(t){return t.name||typeof t}(n)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=[];n.forEachOperation((o,i,s)=>{if(null==o.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new EP(null,this._ngForOf,-1,-1),null===s?void 0:s),l=new ab(o,a);r.push(l)}else if(null==s)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const a=this._viewContainer.get(i);this._viewContainer.move(a,s);const l=new ab(o,a);r.push(l)}});for(let o=0;o{this._viewContainer.get(o.currentIndex).context.$implicit=o.item})}_perViewChange(n,r){n.context.$implicit=r.item}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(C(tn),C(jn),C(Ki))},t.\u0275dir=O({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ab{constructor(e,n){this.record=e,this.view=n}}let Of=(()=>{class t{constructor(n,r){this._viewContainer=n,this._context=new DP,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){lb("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){lb("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(C(tn),C(jn))},t.\u0275dir=O({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class DP{constructor(){this.$implicit=null,this.ngIf=null}}function lb(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${$(e)}'.`)}let KP=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=it({providers:[{provide:Rl,useClass:vP}]}),t})();let fb=(()=>{class t{}return t.\u0275prov=N({token:t,providedIn:"root",factory:()=>new eF(b(Se),window)}),t})();class eF{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const n=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,e);n&&(this.scrollToElement(n),this.attemptFocus(n))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=e)}}scrollToElement(e){const n=e.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=hb(this.window.history)||hb(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function hb(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class pb{}class Lf extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(t){Cl||(Cl=t)}(new Lf)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=(ys=ys||document.querySelector("base"),ys?ys.getAttribute("href"):null);return null==n?null:function(t){Nl=Nl||document.createElement("a"),Nl.setAttribute("href",t);const e=Nl.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){ys=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return sb(document.cookie,e)}}let Nl,ys=null;const gb=new G("TRANSITION_ID"),sF=[{provide:us,useFactory:function(t,e,n){return()=>{n.get(Wo).donePromise.then(()=>{const r=Dn(),o=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let i=0;i{const i=e.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},te.getAllAngularTestabilities=()=>e.getAllTestabilities(),te.getAllAngularRootElements=()=>e.getAllRootElements(),te.frameworkStabilizers||(te.frameworkStabilizers=[]),te.frameworkStabilizers.push(r=>{const o=te.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,n,r){if(null==n)return null;const o=e.getTestability(n);return null!=o?o:r?Dn().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let aF=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const _s=new G("EventManagerPlugins");let Pl=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),vs=(()=>{class t extends yb{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(i=>{const s=this._doc.createElement("style");s.textContent=i,o.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(_b),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(_b))}}return t.\u0275fac=function(n){return new(n||t)(b(Se))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();function _b(t){Dn().remove(t)}const Bf={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/"},Uf=/%COMP%/g;function Fl(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let $f=(()=>{class t{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Gf(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case xe.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new EF(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case xe.ShadowDom:return new wF(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=Fl(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(b(Pl),b(vs),b(cs))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();class Gf{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,n){return n?document.createElementNS(Bf[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,r){e&&e.insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,o){if(o){n=o+":"+n;const i=Bf[o];i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const o=Bf[r];o?e.removeAttributeNS(o,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,o){o&(It.DashCase|It.Important)?e.style.setProperty(n,r,o&It.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&It.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,bb(r)):this.eventManager.addEventListener(e,n,bb(r))}}class EF extends Gf{constructor(e,n,r,o){super(e),this.component=r;const i=Fl(o+"-"+r.id,r.styles,[]);n.addStyles(i),this.contentAttr=function(t){return"_ngcontent-%COMP%".replace(Uf,t)}(o+"-"+r.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(Uf,t)}(o+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}class wF extends Gf{constructor(e,n,r,o){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Fl(o.id,o.styles,[]);for(let s=0;s{class t extends Hf{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return t.\u0275fac=function(n){return new(n||t)(b(Se))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const Db=["alt","control","meta","shift"],RF={"\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"},Sb={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"},NF={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let OF=(()=>{class t extends Hf{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,o){const i=t.parseEventName(r),s=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Dn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=t._normalizeKey(r.pop());let s="";if(Db.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const a={};return a.domEventName=o,a.fullKey=s,a}static getEventFullKey(n){let r="",o=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&&Sb.hasOwnProperty(e)&&(e=Sb[e]))}return RF[e]||e}(n);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Db.forEach(i=>{i!=o&&NF[i](n)&&(r+=i+".")}),r+=o,r}static eventCallback(n,r,o){return i=>{t.getEventFullKey(i)===n&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){switch(n){case"esc":return"escape";default:return n}}}return t.\u0275fac=function(n){return new(n||t)(b(Se))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const BF=mC(SN,"browser",[{provide:al,useValue:"browser"},{provide:iC,useValue:function(){Lf.makeCurrent(),jf.init()},multi:!0},{provide:Se,useFactory:function(){return function(t){Vu=t}(document),document},deps:[]}]),UF=[[],{provide:Li,useValue:"root"},{provide:Ir,useFactory:function(){return new Ir},deps:[]},{provide:_s,useClass:DF,multi:!0,deps:[Se,De,al]},{provide:_s,useClass:OF,multi:!0,deps:[Se]},[],{provide:$f,useClass:$f,deps:[Pl,vs,cs]},{provide:Ka,useExisting:$f},{provide:yb,useExisting:vs},{provide:vs,useClass:vs,deps:[Se]},{provide:rf,useClass:rf,deps:[De]},{provide:Pl,useClass:Pl,deps:[_s,De]},{provide:pb,useClass:aF,deps:[]},[]];let $F=(()=>{class t{constructor(n){if(n)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(n){return{ngModule:t,providers:[{provide:cs,useValue:n.appId},{provide:gb,useExisting:cs},sF]}}}return t.\u0275fac=function(n){return new(n||t)(b(t,12))},t.\u0275mod=bt({type:t}),t.\u0275inj=it({providers:UF,imports:[KP,NN]}),t})();function WF(){return new Qf(b(Se))}let Qf=(()=>{class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return t.\u0275fac=function(n){return new(n||t)(b(Se))},t.\u0275prov=N({factory:WF,token:t,providedIn:"root"}),t})();function kl(t,e){return new le(n=>{const r=t.length;if(0===r)return void n.complete();const o=new Array(r);let i=0,s=0;for(let a=0;a{u||(u=!0,s++),o[a]=c},error:c=>n.error(c),complete:()=>{i++,(i===r||!u)&&(s===r&&n.next(e?e.reduce((c,d,f)=>(c[d]=o[f],c),{}):o),n.complete())}}))}})}"undefined"!=typeof window&&window;let Mb=(()=>{class t{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return t.\u0275fac=function(n){return new(n||t)(C(Ln),C(Be))},t.\u0275dir=O({type:t}),t})(),Lr=(()=>{class t extends Mb{}return t.\u0275fac=function(){let e;return function(r){return(e||(e=Pt(t)))(r||t)}}(),t.\u0275dir=O({type:t,features:[ce]}),t})();const Sn=new G("NgValueAccessor"),ZF={provide:Sn,useExisting:ie(()=>Kf),multi:!0};let Kf=(()=>{class t extends Lr{writeValue(n){this.setProperty("checked",n)}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=Pt(t)))(r||t)}}(),t.\u0275dir=O({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&Oe("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[he([ZF]),ce]}),t})();const XF={provide:Sn,useExisting:ie(()=>Vl),multi:!0},tk=new G("CompositionEventMode");let Vl=(()=>{class t extends Mb{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Dn()?Dn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(n){this.setProperty("value",null==n?"":n)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return t.\u0275fac=function(n){return new(n||t)(C(Ln),C(Be),C(tk,8))},t.\u0275dir=O({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(n,r){1&n&&Oe("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[he([XF]),ce]}),t})();const tt=new G("NgValidators"),ur=new G("NgAsyncValidators");function Vb(t){return null!=t}function Lb(t){const e=$i(t)?Ge(t):t;return Ha(e),e}function jb(t){let e={};return t.forEach(n=>{e=null!=n?Object.assign(Object.assign({},e),n):e}),0===Object.keys(e).length?null:e}function Hb(t,e){return e.map(n=>n(t))}function Bb(t){return t.map(e=>function(t){return!t.validate}(e)?e:n=>e.validate(n))}function Yf(t){return null!=t?function(t){if(!t)return null;const e=t.filter(Vb);return 0==e.length?null:function(n){return jb(Hb(n,e))}}(Bb(t)):null}function Zf(t){return null!=t?function(t){if(!t)return null;const e=t.filter(Vb);return 0==e.length?null:function(n){return function(...t){if(1===t.length){const e=t[0];if(Hs(e))return kl(e,null);if(yu(e)&&Object.getPrototypeOf(e)===Object.prototype){const n=Object.keys(e);return kl(n.map(r=>e[r]),n)}}if("function"==typeof t[t.length-1]){const e=t.pop();return kl(t=1===t.length&&Hs(t[0])?t[0]:t,null).pipe(X(n=>e(...n)))}return kl(t,null)}(Hb(n,e).map(Lb)).pipe(X(jb))}}(Bb(t)):null}function Gb(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Xf(t){return t?Array.isArray(t)?t:[t]:[]}function Ll(t,e){return Array.isArray(t)?t.includes(e):t===e}function zb(t,e){const n=Xf(e);return Xf(t).forEach(o=>{Ll(n,o)||n.push(o)}),n}function Qb(t,e){return Xf(e).filter(n=>!Ll(t,n))}let Jb=(()=>{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(n){this._rawValidators=n||[],this._composedValidatorFn=Yf(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Zf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,r){return!!this.control&&this.control.hasError(n,r)}getError(n,r){return this.control?this.control.getError(n,r):null}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=O({type:t}),t})(),ht=(()=>{class t extends Jb{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=Pt(t)))(r||t)}}(),t.\u0275dir=O({type:t,features:[ce]}),t})();class dr extends Jb{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Kb{constructor(e){this._cd=e}is(e){var n,r,o;return"submitted"===e?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(o=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===o?void 0:o[e])}}let Yb=(()=>{class t extends Kb{constructor(n){super(n)}}return t.\u0275fac=function(n){return new(n||t)(C(dr,2))},t.\u0275dir=O({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Ua("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[ce]}),t})(),eh=(()=>{class t extends Kb{constructor(n){super(n)}}return t.\u0275fac=function(n){return new(n||t)(C(ht,10))},t.\u0275dir=O({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&Ua("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))("ng-submitted",r.is("submitted"))},features:[ce]}),t})();function Cs(t,e){rh(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Zb(t,e)})}(t,e),function(t,e){const n=(r,o)=>{e.valueAccessor.writeValue(r),o&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Zb(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function Ul(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function rh(t,e){const n=function(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(Gb(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=function(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(Gb(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const o=()=>t.updateValueAndValidity();Ul(e._rawValidators,o),Ul(e._rawAsyncValidators,o)}function Zb(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Gl(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const bs="VALID",Wl="INVALID",Ko="PENDING",Es="DISABLED";function sh(t){return(lh(t)?t.validators:t)||null}function tE(t){return Array.isArray(t)?Yf(t):t||null}function ah(t,e){return(lh(e)?e.asyncValidators:t)||null}function nE(t){return Array.isArray(t)?Zf(t):t||null}function lh(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class uh{constructor(e,n){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=tE(this._rawValidators),this._composedAsyncValidatorFn=nE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===bs}get invalid(){return this.status===Wl}get pending(){return this.status==Ko}get disabled(){return this.status===Es}get enabled(){return this.status!==Es}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=tE(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=nE(e)}addValidators(e){this.setValidators(zb(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(zb(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Qb(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Qb(e,this._rawAsyncValidators))}hasValidator(e){return Ll(this._rawValidators,e)}hasAsyncValidator(e){return Ll(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Ko,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=Es,this.errors=null,this._forEachChild(r=>{r.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=bs,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===bs||this.status===Ko)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Es:bs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Ko,this._hasOwnPendingAsyncValidator=!0;const n=Lb(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(!1!==n.emitEvent)}get(e){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let r=t;return e.forEach(o=>{r=r instanceof ch?r.controls.hasOwnProperty(o)?r.controls[o]:null:r instanceof gk&&r.at(o)||null}),r}(this,e)}getError(e,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new ke,this.statusChanges=new ke}_calculateStatus(){return this._allControlsDisabled()?Es:this.errors?Wl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ko)?Ko:this._anyControlsHaveStatus(Wl)?Wl:bs}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){lh(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ql extends uh{constructor(e=null,n,r){super(sh(n),ah(r,n)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=null,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Gl(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Gl(this._onDisabledChange,e)}_forEachChild(e){}_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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class ch extends uh{constructor(e,n,r){super(sh(n),ah(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,r={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(r=>{this._throwIfControlMissing(r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(Object.keys(e).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((r,o)=>{r.reset(e[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,r)=>(e[r]=n instanceof ql?n.value:n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){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[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&e(r,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const n of Object.keys(this.controls)){const r=this.controls[n];if(this.contains(n)&&e(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(e,n){let r=e;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((n,r)=>{if(void 0===e[r])throw new Error(`Must supply a value for form control with name: '${r}'.`)})}}class gk extends uh{constructor(e,n,r){super(sh(n),ah(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,r={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),n&&(this.controls.splice(e,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){this._checkAllValuesPresent(e),e.forEach((r,o)=>{this._throwIfControlMissing(o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(e.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((r,o)=>{r.reset(e[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>e instanceof ql?e.value:e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((n,r)=>!!r._syncPendingControls()||n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){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(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((n,r)=>{e(n,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((n,r)=>{if(void 0===e[r])throw new Error(`Must supply a value for form control at index: ${r}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const mk={provide:ht,useExisting:ie(()=>Ds)},ws=(()=>Promise.resolve(null))();let Ds=(()=>{class t extends ht{constructor(n,r){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new ke,this.form=new ch({},Yf(n),Zf(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){ws.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Cs(n.control,n),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){ws.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),Gl(this._directives,n)})}addFormGroup(n){ws.then(()=>{const r=this._findContainer(n.path),o=new ch({});(function(t,e){rh(t,e)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){ws.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){ws.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function(t,e){t._syncPendingControls(),e.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),!1}onReset(){this.resetForm()}resetForm(n){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return t.\u0275fac=function(n){return new(n||t)(C(tt,10),C(ur,10))},t.\u0275dir=O({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&Oe("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[he([mk]),ce]}),t})();const _k={provide:dr,useExisting:ie(()=>dh)},iE=(()=>Promise.resolve(null))();let dh=(()=>{class t extends dr{constructor(n,r,o,i){super(),this.control=new ql,this._registered=!1,this.update=new ke,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function(t,e){if(!e)return null;let n,r,o;return Array.isArray(e),e.forEach(i=>{i.constructor===Vl?n=i:function(t){return Object.getPrototypeOf(t.constructor)===Lr}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in n&&this._updateDisabled(n),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function(t,e){return[...e.path,t]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_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(){Cs(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(n){iE.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1})})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=""===r||r&&"false"!==r;iE.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(n){return new(n||t)(C(ht,9),C(tt,10),C(ur,10),C(Sn,10))},t.\u0275dir=O({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:[he([_k]),ce,Ke]}),t})(),fh=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=O({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),aE=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=it({}),t})(),DE=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=it({imports:[[aE]]}),t})(),Uk=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=it({imports:[DE]}),t})();function H(...t){let e=t[t.length-1];return Gs(e)?(t.pop(),vu(t,e)):wu(t)}class cn extends An{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const n=super._subscribe(e);return n&&!n.closed&&e.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new zr;return this._value}next(e){super.next(this._value=e)}}class $k extends pe{notifyNext(e,n,r,o,i){this.destination.next(n)}notifyError(e,n){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class Gk extends pe{constructor(e,n,r){super(),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Wk(t,e,n,r,o=new Gk(t,n,r)){if(!o.closed)return e instanceof le?e.subscribe(o):_u(e)(o)}const SE={};class zk{constructor(e){this.resultSelector=e}call(e,n){return n.subscribe(new Qk(e,this.resultSelector))}}class Qk extends $k{constructor(e,n){super(e),this.resultSelector=n,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(SE),this.observables.push(e)}_complete(){const e=this.observables,n=e.length;if(0===n)this.destination.complete();else{this.active=n,this.toRespond=n;for(let r=0;r{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Ch(...t){return di(1)(H(...t))}const Yo=new le(t=>t.complete());function bh(t){return t?function(t){return new le(e=>t.schedule(()=>e.complete()))}(t):Yo}function IE(t){return new le(e=>{let n;try{n=t()}catch(o){return void e.error(o)}return(n?Ge(n):bh()).subscribe(e)})}function fr(t,e){return"function"==typeof e?n=>n.pipe(fr((r,o)=>Ge(t(r,o)).pipe(X((i,s)=>e(r,i,o,s))))):n=>n.lift(new Yk(t))}class Yk{constructor(e){this.project=e}call(e,n){return n.subscribe(new Zk(e,this.project))}}class Zk extends bu{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(o){return void this.destination.error(o)}this._innerSub(n)}_innerSub(e){const n=this.innerSubscription;n&&n.unsubscribe();const r=new Cu(this),o=this.destination;o.add(r),this.innerSubscription=Eu(e,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const ME=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Eh(t){return e=>0===t?bh():e.lift(new Xk(t))}class Xk{constructor(e){if(this.total=e,this.total<0)throw new ME}call(e,n){return n.subscribe(new eV(e,this.total))}}class eV extends pe{constructor(e,n){super(e),this.total=n,this.count=0}_next(e){const n=this.total,r=++this.count;r<=n&&(this.destination.next(e),r===n&&(this.destination.complete(),this.unsubscribe()))}}function TE(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(o){return o.lift(new nV(t,e,n))}}class nV{constructor(e,n,r=!1){this.accumulator=e,this.seed=n,this.hasSeed=r}call(e,n){return n.subscribe(new rV(e,this.accumulator,this.seed,this.hasSeed))}}class rV extends pe{constructor(e,n,r,o){super(e),this.accumulator=n,this._seed=r,this.hasSeed=o,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const n=this.index++;let r;try{r=this.accumulator(this.seed,e,n)}catch(o){this.destination.error(o)}this.seed=r,this.destination.next(r)}}function jr(t,e){return function(r){return r.lift(new oV(t,e))}}class oV{constructor(e,n){this.predicate=e,this.thisArg=n}call(e,n){return n.subscribe(new iV(e,this.predicate,this.thisArg))}}class iV extends pe{constructor(e,n,r){super(e),this.predicate=n,this.thisArg=r,this.count=0}_next(e){let n;try{n=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}n&&this.destination.next(e)}}function Hr(t){return function(n){const r=new sV(t),o=n.lift(r);return r.caught=o}}class sV{constructor(e){this.selector=e}call(e,n){return n.subscribe(new aV(e,this.selector,this.caught))}}class aV extends bu{constructor(e,n,r){super(e),this.selector=n,this.caught=r}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(i){return void super.error(i)}this._unsubscribeAndRecycle();const r=new Cu(this);this.add(r);const o=Eu(n,r);o!==r&&this.add(o)}}}function Zo(t,e){return We(t,e,1)}function wh(t){return function(n){return 0===t?bh():n.lift(new lV(t))}}class lV{constructor(e){if(this.total=e,this.total<0)throw new ME}call(e,n){return n.subscribe(new uV(e,this.total))}}class uV extends pe{constructor(e,n){super(e),this.total=n,this.ring=new Array,this.count=0}_next(e){const n=this.ring,r=this.total,o=this.count++;n.length0){const r=this.count>=this.total?this.total:this.count,o=this.ring;for(let i=0;ie.lift(new cV(t))}class cV{constructor(e){this.errorFactory=e}call(e,n){return n.subscribe(new dV(e,this.errorFactory))}}class dV extends pe{constructor(e,n){super(e),this.errorFactory=n,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(n){e=n}this.destination.error(e)}}}function fV(){return new zl}function xE(t=null){return e=>e.lift(new hV(t))}class hV{constructor(e){this.defaultValue=e}call(e,n){return n.subscribe(new pV(e,this.defaultValue))}}class pV extends pe{constructor(e,n){super(e),this.defaultValue=n,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Xo(t,e){const n=arguments.length>=2;return r=>r.pipe(t?jr((o,i)=>t(o,i,r)):$s,Eh(1),n?xE(e):AE(()=>new zl))}function hr(){}function Tt(t,e,n){return function(o){return o.lift(new mV(t,e,n))}}class mV{constructor(e,n,r){this.nextOrObserver=e,this.error=n,this.complete=r}call(e,n){return n.subscribe(new yV(e,this.nextOrObserver,this.error,this.complete))}}class yV extends pe{constructor(e,n,r,o){super(e),this._tapNext=hr,this._tapError=hr,this._tapComplete=hr,this._tapError=r||hr,this._tapComplete=o||hr,Tn(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||hr,this._tapError=n.error||hr,this._tapComplete=n.complete||hr)}_next(e){try{this._tapNext.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}class vV{constructor(e){this.callback=e}call(e,n){return n.subscribe(new CV(e,this.callback))}}class CV extends pe{constructor(e,n){super(e),this.add(new ye(n))}}class $n{constructor(e,n){this.id=e,this.url=n}}class Dh extends $n{constructor(e,n,r="imperative",o=null){super(e,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ss extends $n{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class RE extends $n{constructor(e,n,r){super(e,n),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bV extends $n{constructor(e,n,r){super(e,n),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class EV extends $n{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wV extends $n{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class DV extends $n{constructor(e,n,r,o,i){super(e,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class SV extends $n{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class IV extends $n{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NE{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class OE{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class MV{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class TV{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class AV{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xV{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class PE{constructor(e,n,r){this.routerEvent=e,this.position=n,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const z="primary";class RV{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function ei(t){return new RV(t)}const FE="ngNavigationCancelingError";function Sh(t){const e=Error("NavigationCancelingError: "+t);return e[FE]=!0,e}function OV(t,e,n){const r=n.path.split("/");if(r.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||r.lengthr[i]===o)}return t===e}function VE(t){return Array.prototype.concat.apply([],t)}function LE(t){return t.length>0?t[t.length-1]:null}function ze(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Mn(t){return Ha(t)?t:$i(t)?Ge(Promise.resolve(t)):H(t)}const kV={exact:function BE(t,e,n){if(!Ur(t.segments,e.segments)||!Ql(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!t.children[r]||!BE(t.children[r],e.children[r],n))return!1;return!0},subset:UE},jE={exact:function(t,e){return In(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>kE(t[n],e[n]))},ignored:()=>!0};function HE(t,e,n){return kV[n.paths](t.root,e.root,n.matrixParams)&&jE[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function UE(t,e,n){return $E(t,e,e.segments,n)}function $E(t,e,n,r){if(t.segments.length>n.length){const o=t.segments.slice(0,n.length);return!(!Ur(o,n)||e.hasChildren()||!Ql(o,n,r))}if(t.segments.length===n.length){if(!Ur(t.segments,n)||!Ql(t.segments,n,r))return!1;for(const o in e.children)if(!t.children[o]||!UE(t.children[o],e.children[o],r))return!1;return!0}{const o=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!!(Ur(t.segments,o)&&Ql(t.segments,o,r)&&t.children[z])&&$E(t.children[z],e,i,r)}}function Ql(t,e,n){return e.every((r,o)=>jE[n](t[o].parameters,r.parameters))}class Br{constructor(e,n,r){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ei(this.queryParams)),this._queryParamMap}toString(){return BV.serialize(this)}}class J{constructor(e,n){this.segments=e,this.children=n,this.parent=null,ze(n,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Jl(this)}}class Is{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=ei(this.parameters)),this._parameterMap}toString(){return zE(this)}}function Ur(t,e){return t.length===e.length&&t.every((n,r)=>n.path===e[r].path)}class Ih{}class GE{parse(e){const n=new KV(e);return new Br(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){return`${`/${Ms(e.root,!0)}`}${function(t){const e=Object.keys(t).map(n=>{const r=t[n];return Array.isArray(r)?r.map(o=>`${Kl(n)}=${Kl(o)}`).join("&"):`${Kl(n)}=${Kl(r)}`}).filter(n=>!!n);return e.length?`?${e.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${function(t){return encodeURI(t)}(e.fragment)}`:""}`}}const BV=new GE;function Jl(t){return t.segments.map(e=>zE(e)).join("/")}function Ms(t,e){if(!t.hasChildren())return Jl(t);if(e){const n=t.children[z]?Ms(t.children[z],!1):"",r=[];return ze(t.children,(o,i)=>{i!==z&&r.push(`${i}:${Ms(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function(t,e){let n=[];return ze(t.children,(r,o)=>{o===z&&(n=n.concat(e(r,o)))}),ze(t.children,(r,o)=>{o!==z&&(n=n.concat(e(r,o)))}),n}(t,(r,o)=>o===z?[Ms(t.children[z],!1)]:[`${o}:${Ms(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[z]?`${Jl(t)}/${n[0]}`:`${Jl(t)}/(${n.join("//")})`}}function WE(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Kl(t){return WE(t).replace(/%3B/gi,";")}function Mh(t){return WE(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Yl(t){return decodeURIComponent(t)}function qE(t){return Yl(t.replace(/\+/g,"%20"))}function zE(t){return`${Mh(t.path)}${function(t){return Object.keys(t).map(e=>`;${Mh(e)}=${Mh(t[e])}`).join("")}(t.parameters)}`}const WV=/^[^\/()?;=#]+/;function Zl(t){const e=t.match(WV);return e?e[0]:""}const qV=/^[^=?&#]+/,QV=/^[^?&#]+/;class KV{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new J([],{}):new J([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(r[z]=new J(e,n)),r}parseSegment(){const e=Zl(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Is(Yl(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const n=Zl(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Zl(this.remaining);o&&(r=o,this.capture(r))}e[Yl(n)]=Yl(r)}parseQueryParam(e){const n=function(t){const e=t.match(qV);return e?e[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function(t){const e=t.match(QV);return e?e[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=qE(n),i=qE(r);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Zl(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error(`Cannot parse url '${this.url}'`);let i;r.indexOf(":")>-1?(i=r.substr(0,r.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=z);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[z]:new J([],s),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class QE{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){const n=Th(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){const n=Th(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){const n=Ah(e,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Ah(e,this._root).map(n=>n.value)}}function Th(t,e){if(t===e.value)return e;for(const n of e.children){const r=Th(t,n);if(r)return r}return null}function Ah(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Ah(t,n);if(r.length)return r.unshift(e),r}return[]}class Gn{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}}function Ts(t){const e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}class JE extends QE{constructor(e,n){super(e),this.snapshot=n,xh(this,e)}toString(){return this.snapshot.toString()}}function KE(t,e){const n=function(t,e){const s=new Xl([],{},{},"",{},z,e,null,t.root,-1,{});return new ZE("",new Gn(s,[]))}(t,e),r=new cn([new Is("",{})]),o=new cn({}),i=new cn({}),s=new cn({}),a=new cn(""),l=new $r(r,o,s,a,i,z,e,n.root);return l.snapshot=n.root,new JE(new Gn(l,[]),n)}class $r{constructor(e,n,r,o,i,s,a,l){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this._futureSnapshot=l}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(X(e=>ei(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(X(e=>ei(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function YE(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function(t){return t.reduce((e,n)=>({params:Object.assign(Object.assign({},e.params),n.params),data:Object.assign(Object.assign({},e.data),n.data),resolve:Object.assign(Object.assign({},e.resolve),n._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Xl{constructor(e,n,r,o,i,s,a,l,u,c,d){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}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=ei(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ei(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ZE extends QE{constructor(e,n){super(n),this.url=e,xh(this,n)}toString(){return XE(this._root)}}function xh(t,e){e.value._routerState=t,e.children.forEach(n=>xh(t,n))}function XE(t){const e=t.children.length>0?` { ${t.children.map(XE).join(", ")} } `:"";return`${t.value}${e}`}function Rh(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,In(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),In(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nIn(n.parameters,e[r].parameters))}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||Nh(t.parent,e.parent))}function eu(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const o=function(t,e,n){return e.children.map(r=>{for(const o of n.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return eu(t,r,o);return eu(t,r)})}(t,e,n);return new Gn(r,o)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const s=i.route;return ew(e,s),s}}const r=function(t){return new $r(new cn(t.url),new cn(t.params),new cn(t.queryParams),new cn(t.fragment),new cn(t.data),t.outlet,t.component,t)}(e.value),o=e.children.map(i=>eu(t,i));return new Gn(r,o)}}function ew(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{i[a]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),new Br(n.root===t?e:tw(n.root,t,e),i,o)}function tw(t,e,n){const r={};return ze(t.children,(o,i)=>{r[i]=o===e?n:tw(o,e,n)}),new J(t.segments,r)}class nw{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&tu(r[0]))throw new Error("Root segment cannot have matrix parameters");const o=r.find(As);if(o&&o!==LE(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ph{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}}function rw(t,e,n){if(t||(t=new J([],{})),0===t.segments.length&&t.hasChildren())return nu(t,e,n);const r=function(t,e,n){let r=0,o=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=t.segments[o],a=n[r];if(As(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!iw(l,u,s))return i;r+=2}else{if(!iw(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=rw(t.children[s],e,i))}),ze(t.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new J(t.segments,o)}}function Fh(t,e,n){const r=t.segments.slice(0,e);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(e[r]=Fh(new J([],{}),0,n))}),e}function ow(t){const e={};return ze(t,(n,r)=>e[r]=`${n}`),e}function iw(t,e,n){return t==n.path&&In(e,n.parameters)}class cL{constructor(e,n,r,o){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=o}activate(e){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),Rh(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){const o=Ts(n);e.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),ze(o,(i,s)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(e,n,r){const o=e.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(e,n,s.children)}else this.deactivateChildRoutes(e,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(e,n){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){const r=n.getContext(e.value.outlet);if(r&&r.outlet){const o=r.outlet.detach(),i=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:i})}}deactivateRouteAndOutlet(e,n){const r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=Ts(e);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(e,n,r){const o=Ts(n);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new xV(i.value.snapshot))}),e.children.length&&this.forwardEvent(new TV(e.value.snapshot))}activateRoutes(e,n,r){const o=e.value,i=n?n.value:null;if(Rh(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),sw(a.route)}else{const a=function(t){for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(o.snapshot),l=a?a.module.componentFactoryResolver:null;s.attachRef=null,s.route=o,s.resolver=l,s.outlet&&s.outlet.activateWith(o,l),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,r)}}function sw(t){Rh(t.value),t.children.forEach(sw)}class kh{constructor(e,n){this.routes=e,this.module=n}}function pr(t){return"function"==typeof t}function Gr(t){return t instanceof Br}const xs=Symbol("INITIAL_VALUE");function Rs(){return fr(t=>function(...t){let e,n;return Gs(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Hs(t[0])&&(t=t[0]),wu(t,n).lift(new zk(e))}(t.map(e=>e.pipe(Eh(1),function(...t){const e=t[t.length-1];return Gs(e)?(t.pop(),n=>Ch(t,n,e)):n=>Ch(t,n)}(xs)))).pipe(TE((e,n)=>{let r=!1;return n.reduce((o,i,s)=>o!==xs?o:(i===xs&&(r=!0),r||!1!==i&&s!==n.length-1&&!Gr(i)?o:i),e)},xs),jr(e=>e!==xs),X(e=>Gr(e)?e:!0===e),Eh(1)))}let aw=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Jr({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,r){1&n&&Zt(0,"router-outlet")},directives:function(){return[Uh]},encapsulation:2}),t})();function lw(t,e=""){for(let n=0;nUt(r)===e);return n.push(...t.filter(r=>Ut(r)!==e)),n}const cw={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function ru(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},cw):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(e.matcher||OV)(n,t,e);if(!i)return Object.assign({},cw);const s={};ze(i.posParams,(l,u)=>{s[u]=l.path});const a=i.consumed.length>0?Object.assign(Object.assign({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function ou(t,e,n,r,o="corrected"){if(n.length>0&&function(t,e,n){return n.some(r=>iu(t,e,r)&&Ut(r)!==z)}(t,n,r)){const s=new J(e,function(t,e,n,r){const o={};o[z]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&Ut(i)!==z){const s=new J([],{});s._sourceSegment=t,s._segmentIndexShift=e.length,o[Ut(i)]=s}return o}(t,e,r,new J(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(r=>iu(t,e,r))}(t,n,r)){const s=new J(t.segments,function(t,e,n,r,o,i){const s={};for(const a of r)if(iu(t,n,a)&&!o[Ut(a)]){const l=new J([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===i?t.segments.length:e.length,s[Ut(a)]=l}return Object.assign(Object.assign({},o),s)}(t,e,n,r,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const i=new J(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function iu(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function dw(t,e,n,r){return!!(Ut(t)===r||r!==z&&iu(e,n,t))&&("**"===t.path||ru(e,t,n).matched)}function fw(t,e,n){return 0===e.length&&!t.children[n]}class Ns{constructor(e){this.segmentGroup=e||null}}class hw{constructor(e){this.urlTree=e}}function su(t){return new le(e=>e.error(new Ns(t)))}function pw(t){return new le(e=>e.error(new hw(t)))}function wL(t){return new le(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class IL{constructor(e,n,r,o,i){this.configLoader=n,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(wn)}apply(){const e=ou(this.urlTree.root,[],[],this.config).segmentGroup,n=new J(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,z).pipe(X(i=>this.createUrlTree(Lh(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Hr(i=>{if(i instanceof hw)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof Ns?this.noMatchError(i):i}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,z).pipe(X(o=>this.createUrlTree(Lh(o),e.queryParams,e.fragment))).pipe(Hr(o=>{throw o instanceof Ns?this.noMatchError(o):o}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,n,r){const o=e.segments.length>0?new J([],{[z]:e}):e;return new Br(o,n,r)}expandSegmentGroup(e,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,n,r).pipe(X(i=>new J([],i))):this.expandSegment(e,r,n,r.segments,o,!0)}expandChildren(e,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return Ge(o).pipe(Zo(i=>{const s=r.children[i],a=uw(n,i);return this.expandSegmentGroup(e,a,s,i).pipe(X(l=>({segment:l,outlet:i})))}),TE((i,s)=>(i[s.outlet]=s.segment,i),{}),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?jr((o,i)=>t(o,i,r)):$s,wh(1),n?xE(e):AE(()=>new zl))}())}expandSegment(e,n,r,o,i,s){return Ge(r).pipe(Zo(a=>this.expandSegmentAgainstRoute(e,n,r,a,o,i,s).pipe(Hr(u=>{if(u instanceof Ns)return H(null);throw u}))),Xo(a=>!!a),Hr((a,l)=>{if(a instanceof zl||"EmptyError"===a.name){if(fw(n,o,i))return H(new J([],{}));throw new Ns(n)}throw a}))}expandSegmentAgainstRoute(e,n,r,o,i,s,a){return dw(o,n,i,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(e,n,o,i,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s):su(n):su(n)}expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?pw(i):this.lineralizeSegments(r,i).pipe(We(s=>{const a=new J(s,{});return this.expandSegment(e,a,n,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s){const{matched:a,consumedSegments:l,lastChild:u,positionalParamSegments:c}=ru(n,o,i);if(!a)return su(n);const d=this.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?pw(d):this.lineralizeSegments(o,d).pipe(We(f=>this.expandSegment(e,n,r,f.concat(i.slice(u)),s,!1)))}matchSegmentAgainstRoute(e,n,r,o,i){if("**"===r.path)return r.loadChildren?(r._loadedConfig?H(r._loadedConfig):this.configLoader.load(e.injector,r)).pipe(X(f=>(r._loadedConfig=f,new J(o,{})))):H(new J(o,{}));const{matched:s,consumedSegments:a,lastChild:l}=ru(n,r,o);if(!s)return su(n);const u=o.slice(l);return this.getChildConfig(e,r,o).pipe(We(d=>{const f=d.module,h=d.routes,{segmentGroup:p,slicedSegments:m}=ou(n,a,u,h),g=new J(p.segments,p.children);if(0===m.length&&g.hasChildren())return this.expandChildren(f,h,g).pipe(X(T=>new J(a,T)));if(0===h.length&&0===m.length)return H(new J(a,{}));const _=Ut(r)===i;return this.expandSegment(f,g,h,m,_?z:i,!0).pipe(X(w=>new J(a.concat(w.segments),w.children)))}))}getChildConfig(e,n,r){return n.children?H(new kh(n.children,e)):n.loadChildren?void 0!==n._loadedConfig?H(n._loadedConfig):this.runCanLoadGuards(e.injector,n,r).pipe(We(o=>o?this.configLoader.load(e.injector,n).pipe(X(i=>(n._loadedConfig=i,i))):function(t){return new le(e=>e.error(Sh(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(n))):H(new kh([],e))}runCanLoadGuards(e,n,r){const o=n.canLoad;return o&&0!==o.length?H(o.map(s=>{const a=e.get(s);let l;if(function(t){return t&&pr(t.canLoad)}(a))l=a.canLoad(n,r);else{if(!pr(a))throw new Error("Invalid CanLoad guard");l=a(n,r)}return Mn(l)})).pipe(Rs(),Tt(s=>{if(!Gr(s))return;const a=Sh(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw a.url=s,a}),X(s=>!0===s)):H(!0)}lineralizeSegments(e,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return H(r);if(o.numberOfChildren>1||!o.children[z])return wL(e.redirectTo);o=o.children[z]}}applyRedirectCommands(e,n,r){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),e,r)}applyRedirectCreatreUrlTree(e,n,r,o){const i=this.createSegmentGroup(e,n.root,r,o);return new Br(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){const r={};return ze(e,(o,i)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(e,n,r,o){const i=this.createSegments(e,n.segments,r,o);let s={};return ze(n.children,(a,l)=>{s[l]=this.createSegmentGroup(e,a,r,o)}),new J(i,s)}createSegments(e,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(e,i,o):this.findOrReturn(i,r))}findPosParam(e,n,r){const o=r[n.path.substring(1)];if(!o)throw new Error(`Cannot redirect to '${e}'. Cannot find '${n.path}'.`);return o}findOrReturn(e,n){let r=0;for(const o of n){if(o.path===e.path)return n.splice(r),o;r++}return e}}function Lh(t){const e={};for(const r of Object.keys(t.children)){const i=Lh(t.children[r]);(i.segments.length>0||i.hasChildren())&&(e[r]=i)}return function(t){if(1===t.numberOfChildren&&t.children[z]){const e=t.children[z];return new J(t.segments.concat(e.segments),e.children)}return t}(new J(t.segments,e))}class gw{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class au{constructor(e,n){this.component=e,this.route=n}}function AL(t,e,n){const r=t._root;return Os(r,e?e._root:null,n,[r.value])}function lu(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Os(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Ts(e);return t.children.forEach(s=>{(function(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Ur(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ur(t.url,e.url)||!In(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Nh(t,e)||!In(t.queryParams,e.queryParams);case"paramsChange":default:return!Nh(t,e)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new gw(r)):(i.data=s.data,i._resolvedData=s._resolvedData),Os(t,e,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new au(a.outlet.component,s))}else s&&Ps(e,a,o),o.canActivateChecks.push(new gw(r)),Os(t,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),ze(i,(s,a)=>Ps(s,n.getContext(a),o)),o}function Ps(t,e,n){const r=Ts(t),o=t.value;ze(r,(i,s)=>{Ps(i,o.component?e?e.children.getContext(s):null:e,n)}),n.canDeactivateChecks.push(new au(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}class UL{}function mw(t){return new le(e=>e.error(t))}class GL{constructor(e,n,r,o,i,s){this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){const e=ou(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,e,z);if(null===n)return null;const r=new Xl([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},z,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Gn(r,n),i=new ZE(this.url,o);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(e){const n=e.value,r=YE(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(e,n):this.processSegment(e,n,n.segments,r)}processChildren(e,n){const r=[];for(const i of Object.keys(n.children)){const s=n.children[i],a=uw(e,i),l=this.processSegmentGroup(a,s,i);if(null===l)return null;r.push(...l)}const o=yw(r);return function(t){t.sort((e,n)=>e.value.outlet===z?-1:n.value.outlet===z?1:e.value.outlet.localeCompare(n.value.outlet))}(o),o}processSegment(e,n,r,o){for(const i of e){const s=this.processSegmentAgainstRoute(i,n,r,o);if(null!==s)return s}return fw(n,r,o)?[]:null}processSegmentAgainstRoute(e,n,r,o){if(e.redirectTo||!dw(e,n,r,o))return null;let i,s=[],a=[];if("**"===e.path){const h=r.length>0?LE(r).parameters:{};i=new Xl(r,h,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Cw(e),Ut(e),e.component,e,_w(n),vw(n)+r.length,bw(e))}else{const h=ru(n,e,r);if(!h.matched)return null;s=h.consumedSegments,a=r.slice(h.lastChild),i=new Xl(s,h.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Cw(e),Ut(e),e.component,e,_w(n),vw(n)+s.length,bw(e))}const l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(e),{segmentGroup:u,slicedSegments:c}=ou(n,s,a,l.filter(h=>void 0===h.redirectTo),this.relativeLinkResolution);if(0===c.length&&u.hasChildren()){const h=this.processChildren(l,u);return null===h?null:[new Gn(i,h)]}if(0===l.length&&0===c.length)return[new Gn(i,[])];const d=Ut(e)===o,f=this.processSegment(l,u,c,d?z:o);return null===f?null:[new Gn(i,f)]}}function zL(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function yw(t){const e=[],n=new Set;for(const r of t){if(!zL(r)){e.push(r);continue}const o=e.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):e.push(r)}for(const r of n){const o=yw(r.children);e.push(new Gn(r.value,o))}return e.filter(r=>!n.has(r))}function _w(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function vw(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 Cw(t){return t.data||{}}function bw(t){return t.resolve||{}}function jh(t){return fr(e=>{const n=t(e);return n?Ge(n).pipe(X(()=>e)):H(e)})}class t2 extends class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}}{}const Hh=new G("ROUTES");class Ew{constructor(e,n,r,o){this.loader=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=o}load(e,n){if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);const o=this.loadModuleFactory(n.loadChildren).pipe(X(i=>{this.onLoadEndListener&&this.onLoadEndListener(n);const s=i.create(e);return new kh(VE(s.injector.get(Hh,void 0,x.Self|x.Optional)).map(Vh),s)}),Hr(i=>{throw n._loader$=void 0,i}));return n._loader$=new mp(o,()=>new An).pipe(Du()),n._loader$}loadModuleFactory(e){return"string"==typeof e?Ge(this.loader.load(e)):Mn(e()).pipe(We(n=>n instanceof ov?H(n):Ge(this.compiler.compileModuleAsync(n))))}}class n2{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ti,this.attachRef=null}}class ti{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new n2,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}}class o2{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}}function i2(t){throw t}function s2(t,e,n){return e.parse("/")}function ww(t,e){return H(null)}const a2={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},l2={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let pt=(()=>{class t{constructor(n,r,o,i,s,a,l,u){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=o,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new An,this.errorHandler=i2,this.malformedUriErrorHandler=s2,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ww,afterPreactivation:ww},this.urlHandlingStrategy=new o2,this.routeReuseStrategy=new t2,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(wn),this.console=s.get(ll);const f=s.get(De);this.isNgZoneEnabled=f instanceof De&&De.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new Br(new J([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ew(a,l,h=>this.triggerEvent(new NE(h)),h=>this.triggerEvent(new OE(h))),this.routerState=KE(this.currentUrlTree,this.rootComponentType),this.transitions=new cn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(jr(o=>0!==o.id),X(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),fr(o=>{let i=!1,s=!1;return H(o).pipe(Tt(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),fr(a=>{const l=!this.navigated||a.extractedUrl.toString()!==this.browserUrlTree.toString(),u=("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl);if(uu(a.source)&&(this.browserUrlTree=a.rawUrl),u)return H(a).pipe(fr(c=>{const d=this.transitions.getValue();return r.next(new Dh(c.id,this.serializeUrl(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions.getValue()?Yo:Promise.resolve(c)}),function(t,e,n,r){return fr(o=>function(t,e,n,r,o){return new IL(t,e,n,r,o).apply()}(t,e,n,o.extractedUrl,r).pipe(X(i=>Object.assign(Object.assign({},o),{urlAfterRedirects:i}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Tt(c=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:c.urlAfterRedirects})}),function(t,e,n,r,o){return We(i=>function(t,e,n,r,o="emptyOnly",i="legacy"){try{const s=new GL(t,e,n,r,o,i).recognize();return null===s?mw(new UL):H(s)}catch(s){return mw(s)}}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,o).pipe(X(s=>Object.assign(Object.assign({},i),{targetSnapshot:s}))))}(this.rootComponentType,this.config,c=>this.serializeUrl(c),this.paramsInheritanceStrategy,this.relativeLinkResolution),Tt(c=>{"eager"===this.urlUpdateStrategy&&(c.extras.skipLocationChange||this.setBrowserUrl(c.urlAfterRedirects,c),this.browserUrlTree=c.urlAfterRedirects);const d=new EV(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);r.next(d)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:d,extractedUrl:f,source:h,restoredState:p,extras:m}=a,g=new Dh(d,this.serializeUrl(f),h,p);r.next(g);const _=KE(f,this.rootComponentType).snapshot;return H(Object.assign(Object.assign({},a),{targetSnapshot:_,urlAfterRedirects:f,extras:Object.assign(Object.assign({},m),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,this.browserUrlTree=a.urlAfterRedirects,a.resolve(null),Yo}),jh(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.beforePreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),Tt(a=>{const l=new wV(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),X(a=>Object.assign(Object.assign({},a),{guards:AL(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(t,e){return We(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?H(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Ge(t).pipe(We(o=>function(t,e,n,r,o){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?H(i.map(a=>{const l=lu(a,e,o);let u;if(function(t){return t&&pr(t.canDeactivate)}(l))u=Mn(l.canDeactivate(t,e,n,r));else{if(!pr(l))throw new Error("Invalid CanDeactivate guard");u=Mn(l(t,e,n,r))}return u.pipe(Xo())})).pipe(Rs()):H(!0)}(o.component,o.route,n,e,r)),Xo(o=>!0!==o,!0))}(s,r,o,t).pipe(We(a=>a&&function(t){return"boolean"==typeof t}(a)?function(t,e,n,r){return Ge(e).pipe(Zo(o=>Ch(function(t,e){return null!==t&&e&&e(new MV(t)),H(!0)}(o.route.parent,r),function(t,e){return null!==t&&e&&e(new AV(t)),H(!0)}(o.route,r),function(t,e,n){const r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(s)).filter(s=>null!==s).map(s=>IE(()=>H(s.guards.map(l=>{const u=lu(l,s.node,n);let c;if(function(t){return t&&pr(t.canActivateChild)}(u))c=Mn(u.canActivateChild(r,t));else{if(!pr(u))throw new Error("Invalid CanActivateChild guard");c=Mn(u(r,t))}return c.pipe(Xo())})).pipe(Rs())));return H(i).pipe(Rs())}(t,o.path,n),function(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?H(r.map(i=>IE(()=>{const s=lu(i,e,n);let a;if(function(t){return t&&pr(t.canActivate)}(s))a=Mn(s.canActivate(e,t));else{if(!pr(s))throw new Error("Invalid CanActivate guard");a=Mn(s(e,t))}return a.pipe(Xo())}))).pipe(Rs()):H(!0)}(t,o.route,n))),Xo(o=>!0!==o,!0))}(r,i,t,e):H(a)),X(a=>Object.assign(Object.assign({},n),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Tt(a=>{if(Gr(a.guardsResult)){const u=Sh(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw u.url=a.guardsResult,u}const l=new DV(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),jr(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),jh(a=>{if(a.guards.canActivateChecks.length)return H(a).pipe(Tt(l=>{const u=new SV(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),fr(l=>{let u=!1;return H(l).pipe(function(t,e){return We(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return H(n);let i=0;return Ge(o).pipe(Zo(s=>function(t,e,n,r){return function(t,e,n,r){const o=Object.keys(t);if(0===o.length)return H({});const i={};return Ge(o).pipe(We(s=>function(t,e,n,r){const o=lu(t,e,r);return Mn(o.resolve?o.resolve(e,n):o(e,n))}(t[s],e,n,r).pipe(Tt(a=>{i[s]=a}))),wh(1),We(()=>Object.keys(i).length===o.length?H(i):Yo))}(t._resolve,t,e,r).pipe(X(i=>(t._resolvedData=i,t.data=Object.assign(Object.assign({},t.data),YE(t,n).resolve),null)))}(s.route,r,t,e)),Tt(()=>i++),wh(1),We(s=>i===o.length?H(n):Yo))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Tt({next:()=>u=!0,complete:()=>{u||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),Tt(l=>{const u=new IV(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}))}),jh(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.afterPreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),X(a=>{const l=function(t,e,n){const r=eu(t,e._root,n?n._root:void 0);return new JE(r,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),Tt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,e,n)=>X(r=>(new cL(e,r.targetRouterState,r.currentRouterState,n).activate(t),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Tt({next(){i=!0},complete(){i=!0}}),function(t){return e=>e.lift(new vV(t))}(()=>{if(!i&&!s){const a=`Navigation ID ${o.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(o),this.cancelNavigationTransition(o,a)):this.cancelNavigationTransition(o,a)}this.currentNavigation=null}),Hr(a=>{if(s=!0,function(t){return t&&t[FE]}(a)){const l=Gr(a.url);l||(this.navigated=!0,this.restoreHistory(o,!0));const u=new RE(o.id,this.serializeUrl(o.extractedUrl),a.message);r.next(u),l?setTimeout(()=>{const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||uu(o.source)};this.scheduleNavigation(c,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{this.restoreHistory(o,!0);const l=new bV(o.id,this.serializeUrl(o.extractedUrl),a);r.next(l);try{o.resolve(this.errorHandler(a))}catch(u){o.reject(u)}}return Yo}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}getTransition(){const n=this.transitions.value;return n.urlAfterRedirects=this.browserUrlTree,n}setTransition(n){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),n))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r=this.extractLocationChangeInfoFromEvent(n);this.shouldScheduleNavigation(this.lastLocationChangeInfo,r)&&setTimeout(()=>{const{source:o,state:i,urlTree:s}=r,a={replaceUrl:!0};if(i){const l=Object.assign({},i);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(a.state=l)}this.scheduleNavigation(s,o,i,a)},0),this.lastLocationChangeInfo=r}))}extractLocationChangeInfoFromEvent(n){var r;return{source:"popstate"===n.type?"popstate":"hashchange",urlTree:this.parseUrl(n.url),state:(null===(r=n.state)||void 0===r?void 0:r.navigationId)?n.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(n,r){if(!n)return!0;const o=r.urlTree.toString()===n.urlTree.toString();return r.transitionId!==n.transitionId||!o||!("hashchange"===r.source&&"popstate"===n.source||"popstate"===r.source&&"hashchange"===n.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){lw(n),this.config=n.map(Vh),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=o||this.routerState.root,c=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,n,r,o){if(0===n.length)return Oh(e.root,e.root,e,r,o);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new nw(!0,0,t);let e=0,n=!1;const r=t.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return ze(i.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?e++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new nw(n,e,r)}(n);if(i.toRoot())return Oh(e.root,new J([],{}),e,r,o);const s=function(t,e,n){if(t.isAbsolute)return new Ph(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const i=n.snapshot._urlSegment;return new Ph(i,i===e.root,0)}const r=tu(t.commands[0])?0:1;return function(t,e,n){let r=t,o=e,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new Error("Invalid number of '../'");o=r.segments.length}return new Ph(r,!1,o-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=s.processChildren?nu(s.segmentGroup,s.index,i.commands):rw(s.segmentGroup,s.index,i.commands);return Oh(s.segmentGroup,a,e,r,o)}(u,this.currentUrlTree,n,d,null!=c?c:null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Gr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=n[o];return null!=i&&(r[o]=i),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new Ss(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,o,i,s){var a,l;if(this.disposed)return Promise.resolve(!1);const u=this.getTransition(),c=uu(r)&&u&&!uu(u.source),h=(this.lastSuccessfulId===u.id||this.currentNavigation?u.rawUrl:u.urlAfterRedirects).toString()===n.toString();if(c&&h)return Promise.resolve(!0);let p,m,g;s?(p=s.resolve,m=s.reject,g=s.promise):g=new Promise((w,T)=>{p=w,m=T});const _=++this.navigationId;let y;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),y=o&&o.\u0275routerPageId?o.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):y=0,this.setTransition({id:_,targetPageId:y,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:i,resolve:p,reject:m,promise:g,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),g.catch(w=>Promise.reject(w))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n),i=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",i):this.location.go(o,"",i)}restoreHistory(n,r=!1){var o,i;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===s?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,r){const o=new RE(n.id,this.serializeUrl(n.extractedUrl),r);this.triggerEvent(o),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return t.\u0275fac=function(n){return new(n||t)(b(ma),b(Ih),b(ti),b(bl),b(Y),b(cl),b(Pr),b(void 0))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();function uu(t){return"imperative"!==t}let cu=(()=>{class t{constructor(n,r,o){this.router=n,this.route=r,this.locationStrategy=o,this.commands=[],this.onChanges=new An,this.subscription=n.events.subscribe(i=>{i instanceof Ss&&this.updateTargetUrlAndHref()})}set routerLink(n){this.commands=null!=n?Array.isArray(n)?n:[n]:[]}ngOnChanges(n){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(n,r,o,i,s){if(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target)return!0;const a={skipLocationChange:ni(this.skipLocationChange),replaceUrl:ni(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ni(this.preserveFragment)})}}return t.\u0275fac=function(n){return new(n||t)(C(pt),C($r),C(Jo))},t.\u0275dir=O({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(n,r){1&n&&Oe("click",function(i){return r.onClick(i.button,i.ctrlKey,i.shiftKey,i.altKey,i.metaKey)}),2&n&&(hd("href",r.href,Ri),Cn("target",r.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Ke]}),t})();function ni(t){return""===t||!!t}let Uh=(()=>{class t{constructor(n,r,o,i,s){this.parentContexts=n,this.location=r,this.resolver=o,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new ke,this.deactivateEvents=new ke,this.name=i||z,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.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 n=this.activated;return this.activated=null,this._activatedRoute=null,n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=n;const s=(r=r||this.resolver).resolveComponentFactory(n._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new f2(n,a,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(n){return new(n||t)(C(ti),C(tn),C(rr),function(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const r=n.length;let o=0;for(;o{class t{constructor(n,r,o,i,s){this.router=n,this.injector=i,this.preloadingStrategy=s,this.loader=new Ew(r,o,u=>n.triggerEvent(new NE(u)),u=>n.triggerEvent(new OE(u)))}setUpPreloading(){this.subscription=this.router.events.pipe(jr(n=>n instanceof Ss),Zo(()=>this.preload())).subscribe(()=>{})}preload(){const n=this.injector.get(wn);return this.processRoutes(n,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const s=i._loadedConfig;o.push(this.processRoutes(s.module,s.routes))}else i.loadChildren&&!i.canLoad?o.push(this.preloadConfig(n,i)):i.children&&o.push(this.processRoutes(n,i.children));return Ge(o).pipe(di(),X(i=>{}))}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?H(r._loadedConfig):this.loader.load(n.injector,r)).pipe(We(i=>(r._loadedConfig=i,this.processRoutes(i.module,i.routes)))))}}return t.\u0275fac=function(n){return new(n||t)(b(pt),b(cl),b(Pr),b(Y),b(Dw))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),$h=(()=>{class t{constructor(n,r,o={}){this.router=n,this.viewportScroller=r,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.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(n=>{n instanceof Dh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Ss&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof PE&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.router.triggerEvent(new PE(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(b(pt),b(fb),b(void 0))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const Wr=new G("ROUTER_CONFIGURATION"),Mw=new G("ROUTER_FORROOT_GUARD"),p2=[bl,{provide:Ih,useClass:GE},{provide:pt,useFactory:function(t,e,n,r,o,i,s,a={},l,u){const c=new pt(null,t,e,n,r,o,i,VE(s));return l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,c),a.enableTracing&&c.events.subscribe(d=>{var f,h;null===(f=console.group)||void 0===f||f.call(console,`Router Event: ${d.constructor.name}`),console.log(d.toString()),console.log(d),null===(h=console.groupEnd)||void 0===h||h.call(console)}),c},deps:[Ih,ti,bl,Y,cl,Pr,Hh,Wr,[class{},new yt],[class{},new yt]]},ti,{provide:$r,useFactory:function(t){return t.routerState.root},deps:[pt]},{provide:cl,useClass:gN},Iw,Sw,class{preload(e,n){return n().pipe(Hr(()=>H(null)))}},{provide:Wr,useValue:{enableTracing:!1}}];function g2(){return new sf("Router",pt)}let Tw=(()=>{class t{constructor(n,r){}static forRoot(n,r){return{ngModule:t,providers:[p2,Aw(n),{provide:Mw,useFactory:_2,deps:[[pt,new yt,new er]]},{provide:Wr,useValue:r||{}},{provide:Jo,useFactory:y2,deps:[Vr,[new fo(wf),new yt],Wr]},{provide:$h,useFactory:m2,deps:[pt,fb,Wr]},{provide:Dw,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:Sw},{provide:sf,multi:!0,useFactory:g2},[Gh,{provide:us,multi:!0,useFactory:E2,deps:[Gh]},{provide:xw,useFactory:w2,deps:[Gh]},{provide:sC,multi:!0,useExisting:xw}]]}}static forChild(n){return{ngModule:t,providers:[Aw(n)]}}}return t.\u0275fac=function(n){return new(n||t)(b(Mw,8),b(pt,8))},t.\u0275mod=bt({type:t}),t.\u0275inj=it({}),t})();function m2(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new $h(t,e,n)}function y2(t,e,n={}){return n.useHash?new FO(t,e):new KC(t,e)}function _2(t){return"guarded"}function Aw(t){return[{provide:P0,multi:!0,useValue:t},{provide:Hh,multi:!0,useValue:t}]}let Gh=(()=>{class t{constructor(n){this.injector=n,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new An}appInitializer(){return this.injector.get(NO,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const o=new Promise(a=>r=a),i=this.injector.get(pt),s=this.injector.get(Wr);return"disabled"===s.initialNavigation?(i.setUpLocationChangeListener(),r(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?H(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),i.initialNavigation()):r(!0),o})}bootstrapListener(n){const r=this.injector.get(Wr),o=this.injector.get(Iw),i=this.injector.get($h),s=this.injector.get(pt),a=this.injector.get(qo);n===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&s.initialNavigation(),o.setUpPreloading(),i.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(n){return new(n||t)(b(Y))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();function E2(t){return t.appInitializer.bind(t)}function w2(t){return t.bootstrapListener.bind(t)}const xw=new G("Router Initializer"),du_apiUrl="http://81.177.135.200:80";class Rw{}class Nw{}class Wn{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(n=>{let r=e[n];const o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(o,r),this.maybeSetNormalizedName(n,o))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof Wn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){const n=new Wn;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Wn?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){const n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,n);const o=("a"===e.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=e.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}}class S2{encodeKey(e){return Ow(e)}encodeValue(e){return Ow(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const M2=/%(\d[a-f0-9])/gi,T2={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Ow(t){return encodeURIComponent(t).replace(M2,(e,n)=>{var r;return null!==(r=T2[n])&&void 0!==r?r:e})}function Pw(t){return`${t}`}class gr{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new S2,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{const r=e.fromObject[n];this.map.set(n,Array.isArray(r)?r:[r])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){const n=[];return Object.keys(e).forEach(r=>{const o=e[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const n=new gr({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const n=("a"===e.op?this.map.get(e.param):void 0)||[];n.push(Pw(e.value)),this.map.set(e.param,n);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const o=r.indexOf(Pw(e.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class A2{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}keys(){return this.map.keys()}}function Fw(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function kw(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Vw(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Fs{constructor(e,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new Wn),this.context||(this.context=new A2),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":af.set(h,e.setHeaders[h]),u)),e.setParams&&(c=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),c)),new Fs(r,o,s,{params:c,headers:u,context:d,reportProgress:l,responseType:i,withCredentials:a})}}var Te=(()=>((Te=Te||{})[Te.Sent=0]="Sent",Te[Te.UploadProgress=1]="UploadProgress",Te[Te.ResponseHeader=2]="ResponseHeader",Te[Te.DownloadProgress=3]="DownloadProgress",Te[Te.Response=4]="Response",Te[Te.User=5]="User",Te))();class Wh{constructor(e,n=200,r="OK"){this.headers=e.headers||new Wn,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class qh extends Wh{constructor(e={}){super(e),this.type=Te.ResponseHeader}clone(e={}){return new qh({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class fu extends Wh{constructor(e={}){super(e),this.type=Te.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new fu({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Lw extends Wh{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function zh(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Qh=(()=>{class t{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Fs)i=n;else{let l,u;l=o.headers instanceof Wn?o.headers:new Wn(o.headers),o.params&&(u=o.params instanceof gr?o.params:new gr({fromObject:o.params})),i=new Fs(n,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=H(i).pipe(Zo(l=>this.handler.handle(l)));if(n instanceof Fs||"events"===o.observe)return s;const a=s.pipe(jr(l=>l instanceof fu));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(X(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(X(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(X(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));case"json":default:return a.pipe(X(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new gr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,zh(o,r))}post(n,r,o={}){return this.request("POST",n,zh(o,r))}put(n,r,o={}){return this.request("PUT",n,zh(o,r))}}return t.\u0275fac=function(n){return new(n||t)(b(Rw))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();class jw{constructor(e,n){this.next=e,this.interceptor=n}handle(e){return this.interceptor.intercept(e,this.next)}}const Hw=new G("HTTP_INTERCEPTORS");let N2=(()=>{class t{intercept(n,r){return r.handle(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const O2=/^\)\]\}',?\n/;let Bw=(()=>{class t{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new le(r=>{const o=this.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((h,p)=>o.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&o.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();o.responseType="json"!==h?h:"text"}const i=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=1223===o.status?204:o.status,p=o.statusText||"OK",m=new Wn(o.getAllResponseHeaders()),g=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(o)||n.url;return s=new qh({headers:m,status:h,statusText:p,url:g}),s},l=()=>{let{headers:h,status:p,statusText:m,url:g}=a(),_=null;204!==p&&(_=void 0===o.response?o.responseText:o.response),0===p&&(p=_?200:0);let y=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof _){const w=_;_=_.replace(O2,"");try{_=""!==_?JSON.parse(_):null}catch(T){_=w,y&&(y=!1,_={error:T,text:_})}}y?(r.next(new fu({body:_,headers:h,status:p,statusText:m,url:g||void 0})),r.complete()):r.error(new Lw({error:_,headers:h,status:p,statusText:m,url:g||void 0}))},u=h=>{const{url:p}=a(),m=new Lw({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(m)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:Te.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&!!o.responseText&&(p.partialText=o.responseText),r.next(p)},f=h=>{let p={type:Te.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",l),o.addEventListener("error",u),o.addEventListener("timeout",u),o.addEventListener("abort",u),n.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),r.next({type:Te.Sent}),()=>{o.removeEventListener("error",u),o.removeEventListener("abort",u),o.removeEventListener("load",l),o.removeEventListener("timeout",u),n.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return t.\u0275fac=function(n){return new(n||t)(b(pb))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const Jh=new G("XSRF_COOKIE_NAME"),Kh=new G("XSRF_HEADER_NAME");class Uw{}let F2=(()=>{class t{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=sb(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return t.\u0275fac=function(n){return new(n||t)(b(Se),b(al),b(Jh))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),Yh=(()=>{class t{constructor(n,r){this.tokenService=n,this.headerName=r}intercept(n,r){const o=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||o.startsWith("http://")||o.startsWith("https://"))return r.handle(n);const i=this.tokenService.getToken();return null!==i&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,i)})),r.handle(n)}}return t.\u0275fac=function(n){return new(n||t)(b(Uw),b(Kh))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),k2=(()=>{class t{constructor(n,r){this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=this.injector.get(Hw,[]);this.chain=r.reduceRight((o,i)=>new jw(o,i),this.backend)}return this.chain.handle(n)}}return t.\u0275fac=function(n){return new(n||t)(b(Nw),b(Y))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),V2=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Yh,useClass:N2}]}}static withOptions(n={}){return{ngModule:t,providers:[n.cookieName?{provide:Jh,useValue:n.cookieName}:[],n.headerName?{provide:Kh,useValue:n.headerName}:[]]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=it({providers:[Yh,{provide:Hw,useExisting:Yh,multi:!0},{provide:Uw,useClass:F2},{provide:Jh,useValue:"XSRF-TOKEN"},{provide:Kh,useValue:"X-XSRF-TOKEN"}]}),t})(),L2=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=it({providers:[Qh,{provide:Rw,useClass:k2},Bw,{provide:Nw,useExisting:Bw}],imports:[[V2.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),j2=(()=>{class t{constructor(n){this.http=n,this.url=`${du_apiUrl}/api/preview`}getDescriptionPreview(n){return this.http.post(`${this.url}/description`,{url:n},{responseType:"text"})}getChaptersPreview(n,r){return this.http.post(`${this.url}/chapters`,{url:n,description:r},{responseType:"json"})}}return t.\u0275fac=function(n){return new(n||t)(b(Qh))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$w=(()=>{class t{constructor(n){this.http=n,this.url=`${du_apiUrl}/api/jobs`}initializeJob(n,r){return this.http.post(`${this.url}/initialize`,{url:n,description:r},{responseType:"json"})}convertVideoToMp3(n){return this.http.post(`${this.url}/initializeWithoutChapters`,{url:n},{responseType:"json"})}getJob(n){return this.http.get(`${this.url}/${n}`,{responseType:"json"})}}return t.\u0275fac=function(n){return new(n||t)(b(Qh))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function H2(t,e){if(1&t&&(I(0,"div",14),Fe(1),M()),2&t){const n=qe();K(1),Ar(n.error)}}function B2(t,e){1&t&&(sa(),I(0,"svg",25),Zt(1,"circle",26),M())}const Zh=function(){return{standalone:!0}};function U2(t,e){if(1&t){const n=ja();I(0,"textarea",27),Oe("ngModelChange",function(o){return ta(n),qe(2).onDescriptionChanged(o)}),M()}if(2&t){const n=qe(2);de("ngModel",n.description)("ngModelOptions",rl(4,Zh))("disabled",!n.useCustomDescription)("readonly",!n.useCustomDescription)}}function $2(t,e){1&t&&(sa(),I(0,"svg",25),Zt(1,"circle",26),M())}function G2(t,e){if(1&t&&(I(0,"div",14),Fe(1),M()),2&t){const n=qe(2);K(1),Ar(n.chaptersError)}}function W2(t,e){if(1&t&&(function(t,e,n){const r=v(),o=Z(),i=t+20,s=o.firstCreatePass?function(t,e,n,r,o){const i=e.consts,s=Kn(i,r),a=yo(e,t,8,"ng-container",s);return null!==s&&Fa(a,s,!0),Hc(e,n,a,Kn(i,o)),null!==e.queries&&e.queries.elementStart(e,a),a}(i,o,r,e,n):o.data[i];fn(s,!0);const a=r[i]=r[B].createComment("");Ta(o,r,a,s),Ye(a,r),Xs(s)&&(Lc(o,r,s),wm(o,s,r)),null!=n&&jc(r,s)}(0),Fe(1),function(){let t=Re();const e=Z();Uu()?$u():(t=t.parent,fn(t,!1)),e.firstCreatePass&&(aa(e,t),Pu(t)&&e.queries.elementEnd(t))}()),2&t){const n=qe(4);K(1),xr(" ",n.onIsLoadingChaptersChanged(!1)," ")}}function q2(t,e){if(1&t&&(I(0,"li",31),Fe(1),He(2,W2,2,1,"ng-container",32),M()),2&t){const n=e.$implicit,r=e.last;K(1),xr("",n.name," "),K(1),de("ngIf",r)}}function z2(t,e){if(1&t&&(I(0,"div",28),I(1,"ul",29),He(2,q2,3,2,"li",30),M(),M()),2&t){const n=qe(2);K(2),de("ngForOf",n.previewChapters)}}function Q2(t,e){if(1&t){const n=ja();I(0,"div",4),I(1,"div",15),I(2,"div",4),I(3,"div",16),I(4,"span"),Fe(5,"\xa0Specify timecodes manually"),M(),I(6,"label"),I(7,"input",17),Oe("ngModelChange",function(o){return ta(n),qe().onUseCustomDescriptionChanged(o)}),M(),Zt(8,"span",18),M(),M(),M(),I(9,"div",19),He(10,B2,2,0,"svg",20),I(11,"div",21),He(12,U2,1,5,"textarea",22),M(),M(),M(),I(13,"div",23),I(14,"div",4),Fe(15," Preview "),M(),I(16,"div",19),He(17,$2,2,0,"svg",20),He(18,G2,2,1,"div",9),He(19,z2,3,1,"div",24),M(),M(),M()}if(2&t){const n=qe();K(7),de("ngModel",n.useCustomDescription)("ngModelOptions",rl(7,Zh)),K(3),de("ngIf",n.isLoadingDescription),K(2),de("ngIf",!n.isLoadingDescription),K(5),de("ngIf",n.isLoadingChapters),K(1),de("ngIf",n.hasChaptersError()),K(1),de("ngIf",!n.hasChaptersError()&&!n.isLoadingChapters&&0!=n.previewChapters.length)}}let J2=(()=>{class t{constructor(n,r,o,i){this.previewService=n,this.router=r,this.mainService=o,this.title=i,this.isCorrectUrl=!1,this.url="",this.isLoadingDescription=!0,this.useCustomDescription=!1,this.description="",this.previewChapters=[],this.isLoadingChapters=!0,this.processing=!1}ngOnInit(){}hasError(){return null!=this.error||null!=this.error}hasChaptersError(){return null!=this.chaptersError||null!=this.chaptersError}onUrlChanged(n){this.isCorrectUrl=this.isValidYoutubeUrl(n),0!=this.isCorrectUrl?(this.error=null,this.url=n,this.isLoadingDescription=!0,this.previewService.getDescriptionPreview(this.url).subscribe(r=>{this.onDescriptionChanged(r),this.isLoadingDescription=!1},r=>{if(0==r.status)console.log(r),this.error="Server not responding (CONNECTION REFUSED)",this.isLoadingDescription=!1;else{var o=JSON.parse(r.error);this.error=o.errorMessage,this.isLoadingDescription=!1}})):this.error="Invalid youtube url"}onUseCustomDescriptionChanged(n){this.useCustomDescription=n}onDescriptionChanged(n){this.chaptersError=null,this.description=n,this.onIsLoadingChaptersChanged(!0),this.previewService.getChaptersPreview(this.url,this.description).subscribe(r=>{this.previewChapters=r,this.onIsLoadingChaptersChanged(!1)},r=>{console.log(r),this.chaptersError=r.error.errorMessage,this.onIsLoadingChaptersChanged(!1)})}onIsLoadingChaptersChanged(n){this.isLoadingChapters=n}onParseChaptersButtonClick(){this.processing=!0,this.mainService.initializeJob(this.url,this.description).subscribe(n=>{this.title.setTitle("Processing..."),this.router.navigateByUrl(`job/${n.id}`)},n=>{this.processing=!1})}onConvertVideoToMp3ButtonClick(){this.processing=!0,this.mainService.convertVideoToMp3(this.url).subscribe(n=>{this.title.setTitle("Processing..."),this.router.navigateByUrl(`job/${n.id}`)},n=>{this.error=n.error.errorMessage,this.processing=!1})}isValidYoutubeUrl(n){if(null!=n||""!=n){var o=n.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=|\?v=)([^#\&\?]*).*/);return!(!o||11!=o[2].length)}return!1}}return t.\u0275fac=function(n){return new(n||t)(C(j2),C(pt),C($w),C(Qf))},t.\u0275cmp=Jr({type:t,selectors:[["app-create"]],decls:18,vars:7,consts:[[1,"card"],[1,"card-content"],[1,"card-title","black-text"],["aria-hidden","true",1,"fa","fa-github"],[1,"row"],[1,"input-field","col","s12"],[1,"material-icons","prefix"],["id","icon_prefix","type","text",1,"validate",3,"ngModel","ngModelOptions","ngModelChange"],["for","icon_prefix"],["class","card-panel red accent-1",4,"ngIf"],["class","row",4,"ngIf"],[1,"card-action","right-align"],["type","submit","value","Download",1,"btn","red","lighten-3",2,"margin-right","10px",3,"disabled","click"],["type","submit","value","Split chapters",1,"btn","red","lighten-3",3,"disabled","click"],[1,"card-panel","red","accent-1"],[1,"col","s8"],[1,"switch"],["type","checkbox",3,"ngModel","ngModelOptions","ngModelChange"],[1,"lever"],[1,"row",2,"align-items","center","justify-content","center"],["class","spinner","viewBox","0 0 50 50",4,"ngIf"],[1,"input-field"],["id","descripionTextArea","style","height: 300px; resize: none;",3,"ngModel","ngModelOptions","disabled","readonly","ngModelChange",4,"ngIf"],[1,"col","s4",2,"padding-left","20px"],["style","overflow-y: scroll; height:300px; padding-right: 5px;",4,"ngIf"],["viewBox","0 0 50 50",1,"spinner"],["cx","25","cy","25","r","20","fill","none","stroke-width","5",1,"path"],["id","descripionTextArea",2,"height","300px","resize","none",3,"ngModel","ngModelOptions","disabled","readonly","ngModelChange"],[2,"overflow-y","scroll","height","300px","padding-right","5px"],[1,"collection"],["class","collection-item",4,"ngFor","ngForOf"],[1,"collection-item"],[4,"ngIf"]],template:function(n,r){1&n&&(I(0,"div",0),I(1,"div",1),I(2,"span",2),Fe(3,"Ethereal"),M(),I(4,"form"),Zt(5,"i",3),I(6,"div",4),I(7,"div",5),I(8,"i",6),Fe(9,"video_settings"),M(),I(10,"input",7),Oe("ngModelChange",function(i){return r.onUrlChanged(i)}),M(),I(11,"label",8),Fe(12,"Youtube video url"),M(),M(),M(),He(13,H2,2,1,"div",9),He(14,Q2,20,8,"div",10),M(),M(),I(15,"div",11),I(16,"input",12),Oe("click",function(){return r.onConvertVideoToMp3ButtonClick()}),M(),I(17,"input",13),Oe("click",function(){return r.onParseChaptersButtonClick()}),M(),M(),M()),2&n&&(K(10),de("ngModel",r.url)("ngModelOptions",rl(6,Zh)),K(3),de("ngIf",r.hasError()),K(1),de("ngIf",!r.hasError()&&r.isCorrectUrl),K(2),de("disabled",r.processing||r.hasError()||0==r.url.length),K(1),de("disabled",r.processing||0==r.previewChapters.length||r.hasError()||r.hasChaptersError()))},directives:[fh,eh,Ds,Vl,Yb,dh,Of,Kf,Nf],styles:["input[_ngcontent-%COMP%]:-webkit-autofill{-webkit-box-shadow:0 0 0px 1000px white inset!important}"]}),t})();var Gw=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hu=function(t){function e(n,r){var i=this,s=this.constructor.prototype;return(i=t.call(this,n)||this).statusCode=r,i.__proto__=s,i}return Gw(e,t),e}(Error),Ww=function(t){function e(n){void 0===n&&(n="A timeout occurred.");var o=this,i=this.constructor.prototype;return(o=t.call(this,n)||this).__proto__=i,o}return Gw(e,t),e}(Error),S=(()=>(function(t){t[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Information=2]="Information",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Critical=5]="Critical",t[t.None=6]="None"}(S||(S={})),S))(),K2=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=200&&s.status<300?o(new Y2(s.status,s.statusText,s.response||s.responseText)):i(new hu(s.statusText,s.status))},s.onerror=function(){r.logger.log(S.Warning,"Error from HTTP request. "+s.status+": "+s.statusText),i(new hu(s.statusText,s.status))},s.ontimeout=function(){r.logger.log(S.Warning,"Timeout from HTTP request."),i(new Ww)},s.send(n.content||"")})},e}(function(){function t(){}return t.prototype.get=function(e,n){return this.send(Xh({},n,{method:"GET",url:e}))},t.prototype.post=function(e,n){return this.send(Xh({},n,{method:"POST",url:e}))},t.prototype.delete=function(e,n){return this.send(Xh({},n,{method:"DELETE",url:e}))},t}()),ri=function(){function t(){}return t.write=function(e){return""+e+t.RecordSeparator},t.parse=function(e){if(e[e.length-1]!==t.RecordSeparator)throw new Error("Message is incomplete.");var n=e.split(t.RecordSeparator);return n.pop(),n},t.RecordSeparatorCode=30,t.RecordSeparator=String.fromCharCode(t.RecordSeparatorCode),t}(),ep=function(){function t(){}return t.prototype.log=function(e,n){},t.instance=new t,t}(),Qe=function(){function t(){}return t.isRequired=function(e,n){if(null==e)throw new Error("The '"+n+"' argument is required.")},t.isIn=function(e,n,r){if(!(e in n))throw new Error("Unknown "+r+" value: "+e+".")},t}();function ks(t,e){var n=null;return zw(t)?(n="Binary data of length "+t.byteLength,e&&(n+=". Content: '"+function(t){var e=new Uint8Array(t),n="";return e.forEach(function(r){n+="0x"+(r<16?"0":"")+r.toString(16)+" "}),n.substr(0,n.length-1)}(t)+"'")):"string"==typeof t&&(n="String data of length "+t.length,e&&(n+=". Content: '"+t+"'.")),n}function qw(t,e,n,r,o,i,s){return function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(u){try{l(r.next(u))}catch(c){i(c)}}function a(u){try{l(r.throw(u))}catch(c){i(c)}}function l(u){u.done?o(u.value):new n(function(c){c(u.value)}).then(s,a)}l((r=r.apply(t,[])).next())})}(this,0,void 0,function(){var a,l,u,c;return function(t,e){var r,o,i,s,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=2&u[0]?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(!(i=(i=n.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]-1&&this.subject.observers.splice(e,1),0===this.subject.observers.length&&this.subject.cancelCallback().catch(function(n){})},t}(),tp=function(){function t(e){this.minimumLogLevel=e}return t.prototype.log=function(e,n){if(e>=this.minimumLogLevel)switch(e){case S.Critical:case S.Error:console.error(S[e]+": "+n);break;case S.Warning:console.warn(S[e]+": "+n);break;case S.Information:console.info(S[e]+": "+n);break;default:console.log(S[e]+": "+n)}},t}();function zw(t){return t&&"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}var sj=function(){function t(){}return t.prototype.writeHandshakeRequest=function(e){return ri.write(JSON.stringify(e))},t.prototype.parseHandshakeResponse=function(e){var r,o;if(zw(e)){var i=new Uint8Array(e);if(-1===(s=i.indexOf(ri.RecordSeparatorCode)))throw new Error("Message is incomplete.");var a=s+1;r=String.fromCharCode.apply(null,i.slice(0,a)),o=i.byteLength>a?i.slice(a).buffer:null}else{var s,l=e;if(-1===(s=l.indexOf(ri.RecordSeparator)))throw new Error("Message is incomplete.");r=l.substring(0,a=s+1),o=l.length>a?l.substring(a):null}var u=ri.parse(r);return[o,JSON.parse(u[0])]},t}(),Ae=(()=>(function(t){t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close"}(Ae||(Ae={})),Ae))(),cj=function(){function t(e,n,r){var o=this;Qe.isRequired(e,"connection"),Qe.isRequired(n,"logger"),Qe.isRequired(r,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.logger=n,this.protocol=r,this.connection=e,this.handshakeProtocol=new sj,this.connection.onreceive=function(i){return o.processIncomingData(i)},this.connection.onclose=function(i){return o.connectionClosed(i)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.id=0}return t.create=function(e,n,r){return new t(e,n,r)},t.prototype.start=function(){return function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(u){try{l(r.next(u))}catch(c){i(c)}}function a(u){try{l(r.throw(u))}catch(c){i(c)}}function l(u){u.done?o(u.value):new n(function(c){c(u.value)}).then(s,a)}l((r=r.apply(t,[])).next())})}(this,0,void 0,function(){var e;return function(t,e){var r,o,i,s,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=2&u[0]?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(!(i=(i=n.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1](function(t){t[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling"}(nt||(nt={})),nt))(),rt=(()=>(function(t){t[t.Text=1]="Text",t[t.Binary=2]="Binary"}(rt||(rt={})),rt))(),dj=function(){function t(){this.isAborted=!1}return t.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(t.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),t}(),pu=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(u){try{l(r.next(u))}catch(c){i(c)}}function a(u){try{l(r.throw(u))}catch(c){i(c)}}function l(u){u.done?o(u.value):new n(function(c){c(u.value)}).then(s,a)}l((r=r.apply(t,e||[])).next())})},gu=function(t,e){var r,o,i,s,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=2&u[0]?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(!(i=(i=n.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]")),this.onclose(r)),this.logger.log(S.Trace,"(LongPolling transport) Transport finished."),[7];case 9:return[2]}})})},t.prototype.send=function(e){return pu(this,void 0,void 0,function(){return gu(this,function(n){return this.running?[2,qw(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},t.prototype.stop=function(){return pu(this,void 0,void 0,function(){var e,n,r=this;return gu(this,function(o){switch(o.label){case 0:return o.trys.push([0,,3,4]),this.running=!1,this.logger.log(S.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),e={headers:{}},[4,this.accessTokenFactory()];case 1:return n=o.sent(),this.updateHeaderToken(e,n),[4,this.httpClient.delete(this.url,e)];case 2:return o.sent(),this.logger.log(S.Trace,"(LongPolling transport) DELETE request accepted."),[3,4];case 3:return this.stopped||(this.shutdownTimer=setTimeout(function(){r.logger.log(S.Warning,"(LongPolling transport) server did not terminate after DELETE request, canceling poll."),r.pollAbort.abort()},this.shutdownTimeout)),[7];case 4:return[2]}})})},t}(),Jw=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(u){try{l(r.next(u))}catch(c){i(c)}}function a(u){try{l(r.throw(u))}catch(c){i(c)}}function l(u){u.done?o(u.value):new n(function(c){c(u.value)}).then(s,a)}l((r=r.apply(t,e||[])).next())})},Kw=function(t,e){var r,o,i,s,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=2&u[0]?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(!(i=(i=n.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]0&&i[i.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]0&&i[i.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]=0){if(!(o===nt.WebSockets&&"undefined"==typeof WebSocket||o===nt.ServerSentEvents&&"undefined"==typeof EventSource))return this.logger.log(S.Debug,"Selecting transport '"+nt[o]+"'"),o;this.logger.log(S.Debug,"Skipping transport '"+nt[o]+"' because it is not supported in your environment.'")}else this.logger.log(S.Debug,"Skipping transport '"+nt[o]+"' because it does not support the requested transfer format '"+rt[r]+"'.");else this.logger.log(S.Debug,"Skipping transport '"+nt[o]+"' because it was disabled by the client.")}return null},t.prototype.isITransport=function(e){return e&&"object"==typeof e&&"connect"in e},t.prototype.changeState=function(e,n){return this.connectionState===e&&(this.connectionState=n,!0)},t.prototype.stopConnection=function(e){return Vs(this,void 0,void 0,function(){return oi(this,function(n){return this.transport=null,(e=this.stopError||e)?this.logger.log(S.Error,"Connection disconnected with error '"+e+"'."):this.logger.log(S.Information,"Connection disconnected."),this.connectionState=2,this.onclose&&this.onclose(e),[2]})})},t.prototype.resolveUrl=function(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if("undefined"==typeof window||!window||!window.document)throw new Error("Cannot resolve '"+e+"'.");var n=window.document.createElement("a");return n.href=e,this.logger.log(S.Information,"Normalizing '"+e+"' to '"+n.href+"'."),n.href},t.prototype.resolveNegotiateUrl=function(e){var n=e.indexOf("?"),r=e.substring(0,-1===n?e.length:n);return"/"!==r[r.length-1]&&(r+="/"),(r+="negotiate")+(-1===n?"":e.substring(n))},t}(),Cj=function(){function t(){this.name="json",this.version=1,this.transferFormat=rt.Text}return t.prototype.parseMessages=function(e,n){if("string"!=typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===n&&(n=ep.instance);for(var o=[],i=0,s=ri.parse(e);i{class t{constructor(){this.startConnection=n=>{this.hubConnection=(new bj).withUrl(`${du_apiUrl}/logger?jobId=${n}`).build(),this.hubConnection.start().then(()=>console.log("Connection started")).catch(r=>console.log("Error while starting connection: "+r))},this.addReceiveLogListener=n=>{this.hubConnection.on("onReceiveLog",r=>{n(r)})}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Dj(t,e){if(1&t&&(I(0,"div",7),Fe(1),M()),2&t){const n=qe(3);let r;K(1),Ar(null!==(r=n.error)&&void 0!==r?r:"Failed. Try again.")}}function Sj(t,e){if(1&t&&(I(0,"div"),He(1,Dj,2,1,"div",6),M()),2&t){const n=qe(2);K(1),de("ngIf",n.isFailed())}}function Ij(t,e){if(1&t&&(I(0,"div"),I(1,"div",8),I(2,"div",9),sa(),I(3,"svg",10),Zt(4,"circle",11),M(),M(),F.lFrame.currentNamespace=null,I(5,"div",12),Fe(6),M(),M(),M()),2&t){const n=qe(2);K(6),xr(" ",n.currentLog," ")}}function Mj(t,e){if(1&t&&(I(0,"li",17),Zt(1,"img",18),I(2,"span",19),Fe(3),M(),I(4,"p"),Fe(5),Zt(6,"br"),Fe(7),M(),I(8,"a",20),I(9,"i",21),Fe(10,"save_alt"),M(),M(),M()),2&t){const n=e.$implicit;K(1),cd("src",n.thumbnailUrl,Ri),K(2),Ar(n.name),K(2),fd("",n.startTimespan," - ",n.endTimespan,""),K(2),xr(" Duration: ",n.duration," "),K(1),Ba("href","",n.mp3Url,"?inline=false",Ri)}}function Tj(t,e){if(1&t&&(I(0,"div",14),I(1,"ul",15),He(2,Mj,11,6,"li",16),M(),M()),2&t){const n=qe(3);K(2),de("ngForOf",n.job.chapters)}}function Aj(t,e){if(1&t&&(I(0,"div"),He(1,Tj,3,1,"div",13),M()),2&t){const n=qe(2);K(1),de("ngIf",!n.isLoadingChapters)}}function xj(t,e){if(1&t&&(I(0,"div"),I(1,"span",4),Fe(2),M(),I(3,"form"),I(4,"div",5),Zt(5,"br"),He(6,Sj,2,1,"div",2),He(7,Ij,7,1,"div",2),He(8,Aj,2,1,"div",2),M(),M(),M()),2&t){const n=qe();K(2),Ar(n.job.video.title),K(4),de("ngIf",n.isFailed()),K(1),de("ngIf",n.isProcessing()),K(1),de("ngIf",n.isSucceed())}}function Rj(t,e){if(1&t){const n=ja();I(0,"div",22),I(1,"a",23),Fe(2,"Back"),M(),I(3,"input",24),Oe("click",function(){ta(n);const o=qe();return o.openUrl(o.job.zipArchiveUrl)}),M(),M()}if(2&t){const n=qe();K(3),de("disabled",n.isProcessing()||n.isFailed())}}const Nj=[{path:"job/:id",component:(()=>{class t{constructor(n,r,o,i){this.route=n,this.mainService=r,this.signalR=o,this.title=i,this.isLoadingChapters=!1}ngOnInit(){this.routeSub=this.route.params.subscribe(n=>{var r=n.id;this.mainService.getJob(r).subscribe(o=>{this.job=o,this.currentStatus=this.job.status,this.currentLog=this.job.lastLogMessage,this.title.setTitle(this.currentLog),this.isFailed()&&(this.error=this.job.lastLogMessage,this.title.setTitle(this.job.lastLogMessage)),this.isProcessing()&&(this.signalR.startConnection(r),this.signalR.addReceiveLogListener(i=>{console.log(i),this.currentStatus=i.status,this.currentLog=i.log,this.isFailed()&&(this.error=this.currentLog),this.title.setTitle(this.currentLog)})),console.log(this.job)})})}onIsLoadingChaptersChanged(n){this.isLoadingChapters=n}openUrl(n){window.open(n)}isProcessing(){return"Created"==this.currentStatus||"Processing"==this.currentStatus}isSucceed(){return"Succeed"==this.currentStatus}isFailed(){return"Failed"==this.currentStatus||"Expired"==this.currentStatus}}return t.\u0275fac=function(n){return new(n||t)(C($r),C($w),C(wj),C(Qf))},t.\u0275cmp=Jr({type:t,selectors:[["app-job"]],decls:4,vars:2,consts:[[1,"card"],[1,"card-content"],[4,"ngIf"],["class","card-action right-align",4,"ngIf"],[1,"card-title","black-text"],[1,"row"],["class","card-panel red accent-1",4,"ngIf"],[1,"card-panel","red","accent-1"],[1,"content"],[1,"col","s2"],["viewBox","0 0 50 50",1,"spinner"],["cx","25","cy","25","r","20","fill","none","stroke-width","5",1,"path"],[1,"col","s8"],["style","overflow-y: scroll; height:300px; padding-right: 5px;",4,"ngIf"],[2,"overflow-y","scroll","height","300px","padding-right","5px"],[1,"collection"],["class","collection-item avatar",4,"ngFor","ngForOf"],[1,"collection-item","avatar"],["alt","",1,"circle",3,"src"],[1,"title"],[1,"secondary-content",3,"href"],[1,"material-icons"],[1,"card-action","right-align"],["routerLink","",1,"left",2,"margin-top","5px"],["type","submit","value","Download ZIP",1,"btn","red","lighten-3",3,"disabled","click"]],template:function(n,r){1&n&&(I(0,"div",0),I(1,"div",1),He(2,xj,9,4,"div",2),M(),He(3,Rj,4,1,"div",3),M()),2&n&&(K(2),de("ngIf",null!=r.job),K(1),de("ngIf",null!=r.job))},directives:[Of,fh,eh,Ds,Nf,cu],styles:[""]}),t})()},{path:"",component:J2},{path:"**",redirectTo:""}];let Oj=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t}),t.\u0275inj=it({imports:[[Tw.forRoot(Nj)],Tw]}),t})(),Pj=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Jr({type:t,selectors:[["app-root"]],decls:8,vars:0,consts:[[1,"valign-wrapper",2,"width","100%","height","100%","position","absolute","background-color","#4158D0","background-image","linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%)"],[2,"position","absolute","bottom","0","right","0","width","100px","text-align","right"],[2,"color","white"],[1,"valign",2,"width","100%"],[1,"row"],[1,"col","s12","m6","offset-m3"]],template:function(n,r){1&n&&(I(0,"div",0),I(1,"div",1),I(2,"p",2),Fe(3,"2.4.0.1 \xa0 \xa0"),M(),M(),I(4,"div",3),I(5,"div",4),I(6,"div",5),Zt(7,"router-outlet"),M(),M(),M(),M())},directives:[Uh],styles:[".loader[_ngcontent-%COMP%]{position:absolute;top:0px;right:0px;width:100%;height:100%;background-color:#eceaea;background-image:url(data:image/svg+xml,);background-size:50px;background-repeat:no-repeat;background-position:center;z-index:10000000;opacity:.4;filter:alpha(opacity=40)}.spinner[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;z-index:2;top:50%;left:50%;margin:0 auto;width:50px;height:50px}.spinner[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{stroke:#93bfec;stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}body[_ngcontent-%COMP%]{display:flex;min-height:100vh;flex-direction:column}main[_ngcontent-%COMP%]{flex:1 0 auto}"]}),t})(),Fj=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=bt({type:t,bootstrap:[Pj]}),t.\u0275inj=it({providers:[],imports:[[$F,Oj,Uk,L2]]}),t})();(function(){if(hC)throw new Error("Cannot enable prod mode after platform setup.");fC=!1})(),BF().bootstrapModule(Fj).catch(t=>console.error(t))}},li=>{li(li.s=447)}]); \ No newline at end of file